basecoat-css 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +1 -1
  2. package/dist/base/base.css +1 -0
  3. package/dist/base/scroll-fade.css +41 -0
  4. package/dist/base/transition-details.css +12 -0
  5. package/dist/basecoat-base.bundle.css +767 -119
  6. package/dist/basecoat-base.cdn.css +1924 -673
  7. package/dist/basecoat-base.cdn.min.css +1 -1
  8. package/dist/basecoat-compat.cdn.css +250 -75
  9. package/dist/basecoat-compat.cdn.min.css +1 -1
  10. package/dist/basecoat-components.css +10 -0
  11. package/dist/basecoat-luma.bundle.css +1115 -125
  12. package/dist/basecoat-luma.cdn.css +4649 -2558
  13. package/dist/basecoat-luma.cdn.min.css +1 -1
  14. package/dist/basecoat-lyra.bundle.css +1110 -125
  15. package/dist/basecoat-lyra.cdn.css +5118 -3079
  16. package/dist/basecoat-lyra.cdn.min.css +1 -1
  17. package/dist/basecoat-maia.bundle.css +1113 -125
  18. package/dist/basecoat-maia.cdn.css +5244 -3202
  19. package/dist/basecoat-maia.cdn.min.css +1 -1
  20. package/dist/basecoat-mira.bundle.css +1113 -125
  21. package/dist/basecoat-mira.cdn.css +3623 -1583
  22. package/dist/basecoat-mira.cdn.min.css +1 -1
  23. package/dist/basecoat-nova.bundle.css +1115 -129
  24. package/dist/basecoat-nova.cdn.css +5271 -3229
  25. package/dist/basecoat-nova.cdn.min.css +1 -1
  26. package/dist/basecoat-rhea.bundle.css +1117 -127
  27. package/dist/basecoat-rhea.cdn.css +5286 -3192
  28. package/dist/basecoat-rhea.cdn.min.css +1 -1
  29. package/dist/basecoat-sera.bundle.css +1111 -128
  30. package/dist/basecoat-sera.cdn.css +3280 -1254
  31. package/dist/basecoat-sera.cdn.min.css +1 -1
  32. package/dist/basecoat-vega.bundle.css +1113 -125
  33. package/dist/basecoat-vega.cdn.css +5225 -3180
  34. package/dist/basecoat-vega.cdn.min.css +1 -1
  35. package/dist/basecoat.bundle.css +1113 -125
  36. package/dist/basecoat.cdn.css +5225 -3180
  37. package/dist/basecoat.cdn.min.css +1 -1
  38. package/dist/compat/legacy.css +3 -18
  39. package/dist/components/accordion.css +15 -1
  40. package/dist/components/alert.css +4 -0
  41. package/dist/components/attachment.css +66 -0
  42. package/dist/components/bubble.css +28 -0
  43. package/dist/components/button-group.css +2 -1
  44. package/dist/components/button.css +23 -0
  45. package/dist/components/carousel.css +30 -0
  46. package/dist/components/checkbox.css +5 -1
  47. package/dist/components/code-block.css +80 -0
  48. package/dist/components/collapsible.css +0 -9
  49. package/dist/components/command.css +13 -0
  50. package/dist/components/dialog.css +2 -4
  51. package/dist/components/drawer.css +48 -14
  52. package/dist/components/input-otp.css +49 -0
  53. package/dist/components/item.css +6 -0
  54. package/dist/components/marker.css +20 -0
  55. package/dist/components/message.css +24 -0
  56. package/dist/components/range.css +7 -0
  57. package/dist/components/scrollbar.css +20 -42
  58. package/dist/components/sheet.css +123 -0
  59. package/dist/components/shimmer.css +49 -0
  60. package/dist/components/sidebar.css +9 -1
  61. package/dist/components/toast.css +59 -44
  62. package/dist/components/trace.css +34 -0
  63. package/dist/js/all.js +488 -112
  64. package/dist/js/all.min.js +1 -1
  65. package/dist/js/carousel.js +105 -0
  66. package/dist/js/carousel.min.js +1 -0
  67. package/dist/js/code-block.js +47 -0
  68. package/dist/js/code-block.min.js +1 -0
  69. package/dist/js/drawer.js +6 -2
  70. package/dist/js/drawer.min.js +1 -1
  71. package/dist/js/input-otp.js +76 -0
  72. package/dist/js/input-otp.min.js +1 -0
  73. package/dist/js/tabs.js +31 -58
  74. package/dist/js/tabs.min.js +1 -1
  75. package/dist/js/toast.js +221 -53
  76. package/dist/js/toast.min.js +1 -1
  77. package/dist/styles/luma.css +348 -6
  78. package/dist/styles/lyra.css +343 -6
  79. package/dist/styles/maia.css +346 -6
  80. package/dist/styles/mira.css +346 -6
  81. package/dist/styles/nova.css +348 -10
  82. package/dist/styles/rhea.css +350 -8
  83. package/dist/styles/sera.css +344 -9
  84. package/dist/styles/vega.css +346 -6
  85. package/dist/typeset.cdn.css +381 -0
  86. package/dist/typeset.cdn.min.css +1 -0
  87. package/dist/typeset.css +435 -0
  88. package/package.json +16 -7
  89. package/templates/jinja/tabs.html.jinja +0 -1
  90. package/templates/jinja/toast.html.jinja +29 -26
  91. package/templates/nunjucks/tabs.njk +1 -1
  92. package/templates/nunjucks/toast.njk +30 -27
