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.
- package/README.md +1 -1
- package/dist/base/base.css +11 -1
- package/dist/base/scroll-fade.css +41 -0
- package/dist/base/transition-details.css +12 -0
- package/dist/basecoat-base.bundle.css +2532 -0
- package/dist/basecoat-base.cdn.css +1948 -677
- package/dist/basecoat-base.cdn.min.css +1 -2
- package/dist/basecoat-compat.cdn.css +251 -76
- package/dist/basecoat-compat.cdn.min.css +1 -2
- package/dist/basecoat-components.css +10 -0
- package/dist/basecoat-luma.bundle.css +4309 -0
- package/dist/basecoat-luma.cdn.css +5309 -3216
- package/dist/basecoat-luma.cdn.min.css +1 -2
- package/dist/basecoat-lyra.bundle.css +4287 -0
- package/dist/basecoat-lyra.cdn.css +5130 -3099
- package/dist/basecoat-lyra.cdn.min.css +1 -2
- package/dist/basecoat-maia.bundle.css +4275 -0
- package/dist/basecoat-maia.cdn.css +5220 -3158
- package/dist/basecoat-maia.cdn.min.css +1 -2
- package/dist/basecoat-mira.bundle.css +4284 -0
- package/dist/basecoat-mira.cdn.css +3530 -1494
- package/dist/basecoat-mira.cdn.min.css +1 -2
- package/dist/basecoat-nova.bundle.css +4300 -0
- package/dist/basecoat-nova.cdn.css +3685 -1623
- package/dist/basecoat-nova.cdn.min.css +1 -2
- package/dist/basecoat-rhea.bundle.css +4314 -0
- package/dist/basecoat-rhea.cdn.css +5315 -3219
- package/dist/basecoat-rhea.cdn.min.css +1 -2
- package/dist/basecoat-sera.bundle.css +4295 -0
- package/dist/basecoat-sera.cdn.css +3219 -1191
- package/dist/basecoat-sera.cdn.min.css +1 -2
- package/dist/basecoat-vega.bundle.css +4289 -0
- package/dist/basecoat-vega.cdn.css +3681 -1616
- package/dist/basecoat-vega.cdn.min.css +1 -2
- package/dist/basecoat.bundle.css +4289 -0
- package/dist/basecoat.cdn.css +3681 -1616
- package/dist/basecoat.cdn.min.css +1 -2
- package/dist/compat/legacy.css +3 -18
- package/dist/components/accordion.css +15 -1
- package/dist/components/alert.css +4 -0
- package/dist/components/attachment.css +66 -0
- package/dist/components/bubble.css +28 -0
- package/dist/components/button-group.css +2 -1
- package/dist/components/button.css +23 -0
- package/dist/components/carousel.css +30 -0
- package/dist/components/checkbox.css +5 -1
- package/dist/components/code-block.css +80 -0
- package/dist/components/collapsible.css +0 -9
- package/dist/components/command.css +13 -0
- package/dist/components/dialog.css +13 -1
- package/dist/components/drawer.css +48 -14
- package/dist/components/input-otp.css +49 -0
- package/dist/components/item.css +6 -0
- package/dist/components/marker.css +20 -0
- package/dist/components/message.css +24 -0
- package/dist/components/range.css +7 -0
- package/dist/components/scrollbar.css +20 -42
- package/dist/components/sheet.css +123 -0
- package/dist/components/shimmer.css +49 -0
- package/dist/components/sidebar.css +19 -8
- package/dist/components/toast.css +59 -44
- package/dist/components/tooltip.css +1 -1
- package/dist/components/trace.css +34 -0
- package/dist/js/all.js +513 -122
- package/dist/js/all.min.js +1 -1
- package/dist/js/carousel.js +105 -0
- package/dist/js/carousel.min.js +1 -0
- package/dist/js/code-block.js +47 -0
- package/dist/js/code-block.min.js +1 -0
- package/dist/js/combobox.js +6 -2
- package/dist/js/combobox.min.js +1 -1
- package/dist/js/drawer.js +6 -2
- package/dist/js/drawer.min.js +1 -1
- package/dist/js/dropdown-menu.js +1 -1
- package/dist/js/dropdown-menu.min.js +1 -1
- package/dist/js/input-otp.js +76 -0
- package/dist/js/input-otp.min.js +1 -0
- package/dist/js/popover.js +1 -1
- package/dist/js/popover.min.js +1 -1
- package/dist/js/select.js +1 -1
- package/dist/js/select.min.js +1 -1
- package/dist/js/sidebar.js +1 -1
- package/dist/js/sidebar.min.js +1 -1
- package/dist/js/tabs.js +31 -58
- package/dist/js/tabs.min.js +1 -1
- package/dist/js/toast.js +236 -57
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +451 -50
- package/dist/styles/lyra.css +418 -42
- package/dist/styles/maia.css +427 -48
- package/dist/styles/mira.css +422 -43
- package/dist/styles/nova.css +432 -51
- package/dist/styles/rhea.css +453 -52
- package/dist/styles/sera.css +416 -50
- package/dist/styles/vega.css +418 -47
- package/dist/typeset.cdn.css +381 -0
- package/dist/typeset.cdn.min.css +1 -0
- package/dist/typeset.css +435 -0
- package/package.json +18 -6
- package/templates/jinja/command.html.jinja +1 -1
- package/templates/jinja/dialog.html.jinja +1 -1
- package/templates/jinja/tabs.html.jinja +0 -1
- package/templates/jinja/toast.html.jinja +29 -26
- package/templates/nunjucks/command.njk +1 -1
- package/templates/nunjucks/dialog.njk +1 -1
- package/templates/nunjucks/tabs.njk +1 -1
- package/templates/nunjucks/toast.njk +30 -27
package/dist/styles/mira.css
CHANGED
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
|
|
28
28
|
.btn:not([data-size]),
|
|
29
29
|
.btn[data-size='default'] {
|
|
30
|
-
@apply h-7 gap-1 px-2 text-xs/relaxed has-[[data-icon='inline-end']]:
|
|
30
|
+
@apply h-7 gap-1 px-2 text-xs/relaxed has-[[data-icon='inline-end']]:pe-1.5 has-[[data-icon='inline-start']]:ps-1.5;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.btn[data-size='xs'] {
|
|
34
|
-
@apply h-5 gap-1 px-2 text-[0.625rem] rounded-sm [&_svg:not([class*='size-'])]:size-2.5 has-[[data-icon='inline-end']]:
|
|
34
|
+
@apply h-5 gap-1 px-2 text-[0.625rem] rounded-sm [&_svg:not([class*='size-'])]:size-2.5 has-[[data-icon='inline-end']]:pe-1.5 has-[[data-icon='inline-start']]:ps-1.5;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.btn[data-size='sm'] {
|
|
38
|
-
@apply h-6 gap-1 px-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:
|
|
38
|
+
@apply h-6 gap-1 px-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pe-1.5 has-[[data-icon='inline-start']]:ps-1.5;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.btn[data-size='lg'] {
|
|
42
|
-
@apply h-8 gap-1 px-2.5 text-xs/relaxed has-[[data-icon='inline-end']]:
|
|
42
|
+
@apply h-8 gap-1 px-2.5 text-xs/relaxed has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
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/30 ring-[2px] 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-md border px-2.5 text-xs/relaxed font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
107
114
|
}
|
|
108
115
|
|
|
@@ -407,7 +414,7 @@
|
|
|
407
414
|
|
|
408
415
|
/* Combobox */
|
|
409
416
|
.combobox > input[role='combobox'] {
|
|
410
|
-
@apply border-input bg-input/20 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border py-1 ps-2 pe-6 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2;
|
|
417
|
+
@apply border-input bg-input/20 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border py-1 ps-2 pe-6 text-sm md:text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2;
|
|
411
418
|
}
|
|
412
419
|
|
|
413
420
|
.combobox > svg,
|
|
@@ -619,6 +626,52 @@
|
|
|
619
626
|
@apply text-muted-foreground text-xs/relaxed;
|
|
620
627
|
}
|
|
621
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-xs/relaxed 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-sm font-medium;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.sheet > * > header > p {
|
|
668
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.sheet > * > button:last-child {
|
|
672
|
+
@apply top-4 end-4;
|
|
673
|
+
}
|
|
674
|
+
|
|
622
675
|
/* Dropdown Menu */
|
|
623
676
|
.dropdown-menu > [data-popover] {
|
|
624
677
|
@apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
@@ -692,6 +745,17 @@
|
|
|
692
745
|
@apply text-muted-foreground;
|
|
693
746
|
}
|
|
694
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
|
+
|
|
695
759
|
/* Card */
|
|
696
760
|
.card {
|
|
697
761
|
@apply ring-foreground/10 bg-card text-card-foreground overflow-hidden rounded-lg text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-lg [&>img:last-child]:rounded-b-lg;
|
|
@@ -1067,6 +1131,44 @@
|
|
|
1067
1131
|
@apply gap-2 text-xs/relaxed;
|
|
1068
1132
|
}
|
|
1069
1133
|
|
|
1134
|
+
/* Message */
|
|
1135
|
+
.message-group { @apply gap-1.5; }
|
|
1136
|
+
.message { @apply gap-1.5 text-xs/relaxed; }
|
|
1137
|
+
.message > div:last-child { @apply gap-2; }
|
|
1138
|
+
.message > div:last-child > :is(header, footer) {
|
|
1139
|
+
@apply px-2.5 text-[0.625rem] font-medium text-muted-foreground;
|
|
1140
|
+
}
|
|
1141
|
+
.message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
|
|
1142
|
+
.message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
|
|
1143
|
+
|
|
1144
|
+
/* Trace */
|
|
1145
|
+
.trace { @apply gap-1.5; }
|
|
1146
|
+
.trace-line { @apply gap-2 text-xs/relaxed text-muted-foreground; }
|
|
1147
|
+
.trace-line > svg { @apply size-3.5; }
|
|
1148
|
+
.trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
|
|
1149
|
+
:is(a, button, summary).trace-line {
|
|
1150
|
+
@apply rounded-sm transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
1151
|
+
}
|
|
1152
|
+
summary.trace-line + div {
|
|
1153
|
+
@apply mt-1.5 mb-1 ms-[calc(--spacing(1.75)-1px)] border-s ps-3.75 pe-1 text-muted-foreground;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/* Marker */
|
|
1157
|
+
.marker {
|
|
1158
|
+
@apply min-h-4 gap-2 text-xs/relaxed text-muted-foreground text-start [&_svg:not([class*='size-'])]:size-3.5;
|
|
1159
|
+
}
|
|
1160
|
+
.marker[data-variant='border'] {
|
|
1161
|
+
@apply border-b border-border pb-2;
|
|
1162
|
+
}
|
|
1163
|
+
.marker[data-variant='separator']::before,
|
|
1164
|
+
.marker[data-variant='separator']::after {
|
|
1165
|
+
@apply border-border;
|
|
1166
|
+
}
|
|
1167
|
+
.marker[data-variant='separator']::before { @apply me-1; }
|
|
1168
|
+
.marker[data-variant='separator']::after { @apply ms-1; }
|
|
1169
|
+
a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
|
|
1170
|
+
button.marker { @apply hover:text-foreground; }
|
|
1171
|
+
|
|
1070
1172
|
/* Item */
|
|
1071
1173
|
.item {
|
|
1072
1174
|
@apply rounded-md border text-xs/relaxed;
|
|
@@ -1179,92 +1281,92 @@
|
|
|
1179
1281
|
}
|
|
1180
1282
|
|
|
1181
1283
|
/* Sidebar */
|
|
1182
|
-
.sidebar nav {
|
|
1284
|
+
.sidebar > nav {
|
|
1183
1285
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1184
1286
|
}
|
|
1185
1287
|
|
|
1186
|
-
.sidebar nav > header,
|
|
1187
|
-
.sidebar nav > footer {
|
|
1288
|
+
.sidebar > nav > header,
|
|
1289
|
+
.sidebar > nav > footer {
|
|
1188
1290
|
@apply gap-2 p-2;
|
|
1189
1291
|
}
|
|
1190
1292
|
|
|
1191
|
-
.sidebar nav > section {
|
|
1293
|
+
.sidebar > nav > section {
|
|
1192
1294
|
@apply gap-0;
|
|
1193
1295
|
}
|
|
1194
1296
|
|
|
1195
|
-
.sidebar nav [role=separator] {
|
|
1297
|
+
.sidebar > nav [role=separator] {
|
|
1196
1298
|
@apply border-sidebar-border mx-2;
|
|
1197
1299
|
}
|
|
1198
1300
|
|
|
1199
|
-
.sidebar nav > section > [role=group] {
|
|
1301
|
+
.sidebar > nav > section > [role=group] {
|
|
1200
1302
|
@apply px-2 py-1;
|
|
1201
1303
|
}
|
|
1202
1304
|
|
|
1203
|
-
.sidebar nav h3 {
|
|
1305
|
+
.sidebar > nav h3 {
|
|
1204
1306
|
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
|
|
1205
1307
|
}
|
|
1206
1308
|
|
|
1207
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1309
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1208
1310
|
@apply gap-px;
|
|
1209
1311
|
}
|
|
1210
1312
|
|
|
1211
|
-
.sidebar nav > section > [role=group] {
|
|
1313
|
+
.sidebar > nav > section > [role=group] {
|
|
1212
1314
|
@apply text-xs;
|
|
1213
1315
|
}
|
|
1214
1316
|
|
|
1215
|
-
.sidebar nav li > :is(a, button),
|
|
1216
|
-
.sidebar nav li > details > summary {
|
|
1317
|
+
.sidebar > nav li > :is(a, button),
|
|
1318
|
+
.sidebar > nav li > details > summary {
|
|
1217
1319
|
@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-[calc(var(--radius-sm)+2px)] p-2 text-xs 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;
|
|
1218
1320
|
}
|
|
1219
1321
|
|
|
1220
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1221
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1322
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1323
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1222
1324
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1223
1325
|
}
|
|
1224
1326
|
|
|
1225
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1226
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1227
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1228
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1327
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1328
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1329
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1330
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1229
1331
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1230
1332
|
}
|
|
1231
1333
|
|
|
1232
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1233
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1334
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1335
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1234
1336
|
@apply bg-muted/20 dark:bg-muted/30 border-input 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;
|
|
1235
1337
|
}
|
|
1236
1338
|
|
|
1237
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1238
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1239
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1240
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1339
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1340
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1341
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1342
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1241
1343
|
@apply h-8 text-xs;
|
|
1242
1344
|
}
|
|
1243
1345
|
|
|
1244
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1245
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1346
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1347
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1246
1348
|
@apply h-7 text-xs;
|
|
1247
1349
|
}
|
|
1248
1350
|
|
|
1249
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1250
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1351
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1352
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1251
1353
|
@apply h-12 text-xs;
|
|
1252
1354
|
}
|
|
1253
1355
|
|
|
1254
|
-
.sidebar nav li > details > summary::after {
|
|
1356
|
+
.sidebar > nav li > details > summary::after {
|
|
1255
1357
|
@apply size-4;
|
|
1256
1358
|
}
|
|
1257
1359
|
|
|
1258
|
-
.sidebar nav li > details::details-content {
|
|
1360
|
+
.sidebar > nav li > details::details-content {
|
|
1259
1361
|
@apply px-3.5;
|
|
1260
1362
|
}
|
|
1261
1363
|
|
|
1262
|
-
.sidebar nav ul ul {
|
|
1364
|
+
.sidebar > nav ul ul {
|
|
1263
1365
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1264
1366
|
}
|
|
1265
1367
|
|
|
1266
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1267
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1368
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1369
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1268
1370
|
@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-xs focus-visible:ring-2 [&>svg]:size-4;
|
|
1269
1371
|
}
|
|
1270
1372
|
/* Progress */
|
|
@@ -1321,7 +1423,7 @@
|
|
|
1321
1423
|
|
|
1322
1424
|
/* Tooltip */
|
|
1323
1425
|
[data-tooltip]::before {
|
|
1324
|
-
@apply bg-foreground text-background
|
|
1426
|
+
@apply bg-foreground text-background rounded-md px-3 py-1.5 text-xs;
|
|
1325
1427
|
}
|
|
1326
1428
|
|
|
1327
1429
|
[data-tooltip][data-arrow]::after {
|
|
@@ -1329,9 +1431,17 @@
|
|
|
1329
1431
|
}
|
|
1330
1432
|
|
|
1331
1433
|
/* Toast */
|
|
1332
|
-
.toast
|
|
1434
|
+
.toast {
|
|
1333
1435
|
@apply bg-popover text-popover-foreground border shadow-lg rounded-md;
|
|
1334
1436
|
}
|
|
1437
|
+
.toast > .toast-content { @apply gap-3 p-4; }
|
|
1438
|
+
.toast > .toast-content > svg { @apply size-4; }
|
|
1439
|
+
.toast > .toast-content > section { @apply gap-1; }
|
|
1440
|
+
.toast > .toast-content > section > h2 { @apply text-sm font-medium; }
|
|
1441
|
+
.toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
|
|
1442
|
+
.toast > .toast-content > footer { @apply gap-3; }
|
|
1443
|
+
.toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
|
|
1444
|
+
.toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
|
|
1335
1445
|
|
|
1336
1446
|
/* Slider */
|
|
1337
1447
|
.field > input[type='range'],
|
|
@@ -1359,15 +1469,284 @@
|
|
|
1359
1469
|
}
|
|
1360
1470
|
|
|
1361
1471
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1362
|
-
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow]
|
|
1472
|
+
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow] -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1363
1473
|
}
|
|
1364
1474
|
|
|
1365
1475
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1366
|
-
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow]
|
|
1476
|
+
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow];
|
|
1367
1477
|
}
|
|
1368
1478
|
|
|
1369
1479
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1370
|
-
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow]
|
|
1480
|
+
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow];
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
1484
|
+
@media (hover: hover) {
|
|
1485
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
1486
|
+
@apply ring-2;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1490
|
+
@apply ring-2;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1494
|
+
@apply ring-2;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1499
|
+
@apply ring-2 outline-hidden;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1503
|
+
@apply ring-2 outline-hidden;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1507
|
+
@apply ring-2 outline-hidden;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
:is(.field > input[type='range'], .input[type='range']):active::-webkit-slider-thumb {
|
|
1511
|
+
@apply ring-2;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
:is(.field > input[type='range'], .input[type='range']):active::-moz-range-thumb {
|
|
1515
|
+
@apply ring-2;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
:is(.field > input[type='range'], .input[type='range']):active::-ms-thumb {
|
|
1519
|
+
@apply ring-2;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
/* Bubble */
|
|
1524
|
+
.bubble-group {
|
|
1525
|
+
@apply gap-2;
|
|
1526
|
+
}
|
|
1527
|
+
.bubble {
|
|
1528
|
+
@apply gap-1 max-w-[80%];
|
|
1529
|
+
}
|
|
1530
|
+
.bubble[data-align='end'],
|
|
1531
|
+
.bubble[data-align='end'] > :first-child {
|
|
1532
|
+
@apply self-end;
|
|
1533
|
+
}
|
|
1534
|
+
.bubble > :first-child {
|
|
1535
|
+
@apply rounded-lg border border-transparent px-2.5 py-1.5 text-xs/relaxed;
|
|
1536
|
+
}
|
|
1537
|
+
.bubble > :is(a, button):first-child {
|
|
1538
|
+
@apply focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
1539
|
+
}
|
|
1540
|
+
.bubble:not([data-variant]) > :first-child,
|
|
1541
|
+
.bubble[data-variant='default'] > :first-child {
|
|
1542
|
+
@apply bg-primary text-primary-foreground;
|
|
1543
|
+
}
|
|
1544
|
+
.bubble:not([data-variant]) > :is(a, button):first-child:hover,
|
|
1545
|
+
.bubble[data-variant='default'] > :is(a, button):first-child:hover {
|
|
1546
|
+
@apply bg-primary/80;
|
|
1547
|
+
}
|
|
1548
|
+
.bubble[data-variant='secondary'] > :first-child {
|
|
1549
|
+
@apply bg-secondary text-secondary-foreground;
|
|
1550
|
+
}
|
|
1551
|
+
.bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
|
|
1552
|
+
@apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
1553
|
+
}
|
|
1554
|
+
.bubble[data-variant='muted'] > :first-child {
|
|
1555
|
+
@apply bg-muted;
|
|
1556
|
+
}
|
|
1557
|
+
.bubble[data-variant='muted'] > :is(a, button):first-child:hover {
|
|
1558
|
+
@apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
1559
|
+
}
|
|
1560
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1561
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
|
|
1562
|
+
}
|
|
1563
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1564
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
|
|
1565
|
+
}
|
|
1566
|
+
/* Keep a tint in browsers without relative colors. */
|
|
1567
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
1568
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1569
|
+
@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)];
|
|
1570
|
+
}
|
|
1571
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1572
|
+
@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)];
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
.bubble[data-variant='outline'] > :first-child {
|
|
1576
|
+
@apply bg-background border-border;
|
|
1577
|
+
}
|
|
1578
|
+
.bubble[data-variant='outline'] > :is(a, button):first-child:hover {
|
|
1579
|
+
@apply bg-muted text-foreground dark:bg-input/30;
|
|
1580
|
+
}
|
|
1581
|
+
.bubble[data-variant='ghost'] {
|
|
1582
|
+
@apply max-w-full border-none;
|
|
1583
|
+
}
|
|
1584
|
+
.bubble[data-variant='ghost'] > :first-child {
|
|
1585
|
+
@apply rounded-none bg-transparent p-0;
|
|
1586
|
+
}
|
|
1587
|
+
.bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
|
|
1588
|
+
@apply bg-muted text-foreground dark:bg-muted/50;
|
|
1589
|
+
}
|
|
1590
|
+
.bubble[data-variant='destructive'] > :first-child {
|
|
1591
|
+
@apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
|
|
1592
|
+
}
|
|
1593
|
+
.bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
|
|
1594
|
+
@apply bg-destructive/20 dark:bg-destructive/30;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
.bubble > div:not(:first-child) {
|
|
1598
|
+
@apply rounded-full ring-2 ring-card bg-muted gap-1 px-1.5 py-0.5 has-[button]:p-0 text-xs;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
.bubble > div:not(:first-child):not([data-side='top']) {
|
|
1602
|
+
@apply bottom-0 translate-y-3/4;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.bubble > div:not(:first-child)[data-side='top'] {
|
|
1606
|
+
@apply top-0 -translate-y-3/4;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
.bubble > div:not(:first-child):not([data-align='start']) {
|
|
1610
|
+
@apply end-3;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
.bubble > div:not(:first-child)[data-align='start'] {
|
|
1614
|
+
@apply start-3;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/* Attachment */
|
|
1618
|
+
.attachment {
|
|
1619
|
+
@apply rounded-lg w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/30 border bg-card text-card-foreground;
|
|
1620
|
+
}
|
|
1621
|
+
.attachment:has(> a, > button:enabled):hover {
|
|
1622
|
+
@apply bg-muted/50;
|
|
1623
|
+
}
|
|
1624
|
+
.attachment[data-state='error'] {
|
|
1625
|
+
@apply border-destructive/30;
|
|
1626
|
+
}
|
|
1627
|
+
.attachment[data-state='idle'] {
|
|
1628
|
+
@apply border-dashed;
|
|
1629
|
+
}
|
|
1630
|
+
.attachment:not([data-orientation='vertical']) {
|
|
1631
|
+
@apply min-w-40;
|
|
1632
|
+
}
|
|
1633
|
+
.attachment[data-orientation='vertical'] {
|
|
1634
|
+
@apply w-24 has-[>section]:w-30;
|
|
1635
|
+
}
|
|
1636
|
+
.attachment:not([data-size]),
|
|
1637
|
+
.attachment[data-size='default'] {
|
|
1638
|
+
@apply gap-2 text-xs;
|
|
1639
|
+
}
|
|
1640
|
+
.attachment:not([data-size]):has(> section),
|
|
1641
|
+
.attachment[data-size='default']:has(> section) {
|
|
1642
|
+
@apply px-2 py-1.5;
|
|
1643
|
+
}
|
|
1644
|
+
.attachment:not([data-size]):has(> figure),
|
|
1645
|
+
.attachment[data-size='default']:has(> figure) {
|
|
1646
|
+
@apply p-1.5;
|
|
1647
|
+
}
|
|
1648
|
+
.attachment[data-size='sm'] {
|
|
1649
|
+
@apply gap-2.5 text-xs;
|
|
1650
|
+
}
|
|
1651
|
+
.attachment[data-size='sm']:has(> section) {
|
|
1652
|
+
@apply px-1.5 py-1;
|
|
1653
|
+
}
|
|
1654
|
+
.attachment[data-size='sm']:has(> figure) {
|
|
1655
|
+
@apply p-1;
|
|
1656
|
+
}
|
|
1657
|
+
.attachment[data-size='xs'] {
|
|
1658
|
+
@apply gap-1.5 text-xs rounded-md;
|
|
1659
|
+
}
|
|
1660
|
+
.attachment[data-size='xs']:has(> section) {
|
|
1661
|
+
@apply px-1.5 py-1;
|
|
1662
|
+
}
|
|
1663
|
+
.attachment[data-size='xs']:has(> figure) {
|
|
1664
|
+
@apply p-1;
|
|
1665
|
+
}
|
|
1666
|
+
.attachment > figure {
|
|
1667
|
+
@apply bg-muted text-foreground w-10 rounded-md;
|
|
1668
|
+
}
|
|
1669
|
+
.attachment[data-size='sm'] > figure {
|
|
1670
|
+
@apply w-8;
|
|
1671
|
+
}
|
|
1672
|
+
.attachment[data-size='xs'] > figure {
|
|
1673
|
+
@apply w-7 rounded-sm;
|
|
1674
|
+
}
|
|
1675
|
+
.attachment > figure > svg {
|
|
1676
|
+
@apply size-4;
|
|
1677
|
+
}
|
|
1678
|
+
.attachment[data-size='xs'] > figure > svg {
|
|
1679
|
+
@apply size-3.5;
|
|
1680
|
+
}
|
|
1681
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
1682
|
+
@apply w-full;
|
|
1683
|
+
}
|
|
1684
|
+
.attachment[data-orientation='vertical'] > figure > svg {
|
|
1685
|
+
@apply size-6;
|
|
1686
|
+
}
|
|
1687
|
+
.attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
|
|
1688
|
+
@apply opacity-60;
|
|
1689
|
+
}
|
|
1690
|
+
.attachment[data-state='error'] > figure {
|
|
1691
|
+
@apply bg-destructive/10 text-destructive;
|
|
1692
|
+
}
|
|
1693
|
+
.attachment > section {
|
|
1694
|
+
@apply leading-tight;
|
|
1695
|
+
}
|
|
1696
|
+
.attachment[data-orientation='vertical'] > section {
|
|
1697
|
+
@apply px-1;
|
|
1698
|
+
}
|
|
1699
|
+
.attachment > section > :first-child {
|
|
1700
|
+
@apply font-medium;
|
|
1371
1701
|
}
|
|
1702
|
+
.attachment > section > :not(:first-child) {
|
|
1703
|
+
@apply mt-0.5 text-xs text-muted-foreground;
|
|
1704
|
+
}
|
|
1705
|
+
.attachment[data-state='error'] > section > :not(:first-child) {
|
|
1706
|
+
@apply text-destructive/80;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.attachment[data-orientation='vertical'] > div {
|
|
1710
|
+
@apply top-3 end-3 gap-1;
|
|
1711
|
+
}
|
|
1712
|
+
.attachment-group {
|
|
1713
|
+
@apply gap-3 py-1;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
/* Code Block */
|
|
1718
|
+
.code-block {
|
|
1719
|
+
@apply rounded-md text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-2 has-[>pre:focus-visible]:ring-ring/30;
|
|
1720
|
+
--_code-padding: calc(var(--spacing, 0.25rem) * 3);
|
|
1721
|
+
}
|
|
1722
|
+
.code-block:not([data-variant='destructive']) { @apply border border-input text-foreground dark:bg-input/30 has-[>pre:focus-visible]:border-ring; }
|
|
1723
|
+
.code-block[data-variant='destructive'] { @apply border border-destructive/30 text-destructive dark:border-destructive/40; }
|
|
1724
|
+
.code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 2); }
|
|
1725
|
+
.code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
|
|
1726
|
+
.code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
|
|
1727
|
+
.code-block > header > :first-child:not(div) { @apply font-sans text-xs font-medium text-foreground [&_svg]:me-1.5 [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1728
|
+
.code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1729
|
+
.code-block[data-variant='destructive'] > :is(header, footer),
|
|
1730
|
+
.code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
|
|
1731
|
+
.code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
|
|
1732
|
+
.code-block > div { @apply top-2 end-2 gap-1; }
|
|
1733
|
+
.code-block[data-size='sm'] > div { @apply top-1.5 end-1.5; }
|
|
1734
|
+
.code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
|
|
1735
|
+
.code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
|
|
1736
|
+
.code-block:has(> header) > pre { @apply pt-2; }
|
|
1737
|
+
.code-block:has(> footer) > pre { @apply pb-2; }
|
|
1738
|
+
.code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
|
|
1739
|
+
.code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
|
|
1740
|
+
.code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
|
|
1741
|
+
|
|
1742
|
+
/* Input OTP */
|
|
1743
|
+
.input-otp > div { @apply gap-2; }
|
|
1744
|
+
.input-otp > div > div { @apply rounded-md; }
|
|
1745
|
+
.input-otp > div > div > span { @apply bg-input/20 dark:bg-input/30 border-input data-[active]:border-ring data-[active]:ring-ring/30 size-7 border-y border-e text-xs/relaxed transition-all outline-none first:rounded-s-md first:border-s last:rounded-e-md data-[active]:ring-2; }
|
|
1746
|
+
.input-otp > div > svg { @apply size-4 shrink-0; }
|
|
1747
|
+
.input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
|
|
1748
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-destructive; }
|
|
1749
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div { @apply ring-2 ring-destructive/20 dark:ring-destructive/40; }
|
|
1750
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span[data-active] { @apply border-destructive ring-destructive/20 dark:ring-destructive/40; }
|
|
1372
1751
|
|
|
1373
1752
|
}
|