basecoat-css 0.3.11 → 1.0.0-beta.1

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 (97) hide show
  1. package/README.md +8 -1
  2. package/dist/base/base.css +150 -0
  3. package/dist/basecoat-base.cdn.css +2942 -0
  4. package/dist/basecoat-base.cdn.min.css +2 -0
  5. package/dist/basecoat-base.css +2 -0
  6. package/dist/basecoat-components.css +32 -0
  7. package/dist/basecoat-luma.cdn.css +6073 -0
  8. package/dist/basecoat-luma.cdn.min.css +2 -0
  9. package/dist/basecoat-luma.css +2 -0
  10. package/dist/basecoat-lyra.cdn.css +6004 -0
  11. package/dist/basecoat-lyra.cdn.min.css +2 -0
  12. package/dist/basecoat-lyra.css +2 -0
  13. package/dist/basecoat-maia.cdn.css +6012 -0
  14. package/dist/basecoat-maia.cdn.min.css +2 -0
  15. package/dist/basecoat-maia.css +2 -0
  16. package/dist/basecoat-mira.cdn.css +6063 -0
  17. package/dist/basecoat-mira.cdn.min.css +2 -0
  18. package/dist/basecoat-mira.css +2 -0
  19. package/dist/basecoat-nova.cdn.css +6067 -0
  20. package/dist/basecoat-nova.cdn.min.css +2 -0
  21. package/dist/basecoat-nova.css +2 -0
  22. package/dist/basecoat-rhea.cdn.css +6092 -0
  23. package/dist/basecoat-rhea.cdn.min.css +2 -0
  24. package/dist/basecoat-rhea.css +2 -0
  25. package/dist/basecoat-sera.cdn.css +5840 -0
  26. package/dist/basecoat-sera.cdn.min.css +2 -0
  27. package/dist/basecoat-sera.css +2 -0
  28. package/dist/basecoat-vega.cdn.css +6023 -0
  29. package/dist/basecoat-vega.cdn.min.css +2 -0
  30. package/dist/basecoat-vega.css +2 -0
  31. package/dist/basecoat.all.css +1 -0
  32. package/dist/basecoat.cdn.css +5084 -2646
  33. package/dist/basecoat.cdn.min.css +1 -1
  34. package/dist/basecoat.css +1 -1311
  35. package/dist/components/alert.css +21 -0
  36. package/dist/components/badge.css +12 -0
  37. package/dist/components/button-group.css +54 -0
  38. package/dist/components/button.css +61 -0
  39. package/dist/components/card.css +22 -0
  40. package/dist/components/checkbox.css +12 -0
  41. package/dist/components/collapsible.css +21 -0
  42. package/dist/components/combobox.css +78 -0
  43. package/dist/components/command.css +133 -0
  44. package/dist/components/dialog.css +52 -0
  45. package/dist/components/dropdown-menu.css +48 -0
  46. package/dist/components/empty.css +26 -0
  47. package/dist/components/field.css +86 -0
  48. package/dist/components/form.css +9 -0
  49. package/dist/components/input-group.css +50 -0
  50. package/dist/components/input.css +32 -0
  51. package/dist/components/item.css +50 -0
  52. package/dist/components/kbd.css +10 -0
  53. package/dist/components/label.css +12 -0
  54. package/dist/components/native-select.css +12 -0
  55. package/dist/components/popover.css +81 -0
  56. package/dist/components/radio.css +11 -0
  57. package/dist/components/range.css +50 -0
  58. package/dist/components/select.css +64 -0
  59. package/dist/components/sidebar.css +101 -0
  60. package/dist/components/skeleton.css +6 -0
  61. package/dist/components/switch.css +8 -0
  62. package/dist/components/table.css +34 -0
  63. package/dist/components/tabs.css +31 -0
  64. package/dist/components/textarea.css +7 -0
  65. package/dist/components/toast.css +57 -0
  66. package/dist/components/tooltip.css +82 -0
  67. package/dist/js/all.js +1435 -755
  68. package/dist/js/all.min.js +1 -1
  69. package/dist/js/basecoat.js +95 -40
  70. package/dist/js/basecoat.min.js +1 -1
  71. package/dist/js/combobox.js +483 -0
  72. package/dist/js/combobox.min.js +1 -0
  73. package/dist/js/command.js +165 -126
  74. package/dist/js/command.min.js +1 -1
  75. package/dist/js/dropdown-menu.js +158 -133
  76. package/dist/js/dropdown-menu.min.js +1 -1
  77. package/dist/js/popover.js +22 -8
  78. package/dist/js/popover.min.js +1 -1
  79. package/dist/js/range.js +25 -0
  80. package/dist/js/range.min.js +1 -0
  81. package/dist/js/select.js +347 -359
  82. package/dist/js/select.min.js +1 -1
  83. package/dist/js/sidebar.js +27 -31
  84. package/dist/js/sidebar.min.js +1 -1
  85. package/dist/js/tabs.js +82 -38
  86. package/dist/js/tabs.min.js +1 -1
  87. package/dist/js/toast.js +42 -37
  88. package/dist/js/toast.min.js +1 -1
  89. package/dist/styles/luma.css +1308 -0
  90. package/dist/styles/lyra.css +1289 -0
  91. package/dist/styles/maia.css +1296 -0
  92. package/dist/styles/mira.css +1297 -0
  93. package/dist/styles/nova.css +1293 -0
  94. package/dist/styles/rhea.css +1305 -0
  95. package/dist/styles/sera.css +1316 -0
  96. package/dist/styles/vega.css +1293 -0
  97. package/package.json +51 -3
