basecoat-css 1.0.2 → 1.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 (107) hide show
  1. package/README.md +1 -1
  2. package/dist/base/base.css +11 -1
  3. package/dist/base/scroll-fade.css +41 -0
  4. package/dist/base/transition-details.css +12 -0
  5. package/dist/basecoat-base.bundle.css +2532 -0
  6. package/dist/basecoat-base.cdn.css +1948 -677
  7. package/dist/basecoat-base.cdn.min.css +1 -2
  8. package/dist/basecoat-compat.cdn.css +251 -76
  9. package/dist/basecoat-compat.cdn.min.css +1 -2
  10. package/dist/basecoat-components.css +10 -0
  11. package/dist/basecoat-luma.bundle.css +4309 -0
  12. package/dist/basecoat-luma.cdn.css +5309 -3216
  13. package/dist/basecoat-luma.cdn.min.css +1 -2
  14. package/dist/basecoat-lyra.bundle.css +4287 -0
  15. package/dist/basecoat-lyra.cdn.css +5130 -3099
  16. package/dist/basecoat-lyra.cdn.min.css +1 -2
  17. package/dist/basecoat-maia.bundle.css +4275 -0
  18. package/dist/basecoat-maia.cdn.css +5220 -3158
  19. package/dist/basecoat-maia.cdn.min.css +1 -2
  20. package/dist/basecoat-mira.bundle.css +4284 -0
  21. package/dist/basecoat-mira.cdn.css +3530 -1494
  22. package/dist/basecoat-mira.cdn.min.css +1 -2
  23. package/dist/basecoat-nova.bundle.css +4300 -0
  24. package/dist/basecoat-nova.cdn.css +3685 -1623
  25. package/dist/basecoat-nova.cdn.min.css +1 -2
  26. package/dist/basecoat-rhea.bundle.css +4314 -0
  27. package/dist/basecoat-rhea.cdn.css +5315 -3219
  28. package/dist/basecoat-rhea.cdn.min.css +1 -2
  29. package/dist/basecoat-sera.bundle.css +4295 -0
  30. package/dist/basecoat-sera.cdn.css +3219 -1191
  31. package/dist/basecoat-sera.cdn.min.css +1 -2
  32. package/dist/basecoat-vega.bundle.css +4289 -0
  33. package/dist/basecoat-vega.cdn.css +3681 -1616
  34. package/dist/basecoat-vega.cdn.min.css +1 -2
  35. package/dist/basecoat.bundle.css +4289 -0
  36. package/dist/basecoat.cdn.css +3681 -1616
  37. package/dist/basecoat.cdn.min.css +1 -2
  38. package/dist/compat/legacy.css +3 -18
  39. package/dist/components/accordion.css +15 -1
  40. package/dist/components/alert.css +4 -0
  41. package/dist/components/attachment.css +66 -0
  42. package/dist/components/bubble.css +28 -0
  43. package/dist/components/button-group.css +2 -1
  44. package/dist/components/button.css +23 -0
  45. package/dist/components/carousel.css +30 -0
  46. package/dist/components/checkbox.css +5 -1
  47. package/dist/components/code-block.css +80 -0
  48. package/dist/components/collapsible.css +0 -9
  49. package/dist/components/command.css +13 -0
  50. package/dist/components/dialog.css +13 -1
  51. package/dist/components/drawer.css +48 -14
  52. package/dist/components/input-otp.css +49 -0
  53. package/dist/components/item.css +6 -0
  54. package/dist/components/marker.css +20 -0
  55. package/dist/components/message.css +24 -0
  56. package/dist/components/range.css +7 -0
  57. package/dist/components/scrollbar.css +20 -42
  58. package/dist/components/sheet.css +123 -0
  59. package/dist/components/shimmer.css +49 -0
  60. package/dist/components/sidebar.css +19 -8
  61. package/dist/components/toast.css +59 -44
  62. package/dist/components/tooltip.css +1 -1
  63. package/dist/components/trace.css +34 -0
  64. package/dist/js/all.js +513 -122
  65. package/dist/js/all.min.js +1 -1
  66. package/dist/js/carousel.js +105 -0
  67. package/dist/js/carousel.min.js +1 -0
  68. package/dist/js/code-block.js +47 -0
  69. package/dist/js/code-block.min.js +1 -0
  70. package/dist/js/combobox.js +6 -2
  71. package/dist/js/combobox.min.js +1 -1
  72. package/dist/js/drawer.js +6 -2
  73. package/dist/js/drawer.min.js +1 -1
  74. package/dist/js/dropdown-menu.js +1 -1
  75. package/dist/js/dropdown-menu.min.js +1 -1
  76. package/dist/js/input-otp.js +76 -0
  77. package/dist/js/input-otp.min.js +1 -0
  78. package/dist/js/popover.js +1 -1
  79. package/dist/js/popover.min.js +1 -1
  80. package/dist/js/select.js +1 -1
  81. package/dist/js/select.min.js +1 -1
  82. package/dist/js/sidebar.js +1 -1
  83. package/dist/js/sidebar.min.js +1 -1
  84. package/dist/js/tabs.js +31 -58
  85. package/dist/js/tabs.min.js +1 -1
  86. package/dist/js/toast.js +236 -57
  87. package/dist/js/toast.min.js +1 -1
  88. package/dist/styles/luma.css +451 -50
  89. package/dist/styles/lyra.css +418 -42
  90. package/dist/styles/maia.css +427 -48
  91. package/dist/styles/mira.css +422 -43
  92. package/dist/styles/nova.css +432 -51
  93. package/dist/styles/rhea.css +453 -52
  94. package/dist/styles/sera.css +416 -50
  95. package/dist/styles/vega.css +418 -47
  96. package/dist/typeset.cdn.css +381 -0
  97. package/dist/typeset.cdn.min.css +1 -0
  98. package/dist/typeset.css +435 -0
  99. package/package.json +18 -6
  100. package/templates/jinja/command.html.jinja +1 -1
  101. package/templates/jinja/dialog.html.jinja +1 -1
  102. package/templates/jinja/tabs.html.jinja +0 -1
  103. package/templates/jinja/toast.html.jinja +29 -26
  104. package/templates/nunjucks/command.njk +1 -1
  105. package/templates/nunjucks/dialog.njk +1 -1
  106. package/templates/nunjucks/tabs.njk +1 -1
  107. package/templates/nunjucks/toast.njk +30 -27
