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/sera.css
CHANGED
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
|
|
24
24
|
.btn:not([data-size]),
|
|
25
25
|
.btn[data-size='default'] {
|
|
26
|
-
@apply h-10 gap-1.5 px-6 has-[[data-icon='inline-end']]:
|
|
26
|
+
@apply h-10 gap-1.5 px-6 has-[[data-icon='inline-end']]:pe-4 has-[[data-icon='inline-start']]:ps-4;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.btn[data-size='xs'] {
|
|
30
|
-
@apply h-7 gap-1 px-3 [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:
|
|
30
|
+
@apply h-7 gap-1 px-3 [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.btn[data-size='sm'] {
|
|
34
|
-
@apply h-9 gap-1 px-4 has-[[data-icon='inline-end']]:
|
|
34
|
+
@apply h-9 gap-1 px-4 has-[[data-icon='inline-end']]:pe-3 has-[[data-icon='inline-start']]:ps-3;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.btn[data-size='lg'] {
|
|
38
|
-
@apply h-11 gap-1.5 px-8 has-[[data-icon='inline-end']]:
|
|
38
|
+
@apply h-11 gap-1.5 px-8 has-[[data-icon='inline-end']]:pe-5 has-[[data-icon='inline-start']]:ps-5;
|
|
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/30 ring-[2px] dark:border-ring;
|
|
87
|
+
}
|
|
88
|
+
|
|
82
89
|
/* Button Group */
|
|
83
90
|
.button-group {
|
|
84
91
|
@apply has-[>.button-group]:gap-2;
|
|
@@ -95,7 +102,7 @@
|
|
|
95
102
|
@apply border-border focus-visible:border-ring;
|
|
96
103
|
}
|
|
97
104
|
|
|
98
|
-
> :is(span, label, output) {
|
|
105
|
+
> :is(span, label, output):not(.btn) {
|
|
99
106
|
@apply border-border;
|
|
100
107
|
}
|
|
101
108
|
}
|
|
@@ -114,7 +121,7 @@
|
|
|
114
121
|
}
|
|
115
122
|
}
|
|
116
123
|
|
|
117
|
-
.button-group > :is(span, label, output) {
|
|
124
|
+
.button-group > :is(span, label, output):not(.btn) {
|
|
118
125
|
@apply gap-2 border border-transparent border-b-input bg-transparent px-2.5 text-xs font-semibold uppercase [&_svg:not([class*='size-'])]:size-3.5;
|
|
119
126
|
}
|
|
120
127
|
|
|
@@ -221,7 +228,7 @@
|
|
|
221
228
|
/* Native Select */
|
|
222
229
|
.field > select,
|
|
223
230
|
select.select {
|
|
224
|
-
@apply border-transparent border-b-input bg-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 w-fit rounded-none border py-2 ps-0 pe-8 text-sm transition-[color,border-color] data-[size=sm]:h-9;
|
|
231
|
+
@apply border-transparent border-b-input bg-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 w-fit rounded-none border py-2 ps-0 pe-8 text-base md:text-sm transition-[color,border-color] data-[size=sm]:h-9;
|
|
225
232
|
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0] bg-size-[0.875rem];
|
|
226
233
|
}
|
|
227
234
|
|
|
@@ -377,7 +384,7 @@
|
|
|
377
384
|
}
|
|
378
385
|
|
|
379
386
|
.command > header input {
|
|
380
|
-
@apply h-9 ps-1.5 pe-2 text-sm placeholder:text-muted-foreground;
|
|
387
|
+
@apply h-9 ps-1.5 pe-2 text-base md:text-sm placeholder:text-muted-foreground;
|
|
381
388
|
}
|
|
382
389
|
|
|
383
390
|
.command [role='menu'] {
|
|
@@ -419,7 +426,7 @@
|
|
|
419
426
|
|
|
420
427
|
/* Combobox */
|
|
421
428
|
.combobox > input[role='combobox'] {
|
|
422
|
-
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 rounded-none border py-2 ps-0 pe-8 text-sm transition-[color,border-color];
|
|
429
|
+
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 rounded-none border py-2 ps-0 pe-8 text-base md:text-sm transition-[color,border-color];
|
|
423
430
|
}
|
|
424
431
|
|
|
425
432
|
.combobox > svg,
|
|
@@ -468,6 +475,10 @@
|
|
|
468
475
|
@apply border-transparent border-b-input bg-transparent focus-within:border-b-ring has-[[aria-invalid=true]]:border-b-destructive dark:has-[[aria-invalid=true]]:border-b-destructive/50 min-h-10 gap-1.5 rounded-none border bg-clip-padding px-0 py-1.5 text-sm transition-[color,border-color];
|
|
469
476
|
}
|
|
470
477
|
|
|
478
|
+
.combobox-chips > input[role='combobox'] {
|
|
479
|
+
@apply text-base md:text-sm;
|
|
480
|
+
}
|
|
481
|
+
|
|
471
482
|
.combobox-chip {
|
|
472
483
|
@apply bg-muted text-foreground h-5.5 gap-1 rounded-none px-2 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
|
|
473
484
|
}
|
|
@@ -648,6 +659,52 @@
|
|
|
648
659
|
@apply text-muted-foreground mt-0.5 text-sm leading-relaxed;
|
|
649
660
|
}
|
|
650
661
|
|
|
662
|
+
/* Sheet */
|
|
663
|
+
.sheet::backdrop {
|
|
664
|
+
@apply bg-black/20 supports-backdrop-filter:backdrop-blur-sm;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.sheet > * {
|
|
668
|
+
@apply bg-popover text-popover-foreground bg-clip-padding text-sm shadow-md;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.sheet[data-side='bottom'] > * {
|
|
672
|
+
@apply border-t;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.sheet[data-side='top'] > * {
|
|
676
|
+
@apply border-b;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.sheet[data-side='left'] > * {
|
|
680
|
+
@apply border-r;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.sheet:not([data-side]) > *,
|
|
684
|
+
.sheet[data-side='right'] > * {
|
|
685
|
+
@apply border-l;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.sheet > * > header {
|
|
689
|
+
@apply gap-1.5 p-8;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.sheet > * > footer {
|
|
693
|
+
@apply gap-2 p-8;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.sheet > * > header > h2 {
|
|
697
|
+
@apply text-foreground text-lg font-semibold uppercase tracking-wider;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.sheet > * > header > p {
|
|
701
|
+
@apply text-muted-foreground text-sm leading-relaxed mt-0.5;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.sheet > * > button:last-child {
|
|
705
|
+
@apply top-4 end-4 bg-secondary;
|
|
706
|
+
}
|
|
707
|
+
|
|
651
708
|
/* Dropdown Menu */
|
|
652
709
|
.dropdown-menu > [data-popover] {
|
|
653
710
|
@apply bg-popover text-popover-foreground ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-1.5 shadow-md ring-1 duration-100;
|
|
@@ -721,6 +778,14 @@
|
|
|
721
778
|
@apply text-muted-foreground text-sm leading-relaxed mt-0.5;
|
|
722
779
|
}
|
|
723
780
|
|
|
781
|
+
/* Carousel */
|
|
782
|
+
.carousel > ul > li {
|
|
783
|
+
@apply p-1;
|
|
784
|
+
}
|
|
785
|
+
.carousel > ul:focus-visible {
|
|
786
|
+
@apply outline-2 outline-ring outline-offset-2;
|
|
787
|
+
}
|
|
788
|
+
|
|
724
789
|
/* Card */
|
|
725
790
|
.card {
|
|
726
791
|
@apply bg-card text-card-foreground ring-foreground/5 overflow-hidden text-sm shadow-sm ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-none [&>img:last-child]:rounded-none;
|
|
@@ -970,7 +1035,7 @@
|
|
|
970
1035
|
@apply opacity-50;
|
|
971
1036
|
}
|
|
972
1037
|
.input-group > :is(input, select, [data-control]) {
|
|
973
|
-
@apply px-0 py-1 text-sm;
|
|
1038
|
+
@apply px-0 py-1 text-base md:text-sm;
|
|
974
1039
|
}
|
|
975
1040
|
|
|
976
1041
|
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
@@ -982,7 +1047,7 @@
|
|
|
982
1047
|
}
|
|
983
1048
|
|
|
984
1049
|
.input-group > textarea {
|
|
985
|
-
@apply px-0 py-2.5 text-sm;
|
|
1050
|
+
@apply px-0 py-2.5 text-base md:text-sm;
|
|
986
1051
|
}
|
|
987
1052
|
|
|
988
1053
|
.input-group > :is(span, [role='group'], header, footer),
|
|
@@ -1084,6 +1149,44 @@
|
|
|
1084
1149
|
@apply gap-4 text-sm;
|
|
1085
1150
|
}
|
|
1086
1151
|
|
|
1152
|
+
/* Message */
|
|
1153
|
+
.message-group { @apply gap-2; }
|
|
1154
|
+
.message { @apply gap-2 text-sm; }
|
|
1155
|
+
.message > div:last-child { @apply gap-2.5; }
|
|
1156
|
+
.message > div:last-child > :is(header, footer) {
|
|
1157
|
+
@apply px-4 text-xs uppercase tracking-wide font-medium text-muted-foreground;
|
|
1158
|
+
}
|
|
1159
|
+
.message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
|
|
1160
|
+
.message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
|
|
1161
|
+
|
|
1162
|
+
/* Trace */
|
|
1163
|
+
.trace { @apply gap-3; }
|
|
1164
|
+
.trace-line { @apply gap-2 text-sm text-muted-foreground; }
|
|
1165
|
+
.trace-line > svg { @apply size-4; }
|
|
1166
|
+
.trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
|
|
1167
|
+
:is(a, button, summary).trace-line {
|
|
1168
|
+
@apply rounded-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
1169
|
+
}
|
|
1170
|
+
summary.trace-line + div {
|
|
1171
|
+
@apply mt-3 mb-1 ms-[calc(--spacing(2)-1px)] border-s ps-4 pe-1 text-muted-foreground leading-relaxed;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/* Marker */
|
|
1175
|
+
.marker {
|
|
1176
|
+
@apply min-h-4 gap-2 text-xs text-muted-foreground text-start uppercase tracking-wide [&_svg:not([class*='size-'])]:size-4;
|
|
1177
|
+
}
|
|
1178
|
+
.marker[data-variant='border'] {
|
|
1179
|
+
@apply border-b border-border pb-2;
|
|
1180
|
+
}
|
|
1181
|
+
.marker[data-variant='separator']::before,
|
|
1182
|
+
.marker[data-variant='separator']::after {
|
|
1183
|
+
@apply border-border;
|
|
1184
|
+
}
|
|
1185
|
+
.marker[data-variant='separator']::before { @apply me-1; }
|
|
1186
|
+
.marker[data-variant='separator']::after { @apply ms-1; }
|
|
1187
|
+
a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
|
|
1188
|
+
button.marker { @apply hover:text-foreground; }
|
|
1189
|
+
|
|
1087
1190
|
/* Item */
|
|
1088
1191
|
.item {
|
|
1089
1192
|
@apply rounded-none border text-sm;
|
|
@@ -1203,92 +1306,92 @@
|
|
|
1203
1306
|
}
|
|
1204
1307
|
|
|
1205
1308
|
/* Sidebar */
|
|
1206
|
-
.sidebar nav {
|
|
1309
|
+
.sidebar > nav {
|
|
1207
1310
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1208
1311
|
}
|
|
1209
1312
|
|
|
1210
|
-
.sidebar nav > header,
|
|
1211
|
-
.sidebar nav > footer {
|
|
1313
|
+
.sidebar > nav > header,
|
|
1314
|
+
.sidebar > nav > footer {
|
|
1212
1315
|
@apply gap-2 p-2 [--radius:0];
|
|
1213
1316
|
}
|
|
1214
1317
|
|
|
1215
|
-
.sidebar nav > section {
|
|
1318
|
+
.sidebar > nav > section {
|
|
1216
1319
|
@apply gap-2 [--radius:0];
|
|
1217
1320
|
}
|
|
1218
1321
|
|
|
1219
|
-
.sidebar nav [role=separator] {
|
|
1322
|
+
.sidebar > nav [role=separator] {
|
|
1220
1323
|
@apply border-sidebar-border mx-2;
|
|
1221
1324
|
}
|
|
1222
1325
|
|
|
1223
|
-
.sidebar nav > section > [role=group] {
|
|
1326
|
+
.sidebar > nav > section > [role=group] {
|
|
1224
1327
|
@apply p-2;
|
|
1225
1328
|
}
|
|
1226
1329
|
|
|
1227
|
-
.sidebar nav h3 {
|
|
1330
|
+
.sidebar > nav h3 {
|
|
1228
1331
|
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-none px-3 text-xs font-semibold uppercase tracking-wider focus-visible:ring-2 [&>svg]:size-3.5 transition-[margin,opacity] duration-200 ease-linear;
|
|
1229
1332
|
}
|
|
1230
1333
|
|
|
1231
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1334
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1232
1335
|
@apply gap-0.5;
|
|
1233
1336
|
}
|
|
1234
1337
|
|
|
1235
|
-
.sidebar nav > section > [role=group] {
|
|
1338
|
+
.sidebar > nav > section > [role=group] {
|
|
1236
1339
|
@apply text-sm;
|
|
1237
1340
|
}
|
|
1238
1341
|
|
|
1239
|
-
.sidebar nav li > :is(a, button),
|
|
1240
|
-
.sidebar nav li > details > summary {
|
|
1342
|
+
.sidebar > nav li > :is(a, button),
|
|
1343
|
+
.sidebar > nav li > details > summary {
|
|
1241
1344
|
@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 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-3.5;
|
|
1242
1345
|
}
|
|
1243
1346
|
|
|
1244
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1245
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1347
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1348
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1246
1349
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1247
1350
|
}
|
|
1248
1351
|
|
|
1249
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1250
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1251
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1252
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1352
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1353
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1354
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1355
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1253
1356
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1254
1357
|
}
|
|
1255
1358
|
|
|
1256
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1257
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1359
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1360
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1258
1361
|
@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;
|
|
1259
1362
|
}
|
|
1260
1363
|
|
|
1261
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1262
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1263
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1264
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1364
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1365
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1366
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1367
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1265
1368
|
@apply h-9 text-sm;
|
|
1266
1369
|
}
|
|
1267
1370
|
|
|
1268
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1269
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1371
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1372
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1270
1373
|
@apply h-8 text-xs;
|
|
1271
1374
|
}
|
|
1272
1375
|
|
|
1273
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1274
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1376
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1377
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1275
1378
|
@apply h-14 px-3 text-sm;
|
|
1276
1379
|
}
|
|
1277
1380
|
|
|
1278
|
-
.sidebar nav li > details > summary::after {
|
|
1381
|
+
.sidebar > nav li > details > summary::after {
|
|
1279
1382
|
@apply size-3.5;
|
|
1280
1383
|
}
|
|
1281
1384
|
|
|
1282
|
-
.sidebar nav li > details::details-content {
|
|
1385
|
+
.sidebar > nav li > details::details-content {
|
|
1283
1386
|
@apply px-3.5;
|
|
1284
1387
|
}
|
|
1285
1388
|
|
|
1286
|
-
.sidebar nav ul ul {
|
|
1389
|
+
.sidebar > nav ul ul {
|
|
1287
1390
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1288
1391
|
}
|
|
1289
1392
|
|
|
1290
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1291
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1393
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1394
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1292
1395
|
@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-3 text-sm focus-visible:ring-2 [&>svg]:size-3.5;
|
|
1293
1396
|
}
|
|
1294
1397
|
/* Progress */
|
|
@@ -1345,7 +1448,7 @@
|
|
|
1345
1448
|
|
|
1346
1449
|
/* Tooltip */
|
|
1347
1450
|
[data-tooltip]::before {
|
|
1348
|
-
@apply bg-foreground text-background
|
|
1451
|
+
@apply bg-foreground text-background rounded-none px-3 py-1.5 text-xs;
|
|
1349
1452
|
}
|
|
1350
1453
|
|
|
1351
1454
|
[data-tooltip][data-arrow]::after {
|
|
@@ -1353,9 +1456,17 @@
|
|
|
1353
1456
|
}
|
|
1354
1457
|
|
|
1355
1458
|
/* Toast */
|
|
1356
|
-
.toast
|
|
1357
|
-
@apply bg-popover text-popover-foreground border shadow-lg rounded-none
|
|
1358
|
-
}
|
|
1459
|
+
.toast {
|
|
1460
|
+
@apply bg-popover text-popover-foreground border shadow-lg rounded-none;
|
|
1461
|
+
}
|
|
1462
|
+
.toast > .toast-content { @apply gap-3 p-4; }
|
|
1463
|
+
.toast > .toast-content > svg { @apply size-4; }
|
|
1464
|
+
.toast > .toast-content > section { @apply gap-1; }
|
|
1465
|
+
.toast > .toast-content > section > h2 { @apply text-sm font-medium; }
|
|
1466
|
+
.toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
|
|
1467
|
+
.toast > .toast-content > footer { @apply gap-3; }
|
|
1468
|
+
.toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
|
|
1469
|
+
.toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
|
|
1359
1470
|
|
|
1360
1471
|
/* Slider */
|
|
1361
1472
|
.field > input[type='range'],
|
|
@@ -1383,15 +1494,270 @@
|
|
|
1383
1494
|
}
|
|
1384
1495
|
|
|
1385
1496
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1386
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1497
|
+
@apply size-3 border-none bg-primary transition-colors -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1387
1498
|
}
|
|
1388
1499
|
|
|
1389
1500
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1390
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1501
|
+
@apply size-3 border-none bg-primary transition-colors;
|
|
1391
1502
|
}
|
|
1392
1503
|
|
|
1393
1504
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1394
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1505
|
+
@apply size-3 border-none bg-primary transition-colors;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
1509
|
+
@media (hover: hover) {
|
|
1510
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
1511
|
+
@apply ring-2 ring-ring/30;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1515
|
+
@apply ring-2 ring-ring/30;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1519
|
+
@apply ring-2 ring-ring/30;
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1524
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1528
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1532
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/* Bubble */
|
|
1537
|
+
.bubble-group {
|
|
1538
|
+
@apply gap-2;
|
|
1539
|
+
}
|
|
1540
|
+
.bubble {
|
|
1541
|
+
@apply gap-1 max-w-[80%];
|
|
1542
|
+
}
|
|
1543
|
+
.bubble[data-align='end'],
|
|
1544
|
+
.bubble[data-align='end'] > :first-child {
|
|
1545
|
+
@apply self-end;
|
|
1546
|
+
}
|
|
1547
|
+
.bubble > :first-child {
|
|
1548
|
+
@apply rounded-none border border-transparent px-4 py-3 text-sm leading-relaxed;
|
|
1549
|
+
}
|
|
1550
|
+
.bubble > :is(a, button):first-child {
|
|
1551
|
+
@apply focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
1552
|
+
}
|
|
1553
|
+
.bubble:not([data-variant]) > :first-child,
|
|
1554
|
+
.bubble[data-variant='default'] > :first-child {
|
|
1555
|
+
@apply bg-primary text-primary-foreground;
|
|
1556
|
+
}
|
|
1557
|
+
.bubble:not([data-variant]) > :is(a, button):first-child:hover,
|
|
1558
|
+
.bubble[data-variant='default'] > :is(a, button):first-child:hover {
|
|
1559
|
+
@apply bg-primary/80;
|
|
1560
|
+
}
|
|
1561
|
+
.bubble[data-variant='secondary'] > :first-child {
|
|
1562
|
+
@apply bg-secondary text-secondary-foreground;
|
|
1563
|
+
}
|
|
1564
|
+
.bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
|
|
1565
|
+
@apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
1566
|
+
}
|
|
1567
|
+
.bubble[data-variant='muted'] > :first-child {
|
|
1568
|
+
@apply bg-muted;
|
|
1569
|
+
}
|
|
1570
|
+
.bubble[data-variant='muted'] > :is(a, button):first-child:hover {
|
|
1571
|
+
@apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
1572
|
+
}
|
|
1573
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1574
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
|
|
1575
|
+
}
|
|
1576
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1577
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
|
|
1578
|
+
}
|
|
1579
|
+
/* Keep a tint in browsers without relative colors. */
|
|
1580
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
1581
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1582
|
+
@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)];
|
|
1583
|
+
}
|
|
1584
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1585
|
+
@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)];
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
.bubble[data-variant='outline'] > :first-child {
|
|
1589
|
+
@apply bg-background border-border;
|
|
1590
|
+
}
|
|
1591
|
+
.bubble[data-variant='outline'] > :is(a, button):first-child:hover {
|
|
1592
|
+
@apply bg-muted text-foreground dark:bg-input/30;
|
|
1593
|
+
}
|
|
1594
|
+
.bubble[data-variant='ghost'] {
|
|
1595
|
+
@apply max-w-full border-none;
|
|
1596
|
+
}
|
|
1597
|
+
.bubble[data-variant='ghost'] > :first-child {
|
|
1598
|
+
@apply rounded-none bg-transparent p-0;
|
|
1599
|
+
}
|
|
1600
|
+
.bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
|
|
1601
|
+
@apply bg-muted text-foreground dark:bg-muted/50;
|
|
1602
|
+
}
|
|
1603
|
+
.bubble[data-variant='destructive'] > :first-child {
|
|
1604
|
+
@apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
|
|
1605
|
+
}
|
|
1606
|
+
.bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
|
|
1607
|
+
@apply bg-destructive/20 dark:bg-destructive/30;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.bubble > div:not(:first-child) {
|
|
1611
|
+
@apply rounded-none ring-3 ring-card bg-muted gap-1 px-2 py-0.5 has-[button]:p-0 text-sm;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
.bubble > div:not(:first-child):not([data-side='top']) {
|
|
1615
|
+
@apply bottom-0 translate-y-3/4;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.bubble > div:not(:first-child)[data-side='top'] {
|
|
1619
|
+
@apply top-0 -translate-y-3/4;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
.bubble > div:not(:first-child):not([data-align='start']) {
|
|
1623
|
+
@apply end-3;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.bubble > div:not(:first-child)[data-align='start'] {
|
|
1627
|
+
@apply start-3;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/* Attachment */
|
|
1631
|
+
.attachment {
|
|
1632
|
+
@apply rounded-none w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/30 border bg-card text-card-foreground;
|
|
1633
|
+
}
|
|
1634
|
+
.attachment:has(> a, > button:enabled):hover {
|
|
1635
|
+
@apply bg-muted/50;
|
|
1636
|
+
}
|
|
1637
|
+
.attachment[data-state='error'] {
|
|
1638
|
+
@apply border-destructive/30;
|
|
1639
|
+
}
|
|
1640
|
+
.attachment[data-state='idle'] {
|
|
1641
|
+
@apply border-dashed;
|
|
1642
|
+
}
|
|
1643
|
+
.attachment:not([data-orientation='vertical']) {
|
|
1644
|
+
@apply min-w-40;
|
|
1645
|
+
}
|
|
1646
|
+
.attachment[data-orientation='vertical'] {
|
|
1647
|
+
@apply w-24 has-[>section]:w-30;
|
|
1648
|
+
}
|
|
1649
|
+
.attachment:not([data-size]),
|
|
1650
|
+
.attachment[data-size='default'] {
|
|
1651
|
+
@apply gap-2 text-sm;
|
|
1652
|
+
}
|
|
1653
|
+
.attachment:not([data-size]):has(> section),
|
|
1654
|
+
.attachment[data-size='default']:has(> section) {
|
|
1655
|
+
@apply px-3 py-2.5;
|
|
1656
|
+
}
|
|
1657
|
+
.attachment:not([data-size]):has(> figure),
|
|
1658
|
+
.attachment[data-size='default']:has(> figure) {
|
|
1659
|
+
@apply p-2.5;
|
|
1660
|
+
}
|
|
1661
|
+
.attachment[data-size='sm'] {
|
|
1662
|
+
@apply gap-2.5 text-xs;
|
|
1663
|
+
}
|
|
1664
|
+
.attachment[data-size='sm']:has(> section) {
|
|
1665
|
+
@apply px-2.5 py-2;
|
|
1666
|
+
}
|
|
1667
|
+
.attachment[data-size='sm']:has(> figure) {
|
|
1668
|
+
@apply p-2;
|
|
1669
|
+
}
|
|
1670
|
+
.attachment[data-size='xs'] {
|
|
1671
|
+
@apply gap-1.5 text-xs rounded-none;
|
|
1672
|
+
}
|
|
1673
|
+
.attachment[data-size='xs']:has(> section) {
|
|
1674
|
+
@apply px-2 py-1.5;
|
|
1675
|
+
}
|
|
1676
|
+
.attachment[data-size='xs']:has(> figure) {
|
|
1677
|
+
@apply p-1.5;
|
|
1678
|
+
}
|
|
1679
|
+
.attachment > figure {
|
|
1680
|
+
@apply bg-muted text-foreground w-10 rounded-none;
|
|
1681
|
+
}
|
|
1682
|
+
.attachment[data-size='sm'] > figure {
|
|
1683
|
+
@apply w-8;
|
|
1684
|
+
}
|
|
1685
|
+
.attachment[data-size='xs'] > figure {
|
|
1686
|
+
@apply w-7 rounded-none;
|
|
1687
|
+
}
|
|
1688
|
+
.attachment > figure > svg {
|
|
1689
|
+
@apply size-4;
|
|
1690
|
+
}
|
|
1691
|
+
.attachment[data-size='xs'] > figure > svg {
|
|
1692
|
+
@apply size-3.5;
|
|
1693
|
+
}
|
|
1694
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
1695
|
+
@apply w-full;
|
|
1696
|
+
}
|
|
1697
|
+
.attachment[data-orientation='vertical'] > figure > svg {
|
|
1698
|
+
@apply size-6;
|
|
1699
|
+
}
|
|
1700
|
+
.attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
|
|
1701
|
+
@apply opacity-60;
|
|
1702
|
+
}
|
|
1703
|
+
.attachment[data-state='error'] > figure {
|
|
1704
|
+
@apply bg-destructive/10 text-destructive;
|
|
1705
|
+
}
|
|
1706
|
+
.attachment > section {
|
|
1707
|
+
@apply leading-tight;
|
|
1708
|
+
}
|
|
1709
|
+
.attachment[data-orientation='vertical'] > section {
|
|
1710
|
+
@apply px-1;
|
|
1711
|
+
}
|
|
1712
|
+
.attachment > section > :first-child {
|
|
1713
|
+
@apply font-medium;
|
|
1395
1714
|
}
|
|
1715
|
+
.attachment > section > :not(:first-child) {
|
|
1716
|
+
@apply mt-0.5 text-xs text-muted-foreground;
|
|
1717
|
+
}
|
|
1718
|
+
.attachment[data-state='error'] > section > :not(:first-child) {
|
|
1719
|
+
@apply text-destructive/80;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.attachment[data-orientation='vertical'] > div {
|
|
1723
|
+
@apply top-3 end-3 gap-1;
|
|
1724
|
+
}
|
|
1725
|
+
.attachment-group {
|
|
1726
|
+
@apply gap-3 py-1;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
/* Code Block */
|
|
1731
|
+
.code-block {
|
|
1732
|
+
@apply rounded-none text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-2 has-[>pre:focus-visible]:ring-ring/30;
|
|
1733
|
+
--_code-padding: calc(var(--spacing, 0.25rem) * 4);
|
|
1734
|
+
}
|
|
1735
|
+
.code-block:not([data-variant='destructive']) { @apply border border-input text-foreground dark:bg-input/30 has-[>pre:focus-visible]:border-ring; }
|
|
1736
|
+
.code-block[data-variant='destructive'] { @apply border border-destructive/30 text-destructive dark:border-destructive/40; }
|
|
1737
|
+
.code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 3); }
|
|
1738
|
+
.code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
|
|
1739
|
+
.code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
|
|
1740
|
+
.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; }
|
|
1741
|
+
.code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1742
|
+
.code-block[data-variant='destructive'] > :is(header, footer),
|
|
1743
|
+
.code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
|
|
1744
|
+
.code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
|
|
1745
|
+
.code-block > div { @apply top-3 end-3 gap-1; }
|
|
1746
|
+
.code-block[data-size='sm'] > div { @apply top-2 end-2; }
|
|
1747
|
+
.code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
|
|
1748
|
+
.code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
|
|
1749
|
+
.code-block:has(> header) > pre { @apply pt-2; }
|
|
1750
|
+
.code-block:has(> footer) > pre { @apply pb-2; }
|
|
1751
|
+
.code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
|
|
1752
|
+
.code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
|
|
1753
|
+
.code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
|
|
1754
|
+
|
|
1755
|
+
/* Input OTP */
|
|
1756
|
+
.input-otp > div { @apply gap-2; }
|
|
1757
|
+
.input-otp > div > div { @apply rounded-none gap-1; }
|
|
1758
|
+
.input-otp > div > div > span { @apply border-transparent border-b-input bg-transparent data-[active]:border-b-ring size-10 border text-sm transition-[color,border-color] outline-none first:rounded-none last:rounded-none; }
|
|
1759
|
+
.input-otp > div > svg { @apply size-3.5 shrink-0; }
|
|
1760
|
+
.input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
|
|
1761
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-b-destructive dark:border-b-destructive/50; }
|
|
1396
1762
|
|
|
1397
1763
|
}
|