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/lyra.css
CHANGED
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
|
|
24
24
|
.btn:not([data-size]),
|
|
25
25
|
.btn[data-size='default'] {
|
|
26
|
-
@apply h-8 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:
|
|
26
|
+
@apply h-8 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.btn[data-size='xs'] {
|
|
30
|
-
@apply h-6 gap-1 px-2 text-xs rounded-none [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:
|
|
30
|
+
@apply h-6 gap-1 px-2 text-xs rounded-none [&_svg:not([class*='size-'])]:size-3 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='sm'] {
|
|
34
|
-
@apply h-7 gap-1 px-2.5 rounded-none [&_svg:not([class*='size-'])]:size-3.5 has-[[data-icon='inline-end']]:
|
|
34
|
+
@apply h-7 gap-1 px-2.5 rounded-none [&_svg:not([class*='size-'])]:size-3.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='lg'] {
|
|
38
|
-
@apply h-9 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:
|
|
38
|
+
@apply h-9 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.btn[data-size='icon'] {
|
|
@@ -79,6 +79,13 @@
|
|
|
79
79
|
@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;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.btn:has(> input:checked) {
|
|
83
|
+
@apply bg-muted text-foreground hover:bg-muted dark:bg-muted dark:hover:bg-muted;
|
|
84
|
+
}
|
|
85
|
+
.btn:has(> input:focus-visible) {
|
|
86
|
+
@apply border-ring ring-ring/50 ring-[1px] dark:border-ring;
|
|
87
|
+
}
|
|
88
|
+
|
|
82
89
|
/* Button Group */
|
|
83
90
|
.button-group {
|
|
84
91
|
@apply rounded-none has-[>.button-group]:gap-2;
|
|
@@ -98,7 +105,7 @@
|
|
|
98
105
|
}
|
|
99
106
|
}
|
|
100
107
|
|
|
101
|
-
.button-group > :is(span, label, output) {
|
|
108
|
+
.button-group > :is(span, label, output):not(.btn) {
|
|
102
109
|
@apply bg-muted gap-2 rounded-none border px-2.5 text-xs font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
103
110
|
}
|
|
104
111
|
|
|
@@ -620,6 +627,52 @@
|
|
|
620
627
|
@apply text-muted-foreground text-xs/relaxed;
|
|
621
628
|
}
|
|
622
629
|
|
|
630
|
+
/* Sheet */
|
|
631
|
+
.sheet::backdrop {
|
|
632
|
+
@apply bg-black/10 text-xs/relaxed supports-backdrop-filter:backdrop-blur-xs;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.sheet > * {
|
|
636
|
+
@apply bg-popover text-popover-foreground bg-clip-padding text-xs/relaxed shadow-lg;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.sheet[data-side='bottom'] > * {
|
|
640
|
+
@apply border-t;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.sheet[data-side='top'] > * {
|
|
644
|
+
@apply border-b;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.sheet[data-side='left'] > * {
|
|
648
|
+
@apply border-r;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.sheet:not([data-side]) > *,
|
|
652
|
+
.sheet[data-side='right'] > * {
|
|
653
|
+
@apply border-l;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.sheet > * > header {
|
|
657
|
+
@apply gap-0.5 p-4;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.sheet > * > footer {
|
|
661
|
+
@apply gap-2 p-4;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.sheet > * > header > h2 {
|
|
665
|
+
@apply text-foreground text-sm font-medium;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.sheet > * > header > p {
|
|
669
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.sheet > * > button:last-child {
|
|
673
|
+
@apply top-3 end-3;
|
|
674
|
+
}
|
|
675
|
+
|
|
623
676
|
/* Dropdown Menu */
|
|
624
677
|
.dropdown-menu > [data-popover] {
|
|
625
678
|
@apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-0 shadow-md ring-1 duration-100;
|
|
@@ -693,6 +746,14 @@
|
|
|
693
746
|
@apply text-muted-foreground text-xs/relaxed;
|
|
694
747
|
}
|
|
695
748
|
|
|
749
|
+
/* Carousel */
|
|
750
|
+
.carousel > ul > li {
|
|
751
|
+
@apply p-1;
|
|
752
|
+
}
|
|
753
|
+
.carousel > ul:focus-visible {
|
|
754
|
+
@apply outline-2 outline-ring outline-offset-2;
|
|
755
|
+
}
|
|
756
|
+
|
|
696
757
|
/* Card */
|
|
697
758
|
.card {
|
|
698
759
|
@apply ring-foreground/10 bg-card text-card-foreground overflow-hidden rounded-none text-xs/relaxed ring-1 has-[>footer]:pb-0 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-none [&>img:last-child]:rounded-none;
|
|
@@ -1073,6 +1134,44 @@
|
|
|
1073
1134
|
@apply gap-2.5 text-xs;
|
|
1074
1135
|
}
|
|
1075
1136
|
|
|
1137
|
+
/* Message */
|
|
1138
|
+
.message-group { @apply gap-1.5; }
|
|
1139
|
+
.message { @apply gap-1.5 text-xs; }
|
|
1140
|
+
.message > div:last-child { @apply gap-2; }
|
|
1141
|
+
.message > div:last-child > :is(header, footer) {
|
|
1142
|
+
@apply px-2.5 text-xs font-medium text-muted-foreground;
|
|
1143
|
+
}
|
|
1144
|
+
.message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
|
|
1145
|
+
.message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
|
|
1146
|
+
|
|
1147
|
+
/* Trace */
|
|
1148
|
+
.trace { @apply gap-2; }
|
|
1149
|
+
.trace-line { @apply gap-2 text-xs text-muted-foreground; }
|
|
1150
|
+
.trace-line > svg { @apply size-3.5; }
|
|
1151
|
+
.trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
|
|
1152
|
+
:is(a, button, summary).trace-line {
|
|
1153
|
+
@apply rounded-none transition-colors hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring/50;
|
|
1154
|
+
}
|
|
1155
|
+
summary.trace-line + div {
|
|
1156
|
+
@apply mt-2 mb-1 ms-[calc(--spacing(1.75)-1px)] border-s ps-3.75 pe-1 text-muted-foreground leading-relaxed;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/* Marker */
|
|
1160
|
+
.marker {
|
|
1161
|
+
@apply min-h-4 gap-2 text-xs text-muted-foreground text-start [&_svg:not([class*='size-'])]:size-3.5;
|
|
1162
|
+
}
|
|
1163
|
+
.marker[data-variant='border'] {
|
|
1164
|
+
@apply border-b border-border pb-2;
|
|
1165
|
+
}
|
|
1166
|
+
.marker[data-variant='separator']::before,
|
|
1167
|
+
.marker[data-variant='separator']::after {
|
|
1168
|
+
@apply border-border;
|
|
1169
|
+
}
|
|
1170
|
+
.marker[data-variant='separator']::before { @apply me-1; }
|
|
1171
|
+
.marker[data-variant='separator']::after { @apply ms-1; }
|
|
1172
|
+
a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
|
|
1173
|
+
button.marker { @apply hover:text-foreground; }
|
|
1174
|
+
|
|
1076
1175
|
/* Item */
|
|
1077
1176
|
.item {
|
|
1078
1177
|
@apply rounded-none border text-xs;
|
|
@@ -1185,92 +1284,92 @@
|
|
|
1185
1284
|
}
|
|
1186
1285
|
|
|
1187
1286
|
/* Sidebar */
|
|
1188
|
-
.sidebar nav {
|
|
1287
|
+
.sidebar > nav {
|
|
1189
1288
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1190
1289
|
}
|
|
1191
1290
|
|
|
1192
|
-
.sidebar nav > header,
|
|
1193
|
-
.sidebar nav > footer {
|
|
1291
|
+
.sidebar > nav > header,
|
|
1292
|
+
.sidebar > nav > footer {
|
|
1194
1293
|
@apply gap-2 p-2;
|
|
1195
1294
|
}
|
|
1196
1295
|
|
|
1197
|
-
.sidebar nav > section {
|
|
1296
|
+
.sidebar > nav > section {
|
|
1198
1297
|
@apply gap-0;
|
|
1199
1298
|
}
|
|
1200
1299
|
|
|
1201
|
-
.sidebar nav [role=separator] {
|
|
1300
|
+
.sidebar > nav [role=separator] {
|
|
1202
1301
|
@apply border-sidebar-border mx-2;
|
|
1203
1302
|
}
|
|
1204
1303
|
|
|
1205
|
-
.sidebar nav > section > [role=group] {
|
|
1304
|
+
.sidebar > nav > section > [role=group] {
|
|
1206
1305
|
@apply p-2;
|
|
1207
1306
|
}
|
|
1208
1307
|
|
|
1209
|
-
.sidebar nav h3 {
|
|
1308
|
+
.sidebar > nav h3 {
|
|
1210
1309
|
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-none px-2 text-xs focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
|
|
1211
1310
|
}
|
|
1212
1311
|
|
|
1213
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1312
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1214
1313
|
@apply gap-0;
|
|
1215
1314
|
}
|
|
1216
1315
|
|
|
1217
|
-
.sidebar nav > section > [role=group] {
|
|
1316
|
+
.sidebar > nav > section > [role=group] {
|
|
1218
1317
|
@apply text-xs;
|
|
1219
1318
|
}
|
|
1220
1319
|
|
|
1221
|
-
.sidebar nav li > :is(a, button),
|
|
1222
|
-
.sidebar nav li > details > summary {
|
|
1320
|
+
.sidebar > nav li > :is(a, button),
|
|
1321
|
+
.sidebar > nav li > details > summary {
|
|
1223
1322
|
@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-none 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;
|
|
1224
1323
|
}
|
|
1225
1324
|
|
|
1226
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1227
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1325
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1326
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1228
1327
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1229
1328
|
}
|
|
1230
1329
|
|
|
1231
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1232
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1233
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1234
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1330
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1331
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1332
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1333
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1235
1334
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1236
1335
|
}
|
|
1237
1336
|
|
|
1238
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1239
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1337
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1338
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1240
1339
|
@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;
|
|
1241
1340
|
}
|
|
1242
1341
|
|
|
1243
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1244
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1245
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1246
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1342
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1343
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1344
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1345
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1247
1346
|
@apply h-8 text-xs;
|
|
1248
1347
|
}
|
|
1249
1348
|
|
|
1250
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1251
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1349
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1350
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1252
1351
|
@apply h-7 text-xs;
|
|
1253
1352
|
}
|
|
1254
1353
|
|
|
1255
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1256
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1354
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1355
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1257
1356
|
@apply h-12 text-xs;
|
|
1258
1357
|
}
|
|
1259
1358
|
|
|
1260
|
-
.sidebar nav li > details > summary::after {
|
|
1359
|
+
.sidebar > nav li > details > summary::after {
|
|
1261
1360
|
@apply size-4;
|
|
1262
1361
|
}
|
|
1263
1362
|
|
|
1264
|
-
.sidebar nav li > details::details-content {
|
|
1363
|
+
.sidebar > nav li > details::details-content {
|
|
1265
1364
|
@apply px-3.5;
|
|
1266
1365
|
}
|
|
1267
1366
|
|
|
1268
|
-
.sidebar nav ul ul {
|
|
1367
|
+
.sidebar > nav ul ul {
|
|
1269
1368
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1270
1369
|
}
|
|
1271
1370
|
|
|
1272
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1273
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1371
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1372
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1274
1373
|
@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-none px-2 text-xs focus-visible:ring-2 [&>svg]:size-4;
|
|
1275
1374
|
}
|
|
1276
1375
|
/* Progress */
|
|
@@ -1327,7 +1426,7 @@
|
|
|
1327
1426
|
|
|
1328
1427
|
/* Tooltip */
|
|
1329
1428
|
[data-tooltip]::before {
|
|
1330
|
-
@apply bg-foreground text-background
|
|
1429
|
+
@apply bg-foreground text-background rounded-none px-3 py-1.5 text-xs;
|
|
1331
1430
|
}
|
|
1332
1431
|
|
|
1333
1432
|
[data-tooltip][data-arrow]::after {
|
|
@@ -1335,9 +1434,17 @@
|
|
|
1335
1434
|
}
|
|
1336
1435
|
|
|
1337
1436
|
/* Toast */
|
|
1338
|
-
.toast
|
|
1437
|
+
.toast {
|
|
1339
1438
|
@apply bg-popover text-popover-foreground border shadow-lg rounded-none;
|
|
1340
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; }
|
|
1341
1448
|
|
|
1342
1449
|
/* Slider */
|
|
1343
1450
|
.field > input[type='range'],
|
|
@@ -1365,15 +1472,284 @@
|
|
|
1365
1472
|
}
|
|
1366
1473
|
|
|
1367
1474
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1368
|
-
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow]
|
|
1475
|
+
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow] -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1369
1476
|
}
|
|
1370
1477
|
|
|
1371
1478
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1372
|
-
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow]
|
|
1479
|
+
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow];
|
|
1373
1480
|
}
|
|
1374
1481
|
|
|
1375
1482
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1376
|
-
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow]
|
|
1483
|
+
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow];
|
|
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-1;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1493
|
+
@apply ring-1;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1497
|
+
@apply ring-1;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1502
|
+
@apply ring-1 outline-hidden;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1506
|
+
@apply ring-1 outline-hidden;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1510
|
+
@apply ring-1 outline-hidden;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
:is(.field > input[type='range'], .input[type='range']):active::-webkit-slider-thumb {
|
|
1514
|
+
@apply ring-1;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
:is(.field > input[type='range'], .input[type='range']):active::-moz-range-thumb {
|
|
1518
|
+
@apply ring-1;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
:is(.field > input[type='range'], .input[type='range']):active::-ms-thumb {
|
|
1522
|
+
@apply ring-1;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
/* Bubble */
|
|
1527
|
+
.bubble-group {
|
|
1528
|
+
@apply gap-2;
|
|
1529
|
+
}
|
|
1530
|
+
.bubble {
|
|
1531
|
+
@apply gap-1 max-w-[80%];
|
|
1532
|
+
}
|
|
1533
|
+
.bubble[data-align='end'],
|
|
1534
|
+
.bubble[data-align='end'] > :first-child {
|
|
1535
|
+
@apply self-end;
|
|
1536
|
+
}
|
|
1537
|
+
.bubble > :first-child {
|
|
1538
|
+
@apply rounded-none border border-transparent px-2.5 py-2 text-xs leading-relaxed;
|
|
1539
|
+
}
|
|
1540
|
+
.bubble > :is(a, button):first-child {
|
|
1541
|
+
@apply focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50;
|
|
1542
|
+
}
|
|
1543
|
+
.bubble:not([data-variant]) > :first-child,
|
|
1544
|
+
.bubble[data-variant='default'] > :first-child {
|
|
1545
|
+
@apply bg-primary text-primary-foreground;
|
|
1546
|
+
}
|
|
1547
|
+
.bubble:not([data-variant]) > :is(a, button):first-child:hover,
|
|
1548
|
+
.bubble[data-variant='default'] > :is(a, button):first-child:hover {
|
|
1549
|
+
@apply bg-primary/80;
|
|
1550
|
+
}
|
|
1551
|
+
.bubble[data-variant='secondary'] > :first-child {
|
|
1552
|
+
@apply bg-secondary text-secondary-foreground;
|
|
1553
|
+
}
|
|
1554
|
+
.bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
|
|
1555
|
+
@apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
1556
|
+
}
|
|
1557
|
+
.bubble[data-variant='muted'] > :first-child {
|
|
1558
|
+
@apply bg-muted;
|
|
1559
|
+
}
|
|
1560
|
+
.bubble[data-variant='muted'] > :is(a, button):first-child:hover {
|
|
1561
|
+
@apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
1562
|
+
}
|
|
1563
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1564
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
|
|
1565
|
+
}
|
|
1566
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1567
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
|
|
1568
|
+
}
|
|
1569
|
+
/* Keep a tint in browsers without relative colors. */
|
|
1570
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
1571
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1572
|
+
@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)];
|
|
1573
|
+
}
|
|
1574
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1575
|
+
@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)];
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
.bubble[data-variant='outline'] > :first-child {
|
|
1579
|
+
@apply bg-background border-border;
|
|
1580
|
+
}
|
|
1581
|
+
.bubble[data-variant='outline'] > :is(a, button):first-child:hover {
|
|
1582
|
+
@apply bg-muted text-foreground dark:bg-input/30;
|
|
1583
|
+
}
|
|
1584
|
+
.bubble[data-variant='ghost'] {
|
|
1585
|
+
@apply max-w-full border-none;
|
|
1586
|
+
}
|
|
1587
|
+
.bubble[data-variant='ghost'] > :first-child {
|
|
1588
|
+
@apply rounded-none bg-transparent p-0;
|
|
1589
|
+
}
|
|
1590
|
+
.bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
|
|
1591
|
+
@apply bg-muted text-foreground dark:bg-muted/50;
|
|
1592
|
+
}
|
|
1593
|
+
.bubble[data-variant='destructive'] > :first-child {
|
|
1594
|
+
@apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
|
|
1595
|
+
}
|
|
1596
|
+
.bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
|
|
1597
|
+
@apply bg-destructive/20 dark:bg-destructive/30;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
.bubble > div:not(:first-child) {
|
|
1601
|
+
@apply rounded-none ring-2 ring-card bg-muted gap-1 px-1.5 py-0.5 has-[button]:p-0 text-xs;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
.bubble > div:not(:first-child):not([data-side='top']) {
|
|
1605
|
+
@apply bottom-0 translate-y-3/4;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
.bubble > div:not(:first-child)[data-side='top'] {
|
|
1609
|
+
@apply top-0 -translate-y-3/4;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.bubble > div:not(:first-child):not([data-align='start']) {
|
|
1613
|
+
@apply end-3;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.bubble > div:not(:first-child)[data-align='start'] {
|
|
1617
|
+
@apply start-3;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
/* Attachment */
|
|
1621
|
+
.attachment {
|
|
1622
|
+
@apply rounded-none w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/50 border bg-card text-card-foreground;
|
|
1623
|
+
}
|
|
1624
|
+
.attachment:has(> a, > button:enabled):hover {
|
|
1625
|
+
@apply bg-muted/50;
|
|
1626
|
+
}
|
|
1627
|
+
.attachment[data-state='error'] {
|
|
1628
|
+
@apply border-destructive/30;
|
|
1629
|
+
}
|
|
1630
|
+
.attachment[data-state='idle'] {
|
|
1631
|
+
@apply border-dashed;
|
|
1632
|
+
}
|
|
1633
|
+
.attachment:not([data-orientation='vertical']) {
|
|
1634
|
+
@apply min-w-40;
|
|
1635
|
+
}
|
|
1636
|
+
.attachment[data-orientation='vertical'] {
|
|
1637
|
+
@apply w-24 has-[>section]:w-30;
|
|
1638
|
+
}
|
|
1639
|
+
.attachment:not([data-size]),
|
|
1640
|
+
.attachment[data-size='default'] {
|
|
1641
|
+
@apply gap-2 text-xs;
|
|
1642
|
+
}
|
|
1643
|
+
.attachment:not([data-size]):has(> section),
|
|
1644
|
+
.attachment[data-size='default']:has(> section) {
|
|
1645
|
+
@apply px-2 py-1.5;
|
|
1646
|
+
}
|
|
1647
|
+
.attachment:not([data-size]):has(> figure),
|
|
1648
|
+
.attachment[data-size='default']:has(> figure) {
|
|
1649
|
+
@apply p-1.5;
|
|
1650
|
+
}
|
|
1651
|
+
.attachment[data-size='sm'] {
|
|
1652
|
+
@apply gap-2.5 text-xs;
|
|
1653
|
+
}
|
|
1654
|
+
.attachment[data-size='sm']:has(> section) {
|
|
1655
|
+
@apply px-1.5 py-1;
|
|
1656
|
+
}
|
|
1657
|
+
.attachment[data-size='sm']:has(> figure) {
|
|
1658
|
+
@apply p-1;
|
|
1659
|
+
}
|
|
1660
|
+
.attachment[data-size='xs'] {
|
|
1661
|
+
@apply gap-1.5 text-xs rounded-none;
|
|
1662
|
+
}
|
|
1663
|
+
.attachment[data-size='xs']:has(> section) {
|
|
1664
|
+
@apply px-1.5 py-1;
|
|
1665
|
+
}
|
|
1666
|
+
.attachment[data-size='xs']:has(> figure) {
|
|
1667
|
+
@apply p-1;
|
|
1668
|
+
}
|
|
1669
|
+
.attachment > figure {
|
|
1670
|
+
@apply bg-muted text-foreground w-10 rounded-none;
|
|
1671
|
+
}
|
|
1672
|
+
.attachment[data-size='sm'] > figure {
|
|
1673
|
+
@apply w-8;
|
|
1674
|
+
}
|
|
1675
|
+
.attachment[data-size='xs'] > figure {
|
|
1676
|
+
@apply w-7 rounded-none;
|
|
1677
|
+
}
|
|
1678
|
+
.attachment > figure > svg {
|
|
1679
|
+
@apply size-4;
|
|
1680
|
+
}
|
|
1681
|
+
.attachment[data-size='xs'] > figure > svg {
|
|
1682
|
+
@apply size-3.5;
|
|
1683
|
+
}
|
|
1684
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
1685
|
+
@apply w-full;
|
|
1686
|
+
}
|
|
1687
|
+
.attachment[data-orientation='vertical'] > figure > svg {
|
|
1688
|
+
@apply size-6;
|
|
1689
|
+
}
|
|
1690
|
+
.attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
|
|
1691
|
+
@apply opacity-60;
|
|
1692
|
+
}
|
|
1693
|
+
.attachment[data-state='error'] > figure {
|
|
1694
|
+
@apply bg-destructive/10 text-destructive;
|
|
1695
|
+
}
|
|
1696
|
+
.attachment > section {
|
|
1697
|
+
@apply leading-tight;
|
|
1698
|
+
}
|
|
1699
|
+
.attachment[data-orientation='vertical'] > section {
|
|
1700
|
+
@apply px-1;
|
|
1701
|
+
}
|
|
1702
|
+
.attachment > section > :first-child {
|
|
1703
|
+
@apply font-medium;
|
|
1377
1704
|
}
|
|
1705
|
+
.attachment > section > :not(:first-child) {
|
|
1706
|
+
@apply mt-0.5 text-xs text-muted-foreground;
|
|
1707
|
+
}
|
|
1708
|
+
.attachment[data-state='error'] > section > :not(:first-child) {
|
|
1709
|
+
@apply text-destructive/80;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
.attachment[data-orientation='vertical'] > div {
|
|
1713
|
+
@apply top-3 end-3 gap-1;
|
|
1714
|
+
}
|
|
1715
|
+
.attachment-group {
|
|
1716
|
+
@apply gap-3 py-1;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
/* Code Block */
|
|
1721
|
+
.code-block {
|
|
1722
|
+
@apply rounded-none text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-1 has-[>pre:focus-visible]:ring-ring/50;
|
|
1723
|
+
--_code-padding: calc(var(--spacing, 0.25rem) * 3);
|
|
1724
|
+
}
|
|
1725
|
+
.code-block:not([data-variant='destructive']) { @apply border border-input text-foreground dark:bg-input/30 has-[>pre:focus-visible]:border-ring; }
|
|
1726
|
+
.code-block[data-variant='destructive'] { @apply border border-destructive/30 text-destructive dark:border-destructive/40; }
|
|
1727
|
+
.code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 2); }
|
|
1728
|
+
.code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
|
|
1729
|
+
.code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
|
|
1730
|
+
.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; }
|
|
1731
|
+
.code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1732
|
+
.code-block[data-variant='destructive'] > :is(header, footer),
|
|
1733
|
+
.code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
|
|
1734
|
+
.code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
|
|
1735
|
+
.code-block > div { @apply top-2 end-2 gap-1; }
|
|
1736
|
+
.code-block[data-size='sm'] > div { @apply top-1.5 end-1.5; }
|
|
1737
|
+
.code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
|
|
1738
|
+
.code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
|
|
1739
|
+
.code-block:has(> header) > pre { @apply pt-2; }
|
|
1740
|
+
.code-block:has(> footer) > pre { @apply pb-2; }
|
|
1741
|
+
.code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
|
|
1742
|
+
.code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
|
|
1743
|
+
.code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
|
|
1744
|
+
|
|
1745
|
+
/* Input OTP */
|
|
1746
|
+
.input-otp > div { @apply gap-2; }
|
|
1747
|
+
.input-otp > div > div { @apply rounded-none; }
|
|
1748
|
+
.input-otp > div > div > span { @apply dark:bg-input/30 border-input data-[active]:border-ring data-[active]:ring-ring/50 size-8 border-y border-e text-xs transition-all outline-none first:rounded-none first:border-s last:rounded-none data-[active]:ring-1; }
|
|
1749
|
+
.input-otp > div > svg { @apply size-4 shrink-0; }
|
|
1750
|
+
.input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
|
|
1751
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-destructive; }
|
|
1752
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div { @apply ring-1 ring-destructive/20 dark:ring-destructive/40; }
|
|
1753
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span[data-active] { @apply border-destructive ring-destructive/20 dark:ring-destructive/40; }
|
|
1378
1754
|
|
|
1379
1755
|
}
|