@@ -27,19 +27,19 @@
27
27
 
28
28
  .btn:not([data-size]),
29
29
  .btn[data-size='default'] {
30
- @apply h-9 gap-1.5 px-3 has-[[data-icon='inline-end']]:pr-2.5 has-[[data-icon='inline-start']]:pl-2.5;
30
+ @apply h-9 gap-1.5 px-3 has-[[data-icon='inline-end']]:pe-2.5 has-[[data-icon='inline-start']]:ps-2.5;
31
31
  }
32
32
 
33
33
  .btn[data-size='xs'] {
34
- @apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
34
+ @apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
35
35
  }
36
36
 
37
37
  .btn[data-size='sm'] {
38
- @apply h-8 gap-1 px-3 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
38
+ @apply h-8 gap-1 px-3 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
39
39
  }
40
40
 
41
41
  .btn[data-size='lg'] {
42
- @apply h-10 gap-1.5 px-4 has-[[data-icon='inline-end']]:pr-3 has-[[data-icon='inline-start']]:pl-3;
42
+ @apply h-10 gap-1.5 px-4 has-[[data-icon='inline-end']]:pe-3 has-[[data-icon='inline-start']]:ps-3;
43
43
  }
44
44
 
45
45
  .btn[data-size='icon'] {
@@ -83,6 +83,13 @@
83
83
  @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;
84
84
  }
85
85
 
86
+ .btn:has(> input:checked) {
87
+ @apply bg-muted text-foreground hover:bg-muted dark:bg-muted dark:hover:bg-muted;
88
+ }
89
+ .btn:has(> input:focus-visible) {
90
+ @apply border-ring ring-ring/50 ring-[3px] dark:border-ring;
91
+ }
92
+
86
93
  /* Button Group */
87
94
  .button-group {
88
95
  @apply has-[>.button-group]:gap-2;
@@ -102,7 +109,7 @@
102
109
  }
103
110
  }
104
111
 
