basecoat-css 1.0.0-beta.4 → 1.0.0-beta.5

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 (50) hide show
  1. package/dist/base/base.css +1 -1
  2. package/dist/basecoat-base.cdn.css +250 -26
  3. package/dist/basecoat-base.cdn.min.css +1 -1
  4. package/dist/basecoat-components.css +2 -0
  5. package/dist/basecoat-luma.cdn.css +431 -41
  6. package/dist/basecoat-luma.cdn.min.css +1 -1
  7. package/dist/basecoat-lyra.cdn.css +432 -39
  8. package/dist/basecoat-lyra.cdn.min.css +1 -1
  9. package/dist/basecoat-maia.cdn.css +422 -41
  10. package/dist/basecoat-maia.cdn.min.css +1 -1
  11. package/dist/basecoat-mira.cdn.css +419 -41
  12. package/dist/basecoat-mira.cdn.min.css +1 -1
  13. package/dist/basecoat-nova.cdn.css +436 -41
  14. package/dist/basecoat-nova.cdn.min.css +1 -1
  15. package/dist/basecoat-rhea.cdn.css +441 -52
  16. package/dist/basecoat-rhea.cdn.min.css +1 -1
  17. package/dist/basecoat-sera.cdn.css +425 -39
  18. package/dist/basecoat-sera.cdn.min.css +1 -1
  19. package/dist/basecoat-vega.cdn.css +425 -40
  20. package/dist/basecoat-vega.cdn.min.css +1 -1
  21. package/dist/basecoat.cdn.css +425 -40
  22. package/dist/basecoat.cdn.min.css +1 -1
  23. package/dist/components/accordion.css +27 -0
  24. package/dist/components/alert.css +12 -0
  25. package/dist/components/avatar.css +6 -6
  26. package/dist/components/breadcrumb.css +30 -0
  27. package/dist/components/card.css +4 -0
  28. package/dist/components/combobox.css +23 -2
  29. package/dist/components/command.css +19 -12
  30. package/dist/components/dialog.css +30 -1
  31. package/dist/components/dropdown-menu.css +1 -1
  32. package/dist/js/accordion.js +68 -0
  33. package/dist/js/accordion.min.js +1 -0
  34. package/dist/js/all.js +199 -28
  35. package/dist/js/all.min.js +1 -1
  36. package/dist/js/combobox.js +115 -26
  37. package/dist/js/combobox.min.js +1 -1
  38. package/dist/js/command.js +3 -1
  39. package/dist/js/command.min.js +1 -1
  40. package/dist/js/dropdown-menu.js +12 -1
  41. package/dist/js/dropdown-menu.min.js +1 -1
  42. package/dist/styles/luma.css +85 -11
  43. package/dist/styles/lyra.css +81 -11
  44. package/dist/styles/maia.css +85 -11
  45. package/dist/styles/mira.css +85 -11
  46. package/dist/styles/nova.css +83 -13
  47. package/dist/styles/rhea.css +89 -15
  48. package/dist/styles/sera.css +80 -10
  49. package/dist/styles/vega.css +82 -12
  50. package/package.json +1 -1
@@ -12,7 +12,6 @@
12
12
  --spacing: 0.25rem;
13
13
  --container-xs: 20rem;
14
14
  --container-sm: 24rem;
15
- --container-lg: 32rem;
16
15
  --text-xs: 0.75rem;
17
16
  --text-xs--line-height: calc(1 / 0.75);
18
17
  --text-sm: 0.875rem;
@@ -24,6 +23,7 @@
24
23
  --leading-snug: 1.375;
25
24
  --leading-normal: 1.5;
26
25
  --leading-relaxed: 1.625;
26
+ --radius-sm: calc(var(--radius) - 4px);
27
27
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
28
28
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
29
29
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
@@ -257,7 +257,7 @@
257
257
  --foreground: oklch(0.985 0 0);
258
258
  --card: oklch(0.205 0 0);
259
259
  --card-foreground: oklch(0.985 0 0);
260
- --popover: oklch(0.269 0 0);
260
+ --popover: oklch(0.205 0 0);
261
261
  --popover-foreground: oklch(0.985 0 0);
262
262
  --primary: oklch(0.922 0 0);
263
263
  --primary-foreground: oklch(0.205 0 0);
@@ -308,6 +308,48 @@
308
308
  -moz-osx-font-smoothing: grayscale;
309
309
  }
310
310
  }