@@ -27,19 +27,19 @@
27
27
 
28
28
  .btn:not([data-size]),
29
29
  .btn[data-size='default'] {
30
- @apply h-9 gap-1.5 px-3 has-[[data-icon='inline-end']]:pr-2.5 has-[[data-icon='inline-start']]:pl-2.5;
30
+ @apply h-9 gap-1.5 px-3 has-[[data-icon='inline-end']]:pe-2.5 has-[[data-icon='inline-start']]:ps-2.5;
31
31
  }
32
32
 
33
33
  .btn[data-size='xs'] {
34
- @apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
34
+ @apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
35
35
  }
36
36
 
37
37
  .btn[data-size='sm'] {
38
- @apply h-8 gap-1 px-3 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
38
+ @apply h-8 gap-1 px-3 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
39
39
  }
40
40
 
41
41
  .btn[data-size='lg'] {
42
- @apply h-10 gap-1.5 px-4 has-[[data-icon='inline-end']]:pr-3 has-[[data-icon='inline-start']]:pl-3;
42
+ @apply h-10 gap-1.5 px-4 has-[[data-icon='inline-end']]:pe-3 has-[[data-icon='inline-start']]:ps-3;
43
43
  }
44
44
 
45
45
  .btn[data-size='icon'] {
@@ -83,6 +83,13 @@
83
83
  @apply bg-destructive/10 text-destructive hover:bg-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
84
84
  }
85
85
 
86
+ .btn:has(> input:checked) {
87
+ @apply bg-muted text-foreground hover:bg-muted dark:bg-muted dark:hover:bg-muted;
88
+ }
89
+ .btn:has(> input:focus-visible) {
90
+ @apply border-ring ring-ring/30 ring-[3px] dark:border-ring;
91
+ }
92
+
86
93
  /* Button Group */
87
94
  .button-group {
88
95
  @apply has-[>.button-group]:gap-2;
@@ -110,7 +117,7 @@
110
117
  }
111
118
  }
112
119
 
113
- .button-group > :is(span, label, output) {
120
+ .button-group > :is(span, label, output):not(.btn) {
114
121
  @apply bg-muted gap-2 rounded-4xl border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
115
122
  }
116
123
 
@@ -631,6 +638,52 @@
631
638
  @apply text-muted-foreground text-sm;
632
639
  }
