strata-react 0.1.5 → 0.1.9
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 +117 -9
- package/bin/strata-visual.js +6 -0
- package/dist/components/active-list.d.ts +46 -0
- package/dist/components/button.d.ts +9 -0
- package/dist/components/checkbox.d.ts +14 -0
- package/dist/components/data-table.d.ts +14 -0
- package/dist/components/hotkeys.d.ts +29 -0
- package/dist/components/infinite-list.d.ts +29 -0
- package/dist/components/line-chart.d.ts +24 -3
- package/dist/components/selection.d.ts +22 -0
- package/dist/components/undo.d.ts +51 -8
- package/dist/components/virtual-list.d.ts +5 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.js +857 -79
- package/dist/index.js.map +1 -1
- package/dist/query/index.d.ts +2 -1
- package/dist/query/infinite.d.ts +47 -0
- package/dist/{query-CmdlXVW_.js → query-5469ipOC.js} +4 -3
- package/dist/{query-CmdlXVW_.js.map → query-5469ipOC.js.map} +1 -1
- package/dist/run-CLQi924v.js +605 -0
- package/dist/run-CLQi924v.js.map +1 -0
- package/dist/testing.js +1 -1
- package/dist/visual/capture.d.ts +22 -0
- package/dist/visual/cli.d.ts +5 -0
- package/dist/visual/compare.d.ts +31 -0
- package/dist/visual/index.d.ts +17 -0
- package/dist/visual/run.d.ts +22 -0
- package/dist/visual/serve.d.ts +11 -0
- package/dist/visual/targets.d.ts +17 -0
- package/dist/visual/types.d.ts +158 -0
- package/dist/visual-cli.js +118 -0
- package/dist/visual-cli.js.map +1 -0
- package/dist/visual.js +1 -0
- package/package.json +32 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strata-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "React + Tailwind v4 components that ship structure, behaviour, states and a token contract, and no look: each product brings a theme generated from its own subject.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"import": "./dist/testing.js",
|
|
25
25
|
"default": "./dist/testing.js"
|
|
26
26
|
},
|
|
27
|
+
"./visual": {
|
|
28
|
+
"types": "./dist/visual/index.d.ts",
|
|
29
|
+
"import": "./dist/visual.js",
|
|
30
|
+
"default": "./dist/visual.js"
|
|
31
|
+
},
|
|
27
32
|
"./strata.css": {
|
|
28
33
|
"style": "./dist/strata.css",
|
|
29
34
|
"default": "./dist/strata.css"
|
|
@@ -32,6 +37,7 @@
|
|
|
32
37
|
},
|
|
33
38
|
"files": [
|
|
34
39
|
"dist",
|
|
40
|
+
"bin",
|
|
35
41
|
"README.md"
|
|
36
42
|
],
|
|
37
43
|
"scripts": {
|
|
@@ -45,33 +51,47 @@
|
|
|
45
51
|
"coverage": "vitest run --project unit --coverage",
|
|
46
52
|
"storybook": "storybook dev -p 6006",
|
|
47
53
|
"build-storybook": "storybook build --quiet -o storybook-static",
|
|
48
|
-
"test:visual": "npm run build-storybook && node
|
|
49
|
-
"test:visual:update": "npm run build-storybook && node
|
|
54
|
+
"test:visual": "npm run build && npm run build-storybook && npm run build-example && node bin/strata-visual.js",
|
|
55
|
+
"test:visual:update": "npm run build && npm run build-storybook && npm run build-example && node bin/strata-visual.js --update",
|
|
50
56
|
"prepare": "npm run build",
|
|
51
57
|
"prepublishOnly": "npm run test:all",
|
|
52
58
|
"docs:api": "typedoc",
|
|
53
|
-
"site": "npm run build-storybook && typedoc && node scripts/build-site.mjs"
|
|
59
|
+
"site": "npm run build-storybook && typedoc && node scripts/build-site.mjs",
|
|
60
|
+
"build-example": "vite build --config examples/kiln-app/vite.config.ts --logLevel warn"
|
|
54
61
|
},
|
|
55
62
|
"keywords": [
|
|
56
63
|
"react",
|
|
57
64
|
"tailwindcss",
|
|
58
65
|
"design-system",
|
|
59
66
|
"components",
|
|
60
|
-
"storybook"
|
|
67
|
+
"storybook",
|
|
68
|
+
"visual-regression"
|
|
61
69
|
],
|
|
62
70
|
"author": "jburnhams",
|
|
63
71
|
"license": "MIT",
|
|
64
72
|
"peerDependencies": {
|
|
65
73
|
"@tanstack/react-query": "^5.0.0",
|
|
66
74
|
"@testing-library/react": "^16.0.0",
|
|
75
|
+
"msw": "^2.7.0 || ^3.0.0",
|
|
76
|
+
"playwright": ">=1.49.0",
|
|
67
77
|
"react": "^19.0.0",
|
|
68
78
|
"react-dom": "^19.0.0",
|
|
69
79
|
"react-router": "^7.0.0 || ^8.0.0",
|
|
70
|
-
"tailwindcss": "^4.1.0"
|
|
80
|
+
"tailwindcss": "^4.1.0",
|
|
81
|
+
"vite": ">=6.1.0"
|
|
71
82
|
},
|
|
72
83
|
"peerDependenciesMeta": {
|
|
73
84
|
"@testing-library/react": {
|
|
74
85
|
"optional": true
|
|
86
|
+
},
|
|
87
|
+
"msw": {
|
|
88
|
+
"optional": true
|
|
89
|
+
},
|
|
90
|
+
"playwright": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
93
|
+
"vite": {
|
|
94
|
+
"optional": true
|
|
75
95
|
}
|
|
76
96
|
},
|
|
77
97
|
"dependencies": {
|
|
@@ -81,10 +101,13 @@
|
|
|
81
101
|
"class-variance-authority": "^0.7.1",
|
|
82
102
|
"clsx": "^2.1.1",
|
|
83
103
|
"lucide-react": "^0.500.0",
|
|
104
|
+
"pixelmatch": "^8.0.0",
|
|
105
|
+
"pngjs": "^7.0.0",
|
|
84
106
|
"tailwind-merge": "^3.3.0"
|
|
85
107
|
},
|
|
86
108
|
"devDependencies": {
|
|
87
109
|
"@fontsource-variable/archivo": "^5.3.0",
|
|
110
|
+
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
88
111
|
"@fontsource-variable/public-sans": "^5.3.0",
|
|
89
112
|
"@storybook/addon-a11y": "^10.6.6",
|
|
90
113
|
"@storybook/addon-docs": "^10.6.6",
|
|
@@ -104,9 +127,7 @@
|
|
|
104
127
|
"jsdom": "^31.0.0",
|
|
105
128
|
"msw": "^3.0.4",
|
|
106
129
|
"msw-storybook-addon": "^3.0.3",
|
|
107
|
-
"pixelmatch": "^8.0.0",
|
|
108
130
|
"playwright": "1.63.0",
|
|
109
|
-
"pngjs": "^7.0.0",
|
|
110
131
|
"react": "^19.3.1",
|
|
111
132
|
"react-dom": "^19.3.1",
|
|
112
133
|
"react-router": "^8.5.1",
|
|
@@ -125,5 +146,8 @@
|
|
|
125
146
|
"workerDirectory": [
|
|
126
147
|
".storybook/public"
|
|
127
148
|
]
|
|
149
|
+
},
|
|
150
|
+
"bin": {
|
|
151
|
+
"strata-visual": "./bin/strata-visual.js"
|
|
128
152
|
}
|
|
129
153
|
}
|