105
- .button-group > :is(span, label, output) {
112
+ .button-group > :is(span, label, output):not(.btn) {
106
113
  @apply bg-muted gap-2 rounded-4xl border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
107
114
  }
108
115
 
@@ -209,7 +216,7 @@
209
216
  /* Native Select */
210
217
  .field > select,
211
218
  select.select {
212
- @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;
219
+ @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-base md:text-sm transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=sm]:h-8;
213
220
  @apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.875rem] bg-size-[1rem];
214
221
  }
215
222
 
@@ -365,7 +372,7 @@
365
372
  }
366
373
 
367
374
  .command > header input {
368
- @apply ps-1.5 text-sm placeholder:text-muted-foreground;
375
+ @apply ps-1.5 text-base md:text-sm placeholder:text-muted-foreground;
369
376
  }
370
377
 
371
378
  .command [role='menu'] {
@@ -407,7 +414,7 @@
407
414
 
408
415
  /* Combobox */
409
416
  .combobox > input[role='combobox'] {
410
- @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];
417
+ @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-base md:text-sm transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px];
411
418
  }
412
419
 
413
420
  .combobox > svg,
@@ -456,6 +463,10 @@
456
463
  @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];
457
464
  }
458
465
 
466
+ .combobox-chips > input[role='combobox'] {
467
+ @apply text-base md:text-sm;
468
+ }
469
+
459
470
  .combobox-chip {
460
471
  @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;
461
472
  }
@@ -615,6 +626,52 @@
615
626
  @apply text-muted-foreground text-sm;
616
627
  }
617
628
 
629
+ /* Sheet */
630
+ .sheet::backdrop {
631
+ @apply bg-black/80 supports-backdrop-filter:backdrop-blur-xs;
632
+ }
633
+
634
+ .sheet > * {
635
+ @apply bg-popover text-popover-foreground bg-clip-padding text-sm shadow-lg;
636
+ }
637
+
638
+ .sheet[data-side='bottom'] > * {
639
+ @apply border-t;
640
+ }
641
+
642
+ .sheet[data-side='top'] > * {
643
+ @apply border-b;
644
+ }
645
+
646
+ .sheet[data-side='left'] > * {
647
+ @apply border-r;
648
+ }
649
+
650
+ .sheet:not([data-side]) > *,
651
+ .sheet[data-side='right'] > * {
652
+ @apply border-l;
653
+ }
654
+
655
+ .sheet > * > header {
656
+ @apply gap-1.5 p-6;
657
+ }
658
+
659
+ .sheet > * > footer {
660
+ @apply gap-2 p-6;
661
+ }
662
+
663
+ .sheet > * > header > h2 {
664
+ @apply text-foreground text-base font-medium;
665
+ }
666
+
667
+ .sheet > * > header > p {
668
+ @apply text-muted-foreground text-sm;
669
+ }
670
+
671
+ .sheet > * > button:last-child {
672
+ @apply top-4 end-4;
673
+ }
674
+
618
675
  /* Dropdown Menu */
619
676
  .dropdown-menu > [data-popover] {
620
677
  @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;
@@ -688,6 +745,17 @@
688
745
  @apply text-muted-foreground;
689
746
  }
690
747
 
748
+ /* Carousel */
749
+ .carousel > ul > li {
750
+ @apply p-1;
751
+ }
752
+ .carousel > button.btn {
753
+ @apply rounded-full;
754
+ }
755
+ .carousel > ul:focus-visible {
756
+ @apply outline-2 outline-ring outline-offset-2;
757
+ }
758
+
691
759
  /* Card */
692
760
  .card {
693
761
  @apply ring-foreground/10 bg-card text-card-foreground overflow-hidden rounded-2xl text-sm ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-xl [&>img:last-child]:rounded-b-xl;
@@ -936,7 +1004,7 @@
936
1004
  @apply rounded-2xl;
937
1005
  }
938
1006
  .input-group > :is(input, select, [data-control]) {
939
- @apply px-3 py-1 text-sm;
1007
+ @apply px-3 py-1 text-base md:text-sm;
940
1008
  }
941
1009
 
942
1010
  .input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
@@ -948,7 +1016,7 @@
948
1016
  }
