@jiel/strata-ui 0.0.0-stage → 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.
@@ -0,0 +1,277 @@
1
+ {
2
+ "components": [
3
+ {
4
+ "name": "Badge",
5
+ "variants": {
6
+ "variant": [
7
+ "default",
8
+ "primary",
9
+ "outline",
10
+ "destructive",
11
+ "success",
12
+ "warning"
13
+ ]
14
+ },
15
+ "defaultVariants": {
16
+ "variant": "default"
17
+ },
18
+ "tokenBindings": {
19
+ "background": "color.accent",
20
+ "foreground": "color.accentForeground",
21
+ "radius": "radius.full",
22
+ "fontSize": "font.size.xs",
23
+ "fontWeight": "font.weight.semibold"
24
+ },
25
+ "layout": {
26
+ "paddingX": "space.2",
27
+ "paddingY": "space.1"
28
+ }
29
+ },
30
+ {
31
+ "name": "Button",
32
+ "variants": {
33
+ "variant": [
34
+ "primary",
35
+ "secondary",
36
+ "ghost"
37
+ ],
38
+ "size": [
39
+ "sm",
40
+ "md",
41
+ "lg"
42
+ ]
43
+ },
44
+ "defaultVariants": {
45
+ "variant": "primary",
46
+ "size": "md"
47
+ },
48
+ "tokenBindings": {
49
+ "background": "color.accent",
50
+ "foreground": "color.accentForeground",
51
+ "radius": "radius.md",
52
+ "fontFamily": "font.sans",
53
+ "fontSize": "font.size.sm",
54
+ "fontWeight": "font.weight.medium"
55
+ },
56
+ "layout": {
57
+ "height": "space.8",
58
+ "paddingX": "space.4",
59
+ "gap": "space.2"
60
+ }
61
+ },
62
+ {
63
+ "name": "Card",
64
+ "variants": {},
65
+ "defaultVariants": {},
66
+ "tokenBindings": {
67
+ "background": "color.background",
68
+ "border": "color.border",
69
+ "radius": "radius.lg",
70
+ "shadow": "shadow.sm"
71
+ },
72
+ "layout": {
73
+ "padding": "space.6",
74
+ "gap": "space.4"
75
+ }
76
+ },
77
+ {
78
+ "name": "CardDescription",
79
+ "variants": {},
80
+ "defaultVariants": {},
81
+ "tokenBindings": {},
82
+ "layout": {}
83
+ },
84
+ {
85
+ "name": "CardTitle",
86
+ "variants": {},
87
+ "defaultVariants": {},
88
+ "tokenBindings": {},
89
+ "layout": {}
90
+ },
91
+ {
92
+ "name": "Dialog",
93
+ "variants": {},
94
+ "defaultVariants": {},
95
+ "tokenBindings": {
96
+ "background": "color.background",
97
+ "border": "color.border",
98
+ "radius": "radius.lg",
99
+ "shadow": "shadow.md"
100
+ },
101
+ "layout": {
102
+ "padding": "space.6"
103
+ }
104
+ },
105
+ {
106
+ "name": "EmptyState",
107
+ "variants": {},
108
+ "defaultVariants": {},
109
+ "tokenBindings": {
110
+ "foreground": "color.mutedForeground",
111
+ "background": "color.muted"
112
+ },
113
+ "layout": {
114
+ "padding": "space.8",
115
+ "gap": "space.4"
116
+ }
117
+ },
118
+ {
119
+ "name": "Input",
120
+ "variants": {},
121
+ "defaultVariants": {},
122
+ "tokenBindings": {
123
+ "background": "color.background",
124
+ "border": "color.border",
125
+ "foreground": "color.foreground",
126
+ "radius": "radius.md",
127
+ "fontSize": "font.size.sm"
128
+ },
129
+ "layout": {
130
+ "height": "space.8",
131
+ "paddingX": "space.3"
132
+ }
133
+ },
134
+ {
135
+ "name": "Metric",
136
+ "variants": {
137
+ "tone": [
138
+ "positive",
139
+ "negative",
140
+ "neutral"
141
+ ]
142
+ },
143
+ "defaultVariants": {},
144
+ "tokenBindings": {
145
+ "foreground": "color.foreground",
146
+ "fontSize": "font.size.3xl",
147
+ "fontWeight": "font.weight.bold",
148
+ "numeric": "font.numeric"
149
+ },
150
+ "layout": {
151
+ "gap": "space.1"
152
+ }
153
+ },
154
+ {
155
+ "name": "SegmentedControl",
156
+ "variants": {},
157
+ "defaultVariants": {},
158
+ "tokenBindings": {
159
+ "background": "color.muted",
160
+ "foreground": "color.foreground",
161
+ "radius": "radius.md"
162
+ },
163
+ "layout": {
164
+ "padding": "space.1",
165
+ "gap": "space.1"
166
+ }
167
+ },
168
+ {
169
+ "name": "Select",
170
+ "variants": {},
171
+ "defaultVariants": {},
172
+ "tokenBindings": {
173
+ "background": "color.background",
174
+ "border": "color.border",
175
+ "foreground": "color.foreground",
176
+ "radius": "radius.md",
177
+ "fontSize": "font.size.sm"
178
+ },
179
+ "layout": {
180
+ "height": "space.8",
181
+ "paddingX": "space.3"
182
+ }
183
+ },
184
+ {
185
+ "name": "Skeleton",
186
+ "variants": {},
187
+ "defaultVariants": {},
188
+ "tokenBindings": {
189
+ "background": "color.muted",
190
+ "radius": "radius.md"
191
+ },
192
+ "layout": {}
193
+ },
194
+ {
195
+ "name": "Table",
196
+ "variants": {},
197
+ "defaultVariants": {},
198
+ "tokenBindings": {
199
+ "border": "color.border",
200
+ "foreground": "color.foreground"
201
+ },
202
+ "layout": {}
203
+ },
204
+ {
205
+ "name": "TableBody",
206
+ "variants": {},
207
+ "defaultVariants": {},
208
+ "tokenBindings": {},
209
+ "layout": {}
210
+ },
211
+ {
212
+ "name": "TableCell",
213
+ "variants": {
214
+ "align": [
215
+ "left",
216
+ "right"
217
+ ]
218
+ },
219
+ "defaultVariants": {},
220
+ "tokenBindings": {},
221
+ "layout": {}
222
+ },
223
+ {
224
+ "name": "TableHead",
225
+ "variants": {},
226
+ "defaultVariants": {},
227
+ "tokenBindings": {},
228
+ "layout": {}
229
+ },
230
+ {
231
+ "name": "TableHeaderCell",
232
+ "variants": {
233
+ "align": [
234
+ "left",
235
+ "right"
236
+ ]
237
+ },
238
+ "defaultVariants": {},
239
+ "tokenBindings": {},
240
+ "layout": {}
241
+ },
242
+ {
243
+ "name": "TableRow",
244
+ "variants": {},
245
+ "defaultVariants": {},
246
+ "tokenBindings": {},
247
+ "layout": {}
248
+ },
249
+ {
250
+ "name": "Tabs",
251
+ "variants": {},
252
+ "defaultVariants": {},
253
+ "tokenBindings": {
254
+ "foreground": "color.mutedForeground",
255
+ "radius": "radius.md"
256
+ },
257
+ "layout": {
258
+ "gap": "space.2"
259
+ }
260
+ },
261
+ {
262
+ "name": "Tooltip",
263
+ "variants": {},
264
+ "defaultVariants": {},
265
+ "tokenBindings": {
266
+ "background": "color.foreground",
267
+ "foreground": "color.background",
268
+ "radius": "radius.sm",
269
+ "fontSize": "font.size.xs"
270
+ },
271
+ "layout": {
272
+ "paddingX": "space.2",
273
+ "paddingY": "space.1"
274
+ }
275
+ }
276
+ ]
277
+ }
package/package.json CHANGED
@@ -1,6 +1,58 @@
1
1
  {
2
2
  "name": "@jiel/strata-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Strata — a layered React design system (design tokens + accessible components).",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./styles.css": "./strata.css",
16
+ "./theme.css": "./dist/index.css",
17
+ "./catalogs.json": "./dist-catalogs/catalogs.json"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "strata.css",
22
+ "dist-catalogs"
23
+ ],
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "scripts": {
28
+ "build": "node scripts/build-tokens.mjs && node scripts/build-catalogs.mjs && tsup",
29
+ "prepublishOnly": "pnpm build",
30
+ "typecheck": "node scripts/build-tokens.mjs && tsc --noEmit",
31
+ "storybook": "storybook dev -p 6006",
32
+ "build-storybook": "storybook build",
33
+ "chromatic": "npx chromatic --exit-zero-on-changes"
34
+ },
35
+ "peerDependencies": {
36
+ "react": "^18.0.0 || ^19.0.0",
37
+ "react-dom": "^18.0.0 || ^19.0.0"
38
+ },
39
+ "dependencies": {
40
+ "@base-ui/react": "^1.8.0",
41
+ "@vanilla-extract/css": "^1.21.3",
42
+ "@vanilla-extract/recipes": "^0.5.7",
43
+ "class-variance-authority": "^0.7.1"
44
+ },
45
+ "devDependencies": {
46
+ "@storybook/addon-a11y": "^10.6.0",
47
+ "@storybook/addon-docs": "^10.6.0",
48
+ "@storybook/react-vite": "^10.6.0",
49
+ "@types/react": "^19.0.0",
50
+ "@types/react-dom": "^19.0.0",
51
+ "@vanilla-extract/esbuild-plugin": "^2.3.22",
52
+ "react": "^19.0.0",
53
+ "react-dom": "^19.0.0",
54
+ "style-dictionary": "^4.0.0",
55
+ "tsup": "^8.3.5",
56
+ "typescript": "^5.7.0"
57
+ }
58
+ }