@sole-ui/react 0.1.0 → 0.2.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 (159) hide show
  1. package/README.md +35 -3
  2. package/dist/components/shell/app-frame.d.ts +14 -0
  3. package/dist/components/shell/app-frame.js +8 -0
  4. package/dist/components/shell/command-palette.d.ts +32 -0
  5. package/dist/components/shell/command-palette.js +30 -0
  6. package/dist/components/shell/index.d.ts +4 -0
  7. package/dist/components/shell/index.js +4 -0
  8. package/dist/components/shell/page.d.ts +25 -0
  9. package/dist/components/shell/page.js +22 -0
  10. package/dist/components/shell/sidebar.d.ts +81 -0
  11. package/dist/components/shell/sidebar.js +113 -0
  12. package/dist/components/sole/avatar.d.ts +19 -0
  13. package/dist/components/sole/avatar.js +37 -0
  14. package/dist/components/sole/banner.d.ts +24 -0
  15. package/dist/components/sole/banner.js +27 -0
  16. package/dist/components/sole/column-header.d.ts +15 -0
  17. package/dist/components/sole/column-header.js +15 -0
  18. package/dist/components/sole/copy-field.d.ts +10 -0
  19. package/dist/components/sole/copy-field.js +32 -0
  20. package/dist/components/sole/count-badge.d.ts +8 -0
  21. package/dist/components/sole/count-badge.js +8 -0
  22. package/dist/components/sole/field.d.ts +24 -0
  23. package/dist/components/sole/field.js +27 -0
  24. package/dist/components/sole/filters.d.ts +33 -0
  25. package/dist/components/sole/filters.js +48 -0
  26. package/dist/components/sole/index.d.ts +17 -0
  27. package/dist/components/sole/index.js +17 -0
  28. package/dist/components/sole/kbd.d.ts +7 -0
  29. package/dist/components/sole/kbd.js +14 -0
  30. package/dist/components/sole/label-tag.d.ts +18 -0
  31. package/dist/components/sole/label-tag.js +17 -0
  32. package/dist/components/sole/layout.d.ts +54 -0
  33. package/dist/components/sole/layout.js +48 -0
  34. package/dist/components/sole/logo.d.ts +13 -0
  35. package/dist/components/sole/logo.js +17 -0
  36. package/dist/components/sole/nav.d.ts +22 -0
  37. package/dist/components/sole/nav.js +32 -0
  38. package/dist/components/sole/person-chip.d.ts +8 -0
  39. package/dist/components/sole/person-chip.js +19 -0
  40. package/dist/components/sole/person-header.d.ts +21 -0
  41. package/dist/components/sole/person-header.js +22 -0
  42. package/dist/components/sole/pill.d.ts +9 -0
  43. package/dist/components/sole/pill.js +14 -0
  44. package/dist/components/sole/states.d.ts +48 -0
  45. package/dist/components/sole/states.js +53 -0
  46. package/dist/components/sole/table.d.ts +23 -0
  47. package/dist/components/sole/table.js +32 -0
  48. package/dist/components/ui/alert-dialog.d.ts +27 -0
  49. package/dist/components/ui/alert-dialog.js +33 -0
  50. package/dist/components/ui/badge.d.ts +11 -0
  51. package/dist/components/ui/badge.js +30 -0
  52. package/dist/components/ui/button.d.ts +13 -0
  53. package/dist/components/ui/button.js +49 -0
  54. package/dist/components/ui/calendar.d.ts +9 -0
  55. package/dist/components/ui/calendar.js +79 -0
  56. package/dist/components/ui/checkbox.d.ts +4 -0
  57. package/dist/components/ui/checkbox.js +11 -0
  58. package/dist/components/ui/command.d.ts +90 -0
  59. package/dist/components/ui/command.js +36 -0
  60. package/dist/components/ui/dialog.d.ts +18 -0
  61. package/dist/components/ui/dialog.js +33 -0
  62. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  63. package/dist/components/ui/dropdown-menu.js +42 -0
  64. package/dist/components/ui/index.d.ts +23 -0
  65. package/dist/components/ui/index.js +23 -0
  66. package/dist/components/ui/input.d.ts +3 -0
  67. package/dist/components/ui/input.js +12 -0
  68. package/dist/components/ui/label.d.ts +4 -0
  69. package/dist/components/ui/label.js +10 -0
  70. package/dist/components/ui/popover.d.ts +10 -0
  71. package/dist/components/ui/popover.js +22 -0
  72. package/dist/components/ui/scroll-area.d.ts +5 -0
  73. package/dist/components/ui/scroll-area.js +14 -0
  74. package/dist/components/ui/select.d.ts +15 -0
  75. package/dist/components/ui/select.js +30 -0
  76. package/dist/components/ui/separator.d.ts +4 -0
  77. package/dist/components/ui/separator.js +10 -0
  78. package/dist/components/ui/sheet.d.ts +14 -0
  79. package/dist/components/ui/sheet.js +35 -0
  80. package/dist/components/ui/skeleton.d.ts +3 -0
  81. package/dist/components/ui/skeleton.js +10 -0
  82. package/dist/components/ui/sonner.d.ts +5 -0
  83. package/dist/components/ui/sonner.js +63 -0
  84. package/dist/components/ui/switch.d.ts +6 -0
  85. package/dist/components/ui/switch.js +10 -0
  86. package/dist/components/ui/tabs.d.ts +7 -0
  87. package/dist/components/ui/tabs.js +24 -0
  88. package/dist/components/ui/textarea.d.ts +3 -0
  89. package/dist/components/ui/textarea.js +9 -0
  90. package/dist/components/ui/toggle-group.d.ts +14 -0
  91. package/dist/components/ui/toggle-group.js +24 -0
  92. package/dist/components/ui/toggle.d.ts +12 -0
  93. package/dist/components/ui/toggle.js +28 -0
  94. package/dist/components/ui/tooltip.d.ts +7 -0
  95. package/dist/components/ui/tooltip.js +18 -0
  96. package/dist/hq/activity-line.d.ts +21 -0
  97. package/dist/hq/activity-line.js +26 -0
  98. package/dist/hq/board-card.d.ts +12 -0
  99. package/dist/hq/board-card.js +21 -0
  100. package/dist/hq/board-chip.d.ts +12 -0
  101. package/dist/hq/board-chip.js +20 -0
  102. package/dist/hq/checklist-item.d.ts +14 -0
  103. package/dist/hq/checklist-item.js +13 -0
  104. package/dist/hq/comment.d.ts +26 -0
  105. package/dist/hq/comment.js +15 -0
  106. package/dist/hq/due-chip.d.ts +11 -0
  107. package/dist/hq/due-chip.js +25 -0
  108. package/dist/hq/group-header.d.ts +27 -0
  109. package/dist/hq/group-header.js +22 -0
  110. package/dist/hq/inbox-row.d.ts +22 -0
  111. package/dist/hq/inbox-row.js +13 -0
  112. package/dist/hq/index.d.ts +21 -0
  113. package/dist/hq/index.js +21 -0
  114. package/dist/hq/link-row.d.ts +13 -0
  115. package/dist/hq/link-row.js +13 -0
  116. package/dist/hq/mention-chip.d.ts +23 -0
  117. package/dist/hq/mention-chip.js +28 -0
  118. package/dist/hq/page-row.d.ts +26 -0
  119. package/dist/hq/page-row.js +30 -0
  120. package/dist/hq/priority-icon.d.ts +9 -0
  121. package/dist/hq/priority-icon.js +23 -0
  122. package/dist/hq/property-type-icon.d.ts +7 -0
  123. package/dist/hq/property-type-icon.js +22 -0
  124. package/dist/hq/recent-item.d.ts +11 -0
  125. package/dist/hq/recent-item.js +12 -0
  126. package/dist/hq/review-badge.d.ts +37 -0
  127. package/dist/hq/review-badge.js +77 -0
  128. package/dist/hq/state-icon.d.ts +12 -0
  129. package/dist/hq/state-icon.js +41 -0
  130. package/dist/hq/state-pill.d.ts +9 -0
  131. package/dist/hq/state-pill.js +18 -0
  132. package/dist/hq/sticky.d.ts +13 -0
  133. package/dist/hq/sticky.js +22 -0
  134. package/dist/hq/template-card.d.ts +10 -0
  135. package/dist/hq/template-card.js +9 -0
  136. package/dist/hq/types.d.ts +49 -0
  137. package/dist/hq/types.js +7 -0
  138. package/dist/hq/work-item-row.d.ts +16 -0
  139. package/dist/hq/work-item-row.js +23 -0
  140. package/dist/index.d.ts +13 -223
  141. package/dist/index.js +12 -678
  142. package/dist/lib/cn.d.ts +2 -0
  143. package/dist/lib/cn.js +15 -0
  144. package/dist/lib/colour.d.ts +8 -0
  145. package/dist/lib/colour.js +28 -0
  146. package/dist/lib/dates.d.ts +62 -0
  147. package/dist/lib/dates.js +182 -0
  148. package/dist/lib/hue.d.ts +3 -0
  149. package/dist/lib/hue.js +1 -0
  150. package/dist/lib/person.d.ts +16 -0
  151. package/dist/lib/person.js +17 -0
  152. package/dist/lib/platform.d.ts +4 -0
  153. package/dist/lib/platform.js +12 -0
  154. package/dist/lib/sole-provider.d.ts +35 -0
  155. package/dist/lib/sole-provider.js +52 -0
  156. package/dist/styles.css +5 -0
  157. package/dist/tokens.generated.d.ts +219 -0
  158. package/dist/tokens.generated.js +679 -0
  159. package/package.json +34 -3
