storybook-addon-design-system-docs 1.0.0 → 1.0.2

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.
Files changed (41) hide show
  1. package/README.md +143 -15
  2. package/dist/TypographySection-D8HHJr-s.d.ts +258 -0
  3. package/dist/TypographySection-DsqZs5oA.d.cts +258 -0
  4. package/dist/TypographySection-c6k_4ZVC.d.ts +258 -0
  5. package/dist/TypographySection-lyEjSYKu.d.cts +258 -0
  6. package/dist/assets.cjs +9 -0
  7. package/dist/assets.cjs.map +1 -0
  8. package/dist/assets.d.cts +28 -0
  9. package/dist/assets.d.ts +28 -0
  10. package/dist/assets.js +7 -0
  11. package/dist/assets.js.map +1 -0
  12. package/dist/components/assets/index.cjs +634 -0
  13. package/dist/components/assets/index.cjs.map +1 -0
  14. package/dist/components/assets/index.d.cts +150 -0
  15. package/dist/components/assets/index.d.ts +150 -0
  16. package/dist/components/assets/index.js +604 -0
  17. package/dist/components/assets/index.js.map +1 -0
  18. package/dist/components/primitives/index.cjs +963 -0
  19. package/dist/components/primitives/index.cjs.map +1 -0
  20. package/dist/components/primitives/index.d.cts +194 -0
  21. package/dist/components/primitives/index.d.ts +194 -0
  22. package/dist/components/primitives/index.js +905 -0
  23. package/dist/components/primitives/index.js.map +1 -0
  24. package/dist/index.cjs +8695 -0
  25. package/dist/index.cjs.map +1 -0
  26. package/dist/index.d.cts +136 -0
  27. package/dist/index.d.ts +136 -0
  28. package/dist/index.js +8639 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/jsx-runtime.d-kG9JzmQF.d.cts +15239 -0
  31. package/dist/jsx-runtime.d-kG9JzmQF.d.ts +15239 -0
  32. package/dist/manager.js +2 -2
  33. package/dist/manager.js.map +1 -0
  34. package/dist/preset.cjs +8185 -172
  35. package/dist/preset.cjs.map +1 -0
  36. package/dist/preset.js +8187 -8
  37. package/dist/preset.js.map +1 -0
  38. package/dist/types-BVOYHsBN.d.cts +178 -0
  39. package/dist/types-BVOYHsBN.d.ts +178 -0
  40. package/package.json +141 -143
  41. package/templates/spacing.mdx +1 -1
