@hamsterbase/ui 0.1.0 → 0.3.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 (35) hide show
  1. package/dist/components/Button/Button.d.ts +5 -3
  2. package/dist/components/Button/styles.d.ts +3 -3
  3. package/dist/components/Checkbox/Checkbox.d.ts +3 -3
  4. package/dist/components/Divider/Divider.d.ts +10 -6
  5. package/dist/components/Divider/styles.d.ts +8 -4
  6. package/dist/components/IconButton/IconButton.d.ts +7 -7
  7. package/dist/components/IconButton/styles.d.ts +3 -3
  8. package/dist/components/ResizeHandle/ResizeHandle.d.ts +7 -4
  9. package/dist/components/ResizeHandle/styles.d.ts +6 -4
  10. package/dist/components/Select/Select.d.ts +17 -0
  11. package/dist/components/Select/layout.d.ts +39 -0
  12. package/dist/components/Select/styles.d.ts +26 -0
  13. package/dist/components/Select/useScrollAffordance.d.ts +12 -0
  14. package/dist/components/Select/useSelectValue.d.ts +15 -0
  15. package/dist/components/Toast/Toast.d.ts +17 -0
  16. package/dist/components/Toast/ToastStore.d.ts +33 -0
  17. package/dist/components/Toast/Toaster.d.ts +7 -0
  18. package/dist/components/Toast/styles.d.ts +15 -0
  19. package/dist/components/Tooltip/Tooltip.d.ts +10 -0
  20. package/dist/components/Tooltip/coordinator.d.ts +79 -0
  21. package/dist/components/Tooltip/layout.d.ts +28 -0
  22. package/dist/components/Tooltip/styles.d.ts +6 -0
  23. package/dist/index.d.ts +13 -3
  24. package/dist/index.js +1265 -58
  25. package/dist/styles.css +776 -115
  26. package/dist/utils/css.d.ts +6 -0
  27. package/dist/utils/focus.d.ts +4 -0
  28. package/docs/Checkbox.md +2 -0
  29. package/docs/IconButton.md +1 -1
  30. package/docs/ResizeHandle.md +2 -1
  31. package/docs/Select.md +20 -0
  32. package/docs/Toast.md +60 -0
  33. package/docs/Tooltip.md +20 -0
  34. package/docs/index.md +3 -0
  35. package/package.json +10 -8
package/dist/styles.css CHANGED
@@ -11,6 +11,15 @@
11
11
  --tw-skew-x: initial;
12
12
  --tw-skew-y: initial;
13
13
  --tw-border-style: solid;
14
+ --tw-gradient-position: initial;
15
+ --tw-gradient-from: #0000;
16
+ --tw-gradient-via: #0000;
17
+ --tw-gradient-to: #0000;
18
+ --tw-gradient-stops: initial;
19
+ --tw-gradient-via-stops: initial;
20
+ --tw-gradient-from-position: 0%;
21
+ --tw-gradient-via-position: 50%;
22
+ --tw-gradient-to-position: 100%;
14
23
  --tw-leading: initial;
15
24
  --tw-font-weight: initial;
16
25
  --tw-shadow: 0 0 #0000;
@@ -27,6 +36,28 @@
27
36
  --tw-ring-offset-width: 0px;
28
37
  --tw-ring-offset-color: #fff;
29
38
  --tw-ring-offset-shadow: 0 0 #0000;
39
+ --tw-blur: initial;
40
+ --tw-brightness: initial;
41
+ --tw-contrast: initial;
42
+ --tw-grayscale: initial;
43
+ --tw-hue-rotate: initial;
44
+ --tw-invert: initial;
45
+ --tw-opacity: initial;
46
+ --tw-saturate: initial;
47
+ --tw-sepia: initial;
48
+ --tw-drop-shadow: initial;
49
+ --tw-drop-shadow-color: initial;
50
+ --tw-drop-shadow-alpha: 100%;
51
+ --tw-drop-shadow-size: initial;
52
+ --tw-backdrop-blur: initial;
53
+ --tw-backdrop-brightness: initial;
54
+ --tw-backdrop-contrast: initial;
55
+ --tw-backdrop-grayscale: initial;
56
+ --tw-backdrop-hue-rotate: initial;
57
+ --tw-backdrop-invert: initial;
58
+ --tw-backdrop-opacity: initial;
59
+ --tw-backdrop-saturate: initial;
60
+ --tw-backdrop-sepia: initial;
30
61
  --tw-duration: initial;
31
62
  --tw-ease: initial;
32
63
  --tw-outline-style: solid;
@@ -34,26 +65,17 @@
34
65
  }
35
66
  }
36
67
 
37
- @layer theme {
38
- :root, :host {
39
- --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial,
40
- sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
41
- --spacing: .25rem;
42
- --font-weight-medium: 500;
43
- --ease-out: cubic-bezier(0, 0, .2, 1);
44
- --ease-in-out: cubic-bezier(.4, 0, .2, 1);
45
- --default-transition-duration: .15s;
46
- --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
47
- }
48
- }
49
-
50
- @layer base, components;
68
+ @layer theme, base, components;
51
69
 
52
70
  @layer utilities {
53
71
  .pointer-events-none {
54
72
  pointer-events: none;
55
73
  }
56
74
 
75
+ .visible {
76
+ visibility: visible;
77
+ }
78
+
57
79
  .absolute {
58
80
  position: absolute;
59
81
  }
@@ -70,6 +92,14 @@
70
92
  inset: 0;
71
93
  }
72
94
 
95
+ .inset-auto {
96
+ inset: auto;
97
+ }
98
+
99
+ .inset-x-0 {
100
+ inset-inline: 0;
101
+ }
102
+
73
103
  .inset-y-0 {
74
104
  inset-block: 0;
75
105
  }
