@digiko-npm/designsystem 0.7.2 → 0.8.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.
Files changed (58) hide show
  1. package/dist/designsystem.css +6682 -4515
  2. package/dist/designsystem.min.css +2 -2
  3. package/package.json +18 -3
  4. package/src/components/accordion.css +129 -128
  5. package/src/components/alert.css +137 -134
  6. package/src/components/avatar.css +77 -77
  7. package/src/components/badge.css +52 -52
  8. package/src/components/bottom-nav.css +71 -71
  9. package/src/components/bottom-sheet.css +146 -0
  10. package/src/components/breadcrumb.css +61 -61
  11. package/src/components/button.css +162 -154
  12. package/src/components/card.css +94 -72
  13. package/src/components/chip.css +38 -38
  14. package/src/components/collapsible.css +96 -100
  15. package/src/components/color-picker.css +82 -0
  16. package/src/components/combobox.css +418 -0
  17. package/src/components/command.css +141 -140
  18. package/src/components/copy-button.css +106 -0
  19. package/src/components/datepicker.css +257 -251
  20. package/src/components/description-list.css +89 -87
  21. package/src/components/divider.css +45 -45
  22. package/src/components/drawer.css +185 -174
  23. package/src/components/drop-zone.css +85 -84
  24. package/src/components/dropdown.css +148 -140
  25. package/src/components/empty-state.css +50 -50
  26. package/src/components/field.css +35 -0
  27. package/src/components/gallery.css +257 -0
  28. package/src/components/icon-btn.css +2 -1
  29. package/src/components/index.css +14 -3
  30. package/src/components/input.css +205 -146
  31. package/src/components/kbd.css +10 -10
  32. package/src/components/modal.css +92 -90
  33. package/src/components/nav.css +140 -138
  34. package/src/components/number-input.css +163 -0
  35. package/src/components/pagination.css +152 -139
  36. package/src/components/pin-input.css +136 -0
  37. package/src/components/popover.css +72 -72
  38. package/src/components/progress.css +128 -129
  39. package/src/components/result.css +53 -57
  40. package/src/components/scroll-area.css +73 -0
  41. package/src/components/search.css +10 -4
  42. package/src/components/segmented-control.css +93 -0
  43. package/src/components/skeleton.css +58 -58
  44. package/src/components/slider.css +102 -100
  45. package/src/components/sortable.css +44 -45
  46. package/src/components/spinner.css +27 -27
  47. package/src/components/star-rating.css +121 -0
  48. package/src/components/stat-card.css +38 -25
  49. package/src/components/table.css +288 -3
  50. package/src/components/tabs.css +121 -121
  51. package/src/components/tag.css +124 -124
  52. package/src/components/timeline.css +99 -99
  53. package/src/components/toast.css +37 -38
  54. package/src/components/toggle.css +88 -88
  55. package/src/components/toolbar.css +137 -121
  56. package/src/components/tooltip.css +150 -150
  57. package/src/components/truncated-text.css +75 -0
  58. package/src/tokens/tokens.json +413 -0