633
640
 
641
+ /* Sheet */
642
+ .sheet::backdrop {
643
+ @apply bg-black/30 supports-backdrop-filter:backdrop-blur-sm;
644
+ }
645
+
646
+ .sheet > * {
647
+ @apply bg-popover text-popover-foreground bg-clip-padding text-sm shadow-xl;
648
+ }
649
+
650
+ .sheet[data-side='bottom'] > * {
651
+ @apply border-t;
652
+ }
653
+
654
+ .sheet[data-side='top'] > * {
655
+ @apply border-b;
656
+ }
657
+
658
+ .sheet[data-side='left'] > * {
659
+ @apply border-r;
660
+ }
661
+
662
+ .sheet:not([data-side]) > *,
663
+ .sheet[data-side='right'] > * {
664
+ @apply border-l;
665
+ }
666
+
667
+ .sheet > * > header {
668
+ @apply gap-1.5 p-6;
669
+ }
670
+
671
+ .sheet > * > footer {
672
+ @apply gap-2 p-6;
673
+ }
674
+
675
+ .sheet > * > header > h2 {
676
+ @apply text-foreground text-base font-medium;
677
+ }
678
+
679
+ .sheet > * > header > p {
680
+ @apply text-muted-foreground text-sm;
681
+ }
682
+
683
+ .sheet > * > button:last-child {
684
+ @apply top-4 end-4 bg-secondary;
685
+ }
686
+
634
687
  /* Dropdown Menu */
635
688
  .dropdown-menu > [data-popover] {
636
689
  @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
@@ -704,6 +757,17 @@
704
757
  @apply text-muted-foreground;
705
758
  }
706
759
 
760
+ /* Carousel */
761
+ .carousel > ul > li {
762
+ @apply p-2.5;
763
+ }
764
+ .carousel > button.btn {
765
+ @apply rounded-full;
766
+ }
767
+ .carousel > ul:focus-visible {
768
+ @apply outline-2 outline-ring outline-offset-2;
769
+ }
770
+
707
771
  /* Card */
708
772
  .card {
709
773
  @apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 overflow-hidden rounded-4xl text-sm shadow-md ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-4xl [&>img:last-child]:rounded-b-4xl;
@@ -1082,6 +1146,44 @@
1082
1146
  @apply gap-4 text-sm;
1083
1147
  }
1084
1148
 
1149
+ /* Message */
1150
+ .message-group { @apply gap-2; }
1151
+ .message { @apply gap-2 text-sm; }
1152
+ .message > div:last-child { @apply gap-2.5; }
1153
+ .message > div:last-child > :is(header, footer) {
1154
+ @apply px-3.5 text-xs font-medium text-muted-foreground;
1155
+ }
1156
+ .message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
1157
+ .message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
1158
+
1159
+ /* Trace */
1160
+ .trace { @apply gap-3; }
1161
+ .trace-line { @apply gap-2 text-sm text-muted-foreground; }
1162
+ .trace-line > svg { @apply size-4; }
1163
+ .trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
1164
+ :is(a, button, summary).trace-line {
1165
+ @apply rounded-lg transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/30;
1166
+ }
1167
+ summary.trace-line + div {
1168
+ @apply mt-2.5 mb-1 ms-[calc(--spacing(2)-1px)] border-s ps-4 pe-1 text-muted-foreground leading-relaxed;
1169
+ }
1170
+
1171
+ /* Marker */
1172
+ .marker {
1173
+ @apply min-h-4 gap-2 text-sm text-muted-foreground text-start [&_svg:not([class*='size-'])]:size-4;
1174
+ }
1175
+ .marker[data-variant='border'] {
1176
+ @apply border-b border-border pb-2;
1177
+ }
1178
+ .marker[data-variant='separator']::before,
1179
+ .marker[data-variant='separator']::after {
1180
+ @apply border-border;
1181
+ }
1182
+ .marker[data-variant='separator']::before { @apply me-1; }
1183
+ .marker[data-variant='separator']::after { @apply ms-1; }
1184
+ a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
1185
+ button.marker { @apply hover:text-foreground; }
1186
+
1085
1187
  /* Item */