949
1017
 
950
1018
  .input-group > textarea {
951
- @apply px-3 py-2 text-sm;
1019
+ @apply px-3 py-2 text-base md:text-sm;
952
1020
  }
953
1021
 
954
1022
  .input-group > :is(span, [role='group'], header, footer),
@@ -1058,6 +1126,44 @@
1058
1126
  @apply gap-4 text-sm;
1059
1127
  }
1060
1128
 
1129
+ /* Message */
1130
+ .message-group { @apply gap-2; }
1131
+ .message { @apply gap-2 text-sm; }
1132
+ .message > div:last-child { @apply gap-2.5; }
1133
+ .message > div:last-child > :is(header, footer) {
1134
+ @apply px-3.5 text-xs font-medium text-muted-foreground;
1135
+ }
1136
+ .message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
1137
+ .message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
1138
+
1139
+ /* Trace */
1140
+ .trace { @apply gap-3; }
1141
+ .trace-line { @apply gap-2 text-sm text-muted-foreground; }
1142
+ .trace-line > svg { @apply size-4; }
1143
+ .trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
1144
+ :is(a, button, summary).trace-line {
1145
+ @apply rounded-lg transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50;
1146
+ }
1147
+ summary.trace-line + div {
1148
+ @apply mt-2.5 mb-1 ms-[calc(--spacing(2)-1px)] border-s ps-4 pe-1 text-muted-foreground leading-relaxed;
1149
+ }
1150
+
1151
+ /* Marker */
1152
+ .marker {
1153
+ @apply min-h-4 gap-2 text-sm text-muted-foreground text-start [&_svg:not([class*='size-'])]:size-4;
1154
+ }
1155
+ .marker[data-variant='border'] {
1156
+ @apply border-b border-border pb-2;
1157
+ }
1158
+ .marker[data-variant='separator']::before,
1159
+ .marker[data-variant='separator']::after {
1160
+ @apply border-border;
1161
+ }
1162
+ .marker[data-variant='separator']::before { @apply me-1; }
1163
+ .marker[data-variant='separator']::after { @apply ms-1; }
1164
+ a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
1165
+ button.marker { @apply hover:text-foreground; }
1166
+
1061
1167
  /* Item */
1062
1168
  .item {
1063
1169
  @apply rounded-2xl border text-sm;
@@ -1170,92 +1276,92 @@
1170
1276
  }
1171
1277
 
1172
1278
  /* Sidebar */