311
+ @layer components {
312
+ .accordion {
313
+ display: flex;
314
+ width: 100%;
315
+ flex-direction: column;
316
+ }
317
+ .accordion > details > summary {
318
+ position: relative;
319
+ display: flex;
320
+ width: 100%;
321
+ flex: 1;
322
+ cursor: pointer;
323
+ list-style-type: none;
324
+ align-items: flex-start;
325
+ justify-content: space-between;
326
+ border-style: var(--tw-border-style);
327
+ border-width: 1px;
328
+ border-color: transparent;
329
+ transition-property: all;
330
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
331
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
332
+ --tw-outline-style: none;
333
+ outline-style: none;
334
+ }
335
+ .accordion > details > summary > svg:last-child {
336
+ pointer-events: none;
337
+ flex-shrink: 0;
338
+ transition-property: transform, translate, scale, rotate;
339
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
340
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
341
+ }
342
+ .accordion > details[open] > summary > svg:last-child {
343
+ rotate: 180deg;
344
+ }
345
+ .accordion > details[aria-disabled='true'] > summary, .accordion > details > summary[aria-disabled='true'] {
346
+ pointer-events: none;
347
+ opacity: 50%;
348
+ }
349
+ .accordion > details > :not(summary) {
350
+ overflow: hidden;
351
+ }
352
+ }
311
353
  @layer components {
312
354
  .alert {
313
355
  position: relative;
@@ -323,10 +365,20 @@
323
365
  display: grid;
324
366
  justify-items: start;
325
367
  gap: calc(var(--spacing) * 1);
368
+ :where(p, ul, ol) {
369
+ margin: calc(var(--spacing) * 0);
370
+ }
371
+ :where(p, ul, ol):not(:last-child) {
372
+ margin-bottom: calc(var(--spacing) * 4);
373
+ }
326
374
  ul {
327
375
  list-style-position: inside;
328
376
  list-style-type: disc;
329
377
  }
378
+ ol {
379
+ list-style-position: inside;
380
+ list-style-type: decimal;
381
+ }
330
382
  }
331
383
  .alert > footer {
332
384
  position: absolute;
@@ -398,7 +450,7 @@
398
450
  border-radius: inherit;
399
451
  object-fit: cover;
400
452
  }
401
- .avatar > span:not([data-badge]) {
453
+ .avatar > span:not(.avatar-badge) {
402
454
  display: flex;
403
455
  width: 100%;
404
456
  height: 100%;
@@ -408,11 +460,11 @@
408
460
  font-size: var(--text-sm);
409
461
  line-height: var(--tw-leading, var(--text-sm--line-height));
410
462
  }
411
- .avatar[data-size='sm'] > span:not([data-badge]) {
463
+ .avatar[data-size='sm'] > span:not(.avatar-badge) {
412
464
  font-size: var(--text-xs);
413
465
  line-height: var(--tw-leading, var(--text-xs--line-height));
414
466
  }
415
- .avatar > [data-badge] {
467
+ .avatar > .avatar-badge {
416
468
  position: absolute;
417
469
  inset-inline-end: calc(var(--spacing) * 0);
418
470
  bottom: calc(var(--spacing) * 0);
@@ -427,14 +479,14 @@
427
479
  -webkit-user-select: none;
428
480
  user-select: none;
429
481
  }
430
- .avatar[data-size='sm'] > [data-badge] {
482
+ .avatar[data-size='sm'] > .avatar-badge {
431
483
  width: calc(var(--spacing) * 2);
432
484
  height: calc(var(--spacing) * 2);
433
485
  &>svg {
434
486
  display: none;
435
487
  }
436
488
  }
437
- .avatar > [data-badge] {
489
+ .avatar > .avatar-badge {
438
490
  width: calc(var(--spacing) * 2.5);
439
491
  height: calc(var(--spacing) * 2.5);
440
492
  &>svg {
@@ -442,7 +494,7 @@
442
494
  height: calc(var(--spacing) * 2);
443
495
  }
444
496
  }
445
- .avatar[data-size='lg'] > [data-badge] {
497
+ .avatar[data-size='lg'] > .avatar-badge {
446
498
  width: calc(var(--spacing) * 3);
447
499
  height: calc(var(--spacing) * 3);
448
500
  &>svg {
@@ -515,6 +567,53 @@
515
567
  }
516
568
  }
517
569
  }
570
+ @layer components {
571
+ .breadcrumb > ol {
572
+ margin: calc(var(--spacing) * 0);
573
+ display: flex;
574
+ list-style-type: none;
575
+ flex-wrap: wrap;
576
+ align-items: center;
577
+ padding: calc(var(--spacing) * 0);
578
+ overflow-wrap: break-word;
579
+ }
580
+ .breadcrumb li {
581
+ display: inline-flex;
582
+ align-items: center;
583
+ }
584
+ .breadcrumb a {
585
+ border-radius: var(--radius-sm);
586
+ --tw-outline-style: none;
587
+ outline-style: none;
588
+ &:focus-visible {
589
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
590
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
591
+ }
592
+ &:focus-visible {
593
+ --tw-ring-color: var(--color-ring);
594
+ @supports (color: color-mix(in lab, red, red)) {
595
+ --tw-ring-color: color-mix(in oklab, var(--color-ring) 50%, transparent);
596
+ }
597
+ }
598
+ }
599
+ .breadcrumb [aria-current='page'] {
600
+ cursor: default;
601
+ }
602
+ .breadcrumb li[aria-hidden='true'] {
603
+ -webkit-user-select: none;
604
+ user-select: none;
605
+ }
606
+ .breadcrumb li > span[aria-hidden='true'] {
607
+ display: flex;
608
+ align-items: center;
609
+ justify-content: center;
610
+ }
611
+ .breadcrumb [data-rtl-flip] {
612
+ &:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
613
+ rotate: 180deg;
614
+ }
615
+ }
616
+ }
518
617
  @layer components {
519
618
  .btn {
520
619
  display: inline-flex;
@@ -639,6 +738,11 @@
639
738
  align-self: flex-start;
640
739
  justify-self: flex-end;
641
740
  }
741
+ > header > menu.card-action {
742
+ margin: calc(var(--spacing) * 0);
743
+ list-style-type: none;
744
+ padding: calc(var(--spacing) * 0);
745
+ }
642
746
  > footer {
643
747
  display: flex;
644
748
  align-items: center;
@@ -784,7 +888,7 @@
784
888
  &::backdrop {
785
889
  opacity: 100%;
786
890
  }
787
- > * {
891
+ > .command {
788
892
  --tw-scale-x: 100%;
789
893
  --tw-scale-y: 100%;
790
894
  --tw-scale-z: 100%;
@@ -795,7 +899,7 @@
795
899
  &::backdrop {
796
900
  opacity: 0%;
797
901
  }
798
- > * {
902
+ > .command {
799
903
  --tw-scale-x: 95%;
800
904
  --tw-scale-y: 95%;
801
905
  --tw-scale-z: 95%;
@@ -810,7 +914,7 @@
810
914
  transition-duration: var(--tw-duration, var(--default-transition-duration));
811
915
  transition-behavior: allow-discrete;
812
916
  }
813
- > * {
917
+ > .command {
814
918
  position: fixed;
815
919
  top: calc(1/3 * 100%);
816
920
  left: calc(1/2 * 100%);
@@ -832,13 +936,13 @@
832
936
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
833
937
  transition-duration: var(--tw-duration, var(--default-transition-duration));
834
938
  @media (width >= 40rem) {
835
- max-width: var(--container-lg);
939
+ max-width: var(--container-sm);
836
940
  }
837
941
  }
838
- > * > :is(button, form[method='dialog']) {
942
+ > .command > :is(button, form[method='dialog']) {
839
943
  position: absolute;
840
944
  }
841
- > * > :is(button, form[method='dialog'] > button) {
945
+ > .command > :is(button, form[method='dialog'] > button) {
842
946
  display: inline-flex;
843
947
  align-items: center;
844
948
  justify-content: center;
@@ -869,7 +973,7 @@
869
973
  flex-shrink: 0;
870
974
  }
871
975
  }
872
- > * > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
976
+ > .command > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
873
977
  width: calc(var(--spacing) * 4);
874
978
  height: calc(var(--spacing) * 4);
875
979
  }
@@ -912,6 +1016,10 @@
912
1016
  outline: 2px solid transparent;
913
1017
  outline-offset: 2px;
914
1018
  }
1019
+ scrollbar-width: none;
1020
+ &::-webkit-scrollbar {
1021
+ display: none;
1022
+ }
915
1023
  }
916
1024
  .command [role='menuitem'] {
917
1025
  position: relative;
@@ -919,9 +1027,6 @@
919
1027
  width: 100%;
920
1028
  cursor: default;
921
1029
  align-items: center;
922
- overflow: hidden;
923
- text-overflow: ellipsis;
924
- white-space: nowrap;
925
1030
  --tw-outline-style: none;
926
1031
  outline-style: none;
927
1032
  @media (forced-colors: active) {
@@ -945,6 +1050,12 @@
945
1050
  &[aria-hidden="true"] {
946
1051
  display: none;
947
1052
  }
1053
+ &[data-disabled="true"] {
1054
+ pointer-events: none;
1055
+ }
1056
+ &[data-disabled="true"] {
1057
+ opacity: 50%;
1058
+ }
948
1059
  & svg {
949
1060
  pointer-events: none;
950
1061
  }
@@ -952,9 +1063,9 @@
952
1063
  flex-shrink: 0;
953
1064
  }
954
1065
  }
955
- .command [role='menuitem'].active {
956
- background-color: var(--color-accent);
957
- color: var(--color-accent-foreground);
1066
+ .command [role='menuitem'].active, .command [role='menuitem'][data-selected='true'] {
1067
+ background-color: var(--color-muted);
1068
+ color: var(--color-foreground);
958
1069
  }
959
1070
  .command [role='group'] {
960
1071
  overflow: hidden;
@@ -976,7 +1087,7 @@
976
1087
  margin-inline-start: auto;
977
1088
  opacity: 0%;
978
1089
  }
979
- .command [role='menuitem'][data-checked='true'] [data-indicator], .command [role='menuitem'][aria-selected='true'] [data-indicator] {
1090
+ .command [role='menuitem'][data-checked='true'] [data-indicator], .command [role='menuitem'][aria-selected='true'] [data-indicator], .command [role='menuitem'][data-selected='true'] [data-indicator] {
980
1091
  opacity: 100%;
981
1092
  }
982
1093
  .command [role='menuitem']:has([data-shortcut]) [data-indicator] {
@@ -999,8 +1110,8 @@
999
1110
  content: var(--tw-content);
1000
1111
  }
1001
1112
  .command:not([data-command-initialized]) [role='menuitem']:not([aria-disabled='true']):not(:disabled):hover {
1002
- background-color: var(--color-accent);
1003
- color: var(--color-accent-foreground);
1113
+ background-color: var(--color-muted);
1114
+ color: var(--color-foreground);
1004
1115
  }
1005
1116
  .command:has(> header input:not(:placeholder-shown)) [role='separator'] {
1006
1117
  display: none;
@@ -1035,17 +1146,69 @@
1035
1146
  opacity: 50%;
1036
1147
  }
1037
1148
  }
1149
+ .combobox .input-group input[role='combobox'], .combobox [data-popover] input[role='combobox'] {
1150
+ min-width: calc(var(--spacing) * 0);
1151
+ --tw-outline-style: none;
1152
+ outline-style: none;
1153
+ @media (forced-colors: active) {
1154
+ outline: 2px solid transparent;
1155
+ outline-offset: 2px;
1156
+ }
1157
+ &::placeholder {
1158
+ color: var(--color-muted-foreground);
1159
+ }
1160
+ &:disabled {
1161
+ pointer-events: none;
1162
+ }
1163
+ &:disabled {
1164
+ cursor: not-allowed;
1165
+ }
1166
+ &:disabled {
1167
+ opacity: 50%;
1168
+ }
1169
+ }
1038
1170
  .combobox > svg, .combobox-trigger-icon {
1039
1171
  pointer-events: none;
1040
1172
  position: absolute;
1041
1173
  flex-shrink: 0;
1042
1174
  }
1175
+ .combobox:has(> .combobox-chips) > .combobox-trigger-icon {
1176
+ display: none;
1177
+ }
1178
+ .combobox [data-clear] {
1179
+ display: inline-flex;
1180
+ width: calc(var(--spacing) * 6);
1181
+ height: calc(var(--spacing) * 6);
1182
+ flex-shrink: 0;
1183
+ cursor: default;
1184
+ appearance: none;
1185
+ align-items: center;
1186
+ justify-content: center;
1187
+ border-style: var(--tw-border-style);
1188
+ border-width: 0px;
1189
+ background-color: transparent;
1190
+ padding: calc(var(--spacing) * 0);
1191
+ color: currentcolor;
1192
+ &:disabled {
1193
+ pointer-events: none;
1194
+ }
1195
+ &:disabled {
1196
+ opacity: 50%;
1197
+ }
1198
+ }
1199
+ .combobox [data-clear][hidden] {
1200
+ display: none;
1201
+ }
1202
+ .combobox .input-group:has([data-clear]:not([hidden])) button[aria-haspopup='listbox'] {
1203
+ display: none;
1204
+ }
1043
1205
  .combobox [data-popover] {
1044
1206
  isolation: isolate;
1045
1207
  overflow: hidden;
1046
1208
  min-width: max(100%, 9rem);
1047
1209
  }
1048
1210
  .combobox [role='listbox'] {
1211
+ overflow-x: hidden;
1049
1212
  overflow-y: auto;
1050
1213
  --tw-outline-style: none;
1051
1214
  outline-style: none;
@@ -1168,12 +1331,13 @@
1168
1331
  }
1169
1332
  .combobox-chip-remove {
1170
1333
  display: inline-flex;
1334
+ flex-shrink: 0;
1171
1335
  align-items: center;
1172
1336
  justify-content: center;
1173
1337
  }
1174
1338
  }
1175
1339
  @layer components {
1176
- .dialog {
1340
+ .dialog, .alert-dialog {
1177
1341
  background-color: transparent;
1178
1342
  padding: calc(var(--spacing) * 0);
1179
1343
  color: inherit;
@@ -1245,6 +1409,8 @@
1245
1409
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1246
1410
  transition-duration: var(--tw-duration, var(--default-transition-duration));
1247
1411
  }
1412
+ }
1413
+ .dialog {
1248
1414
  > * > header {
1249
1415
  display: flex;
1250
1416
  flex-direction: column;
@@ -1301,6 +1467,64 @@
1301
1467
  height: calc(var(--spacing) * 4);
1302
1468
  }
1303
1469
  }
1470
+ .alert-dialog {
1471
+ > * > header {
1472
+ display: grid;
1473
+ grid-template-rows: auto 1fr;
1474
+ place-items: center;
1475
+ text-align: center;
1476
+ @media (width >= 40rem) {
1477
+ place-items: start;
1478
+ }
1479
+ @media (width >= 40rem) {
1480
+ text-align: start;
1481
+ }
1482
+ }
1483
+ > * > header:has(> figure) {
1484
+ grid-template-rows: auto auto 1fr;
1485
+ @media (width >= 40rem) {
1486
+ grid-template-rows: auto 1fr;
1487
+ }
1488
+ }
1489
+ > * > header > figure {
1490
+ margin: calc(var(--spacing) * 0);
1491
+ flex-shrink: 0;
1492
+ @media (width >= 40rem) {
1493
+ grid-row: span 2 / span 2;
1494
+ }
1495
+ & svg {
1496
+ pointer-events: none;
1497
+ }
1498
+ & svg {
1499
+ flex-shrink: 0;
1500
+ }
1501
+ }
1502
+ > * > header > figure:has(img) {
1503
+ overflow: hidden;
1504
+ & img {
1505
+ width: 100%;
1506
+ height: 100%;
1507
+ }
1508
+ & img {
1509
+ object-fit: cover;
1510
+ }
1511
+ }
1512
+ > * > header:has(> figure) > :is(h2, p) {
1513
+ @media (width >= 40rem) {
1514
+ grid-column-start: 2;
1515
+ }
1516
+ }
1517
+ > * > footer {
1518
+ display: flex;
1519
+ flex-direction: column-reverse;
1520
+ @media (width >= 40rem) {
1521
+ flex-direction: row;
1522
+ }
1523
+ @media (width >= 40rem) {
1524
+ justify-content: flex-end;
1525
+ }
1526
+ }
1527
+ }
1304
1528
  }
1305
1529
  @layer components {
1306
1530
  .dropdown-menu {
@@ -1373,7 +1597,7 @@
1373
1597
  padding-inline-start: calc(var(--spacing) * 8);
1374
1598
  }
1375
1599
  .dropdown-menu :is(kbd:last-child, .kbd:last-child):not([data-shortcut]) {
1376
- margin-inline-start: calc(var(--spacing) * 8);
1600
+ padding-inline-start: calc(var(--spacing) * 8);
1377
1601
  }
1378
1602
  .dropdown-menu [data-indicator] {
1379
1603
  pointer-events: none;
@@ -3067,6 +3291,51 @@
3067
3291
  }
3068
3292
  }
3069
3293
  @layer components {
3294
+ .accordion > details {
3295
+ &:not(*:last-child) {
3296
+ border-bottom-style: var(--tw-border-style);
3297
+ border-bottom-width: 1px;
3298
+ }
3299
+ }
3300
+ .accordion > details > summary {
3301
+ border-radius: 0;
3302
+ padding-block: calc(var(--spacing) * 2.5);
3303
+ text-align: left;
3304
+ font-size: var(--text-xs);
3305
+ line-height: var(--tw-leading, var(--text-xs--line-height));
3306
+ --tw-font-weight: var(--font-weight-medium);
3307
+ font-weight: var(--font-weight-medium);
3308
+ &:hover {
3309
+ @media (hover: hover) {
3310
+ text-decoration-line: underline;
3311
+ }
3312
+ }
3313
+ &:focus-visible {
3314
+ border-color: var(--color-ring);
3315
+ }
3316
+ &:focus-visible {
3317
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
3318
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3319
+ }
3320
+ &:focus-visible {
3321
+ --tw-ring-color: var(--color-ring);
3322
+ @supports (color: color-mix(in lab, red, red)) {
3323
+ --tw-ring-color: color-mix(in oklab, var(--color-ring) 50%, transparent);
3324
+ }
3325
+ }
3326
+ }
3327
+ .accordion > details > summary > svg:last-child {
3328
+ margin-inline-start: auto;
3329
+ width: calc(var(--spacing) * 4);
3330
+ height: calc(var(--spacing) * 4);
3331
+ color: var(--color-muted-foreground);
3332
+ }
3333
+ .accordion > details > :not(summary) {
3334
+ padding-top: calc(var(--spacing) * 0);
3335
+ padding-bottom: calc(var(--spacing) * 2.5);
3336
+ font-size: var(--text-xs);
3337
+ line-height: var(--tw-leading, var(--text-xs--line-height));
3338
+ }
3070
3339
  .btn {
3071
3340
  border-radius: 0;
3072
3341
  border-style: var(--tw-border-style);
@@ -3959,7 +4228,7 @@
3959
4228
  width: calc(var(--spacing) * 10);
3960
4229
  height: calc(var(--spacing) * 10);
3961
4230
  }
3962
- .avatar > span:not([data-badge]) {
4231
+ .avatar > span:not(.avatar-badge) {
3963
4232
  border-radius: inherit;
3964
4233
  background-color: var(--color-muted);
3965
4234
  color: var(--color-muted-foreground);
@@ -3967,7 +4236,7 @@
3967
4236
  .avatar > img {
3968
4237
  border-radius: inherit;
3969
4238
  }
3970
- .avatar > [data-badge] {
4239
+ .avatar > .avatar-badge {
3971
4240
  background-color: var(--color-primary);
3972
4241
  color: var(--color-primary-foreground);
3973
4242
  --tw-ring-color: var(--color-background);
@@ -4136,18 +4405,63 @@
4136
4405
  }
4137
4406
  }
4138
4407
  }
4408
+ .breadcrumb > ol {
4409
+ gap: calc(var(--spacing) * 1.5);
4410
+ font-size: var(--text-xs);
4411
+ line-height: var(--tw-leading, var(--text-xs--line-height));
4412
+ color: var(--color-muted-foreground);
4413
+ }
4414
+ .breadcrumb li {
4415
+ gap: calc(var(--spacing) * 1);
4416
+ }
4417
+ .breadcrumb a {
4418
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
4419
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
4420
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
4421
+ &:hover {
4422
+ @media (hover: hover) {
4423
+ color: var(--color-foreground);
4424
+ }
4425
+ }
4426
+ }
4427
+ .breadcrumb [aria-current='page'] {
4428
+ --tw-font-weight: var(--font-weight-normal);
4429
+ font-weight: var(--font-weight-normal);
4430
+ color: var(--color-foreground);
4431
+ }
4432
+ .breadcrumb li[aria-hidden='true'] > svg {
4433
+ width: calc(var(--spacing) * 3.5);
4434
+ height: calc(var(--spacing) * 3.5);
4435
+ }
4436
+ .breadcrumb li > span[aria-hidden='true'] {
4437
+ width: calc(var(--spacing) * 5);
4438
+ height: calc(var(--spacing) * 5);
4439
+ &>svg {
4440
+ width: calc(var(--spacing) * 4);
4441
+ height: calc(var(--spacing) * 4);
4442
+ }
4443
+ }
4139
4444
  .command {
4140
4445
  border-radius: 0;
4141
4446
  background-color: var(--color-popover);
4142
4447
  color: var(--color-popover-foreground);
4143
4448
  }
4144
- .command-dialog > * {
4449
+ .command-dialog > .command {
4145
4450
  border-radius: 0;
4146
- padding: calc(var(--spacing) * 0);
4451
+ background-color: var(--color-popover);
4452
+ color: var(--color-popover-foreground);
4453
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
4454
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4455
+ --tw-ring-color: var(--color-foreground);
4456
+ @supports (color: color-mix(in lab, red, red)) {
4457
+ --tw-ring-color: color-mix(in oklab, var(--color-foreground) 10%, transparent);
4458
+ }
4459
+ --tw-duration: 100ms;
4460
+ transition-duration: 100ms;
4147
4461
  }
4148
4462
  .command > header {
4149
4463
  height: calc(var(--spacing) * 8);
4150
- gap: calc(var(--spacing) * 2);
4464
+ gap: calc(var(--spacing) * 0);
4151
4465
  border-bottom-style: var(--tw-border-style);
4152
4466
  border-bottom-width: 1px;
4153
4467
  background-color: var(--color-input);
@@ -4162,7 +4476,7 @@
4162
4476
  opacity: 50%;
4163
4477
  }
4164
4478
  .command > header input {
4165
- height: 100%;
4479
+ padding-inline-start: calc(var(--spacing) * 1.5);
4166
4480
  font-size: var(--text-xs);
4167
4481
  line-height: var(--tw-leading, var(--text-xs--line-height));
4168
4482
  &::placeholder {
@@ -4207,10 +4521,10 @@
4207
4521
  }
4208
4522
  }
4209
4523
  .command [role='menuitem'].active {
4210
- background-color: var(--color-accent);
4211
- color: var(--color-accent-foreground);
4524
+ background-color: var(--color-muted);
4525
+ color: var(--color-foreground);
4212
4526
  & svg {
4213
- color: var(--color-accent-foreground);
4527
+ color: var(--color-foreground);
4214
4528
  }
4215
4529
  }
4216
4530
  .command [data-shortcut] {
@@ -4251,6 +4565,12 @@
4251
4565
  --tw-ring-color: color-mix(in oklab, var(--color-ring) 50%, transparent);
4252
4566
  }
4253
4567
  }
4568
+ &:disabled {
4569
+ background-color: var(--color-input);
4570
+ @supports (color: color-mix(in lab, red, red)) {
4571
+ background-color: color-mix(in oklab, var(--color-input) 50%, transparent);
4572
+ }
4573
+ }
4254
4574
  &[aria-invalid="true"] {
4255
4575
  border-color: var(--color-destructive);
4256
4576
  }
@@ -4270,6 +4590,14 @@
4270
4590
  background-color: color-mix(in oklab, var(--color-input) 30%, transparent);
4271
4591
  }
4272
4592
  }
4593
+ &:is(.dark *) {
4594
+ &:disabled {
4595
+ background-color: var(--color-input);
4596
+ @supports (color: color-mix(in lab, red, red)) {
4597
+ background-color: color-mix(in oklab, var(--color-input) 80%, transparent);
4598
+ }
4599
+ }
4600
+ }
4273
4601
  &:is(.dark *) {
4274
4602
  &[aria-invalid="true"] {
4275
4603
  border-color: var(--color-destructive);
@@ -4446,6 +4774,10 @@
4446
4774
  height: calc(var(--spacing) * 3.5);
4447
4775
  }
4448
4776
  }
4777
+ .combobox [data-popover] > :is(input[role='combobox'], .input-group) {
4778
+ margin-bottom: calc(var(--spacing) * 1);
4779
+ width: 100%;
4780
+ }
4449
4781
  *:not(select).select > button {
4450
4782
  height: calc(var(--spacing) * 8);
4451
4783
  gap: calc(var(--spacing) * 1.5);
@@ -4596,7 +4928,7 @@
4596
4928
  height: 1px;
4597
4929
  background-color: var(--color-border);
4598
4930
  }
4599
- .dialog::backdrop, .command-dialog::backdrop {
4931
+ .dialog::backdrop, .alert-dialog::backdrop, .command-dialog::backdrop {
4600
4932
  background-color: color-mix(in srgb, #000 10%, transparent);
4601
4933
  @supports (color: color-mix(in lab, red, red)) {
4602
4934
  background-color: color-mix(in oklab, var(--color-black) 10%, transparent);
@@ -4607,6 +4939,25 @@
4607
4939
  --tw-duration: 100ms;
4608
4940
  transition-duration: 100ms;
4609
4941
  }
4942
+ .alert-dialog > * {
4943
+ max-width: var(--container-xs);
4944
+ gap: calc(var(--spacing) * 4);
4945
+ border-radius: 0;
4946
+ background-color: var(--color-popover);
4947
+ padding: calc(var(--spacing) * 4);
4948
+ color: var(--color-popover-foreground);
4949
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
4950
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4951
+ --tw-ring-color: var(--color-foreground);
4952
+ @supports (color: color-mix(in lab, red, red)) {
4953
+ --tw-ring-color: color-mix(in oklab, var(--color-foreground) 10%, transparent);
4954
+ }
4955
+ --tw-duration: 100ms;
4956
+ transition-duration: 100ms;
4957
+ @media (width >= 40rem) {
4958
+ max-width: var(--container-sm);
4959
+ }
4960
+ }
4610
4961
  .dialog > * {
4611
4962
  max-width: calc(100% - 2rem);
4612
4963
  gap: calc(var(--spacing) * 4);
@@ -4636,7 +4987,25 @@
4636
4987
  gap: calc(var(--spacing) * 1);
4637
4988
  text-align: start;
4638
4989
  }
4639
- .dialog > * > footer {
4990
+ .alert-dialog > * > header {
4991
+ column-gap: calc(var(--spacing) * 4);
4992
+ row-gap: calc(var(--spacing) * 1.5);
4993
+ }
4994
+ .alert-dialog > * > header > figure {
4995
+ margin-bottom: calc(var(--spacing) * 2);
4996
+ display: inline-flex;
4997
+ width: calc(var(--spacing) * 10);
4998
+ height: calc(var(--spacing) * 10);
4999
+ align-items: center;
5000
+ justify-content: center;
5001
+ border-radius: 0;
5002
+ background-color: var(--color-muted);
5003
+ &>svg:not([class*='size-']) {
5004
+ width: calc(var(--spacing) * 6);
5005
+ height: calc(var(--spacing) * 6);
5006
+ }
5007
+ }
5008
+ .alert-dialog > * > footer, .dialog > * > footer {
4640
5009
  gap: calc(var(--spacing) * 2);
4641
5010
  }
4642
5011
  .dialog > * > header > h2, .dialog > * > [data-title] {
@@ -4645,6 +5014,12 @@
4645
5014
  --tw-font-weight: var(--font-weight-medium);
4646
5015
  font-weight: var(--font-weight-medium);
4647
5016
  }
5017
+ .alert-dialog > * > header > h2, .alert-dialog > * > [data-title] {
5018
+ font-size: var(--text-sm);
5019
+ line-height: var(--tw-leading, var(--text-sm--line-height));
5020
+ --tw-font-weight: var(--font-weight-medium);
5021
+ font-weight: var(--font-weight-medium);
5022
+ }
4648
5023
  .dialog > * > header > p, .dialog > * > [data-description] {
4649
5024
  font-size: var(--text-xs);
4650
5025
  line-height: var(--leading-relaxed);
@@ -4659,6 +5034,24 @@
4659
5034
  color: var(--color-foreground);
4660
5035
  }
4661
5036
  }
5037
+ .alert-dialog > * > header > p, .alert-dialog > * > [data-description] {
5038
+ font-size: var(--text-xs);
5039
+ line-height: var(--leading-relaxed);
5040
+ text-wrap: balance;
5041
+ color: var(--color-muted-foreground);
5042
+ @media (width >= 48rem) {
5043
+ text-wrap: pretty;
5044
+ }
5045
+ & a {
5046
+ text-decoration-line: underline;
5047
+ }
5048
+ & a {
5049
+ text-underline-offset: 3px;
5050
+ }
5051
+ & a:hover {
5052
+ color: var(--color-foreground);
5053
+ }
5054
+ }
4662
5055
  .dropdown-menu > [data-popover] {
4663
5056
  gap: calc(var(--spacing) * 0);
4664
5057
  overflow-x: hidden;
@@ -4742,7 +5135,7 @@
4742
5135
  height: 1px;
4743
5136
  background-color: var(--color-border);
4744
5137
  }
4745
- .dropdown-menu :is([data-shortcut], kbd:last-child) {
5138
+ .dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
4746
5139
  font-family: var(--font-sans);
4747
5140
  font-size: var(--text-xs);
4748
5141
  line-height: var(--tw-leading, var(--text-xs--line-height));
@@ -4750,7 +5143,7 @@
4750
5143
  letter-spacing: var(--tracking-widest);
4751
5144
  color: var(--color-muted-foreground);
4752
5145
  }
4753
- .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
5146
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
4754
5147
  color: var(--color-accent-foreground);
4755
5148
  }
4756
5149
  [data-popover] {