@@ -78,42 +108,93 @@
78
108
  top: -50%;
79
109
  }
80
110
 
81
- .right-\[-3\.5px\] {
82
- right: -3.5px;
111
+ .top-0 {
112
+ top: 0;
113
+ }
114
+
115
+ .right-6 {
116
+ right: calc(var(--spacing, .25rem) * 6);
117
+ }
118
+
119
+ .right-\[calc\(var\(--hub-hit-area\)_\/_-2\)\] {
120
+ right: calc(var(--hub-hit-area) / -2);
121
+ }
122
+
123
+ .bottom-0 {
124
+ bottom: 0;
125
+ }
126
+
127
+ .bottom-6 {
128
+ bottom: calc(var(--spacing, .25rem) * 6);
83
129
  }
84
130
 
85
131
  .left-0 {
86
132
  left: 0;
87
133
  }
88
134
 
89
- .left-\[-3\.5px\] {
90
- left: -3.5px;
135
+ .left-\[calc\(\(var\(--hub-hit-area\)_-_1px\)_\/_2\)\] {
136
+ left: calc((var(--hub-hit-area) - 1px) / 2);
137
+ }
138
+
139
+ .left-\[calc\(var\(--hub-hit-area\)_\/_-2\)\] {
140
+ left: calc(var(--hub-hit-area) / -2);
91
141
  }
92
142
 
93
- .left-\[3px\] {
94
- left: 3px;
143
+ .z-\(--hub-z-overlay\) {
144
+ z-index: var(--hub-z-overlay);
95
145
  }
96
146
 
97
- .z-10 {
98
- z-index: 10;
147
+ .z-\(--hub-z-raised\) {
148
+ z-index: var(--hub-z-raised);
99
149
  }
100
150
 
101
- .z-40 {
102
- z-index: 40;
151
+ .z-\(--hub-z-toast\) {
152
+ z-index: var(--hub-z-toast);
153
+ }
154
+
155
+ .-m-1 {
156
+ margin: calc(var(--spacing, .25rem) * -1);
103
157
  }
104
158
 
105
159
  .m-0 {
106
160
  margin: 0;
107
161
  }
108
162
 
163
+ .m-1\.5 {
164
+ margin: calc(var(--spacing, .25rem) * 1.5);
165
+ }
166
+
167
+ .mt-2 {
168
+ margin-top: calc(var(--spacing, .25rem) * 2);
169
+ }
170
+
171
+ .mt-3 {
172
+ margin-top: calc(var(--spacing, .25rem) * 3);
173
+ }
174
+
175
+ .-mr-0\.5 {
176
+ margin-right: calc(var(--spacing, .25rem) * -.5);
177
+ }
178
+
109
179
  .box-border {
110
180
  box-sizing: border-box;
111
181
  }
112
182
 
183
+ .line-clamp-2 {
184
+ -webkit-line-clamp: 2;
185
+ -webkit-box-orient: vertical;
186
+ display: -webkit-box;
187
+ overflow: hidden;
188
+ }
189
+
113
190
  .block {
114
191
  display: block;
115
192
  }
116
193
 
194
+ .flex {
195
+ display: flex;
196
+ }
197
+
117
198
  .grid {
118
199
  display: grid;
119
200
  }
@@ -122,6 +203,10 @@
122
203
  display: none;
123
204
  }
124
205
 
206
+ .inline {
207
+ display: inline;
208
+ }
209
+
125
210
  .inline-flex {
126
211
  display: inline-flex;
127
212
  }
@@ -131,23 +216,28 @@
131
216
  }
132
217
 
133
218
  .size-3\.5 {
134
- width: calc(var(--spacing) * 3.5);
135
- height: calc(var(--spacing) * 3.5);
219
+ width: calc(var(--spacing, .25rem) * 3.5);
220
+ height: calc(var(--spacing, .25rem) * 3.5);
221
+ }
222
+
223
+ .size-4 {
224
+ width: calc(var(--spacing, .25rem) * 4);
225
+ height: calc(var(--spacing, .25rem) * 4);
136
226
  }
137
227
 
138
228
  .size-6 {
139
- width: calc(var(--spacing) * 6);
140
- height: calc(var(--spacing) * 6);
229
+ width: calc(var(--spacing, .25rem) * 6);
230
+ height: calc(var(--spacing, .25rem) * 6);
141
231
  }
142
232
 
143
233
  .size-7 {
144
- width: calc(var(--spacing) * 7);
145
- height: calc(var(--spacing) * 7);
234
+ width: calc(var(--spacing, .25rem) * 7);
235
+ height: calc(var(--spacing, .25rem) * 7);
146
236
  }
147
237
 
148
238
  .size-8 {
149
- width: calc(var(--spacing) * 8);
150
- height: calc(var(--spacing) * 8);
239
+ width: calc(var(--spacing, .25rem) * 8);
240
+ height: calc(var(--spacing, .25rem) * 8);
151
241
  }
152
242
 
153
243
  .size-full {
@@ -155,46 +245,118 @@
155
245
  height: 100%;
156
246
  }
157
247
 
248
+ .h-\(--hub-control-height-md\) {
249
+ height: var(--hub-control-height-md);
250
+ }
251
+
252
+ .h-\(--hub-control-height-sm\) {
253
+ height: var(--hub-control-height-sm);
254
+ }
255
+
256
+ .h-\(--hub-hairline\) {
257
+ height: var(--hub-hairline);
258
+ }
259
+
260
+ .h-\(--hub-row-height-md\) {
261
+ height: var(--hub-row-height-md);
262
+ }
263
+
264
+ .h-\(--hub-scroll-affordance\) {
265
+ height: var(--hub-scroll-affordance);
266
+ }
267
+
268
+ .h-2 {
269
+ height: calc(var(--spacing, .25rem) * 2);
270
+ }
271
+
272
+ .h-4\.5 {
273
+ height: calc(var(--spacing, .25rem) * 4.5);
274
+ }
275
+
158
276
  .h-6 {
159
- height: calc(var(--spacing) * 6);
277
+ height: calc(var(--spacing, .25rem) * 6);
160
278
  }
161
279
 
162
280
  .h-7 {
163
- height: calc(var(--spacing) * 7);
281
+ height: calc(var(--spacing, .25rem) * 7);
164
282
  }
165
283
 
166
284
  .h-8 {
167
- height: calc(var(--spacing) * 8);
168
- }
169
-
170
- .h-\[0\.5px\] {
171
- height: .5px;
285
+ height: calc(var(--spacing, .25rem) * 8);
172
286
  }
173
287
 
174
288
  .h-\[200\%\] {
175
289
  height: 200%;
176
290
  }
177
291
 
178
- .w-\[0\.5px\] {
179
- width: .5px;
292
+ .max-h-\[calc\(100vh-var\(--hub-float-gutter\)\)\] {
293
+ max-height: calc(100vh - var(--hub-float-gutter));
180
294
  }
181
295
 
182
- .w-\[7px\] {
183
- width: 7px;
296
+ .w-\(--hub-hairline\) {
297
+ width: var(--hub-hairline);
298
+ }
299
+
300
+ .w-\(--hub-hit-area\) {
301
+ width: var(--hub-hit-area);
302
+ }
303
+
304
+ .w-2\.5 {
305
+ width: calc(var(--spacing, .25rem) * 2.5);
306
+ }
307
+
308
+ .w-fit {
309
+ width: fit-content;
184
310
  }
185
311
 
186
312
  .w-full {
187
313
  width: 100%;
188
314
  }
189
315
 
316
+ .w-max {
317
+ width: max-content;
318
+ }
319
+
190
320
  .w-px {
191
321
  width: 1px;
192
322
  }
193
323
 
324
+ .max-w-\[calc\(100vw-var\(--hub-menu-gutter\)\*2\)\] {
325
+ max-width: calc(100vw - var(--hub-menu-gutter) * 2);
326
+ }
327
+
328
+ .max-w-\[calc\(100vw_-_var\(--hub-float-gutter\)_\*_2\)\] {
329
+ max-width: calc(100vw - var(--hub-float-gutter) * 2);
330
+ }
331
+
332
+ .max-w-\[min\(var\(--hub-float-width\)\,calc\(100vw-var\(--hub-float-gutter\)\)\)\] {
333
+ max-width: min(var(--hub-float-width), calc(100vw - var(--hub-float-gutter)));
334
+ }
335
+
336
+ .max-w-\[min\(var\(--hub-float-width\)\,calc\(100vw_-_var\(--hub-float-gutter\)_\*_2\)\)\] {
337
+ max-width: min(var(--hub-float-width), calc(100vw - var(--hub-float-gutter) * 2));
338
+ }
339
+
340
+ .min-w-0 {
341
+ min-width: 0;
342
+ }
343
+
344
+ .min-w-4\.5 {
345
+ min-width: calc(var(--spacing, .25rem) * 4.5);
346
+ }
347
+
348
+ .flex-1 {
349
+ flex: 1;
350
+ }
351
+
194
352
  .flex-none {
195
353
  flex: none;
196
354
  }
197
355
 
356
+ .shrink-0 {
357
+ flex-shrink: 0;
358
+ }
359
+
198
360
  .origin-left {
199
361
  transform-origin: 0;
200
362
  }
@@ -208,10 +370,18 @@
208
370
  transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
209
371
  }
210
372
 
373
+ .animate-\[hub-toast-in_var\(--hub-duration-enter\)_ease\] {
374
+ animation: hub-toast-in var(--hub-duration-enter) ease;
375
+ }
376
+
211
377
  .cursor-col-resize {
212
378
  cursor: col-resize;
213
379
  }
214
380
 
381
+ .cursor-default {
382
+ cursor: default;
383
+ }
384
+
215
385
  .cursor-pointer {
216
386
  cursor: pointer;
217
387
  }
@@ -224,6 +394,14 @@
224
394
  resize: both;
225
395
  }
226
396
 
397
+ .\[scrollbar-width\:none\] {
398
+ scrollbar-width: none;
399
+ }
400
+
401
+ .flex-col {
402
+ flex-direction: column;
403
+ }
404
+
227
405
  .place-items-center {
228
406
  place-items: center;
229
407
  }
@@ -232,40 +410,96 @@
232
410
  align-items: center;
233
411
  }
234
412
 
413
+ .items-center-safe {
414
+ align-items: safe center;
415
+ }
416
+
417
+ .items-end {
418
+ align-items: flex-end;
419
+ }
420
+
421
+ .items-start {
422
+ align-items: flex-start;
423
+ }
424
+
235
425
  .justify-center {
236
426
  justify-content: center;
237
427
  }
238
428
 
429
+ .gap-0\.5 {
430
+ gap: calc(var(--spacing, .25rem) * .5);
431
+ }
432
+
239
433
  .gap-1\.5 {
240
- gap: calc(var(--spacing) * 1.5);
434
+ gap: calc(var(--spacing, .25rem) * 1.5);
435
+ }
436
+
437
+ .gap-2 {
438
+ gap: calc(var(--spacing, .25rem) * 2);
241
439
  }
242
440
 
243
441
  .self-stretch {
244
442
  align-self: stretch;
245
443
  }
246
444
 
445
+ .truncate {
446
+ text-overflow: ellipsis;
447
+ white-space: nowrap;
448
+ overflow: hidden;
449
+ }
450
+
247
451
  .overflow-hidden {
248
452
  overflow: hidden;
249
453
  }
250
454
 
251
- .rounded-\[3px\] {
252
- border-radius: 3px;
455
+ .overflow-x-hidden {
456
+ overflow-x: hidden;
457
+ }
458
+
459
+ .overflow-y-auto {
460
+ overflow-y: auto;
461
+ }
462
+
463
+ .overscroll-contain {
464
+ overscroll-behavior: contain;
465
+ }
466
+
467
+ .rounded-\(--hub-radius-md\) {
468
+ border-radius: var(--hub-radius-md);
253
469
  }
254
470
 
255
471
  .rounded-full {
256
472
  border-radius: 2147483647px;
257
473
  }
258
474
 
475
+ .rounded-hub-lg {
476
+ border-radius: var(--hub-radius-lg);
477
+ }
478
+
479
+ .rounded-hub-sm {
480
+ border-radius: var(--hub-radius-sm);
481
+ }
482
+
259
483
  .border {
260
484
  border-style: var(--tw-border-style);
261
485
  border-width: 1px;
262
486
  }
263
487
 
488
+ .border-\(length\:--hub-hairline\) {
489
+ border-style: var(--tw-border-style);
490
+ border-width: var(--hub-hairline);
491
+ }
492
+
264
493
  .border-0 {
265
494
  border-style: var(--tw-border-style);
266
495
  border-width: 0;
267
496
  }
268
497
 
498
+ .border-solid {
499
+ --tw-border-style: solid;
500
+ border-style: solid;
501
+ }
502
+
269
503
  .border-hub-border {
270
504
  border-color: var(--hub-border);
271
505
  }
@@ -274,6 +508,10 @@
274
508
  border-color: var(--hub-border-strong);
275
509
  }
276
510
 
511
+ .border-hub-border-subtle {
512
+ border-color: var(--hub-border-subtle);
513
+ }
514
+
277
515
  .border-transparent {
278
516
  border-color: #0000;
279
517
  }
@@ -282,14 +520,12 @@
282
520
  background-color: var(--hub-bg-panel);
283
521
  }
284
522
 
285
- .bg-hub-border, .bg-hub-border\/50 {
523
+ .bg-hub-border {
286
524
  background-color: var(--hub-border);
287
525
  }
288
526
 
289
- @supports (color: color-mix(in lab, red, red)) {
290
- .bg-hub-border\/50 {
291
- background-color: color-mix(in oklab, var(--hub-border) 50%, transparent);
292
- }
527
+ .bg-hub-border-subtle {
528
+ background-color: var(--hub-border-subtle);
293
529
  }
294
530
 
295
531
  .bg-hub-error-solid {
@@ -304,10 +540,76 @@
304
540
  background-color: var(--hub-primary-solid);
305
541
  }
306
542
 
543
+ .bg-hub-success-solid {
544
+ background-color: var(--hub-success-solid);
545
+ }
546
+
307
547
  .bg-transparent {
308
548
  background-color: #0000;
309
549
  }
310
550
 
551
+ .bg-linear-to-b {
552
+ --tw-gradient-position: to bottom;
553
+ }
554
+
555
+ @supports (background-image: linear-gradient(in lab, red, red)) {
556
+ .bg-linear-to-b {
557
+ --tw-gradient-position: to bottom in oklab;
558
+ }
559
+ }
560
+
561
+ .bg-linear-to-b {
562
+ background-image: linear-gradient(var(--tw-gradient-stops));
563
+ }
564
+
565
+ .bg-linear-to-t {
566
+ --tw-gradient-position: to top;
567
+ }
568
+
569
+ @supports (background-image: linear-gradient(in lab, red, red)) {
570
+ .bg-linear-to-t {
571
+ --tw-gradient-position: to top in oklab;
572
+ }
573
+ }
574
+
575
+ .bg-linear-to-t {
576
+ background-image: linear-gradient(var(--tw-gradient-stops));
577
+ }
578
+
579
+ .from-hub-bg-panel {
580
+ --tw-gradient-from: var(--hub-bg-panel);
581
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
582
+ }
583
+
584
+ .via-hub-bg-panel\/90 {
585
+ --tw-gradient-via: var(--hub-bg-panel);
586
+ }
587
+
588
+ @supports (color: color-mix(in lab, red, red)) {
589
+ .via-hub-bg-panel\/90 {
590
+ --tw-gradient-via: color-mix(in oklab, var(--hub-bg-panel) 90%, transparent);
591
+ }
592
+ }
593
+
594
+ .via-hub-bg-panel\/90 {
595
+ --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
596
+ --tw-gradient-stops: var(--tw-gradient-via-stops);
597
+ }
598
+
599
+ .to-hub-bg-panel\/50 {
600
+ --tw-gradient-to: var(--hub-bg-panel);
601
+ }
602
+
603
+ @supports (color: color-mix(in lab, red, red)) {
604
+ .to-hub-bg-panel\/50 {
605
+ --tw-gradient-to: color-mix(in oklab, var(--hub-bg-panel) 50%, transparent);
606
+ }
607
+ }
608
+
609
+ .to-hub-bg-panel\/50 {
610
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
611
+ }
612
+
311
613
  .\[mask-image\:linear-gradient\(transparent\,black_10\%\,black_90\%\,transparent\)\] {
312
614
  -webkit-mask-image: linear-gradient(#0000, #000 10% 90%, #0000);
313
615
  mask-image: linear-gradient(#0000, #000 10% 90%, #0000);
@@ -318,16 +620,52 @@
318
620
  mask-image: linear-gradient(#0000 5%, #000 40% 60%, #0000 95%);
319
621
  }
320
622
 
623
+ .p-0 {
624
+ padding: 0;
625
+ }
626
+
627
+ .p-1 {
628
+ padding: var(--spacing, .25rem);
629
+ }
630
+
631
+ .p-3 {
632
+ padding: calc(var(--spacing, .25rem) * 3);
633
+ }
634
+
635
+ .px-0\.5 {
636
+ padding-inline: calc(var(--spacing, .25rem) * .5);
637
+ }
638
+
639
+ .px-2 {
640
+ padding-inline: calc(var(--spacing, .25rem) * 2);
641
+ }
642
+
321
643
  .px-2\.5 {
322
- padding-inline: calc(var(--spacing) * 2.5);
644
+ padding-inline: calc(var(--spacing, .25rem) * 2.5);
323
645
  }
324
646
 
325
647
  .px-3 {
326
- padding-inline: calc(var(--spacing) * 3);
648
+ padding-inline: calc(var(--spacing, .25rem) * 3);
327
649
  }
328
650
 
329
651
  .px-4 {
330
- padding-inline: calc(var(--spacing) * 4);
652
+ padding-inline: calc(var(--spacing, .25rem) * 4);
653
+ }
654
+
655
+ .py-1\.25 {
656
+ padding-block: calc(var(--spacing, .25rem) * 1.25);
657
+ }
658
+
659
+ .pr-2\.5 {
660
+ padding-right: calc(var(--spacing, .25rem) * 2.5);
661
+ }
662
+
663
+ .pl-2\.5 {
664
+ padding-left: calc(var(--spacing, .25rem) * 2.5);
665
+ }
666
+
667
+ .text-left {
668
+ text-align: left;
331
669
  }
332
670
 
333
671
  .align-middle {
@@ -335,7 +673,8 @@
335
673
  }
336
674
 
337
675
  .font-sans {
338
- font-family: var(--font-sans);
676
+ font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial,
677
+ sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
339
678
  }
340
679
 
341
680
  .text-hub-md {
@@ -347,13 +686,40 @@
347
686
  }
348
687
 
349
688
  .leading-4 {
350
- --tw-leading: calc(var(--spacing) * 4);
351
- line-height: calc(var(--spacing) * 4);
689
+ --tw-leading: calc(var(--spacing, .25rem) * 4);
690
+ line-height: calc(var(--spacing, .25rem) * 4);
691
+ }
692
+
693
+ .leading-5 {
694
+ --tw-leading: calc(var(--spacing, .25rem) * 5);
695
+ line-height: calc(var(--spacing, .25rem) * 5);
696
+ }
697
+
698
+ .leading-none {
699
+ --tw-leading: 1;
700
+ line-height: 1;
352
701
  }
353
702
 
354
703
  .font-medium {
355
- --tw-font-weight: var(--font-weight-medium);
356
- font-weight: var(--font-weight-medium);
704
+ --tw-font-weight: var(--font-weight-medium, 500);
705
+ font-weight: var(--font-weight-medium, 500);
706
+ }
707
+
708
+ .font-normal {
709
+ --tw-font-weight: var(--font-weight-normal, 400);
710
+ font-weight: var(--font-weight-normal, 400);
711
+ }
712
+
713
+ .break-words {
714
+ overflow-wrap: break-word;
715
+ }
716
+
717
+ .wrap-anywhere {
718
+ overflow-wrap: anywhere;
719
+ }
720
+
721
+ .whitespace-normal {
722
+ white-space: normal;
357
723
  }
358
724
 
359
725
  .whitespace-nowrap {
@@ -364,6 +730,10 @@
364
730
  color: var(--hub-error-contrast);
365
731
  }
366
732
 
733
+ .text-hub-error-solid {
734
+ color: var(--hub-error-solid);
735
+ }
736
+
367
737
  .text-hub-fg {
368
738
  color: var(--hub-fg);
369
739
  }
@@ -376,55 +746,74 @@
376
746
  color: var(--hub-primary-contrast);
377
747
  }
378
748
 
749
+ .text-hub-primary-solid {
750
+ color: var(--hub-primary-solid);
751
+ }
752
+
753
+ .text-hub-success-contrast {
754
+ color: var(--hub-success-contrast);
755
+ }
756
+
379
757
  .opacity-0 {
380
758
  opacity: 0;
381
759
  }
382
760
 
761
+ .shadow-hub-md {
762
+ --tw-shadow: var(--hub-shadow-md);
763
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
764
+ }
765
+
383
766
  .shadow-hub-sm {
384
767
  --tw-shadow: var(--hub-shadow-sm);
385
768
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
386
769
  }
387
770
 
771
+ .blur {
772
+ --tw-blur: blur(8px);
773
+ filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
774
+ }
775
+
776
+ .backdrop-blur-sm {
777
+ --tw-backdrop-blur: blur(var(--blur-sm, 8px));
778
+ -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
779
+ backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
780
+ }
781
+
388
782
  .transition-colors {
389
783
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
390
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
391
- transition-duration: var(--tw-duration, var(--default-transition-duration));
784
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
785
+ transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
392
786
  }
393
787
 
394
788
  .transition-opacity {
395
789
  transition-property: opacity;
396
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
397
- transition-duration: var(--tw-duration, var(--default-transition-duration));
790
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
791
+ transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
398
792
  }
399
793
 
400
- .duration-100 {
401
- --tw-duration: .1s;
402
- transition-duration: .1s;
794
+ .duration-\(--hub-duration-fast\) {
795
+ --tw-duration: var(--hub-duration-fast);
796
+ transition-duration: var(--hub-duration-fast);
403
797
  }
404
798
 
405
- .duration-150 {
406
- --tw-duration: .15s;
407
- transition-duration: .15s;
799
+ .duration-\(--hub-duration-normal\) {
800
+ --tw-duration: var(--hub-duration-normal);
801
+ transition-duration: var(--hub-duration-normal);
408
802
  }
409
803
 
410
- .duration-250 {
411
- --tw-duration: .25s;
412
- transition-duration: .25s;
413
- }
414
-
415
- .duration-\[80ms\] {
416
- --tw-duration: 80ms;
417
- transition-duration: 80ms;
804
+ .duration-\(--hub-duration-slow\) {
805
+ --tw-duration: var(--hub-duration-slow);
806
+ transition-duration: var(--hub-duration-slow);
418
807
  }
419
808
 
420
809
  .ease-in-out {
421
- --tw-ease: var(--ease-in-out);
422
- transition-timing-function: var(--ease-in-out);
810
+ --tw-ease: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));
811
+ transition-timing-function: var(--ease-in-out, cubic-bezier(.4, 0, .2, 1));
423
812
  }
424
813
 
425
814
  .ease-out {
426
- --tw-ease: var(--ease-out);
427
- transition-timing-function: var(--ease-out);
815
+ --tw-ease: var(--ease-out, cubic-bezier(0, 0, .2, 1));
816
+ transition-timing-function: var(--ease-out, cubic-bezier(0, 0, .2, 1));
428
817
  }
429
818
 
430
819
  .outline-none {
@@ -488,17 +877,23 @@
488
877
  outline-color: var(--hub-focus-ring);
489
878
  }
490
879
 
491
- :is(:where(.peer):disabled ~ .peer-disabled\:opacity-40) {
492
- opacity: .4;
880
+ :is(:where(.peer):focus-visible ~ .peer-focus-visible\:outline-solid) {
881
+ --tw-outline-style: solid;
882
+ outline-style: solid;
493
883
  }
494
884
 
495
- .focus-visible\:ring-1:focus-visible {
496
- --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
497
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
885
+ :is(:where(.peer):disabled ~ .peer-disabled\:opacity-50) {
886
+ opacity: .5;
498
887
  }
499
888
 
500
- .focus-visible\:ring-hub-focus-ring:focus-visible {
501
- --tw-ring-color: var(--hub-focus-ring);
889
+ .open\:inline-flex:is([open], :popover-open, :open) {
890
+ display: inline-flex;
891
+ }
892
+
893
+ @media (hover: hover) {
894
+ .hover\:bg-hub-bg-muted:hover {
895
+ background-color: var(--hub-bg-muted);
896
+ }
502
897
  }
503
898
 
504
899
  .focus-visible\:outline-2:focus-visible {
@@ -514,11 +909,6 @@
514
909
  outline-color: var(--hub-focus-ring);
515
910
  }
516
911
 
517
- .focus-visible\:outline-none:focus-visible {
518
- --tw-outline-style: none;
519
- outline-style: none;
520
- }
521
-
522
912
  .focus-visible\:outline-solid:focus-visible {
523
913
  --tw-outline-style: solid;
524
914
  outline-style: solid;
@@ -529,29 +919,21 @@
529
919
  background-color: var(--hub-bg-muted);
530
920
  }
531
921
 
532
- .enabled\:hover\:bg-hub-error-solid\/90:enabled:hover {
533
- background-color: var(--hub-error-solid);
534
- }
535
-
536
- @supports (color: color-mix(in lab, red, red)) {
537
- .enabled\:hover\:bg-hub-error-solid\/90:enabled:hover {
538
- background-color: color-mix(in oklab, var(--hub-error-solid) 90%, transparent);
539
- }
540
- }
541
-
542
- .enabled\:hover\:bg-hub-primary-solid\/90:enabled:hover {
543
- background-color: var(--hub-primary-solid);
922
+ .enabled\:hover\:bg-hub-error-solid-hover:enabled:hover {
923
+ background-color: var(--hub-error-solid-hover);
544
924
  }
545
925
 
546
- @supports (color: color-mix(in lab, red, red)) {
547
- .enabled\:hover\:bg-hub-primary-solid\/90:enabled:hover {
548
- background-color: color-mix(in oklab, var(--hub-primary-solid) 90%, transparent);
549
- }
926
+ .enabled\:hover\:bg-hub-primary-solid-hover:enabled:hover {
927
+ background-color: var(--hub-primary-solid-hover);
550
928
  }
551
929
 
552
930
  .enabled\:hover\:text-hub-fg:enabled:hover {
553
931
  color: var(--hub-fg);
554
932
  }
933
+
934
+ .enabled\:hover\:underline:enabled:hover {
935
+ text-decoration-line: underline;
936
+ }
555
937
  }
556
938
 
557
939
  .enabled\:active\:bg-hub-bg-emphasized:enabled:active {
@@ -562,6 +944,10 @@
562
944
  background-color: var(--hub-bg-muted);
563
945
  }
564
946
 
947
+ .disabled\:pointer-events-none:disabled {
948
+ pointer-events: none;
949
+ }
950
+
565
951
  .disabled\:cursor-default:disabled {
566
952
  cursor: default;
567
953
  }
@@ -574,7 +960,11 @@
574
960
  opacity: .5;
575
961
  }
576
962
 
577
- .aria-pressed\:bg-hub-bg-muted[aria-pressed="true"] {
963
+ .aria-disabled\:opacity-40[aria-disabled="true"] {
964
+ opacity: .4;
965
+ }
966
+
967
+ .aria-expanded\:bg-hub-bg-muted[aria-expanded="true"], .aria-pressed\:bg-hub-bg-muted[aria-pressed="true"] {
578
968
  background-color: var(--hub-bg-muted);
579
969
  }
580
970
 
@@ -592,20 +982,58 @@
592
982
  background-color: var(--hub-bg-emphasized);
593
983
  }
594
984
 
985
+ .data-active\:bg-hub-bg-muted[data-active] {
986
+ background-color: var(--hub-bg-muted);
987
+ }
988
+
989
+ .data-closing\:pointer-events-none[data-closing] {
990
+ pointer-events: none;
991
+ }
992
+
993
+ .data-closing\:animate-\[hub-toast-out_var\(--hub-duration-exit\)_ease_forwards\][data-closing] {
994
+ animation: hub-toast-out var(--hub-duration-exit) ease forwards;
995
+ }
996
+
997
+ .data-expanded\:w-\(--hub-float-width\)[data-expanded] {
998
+ width: var(--hub-float-width);
999
+ }
1000
+
1001
+ .data-pressed\:bg-hub-bg-emphasized[data-pressed] {
1002
+ background-color: var(--hub-bg-emphasized);
1003
+ }
1004
+
595
1005
  @media (prefers-reduced-motion: reduce) {
1006
+ .motion-reduce\:animate-none {
1007
+ animation: none;
1008
+ }
1009
+
596
1010
  .motion-reduce\:transition-none {
597
1011
  transition-property: none;
598
1012
  }
1013
+
1014
+ .motion-reduce\:data-closing\:animate-none[data-closing] {
1015
+ animation: none;
1016
+ }
1017
+ }
1018
+
1019
+ @starting-style {
1020
+ .starting\:opacity-0 {
1021
+ opacity: 0;
1022
+ }
599
1023
  }
600
1024
 
601
1025
  .\[\&_svg\]\:size-3\.5 svg {
602
- width: calc(var(--spacing) * 3.5);
603
- height: calc(var(--spacing) * 3.5);
1026
+ width: calc(var(--spacing, .25rem) * 3.5);
1027
+ height: calc(var(--spacing, .25rem) * 3.5);
604
1028
  }
605
1029
 
606
1030
  .\[\&_svg\]\:size-4 svg {
607
- width: calc(var(--spacing) * 4);
608
- height: calc(var(--spacing) * 4);
1031
+ width: calc(var(--spacing, .25rem) * 4);
1032
+ height: calc(var(--spacing, .25rem) * 4);
1033
+ }
1034
+
1035
+ .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar {
1036
+ display: none;
609
1037
  }
610
1038
  }
611
1039
 
@@ -620,13 +1048,84 @@
620
1048
  --hub-fg: #25252a;
621
1049
  --hub-fg-muted: #73737a;
622
1050
  --hub-border: #dedee5;
623
- --hub-border-strong: lch(69.4% 0 142.924);
1051
+ --hub-border-strong: lch(61% 0 142.924);
1052
+ --hub-border-subtle: var(--hub-border);
1053
+ }
1054
+
1055
+ @supports (color: color-mix(in lab, red, red)) {
1056
+ :root {
1057
+ --hub-border-subtle: color-mix(in oklab, var(--hub-border) 50%, transparent);
1058
+ }
1059
+ }
1060
+
1061
+ :root {
624
1062
  --hub-primary-solid: #7560d5;
625
1063
  --hub-primary-contrast: #fff;
1064
+ --hub-primary-solid-hover: var(--hub-primary-solid);
1065
+ }
1066
+
1067
+ @supports (color: color-mix(in lab, red, red)) {
1068
+ :root {
1069
+ --hub-primary-solid-hover: color-mix(in oklab, var(--hub-primary-solid) 90%, transparent);
1070
+ }
1071
+ }
1072
+
1073
+ :root {
626
1074
  --hub-error-solid: #c93645;
627
1075
  --hub-error-contrast: #fff;
1076
+ --hub-error-solid-hover: var(--hub-error-solid);
1077
+ }
1078
+
1079
+ @supports (color: color-mix(in lab, red, red)) {
1080
+ :root {
1081
+ --hub-error-solid-hover: color-mix(in oklab, var(--hub-error-solid) 90%, transparent);
1082
+ }
1083
+ }
1084
+
1085
+ :root {
1086
+ --hub-success-solid: #62b963;
1087
+ --hub-success-contrast: #fff;
628
1088
  --hub-shadow-sm: 0 0 0 .5px #0000000f, 0 3px 6px -2px #00000005, 0 1px 1px #0000000a;
1089
+ --hub-shadow-md: 0 6px 18px #00000005, 0 3px 9px #0000000a, 0 1px 1px #0000000a;
629
1090
  --hub-focus-ring: #7560d5;
1091
+ --hub-radius-sm: 3px;
1092
+ --hub-radius-md: 8px;
1093
+ --hub-radius-lg: 12px;
1094
+ --hub-control-height-sm: 24px;
1095
+ --hub-control-height-md: 30px;
1096
+ --hub-row-height-md: 32px;
1097
+ --hub-menu-max-height: 368px;
1098
+ --hub-menu-gutter: 8px;
1099
+ --hub-scroll-affordance: 24px;
1100
+ --hub-hairline: .5px;
1101
+ --hub-hit-area: 7px;
1102
+ --hub-float-width: 320px;
1103
+ --hub-float-gutter: 16px;
1104
+ --hub-duration-fast: .1s;
1105
+ --hub-duration-normal: .15s;
1106
+ --hub-duration-slow: .25s;
1107
+ --hub-duration-enter: .4s;
1108
+ --hub-duration-exit: .2s;
1109
+ --hub-duration-emphasis: .8s;
1110
+ --hub-delay-open: .5s;
1111
+ --hub-delay-skip: .3s;
1112
+ --hub-z-raised: 10;
1113
+ --hub-z-overlay: 40;
1114
+ --hub-z-toast: 1500;
1115
+ }
1116
+
1117
+ @keyframes hub-toast-in {
1118
+ from {
1119
+ opacity: 0;
1120
+ transform: translateY(100%);
1121
+ }
1122
+ }
1123
+
1124
+ @keyframes hub-toast-out {
1125
+ to {
1126
+ opacity: 0;
1127
+ transform: translateY(12px);
1128
+ }
630
1129
  }
631
1130
 
632
1131
  @property --tw-scale-x {
@@ -678,6 +1177,57 @@
678
1177
  initial-value: solid;
679
1178
  }
680
1179
 
1180
+ @property --tw-gradient-position {
1181
+ syntax: "*";
1182
+ inherits: false
1183
+ }
1184
+
1185
+ @property --tw-gradient-from {
1186
+ syntax: "<color>";
1187
+ inherits: false;
1188
+ initial-value: #0000;
1189
+ }
1190
+
1191
+ @property --tw-gradient-via {
1192
+ syntax: "<color>";
1193
+ inherits: false;
1194
+ initial-value: #0000;
1195
+ }
1196
+
1197
+ @property --tw-gradient-to {
1198
+ syntax: "<color>";
1199
+ inherits: false;
1200
+ initial-value: #0000;
1201
+ }
1202
+
1203
+ @property --tw-gradient-stops {
1204
+ syntax: "*";
1205
+ inherits: false
1206
+ }
1207
+
1208
+ @property --tw-gradient-via-stops {
1209
+ syntax: "*";
1210
+ inherits: false
1211
+ }
1212
+
1213
+ @property --tw-gradient-from-position {
1214
+ syntax: "<length-percentage>";
1215
+ inherits: false;
1216
+ initial-value: 0%;
1217
+ }
1218
+
1219
+ @property --tw-gradient-via-position {
1220
+ syntax: "<length-percentage>";
1221
+ inherits: false;
1222
+ initial-value: 50%;
1223
+ }
1224
+
1225
+ @property --tw-gradient-to-position {
1226
+ syntax: "<length-percentage>";
1227
+ inherits: false;
1228
+ initial-value: 100%;
1229
+ }
1230
+
681
1231
  @property --tw-leading {
682
1232
  syntax: "*";
683
1233
  inherits: false
@@ -767,6 +1317,117 @@
767
1317
  initial-value: 0 0 #0000;
768
1318
  }
769
1319
 
1320
+ @property --tw-blur {
1321
+ syntax: "*";
1322
+ inherits: false
1323
+ }
1324
+
1325
+ @property --tw-brightness {
1326
+ syntax: "*";
1327
+ inherits: false
1328
+ }
1329
+
1330
+ @property --tw-contrast {
1331
+ syntax: "*";
1332
+ inherits: false
1333
+ }
1334
+
1335
+ @property --tw-grayscale {
1336
+ syntax: "*";
1337
+ inherits: false
1338
+ }
1339
+
1340
+ @property --tw-hue-rotate {
1341
+ syntax: "*";
1342
+ inherits: false
1343
+ }
1344
+
1345
+ @property --tw-invert {
1346
+ syntax: "*";
1347
+ inherits: false
1348
+ }
1349
+
1350
+ @property --tw-opacity {
1351
+ syntax: "*";
1352
+ inherits: false
1353
+ }
1354
+
1355
+ @property --tw-saturate {
1356
+ syntax: "*";
1357
+ inherits: false
1358
+ }
1359
+
1360
+ @property --tw-sepia {
1361
+ syntax: "*";
1362
+ inherits: false
1363
+ }
1364
+
1365
+ @property --tw-drop-shadow {
1366
+ syntax: "*";
1367
+ inherits: false
1368
+ }
1369
+
1370
+ @property --tw-drop-shadow-color {
1371
+ syntax: "*";
1372
+ inherits: false
1373
+ }
1374
+
1375
+ @property --tw-drop-shadow-alpha {
1376
+ syntax: "<percentage>";
1377
+ inherits: false;
1378
+ initial-value: 100%;
1379
+ }
1380
+
1381
+ @property --tw-drop-shadow-size {
1382
+ syntax: "*";
1383
+ inherits: false
1384
+ }
1385
+
1386
+ @property --tw-backdrop-blur {
1387
+ syntax: "*";
1388
+ inherits: false
1389
+ }
1390
+
1391
+ @property --tw-backdrop-brightness {
1392
+ syntax: "*";
1393
+ inherits: false
1394
+ }
1395
+
1396
+ @property --tw-backdrop-contrast {
1397
+ syntax: "*";
1398
+ inherits: false
1399
+ }
1400
+
1401
+ @property --tw-backdrop-grayscale {
1402
+ syntax: "*";
1403
+ inherits: false
1404
+ }
1405
+
1406
+ @property --tw-backdrop-hue-rotate {
1407
+ syntax: "*";
1408
+ inherits: false
1409
+ }
1410
+
1411
+ @property --tw-backdrop-invert {
1412
+ syntax: "*";
1413
+ inherits: false
1414
+ }
1415
+
1416
+ @property --tw-backdrop-opacity {
1417
+ syntax: "*";
1418
+ inherits: false
1419
+ }
1420
+
1421
+ @property --tw-backdrop-saturate {
1422
+ syntax: "*";
1423
+ inherits: false
1424
+ }
1425
+
1426
+ @property --tw-backdrop-sepia {
1427
+ syntax: "*";
1428
+ inherits: false
1429
+ }
1430
+
770
1431
  @property --tw-duration {
771
1432
  syntax: "*";
772
1433
  inherits: false