storybook-addon-design-system-docs 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ import { Meta } from "@storybook/addon-docs/blocks";
2
+ import { ColorSection, ThemeLayout } from 'storybook-addon-design-system-docs/components/theme';
3
+ import { colors } from 'design-system-docs:theme';
4
+
5
+ <Meta title="Design System/Colors" />
6
+
7
+ <ThemeLayout title="Colors">
8
+ <ColorSection
9
+ customColors={colors.customColors}
10
+ builtInColors={colors.builtInColors}
11
+ showOnlyCustom={false}
12
+ />
13
+ </ThemeLayout>
@@ -0,0 +1,57 @@
1
+ import {
2
+ ColorSection,
3
+ TypographySection,
4
+ SpacingSection,
5
+ ShadowsSection,
6
+ BorderRadiusSection
7
+ } from 'storybook-addon-design-system-docs/components/theme';
8
+ import { colors, typography, spacing, shadows, borderRadius } from 'design-system-docs:theme';
9
+ import { Meta } from "@storybook/addon-docs/blocks";
10
+
11
+ <Meta title="Design System" />
12
+
13
+ # Design System
14
+
15
+ ## Colors
16
+
17
+ <ColorSection
18
+ customColors={colors.customColors}
19
+ builtInColors={colors.builtInColors}
20
+ showOnlyCustom={false}
21
+ />
22
+
23
+ ---
24
+
25
+ ## Typography
26
+
27
+ <TypographySection
28
+ customFamilies={typography.customFamilies}
29
+ builtInFamilies={typography.builtInFamilies}
30
+ fontWeights={typography.fontWeights}
31
+ fontSizes={typography.fontSizes}
32
+ allWeightKeys={typography.allWeightKeys}
33
+ allSizeKeys={typography.allSizeKeys}
34
+ defaultSampleText="Lorem ipsum dolor sit amet."
35
+ showOnlyCustom={false}
36
+ />
37
+
38
+ ---
39
+
40
+ ## Spacing
41
+
42
+ <SpacingSection
43
+ entries={spacing.entries}
44
+ maxValue={spacing.maxValue}
45
+ />
46
+
47
+ ---
48
+
49
+ ## Shadows
50
+
51
+ <ShadowsSection entries={shadows.entries} />
52
+
53
+ ---
54
+
55
+ ## Border Radius
56
+
57
+ <BorderRadiusSection entries={borderRadius.entries} />
@@ -0,0 +1,9 @@
1
+ import { Meta } from "@storybook/addon-docs/blocks";
2
+ import { RadiusSection, ThemeLayout } from 'storybook-addon-design-system-docs/components/theme';
3
+ import { borderRadius } from 'design-system-docs:theme';
4
+
5
+ <Meta title="Design System/Border Radius" />
6
+
7
+ <ThemeLayout title="Border Radius">
8
+ <RadiusSection entries={borderRadius.entries} />
9
+ </ThemeLayout>
@@ -0,0 +1,9 @@
1
+ import { Meta } from "@storybook/addon-docs/blocks";
2
+ import { ShadowsSection, ThemeLayout } from 'storybook-addon-design-system-docs/components/theme';
3
+ import { shadows } from 'design-system-docs:theme';
4
+
5
+ <Meta title="Design System/Shadows" />
6
+
7
+ <ThemeLayout title="Shadows">
8
+ <ShadowsSection entries={shadows.entries} />
9
+ </ThemeLayout>
@@ -0,0 +1,12 @@
1
+ import { Meta } from "@storybook/addon-docs/blocks";
2
+ import { SpacingSection, ThemeLayout } from 'storybook-addon-design-system-docs/components/theme';
3
+ import { spacing } from 'design-system-docs:theme';
4
+
5
+ <Meta title="Design System/Layout/Spacing" />
6
+
7
+ <ThemeLayout title="Spacing">
8
+ <SpacingSection
9
+ entries={spacing.entries}
10
+ maxValue={spacing.maxValue}
11
+ />
12
+ </ThemeLayout>
@@ -0,0 +1,18 @@
1
+ import { Meta } from "@storybook/addon-docs/blocks";
2
+ import { TypographySection, ThemeLayout } from 'storybook-addon-design-system-docs/components/theme';
3
+ import { typography } from 'design-system-docs:theme';
4
+
5
+ <Meta title="Design System/Typography" />
6
+
7
+ <ThemeLayout title="Typography">
8
+ <TypographySection
9
+ customFamilies={typography.customFamilies}
10
+ builtInFamilies={typography.builtInFamilies}
11
+ fontWeights={typography.fontWeights}
12
+ fontSizes={typography.fontSizes}
13
+ allWeightKeys={typography.allWeightKeys}
14
+ allSizeKeys={typography.allSizeKeys}
15
+ defaultSampleText="Lorem ipsum dolor sit amet."
16
+ showOnlyCustom={false}
17
+ />
18
+ </ThemeLayout>