= ({
+ color,
+ title,
+}: ColorBlockProps) => (
+
+);
+
+stories.add('Colors', () => (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+));
diff --git a/amundsen_application/static/js/stories/typography.story.tsx b/amundsen_application/static/js/stories/typography.story.tsx
index 3e62e8941..0bc1f8acc 100644
--- a/amundsen_application/static/js/stories/typography.story.tsx
+++ b/amundsen_application/static/js/stories/typography.story.tsx
@@ -1,59 +1,93 @@
-import React from 'react';
+import React, { ReactNode } from 'react';
+
+import StorySection from '../components/common/StorySection';
export default {
title: 'Attributes/Typography',
};
-export const Typography = () => {
+export const TypographyUpdated = () => {
return (
<>
- Headings
-
- Raw h1
- Raw h2
- Raw h3
- Raw h4
- Raw h5
- Raw h6
-
- Heading with .title-1
- Heading with .title-2
- Heading with .title-3
- Heading with .subtitle-1
- Heading with .subtitle-2
- Heading with .subtitle-3
+
+ <>
+ Heading with .text-headline-w1
+ Heading with .text-headline-w2
+ Heading with .text-headline-w3
+ >
+
+
+ <>
+ Title with .text-title-w1
+ Title with .text-title-w2
+ Title with .text-title-w3
+ >
+
+
+ <>
+ Subtitle with .text-subtitle-w1
+ Subtitle with .text-subtitle-w2
+ Subtitle with .text-subtitle-w3
+ >
+
+
+ <>
+ Subtitle with .text-body-w1
+ Subtitle with .text-body-w2
+ Subtitle with .text-body-w3
+ >
+
>
);
};
-Typography.story = {
- name: 'Headings',
+TypographyUpdated.story = {
+ name: 'Typography',
};
-export const Body = () => {
+export const Typography = () => {
return (
<>
- Body
-
- Raw p
-
- Paragraph with .body-1
- Paragraph with .body-2
- Paragraph with .body-3
- Paragraph with .body-secondary-3
- Paragraph with .body-placeholder
- Paragraph with .body-link
- Paragraph with .caption
- Paragraph with .column-name
- Paragraph with .resource-type
- Paragraph with .helper-text
- Paragraph with .text-placeholder
- Paragraph with .text-secondary
- Paragraph with .text-primary
+
+ <>
+ Raw h1
+ Raw h2
+ Raw h3
+ Raw h4
+ Raw h5
+ Raw h6
+
+ Heading with .title-1
+ Heading with .title-2
+ Heading with .title-3
+ Heading with .subtitle-1
+ Heading with .subtitle-2
+ Heading with .subtitle-3
+ >
+
+
+ <>
+ Raw p
+
+ Paragraph with .body-1
+ Paragraph with .body-2
+ Paragraph with .body-3
+ Paragraph with .body-secondary-3
+ Paragraph with .body-placeholder
+ Paragraph with .body-link
+ Paragraph with .caption
+ Paragraph with .column-name
+ Paragraph with .resource-type
+ Paragraph with .helper-text
+ Paragraph with .text-placeholder
+ Paragraph with .text-secondary
+ Paragraph with .text-primary
+ >
+
>
);
};
-Body.story = {
- name: 'Body Text',
+Typography.story = {
+ name: 'Deprecated: Headings & Body',
};
diff --git a/amundsen_application/static/js/stories/welcome.story.tsx b/amundsen_application/static/js/stories/welcome.story.tsx
index 996370099..26d1a1a47 100644
--- a/amundsen_application/static/js/stories/welcome.story.tsx
+++ b/amundsen_application/static/js/stories/welcome.story.tsx
@@ -1,6 +1,8 @@
import React from 'react';
import { Welcome } from '@storybook/react/demo';
+import StorySection from '../components/common/StorySection';
+
export default {
title: 'Overview/Introduction',
component: Welcome,
@@ -9,31 +11,36 @@ export default {
export const Introduction = () => {
return (
<>
- Welcome to Amundsen's Component Library!
-
- A development area for developing new{' '}
- presentational components
-
-
- Do you ever miss having a “workshop” to develop new components before
- hooking them with the real data? Look no more, here is the place!
-
- In this environment you can:
-
- - Quickly develop new components for using them on Amundsen
- - See what components are available already
- - Be consistent with the Amundsen styling
- - Create manual tests for your components
- -
- Avoid the whole syncing thing while developing your presentational
- components
-
- -
- Clear the path to eventually move reusable components into the Data
- Product Language (DPL)
-
- - Prototype something really quick to show around
-
+
+ A development area for developing new{' '}
+ presentational components
+
+ }
+ >
+
+ Do you ever miss having a “workshop” to develop new components before
+ hooking them with the real data? Look no more, here is the place!
+
+ In this environment you can:
+
+ - Quickly develop new components for using them on Amundsen
+ - See what components are available already
+ - Be consistent with the Amundsen styling
+ - Create manual tests for your components
+ -
+ Avoid the whole syncing thing while developing your presentational
+ components
+
+ -
+ Clear the path to eventually move reusable components into the Data
+ Product Language (DPL)
+
+ - Prototype something really quick to show around
+
+
>
);
};
diff --git a/amundsen_application/static/package.json b/amundsen_application/static/package.json
index 5110cfc01..7e36f0756 100644
--- a/amundsen_application/static/package.json
+++ b/amundsen_application/static/package.json
@@ -25,7 +25,7 @@
"stylelint": "stylelint '**/*.scss'",
"stylelint:fix": "stylelint --fix '**/*.scss'",
"format": "prettier --loglevel warn --write \"**/*.{ts,tsx,css,scss}\"",
- "storybook": "cross-env TS_NODE_PROJECT='tsconfig.webpack.json' start-storybook -p 6006",
+ "storybook": "cross-env TS_NODE_PROJECT='tsconfig.webpack.json' start-storybook -s ../ -p 6006",
"build-storybook": "cross-env TS_NODE_PROJECT='tsconfig.webpack.json' build-storybook",
"betterer": "betterer",
"betterer:update": "betterer --update"