1173
- .sidebar nav {
1279
+ .sidebar > nav {
1174
1280
  @apply bg-sidebar text-sidebar-foreground;
1175
1281
  }
1176
1282
 
1177
- .sidebar nav > header,
1178
- .sidebar nav > footer {
1283
+ .sidebar > nav > header,
1284
+ .sidebar > nav > footer {
1179
1285
  @apply gap-2 p-2 [--radius:var(--radius-xl)];
1180
1286
  }
1181
1287
 
1182
- .sidebar nav > section {
1288
+ .sidebar > nav > section {
1183
1289
  @apply gap-2 [--radius:var(--radius-xl)];
1184
1290
  }
1185
1291
 
1186
- .sidebar nav [role=separator] {
1292
+ .sidebar > nav [role=separator] {
1187
1293
  @apply border-sidebar-border mx-2;
1188
1294
  }
1189
1295
 
1190
- .sidebar nav > section > [role=group] {
1296
+ .sidebar > nav > section > [role=group] {
1191
1297
  @apply p-2;
1192
1298
  }
1193
1299
 
1194
- .sidebar nav h3 {
1300
+ .sidebar > nav h3 {
1195
1301
  @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;
1196
1302
  }
1197
1303
 
1198
- .sidebar nav > section > [role=group] > ul {
1304
+ .sidebar > nav > section > [role=group] > ul {
1199
1305
  @apply gap-1;
1200
1306
  }
1201
1307
 
1202
- .sidebar nav > section > [role=group] {
1308
+ .sidebar > nav > section > [role=group] {
1203
1309
  @apply text-sm;
1204
1310
  }
1205
1311
 
1206
- .sidebar nav li > :is(a, button),
1207
- .sidebar nav li > details > summary {
1312
+ .sidebar > nav li > :is(a, button),
1313
+ .sidebar > nav li > details > summary {
1208
1314
  @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;
1209
1315
  }
1210
1316
 
1211
- .sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
1212
- .sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
1317
+ .sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
1318
+ .sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
1213
1319
  @apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
1214
1320
  }
1215
1321
 
1216
- .sidebar nav li > :is(a, button):not([data-variant]),
1217
- .sidebar nav li > details > summary:not([data-variant]),
1218
- .sidebar nav li > :is(a, button)[data-variant=default],
1219
- .sidebar nav li > details > summary[data-variant=default] {
1322
+ .sidebar > nav li > :is(a, button):not([data-variant]),
1323
+ .sidebar > nav li > details > summary:not([data-variant]),
1324
+ .sidebar > nav li > :is(a, button)[data-variant=default],
1325
+ .sidebar > nav li > details > summary[data-variant=default] {
1220
1326
  @apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
1221
1327
  }
1222
1328
 
1223
- .sidebar nav li > :is(a, button)[data-variant=outline],
1224
- .sidebar nav li > details > summary[data-variant=outline] {
1329
+ .sidebar > nav li > :is(a, button)[data-variant=outline],
1330
+ .sidebar > nav li > details > summary[data-variant=outline] {
1225
1331
  @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;
1226
1332
  }
1227
1333
 
1228
- .sidebar nav li > :is(a, button):not([data-size]),
1229
- .sidebar nav li > details > summary:not([data-size]),
1230
- .sidebar nav li > :is(a, button)[data-size=default],
1231
- .sidebar nav li > details > summary[data-size=default] {
1334
+ .sidebar > nav li > :is(a, button):not([data-size]),
1335
+ .sidebar > nav li > details > summary:not([data-size]),
1336
+ .sidebar > nav li > :is(a, button)[data-size=default],
1337
+ .sidebar > nav li > details > summary[data-size=default] {
1232
1338
  @apply h-9 text-sm;
1233
1339
  }
1234
1340
 
1235
- .sidebar nav li > :is(a, button)[data-size=sm],
1236
- .sidebar nav li > details > summary[data-size=sm] {
1341
+ .sidebar > nav li > :is(a, button)[data-size=sm],
1342
+ .sidebar > nav li > details > summary[data-size=sm] {
1237
1343
  @apply h-8 text-xs;
1238
1344
  }
1239
1345
 
1240
- .sidebar nav li > :is(a, button)[data-size=lg],
1241
- .sidebar nav li > details > summary[data-size=lg] {
1346
+ .sidebar > nav li > :is(a, button)[data-size=lg],
1347
+ .sidebar > nav li > details > summary[data-size=lg] {
1242
1348
  @apply h-14 px-3 text-sm;
1243
1349
  }
1244
1350
 
1245
- .sidebar nav li > details > summary::after {
1351
+ .sidebar > nav li > details > summary::after {
1246
1352
  @apply size-4;
1247
1353
  }
1248
1354
 
1249
- .sidebar nav li > details::details-content {
1355
+ .sidebar > nav li > details::details-content {
1250
1356
  @apply px-3.5;
1251
1357
  }
1252
1358
 
1253
- .sidebar nav ul ul {
1359
+ .sidebar > nav ul ul {
1254
1360
  @apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
1255
1361
  }
1256
1362
 
1257
- .sidebar nav ul ul > li > :is(a, button),
1258
- .sidebar nav ul ul > li > details > summary {
1363
+ .sidebar > nav ul ul > li > :is(a, button),
1364
+ .sidebar > nav ul ul > li > details > summary {
1259
1365
  @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;
1260
1366
  }
1261
1367
  /* Progress */
@@ -1312,17 +1418,33 @@
1312
1418
 
1313
1419
  /* Tooltip */
1314
1420
  [data-tooltip]::before {
1315
- @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;
1421
+ @apply bg-foreground text-background rounded-2xl px-3 py-1.5 text-xs;
1316
1422
  }
1317
1423
 
1318
1424
  [data-tooltip][data-arrow]::after {
1319
- @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];
1425
+ @apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-[2px];
1426
+ }
1427
+
1428
+ [data-tooltip][data-arrow][data-side='left']::after {
1429
+ @apply translate-x-[-1.5px];
1430
+ }
1431
+
1432
+ [data-tooltip][data-arrow][data-side='right']::after {
1433
+ @apply translate-x-[1.5px];
1320
1434
  }
1321
1435
 
1322
1436
  /* Toast */
1323
- .toast-content {
1437
+ .toast {
1324
1438
  @apply bg-popover text-popover-foreground border shadow-lg rounded-2xl;
1325
1439
  }
1440
+ .toast > .toast-content { @apply gap-3 p-4; }
1441
+ .toast > .toast-content > svg { @apply size-4; }
1442
+ .toast > .toast-content > section { @apply gap-1; }
1443
+ .toast > .toast-content > section > h2 { @apply text-sm font-medium; }
1444
+ .toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
1445
+ .toast > .toast-content > footer { @apply gap-3; }
1446
+ .toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
1447
+ .toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
1326
1448
 
1327
1449
  /* Slider */
1328
1450
  .field > input[type='range'],
@@ -1350,15 +1472,272 @@
1350
1472
  }
1351
1473
 
1352
1474
  :is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
1353
- @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;
1475
+ @apply border-primary ring-ring/50 size-4 rounded-4xl border bg-white shadow-sm transition-colors -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
1354
1476
  }
1355
1477
 
1356
1478
  :is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
1357
- @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;
1479
+ @apply border-primary ring-ring/50 size-4 rounded-4xl border bg-white shadow-sm transition-colors;
1358
1480
  }
1359
1481
 
1360
1482
  :is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
1361
- @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;
1483
+ @apply border-primary ring-ring/50 size-4 rounded-4xl border bg-white shadow-sm transition-colors;
1484
+ }
1485
+
1486
+ /* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
1487
+ @media (hover: hover) {
1488
+ :is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
1489
+ @apply ring-4;
1490
+ }
1491
+
1492
+ :is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
1493
+ @apply ring-4;
1494
+ }
1495
+
1496
+ :is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
1497
+ @apply ring-4;
1498
+ }
1499
+ }
1500
+
1501
+ :is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
1502
+ @apply ring-4 outline-hidden;
1503
+ }
1504
+
1505
+ :is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
1506
+ @apply ring-4 outline-hidden;
1507
+ }
1508
+
1509
+ :is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
1510
+ @apply ring-4 outline-hidden;
1511
+ }
1512
+
1513
+
1514
+ /* Bubble */
1515
+ .bubble-group {
1516
+ @apply gap-2;
1517
+ }
1518
+ .bubble {
1519
+ @apply gap-1 max-w-[80%];
1520
+ }
1521
+ .bubble[data-align='end'],
1522
+ .bubble[data-align='end'] > :first-child {
1523
+ @apply self-end;
1524
+ }
1525
+ .bubble > :first-child {
1526
+ @apply rounded-3xl border border-transparent px-3.5 py-2.5 text-sm leading-relaxed;
1527
+ }
1528
+ .bubble > :is(a, button):first-child {
1529
+ @apply focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50;
1530
+ }
1531
+ .bubble:not([data-variant]) > :first-child,
1532
+ .bubble[data-variant='default'] > :first-child {
1533
+ @apply bg-primary text-primary-foreground;
1534
+ }
1535
+ .bubble:not([data-variant]) > :is(a, button):first-child:hover,
1536
+ .bubble[data-variant='default'] > :is(a, button):first-child:hover {
1537
+ @apply bg-primary/80;
1538
+ }
1539
+ .bubble[data-variant='secondary'] > :first-child {
1540
+ @apply bg-secondary text-secondary-foreground;
1541
+ }
1542
+ .bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
1543
+ @apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
1544
+ }
1545
+ .bubble[data-variant='muted'] > :first-child {
1546
+ @apply bg-muted;
1547
+ }
1548
+ .bubble[data-variant='muted'] > :is(a, button):first-child:hover {
1549
+ @apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
1550
+ }
1551
+ .bubble[data-variant='tinted'] > :first-child {
1552
+ @apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
1553
+ }
1554
+ .bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
1555
+ @apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
1556
+ }
1557
+ /* Keep a tint in browsers without relative colors. */
1558
+ @supports (color: oklch(from currentColor l c h)) {
1559
+ .bubble[data-variant='tinted'] > :first-child {
1560
+ @apply bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)];
1561
+ }
1562
+ .bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
1563
+ @apply bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)];
1564
+ }
1565
+ }
1566
+ .bubble[data-variant='outline'] > :first-child {
1567
+ @apply bg-background border-border;
1568
+ }
1569
+ .bubble[data-variant='outline'] > :is(a, button):first-child:hover {
1570
+ @apply bg-muted text-foreground dark:bg-input/30;
1571
+ }
1572
+ .bubble[data-variant='ghost'] {
1573
+ @apply max-w-full border-none;
1574
+ }
1575
+ .bubble[data-variant='ghost'] > :first-child {
1576
+ @apply rounded-none bg-transparent p-0;
1577
+ }
1578
+ .bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
1579
+ @apply bg-muted text-foreground dark:bg-muted/50;
1580
+ }
1581
+ .bubble[data-variant='destructive'] > :first-child {
1582
+ @apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
1583
+ }
1584
+ .bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
1585
+ @apply bg-destructive/20 dark:bg-destructive/30;
1586
+ }
1587
+
1588
+ .bubble > div:not(:first-child) {
1589
+ @apply rounded-full ring-3 ring-card bg-muted gap-1 px-1.5 py-0.5 has-[button]:p-0 text-sm;
1590
+ }
1591
+
1592
+ .bubble > div:not(:first-child):not([data-side='top']) {
1593
+ @apply bottom-0 translate-y-3/4;
1594
+ }
1595
+
1596
+ .bubble > div:not(:first-child)[data-side='top'] {
1597
+ @apply top-0 -translate-y-3/4;
1598
+ }
1599
+
1600
+ .bubble > div:not(:first-child):not([data-align='start']) {
1601
+ @apply end-3;
1602
+ }
1603
+
1604
+ .bubble > div:not(:first-child)[data-align='start'] {
1605
+ @apply start-3;
1606
+ }
1607
+
1608
+ /* Attachment */
1609
+ .attachment {
1610
+ @apply rounded-2xl w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/50 border bg-card text-card-foreground;
1611
+ }
1612
+ .attachment:has(> a, > button:enabled):hover {
1613
+ @apply bg-muted/50;
1614
+ }
1615
+ .attachment[data-state='error'] {
1616
+ @apply border-destructive/30;
1617
+ }
1618
+ .attachment[data-state='idle'] {
1619
+ @apply border-dashed;
1620
+ }
1621
+ .attachment:not([data-orientation='vertical']) {
1622
+ @apply min-w-40;
1623
+ }
1624
+ .attachment[data-orientation='vertical'] {
1625
+ @apply w-24 has-[>section]:w-30;
1626
+ }
1627
+ .attachment:not([data-size]),
1628
+ .attachment[data-size='default'] {
1629
+ @apply gap-2 text-sm;
1630
+ }
1631
+ .attachment:not([data-size]):has(> section),
1632
+ .attachment[data-size='default']:has(> section) {
1633
+ @apply px-2.5 py-2;
1634
+ }
1635
+ .attachment:not([data-size]):has(> figure),
1636
+ .attachment[data-size='default']:has(> figure) {
1637
+ @apply p-2;
1638
+ }
1639
+ .attachment[data-size='sm'] {
1640
+ @apply gap-2.5 text-xs;
1641
+ }
1642
+ .attachment[data-size='sm']:has(> section) {
1643
+ @apply px-2 py-1.5;
1644
+ }
1645
+ .attachment[data-size='sm']:has(> figure) {
1646
+ @apply p-1.5;
1647
+ }
1648
+ .attachment[data-size='xs'] {
1649
+ @apply gap-1.5 text-xs rounded-xl;
1650
+ }
1651
+ .attachment[data-size='xs']:has(> section) {
1652
+ @apply px-1.5 py-1;
1653
+ }
1654
+ .attachment[data-size='xs']:has(> figure) {
1655
+ @apply p-1;
1656
+ }
1657
+ .attachment > figure {
1658
+ @apply bg-muted text-foreground w-10 rounded-xl;
1659
+ }
1660
+ .attachment[data-size='sm'] > figure {
1661
+ @apply w-8;
1662
+ }
1663
+ .attachment[data-size='xs'] > figure {
1664
+ @apply w-7 rounded-lg;
1665
+ }
1666
+ .attachment > figure > svg {
1667
+ @apply size-4;
1668
+ }
1669
+ .attachment[data-size='xs'] > figure > svg {
1670
+ @apply size-3.5;
1671
+ }
1672
+ .attachment[data-orientation='vertical'] > figure {
1673
+ @apply w-full;
1674
+ }
1675
+ .attachment[data-orientation='vertical'] > figure > svg {
1676
+ @apply size-6;
1677
+ }
1678
+ .attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
1679
+ @apply opacity-60;
1680
+ }
1681
+ .attachment[data-state='error'] > figure {
1682
+ @apply bg-destructive/10 text-destructive;
1683
+ }
1684
+ .attachment > section {
1685
+ @apply leading-tight;
1686
+ }
1687
+ .attachment[data-orientation='vertical'] > section {
1688
+ @apply px-1;
1689
+ }
1690
+ .attachment > section > :first-child {
1691
+ @apply font-medium;
1362
1692
  }
1693
+ .attachment > section > :not(:first-child) {
1694
+ @apply mt-0.5 text-xs text-muted-foreground;
1695
+ }
1696
+ .attachment[data-state='error'] > section > :not(:first-child) {
1697
+ @apply text-destructive/80;
1698
+ }
1699
+
1700
+ .attachment[data-orientation='vertical'] > div {
1701
+ @apply top-3 end-3 gap-1;
1702
+ }
1703
+ .attachment-group {
1704
+ @apply gap-3 py-1;
1705
+ }
1706
+
1707
+
1708
+ /* Code Block */
1709
+ .code-block {
1710
+ @apply rounded-xl text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-[3px] has-[>pre:focus-visible]:ring-ring/50 data-[size=sm]:rounded-lg;
1711
+ --_code-padding: calc(var(--spacing, 0.25rem) * 4);
1712
+ }
1713
+ .code-block:not([data-variant='destructive']) { @apply border border-input text-foreground dark:bg-input/30 has-[>pre:focus-visible]:border-ring; }
1714
+ .code-block[data-variant='destructive'] { @apply border border-destructive/30 text-destructive dark:border-destructive/40; }
1715
+ .code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 3); }
1716
+ .code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
1717
+ .code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
1718
+ .code-block > header > :first-child:not(div) { @apply font-sans text-sm font-medium text-foreground [&_svg]:me-1.5 [&_svg:not([class*='size-'])]:size-4; }
1719
+ .code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
1720
+ .code-block[data-variant='destructive'] > :is(header, footer),
1721
+ .code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
1722
+ .code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
1723
+ .code-block > div { @apply top-3 end-3 gap-1; }
1724
+ .code-block[data-size='sm'] > div { @apply top-2 end-2; }
1725
+ .code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
1726
+ .code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
1727
+ .code-block:has(> header) > pre { @apply pt-2; }
1728
+ .code-block:has(> footer) > pre { @apply pb-2; }
1729
+ .code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
1730
+ .code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
1731
+ .code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
1732
+
1733
+ /* Input OTP */
1734
+ .input-otp > div { @apply gap-2; }
1735
+ .input-otp > div > div { @apply rounded-4xl; }
1736
+ .input-otp > div > div > span { @apply bg-input/30 border-input data-[active]:border-ring data-[active]:ring-ring/50 size-9 border-y border-e text-sm transition-all outline-none first:rounded-s-4xl first:border-s last:rounded-e-4xl data-[active]:ring-[3px]; }
1737
+ .input-otp > div > svg { @apply size-4 shrink-0; }
1738
+ .input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
1739
+ .input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-destructive; }
1740
+ .input-otp:has(> input[aria-invalid='true']) > div > div { @apply ring-3 ring-destructive/20 dark:ring-destructive/40; }
1741
+ .input-otp:has(> input[aria-invalid='true']) > div > div > span[data-active] { @apply border-destructive ring-destructive/20 dark:ring-destructive/40; }
1363
1742
 
1364
1743
  }