@@ -0,0 +1,413 @@
1
+ {
2
+ "$schema": "https://design-tokens.github.io/community-group/format/",
3
+ "color": {
4
+ "light": {
5
+ "bg": {
6
+ "$value": "#fafafa",
7
+ "$type": "color",
8
+ "$description": "Main background"
9
+ },
10
+ "bg-subtle": {
11
+ "$value": "#ffffff",
12
+ "$type": "color",
13
+ "$description": "Subtle background"
14
+ },
15
+ "bg-muted": {
16
+ "$value": "#e4e4e7",
17
+ "$type": "color",
18
+ "$description": "Muted background"
19
+ },
20
+ "bg-elevated": {
21
+ "$value": "#f4f4f5",
22
+ "$type": "color",
23
+ "$description": "Elevated background"
24
+ },
25
+ "surface": {
26
+ "$value": "#ffffff",
27
+ "$type": "color",
28
+ "$description": "Surface color"
29
+ },
30
+ "surface-hover": {
31
+ "$value": "#fafafa",
32
+ "$type": "color"
33
+ },
34
+ "surface-active": {
35
+ "$value": "#f4f4f5",
36
+ "$type": "color"
37
+ },
38
+ "text": {
39
+ "$value": "#09090b",
40
+ "$type": "color",
41
+ "$description": "Primary text — 19.3:1 contrast on bg"
42
+ },
43
+ "text-secondary": {
44
+ "$value": "#52525b",
45
+ "$type": "color",
46
+ "$description": "Secondary text — 7.6:1 contrast on bg"
47
+ },
48
+ "text-tertiary": {
49
+ "$value": "#a1a1aa",
50
+ "$type": "color",
51
+ "$description": "Tertiary text — decorative only"
52
+ },
53
+ "text-disabled": {
54
+ "$value": "#d4d4d8",
55
+ "$type": "color",
56
+ "$description": "Disabled text — exempt per WCAG 1.4.3"
57
+ },
58
+ "inverted": {
59
+ "$value": "#18181b",
60
+ "$type": "color"
61
+ },
62
+ "on-inverted": {
63
+ "$value": "#fafafa",
64
+ "$type": "color"
65
+ },
66
+ "border": {
67
+ "$value": "#e4e4e7",
68
+ "$type": "color"
69
+ },
70
+ "border-hover": {
71
+ "$value": "#d4d4d8",
72
+ "$type": "color"
73
+ },
74
+ "border-active": {
75
+ "$value": "#a1a1aa",
76
+ "$type": "color"
77
+ },
78
+ "border-subtle": {
79
+ "$value": "#f4f4f5",
80
+ "$type": "color"
81
+ },
82
+ "interactive": {
83
+ "$value": "#3f3f46",
84
+ "$type": "color"
85
+ },
86
+ "interactive-hover": {
87
+ "$value": "#27272a",
88
+ "$type": "color"
89
+ },
90
+ "overlay": {
91
+ "$value": "rgba(0, 0, 0, 0.5)",
92
+ "$type": "color"
93
+ },
94
+ "overlay-subtle": {
95
+ "$value": "rgba(0, 0, 0, 0.02)",
96
+ "$type": "color"
97
+ },
98
+ "overlay-hover": {
99
+ "$value": "rgba(0, 0, 0, 0.04)",
100
+ "$type": "color"
101
+ },
102
+ "overlay-active": {
103
+ "$value": "rgba(0, 0, 0, 0.08)",
104
+ "$type": "color"
105
+ },
106
+ "nav-bg": {
107
+ "$value": "rgba(250, 250, 250, 0.8)",
108
+ "$type": "color"
109
+ },
110
+ "nav-border": {
111
+ "$value": "rgba(228, 228, 231, 0.6)",
112
+ "$type": "color"
113
+ },
114
+ "selection-bg": {
115
+ "$value": "#09090b",
116
+ "$type": "color"
117
+ },
118
+ "selection-text": {
119
+ "$value": "#fafafa",
120
+ "$type": "color"
121
+ },
122
+ "scrollbar-thumb": {
123
+ "$value": "#d4d4d4",
124
+ "$type": "color"
125
+ },
126
+ "scrollbar-thumb-hover": {
127
+ "$value": "#a3a3a3",
128
+ "$type": "color"
129
+ }
130
+ },
131
+ "dark": {
132
+ "bg": {
133
+ "$value": "#09090b",
134
+ "$type": "color"
135
+ },
136
+ "bg-subtle": {
137
+ "$value": "#0f0f11",
138
+ "$type": "color"
139
+ },
140
+ "bg-muted": {
141
+ "$value": "#18181b",
142
+ "$type": "color"
143
+ },
144
+ "bg-elevated": {
145
+ "$value": "#1c1c20",
146
+ "$type": "color"
147
+ },
148
+ "surface": {
149
+ "$value": "#0f0f11",
150
+ "$type": "color"
151
+ },
152
+ "surface-hover": {
153
+ "$value": "#18181b",
154
+ "$type": "color"
155
+ },
156
+ "surface-active": {
157
+ "$value": "#27272a",
158
+ "$type": "color"
159
+ },
160
+ "text": {
161
+ "$value": "#fafafa",
162
+ "$type": "color"
163
+ },
164
+ "text-secondary": {
165
+ "$value": "#a1a1aa",
166
+ "$type": "color"
167
+ },
168
+ "text-tertiary": {
169
+ "$value": "#71717a",
170
+ "$type": "color"
171
+ },
172
+ "text-disabled": {
173
+ "$value": "#3f3f46",
174
+ "$type": "color"
175
+ },
176
+ "inverted": {
177
+ "$value": "#fafafa",
178
+ "$type": "color"
179
+ },
180
+ "on-inverted": {
181
+ "$value": "#09090b",
182
+ "$type": "color"
183
+ },
184
+ "border": {
185
+ "$value": "#27272a",
186
+ "$type": "color"
187
+ },
188
+ "border-hover": {
189
+ "$value": "#3f3f46",
190
+ "$type": "color"
191
+ },
192
+ "border-active": {
193
+ "$value": "#52525b",
194
+ "$type": "color"
195
+ },
196
+ "border-subtle": {
197
+ "$value": "#18181b",
198
+ "$type": "color"
199
+ },
200
+ "interactive": {
201
+ "$value": "#d4d4d8",
202
+ "$type": "color"
203
+ },
204
+ "interactive-hover": {
205
+ "$value": "#fafafa",
206
+ "$type": "color"
207
+ },
208
+ "overlay": {
209
+ "$value": "rgba(0, 0, 0, 0.7)",
210
+ "$type": "color"
211
+ },
212
+ "overlay-subtle": {
213
+ "$value": "rgba(255, 255, 255, 0.03)",
214
+ "$type": "color"
215
+ },
216
+ "overlay-hover": {
217
+ "$value": "rgba(255, 255, 255, 0.06)",
218
+ "$type": "color"
219
+ },
220
+ "overlay-active": {
221
+ "$value": "rgba(255, 255, 255, 0.1)",
222
+ "$type": "color"
223
+ },
224
+ "nav-bg": {
225
+ "$value": "rgba(9, 9, 11, 0.8)",
226
+ "$type": "color"
227
+ },
228
+ "nav-border": {
229
+ "$value": "rgba(39, 39, 42, 0.6)",
230
+ "$type": "color"
231
+ },
232
+ "selection-bg": {
233
+ "$value": "#fafafa",
234
+ "$type": "color"
235
+ },
236
+ "selection-text": {
237
+ "$value": "#09090b",
238
+ "$type": "color"
239
+ },
240
+ "scrollbar-thumb": {
241
+ "$value": "#27272a",
242
+ "$type": "color"
243
+ },
244
+ "scrollbar-thumb-hover": {
245
+ "$value": "#3f3f46",
246
+ "$type": "color"
247
+ }
248
+ },
249
+ "semantic": {
250
+ "success": {
251
+ "default": { "$value": "#16a34a", "$type": "color" },
252
+ "subtle": { "$value": "rgba(22, 163, 74, 0.1)", "$type": "color" },
253
+ "border": { "$value": "rgba(22, 163, 74, 0.2)", "$type": "color" },
254
+ "solid": { "$value": "#16a34a", "$type": "color" }
255
+ },
256
+ "warning": {
257
+ "default": { "$value": "#d97706", "$type": "color" },
258
+ "subtle": { "$value": "rgba(217, 119, 6, 0.1)", "$type": "color" },
259
+ "border": { "$value": "rgba(217, 119, 6, 0.2)", "$type": "color" },
260
+ "solid": { "$value": "#d97706", "$type": "color" }
261
+ },
262
+ "error": {
263
+ "default": { "$value": "#dc2626", "$type": "color" },
264
+ "subtle": { "$value": "rgba(220, 38, 38, 0.1)", "$type": "color" },
265
+ "border": { "$value": "rgba(220, 38, 38, 0.2)", "$type": "color" },
266
+ "solid": { "$value": "#dc2626", "$type": "color" }
267
+ },
268
+ "info": {
269
+ "default": { "$value": "#2563eb", "$type": "color" },
270
+ "subtle": { "$value": "rgba(37, 99, 235, 0.1)", "$type": "color" },
271
+ "border": { "$value": "rgba(37, 99, 235, 0.2)", "$type": "color" },
272
+ "solid": { "$value": "#2563eb", "$type": "color" }
273
+ }
274
+ },
275
+ "accent": {
276
+ "blue": { "$value": "#2563eb", "$type": "color" },
277
+ "blue-subtle": { "$value": "rgba(37, 99, 235, 0.1)", "$type": "color" },
278
+ "blue-border": { "$value": "rgba(37, 99, 235, 0.2)", "$type": "color" },
279
+ "purple": { "$value": "#7c3aed", "$type": "color" },
280
+ "purple-subtle": { "$value": "rgba(124, 58, 237, 0.1)", "$type": "color" },
281
+ "purple-border": { "$value": "rgba(124, 58, 237, 0.2)", "$type": "color" },
282
+ "green": { "$value": "#16a34a", "$type": "color" },
283
+ "green-subtle": { "$value": "rgba(22, 163, 74, 0.1)", "$type": "color" },
284
+ "green-border": { "$value": "rgba(22, 163, 74, 0.2)", "$type": "color" },
285
+ "orange": { "$value": "#d97706", "$type": "color" },
286
+ "orange-subtle": { "$value": "rgba(217, 119, 6, 0.1)", "$type": "color" },
287
+ "orange-border": { "$value": "rgba(217, 119, 6, 0.2)", "$type": "color" }
288
+ },
289
+ "shadow": {
290
+ "light": {
291
+ "sm": { "$value": "0 1px 2px rgba(0, 0, 0, 0.05)", "$type": "shadow" },
292
+ "md": { "$value": "0 4px 12px rgba(0, 0, 0, 0.08)", "$type": "shadow" },
293
+ "lg": { "$value": "0 8px 24px rgba(0, 0, 0, 0.12)", "$type": "shadow" }
294
+ },
295
+ "dark": {
296
+ "sm": { "$value": "0 1px 2px rgba(0, 0, 0, 0.2)", "$type": "shadow" },
297
+ "md": { "$value": "0 4px 12px rgba(0, 0, 0, 0.3)", "$type": "shadow" },
298
+ "lg": { "$value": "0 8px 24px rgba(0, 0, 0, 0.4)", "$type": "shadow" }
299
+ }
300
+ }
301
+ },
302
+ "spacing": {
303
+ "0": { "$value": "0", "$type": "dimension" },
304
+ "0-5": { "$value": "0.125rem", "$type": "dimension", "$description": "2px" },
305
+ "1": { "$value": "0.25rem", "$type": "dimension", "$description": "4px" },
306
+ "1-5": { "$value": "0.375rem", "$type": "dimension", "$description": "6px" },
307
+ "2": { "$value": "0.5rem", "$type": "dimension", "$description": "8px" },
308
+ "2-5": { "$value": "0.625rem", "$type": "dimension", "$description": "10px" },
309
+ "3": { "$value": "0.75rem", "$type": "dimension", "$description": "12px" },
310
+ "4": { "$value": "1rem", "$type": "dimension", "$description": "16px" },
311
+ "5": { "$value": "1.25rem", "$type": "dimension", "$description": "20px" },
312
+ "6": { "$value": "1.5rem", "$type": "dimension", "$description": "24px" },
313
+ "8": { "$value": "2rem", "$type": "dimension", "$description": "32px" },
314
+ "10": { "$value": "2.5rem", "$type": "dimension", "$description": "40px" },
315
+ "12": { "$value": "3rem", "$type": "dimension", "$description": "48px" },
316
+ "16": { "$value": "4rem", "$type": "dimension", "$description": "64px" },
317
+ "20": { "$value": "5rem", "$type": "dimension", "$description": "80px" },
318
+ "24": { "$value": "6rem", "$type": "dimension", "$description": "96px" },
319
+ "32": { "$value": "8rem", "$type": "dimension", "$description": "128px" }
320
+ },
321
+ "sizing": {
322
+ "1": { "$value": "1.5rem", "$type": "dimension", "$description": "24px — xs tier" },
323
+ "2": { "$value": "2rem", "$type": "dimension", "$description": "32px — sm tier" },
324
+ "3": { "$value": "2.5rem", "$type": "dimension", "$description": "40px — md tier" },
325
+ "4": { "$value": "3rem", "$type": "dimension", "$description": "48px — lg tier" }
326
+ },
327
+ "borderRadius": {
328
+ "none": { "$value": "0", "$type": "dimension" },
329
+ "sm": { "$value": "6px", "$type": "dimension" },
330
+ "md": { "$value": "8px", "$type": "dimension" },
331
+ "lg": { "$value": "12px", "$type": "dimension" },
332
+ "xl": { "$value": "16px", "$type": "dimension" },
333
+ "2xl": { "$value": "20px", "$type": "dimension" },
334
+ "full": { "$value": "9999px", "$type": "dimension" }
335
+ },
336
+ "typography": {
337
+ "fontFamily": {
338
+ "display": { "$value": "\"Clash Display\", system-ui, sans-serif", "$type": "fontFamily" },
339
+ "sans": { "$value": "\"Switzer\", system-ui, -apple-system, sans-serif", "$type": "fontFamily" },
340
+ "mono": { "$value": "\"Geist Mono\", ui-monospace, \"SF Mono\", monospace", "$type": "fontFamily" }
341
+ },
342
+ "fontSize": {
343
+ "2xs": { "$value": "0.625rem", "$type": "dimension", "$description": "10px" },
344
+ "xs": { "$value": "0.75rem", "$type": "dimension", "$description": "12px" },
345
+ "sm": { "$value": "0.875rem", "$type": "dimension", "$description": "14px" },
346
+ "base": { "$value": "1rem", "$type": "dimension", "$description": "16px" },
347
+ "lg": { "$value": "1.125rem", "$type": "dimension", "$description": "18px" },
348
+ "xl": { "$value": "1.25rem", "$type": "dimension", "$description": "20px" },
349
+ "2xl": { "$value": "1.5rem", "$type": "dimension", "$description": "24px" },
350
+ "3xl": { "$value": "1.875rem", "$type": "dimension", "$description": "30px" },
351
+ "4xl": { "$value": "2.25rem", "$type": "dimension", "$description": "36px" },
352
+ "5xl": { "$value": "3rem", "$type": "dimension", "$description": "48px" },
353
+ "6xl": { "$value": "3.75rem", "$type": "dimension", "$description": "60px" },
354
+ "7xl": { "$value": "4.5rem", "$type": "dimension", "$description": "72px" }
355
+ },
356
+ "fontWeight": {
357
+ "light": { "$value": 300, "$type": "fontWeight" },
358
+ "normal": { "$value": 400, "$type": "fontWeight" },
359
+ "medium": { "$value": 500, "$type": "fontWeight" },
360
+ "semibold": { "$value": 600, "$type": "fontWeight" },
361
+ "bold": { "$value": 700, "$type": "fontWeight" },
362
+ "display": { "$value": 400, "$type": "fontWeight", "$description": "Clash Display optimal weight" }
363
+ },
364
+ "lineHeight": {
365
+ "none": { "$value": "1", "$type": "number" },
366
+ "tight": { "$value": "1.1", "$type": "number" },
367
+ "snug": { "$value": "1.25", "$type": "number" },
368
+ "normal": { "$value": "1.5", "$type": "number" },
369
+ "relaxed": { "$value": "1.625", "$type": "number" },
370
+ "loose": { "$value": "2", "$type": "number" }
371
+ },
372
+ "letterSpacing": {
373
+ "tighter": { "$value": "-0.02em", "$type": "dimension" },
374
+ "tight": { "$value": "-0.01em", "$type": "dimension" },
375
+ "normal": { "$value": "0", "$type": "dimension" },
376
+ "wide": { "$value": "0.05em", "$type": "dimension" },
377
+ "wider": { "$value": "0.1em", "$type": "dimension" }
378
+ }
379
+ },
380
+ "zIndex": {
381
+ "base": { "$value": 0, "$type": "number" },
382
+ "dropdown": { "$value": 50, "$type": "number" },
383
+ "sticky": { "$value": 60, "$type": "number" },
384
+ "overlay": { "$value": 80, "$type": "number" },
385
+ "modal": { "$value": 100, "$type": "number" },
386
+ "toast": { "$value": 150, "$type": "number" },
387
+ "tooltip": { "$value": 200, "$type": "number" }
388
+ },
389
+ "duration": {
390
+ "fast": { "$value": "100ms", "$type": "duration" },
391
+ "normal": { "$value": "200ms", "$type": "duration" },
392
+ "slow": { "$value": "400ms", "$type": "duration" },
393
+ "slower": { "$value": "800ms", "$type": "duration" }
394
+ },
395
+ "easing": {
396
+ "default": { "$value": "ease", "$type": "cubicBezier" },
397
+ "out": { "$value": "cubic-bezier(0, 0, 0.2, 1)", "$type": "cubicBezier" },
398
+ "out-expo": { "$value": "cubic-bezier(0.16, 1, 0.3, 1)", "$type": "cubicBezier" },
399
+ "bounce": { "$value": "cubic-bezier(0.34, 1.56, 0.64, 1)", "$type": "cubicBezier" }
400
+ },
401
+ "blur": {
402
+ "sm": { "$value": "4px", "$type": "dimension" },
403
+ "md": { "$value": "12px", "$type": "dimension" },
404
+ "lg": { "$value": "20px", "$type": "dimension" }
405
+ },
406
+ "opacity": {
407
+ "disabled": { "$value": 0.5, "$type": "number" }
408
+ },
409
+ "focusRing": {
410
+ "width": { "$value": "2px", "$type": "dimension" },
411
+ "offset": { "$value": "2px", "$type": "dimension" }
412
+ }
413
+ }