storybook-addon-design-system-docs 1.0.1 → 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.
- package/README.md +143 -15
- package/dist/components/assets/index.cjs +2 -2
- package/dist/components/assets/index.cjs.map +1 -1
- package/dist/components/assets/index.js +2 -2
- package/dist/components/assets/index.js.map +1 -1
- package/dist/components/primitives/index.cjs +2 -2
- package/dist/components/primitives/index.cjs.map +1 -1
- package/dist/components/primitives/index.js +2 -2
- package/dist/components/primitives/index.js.map +1 -1
- package/dist/index.cjs +29 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -23
- package/dist/index.js.map +1 -1
- package/dist/preset.cjs +215 -81
- package/dist/preset.cjs.map +1 -1
- package/dist/preset.js +215 -81
- package/dist/preset.js.map +1 -1
- package/package.json +141 -141
- package/templates/spacing.mdx +1 -1
package/package.json
CHANGED
|
@@ -1,151 +1,151 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
},
|
|
54
|
-
"exports": {
|
|
55
|
-
".": {
|
|
56
|
-
"types": "./dist/index.d.ts",
|
|
57
|
-
"import": "./dist/index.js",
|
|
58
|
-
"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"
|
|
59
12
|
},
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"import": "./dist/preset.js",
|
|
63
|
-
"require": "./dist/preset.cjs"
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"unplugin": "^1.12.0"
|
|
64
15
|
},
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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"
|
|
69
50
|
},
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
"import": "./dist/components/primitives/index.js",
|
|
73
|
-
"require": "./dist/components/primitives/index.cjs"
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"tailwindcss": "^3.0.0 || ^4.0.0"
|
|
74
53
|
},
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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"
|
|
79
87
|
},
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
+
]
|
|
84
101
|
},
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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"
|
|
102
|
+
"files": [
|
|
103
|
+
"dist/**/*",
|
|
104
|
+
"templates",
|
|
105
|
+
"README.md",
|
|
106
|
+
"*.js",
|
|
107
|
+
"*.d.ts"
|
|
97
108
|
],
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"keywords": [
|
|
110
|
-
"tailwind",
|
|
111
|
-
"css",
|
|
112
|
-
"layout",
|
|
113
|
-
"appearance",
|
|
114
|
-
"style",
|
|
115
|
-
"design",
|
|
116
|
-
"system",
|
|
117
|
-
"auto",
|
|
118
|
-
"docs",
|
|
119
|
-
"storybook-addons"
|
|
120
|
-
],
|
|
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"
|
|
109
|
+
"keywords": [
|
|
110
|
+
"tailwind",
|
|
111
|
+
"css",
|
|
112
|
+
"layout",
|
|
113
|
+
"appearance",
|
|
114
|
+
"style",
|
|
115
|
+
"design",
|
|
116
|
+
"system",
|
|
117
|
+
"auto",
|
|
118
|
+
"docs",
|
|
119
|
+
"storybook-addons"
|
|
147
120
|
],
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
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"
|
|
151
151
|
}
|
package/templates/spacing.mdx
CHANGED
|
@@ -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/
|
|
5
|
+
<Meta title="Design System/Spacing" />
|
|
6
6
|
|
|
7
7
|
<ThemeLayout title="Spacing">
|
|
8
8
|
<SpacingSection
|