@oddmash/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.
package/package.json CHANGED
@@ -1,6 +1,111 @@
1
1
  {
2
2
  "name": "@oddmash/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": "Small, themeable React foundations for Oddmash tools.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Oddmash/oddmash-ui.git"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "tokens",
14
+ "README.md",
15
+ "LICENSE"
16
+ ],
17
+ "sideEffects": [
18
+ "**/*.css",
19
+ "**/*.scss"
20
+ ],
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js"
25
+ },
26
+ "./styles.css": "./dist/styles.css",
27
+ "./tokens.css": "./dist/tokens.css",
28
+ "./tokens": {
29
+ "types": "./dist/tokens.d.ts",
30
+ "import": "./dist/tokens.js"
31
+ },
32
+ "./button": {
33
+ "types": "./dist/button.d.ts",
34
+ "import": "./dist/button.js"
35
+ },
36
+ "./input": {
37
+ "types": "./dist/input.d.ts",
38
+ "import": "./dist/input.js"
39
+ },
40
+ "./card": {
41
+ "types": "./dist/card.d.ts",
42
+ "import": "./dist/card.js"
43
+ },
44
+ "./badge": {
45
+ "types": "./dist/badge.d.ts",
46
+ "import": "./dist/badge.js"
47
+ },
48
+ "./tabs": {
49
+ "types": "./dist/tabs.d.ts",
50
+ "import": "./dist/tabs.js"
51
+ },
52
+ "./dialog": {
53
+ "types": "./dist/dialog.d.ts",
54
+ "import": "./dist/dialog.js"
55
+ },
56
+ "./tokens/*.json": "./tokens/*.json"
57
+ },
58
+ "engines": {
59
+ "node": ">=24"
60
+ },
61
+ "scripts": {
62
+ "tokens": "tsx scripts/tokens.ts",
63
+ "tokens:check": "tsx scripts/tokens.ts --check",
64
+ "build": "npm run tokens && tsup && sass --no-source-map src/styles.scss dist/styles.css && cp src/generated/tokens.css dist/tokens.css",
65
+ "typecheck": "tsc --noEmit",
66
+ "lint": "eslint .",
67
+ "test": "vitest run",
68
+ "storybook": "storybook dev -p 6006",
69
+ "build-storybook": "storybook build",
70
+ "demo": "vite --config demo/vite.config.ts",
71
+ "build:demo": "vite build --config demo/vite.config.ts",
72
+ "check": "npm run tokens:check && npm run typecheck && npm run lint && npm test && npm run build && npm run test:bundle && npm run build-storybook && npm run build:demo",
73
+ "test:browser": "playwright test",
74
+ "prepare": "npm run build",
75
+ "test:bundle": "tsx scripts/bundle.ts"
76
+ },
77
+ "devDependencies": {
78
+ "@axe-core/playwright": "^4.14.0",
79
+ "@playwright/test": "^1.65.0",
80
+ "@storybook/react-vite": "^10.6.7",
81
+ "@testing-library/jest-dom": "^7.0.1",
82
+ "@testing-library/react": "^16.3.3",
83
+ "@testing-library/user-event": "^14.6.10",
84
+ "@types/node": "^26.6.6",
85
+ "@types/react": "^19.3.0",
86
+ "@types/react-dom": "^19.3.0",
87
+ "@vitejs/plugin-react": "^6.3.0",
88
+ "esbuild": "^0.28.2",
89
+ "eslint": "^10.14.0",
90
+ "jsdom": "^29.1.1",
91
+ "react": "^19.3.1",
92
+ "react-dom": "^19.3.1",
93
+ "sass": "^1.108.2",
94
+ "storybook": "^10.6.7",
95
+ "style-dictionary": "^5.8.0",
96
+ "tsup": "^9.0.0",
97
+ "tsx": "^4.23.15",
98
+ "typescript": "^6.0.3",
99
+ "typescript-eslint": "^8.72.2",
100
+ "vite": "^8.3.8",
101
+ "vitest": "^5.1.0"
102
+ },
103
+ "peerDependencies": {
104
+ "react": "^18.3.1 || ^19.0.0",
105
+ "react-dom": "^18.3.1 || ^19.0.0"
106
+ },
107
+ "dependencies": {
108
+ "@radix-ui/react-dialog": "^1.3.1",
109
+ "@radix-ui/react-tabs": "^1.2.1"
110
+ }
111
+ }
@@ -0,0 +1,460 @@
1
+ {
2
+ "primitive": {
3
+ "color": {
4
+ "white": {
5
+ "$type": "color",
6
+ "$value": {
7
+ "colorSpace": "srgb",
8
+ "components": [
9
+ 1.0,
10
+ 1.0,
11
+ 1.0
12
+ ],
13
+ "alpha": 1,
14
+ "hex": "#ffffff"
15
+ }
16
+ },
17
+ "ink": {
18
+ "$type": "color",
19
+ "$value": {
20
+ "colorSpace": "srgb",
21
+ "components": [
22
+ 0.105882,
23
+ 0.137255,
24
+ 0.117647
25
+ ],
26
+ "alpha": 1,
27
+ "hex": "#1b231e"
28
+ }
29
+ },
30
+ "paper": {
31
+ "$type": "color",
32
+ "$value": {
33
+ "colorSpace": "srgb",
34
+ "components": [
35
+ 0.968627,
36
+ 0.972549,
37
+ 0.956863
38
+ ],
39
+ "alpha": 1,
40
+ "hex": "#f7f8f4"
41
+ }
42
+ },
43
+ "muted": {
44
+ "$type": "color",
45
+ "$value": {
46
+ "colorSpace": "srgb",
47
+ "components": [
48
+ 0.384314,
49
+ 0.419608,
50
+ 0.388235
51
+ ],
52
+ "alpha": 1,
53
+ "hex": "#626b63"
54
+ }
55
+ },
56
+ "line": {
57
+ "$type": "color",
58
+ "$value": {
59
+ "colorSpace": "srgb",
60
+ "components": [
61
+ 0.501961,
62
+ 0.545098,
63
+ 0.505882
64
+ ],
65
+ "alpha": 1,
66
+ "hex": "#808b81"
67
+ }
68
+ },
69
+ "mint": {
70
+ "$type": "color",
71
+ "$value": {
72
+ "colorSpace": "srgb",
73
+ "components": [
74
+ 0.129412,
75
+ 0.423529,
76
+ 0.313725
77
+ ],
78
+ "alpha": 1,
79
+ "hex": "#216c50"
80
+ }
81
+ },
82
+ "mintHover": {
83
+ "$type": "color",
84
+ "$value": {
85
+ "colorSpace": "srgb",
86
+ "components": [
87
+ 0.094118,
88
+ 0.32549,
89
+ 0.239216
90
+ ],
91
+ "alpha": 1,
92
+ "hex": "#18533d"
93
+ }
94
+ },
95
+ "night": {
96
+ "$type": "color",
97
+ "$value": {
98
+ "colorSpace": "srgb",
99
+ "components": [
100
+ 0.082353,
101
+ 0.101961,
102
+ 0.090196
103
+ ],
104
+ "alpha": 1,
105
+ "hex": "#151a17"
106
+ }
107
+ },
108
+ "surface": {
109
+ "$type": "color",
110
+ "$value": {
111
+ "colorSpace": "srgb",
112
+ "components": [
113
+ 0.117647,
114
+ 0.14902,
115
+ 0.129412
116
+ ],
117
+ "alpha": 1,
118
+ "hex": "#1e2621"
119
+ }
120
+ },
121
+ "bright": {
122
+ "$type": "color",
123
+ "$value": {
124
+ "colorSpace": "srgb",
125
+ "components": [
126
+ 0.929412,
127
+ 0.94902,
128
+ 0.92549
129
+ ],
130
+ "alpha": 1,
131
+ "hex": "#edf2ec"
132
+ }
133
+ },
134
+ "dim": {
135
+ "$type": "color",
136
+ "$value": {
137
+ "colorSpace": "srgb",
138
+ "components": [
139
+ 0.67451,
140
+ 0.72549,
141
+ 0.682353
142
+ ],
143
+ "alpha": 1,
144
+ "hex": "#acb9ae"
145
+ }
146
+ },
147
+ "darkLine": {
148
+ "$type": "color",
149
+ "$value": {
150
+ "colorSpace": "srgb",
151
+ "components": [
152
+ 0.482353,
153
+ 0.54902,
154
+ 0.498039
155
+ ],
156
+ "alpha": 1,
157
+ "hex": "#7b8c7f"
158
+ }
159
+ },
160
+ "paleMint": {
161
+ "$type": "color",
162
+ "$value": {
163
+ "colorSpace": "srgb",
164
+ "components": [
165
+ 0.72549,
166
+ 0.909804,
167
+ 0.8
168
+ ],
169
+ "alpha": 1,
170
+ "hex": "#b9e8cc"
171
+ }
172
+ },
173
+ "paleHover": {
174
+ "$type": "color",
175
+ "$value": {
176
+ "colorSpace": "srgb",
177
+ "components": [
178
+ 0.827451,
179
+ 0.94902,
180
+ 0.870588
181
+ ],
182
+ "alpha": 1,
183
+ "hex": "#d3f2de"
184
+ }
185
+ },
186
+ "danger": {
187
+ "$type": "color",
188
+ "$value": {
189
+ "colorSpace": "srgb",
190
+ "components": [
191
+ 0.705882,
192
+ 0.137255,
193
+ 0.094118
194
+ ],
195
+ "alpha": 1,
196
+ "hex": "#b42318"
197
+ }
198
+ },
199
+ "dangerDark": {
200
+ "$type": "color",
201
+ "$value": {
202
+ "colorSpace": "srgb",
203
+ "components": [
204
+ 1.0,
205
+ 0.705882,
206
+ 0.670588
207
+ ],
208
+ "alpha": 1,
209
+ "hex": "#ffb4ab"
210
+ }
211
+ },
212
+ "overlay": {
213
+ "$type": "color",
214
+ "$value": {
215
+ "colorSpace": "srgb",
216
+ "components": [
217
+ 0.0,
218
+ 0.0,
219
+ 0.0
220
+ ],
221
+ "alpha": 1,
222
+ "hex": "#000000"
223
+ }
224
+ },
225
+ "softLine": {
226
+ "$type": "color",
227
+ "$value": {
228
+ "colorSpace": "srgb",
229
+ "components": [
230
+ 0.878431,
231
+ 0.898039,
232
+ 0.862745
233
+ ],
234
+ "alpha": 1,
235
+ "hex": "#e0e5dc"
236
+ }
237
+ },
238
+ "darkSoftLine": {
239
+ "$type": "color",
240
+ "$value": {
241
+ "colorSpace": "srgb",
242
+ "components": [
243
+ 0.211765,
244
+ 0.270588,
245
+ 0.231373
246
+ ],
247
+ "alpha": 1,
248
+ "hex": "#36453b"
249
+ }
250
+ },
251
+ "actionHover": {
252
+ "$type": "color",
253
+ "$value": {
254
+ "colorSpace": "srgb",
255
+ "components": [
256
+ 0.203922,
257
+ 0.258824,
258
+ 0.223529
259
+ ],
260
+ "alpha": 1,
261
+ "hex": "#344239"
262
+ }
263
+ }
264
+ },
265
+ "space": {
266
+ "0": {
267
+ "$type": "dimension",
268
+ "$value": {
269
+ "value": 0,
270
+ "unit": "px"
271
+ }
272
+ },
273
+ "2": {
274
+ "$type": "dimension",
275
+ "$value": {
276
+ "value": 2,
277
+ "unit": "px"
278
+ }
279
+ },
280
+ "4": {
281
+ "$type": "dimension",
282
+ "$value": {
283
+ "value": 4,
284
+ "unit": "px"
285
+ }
286
+ },
287
+ "8": {
288
+ "$type": "dimension",
289
+ "$value": {
290
+ "value": 8,
291
+ "unit": "px"
292
+ }
293
+ },
294
+ "12": {
295
+ "$type": "dimension",
296
+ "$value": {
297
+ "value": 12,
298
+ "unit": "px"
299
+ }
300
+ },
301
+ "16": {
302
+ "$type": "dimension",
303
+ "$value": {
304
+ "value": 16,
305
+ "unit": "px"
306
+ }
307
+ },
308
+ "24": {
309
+ "$type": "dimension",
310
+ "$value": {
311
+ "value": 24,
312
+ "unit": "px"
313
+ }
314
+ },
315
+ "32": {
316
+ "$type": "dimension",
317
+ "$value": {
318
+ "value": 32,
319
+ "unit": "px"
320
+ }
321
+ }
322
+ },
323
+ "radius": {
324
+ "sm": {
325
+ "$type": "dimension",
326
+ "$value": {
327
+ "value": 6,
328
+ "unit": "px"
329
+ }
330
+ },
331
+ "md": {
332
+ "$type": "dimension",
333
+ "$value": {
334
+ "value": 8,
335
+ "unit": "px"
336
+ }
337
+ },
338
+ "lg": {
339
+ "$type": "dimension",
340
+ "$value": {
341
+ "value": 12,
342
+ "unit": "px"
343
+ }
344
+ },
345
+ "pill": {
346
+ "$type": "dimension",
347
+ "$value": {
348
+ "value": 999,
349
+ "unit": "px"
350
+ }
351
+ }
352
+ },
353
+ "font": {
354
+ "family": {
355
+ "$type": "fontFamily",
356
+ "$value": [
357
+ "Inter",
358
+ "system-ui",
359
+ "sans-serif"
360
+ ]
361
+ },
362
+ "size": {
363
+ "sm": {
364
+ "$type": "dimension",
365
+ "$value": {
366
+ "value": 13,
367
+ "unit": "px"
368
+ }
369
+ },
370
+ "md": {
371
+ "$type": "dimension",
372
+ "$value": {
373
+ "value": 14,
374
+ "unit": "px"
375
+ }
376
+ },
377
+ "lg": {
378
+ "$type": "dimension",
379
+ "$value": {
380
+ "value": 20,
381
+ "unit": "px"
382
+ }
383
+ }
384
+ },
385
+ "weight": {
386
+ "normal": {
387
+ "$type": "fontWeight",
388
+ "$value": 400
389
+ },
390
+ "medium": {
391
+ "$type": "fontWeight",
392
+ "$value": 500
393
+ }
394
+ },
395
+ "line": {
396
+ "$type": "number",
397
+ "$value": 1.5
398
+ }
399
+ },
400
+ "border": {
401
+ "width": {
402
+ "$type": "dimension",
403
+ "$value": {
404
+ "value": 1,
405
+ "unit": "px"
406
+ }
407
+ }
408
+ },
409
+ "motion": {
410
+ "fast": {
411
+ "$type": "duration",
412
+ "$value": {
413
+ "value": 120,
414
+ "unit": "ms"
415
+ }
416
+ },
417
+ "ease": {
418
+ "$type": "cubicBezier",
419
+ "$value": [
420
+ 0.2,
421
+ 0,
422
+ 0,
423
+ 1
424
+ ]
425
+ }
426
+ },
427
+ "shadow": {
428
+ "panel": {
429
+ "$type": "shadow",
430
+ "$value": {
431
+ "color": {
432
+ "colorSpace": "srgb",
433
+ "components": [
434
+ 0,
435
+ 0,
436
+ 0
437
+ ],
438
+ "alpha": 0.18
439
+ },
440
+ "offsetX": {
441
+ "value": 0,
442
+ "unit": "px"
443
+ },
444
+ "offsetY": {
445
+ "value": 12,
446
+ "unit": "px"
447
+ },
448
+ "blur": {
449
+ "value": 36,
450
+ "unit": "px"
451
+ },
452
+ "spread": {
453
+ "value": 0,
454
+ "unit": "px"
455
+ }
456
+ }
457
+ }
458
+ }
459
+ }
460
+ }