package/dist/index.js CHANGED
@@ -1,678 +1,12 @@
1
- // Generated by packages/ui/scripts/build.ts. Do not edit.
2
- export const tokens = {
3
- "color": {
4
- "background": {
5
- "$value": "#f5f5f5",
6
- "$type": "color"
7
- },
8
- "foreground": {
9
- "$value": "#18181b",
10
- "$type": "color"
11
- },
12
- "card": {
13
- "$value": "#ffffff",
14
- "$type": "color"
15
- },
16
- "card-foreground": {
17
- "$value": "#18181b",
18
- "$type": "color"
19
- },
20
- "popover": {
21
- "$value": "#ffffff",
22
- "$type": "color"
23
- },
24
- "popover-foreground": {
25
- "$value": "#18181b",
26
- "$type": "color"
27
- },
28
- "primary": {
29
- "$value": "#0270d6",
30
- "$type": "color"
31
- },
32
- "primary-foreground": {
33
- "$value": "#ffffff",
34
- "$type": "color"
35
- },
36
- "primary-hover": {
37
- "$value": "#0263bd",
38
- "$type": "color"
39
- },
40
- "brand": {
41
- "$value": "#0485f7",
42
- "$type": "color"
43
- },
44
- "link": {
45
- "$value": "#0263bd",
46
- "$type": "color"
47
- },
48
- "secondary": {
49
- "$value": "#f4f4f5",
50
- "$type": "color"
51
- },
52
- "secondary-foreground": {
53
- "$value": "#3f3f46",
54
- "$type": "color"
55
- },
56
- "muted": {
57
- "$value": "#f4f4f5",
58
- "$type": "color"
59
- },
60
- "muted-foreground": {
61
- "$value": "#52525b",
62
- "$type": "color"
63
- },
64
- "subtle-foreground": {
65
- "$value": "#71717a",
66
- "$type": "color"
67
- },
68
- "faint": {
69
- "$value": "#9ca3af",
70
- "$type": "color"
71
- },
72
- "accent": {
73
- "$value": "#e6f2fe",
74
- "$type": "color"
75
- },
76
- "accent-foreground": {
77
- "$value": "#0263bd",
78
- "$type": "color"
79
- },
80
- "row-hover": {
81
- "$value": "#f7f9fc",
82
- "$type": "color"
83
- },
84
- "border": {
85
- "$value": "#dedee0",
86
- "$type": "color"
87
- },
88
- "hairline": {
89
- "$value": "#f3f3f7",
90
- "$type": "color"
91
- },
92
- "input": {
93
- "$value": "#dedee0",
94
- "$type": "color"
95
- },
96
- "field": {
97
- "$value": "#f9fafb",
98
- "$type": "color"
99
- },
100
- "ring": {
101
- "$value": "#0485f7",
102
- "$type": "color"
103
- },
104
- "destructive": {
105
- "$value": "#dc2626",
106
- "$type": "color"
107
- },
108
- "destructive-foreground": {
109
- "$value": "#ffffff",
110
- "$type": "color"
111
- },
112
- "danger-text": {
113
- "$value": "#b42318",
114
- "$type": "color"
115
- },
116
- "danger-soft": {
117
- "$value": "#fef2f2",
118
- "$type": "color"
119
- },
120
- "danger-border": {
121
- "$value": "#fecaca",
122
- "$type": "color"
123
- },
124
- "warning": {
125
- "$value": "#f59e0b",
126
- "$type": "color"
127
- },
128
- "warning-text": {
129
- "$value": "#b45309",
130
- "$type": "color"
131
- },
132
- "warning-soft": {
133
- "$value": "#fffbeb",
134
- "$type": "color"
135
- },
136
- "warning-border": {
137
- "$value": "#fcd34d",
138
- "$type": "color"
139
- },
140
- "success": {
141
- "$value": "#10b981",
142
- "$type": "color"
143
- },
144
- "success-text": {
145
- "$value": "#047857",
146
- "$type": "color"
147
- },
148
- "success-soft": {
149
- "$value": "#ecfdf5",
150
- "$type": "color"
151
- },
152
- "success-border": {
153
- "$value": "#a7f3d0",
154
- "$type": "color"
155
- },
156
- "neutral-soft": {
157
- "$value": "#f3f4f6",
158
- "$type": "color"
159
- },
160
- "neutral-text": {
161
- "$value": "#374151",
162
- "$type": "color"
163
- },
164
- "skeleton": {
165
- "$value": "#eef0f3",
166
- "$type": "color"
167
- },
168
- "sidebar": {
169
- "$value": "#f5f5f5",
170
- "$type": "color"
171
- },
172
- "sidebar-foreground": {
173
- "$value": "#3f3f46",
174
- "$type": "color"
175
- },
176
- "sidebar-accent": {
177
- "$value": "#e6f2fe",
178
- "$type": "color"
179
- },
180
- "sidebar-accent-foreground": {
181
- "$value": "#0263bd",
182
- "$type": "color"
183
- },
184
- "sidebar-hover": {
185
- "$value": "#ebebef",
186
- "$type": "color"
187
- },
188
- "sidebar-border": {
189
- "$value": "#dedee0",
190
- "$type": "color"
191
- },
192
- "sidebar-ring": {
193
- "$value": "#0485f7",
194
- "$type": "color"
195
- },
196
- "tooltip": {
197
- "$value": "#18181b",
198
- "$type": "color"
199
- },
200
- "tooltip-foreground": {
201
- "$value": "#ffffff",
202
- "$type": "color"
203
- },
204
- "overdue": {
205
- "$value": "#dc2626",
206
- "$type": "color"
207
- },
208
- "overdue-foreground": {
209
- "$value": "#ffffff",
210
- "$type": "color"
211
- },
212
- "mark": {
213
- "$value": "#4d4dff",
214
- "$type": "color"
215
- },
216
- "state-backlog": {
217
- "$value": "#9ca3af",
218
- "$type": "color",
219
- "$description": "State icon colours by group (brand-and-ux 5.8)."
220
- },
221
- "state-unstarted": {
222
- "$value": "#71717a",
223
- "$type": "color"
224
- },
225
- "state-started": {
226
- "$value": "#f59e0b",
227
- "$type": "color"
228
- },
229
- "state-completed": {
230
- "$value": "#10b981",
231
- "$type": "color"
232
- },
233
- "state-cancelled": {
234
- "$value": "#9ca3af",
235
- "$type": "color"
236
- },
237
- "sticky-gray": {
238
- "$value": "#d6d6d8",
239
- "$type": "color",
240
- "$description": "Sticky notes (brand-and-ux 5.2)."
241
- },
242
- "sticky-peach": {
243
- "$value": "#ffd5d7",
244
- "$type": "color"
245
- },
246
- "sticky-pink": {
247
- "$value": "#fdd4e3",
248
- "$type": "color"
249
- },
250
- "sticky-orange": {
251
- "$value": "#ffe3cd",
252
- "$type": "color"
253
- },
254
- "sticky-green": {
255
- "$value": "#c3f0de",
256
- "$type": "color"
257
- },
258
- "sticky-light-blue": {
259
- "$value": "#c5eff9",
260
- "$type": "color"
261
- },
262
- "sticky-dark-blue": {
263
- "$value": "#c9dafb",
264
- "$type": "color"
265
- },
266
- "sticky-purple": {
267
- "$value": "#e3d8fd",
268
- "$type": "color"
269
- },
270
- "sticky-foreground": {
271
- "$value": "#18181b",
272
- "$type": "color"
273
- }
274
- },
275
- "hue": {
276
- "slate": {
277
- "bg": {
278
- "$value": "#f8fafc",
279
- "$type": "color",
280
- "$description": "Label hues (brand-and-ux 5.3 rule 6). Users pick a hue name, never a hex. The approved design draws each tag from one ramp: the 50 step fill, 200 border, 800 text and 600 dot, so every text pair clears 7:1 on its own fill."
281
- },
282
- "border": {
283
- "$value": "#e2e8f0",
284
- "$type": "color"
285
- },
286
- "fg": {
287
- "$value": "#1e293b",
288
- "$type": "color"
289
- },
290
- "dot": {
291
- "$value": "#475569",
292
- "$type": "color"
293
- }
294
- },
295
- "indigo": {
296
- "bg": {
297
- "$value": "#eef2ff",
298
- "$type": "color"
299
- },
300
- "border": {
301
- "$value": "#c7d2fe",
302
- "$type": "color"
303
- },
304
- "fg": {
305
- "$value": "#3730a3",
306
- "$type": "color"
307
- },
308
- "dot": {
309
- "$value": "#4f46e5",
310
- "$type": "color"
311
- }
312
- },
313
- "violet": {
314
- "bg": {
315
- "$value": "#f5f3ff",
316
- "$type": "color"
317
- },
318
- "border": {
319
- "$value": "#ddd6fe",
320
- "$type": "color"
321
- },
322
- "fg": {
323
- "$value": "#5b21b6",
324
- "$type": "color"
325
- },
326
- "dot": {
327
- "$value": "#7c3aed",
328
- "$type": "color"
329
- }
330
- },
331
- "blue": {
332
- "bg": {
333
- "$value": "#eff6ff",
334
- "$type": "color"
335
- },
336
- "border": {
337
- "$value": "#bfdbfe",
338
- "$type": "color"
339
- },
340
- "fg": {
341
- "$value": "#1e40af",
342
- "$type": "color"
343
- },
344
- "dot": {
345
- "$value": "#2563eb",
346
- "$type": "color"
347
- }
348
- },
349
- "cyan": {
350
- "bg": {
351
- "$value": "#ecfeff",
352
- "$type": "color"
353
- },
354
- "border": {
355
- "$value": "#a5f3fc",
356
- "$type": "color"
357
- },
358
- "fg": {
359
- "$value": "#155e75",
360
- "$type": "color"
361
- },
362
- "dot": {
363
- "$value": "#0891b2",
364
- "$type": "color"
365
- }
366
- },
367
- "teal": {
368
- "bg": {
369
- "$value": "#f0fdfa",
370
- "$type": "color"
371
- },
372
- "border": {
373
- "$value": "#99f6e4",
374
- "$type": "color"
375
- },
376
- "fg": {
377
- "$value": "#115e59",
378
- "$type": "color"
379
- },
380
- "dot": {
381
- "$value": "#0d9488",
382
- "$type": "color"
383
- }
384
- },
385
- "green": {
386
- "bg": {
387
- "$value": "#f0fdf4",
388
- "$type": "color"
389
- },
390
- "border": {
391
- "$value": "#bbf7d0",
392
- "$type": "color"
393
- },
394
- "fg": {
395
- "$value": "#166534",
396
- "$type": "color"
397
- },
398
- "dot": {
399
- "$value": "#16a34a",
400
- "$type": "color"
401
- }
402
- },
403
- "lime": {
404
- "bg": {
405
- "$value": "#f7fee7",
406
- "$type": "color"
407
- },
408
- "border": {
409
- "$value": "#d9f99d",
410
- "$type": "color"
411
- },
412
- "fg": {
413
- "$value": "#3f6212",
414
- "$type": "color"
415
- },
416
- "dot": {
417
- "$value": "#65a30d",
418
- "$type": "color"
419
- }
420
- },
421
- "amber": {
422
- "bg": {
423
- "$value": "#fffbeb",
424
- "$type": "color"
425
- },
426
- "border": {
427
- "$value": "#fde68a",
428
- "$type": "color"
429
- },
430
- "fg": {
431
- "$value": "#92400e",
432
- "$type": "color"
433
- },
434
- "dot": {
435
- "$value": "#d97706",
436
- "$type": "color"
437
- }
438
- },
439
- "orange": {
440
- "bg": {
441
- "$value": "#fff7ed",
442
- "$type": "color"
443
- },
444
- "border": {
445
- "$value": "#fed7aa",
446
- "$type": "color"
447
- },
448
- "fg": {
449
- "$value": "#9a3412",
450
- "$type": "color"
451
- },
452
- "dot": {
453
- "$value": "#ea580c",
454
- "$type": "color"
455
- }
456
- },
457
- "rose": {
458
- "bg": {
459
- "$value": "#fff1f2",
460
- "$type": "color"
461
- },
462
- "border": {
463
- "$value": "#fecdd3",
464
- "$type": "color"
465
- },
466
- "fg": {
467
- "$value": "#9f1239",
468
- "$type": "color"
469
- },
470
- "dot": {
471
- "$value": "#e11d48",
472
- "$type": "color"
473
- }
474
- },
475
- "pink": {
476
- "bg": {
477
- "$value": "#fdf2f8",
478
- "$type": "color"
479
- },
480
- "border": {
481
- "$value": "#fbcfe8",
482
- "$type": "color"
483
- },
484
- "fg": {
485
- "$value": "#9d174d",
486
- "$type": "color"
487
- },
488
- "dot": {
489
- "$value": "#db2777",
490
- "$type": "color"
491
- }
492
- }
493
- },
494
- "radius": {
495
- "base": {
496
- "$value": "8px",
497
- "$type": "dimension",
498
- "$description": "Radius (5.6): chips and sidebar items 6, buttons and inputs 8, panels 12, dialogs 16."
499
- }
500
- },
501
- "shadow": {
502
- "elevation-sm": {
503
- "$value": "0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05)",
504
- "$type": "shadow",
505
- "$description": "Shadows (5.6)."
506
- },
507
- "elevation-lg": {
508
- "$value": "0 12px 34px -10px rgba(16, 24, 40, 0.22)",
509
- "$type": "shadow"
510
- },
511
- "focus-ring": {
512
- "$value": "0 0 0 3px rgba(4, 133, 247, 0.14)",
513
- "$type": "shadow"
514
- }
515
- },
516
- "ease": {
517
- "rise": {
518
- "$value": "cubic-bezier(0.22, 1, 0.36, 1)",
519
- "$type": "cubicBezier"
520
- }
521
- },
522
- "font": {
523
- "sans": {
524
- "$value": "\"Inter Variable\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif",
525
- "$type": "fontFamily"
526
- },
527
- "mono": {
528
- "$value": "ui-monospace, SFMono-Regular, Menlo, monospace",
529
- "$type": "fontFamily"
530
- }
531
- },
532
- "text": {
533
- "label": {
534
- "size": {
535
- "$value": "12px",
536
- "$type": "dimension",
537
- "$description": "Type scale (brand-and-ux 5.4). text-micro, the only uppercase style, is a utility at the end of the scale, because a theme token cannot carry text-transform."
538
- },
539
- "line-height": {
540
- "$value": "16px",
541
- "$type": "dimension"
542
- },
543
- "weight": {
544
- "$value": "500",
545
- "$type": "number"
546
- }
547
- },
548
- "body": {
549
- "size": {
550
- "$value": "13px",
551
- "$type": "dimension"
552
- },
553
- "line-height": {
554
- "$value": "20px",
555
- "$type": "dimension"
556
- }
557
- },
558
- "strong": {
559
- "size": {
560
- "$value": "14px",
561
- "$type": "dimension"
562
- },
563
- "line-height": {
564
- "$value": "20px",
565
- "$type": "dimension"
566
- },
567
- "weight": {
568
- "$value": "600",
569
- "$type": "number"
570
- },
571
- "letter-spacing": {
572
- "$value": "-0.01em",
573
- "$type": "dimension"
574
- }
575
- },
576
- "read": {
577
- "size": {
578
- "$value": "16px",
579
- "$type": "dimension"
580
- },
581
- "line-height": {
582
- "$value": "26px",
583
- "$type": "dimension"
584
- }
585
- },
586
- "title": {
587
- "size": {
588
- "$value": "18px",
589
- "$type": "dimension"
590
- },
591
- "line-height": {
592
- "$value": "24px",
593
- "$type": "dimension"
594
- },
595
- "weight": {
596
- "$value": "600",
597
- "$type": "number"
598
- },
599
- "letter-spacing": {
600
- "$value": "-0.015em",
601
- "$type": "dimension"
602
- }
603
- },
604
- "page": {
605
- "size": {
606
- "$value": "20px",
607
- "$type": "dimension"
608
- },
609
- "line-height": {
610
- "$value": "28px",
611
- "$type": "dimension"
612
- },
613
- "weight": {
614
- "$value": "600",
615
- "$type": "number"
616
- },
617
- "letter-spacing": {
618
- "$value": "-0.02em",
619
- "$type": "dimension"
620
- }
621
- },
622
- "doc": {
623
- "size": {
624
- "$value": "28px",
625
- "$type": "dimension"
626
- },
627
- "line-height": {
628
- "$value": "34px",
629
- "$type": "dimension"
630
- },
631
- "weight": {
632
- "$value": "700",
633
- "$type": "number"
634
- },
635
- "letter-spacing": {
636
- "$value": "-0.02em",
637
- "$type": "dimension"
638
- }
639
- },
640
- "metric": {
641
- "size": {
642
- "$value": "28px",
643
- "$type": "dimension"
644
- },
645
- "line-height": {
646
- "$value": "31px",
647
- "$type": "dimension"
648
- },
649
- "weight": {
650
- "$value": "700",
651
- "$type": "number"
652
- },
653
- "letter-spacing": {
654
- "$value": "-0.02em",
655
- "$type": "dimension"
656
- }
657
- },
658
- "micro": {
659
- "size": {
660
- "$value": "11px",
661
- "$type": "dimension",
662
- "$description": "The only uppercase style. It is a utility rather than a theme token, because a theme token cannot carry text-transform."
663
- },
664
- "line-height": {
665
- "$value": "16px",
666
- "$type": "dimension"
667
- },
668
- "weight": {
669
- "$value": "600",
670
- "$type": "number"
671
- },
672
- "letter-spacing": {
673
- "$value": "0.06em",
674
- "$type": "dimension"
675
- }
676
- }
677
- }
678
- };
1
+ export * from './lib/cn.js';
2
+ export * from './lib/person.js';
3
+ export * from './lib/colour.js';
4
+ export * from './lib/hue.js';
5
+ export * from './lib/platform.js';
6
+ export * from './lib/dates.js';
7
+ export * from './lib/sole-provider.js';
8
+ export * from './components/ui/index.js';
9
+ export * from './components/sole/index.js';
10
+ export * from './components/shell/index.js';
11
+ export { toast } from 'sonner';
12
+ export { tokens } from './tokens.generated.js';
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
package/dist/lib/cn.js ADDED
@@ -0,0 +1,15 @@
1
+ import { clsx } from 'clsx';
2
+ import { extendTailwindMerge } from 'tailwind-merge';
3
+ // The type scale (brand-and-ux 5.4) adds text-micro, text-label and friends. Without
4
+ // telling tailwind-merge they are font sizes it files them as colours, and
5
+ // cn('text-label', 'text-muted-foreground') silently drops the size.
6
+ const twMerge = extendTailwindMerge({
7
+ extend: {
8
+ classGroups: {
9
+ 'font-size': [{ text: ['micro', 'label', 'body', 'strong', 'read', 'title', 'page', 'doc', 'metric'] }],
10
+ },
11
+ },
12
+ });
13
+ export function cn(...inputs) {
14
+ return twMerge(clsx(inputs));
15
+ }