@@ -0,0 +1,178 @@
1
+ declare const VALID_SECTIONS: readonly ["Colors", "Typography", "Spacing", "Shadows", "Radius"];
2
+
3
+ /**
4
+ * User-facing configuration options for the Design System addon.
5
+ * These are the options passed to the addon in .storybook/main.ts
6
+ */
7
+ interface DesignSystemAddonOptions {
8
+ /**
9
+ * Path to your Tailwind config file (relative to .storybook/ directory).
10
+ * Example: '../tailwind.config.js' or '../src/styles.css' (for Tailwind v4)
11
+ * This is now required - backwards compatibility has been removed.
12
+ */
13
+ tailwindConfig: string;
14
+ /**
15
+ * Sidebar group name for all documentation pages. This replaces defaultPath.
16
+ * @default 'Design System/'
17
+ */
18
+ sidebarGroup?: string;
19
+ /**
20
+ * Which theme sections to enable.
21
+ * @default ['Colors', 'Typography', 'Spacing', 'Shadows', 'BorderRadius']
22
+ */
23
+ sections?: TailwindSectionInput[];
24
+ /**
25
+ * If defined, combines all sections into one story.
26
+ */
27
+ forceSingleDoc?: CustomSectionInput;
28
+ /**
29
+ * When true, hides Tailwind's built-in values and shows only custom values.
30
+ * @default false
31
+ */
32
+ showOnlyCustom?: boolean;
33
+ /**
34
+ * Typography configuration options.
35
+ */
36
+ typography?: {
37
+ example?: string;
38
+ };
39
+ /**
40
+ * Template configuration for custom MDX rendering.
41
+ */
42
+ templates?: TemplateConfig;
43
+ /**
44
+ * Asset group configurations for icons, illustrations, etc.
45
+ */
46
+ assets?: AssetGroupConfig[];
47
+ }
48
+ type TailwindConfigSections = (typeof VALID_SECTIONS)[number];
49
+ type SectionInput<NameType extends string> = NameType | {
50
+ name: NameType;
51
+ path?: string;
52
+ };
53
+ type TailwindSectionInput = SectionInput<TailwindConfigSections>;
54
+ type CustomSectionInput = SectionInput<string>;
55
+ interface NormalizedSection {
56
+ name: string;
57
+ path: string;
58
+ }
59
+ interface ResolvedConfig {
60
+ theme: {
61
+ colors: Record<string, any>;
62
+ fontSize: Record<string, any>;
63
+ fontFamily: Record<string, any>;
64
+ fontWeight: Record<string, any>;
65
+ spacing: Record<string, any>;
66
+ boxShadow: Record<string, any>;
67
+ borderRadius: Record<string, any>;
68
+ };
69
+ }
70
+ type ThemeCssVariables = Record<string, Record<string, string | string[]>>;
71
+ /**
72
+ * Configuration for the template system and source code generation.
73
+ */
74
+ interface TemplateConfig {
75
+ /**
76
+ * Path to directory containing custom templates.
77
+ * Templates in this directory override defaults by matching filename.
78
+ * @example './.storybook/theme-templates'
79
+ */
80
+ directory?: string;
81
+ /**
82
+ * Whether to enable template caching (default: true in production)
83
+ */
84
+ cache?: boolean;
85
+ /**
86
+ * Whether to use React components (true) or inline framework-agnostic templates (false).
87
+ * Default: false (framework-agnostic templates)
88
+ *
89
+ * When true: Templates use pre-built React components (smaller bundles, React-only)
90
+ * When false: Templates generate all markup/logic inline (larger bundles, framework-agnostic)
91
+ */
92
+ useReactComponents?: boolean;
93
+ /**
94
+ * Custom filters to add to the template engine.
95
+ * Key is the filter name, value is the filter function.
96
+ */
97
+ filters?: Record<string, (...args: any[]) => any>;
98
+ /**
99
+ * Additional context data available to all templates
100
+ */
101
+ globals?: Record<string, any>;
102
+ }
103
+ interface AssetVariantConfig {
104
+ enabled: boolean;
105
+ suffixes: [string, string];
106
+ defaultVariant: "light" | "dark";
107
+ }
108
+ interface AssetDisplayConfig {
109
+ layout: "grid" | "list";
110
+ columns: number;
111
+ showFilename: boolean;
112
+ showPath: boolean;
113
+ previewSize: number;
114
+ background: "transparent" | "light" | "dark" | "checkerboard";
115
+ }
116
+ interface AssetCopyConfig {
117
+ import?: string;
118
+ component?: string;
119
+ }
120
+ interface AssetFilterConfig {
121
+ include: string[];
122
+ exclude: string[];
123
+ }
124
+ interface AssetGroupConfig {
125
+ name: string;
126
+ path?: string;
127
+ source: string;
128
+ /**
129
+ * URL path where assets are served from (e.g., '/assets/illustrations').
130
+ * When provided, assets are served directly from this path without copying.
131
+ * User must configure staticDirs in their Storybook config to serve from this path.
132
+ */
133
+ staticPath?: string;
134
+ title?: string;
135
+ description?: string;
136
+ variants?: Partial<AssetVariantConfig>;
137
+ display?: Partial<AssetDisplayConfig>;
138
+ copy?: AssetCopyConfig;
139
+ filter?: Partial<AssetFilterConfig>;
140
+ groupByFolder?: boolean;
141
+ }
142
+ interface NormalizedAssetGroup {
143
+ name: string;
144
+ path: string;
145
+ source: string;
146
+ /** URL path where assets are served from. Either user-provided or auto-generated. */
147
+ staticPath: string;
148
+ title: string;
149
+ description?: string;
150
+ variants: AssetVariantConfig;
151
+ display: AssetDisplayConfig;
152
+ copy: AssetCopyConfig;
153
+ filter: AssetFilterConfig;
154
+ groupByFolder: boolean;
155
+ }
156
+ interface Asset {
157
+ id: string;
158
+ name: string;
159
+ filename: string;
160
+ relativePath: string;
161
+ absolutePath: string;
162
+ url: string;
163
+ folder?: string;
164
+ ext: string;
165
+ variants?: {
166
+ light?: string;
167
+ dark?: string;
168
+ };
169
+ type: "svg" | "png" | "jpg" | "jpeg" | "gif" | "webp";
170
+ }
171
+ interface AssetGroup {
172
+ name: string;
173
+ config: NormalizedAssetGroup;
174
+ assets: Asset[];
175
+ folders?: Map<string, Asset[]>;
176
+ }
177
+
178
+ export type { AssetGroup as A, DesignSystemAddonOptions as D, NormalizedAssetGroup as N, ResolvedConfig as R, ThemeCssVariables as T, Asset as a, AssetGroupConfig as b, AssetVariantConfig as c, NormalizedSection as d, TemplateConfig as e };
@@ -0,0 +1,178 @@
1
+ declare const VALID_SECTIONS: readonly ["Colors", "Typography", "Spacing", "Shadows", "Radius"];
2
+
3
+ /**
4
+ * User-facing configuration options for the Design System addon.
5
+ * These are the options passed to the addon in .storybook/main.ts
6
+ */
7
+ interface DesignSystemAddonOptions {
8
+ /**
9
+ * Path to your Tailwind config file (relative to .storybook/ directory).
10
+ * Example: '../tailwind.config.js' or '../src/styles.css' (for Tailwind v4)
11
+ * This is now required - backwards compatibility has been removed.
12
+ */
13
+ tailwindConfig: string;
14
+ /**
15
+ * Sidebar group name for all documentation pages. This replaces defaultPath.
16
+ * @default 'Design System/'
17
+ */
18
+ sidebarGroup?: string;
19
+ /**
20
+ * Which theme sections to enable.
21
+ * @default ['Colors', 'Typography', 'Spacing', 'Shadows', 'BorderRadius']
22
+ */
23
+ sections?: TailwindSectionInput[];
24
+ /**
25
+ * If defined, combines all sections into one story.
26
+ */
27
+ forceSingleDoc?: CustomSectionInput;
28
+ /**
29
+ * When true, hides Tailwind's built-in values and shows only custom values.
30
+ * @default false
31
+ */
32
+ showOnlyCustom?: boolean;
33
+ /**
34
+ * Typography configuration options.
35
+ */
36
+ typography?: {
37
+ example?: string;
38
+ };
39
+ /**
40
+ * Template configuration for custom MDX rendering.
41
+ */
42
+ templates?: TemplateConfig;
43
+ /**
44
+ * Asset group configurations for icons, illustrations, etc.
45
+ */
46
+ assets?: AssetGroupConfig[];
47
+ }
48
+ type TailwindConfigSections = (typeof VALID_SECTIONS)[number];
49
+ type SectionInput<NameType extends string> = NameType | {
50
+ name: NameType;
51
+ path?: string;
52
+ };
53
+ type TailwindSectionInput = SectionInput<TailwindConfigSections>;
54
+ type CustomSectionInput = SectionInput<string>;
55
+ interface NormalizedSection {
56
+ name: string;
57
+ path: string;
58
+ }
59
+ interface ResolvedConfig {
60
+ theme: {
61
+ colors: Record<string, any>;
62
+ fontSize: Record<string, any>;
63
+ fontFamily: Record<string, any>;
64
+ fontWeight: Record<string, any>;
65
+ spacing: Record<string, any>;
66
+ boxShadow: Record<string, any>;
67
+ borderRadius: Record<string, any>;
68
+ };
69
+ }
70
+ type ThemeCssVariables = Record<string, Record<string, string | string[]>>;
71
+ /**
72
+ * Configuration for the template system and source code generation.
73
+ */
74
+ interface TemplateConfig {
75
+ /**
76
+ * Path to directory containing custom templates.
77
+ * Templates in this directory override defaults by matching filename.
78
+ * @example './.storybook/theme-templates'
79
+ */
80
+ directory?: string;
81
+ /**
82
+ * Whether to enable template caching (default: true in production)
83
+ */
84
+ cache?: boolean;
85
+ /**
86
+ * Whether to use React components (true) or inline framework-agnostic templates (false).
87
+ * Default: false (framework-agnostic templates)
88
+ *
89
+ * When true: Templates use pre-built React components (smaller bundles, React-only)
90
+ * When false: Templates generate all markup/logic inline (larger bundles, framework-agnostic)
91
+ */
92
+ useReactComponents?: boolean;
93
+ /**
94
+ * Custom filters to add to the template engine.
95
+ * Key is the filter name, value is the filter function.
96
+ */
97
+ filters?: Record<string, (...args: any[]) => any>;
98
+ /**
99
+ * Additional context data available to all templates
100
+ */
101
+ globals?: Record<string, any>;
102
+ }
103
+ interface AssetVariantConfig {
104
+ enabled: boolean;
105
+ suffixes: [string, string];
106
+ defaultVariant: "light" | "dark";
107
+ }
108
+ interface AssetDisplayConfig {
109
+ layout: "grid" | "list";
110
+ columns: number;
111
+ showFilename: boolean;
112
+ showPath: boolean;
113
+ previewSize: number;
114
+ background: "transparent" | "light" | "dark" | "checkerboard";
115
+ }
116
+ interface AssetCopyConfig {
117
+ import?: string;
118
+ component?: string;
119
+ }
120
+ interface AssetFilterConfig {
121
+ include: string[];
122
+ exclude: string[];
123
+ }
124
+ interface AssetGroupConfig {
125
+ name: string;
126
+ path?: string;
127
+ source: string;
128
+ /**
129
+ * URL path where assets are served from (e.g., '/assets/illustrations').
130
+ * When provided, assets are served directly from this path without copying.
131
+ * User must configure staticDirs in their Storybook config to serve from this path.
132
+ */
133
+ staticPath?: string;
134
+ title?: string;
135
+ description?: string;
136
+ variants?: Partial<AssetVariantConfig>;
137
+ display?: Partial<AssetDisplayConfig>;
138
+ copy?: AssetCopyConfig;
139
+ filter?: Partial<AssetFilterConfig>;
140
+ groupByFolder?: boolean;
141
+ }
142
+ interface NormalizedAssetGroup {
143
+ name: string;
144
+ path: string;
145
+ source: string;
146
+ /** URL path where assets are served from. Either user-provided or auto-generated. */
147
+ staticPath: string;
148
+ title: string;
149
+ description?: string;
150
+ variants: AssetVariantConfig;
151
+ display: AssetDisplayConfig;
152
+ copy: AssetCopyConfig;
153
+ filter: AssetFilterConfig;
154
+ groupByFolder: boolean;
155
+ }
156
+ interface Asset {
157
+ id: string;
158
+ name: string;
159
+ filename: string;
160
+ relativePath: string;
161
+ absolutePath: string;
162
+ url: string;
163
+ folder?: string;
164
+ ext: string;
165
+ variants?: {
166
+ light?: string;
167
+ dark?: string;
168
+ };
169
+ type: "svg" | "png" | "jpg" | "jpeg" | "gif" | "webp";
170
+ }
171
+ interface AssetGroup {
172
+ name: string;
173
+ config: NormalizedAssetGroup;
174
+ assets: Asset[];
175
+ folders?: Map<string, Asset[]>;
176
+ }
177
+
178
+ export type { AssetGroup as A, DesignSystemAddonOptions as D, NormalizedAssetGroup as N, ResolvedConfig as R, ThemeCssVariables as T, Asset as a, AssetGroupConfig as b, AssetVariantConfig as c, NormalizedSection as d, TemplateConfig as e };
package/package.json CHANGED
@@ -1,153 +1,151 @@
1
1
  {
2
- "name": "storybook-addon-design-system-docs",
3
- "version": "1.0.0",
4
- "description": "Design System documentation that comes directly from your tailwind config.",
5
- "author": "Saulo Vallory <https://saulo.engineer>",
6
- "contributors": [
7
- "Matan Yosef <https://github.com/matanio>"
8
- ],
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/svallory/storybook-addon-design-system-docs"
12
- },
13
- "dependencies": {
14
- "unplugin": "^1.12.0"
15
- },
16
- "devDependencies": {
17
- "@biomejs/biome": "^2.3.11",
18
- "@chromatic-com/storybook": "^4.1.3",
19
- "@frontline-hq/recma-sections": "^1.0.8",
20
- "@storybook/addon-a11y": "^10.1.11",
21
- "@storybook/addon-docs": "^10.1.11",
22
- "@storybook/addon-links": "^10.1.11",
23
- "@storybook/addon-vitest": "^10.1.11",
24
- "@storybook/mdx2-csf": "^1.1.0",
25
- "@storybook/react-vite": "^10.1.11",
26
- "@types/node": "^18.15.0",
27
- "@types/react": "^18.2.65",
28
- "@types/react-dom": "^18.2.21",
29
- "@vitejs/plugin-react": "^4.2.1",
30
- "@vitest/browser": "^2.1.9",
31
- "@vitest/coverage-v8": "^2.1.9",
32
- "auto": "^11.1.1",
33
- "autoprefixer": "^10.4.23",
34
- "boxen": "^7.1.1",
35
- "dedent": "^1.5.1",
36
- "nodemon": "^3.1.10",
37
- "npm-run-all": "^4.1.5",
38
- "playwright": "^1.57.0",
39
- "postcss": "^8.5.6",
40
- "prompts": "^2.4.2",
41
- "react": "^18.2.0",
42
- "react-dom": "^18.2.0",
43
- "storybook": "^10.1.11",
44
- "tailwindcss": "^3.0.0 || ^4.0.0",
45
- "tsup": "^8.5.0",
46
- "typescript": "^5.4.2",
47
- "vite": "^5.4.21",
48
- "vitest": "^2.1.9",
49
- "zx": "^7.2.3"
50
- },
51
- "peerDependencies": {
52
- "tailwindcss": "^3.0.0 || ^4.0.0",
53
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
54
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
55
- },
56
- "exports": {
57
- ".": {
58
- "types": "./dist/index.d.ts",
59
- "import": "./dist/index.js",
60
- "require": "./dist/index.cjs"
2
+ "name": "storybook-addon-design-system-docs",
3
+ "version": "1.0.2",
4
+ "description": "Design System documentation that comes directly from your tailwind config.",
5
+ "author": "Saulo Vallory <https://saulo.engineer>",
6
+ "contributors": [
7
+ "Matan Yosef <https://github.com/matanio>"
8
+ ],
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/svallory/storybook-addon-design-system-docs"
61
12
  },
62
- "./preset": {
63
- "types": "./dist/preset.d.ts",
64
- "import": "./dist/preset.js",
65
- "require": "./dist/preset.cjs"
13
+ "dependencies": {
14
+ "unplugin": "^1.12.0"
66
15
  },
67
- "./manager": "./dist/manager.js",
68
- "./components": {
69
- "types": "./dist/components/primitives/index.d.ts",
70
- "import": "./dist/components/primitives/index.js"
16
+ "devDependencies": {
17
+ "@biomejs/biome": "^2.3.11",
18
+ "@chromatic-com/storybook": "^4.1.3",
19
+ "@frontline-hq/recma-sections": "^1.0.8",
20
+ "@storybook/addon-a11y": "^10.1.11",
21
+ "@storybook/addon-docs": "^10.1.11",
22
+ "@storybook/addon-links": "^10.1.11",
23
+ "@storybook/addon-vitest": "^10.1.11",
24
+ "@storybook/mdx2-csf": "^1.1.0",
25
+ "@storybook/react-vite": "^10.1.11",
26
+ "@types/node": "^18.15.0",
27
+ "@types/react": "^18.2.65",
28
+ "@types/react-dom": "^18.2.21",
29
+ "@vitejs/plugin-react": "^4.2.1",
30
+ "@vitest/browser": "^2.1.9",
31
+ "@vitest/coverage-v8": "^2.1.9",
32
+ "auto": "^11.1.1",
33
+ "autoprefixer": "^10.4.23",
34
+ "boxen": "^7.1.1",
35
+ "dedent": "^1.5.1",
36
+ "nodemon": "^3.1.10",
37
+ "npm-run-all": "^4.1.5",
38
+ "playwright": "^1.57.0",
39
+ "postcss": "^8.5.6",
40
+ "prompts": "^2.4.2",
41
+ "react": "^18.2.0",
42
+ "react-dom": "^18.2.0",
43
+ "storybook": "^10.1.11",
44
+ "tailwindcss": "^3.0.0 || ^4.0.0",
45
+ "tsup": "^8.5.0",
46
+ "typescript": "^5.4.2",
47
+ "vite": "^5.4.21",
48
+ "vitest": "^2.1.9",
49
+ "zx": "^7.2.3"
71
50
  },
72
- "./components/theme": {
73
- "types": "./dist/components/primitives/index.d.ts",
74
- "import": "./dist/components/primitives/index.js",
75
- "require": "./dist/components/primitives/index.cjs"
51
+ "peerDependencies": {
52
+ "tailwindcss": "^3.0.0 || ^4.0.0"
76
53
  },
77
- "./components/assets": {
78
- "types": "./dist/components/assets/index.d.ts",
79
- "import": "./dist/components/assets/index.js",
80
- "require": "./dist/components/assets/index.cjs"
54
+ "exports": {
55
+ ".": {
56
+ "types": "./dist/index.d.ts",
57
+ "import": "./dist/index.js",
58
+ "require": "./dist/index.cjs"
59
+ },
60
+ "./preset": {
61
+ "types": "./dist/preset.d.ts",
62
+ "import": "./dist/preset.js",
63
+ "require": "./dist/preset.cjs"
64
+ },
65
+ "./manager": "./dist/manager.js",
66
+ "./components": {
67
+ "types": "./dist/components/primitives/index.d.ts",
68
+ "import": "./dist/components/primitives/index.js"
69
+ },
70
+ "./components/theme": {
71
+ "types": "./dist/components/primitives/index.d.ts",
72
+ "import": "./dist/components/primitives/index.js",
73
+ "require": "./dist/components/primitives/index.cjs"
74
+ },
75
+ "./components/assets": {
76
+ "types": "./dist/components/assets/index.d.ts",
77
+ "import": "./dist/components/assets/index.js",
78
+ "require": "./dist/components/assets/index.cjs"
79
+ },
80
+ "./assets": {
81
+ "types": "./dist/assets.d.ts",
82
+ "import": "./dist/assets.js",
83
+ "require": "./dist/assets.cjs"
84
+ },
85
+ "./mdx-templates/*": "./templates/*.mdx",
86
+ "./package.json": "./package.json"
81
87
  },
82
- "./assets": {
83
- "types": "./dist/assets.d.ts",
84
- "import": "./dist/assets.js",
85
- "require": "./dist/assets.cjs"
88
+ "bundler": {
89
+ "exportEntries": [
90
+ "src/addon/index.ts",
91
+ "src/addon/assets.ts",
92
+ "src/addon/components/primitives/index.ts",
93
+ "src/addon/components/assets/index.ts"
94
+ ],
95
+ "managerEntries": [
96
+ "src/addon/manager.tsx"
97
+ ],
98
+ "nodeEntries": [
99
+ "src/addon/preset.ts"
100
+ ]
86
101
  },
87
- "./mdx-templates/*": "./templates/*.mdx",
88
- "./package.json": "./package.json"
89
- },
90
- "bundler": {
91
- "exportEntries": [
92
- "src/addon/index.ts",
93
- "src/addon/assets.ts",
94
- "src/addon/components/primitives/index.ts",
95
- "src/addon/components/assets/index.ts"
96
- ],
97
- "managerEntries": [
98
- "src/addon/manager.tsx"
102
+ "files": [
103
+ "dist/**/*",
104
+ "templates",
105
+ "README.md",
106
+ "*.js",
107
+ "*.d.ts"
99
108
  ],
100
- "nodeEntries": [
101
- "src/addon/preset.ts"
102
- ]
103
- },
104
- "files": [
105
- "dist/**/*",
106
- "templates",
107
- "README.md",
108
- "*.js",
109
- "*.d.ts"
110
- ],
111
- "keywords": [
112
- "tailwind",
113
- "css",
114
- "layout",
115
- "appearance",
116
- "style",
117
- "design",
118
- "system",
119
- "auto",
120
- "docs",
121
- "storybook-addons"
122
- ],
123
- "license": "MIT",
124
- "overrides": {
125
- "storybook": "$storybook"
126
- },
127
- "publishConfig": {
128
- "access": "public"
129
- },
130
- "scripts": {
131
- "build": "tsup",
132
- "build:watch": "bun run build -- --watch",
133
- "test": "vitest",
134
- "lint": "biome check src",
135
- "lint:fix": "biome check src --write",
136
- "format": "biome format src --write",
137
- "start": "bun run build && run-p build:watch storybook:rebuild",
138
- "prerelease": "zx scripts/prepublish-checks.js",
139
- "release": "bun run build && auto shipit",
140
- "storybook:rebuild": "nodemon --watch dist --exec \"storybook dev -p 6006 --no-open\"",
141
- "storybook": "storybook dev -p 6006",
142
- "build-storybook": "storybook build"
143
- },
144
- "storybook": {
145
- "displayName": "Design System Docs",
146
- "supportedFrameworks": [
147
- "react",
148
- "vue"
109
+ "keywords": [
110
+ "tailwind",
111
+ "css",
112
+ "layout",
113
+ "appearance",
114
+ "style",
115
+ "design",
116
+ "system",
117
+ "auto",
118
+ "docs",
119
+ "storybook-addons"
149
120
  ],
150
- "icon": "https://user-images.githubusercontent.com/321738/63501763-88dbf600-c4cc-11e9-96cd-94adadc2fd72.png"
151
- },
152
- "type": "module"
121
+ "license": "MIT",
122
+ "overrides": {
123
+ "storybook": "$storybook"
124
+ },
125
+ "publishConfig": {
126
+ "access": "public"
127
+ },
128
+ "scripts": {
129
+ "build": "tsup",
130
+ "build:watch": "bun run build -- --watch",
131
+ "test": "vitest",
132
+ "lint": "biome check src",
133
+ "lint:fix": "biome check src --write",
134
+ "format": "biome format src --write",
135
+ "start": "bun run build && run-p build:watch storybook:rebuild",
136
+ "prerelease": "zx scripts/prepublish-checks.js",
137
+ "release": "bun run build && auto shipit",
138
+ "storybook:rebuild": "nodemon --watch dist --exec \"storybook dev -p 6006 --no-open\"",
139
+ "storybook": "storybook dev -p 6006",
140
+ "build-storybook": "storybook build"
141
+ },
142
+ "storybook": {
143
+ "displayName": "Design System Docs",
144
+ "supportedFrameworks": [
145
+ "react",
146
+ "vue"
147
+ ],
148
+ "icon": "https://user-images.githubusercontent.com/321738/63501763-88dbf600-c4cc-11e9-96cd-94adadc2fd72.png"
149
+ },
150
+ "type": "module"
153
151
  }
@@ -2,7 +2,7 @@ import { Meta } from "@storybook/addon-docs/blocks";
2
2
  import { SpacingSection, ThemeLayout } from 'storybook-addon-design-system-docs/components/theme';
3
3
  import { spacing } from 'design-system-docs:theme';
4
4
 
5
- <Meta title="Design System/Layout/Spacing" />
5
+ <Meta title="Design System/Spacing" />
6
6
 
7
7
  <ThemeLayout title="Spacing">
8
8
  <SpacingSection