@unpunnyfuns/swatchbook-addon 0.1.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.
- package/LICENSE +21 -0
- package/README.md +121 -0
- package/dist/constants-1plfdgh7.mjs +21 -0
- package/dist/constants-1plfdgh7.mjs.map +1 -0
- package/dist/hooks/index.d.mts +37 -0
- package/dist/hooks/index.mjs +33 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/index.d.mts +22 -0
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -0
- package/dist/manager.d.mts +1 -0
- package/dist/manager.mjs +903 -0
- package/dist/manager.mjs.map +1 -0
- package/dist/options-rvGQy0uV.d.mts +17 -0
- package/dist/preset.d.mts +20 -0
- package/dist/preset.mjs +163 -0
- package/dist/preset.mjs.map +1 -0
- package/dist/preview-DcMFt0cD.mjs +240 -0
- package/dist/preview-DcMFt0cD.mjs.map +1 -0
- package/dist/preview.d.mts +13 -0
- package/dist/preview.mjs +2 -0
- package/package.json +96 -0
package/dist/preview.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unpunnyfuns/swatchbook-addon",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Storybook addon for DTCG design tokens — toolbar, panel, and useToken hook.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "unpunnyfuns <unpunnyfuns@gmail.com>",
|
|
7
|
+
"homepage": "https://unpunnyfuns.github.io/swatchbook/",
|
|
8
|
+
"bugs": "https://github.com/unpunnyfuns/swatchbook/issues",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/unpunnyfuns/swatchbook.git",
|
|
12
|
+
"directory": "packages/addon"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"storybook",
|
|
16
|
+
"storybook-addon",
|
|
17
|
+
"storybook-addons",
|
|
18
|
+
"design-tokens",
|
|
19
|
+
"dtcg",
|
|
20
|
+
"design-system",
|
|
21
|
+
"tokens"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=24.14.0"
|
|
26
|
+
},
|
|
27
|
+
"main": "./dist/index.mjs",
|
|
28
|
+
"types": "./dist/index.d.mts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.mts",
|
|
32
|
+
"import": "./dist/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./preset": {
|
|
35
|
+
"types": "./dist/preset.d.mts",
|
|
36
|
+
"import": "./dist/preset.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./preview": {
|
|
39
|
+
"types": "./dist/preview.d.mts",
|
|
40
|
+
"import": "./dist/preview.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./manager": {
|
|
43
|
+
"types": "./dist/manager.d.mts",
|
|
44
|
+
"import": "./dist/manager.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./hooks": {
|
|
47
|
+
"types": "./dist/hooks/index.d.mts",
|
|
48
|
+
"import": "./dist/hooks/index.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./package.json": "./package.json"
|
|
51
|
+
},
|
|
52
|
+
"imports": {
|
|
53
|
+
"#/*": "./src/*"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist"
|
|
57
|
+
],
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"storybook": {
|
|
62
|
+
"displayName": "Swatchbook",
|
|
63
|
+
"icon": "https://raw.githubusercontent.com/unpunnyfuns/swatchbook/main/apps/storybook/public/logo.svg",
|
|
64
|
+
"supportedFrameworks": [
|
|
65
|
+
"react"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"jiti": "^2.4.0",
|
|
70
|
+
"@unpunnyfuns/swatchbook-blocks": "0.1.0",
|
|
71
|
+
"@unpunnyfuns/swatchbook-core": "0.1.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"react": ">=18",
|
|
75
|
+
"react-dom": ">=18",
|
|
76
|
+
"storybook": "^10.3.5"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@storybook/react-vite": "^10.3.5",
|
|
80
|
+
"@types/node": "^25.6.0",
|
|
81
|
+
"@types/react": "^19.2.14",
|
|
82
|
+
"react": "^19.2.4",
|
|
83
|
+
"react-dom": "^19.2.4",
|
|
84
|
+
"storybook": "^10.3.5",
|
|
85
|
+
"tsdown": "^0.21.9",
|
|
86
|
+
"typescript": "^6.0.0",
|
|
87
|
+
"vite": "^8.0.4"
|
|
88
|
+
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"build": "tsdown",
|
|
91
|
+
"typecheck": "tsc --noEmit",
|
|
92
|
+
"lint": "oxlint --deny-warnings -c ../../.oxlintrc.json src",
|
|
93
|
+
"format": "oxfmt -c ../../.oxfmtrc.json src",
|
|
94
|
+
"format:check": "oxfmt --check -c ../../.oxfmtrc.json src"
|
|
95
|
+
}
|
|
96
|
+
}
|