@@ -0,0 +1,1296 @@
1
+ /* Button */
2
+ @layer components {
3
+ .btn,
4
+ .btn-primary,
5
+ .btn-secondary,
6
+ .btn-outline,
7
+ .btn-ghost,
8
+ .btn-link,
9
+ .btn-destructive,
10
+ .btn-xs,
11
+ .btn-xs-primary,
12
+ .btn-xs-secondary,
13
+ .btn-xs-outline,
14
+ .btn-xs-ghost,
15
+ .btn-xs-link,
16
+ .btn-xs-destructive,
17
+ .btn-sm,
18
+ .btn-sm-primary,
19
+ .btn-sm-secondary,
20
+ .btn-sm-outline,
21
+ .btn-sm-ghost,
22
+ .btn-sm-link,
23
+ .btn-sm-destructive,
24
+ .btn-lg,
25
+ .btn-lg-primary,
26
+ .btn-lg-secondary,
27
+ .btn-lg-outline,
28
+ .btn-lg-ghost,
29
+ .btn-lg-link,
30
+ .btn-lg-destructive,
31
+ .btn-icon,
32
+ .btn-icon-primary,
33
+ .btn-icon-secondary,
34
+ .btn-icon-outline,
35
+ .btn-icon-ghost,
36
+ .btn-icon-link,
37
+ .btn-icon-destructive,
38
+ .btn-xs-icon,
39
+ .btn-xs-icon-primary,
40
+ .btn-xs-icon-secondary,
41
+ .btn-xs-icon-outline,
42
+ .btn-xs-icon-ghost,
43
+ .btn-xs-icon-link,
44
+ .btn-xs-icon-destructive,
45
+ .btn-sm-icon,
46
+ .btn-sm-icon-primary,
47
+ .btn-sm-icon-secondary,
48
+ .btn-sm-icon-outline,
49
+ .btn-sm-icon-ghost,
50
+ .btn-sm-icon-link,
51
+ .btn-sm-icon-destructive,
52
+ .btn-lg-icon,
53
+ .btn-lg-icon-primary,
54
+ .btn-lg-icon-secondary,
55
+ .btn-lg-icon-outline,
56
+ .btn-lg-icon-ghost,
57
+ .btn-lg-icon-link,
58
+ .btn-lg-icon-destructive {
59
+ @apply rounded-4xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4;
60
+ }
61
+
62
+ .btn,
63
+ .btn-primary,
64
+ .btn-secondary,
65
+ .btn-outline,
66
+ .btn-ghost,
67
+ .btn-link,
68
+ .btn-destructive {
69
+ @apply h-9 gap-1.5 px-3;
70
+
71
+ &:has(> [data-icon=inline-start]) {
72
+ @apply ps-2.5;
73
+ }
74
+
75
+ &:has(> [data-icon=inline-end]) {
76
+ @apply pe-2.5;
77
+ }
78
+ }
79
+
80
+ .btn-xs,
81
+ .btn-xs-primary,
82
+ .btn-xs-secondary,
83
+ .btn-xs-outline,
84
+ .btn-xs-ghost,
85
+ .btn-xs-link,
86
+ .btn-xs-destructive {
87
+ @apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3;
88
+
89
+ &:has(> [data-icon=inline-start]) {
90
+ @apply ps-2;
91
+ }
92
+
93
+ &:has(> [data-icon=inline-end]) {
94
+ @apply pe-2;
95
+ }
96
+ }
97
+
98
+ .btn-sm,
99
+ .btn-sm-primary,
100
+ .btn-sm-secondary,
101
+ .btn-sm-outline,
102
+ .btn-sm-ghost,
103
+ .btn-sm-link,
104
+ .btn-sm-destructive {
105
+ @apply h-8 gap-1 px-3;
106
+
107
+ &:has(> [data-icon=inline-start]) {
108
+ @apply ps-2;
109
+ }
110
+
111
+ &:has(> [data-icon=inline-end]) {
112
+ @apply pe-2;
113
+ }
114
+ }
115
+
116
+ .btn-lg,
117
+ .btn-lg-primary,
118
+ .btn-lg-secondary,
119
+ .btn-lg-outline,
120
+ .btn-lg-ghost,
121
+ .btn-lg-link,
122
+ .btn-lg-destructive {
123
+ @apply h-10 gap-1.5 px-4;
124
+
125
+ &:has(> [data-icon=inline-start]) {
126
+ @apply ps-3;
127
+ }
128
+
129
+ &:has(> [data-icon=inline-end]) {
130
+ @apply pe-3;
131
+ }
132
+ }
133
+
134
+ .btn-icon,
135
+ .btn-icon-primary,
136
+ .btn-icon-secondary,
137
+ .btn-icon-outline,
138
+ .btn-icon-ghost,
139
+ .btn-icon-link,
140
+ .btn-icon-destructive {
141
+ @apply size-9;
142
+ }
143
+
144
+ .btn-xs-icon,
145
+ .btn-xs-icon-primary,
146
+ .btn-xs-icon-secondary,
147
+ .btn-xs-icon-outline,
148
+ .btn-xs-icon-ghost,
149
+ .btn-xs-icon-link,
150
+ .btn-xs-icon-destructive {
151
+ @apply size-6 [&_svg:not([class*='size-'])]:size-3;
152
+ }
153
+
154
+ .btn-sm-icon,
155
+ .btn-sm-icon-primary,
156
+ .btn-sm-icon-secondary,
157
+ .btn-sm-icon-outline,
158
+ .btn-sm-icon-ghost,
159
+ .btn-sm-icon-link,
160
+ .btn-sm-icon-destructive {
161
+ @apply size-8;
162
+ }
163
+
164
+ .btn-lg-icon,
165
+ .btn-lg-icon-primary,
166
+ .btn-lg-icon-secondary,
167
+ .btn-lg-icon-outline,
168
+ .btn-lg-icon-ghost,
169
+ .btn-lg-icon-link,
170
+ .btn-lg-icon-destructive {
171
+ @apply size-10;
172
+ }
173
+
174
+ .btn,
175
+ .btn-primary,
176
+ .btn-xs,
177
+ .btn-xs-primary,
178
+ .btn-sm,
179
+ .btn-sm-primary,
180
+ .btn-lg,
181
+ .btn-lg-primary,
182
+ .btn-icon,
183
+ .btn-icon-primary,
184
+ .btn-xs-icon,
185
+ .btn-xs-icon-primary,
186
+ .btn-sm-icon,
187
+ .btn-sm-icon-primary,
188
+ .btn-lg-icon,
189
+ .btn-lg-icon-primary {
190
+ @apply bg-primary text-primary-foreground hover:bg-primary/80;
191
+ }
192
+
193
+ .btn-secondary,
194
+ .btn-xs-secondary,
195
+ .btn-sm-secondary,
196
+ .btn-lg-secondary,
197
+ .btn-icon-secondary,
198
+ .btn-xs-icon-secondary,
199
+ .btn-sm-icon-secondary,
200
+ .btn-lg-icon-secondary {
201
+ @apply bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
202
+ }
203
+
204
+ .btn-outline,
205
+ .btn-xs-outline,
206
+ .btn-sm-outline,
207
+ .btn-lg-outline,
208
+ .btn-icon-outline,
209
+ .btn-xs-icon-outline,
210
+ .btn-sm-icon-outline,
211
+ .btn-lg-icon-outline {
212
+ @apply border-border bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground;
213
+ }
214
+
215
+ .btn-ghost,
216
+ .btn-xs-ghost,
217
+ .btn-sm-ghost,
218
+ .btn-lg-ghost,
219
+ .btn-icon-ghost,
220
+ .btn-xs-icon-ghost,
221
+ .btn-sm-icon-ghost,
222
+ .btn-lg-icon-ghost {
223
+ @apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
224
+ }
225
+
226
+ .btn-link,
227
+ .btn-xs-link,
228
+ .btn-sm-link,
229
+ .btn-lg-link,
230
+ .btn-icon-link,
231
+ .btn-xs-icon-link,
232
+ .btn-sm-icon-link,
233
+ .btn-lg-icon-link {
234
+ @apply text-primary underline-offset-4 hover:underline;
235
+ }
236
+
237
+ .btn-destructive,
238
+ .btn-xs-destructive,
239
+ .btn-sm-destructive,
240
+ .btn-lg-destructive,
241
+ .btn-icon-destructive,
242
+ .btn-xs-icon-destructive,
243
+ .btn-sm-icon-destructive,
244
+ .btn-lg-icon-destructive {
245
+ @apply bg-destructive/10 text-destructive hover:bg-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
246
+ }
247
+
248
+ /* Button Group */
249
+ .button-group {
250
+ @apply has-[>.button-group]:gap-2;
251
+ }
252
+
253
+ .button-group:not([data-orientation='vertical']) {
254
+ > :last-child,
255
+ > :is(.dropdown-menu, .popover, .select):last-child > button {
256
+ @apply rounded-e-4xl!;
257
+ }
258
+ }
259
+
260
+ .button-group[data-orientation='vertical'] {
261
+ > :last-child,
262
+ > :is(.dropdown-menu, .popover, .select):last-child > button {
263
+ @apply rounded-b-4xl!;
264
+ }
265
+ }
266
+
267
+ .button-group-text {
268
+ @apply bg-muted gap-2 rounded-4xl border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
269
+ }
270
+
271
+ .button-group > hr[role='separator'],
272
+ .button-group-separator {
273
+ @apply bg-input;
274
+ }
275
+
276
+
277
+ /* Tabs */
278
+ .tabs {
279
+ @apply gap-2;
280
+ }
281
+
282
+ .tabs > [role='tablist'] {
283
+ @apply rounded-4xl p-[3px] h-9;
284
+ }
285
+
286
+ .tabs > [role='tablist']:not([data-variant='line']) {
287
+ @apply bg-muted;
288
+ }
289
+
290
+ .tabs > [role='tablist'][data-variant='line'] {
291
+ @apply gap-1 rounded-none bg-transparent;
292
+ }
293
+
294
+ .tabs > [role='tablist'][aria-orientation='vertical'] {
295
+ @apply h-fit rounded-2xl;
296
+ }
297
+
298
+ .tabs > [role='tablist'] > [role='tab'] {
299
+ @apply text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground gap-1.5 rounded-xl border border-transparent px-2 py-1 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 focus-visible:ring-[3px] focus-visible:outline-1;
300
+ @apply after:absolute after:bg-foreground after:opacity-0 after:transition-opacity;
301
+ }
302
+
303
+ .tabs > [role='tablist'][aria-orientation='vertical'] > [role='tab'] {
304
+ @apply w-full justify-start px-2.5 py-1.5;
305
+ }
306
+
307
+ .tabs > [role='tablist'][data-variant='line'][aria-orientation='horizontal'] > [role='tab'] {
308
+ @apply bg-transparent shadow-none after:inset-x-0 after:bottom-[-5px] after:h-0.5;
309
+ }
310
+
311
+ .tabs > [role='tablist'][data-variant='line'][aria-orientation='vertical'] > [role='tab'] {
312
+ @apply bg-transparent shadow-none after:inset-y-0 after:end-[-4px] after:w-0.5;
313
+ }
314
+
315
+ .tabs > [role='tablist']:not([data-variant='line']) > [role='tab'][aria-selected='true'] {
316
+ @apply bg-background text-foreground dark:border-input dark:bg-input/30 dark:text-foreground shadow-sm;
317
+ }
318
+
319
+ .tabs > [role='tablist'][data-variant='line'] > [role='tab'][aria-selected='true'] {
320
+ @apply bg-transparent text-foreground shadow-none dark:border-transparent dark:bg-transparent dark:text-foreground after:opacity-100;
321
+ }
322
+
323
+ .tabs > [role='tablist'] > [role='tab']:has(> svg:first-child) {
324
+ @apply ps-1.5;
325
+ }
326
+
327
+ .tabs > [role='tablist'] > [role='tab']:has(> svg:last-child) {
328
+ @apply pe-1.5;
329
+ }
330
+
331
+ .tabs > [role='tabpanel'] {
332
+ @apply text-sm;
333
+ }
334
+
335
+ /* Textarea */
336
+ .field > textarea,
337
+ .textarea {
338
+ @apply border-input bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-xl border px-3 py-3 text-base transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm;
339
+ }
340
+ /* Input */
341
+ .field > input[type='text']:not(:is(.command > header input, .dialog > * > header input)),
342
+ .field > input[type='email'],
343
+ .field > input[type='password'],
344
+ .field > input[type='number'],
345
+ .field > input[type='file'],
346
+ .field > input[type='tel'],
347
+ .field > input[type='url'],
348
+ .field > input[type='search']:not(:is(.command > header input, .dialog > * > header input)),
349
+ .field > input[type='date'],
350
+ .field > input[type='datetime-local'],
351
+ .field > input[type='month'],
352
+ .field > input[type='week'],
353
+ .field > input[type='time'],
354
+ .field > input:not([type]),
355
+ .input[type='text'],
356
+ .input[type='email'],
357
+ .input[type='password'],
358
+ .input[type='number'],
359
+ .input[type='file'],
360
+ .input[type='tel'],
361
+ .input[type='url'],
362
+ .input[type='search'],
363
+ .input[type='date'],
364
+ .input[type='datetime-local'],
365
+ .input[type='month'],
366
+ .input[type='week'],
367
+ .input[type='time'],
368
+ .input:not([type]) {
369
+ @apply bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-4xl border px-3 py-1 text-base transition-colors file:h-7 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm;
370
+ }
371
+
372
+ /* Native Select */
373
+ .field > select,
374
+ select.select {
375
+ @apply border-input bg-input/30 placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-fit rounded-4xl border py-1 ps-3 pe-8 text-sm transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=sm]:h-8;
376
+ @apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.875rem] bg-size-[1rem];
377
+ }
378
+
379
+ :is(.field > select, select.select):dir(rtl) {
380
+ @apply bg-position-[center_left_0.875rem];
381
+ }
382
+
383
+ /* Alert */
384
+ .alert,
385
+ .alert-destructive {
386
+ @apply grid gap-0.5 rounded-lg border px-4 py-3 text-start text-sm has-[>[data-action]]:relative has-[>[data-action]]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 [&>svg]:row-span-2 [&>svg]:translate-y-0.5 [&>svg]:text-current [&>svg:not([class*='size-'])]:size-4;
387
+ }
388
+
389
+ .alert {
390
+ @apply bg-card text-card-foreground;
391
+ }
392
+
393
+ .alert-destructive {
394
+ @apply text-destructive bg-card [&>section]:text-destructive/90 [&>svg]:text-current;
395
+ }
396
+
397
+ .alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
398
+ .alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
399
+ @apply font-medium;
400
+ }
401
+
402
+
403
+ :is(.alert, .alert-destructive):has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
404
+ @apply col-start-2;
405
+ }
406
+ .alert > section,
407
+ .alert-destructive > section {
408
+ @apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
409
+ }
410
+
411
+ .alert > [data-action],
412
+ .alert-destructive > [data-action] {
413
+ @apply absolute top-2.5 end-3;
414
+ }
415
+
416
+ /* Badge */
417
+ .badge,
418
+ .badge-primary,
419
+ .badge-secondary,
420
+ .badge-destructive,
421
+ .badge-outline,
422
+ .badge-ghost,
423
+ .badge-link {
424
+ @apply h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:size-3!;
425
+ }
426
+
427
+ .badge,
428
+ .badge-primary {
429
+ @apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
430
+ }
431
+
432
+ .badge-secondary {
433
+ @apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
434
+ }
435
+
436
+ .badge-outline {
437
+ @apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/30;
438
+ }
439
+
440
+ .badge-destructive {
441
+ @apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
442
+ }
443
+
444
+ .badge-ghost {
445
+ @apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
446
+ }
447
+
448
+ .badge-link {
449
+ @apply text-primary underline-offset-4 hover:underline;
450
+ }
451
+
452
+ /* Command */
453
+ .command {
454
+ @apply bg-popover text-popover-foreground rounded-4xl p-1;
455
+ }
456
+
457
+ .command-dialog > * {
458
+ @apply rounded-4xl p-0;
459
+ }
460
+
461
+ .command > header {
462
+ @apply m-1 mb-0 h-9 gap-2 rounded-3xl bg-input/30 px-3;
463
+ }
464
+
465
+ .command > header svg {
466
+ @apply size-4 opacity-50;
467
+ }
468
+
469
+ .command > header input {
470
+ @apply h-full text-sm placeholder:text-muted-foreground;
471
+ }
472
+
473
+ .command [role='menu'] {
474
+ @apply max-h-72 scroll-py-1;
475
+ }
476
+
477
+ .command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
478
+ @apply py-6 text-center text-sm;
479
+ }
480
+
481
+ .command [role='group'] {
482
+ @apply p-1 text-foreground;
483
+ }
484
+
485
+ .command [role='heading'] {
486
+ @apply text-muted-foreground px-3 py-2 text-xs font-medium;
487
+ }
488
+
489
+ .command [role='separator'] {
490
+ @apply bg-border/50 my-1 h-px;
491
+ }
492
+
493
+ .command [role='menuitem'] {
494
+ @apply gap-2 rounded-lg px-3 py-2 text-sm [&_svg:not([class*='size-'])]:size-4 in-[.command-dialog]:rounded-2xl;
495
+ }
496
+
497
+ .command [role='menuitem'].active {
498
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
499
+ }
500
+
501
+ .command [data-shortcut] {
502
+ @apply text-muted-foreground text-xs tracking-widest;
503
+ }
504
+
505
+ .command [role='menuitem'].active [data-shortcut] {
506
+ @apply text-foreground;
507
+ }
508
+
509
+
510
+ /* Combobox */
511
+ .combobox > input[role='combobox'] {
512
+ @apply border-input bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-4xl border py-2 ps-3 pe-8 text-sm transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px];
513
+ }
514
+
515
+ .combobox > svg,
516
+ .combobox-trigger-icon {
517
+ @apply text-muted-foreground end-3 top-1/2 size-4 -translate-y-1/2;
518
+ }
519
+
520
+ .combobox [data-popover] {
521
+ @apply bg-popover text-popover-foreground ring-foreground/5 max-h-72 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
522
+ }
523
+
524
+ .combobox [role='listbox'] {
525
+ @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
526
+ }
527
+
528
+ .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
529
+ @apply px-3 py-2 text-center text-sm text-muted-foreground;
530
+ }
531
+
532
+ .combobox [role='heading'] {
533
+ @apply text-muted-foreground px-3.5 py-2.5 text-xs;
534
+ }
535
+
536
+ .combobox [role='option'] {
537
+ @apply gap-2.5 rounded-xl py-2 ps-3 pe-8 text-sm [&_svg:not([class*='size-'])]:size-4;
538
+ }
539
+
540
+ .combobox [role='option'].active,
541
+ .combobox [role='option']:focus-visible {
542
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
543
+ }
544
+
545
+ .combobox [role='group'] {
546
+ @apply scroll-my-1 p-1;
547
+ }
548
+
549
+ .combobox [role='separator'] {
550
+ @apply bg-border/50 -mx-1 my-1 h-px;
551
+ }
552
+
553
+ .combobox-chips {
554
+ @apply bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40 has-[[aria-invalid=true]]:border-destructive dark:has-[[aria-invalid=true]]:border-destructive/50 min-h-9 gap-1.5 rounded-4xl border bg-clip-padding px-1.5 py-1.5 text-sm transition-colors focus-within:ring-[3px] has-[[aria-invalid=true]]:ring-[3px];
555
+ }
556
+
557
+ .combobox-chip {
558
+ @apply bg-muted-foreground/10 text-foreground h-5.5 gap-1 rounded-4xl px-2 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
559
+ }
560
+
561
+ .combobox-chip-remove {
562
+ @apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
563
+ }
564
+ /* Select */
565
+ *:not(select).select > button {
566
+ @apply border-input bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 data-[size=sm]:h-8 gap-1.5 rounded-4xl border px-3 py-2 text-sm transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4;
567
+ }
568
+
569
+ *:not(select).select > button > span {
570
+ @apply gap-1.5;
571
+ }
572
+
573
+ *:not(select).select > button > svg {
574
+ @apply text-muted-foreground size-4;
575
+ }
576
+
577
+ *:not(select).select [data-popover] {
578
+ @apply bg-popover text-popover-foreground ring-foreground/5 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
579
+ }
580
+
581
+
582
+
583
+
584
+ *:not(select).select [role='listbox'] {
585
+ @apply scroll-py-1;
586
+ }
587
+
588
+ *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
589
+ @apply py-6 text-center text-sm;
590
+ }
591
+
592
+ *:not(select).select [role='heading'] {
593
+ @apply text-muted-foreground px-3 py-2.5 text-xs;
594
+ }
595
+
596
+ *:not(select).select [role='option'] {
597
+ @apply gap-2.5 rounded-xl py-2 ps-3 pe-8 text-sm [&_svg:not([class*='size-'])]:size-4;
598
+ }
599
+
600
+ *:not(select).select [role='option'].active,
601
+ *:not(select).select [role='option']:focus-visible {
602
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
603
+ }
604
+
605
+ *:not(select).select [role='group'] {
606
+ @apply scroll-my-1 p-1;
607
+ }
608
+
609
+ *:not(select).select [role='separator'] {
610
+ @apply bg-border/50 -mx-1 my-1 h-px;
611
+ }
612
+
613
+
614
+ /* Dialog */
615
+ .dialog::backdrop,
616
+ .command-dialog::backdrop {
617
+ @apply bg-black/80 backdrop-blur-xs duration-100;
618
+ }
619
+
620
+ .dialog > * {
621
+ @apply bg-popover text-popover-foreground ring-foreground/5 max-w-[calc(100%-2rem)] gap-6 rounded-4xl p-6 text-sm ring-1 duration-100 sm:max-w-md;
622
+ }
623
+
624
+ .dialog > * > :is(button, form[method='dialog']) {
625
+ @apply top-4 end-4;
626
+ }
627
+
628
+ .dialog > * > header {
629
+ @apply gap-2;
630
+ }
631
+
632
+ .dialog > * > footer {
633
+ @apply gap-2;
634
+ }
635
+
636
+ .dialog > * > header > h2,
637
+ .dialog > * > [data-title] {
638
+ @apply text-base leading-none font-medium;
639
+ }
640
+
641
+ .dialog > * > header > p,
642
+ .dialog > * > [data-description] {
643
+ @apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
644
+ }
645
+
646
+ /* Dropdown Menu */
647
+ .dropdown-menu > [data-popover] {
648
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-2xl p-1 shadow-2xl ring-1 duration-100;
649
+ }
650
+
651
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
652
+ @apply gap-2.5 rounded-xl px-3 py-2 text-sm focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg:not([class*='size-'])]:size-4;
653
+ }
654
+
655
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
656
+ @apply bg-accent text-accent-foreground;
657
+ }
658
+
659
+ .dropdown-menu [data-variant='destructive'] {
660
+ @apply text-destructive;
661
+ }
662
+
663
+ .dropdown-menu [data-variant='destructive']:is(:focus-visible, .active) {
664
+ @apply bg-destructive/10 text-destructive dark:bg-destructive/20;
665
+ }
666
+
667
+ .dropdown-menu [data-variant='destructive'] svg {
668
+ @apply text-destructive;
669
+ }
670
+
671
+ .dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio']) {
672
+ @apply py-2 pe-8 ps-3;
673
+ }
674
+
675
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-inset],
676
+ .dropdown-menu [role='heading'][data-inset] {
677
+ @apply ps-9.5;
678
+ }
679
+
680
+ .dropdown-menu [data-indicator] {
681
+ @apply absolute end-2 flex items-center justify-center;
682
+ }
683
+
684
+ .dropdown-menu [role='heading'] {
685
+ @apply text-muted-foreground px-3 py-2.5 text-xs;
686
+ }
687
+
688
+ .dropdown-menu [role='separator'] {
689
+ @apply bg-border/50 -mx-1 my-1 h-px;
690
+ }
691
+
692
+ .dropdown-menu [data-shortcut] {
693
+ @apply text-muted-foreground text-xs tracking-widest;
694
+ }
695
+
696
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) [data-shortcut] {
697
+ @apply text-accent-foreground;
698
+ }
699
+
700
+ /* Popover */
701
+ [data-popover] {
702
+ @apply bg-popover text-popover-foreground ring-foreground/5 flex flex-col gap-4 rounded-2xl p-4 text-sm shadow-2xl ring-1 duration-100;
703
+ }
704
+ .popover > [data-popover] > header,
705
+ .popover > [data-popover] > [data-header] {
706
+ @apply flex flex-col gap-1 text-sm;
707
+ }
708
+
709
+ .popover > [data-popover] > header > :is(h1, h2, h3, h4, h5, h6),
710
+ .popover > [data-popover] > :is(h1, h2, h3, h4, h5, h6, [data-title]) {
711
+ @apply text-base font-medium;
712
+ }
713
+
714
+ .popover > [data-popover] > header > p,
715
+ .popover > [data-popover] > [data-description] {
716
+ @apply text-muted-foreground;
717
+ }
718
+
719
+ /* Card */
720
+ .card {
721
+ @apply ring-foreground/10 bg-card text-card-foreground gap-6 overflow-hidden rounded-2xl py-6 text-sm ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 [&>img:first-child]:rounded-t-xl [&>img:last-child]:rounded-b-xl;
722
+ }
723
+
724
+ .card > header {
725
+ @apply gap-2 rounded-t-xl px-6 in-data-[size=sm]:px-4 [.border-b]:pb-6 in-data-[size=sm]:[.border-b]:pb-4;
726
+ }
727
+
728
+ .card > header > :is(h2, h3, [data-title], .card-title) {
729
+ @apply text-base font-medium;
730
+ }
731
+
732
+ .card > header > :is(p, [data-description], .card-description) {
733
+ @apply text-muted-foreground text-sm;
734
+ }
735
+
736
+ .card > section {
737
+ @apply px-6 in-data-[size=sm]:px-4;
738
+ }
739
+
740
+ .card > footer {
741
+ @apply rounded-b-xl px-6 in-data-[size=sm]:px-4 [.border-t]:pt-6 in-data-[size=sm]:[.border-t]:pt-4;
742
+ }
743
+
744
+ /* Checkbox */
745
+ .field > input[type='checkbox']:not([role='switch']),
746
+ .input[type='checkbox']:not([role='switch']) {
747
+ @apply border-input dark:bg-input/30 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary aria-invalid:checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[6px] border transition-shadow in-data-[disabled=true]:opacity-50 focus-visible:ring-[3px] aria-invalid:ring-[3px];
748
+ }
749
+
750
+ :is(.field > input[type='checkbox']:not([role='switch']), .input[type='checkbox']:not([role='switch'])):checked:after {
751
+ @apply size-3.5;
752
+ }
753
+
754
+ /* Radio */
755
+ [role='radiogroup'] {
756
+ @apply grid gap-3;
757
+ }
758
+
759
+ .field > input[type='radio'],
760
+ .input[type='radio'] {
761
+ @apply border-input dark:bg-input/30 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary aria-invalid:checked:border-primary aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 flex size-4 rounded-full focus-visible:ring-3 aria-invalid:ring-3;
762
+ }
763
+
764
+ :is(.field > input[type='radio'], .input[type='radio']):checked:before {
765
+ @apply bg-primary-foreground size-2;
766
+ }
767
+
768
+ /* Switch */
769
+ .field > input[type='checkbox'][role='switch'],
770
+ .input[type='checkbox'][role='switch'] {
771
+ @apply checked:bg-primary not-checked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:not-checked:bg-input/80 rounded-full border border-transparent focus-visible:ring-[3px] aria-invalid:ring-[3px];
772
+ }
773
+
774
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']) {
775
+ @apply h-[18.4px] w-[32px];
776
+ }
777
+
778
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm'] {
779
+ @apply h-[14px] w-[24px];
780
+ }
781
+
782
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
783
+ @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
784
+ }
785
+
786
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
787
+ @apply size-4;
788
+ }
789
+
790
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm']:before {
791
+ @apply size-3;
792
+ }
793
+
794
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:not([data-size='sm']):before {
795
+ @apply translate-x-[calc(100%-2px)];
796
+ }
797
+
798
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked[data-size='sm']:before {
799
+ @apply translate-x-[calc(100%-2px)];
800
+ }
801
+
802
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked:not([data-size='sm']):before {
803
+ @apply -translate-x-[calc(100%-2px)];
804
+ }
805
+
806
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked[data-size='sm']:before {
807
+ @apply -translate-x-[calc(100%-2px)];
808
+ }
809
+
810
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
811
+ @apply translate-x-0;
812
+ }
813
+
814
+
815
+ /* Field */
816
+ .fieldset {
817
+ @apply gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
818
+ }
819
+
820
+ .fieldset > legend,
821
+ .field-legend {
822
+ @apply mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base;
823
+ }
824
+
825
+ .fieldset > :is([role='group'], [role='radiogroup']):not(.field),
826
+ .field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
827
+ @apply gap-7;
828
+
829
+ &[role='radiogroup'],
830
+ &[data-slot='checkbox-group'],
831
+ &[data-slot='radio-group'] {
832
+ @apply gap-3;
833
+ }
834
+ }
835
+
836
+ :is(.fieldset, .field) > :is([role='group'], [role='radiogroup']):not(.field) > :is([role='group'], [role='radiogroup']):not(.field),
837
+ .field > fieldset:not(.field) > :is([role='group'], [role='radiogroup']):not(.field) {
838
+ @apply gap-4;
839
+ }
840
+
841
+ .field {
842
+ @apply data-[invalid=true]:text-destructive gap-3;
843
+ }
844
+
845
+ .field > section,
846
+ .field-content {
847
+ @apply gap-1;
848
+ }
849
+
850
+ .field > label,
851
+ label:has(> .field) {
852
+ @apply has-[:checked]:bg-primary/5 has-[:checked]:border-primary/30 dark:has-[:checked]:border-primary/20 dark:has-[:checked]:bg-primary/10 gap-2 leading-snug in-data-[disabled=true]:opacity-50;
853
+ }
854
+
855
+ .field > label:has(input[type='radio']),
856
+ .field > label:has(input[type='checkbox']),
857
+ .field > label:has(input[role='switch']),
858
+ .field > label:has(> .field),
859
+ label:has(> .field) {
860
+ @apply rounded-xl border;
861
+ }
862
+
863
+ .field > label:has(input[type='radio']),
864
+ .field > label:has(input[type='checkbox']),
865
+ .field > label:has(input[role='switch']) {
866
+ @apply p-4;
867
+ }
868
+
869
+ :is(.field > label, label:has(> .field)) > .field {
870
+ @apply p-4;
871
+ }
872
+ .field h2,
873
+ .field h3,
874
+ .field-title {
875
+ @apply gap-2 leading-snug text-sm font-medium in-data-[disabled=true]:opacity-50;
876
+ }
877
+
878
+ .fieldset legend + p,
879
+ .field > p,
880
+ .field section > p,
881
+ .field-description {
882
+ @apply text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5;
883
+ }
884
+
885
+ .field-separator {
886
+ @apply -my-2 h-5 text-sm in-data-[variant=outline]:-mb-2;
887
+ }
888
+
889
+ .field-separator > span {
890
+ @apply text-muted-foreground px-2;
891
+ }
892
+
893
+ .field [role="alert"],
894
+ .field-error {
895
+ @apply text-destructive text-sm;
896
+ }
897
+
898
+ /* Input Group */
899
+ .input-group {
900
+ @apply h-9 has-[>textarea]:h-auto rounded-4xl border border-input bg-input/30 transition-colors focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50 has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-[3px] has-[[aria-invalid=true]]:ring-destructive/20 has-[>textarea]:rounded-xl dark:has-[[aria-invalid=true]]:ring-destructive/40;
901
+ }
902
+
903
+ .input-group[data-orientation='vertical'] {
904
+ @apply rounded-2xl;
905
+ }
906
+
907
+ .input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
908
+ @apply opacity-50;
909
+ }
910
+
911
+ .input-group > :is(input, select, [data-control]) {
912
+ @apply px-3 py-1 text-sm;
913
+ }
914
+
915
+ .input-group:not([data-orientation='vertical']):has(> [data-align='start']) > :is(input, select, [data-control]) {
916
+ @apply ps-1.5;
917
+ }
918
+
919
+ .input-group:not([data-orientation='vertical']):has(> [data-align='end']) > :is(input, select, [data-control]) {
920
+ @apply pe-1.5;
921
+ }
922
+
923
+ .input-group > textarea {
924
+ @apply px-3 py-2 text-sm;
925
+ }
926
+
927
+ .input-group > :is(span, [role='group'], header, footer),
928
+ .input-group > :is(svg, kbd, .popover, .dropdown-menu) {
929
+ @apply gap-2 py-2 text-sm font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-4;
930
+ }
931
+
932
+ .input-group > [data-align='start'] {
933
+ @apply ps-3;
934
+ }
935
+
936
+ .input-group > [data-align='end'] {
937
+ @apply pe-3;
938
+ }
939
+
940
+ .input-group > [data-align='start']:has(> button) {
941
+ @apply -ms-1;
942
+ }
943
+
944
+ .input-group > [data-align='end']:has(> button) {
945
+ @apply -me-1;
946
+ }
947
+
948
+ .input-group > [data-align='start']:has(> kbd) {
949
+ @apply -ms-0.5;
950
+ }
951
+
952
+ .input-group > [data-align='end']:has(> kbd) {
953
+ @apply -me-0.5;
954
+ }
955
+ .input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
956
+ @apply px-3;
957
+ }
958
+
959
+ .input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
960
+ @apply rounded-4xl bg-muted-foreground/10 px-1.5;
961
+ }
962
+
963
+ .input-group > :is(button, [role='group'] > button, header > button, footer > button) {
964
+ @apply gap-2 rounded-4xl text-sm shadow-none [&>svg:not([class*='size-'])]:size-3.5;
965
+ }
966
+
967
+
968
+ .input-group > :is(button, [role='group'] > button, header > button, footer > button):has(> svg):not(:has(> :not(svg))) {
969
+ @apply size-6 p-0;
970
+ }
971
+
972
+ /* Empty */
973
+ .empty {
974
+ @apply gap-4 rounded-lg border-dashed p-12;
975
+ }
976
+
977
+ .empty > header {
978
+ @apply gap-2;
979
+ }
980
+
981
+ .empty figure {
982
+ @apply mb-2;
983
+ }
984
+
985
+ .empty figure:has(> svg:only-child) {
986
+ @apply bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6;
987
+ }
988
+
989
+ .empty :is(h2, h3, h4) {
990
+ @apply text-lg font-medium tracking-tight;
991
+ }
992
+
993
+ .empty p {
994
+ @apply text-muted-foreground text-sm/relaxed;
995
+ }
996
+
997
+ .empty > :is(section, footer) {
998
+ @apply gap-4 text-sm;
999
+ }
1000
+
1001
+ /* Item */
1002
+ .item {
1003
+ @apply rounded-2xl border text-sm;
1004
+ }
1005
+
1006
+ .item:not([data-variant]),
1007
+ .item[data-variant='default'] {
1008
+ @apply border-transparent;
1009
+ }
1010
+
1011
+ .item[data-variant='outline'] {
1012
+ @apply border-border;
1013
+ }
1014
+
1015
+ .item[data-variant='muted'] {
1016
+ @apply bg-muted/50 border-transparent;
1017
+ }
1018
+
1019
+ .item:not([data-size]),
1020
+ .item[data-size='default'] {
1021
+ @apply gap-3.5 px-4 py-3.5;
1022
+ }
1023
+
1024
+ .item[data-size='sm'] {
1025
+ @apply gap-3.5 px-3.5 py-3;
1026
+ }
1027
+
1028
+ .item[data-size='xs'] {
1029
+ @apply gap-2.5 px-3 py-2.5;
1030
+ }
1031
+
1032
+ .item > figure {
1033
+ @apply gap-2;
1034
+ }
1035
+
1036
+ .item:has(p) > figure {
1037
+ @apply translate-y-0.5 self-start;
1038
+ }
1039
+
1040
+ .item > figure:has(> svg:only-child) {
1041
+ @apply [&_svg:not([class*='size-'])]:size-4;
1042
+ }
1043
+
1044
+ .item > figure:has(img) {
1045
+ @apply size-10 overflow-hidden rounded-lg;
1046
+ }
1047
+
1048
+ .item[data-size='sm'] > figure:has(img) {
1049
+ @apply size-8;
1050
+ }
1051
+
1052
+ .item[data-size='xs'] > figure:has(img) {
1053
+ @apply size-6 rounded-md;
1054
+ }
1055
+
1056
+ .item > section {
1057
+ @apply gap-1;
1058
+ }
1059
+
1060
+ .item[data-size='xs'] > section {
1061
+ @apply gap-0.5;
1062
+ }
1063
+
1064
+ .item :is(h2, h3, h4) {
1065
+ @apply gap-2 text-sm leading-snug font-medium underline-offset-4;
1066
+ }
1067
+
1068
+ .item p {
1069
+ @apply text-sm;
1070
+ }
1071
+
1072
+ .item[data-size='xs'] p {
1073
+ @apply text-sm;
1074
+ }
1075
+
1076
+ .item > aside,
1077
+ .item > :is(header, footer) {
1078
+ @apply gap-2;
1079
+ }
1080
+
1081
+ .item-group {
1082
+ @apply gap-4;
1083
+ }
1084
+
1085
+ .item-group:has(> .item[data-size='sm']) {
1086
+ @apply gap-2.5;
1087
+ }
1088
+
1089
+ .item-group:has(> .item[data-size='xs']) {
1090
+ @apply gap-2;
1091
+ }
1092
+
1093
+ .item-group > hr {
1094
+ @apply my-2;
1095
+ }
1096
+
1097
+ /* Kbd */
1098
+ .kbd {
1099
+ @apply bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-sm px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
1100
+ }
1101
+
1102
+ .kbd-group {
1103
+ @apply gap-1;
1104
+ }
1105
+
1106
+ /* Label */
1107
+ .field > label,
1108
+ .label {
1109
+ @apply gap-2 text-sm leading-none font-medium in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
1110
+ }
1111
+
1112
+ /* Sidebar */
1113
+ .sidebar nav {
1114
+ @apply bg-sidebar text-sidebar-foreground;
1115
+ }
1116
+
1117
+ .sidebar nav > header,
1118
+ .sidebar nav > footer {
1119
+ @apply gap-2 p-2 [--radius:var(--radius-xl)];
1120
+ }
1121
+
1122
+ .sidebar nav > section {
1123
+ @apply gap-2 [--radius:var(--radius-xl)];
1124
+ }
1125
+
1126
+ .sidebar nav [role=separator] {
1127
+ @apply border-sidebar-border mx-2;
1128
+ }
1129
+
1130
+ .sidebar nav > section > [role=group] {
1131
+ @apply p-2;
1132
+ }
1133
+
1134
+ .sidebar nav h3 {
1135
+ @apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-3 text-xs font-medium focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
1136
+ }
1137
+
1138
+ .sidebar nav > section > [role=group] > ul {
1139
+ @apply gap-1;
1140
+ }
1141
+
1142
+ .sidebar nav > section > [role=group] {
1143
+ @apply text-sm;
1144
+ }
1145
+
1146
+ .sidebar nav li > :is(a, button),
1147
+ .sidebar nav li > details > summary {
1148
+ @apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground gap-2 rounded-lg px-3 py-2 text-sm focus-visible:ring-2 text-left focus-visible:outline-hidden data-[open]:hover:bg-sidebar-accent data-[open]:hover:text-sidebar-accent-foreground [&>svg]:shrink-0 [&>svg]:size-4;
1149
+ }
1150
+
1151
+ .sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
1152
+ .sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
1153
+ @apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
1154
+ }
1155
+
1156
+ .sidebar nav li > :is(a, button):not([data-variant]),
1157
+ .sidebar nav li > details > summary:not([data-variant]),
1158
+ .sidebar nav li > :is(a, button)[data-variant=default],
1159
+ .sidebar nav li > details > summary[data-variant=default] {
1160
+ @apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
1161
+ }
1162
+
1163
+ .sidebar nav li > :is(a, button)[data-variant=outline],
1164
+ .sidebar nav li > details > summary[data-variant=outline] {
1165
+ @apply bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
1166
+ }
1167
+
1168
+ .sidebar nav li > :is(a, button):not([data-size]),
1169
+ .sidebar nav li > details > summary:not([data-size]),
1170
+ .sidebar nav li > :is(a, button)[data-size=default],
1171
+ .sidebar nav li > details > summary[data-size=default] {
1172
+ @apply h-9 text-sm;
1173
+ }
1174
+
1175
+ .sidebar nav li > :is(a, button)[data-size=sm],
1176
+ .sidebar nav li > details > summary[data-size=sm] {
1177
+ @apply h-8 text-xs;
1178
+ }
1179
+
1180
+ .sidebar nav li > :is(a, button)[data-size=lg],
1181
+ .sidebar nav li > details > summary[data-size=lg] {
1182
+ @apply h-14 px-3 text-sm;
1183
+ }
1184
+
1185
+ .sidebar nav li > details > summary::after {
1186
+ @apply size-4;
1187
+ }
1188
+
1189
+ .sidebar nav li > details::details-content {
1190
+ @apply px-3.5;
1191
+ }
1192
+
1193
+ .sidebar nav ul ul {
1194
+ @apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
1195
+ }
1196
+
1197
+ .sidebar nav ul ul > li > :is(a, button),
1198
+ .sidebar nav ul ul > li > details > summary {
1199
+ @apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 text-sm focus-visible:ring-2 [&>svg]:size-4;
1200
+ }
1201
+
1202
+ /* Skeleton */
1203
+ .skeleton {
1204
+ @apply bg-muted rounded-xl;
1205
+ }
1206
+
1207
+ /* Table */
1208
+ .table-container {
1209
+ @apply relative w-full overflow-x-auto;
1210
+ }
1211
+
1212
+ .table {
1213
+ @apply w-full caption-bottom text-sm;
1214
+ }
1215
+
1216
+ .table thead {
1217
+ @apply [&_tr]:border-b;
1218
+ }
1219
+
1220
+ .table tbody {
1221
+ @apply [&_tr:last-child]:border-0;
1222
+ }
1223
+
1224
+ .table tfoot {
1225
+ @apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
1226
+ }
1227
+
1228
+ .table tr {
1229
+ @apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
1230
+ }
1231
+
1232
+ .table th {
1233
+ @apply text-foreground h-12 px-3 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0;
1234
+ }
1235
+
1236
+ .table td {
1237
+ @apply p-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0;
1238
+ }
1239
+
1240
+ .table caption {
1241
+ @apply text-muted-foreground mt-4 text-sm;
1242
+ }
1243
+
1244
+
1245
+ /* Tooltip */
1246
+ [data-tooltip]::before {
1247
+ @apply bg-foreground text-background inline-flex items-center gap-1.5 rounded-2xl px-3 py-1.5 text-xs has-[.kbd]:pe-1.5 [&_.kbd]:relative [&_.kbd]:isolate [&_.kbd]:z-50 [&_.kbd]:rounded-4xl;
1248
+ }
1249
+
1250
+ [data-tooltip][data-arrow]::after {
1251
+ @apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-[2px] data-[side=left]:translate-x-[-1.5px] data-[side=right]:translate-x-[1.5px];
1252
+ }
1253
+
1254
+ /* Toast */
1255
+ .toast-content {
1256
+ @apply bg-popover text-popover-foreground border shadow-lg rounded-2xl;
1257
+ }
1258
+
1259
+ /* Slider */
1260
+ .field > input[type='range'],
1261
+ .input[type='range'] {
1262
+ @apply h-5;
1263
+ --slider-track-height: 0.75rem;
1264
+ --slider-thumb-size: 1rem;
1265
+ }
1266
+
1267
+ :is(.field > input[type='range'], .input[type='range'])::-webkit-slider-runnable-track {
1268
+ @apply bg-muted h-3 rounded-4xl;
1269
+ }
1270
+
1271
+ :is(.field > input[type='range'], .input[type='range'])::-moz-range-track {
1272
+ @apply bg-muted h-3 rounded-4xl;
1273
+ }
1274
+
1275
+ :is(.field > input[type='range'], .input[type='range'])::-ms-track {
1276
+ @apply bg-muted h-3 rounded-4xl;
1277
+ }
1278
+
1279
+ :is(.field > input[type='range'], .input[type='range'])::-ms-fill-lower,
1280
+ :is(.field > input[type='range'], .input[type='range'])::-ms-fill-upper {
1281
+ @apply rounded-[inherit];
1282
+ }
1283
+
1284
+ :is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
1285
+ @apply border-primary ring-ring/50 size-4 rounded-4xl border bg-white shadow-sm transition-colors hover:ring-4 focus-visible:ring-4 -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)] focus-visible:outline-hidden;
1286
+ }
1287
+
1288
+ :is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
1289
+ @apply border-primary ring-ring/50 size-4 rounded-4xl border bg-white shadow-sm transition-colors hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden;
1290
+ }
1291
+
1292
+ :is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
1293
+ @apply border-primary ring-ring/50 size-4 rounded-4xl border bg-white shadow-sm transition-colors hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden;
1294
+ }
1295
+
1296
+ }