1086
1188
  .item {
1087
1189
  @apply rounded-2xl border text-sm;
@@ -1352,9 +1454,17 @@
1352
1454
  }
1353
1455
 
1354
1456
  /* Toast */
1355
- .toast-content {
1457
+ .toast {
1356
1458
  @apply bg-popover text-popover-foreground border shadow-lg rounded-2xl;
1357
1459
  }
1460
+ .toast > .toast-content { @apply gap-3 p-4; }
1461
+ .toast > .toast-content > svg { @apply size-4; }
1462
+ .toast > .toast-content > section { @apply gap-1; }
1463
+ .toast > .toast-content > section > h2 { @apply text-sm font-medium; }
1464
+ .toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
1465
+ .toast > .toast-content > footer { @apply gap-3; }
1466
+ .toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
1467
+ .toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
1358
1468
 
1359
1469
  /* Slider */
1360
1470
  .field > input[type='range'],
@@ -1432,4 +1542,236 @@
1432
1542
  @apply ring-4 ring-ring/30 outline-hidden;
1433
1543
  }
1434
1544
 
1545
+
1546
+ /* Bubble */
1547
+ .bubble-group {
1548
+ @apply gap-2;
1549
+ }
1550
+ .bubble {
1551
+ @apply gap-1 max-w-[80%];
1552
+ }
1553
+ .bubble[data-align='end'],
1554
+ .bubble[data-align='end'] > :first-child {
1555
+ @apply self-end;
1556
+ }
1557
+ .bubble > :first-child {
1558
+ @apply rounded-3xl border border-transparent px-3.5 py-2.5 text-sm leading-relaxed;
1559
+ }
1560
+ .bubble > :is(a, button):first-child {
1561
+ @apply focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30;
1562
+ }
1563
+ .bubble:not([data-variant]) > :first-child,
1564
+ .bubble[data-variant='default'] > :first-child {
1565
+ @apply bg-primary text-primary-foreground;
1566
+ }
1567
+ .bubble:not([data-variant]) > :is(a, button):first-child:hover,
1568
+ .bubble[data-variant='default'] > :is(a, button):first-child:hover {
1569
+ @apply bg-primary/80;
1570
+ }
1571
+ .bubble[data-variant='secondary'] > :first-child {
1572
+ @apply bg-secondary text-secondary-foreground;
1573
+ }
1574
+ .bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
1575
+ @apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
1576
+ }
1577
+ .bubble[data-variant='muted'] > :first-child {
1578
+ @apply bg-muted;
1579
+ }
1580
+ .bubble[data-variant='muted'] > :is(a, button):first-child:hover {
1581
+ @apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
1582
+ }
1583
+ .bubble[data-variant='tinted'] > :first-child {
1584
+ @apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
1585
+ }
1586
+ .bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
1587
+ @apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
1588
+ }
1589
+ /* Keep a tint in browsers without relative colors. */
1590
+ @supports (color: oklch(from currentColor l c h)) {
1591
+ .bubble[data-variant='tinted'] > :first-child {
1592
+ @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)];
1593
+ }
1594
+ .bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
1595
+ @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)];
1596
+ }
1597
+ }
1598
+ .bubble[data-variant='outline'] > :first-child {
1599
+ @apply bg-background border-border;
1600
+ }
1601
+ .bubble[data-variant='outline'] > :is(a, button):first-child:hover {
1602
+ @apply bg-muted text-foreground dark:bg-input/30;
1603
+ }
1604
+ .bubble[data-variant='ghost'] {
1605
+ @apply max-w-full border-none;
1606
+ }
1607
+ .bubble[data-variant='ghost'] > :first-child {
1608
+ @apply rounded-none bg-transparent p-0;
1609
+ }
1610
+ .bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
1611
+ @apply bg-muted text-foreground dark:bg-muted/50;
1612
+ }
1613
+ .bubble[data-variant='destructive'] > :first-child {
1614
+ @apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
1615
+ }
1616
+ .bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
1617
+ @apply bg-destructive/20 dark:bg-destructive/30;
1618
+ }
1619
+
1620
+ .bubble > div:not(:first-child) {
1621
+ @apply rounded-full ring-3 ring-card bg-muted gap-1 px-1.5 py-0.5 has-[button]:p-0 text-sm;
1622
+ }
1623
+
1624
+ .bubble > div:not(:first-child):not([data-side='top']) {
1625
+ @apply bottom-0 translate-y-3/4;
1626
+ }
1627
+
1628
+ .bubble > div:not(:first-child)[data-side='top'] {
1629
+ @apply top-0 -translate-y-3/4;
1630
+ }
1631
+
1632
+ .bubble > div:not(:first-child):not([data-align='start']) {
1633
+ @apply end-3;
1634
+ }
1635
+
1636
+ .bubble > div:not(:first-child)[data-align='start'] {
1637
+ @apply start-3;
1638
+ }
1639
+
1640
+ /* Attachment */
1641
+ .attachment {
1642
+ @apply rounded-3xl w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/30 border bg-card text-card-foreground;
1643
+ }
1644
+ .attachment:has(> a, > button:enabled):hover {
1645
+ @apply bg-muted/50;
1646
+ }
1647
+ .attachment[data-state='error'] {
1648
+ @apply border-destructive/30;
1649
+ }
1650
+ .attachment[data-state='idle'] {
1651
+ @apply border-dashed;
1652
+ }
1653
+ .attachment:not([data-orientation='vertical']) {
1654
+ @apply min-w-40;
1655
+ }
1656
+ .attachment[data-orientation='vertical'] {
1657
+ @apply w-24 has-[>section]:w-30;
1658
+ }
1659
+ .attachment:not([data-size]),
1660
+ .attachment[data-size='default'] {
1661
+ @apply gap-2 text-sm;
1662
+ }
1663
+ .attachment:not([data-size]):has(> section),
1664
+ .attachment[data-size='default']:has(> section) {
1665
+ @apply px-2.5 py-2;
1666
+ }
1667
+ .attachment:not([data-size]):has(> figure),
1668
+ .attachment[data-size='default']:has(> figure) {
1669
+ @apply p-2;
1670
+ }
1671
+ .attachment[data-size='sm'] {
1672
+ @apply gap-2.5 text-xs;
1673
+ }
1674
+ .attachment[data-size='sm']:has(> section) {
1675
+ @apply px-2 py-1.5;
1676
+ }
1677
+ .attachment[data-size='sm']:has(> figure) {
1678
+ @apply p-1.5;
1679
+ }
1680
+ .attachment[data-size='xs'] {
1681
+ @apply gap-1.5 text-xs rounded-2xl;
1682
+ }
1683
+ .attachment[data-size='xs']:has(> section) {
1684
+ @apply px-1.5 py-1;
1685
+ }
1686
+ .attachment[data-size='xs']:has(> figure) {
1687
+ @apply p-1;
1688
+ }
1689
+ .attachment > figure {
1690
+ @apply bg-muted text-foreground w-10 rounded-2xl;
1691
+ }
1692
+ .attachment[data-size='sm'] > figure {
1693
+ @apply w-8;
1694
+ }
1695
+ .attachment[data-size='xs'] > figure {
1696
+ @apply w-7 rounded-xl;
1697
+ }
1698
+ .attachment > figure > svg {
1699
+ @apply size-4;
1700
+ }
1701
+ .attachment[data-size='xs'] > figure > svg {
1702
+ @apply size-3.5;
1703
+ }
1704
+ .attachment[data-orientation='vertical'] > figure {
1705
+ @apply w-full;
1706
+ }
1707
+ .attachment[data-orientation='vertical'] > figure > svg {
1708
+ @apply size-6;
1709
+ }
1710
+ .attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
1711
+ @apply opacity-60;
1712
+ }
1713
+ .attachment[data-state='error'] > figure {
1714
+ @apply bg-destructive/10 text-destructive;
1715
+ }
1716
+ .attachment > section {
1717
+ @apply leading-tight;
1718
+ }
1719
+ .attachment[data-orientation='vertical'] > section {
1720
+ @apply px-1;
1721
+ }
1722
+ .attachment > section > :first-child {
1723
+ @apply font-medium;
1724
+ }
1725
+ .attachment > section > :not(:first-child) {
1726
+ @apply mt-0.5 text-xs text-muted-foreground;
1727
+ }
1728
+ .attachment[data-state='error'] > section > :not(:first-child) {
1729
+ @apply text-destructive/80;
1730
+ }
1731
+
1732
+ .attachment[data-orientation='vertical'] > div {
1733
+ @apply top-3 end-3 gap-1;
1734
+ }
1735
+ .attachment-group {
1736
+ @apply gap-3 py-1;
1737
+ }
1738
+
1739
+
1740
+ /* Code Block */
1741
+ .code-block {
1742
+ @apply rounded-2xl text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-3 has-[>pre:focus-visible]:ring-ring/30 data-[size=sm]:rounded-xl;
1743
+ --_code-padding: calc(var(--spacing, 0.25rem) * 5);
1744
+ }
1745
+ .code-block:not([data-variant='destructive']) { @apply bg-muted text-foreground ring-1 ring-foreground/5 dark:ring-foreground/10; }
1746
+ .code-block[data-variant='destructive'] { @apply bg-destructive/5 text-destructive ring-1 ring-destructive/15 dark:bg-destructive/10 dark:ring-destructive/20; }
1747
+ .code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 3); }
1748
+ .code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
1749
+ .code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
1750
+ .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; }
1751
+ .code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
1752
+ .code-block[data-variant='destructive'] > :is(header, footer),
1753
+ .code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
1754
+ .code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
1755
+ .code-block > div { @apply top-4 end-4 gap-1; }
1756
+ .code-block[data-size='sm'] > div { @apply top-2 end-2; }
1757
+ .code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
1758
+ .code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
1759
+ .code-block:has(> header) > pre { @apply pt-2; }
1760
+ .code-block:has(> footer) > pre { @apply pb-2; }
1761
+ .code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
1762
+ .code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
1763
+ .code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
1764
+ .code-block > header > div > button.btn[data-variant='ghost'],
1765
+ .code-block > div > button.btn[data-variant='ghost'] { @apply hover:bg-foreground/5 dark:hover:bg-foreground/10; }
1766
+
1767
+ /* Input OTP */
1768
+ .input-otp > div { @apply gap-2; }
1769
+ .input-otp > div > div { @apply rounded-3xl; }
1770
+ .input-otp > div > div > span { @apply bg-input/50 border-input data-[active]:border-ring data-[active]:ring-ring/30 size-9 border-y border-e text-sm transition-all outline-none first:rounded-s-3xl first:border-s last:rounded-e-3xl data-[active]:ring-3; }
1771
+ .input-otp > div > svg { @apply size-4 shrink-0; }
1772
+ .input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
1773
+ .input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-destructive; }
1774
+ .input-otp:has(> input[aria-invalid='true']) > div > div { @apply ring-3 ring-destructive/20 dark:ring-destructive/40; }
1775
+ .input-otp:has(> input[aria-invalid='true']) > div > div > span[data-active] { @apply border-destructive ring-destructive/20 dark:ring-destructive/40; }
1776
+
1435
1777
  }