@casinogate/ui 1.3.7 → 1.5.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 (136) hide show
  1. package/README.md +4 -9
  2. package/dist/assets/css/root.css +428 -21
  3. package/dist/assets/css/theme.css +38 -0
  4. package/dist/components/badge/badge.stories.svelte +81 -0
  5. package/dist/components/badge/badge.stories.svelte.d.ts +19 -0
  6. package/dist/components/badge/badge.svelte +30 -0
  7. package/dist/components/badge/badge.svelte.d.ts +4 -0
  8. package/dist/components/badge/exports.d.ts +1 -0
  9. package/dist/components/badge/exports.js +1 -0
  10. package/dist/components/badge/index.d.ts +2 -0
  11. package/dist/components/badge/index.js +1 -0
  12. package/dist/components/badge/styles.d.ts +99 -0
  13. package/dist/components/badge/styles.js +126 -0
  14. package/dist/components/badge/types.d.ts +8 -0
  15. package/dist/components/badge/types.js +1 -0
  16. package/dist/components/breadcrumb/breadcrumb.stories.svelte +60 -0
  17. package/dist/components/breadcrumb/breadcrumb.stories.svelte.d.ts +19 -0
  18. package/dist/components/breadcrumb/breadcrumb.svelte +32 -0
  19. package/dist/components/breadcrumb/breadcrumb.svelte.d.ts +4 -0
  20. package/dist/components/breadcrumb/components/breadcrumb.item.svelte +16 -0
  21. package/dist/components/breadcrumb/components/breadcrumb.item.svelte.d.ts +4 -0
  22. package/dist/components/breadcrumb/components/breadcrumb.link.svelte +29 -0
  23. package/dist/components/breadcrumb/components/breadcrumb.link.svelte.d.ts +4 -0
  24. package/dist/components/breadcrumb/components/breadcrumb.list.svelte +16 -0
  25. package/dist/components/breadcrumb/components/breadcrumb.list.svelte.d.ts +4 -0
  26. package/dist/components/breadcrumb/components/breadcrumb.page.svelte +19 -0
  27. package/dist/components/breadcrumb/components/breadcrumb.page.svelte.d.ts +4 -0
  28. package/dist/components/breadcrumb/components/breadcrumb.root.svelte +22 -0
  29. package/dist/components/breadcrumb/components/breadcrumb.root.svelte.d.ts +4 -0
  30. package/dist/components/breadcrumb/components/breadcrumb.separator.svelte +24 -0
  31. package/dist/components/breadcrumb/components/breadcrumb.separator.svelte.d.ts +4 -0
  32. package/dist/components/breadcrumb/exports-primitive.d.ts +6 -0
  33. package/dist/components/breadcrumb/exports-primitive.js +6 -0
  34. package/dist/components/breadcrumb/exports.d.ts +1 -0
  35. package/dist/components/breadcrumb/exports.js +1 -0
  36. package/dist/components/breadcrumb/index.d.ts +3 -0
  37. package/dist/components/breadcrumb/index.js +2 -0
  38. package/dist/components/breadcrumb/styles.d.ts +62 -0
  39. package/dist/components/breadcrumb/styles.js +18 -0
  40. package/dist/components/breadcrumb/types.d.ts +19 -0
  41. package/dist/components/breadcrumb/types.js +1 -0
  42. package/dist/components/collapsible/components/collapsaible.svelte.d.ts +11 -0
  43. package/dist/components/collapsible/components/collapsaible.svelte.js +16 -0
  44. package/dist/components/collapsible/components/collapsaible.trigger.svelte +17 -5
  45. package/dist/components/collapsible/types.d.ts +5 -2
  46. package/dist/components/icons/caret-down.svelte +3 -3
  47. package/dist/components/icons/caret-up.svelte +3 -3
  48. package/dist/components/icons/check.svelte +3 -3
  49. package/dist/components/icons/checkmark.svelte +12 -0
  50. package/dist/components/icons/checkmark.svelte.d.ts +3 -0
  51. package/dist/components/icons/chevron-down.svelte +3 -3
  52. package/dist/components/icons/chevron-left.svelte +3 -3
  53. package/dist/components/icons/chevron-right.svelte +3 -3
  54. package/dist/components/icons/chevron-small-down.svelte +3 -3
  55. package/dist/components/icons/chevron-small-left.svelte +3 -3
  56. package/dist/components/icons/chevron-small-right.svelte +3 -3
  57. package/dist/components/icons/chevron-small-up.svelte +3 -3
  58. package/dist/components/icons/chevron-up.svelte +3 -3
  59. package/dist/components/icons/dots.svelte +5 -5
  60. package/dist/components/icons/error.svelte +3 -3
  61. package/dist/components/icons/exports.d.ts +2 -0
  62. package/dist/components/icons/exports.js +2 -0
  63. package/dist/components/icons/eye-crossed.svelte +3 -3
  64. package/dist/components/icons/eye.svelte +3 -3
  65. package/dist/components/icons/info.svelte +3 -3
  66. package/dist/components/icons/minus.svelte +3 -3
  67. package/dist/components/icons/sidebar-toggle.svelte +4 -4
  68. package/dist/components/icons/slash.svelte +9 -0
  69. package/dist/components/icons/slash.svelte.d.ts +3 -0
  70. package/dist/components/icons/sort.svelte +4 -4
  71. package/dist/components/icons/spinner.svelte +3 -3
  72. package/dist/components/icons/success.svelte +3 -3
  73. package/dist/components/icons/warning.svelte +3 -3
  74. package/dist/components/index.d.ts +2 -0
  75. package/dist/components/index.js +2 -0
  76. package/dist/components/navigation/components/navigation.content.svelte +2 -2
  77. package/dist/components/navigation/components/navigation.root.svelte +3 -1
  78. package/dist/components/navigation/components/navigation.root.svelte.d.ts +1 -1
  79. package/dist/components/navigation/components/navigation.sub-content.svelte +12 -5
  80. package/dist/components/navigation/components/navigation.svelte.d.ts +8 -2
  81. package/dist/components/navigation/components/navigation.svelte.js +8 -4
  82. package/dist/components/navigation/components/navigation.trigger.svelte +83 -25
  83. package/dist/components/navigation/exports.d.ts +1 -1
  84. package/dist/components/navigation/exports.js +1 -1
  85. package/dist/components/navigation/index.d.ts +2 -2
  86. package/dist/components/navigation/index.js +1 -1
  87. package/dist/components/navigation/navigation.stories.svelte +34 -20
  88. package/dist/components/navigation/navigation.stories.svelte.d.ts +1 -0
  89. package/dist/components/navigation/navigation.svelte +35 -2
  90. package/dist/components/navigation/navigation.svelte.d.ts +3 -17
  91. package/dist/components/navigation/styles.d.ts +3 -3
  92. package/dist/components/navigation/styles.js +5 -4
  93. package/dist/components/navigation/types.d.ts +35 -4
  94. package/dist/components/popover/styles.d.ts +3 -3
  95. package/dist/components/popover/styles.js +1 -1
  96. package/dist/components/select/components/select.content.svelte +31 -0
  97. package/dist/components/select/components/select.content.svelte.d.ts +3 -25
  98. package/dist/components/select/components/select.group-heading.svelte +19 -0
  99. package/dist/components/select/components/select.group-heading.svelte.d.ts +4 -0
  100. package/dist/components/select/components/select.group.svelte +8 -0
  101. package/dist/components/select/components/select.group.svelte.d.ts +4 -0
  102. package/dist/components/select/components/select.item.svelte +38 -0
  103. package/dist/components/select/components/select.item.svelte.d.ts +3 -25
  104. package/dist/components/select/components/select.portal.svelte +10 -0
  105. package/dist/components/select/components/select.portal.svelte.d.ts +3 -0
  106. package/dist/components/select/components/select.trigger.svelte +28 -27
  107. package/dist/components/select/components/select.viewport.svelte +24 -0
  108. package/dist/components/select/components/select.viewport.svelte.d.ts +3 -25
  109. package/dist/components/select/exports-primitive.d.ts +6 -0
  110. package/dist/components/select/exports-primitive.js +6 -0
  111. package/dist/components/select/exports.d.ts +1 -0
  112. package/dist/components/select/exports.js +1 -0
  113. package/dist/components/select/index.d.ts +2 -1
  114. package/dist/components/select/index.js +1 -0
  115. package/dist/components/select/select.stories.svelte +178 -15
  116. package/dist/components/select/select.stories.svelte.d.ts +3 -17
  117. package/dist/components/select/select.svelte +141 -0
  118. package/dist/components/select/select.svelte.d.ts +4 -0
  119. package/dist/components/select/styles.d.ts +15 -3
  120. package/dist/components/select/styles.js +24 -8
  121. package/dist/components/select/types.d.ts +42 -4
  122. package/dist/components/textarea/exports.d.ts +1 -0
  123. package/dist/components/textarea/exports.js +1 -0
  124. package/dist/components/textarea/index.d.ts +2 -0
  125. package/dist/components/textarea/index.js +1 -0
  126. package/dist/components/textarea/styles.d.ts +54 -0
  127. package/dist/components/textarea/styles.js +39 -0
  128. package/dist/components/textarea/textarea.stories.svelte +36 -0
  129. package/dist/components/textarea/textarea.stories.svelte.d.ts +19 -0
  130. package/dist/components/textarea/textarea.svelte +22 -0
  131. package/dist/components/textarea/textarea.svelte.d.ts +4 -0
  132. package/dist/components/textarea/types.d.ts +6 -0
  133. package/dist/components/textarea/types.js +1 -0
  134. package/dist/internal/types/html-attributes.d.ts +2 -1
  135. package/dist/internal/utils/tailwindcss.js +16 -0
  136. package/package.json +2 -1
@@ -212,6 +212,12 @@
212
212
  .cgui\:left-1\/2 {
213
213
  left: calc(1/2 * 100%);
214
214
  }
215
+ .cgui\:z-\(--cg-ui-z-index-popover\) {
216
+ z-index: var(--cg-ui-z-index-popover);
217
+ }
218
+ .cgui\:z-\(--cg-ui-z-index-select\) {
219
+ z-index: var(--cg-ui-z-index-select);
220
+ }
215
221
  .cgui\:z-1 {
216
222
  z-index: 1;
217
223
  }
@@ -303,6 +309,9 @@
303
309
  .cgui\:h-\(--app-shell-header-height\) {
304
310
  height: var(--app-shell-header-height);
305
311
  }
312
+ .cgui\:h-\(--bits-select-anchor-height\) {
313
+ height: var(--bits-select-anchor-height);
314
+ }
306
315
  .cgui\:h-3 {
307
316
  height: calc(var(--cgui-spacing) * 3);
308
317
  }
@@ -360,6 +369,9 @@
360
369
  .cgui\:h-full {
361
370
  height: 100%;
362
371
  }
372
+ .cgui\:max-h-\(--bits-select-content-available-height\) {
373
+ max-height: var(--bits-select-content-available-height);
374
+ }
363
375
  .cgui\:min-h-7\.5 {
364
376
  min-height: calc(var(--cgui-spacing) * 7.5);
365
377
  }
@@ -372,6 +384,9 @@
372
384
  .cgui\:w-\(--app-shell-sidebar-width\) {
373
385
  width: var(--app-shell-sidebar-width);
374
386
  }
387
+ .cgui\:w-0 {
388
+ width: calc(var(--cgui-spacing) * 0);
389
+ }
375
390
  .cgui\:w-1\.5 {
376
391
  width: calc(var(--cgui-spacing) * 1.5);
377
392
  }
@@ -429,6 +444,12 @@
429
444
  .cgui\:max-w-100 {
430
445
  max-width: calc(var(--cgui-spacing) * 100);
431
446
  }
447
+ .cgui\:min-w-\(--bits-select-anchor-width\) {
448
+ min-width: var(--bits-select-anchor-width);
449
+ }
450
+ .cgui\:min-w-0 {
451
+ min-width: calc(var(--cgui-spacing) * 0);
452
+ }
432
453
  .cgui\:min-w-42 {
433
454
  min-width: calc(var(--cgui-spacing) * 42);
434
455
  }
@@ -447,6 +468,9 @@
447
468
  .cgui\:grow {
448
469
  flex-grow: 1;
449
470
  }
471
+ .cgui\:origin-\(--bits-select-content-transform-origin\) {
472
+ transform-origin: var(--bits-select-content-transform-origin);
473
+ }
450
474
  .cgui\:-translate-x-1\/2 {
451
475
  --tw-translate-x: calc(calc(1/2 * 100%) * -1);
452
476
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -459,6 +483,9 @@
459
483
  --tw-scale-x: calc(1 * -1);
460
484
  scale: var(--tw-scale-x) var(--tw-scale-y);
461
485
  }
486
+ .cgui\:rotate-180 {
487
+ rotate: 180deg;
488
+ }
462
489
  .cgui\:animate-pulse {
463
490
  animation: var(--cgui-animate-pulse);
464
491
  }
@@ -468,12 +495,27 @@
468
495
  .cgui\:cursor-col-resize {
469
496
  cursor: col-resize;
470
497
  }
498
+ .cgui\:cursor-default {
499
+ cursor: default;
500
+ }
501
+ .cgui\:cursor-not-allowed {
502
+ cursor: not-allowed;
503
+ }
471
504
  .cgui\:cursor-pointer {
472
505
  cursor: pointer;
473
506
  }
474
507
  .cgui\:touch-none {
475
508
  touch-action: none;
476
509
  }
510
+ .cgui\:resize-none {
511
+ resize: none;
512
+ }
513
+ .cgui\:resize-y {
514
+ resize: vertical;
515
+ }
516
+ .cgui\:scroll-my-1 {
517
+ scroll-margin-block: calc(var(--cgui-spacing) * 1);
518
+ }
477
519
  .cgui\:flex-col {
478
520
  flex-direction: column;
479
521
  }
@@ -501,9 +543,6 @@
501
543
  .cgui\:justify-end {
502
544
  justify-content: flex-end;
503
545
  }
504
- .cgui\:justify-start {
505
- justify-content: flex-start;
506
- }
507
546
  .cgui\:gap-1 {
508
547
  gap: calc(var(--cgui-spacing) * 1);
509
548
  }
@@ -539,12 +578,20 @@
539
578
  .cgui\:self-stretch {
540
579
  align-self: stretch;
541
580
  }
581
+ .cgui\:truncate {
582
+ overflow: hidden;
583
+ text-overflow: ellipsis;
584
+ white-space: nowrap;
585
+ }
542
586
  .cgui\:overflow-auto {
543
587
  overflow: auto;
544
588
  }
545
589
  .cgui\:overflow-hidden {
546
590
  overflow: hidden;
547
591
  }
592
+ .cgui\:overflow-x-hidden {
593
+ overflow-x: hidden;
594
+ }
548
595
  .cgui\:overflow-y-auto {
549
596
  overflow-y: auto;
550
597
  }
@@ -604,6 +651,9 @@
604
651
  .cgui\:border-stroke-divider {
605
652
  border-color: var(--cg-ui-palette-neutral-20);
606
653
  }
654
+ .cgui\:border-stroke-error {
655
+ border-color: var(--cg-ui-palette-system-error-100);
656
+ }
607
657
  .cgui\:border-stroke-primary {
608
658
  border-color: var(--cg-ui-palette-primary-80);
609
659
  }
@@ -646,6 +696,30 @@
646
696
  .cgui\:bg-primary-80 {
647
697
  background-color: var(--cg-ui-palette-primary-80);
648
698
  }
699
+ .cgui\:bg-state-error {
700
+ background-color: var(--cg-ui-palette-system-error-100);
701
+ }
702
+ .cgui\:bg-state-error-light {
703
+ background-color: var(--cg-ui-palette-system-error-10);
704
+ }
705
+ .cgui\:bg-state-info {
706
+ background-color: var(--cg-ui-palette-system-info-100);
707
+ }
708
+ .cgui\:bg-state-info-light {
709
+ background-color: var(--cg-ui-palette-system-info-10);
710
+ }
711
+ .cgui\:bg-state-success {
712
+ background-color: var(--cg-ui-palette-system-success-100);
713
+ }
714
+ .cgui\:bg-state-success-light {
715
+ background-color: var(--cg-ui-palette-system-success-10);
716
+ }
717
+ .cgui\:bg-state-warning {
718
+ background-color: var(--cg-ui-palette-system-warning-100);
719
+ }
720
+ .cgui\:bg-state-warning-light {
721
+ background-color: var(--cg-ui-palette-system-warning-10);
722
+ }
649
723
  .cgui\:bg-stroke-divider {
650
724
  background-color: var(--cg-ui-palette-neutral-20);
651
725
  }
@@ -655,6 +729,12 @@
655
729
  .cgui\:bg-surface-light {
656
730
  background-color: var(--cg-ui-palette-neutral-20);
657
731
  }
732
+ .cgui\:bg-surface-light\/50 {
733
+ background-color: var(--cg-ui-palette-neutral-20);
734
+ @supports (color: color-mix(in lab, red, red)) {
735
+ background-color: color-mix(in oklab, var(--cg-ui-palette-neutral-20) 50%, transparent);
736
+ }
737
+ }
658
738
  .cgui\:bg-surface-lightest {
659
739
  background-color: var(--cg-ui-palette-neutral-10);
660
740
  }
@@ -715,6 +795,9 @@
715
795
  .cgui\:p-4 {
716
796
  padding: calc(var(--cgui-spacing) * 4);
717
797
  }
798
+ .cgui\:px-1\.5 {
799
+ padding-inline: calc(var(--cgui-spacing) * 1.5);
800
+ }
718
801
  .cgui\:px-2 {
719
802
  padding-inline: calc(var(--cgui-spacing) * 2);
720
803
  }
@@ -724,12 +807,18 @@
724
807
  .cgui\:px-3 {
725
808
  padding-inline: calc(var(--cgui-spacing) * 3);
726
809
  }
810
+ .cgui\:px-3\.5 {
811
+ padding-inline: calc(var(--cgui-spacing) * 3.5);
812
+ }
727
813
  .cgui\:px-4 {
728
814
  padding-inline: calc(var(--cgui-spacing) * 4);
729
815
  }
730
816
  .cgui\:px-6 {
731
817
  padding-inline: calc(var(--cgui-spacing) * 6);
732
818
  }
819
+ .cgui\:py-0\.5 {
820
+ padding-block: calc(var(--cgui-spacing) * 0.5);
821
+ }
733
822
  .cgui\:py-1 {
734
823
  padding-block: calc(var(--cgui-spacing) * 1);
735
824
  }
@@ -800,6 +889,10 @@
800
889
  font-size: var(--cg-ui-fz-caption-2);
801
890
  line-height: var(--tw-leading, var(--cg-ui-lh-caption-2));
802
891
  }
892
+ .cgui\:text-heading-2 {
893
+ font-size: var(--cg-ui-fz-heading-2);
894
+ line-height: var(--tw-leading, var(--cg-ui-lh-heading-2));
895
+ }
803
896
  .cgui\:text-sm {
804
897
  font-size: var(--cgui-text-sm);
805
898
  line-height: var(--tw-leading, var(--cgui-text-sm--line-height));
@@ -837,6 +930,12 @@
837
930
  .cgui\:text-fg-semilight {
838
931
  color: var(--cg-ui-palette-neutral-40);
839
932
  }
933
+ .cgui\:text-fg-success {
934
+ color: var(--cg-ui-palette-system-success-100);
935
+ }
936
+ .cgui\:text-fg-warning {
937
+ color: var(--cg-ui-palette-system-warning-100);
938
+ }
840
939
  .cgui\:text-fg-white {
841
940
  color: var(--cg-ui-palette-neutral-0);
842
941
  }
@@ -867,6 +966,9 @@
867
966
  .cgui\:underline {
868
967
  text-decoration-line: underline;
869
968
  }
969
+ .cgui\:opacity-0 {
970
+ opacity: 0%;
971
+ }
870
972
  .cgui\:opacity-50 {
871
973
  opacity: 50%;
872
974
  }
@@ -882,13 +984,30 @@
882
984
  --tw-shadow: var(--cg-ui-shadow-segment-item);
883
985
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
884
986
  }
987
+ .cgui\:shadow-select {
988
+ --tw-shadow: var(--cg-ui-shadow-select);
989
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
990
+ }
885
991
  .cgui\:shadow-toast {
886
992
  --tw-shadow: var(--cg-ui-shadow-toast);
887
993
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
888
994
  }
995
+ .cgui\:outline-hidden {
996
+ --tw-outline-style: none;
997
+ outline-style: none;
998
+ @media (forced-colors: active) {
999
+ outline: 2px solid transparent;
1000
+ outline-offset: 2px;
1001
+ }
1002
+ }
889
1003
  .cgui\:outline-stroke-focus {
890
1004
  outline-color: var(--cg-ui-palette-primary-60);
891
1005
  }
1006
+ .cgui\:transition-\[opacity\] {
1007
+ transition-property: opacity;
1008
+ transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
1009
+ transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
1010
+ }
892
1011
  .cgui\:transition-all {
893
1012
  transition-property: all;
894
1013
  transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
@@ -922,12 +1041,24 @@
922
1041
  .cgui\:scrollbar-thumb-rounded-full {
923
1042
  --scrollbar-thumb-radius: 9999px;
924
1043
  }
1044
+ .cgui\:scrollbar-thumb-rounded-md {
1045
+ --scrollbar-thumb-radius: calc(var(--cg-ui-number-md) * 1px);
1046
+ }
925
1047
  .cgui\:scrollbar-thumb-surface-regular {
926
1048
  --scrollbar-thumb: var(--cg-ui-palette-neutral-50);
927
1049
  }
1050
+ .cgui\:scrollbar-thumb-surface-regular\/40 {
1051
+ --scrollbar-thumb: var(--cg-ui-palette-neutral-50);
1052
+ @supports (color: color-mix(in lab, red, red)) {
1053
+ --scrollbar-thumb: color-mix(in oklab, var(--cg-ui-palette-neutral-50) 40%, transparent);
1054
+ }
1055
+ }
928
1056
  .cgui\:scrollbar-track-rounded-full {
929
1057
  --scrollbar-track-radius: 9999px;
930
1058
  }
1059
+ .cgui\:scrollbar-track-rounded-md {
1060
+ --scrollbar-track-radius: calc(var(--cg-ui-number-md) * 1px);
1061
+ }
931
1062
  .cgui\:scrollbar-track-surface-lightest {
932
1063
  --scrollbar-track: var(--cg-ui-palette-neutral-10);
933
1064
  }
@@ -970,6 +1101,11 @@
970
1101
  padding-block: calc(var(--cgui-spacing) * 3);
971
1102
  }
972
1103
  }
1104
+ .cgui\:group-data-\[state\=open\]\/select-trigger\:-rotate-180 {
1105
+ &:is(:where(.cgui\:group\/select-trigger)[data-state="open"] *) {
1106
+ rotate: calc(180deg * -1);
1107
+ }
1108
+ }
973
1109
  .cgui\:placeholder\:text-fg-regular {
974
1110
  &::placeholder {
975
1111
  color: var(--cg-ui-palette-neutral-50);
@@ -1062,6 +1198,13 @@
1062
1198
  }
1063
1199
  }
1064
1200
  }
1201
+ .cgui\:hover\:text-fg-darkest {
1202
+ &:hover {
1203
+ @media (hover: hover) {
1204
+ color: var(--cg-ui-palette-neutral-100);
1205
+ }
1206
+ }
1207
+ }
1065
1208
  .cgui\:hover\:text-primary-60 {
1066
1209
  &:hover {
1067
1210
  @media (hover: hover) {
@@ -1278,38 +1421,60 @@
1278
1421
  color: var(--cg-ui-palette-primary-80);
1279
1422
  }
1280
1423
  }
1281
- .cgui\:data-\[slot\=end-chevron\]\:right-0 {
1282
- &[data-slot="end-chevron"] {
1283
- right: calc(var(--cgui-spacing) * 0);
1424
+ .cgui\:data-\[side\=bottom\]\:translate-y-1 {
1425
+ &[data-side="bottom"] {
1426
+ --tw-translate-y: calc(var(--cgui-spacing) * 1);
1427
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1284
1428
  }
1285
1429
  }
1286
- .cgui\:data-\[slot\=end-chevron\]\:right-2 {
1287
- &[data-slot="end-chevron"] {
1288
- right: calc(var(--cgui-spacing) * 2);
1430
+ .cgui\:data-\[side\=bottom\]\:slide-in-from-top-2 {
1431
+ &[data-side="bottom"] {
1432
+ --tw-enter-translate-y: calc(2*var(--spacing)*-1);
1289
1433
  }
1290
1434
  }
1291
- .cgui\:data-\[slot\=end-chevron\]\:-translate-x-1\/2 {
1292
- &[data-slot="end-chevron"] {
1293
- --tw-translate-x: calc(calc(1/2 * 100%) * -1);
1435
+ .cgui\:data-\[side\=left\]\:-translate-x-1 {
1436
+ &[data-side="left"] {
1437
+ --tw-translate-x: calc(var(--cgui-spacing) * -1);
1294
1438
  translate: var(--tw-translate-x) var(--tw-translate-y);
1295
1439
  }
1296
1440
  }
1297
- .cgui\:data-\[slot\=start-chevron\]\:left-0 {
1298
- &[data-slot="start-chevron"] {
1299
- left: calc(var(--cgui-spacing) * 0);
1441
+ .cgui\:data-\[side\=left\]\:slide-in-from-right-2 {
1442
+ &[data-side="left"] {
1443
+ --tw-enter-translate-x: calc(2*var(--spacing));
1300
1444
  }
1301
1445
  }
1302
- .cgui\:data-\[slot\=start-chevron\]\:left-2 {
1303
- &[data-slot="start-chevron"] {
1304
- left: calc(var(--cgui-spacing) * 2);
1446
+ .cgui\:data-\[side\=right\]\:translate-x-1 {
1447
+ &[data-side="right"] {
1448
+ --tw-translate-x: calc(var(--cgui-spacing) * 1);
1449
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1305
1450
  }
1306
1451
  }
1307
- .cgui\:data-\[slot\=start-chevron\]\:translate-x-1\/2 {
1308
- &[data-slot="start-chevron"] {
1309
- --tw-translate-x: calc(1/2 * 100%);
1452
+ .cgui\:data-\[side\=right\]\:slide-in-from-left-2 {
1453
+ &[data-side="right"] {
1454
+ --tw-enter-translate-x: calc(2*var(--spacing)*-1);
1455
+ }
1456
+ }
1457
+ .cgui\:data-\[side\=top\]\:-translate-y-1 {
1458
+ &[data-side="top"] {
1459
+ --tw-translate-y: calc(var(--cgui-spacing) * -1);
1310
1460
  translate: var(--tw-translate-x) var(--tw-translate-y);
1311
1461
  }
1312
1462
  }
1463
+ .cgui\:data-\[side\=top\]\:slide-in-from-bottom-2 {
1464
+ &[data-side="top"] {
1465
+ --tw-enter-translate-y: calc(2*var(--spacing));
1466
+ }
1467
+ }
1468
+ .cgui\:data-\[slot\=end-chevron\]\:right-2 {
1469
+ &[data-slot="end-chevron"] {
1470
+ right: calc(var(--cgui-spacing) * 2);
1471
+ }
1472
+ }
1473
+ .cgui\:data-\[slot\=start-chevron\]\:left-2 {
1474
+ &[data-slot="start-chevron"] {
1475
+ left: calc(var(--cgui-spacing) * 2);
1476
+ }
1477
+ }
1313
1478
  .cgui\:data-\[start-chevron\]\:left-2\.5 {
1314
1479
  &[data-start-chevron] {
1315
1480
  left: calc(var(--cgui-spacing) * 2.5);
@@ -1368,11 +1533,66 @@
1368
1533
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1369
1534
  }
1370
1535
  }
1536
+ .cgui\:data-\[state\=closed\]\:animate-out {
1537
+ &[data-state="closed"] {
1538
+ animation: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
1539
+ }
1540
+ }
1541
+ .cgui\:data-\[state\=closed\]\:fade-out-0 {
1542
+ &[data-state="closed"] {
1543
+ --tw-exit-opacity: calc(0/100);
1544
+ --tw-exit-opacity: 0;
1545
+ }
1546
+ }
1547
+ .cgui\:data-\[state\=closed\]\:zoom-out-95 {
1548
+ &[data-state="closed"] {
1549
+ --tw-exit-scale: calc(95*1%);
1550
+ --tw-exit-scale: .95;
1551
+ }
1552
+ }
1371
1553
  .cgui\:data-\[state\=indeterminate\]\:border-surface-primary {
1372
1554
  &[data-state="indeterminate"] {
1373
1555
  border-color: var(--cg-ui-palette-primary-80);
1374
1556
  }
1375
1557
  }
1558
+ .cgui\:data-\[state\=open\]\:animate-in {
1559
+ &[data-state="open"] {
1560
+ animation: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
1561
+ }
1562
+ }
1563
+ .cgui\:data-\[state\=open\]\:fade-in-0 {
1564
+ &[data-state="open"] {
1565
+ --tw-enter-opacity: calc(0/100);
1566
+ --tw-enter-opacity: 0;
1567
+ }
1568
+ }
1569
+ .cgui\:data-\[state\=open\]\:zoom-in-95 {
1570
+ &[data-state="open"] {
1571
+ --tw-enter-scale: calc(95*1%);
1572
+ --tw-enter-scale: .95;
1573
+ }
1574
+ }
1575
+ .cgui\:data-\[sub-content\=\"false\"\]\:group-data-\[compact\=true\]\/navigation\:justify-center {
1576
+ &[data-sub-content="false"] {
1577
+ &:is(:where(.cgui\:group\/navigation)[data-compact="true"] *) {
1578
+ justify-content: center;
1579
+ }
1580
+ }
1581
+ }
1582
+ .cgui\:scrollbar-hover\:scrollbar-thumb-surface-regular\/60 {
1583
+ &::-webkit-scrollbar-thumb:hover {
1584
+ --scrollbar-thumb: var(--cg-ui-palette-neutral-50);
1585
+ @supports (color: color-mix(in lab, red, red)) {
1586
+ --scrollbar-thumb: color-mix(in oklab, var(--cg-ui-palette-neutral-50) 60%, transparent);
1587
+ }
1588
+ }
1589
+ }
1590
+ .cgui\:\[\&_\[data-slot\=\"icon\"\]\]\:size-6 {
1591
+ & [data-slot="icon"] {
1592
+ width: calc(var(--cgui-spacing) * 6);
1593
+ height: calc(var(--cgui-spacing) * 6);
1594
+ }
1595
+ }
1376
1596
  .cgui\:data-\[compact\=false\]\:\[\&_\[data-slot\=\"trigger\"\]\]\:pl-0 {
1377
1597
  &[data-compact="false"] {
1378
1598
  & [data-slot="trigger"] {
@@ -1441,6 +1661,16 @@
1441
1661
  }
1442
1662
  }
1443
1663
  }
1664
+ .cgui\:\[\&_svg\]\:pointer-events-none {
1665
+ & svg {
1666
+ pointer-events: none;
1667
+ }
1668
+ }
1669
+ .cgui\:\[\&_svg\]\:shrink-0 {
1670
+ & svg {
1671
+ flex-shrink: 0;
1672
+ }
1673
+ }
1444
1674
  .cgui\:\[\&_tr\]\:h-10 {
1445
1675
  & tr {
1446
1676
  height: calc(var(--cgui-spacing) * 10);
@@ -1530,6 +1760,131 @@
1530
1760
  flex: 1;
1531
1761
  }
1532
1762
  }
1763
+ .cgui\:\[\&\>svg\]\:pointer-events-none {
1764
+ &>svg {
1765
+ pointer-events: none;
1766
+ }
1767
+ }
1768
+ .cgui\:\[\&\>svg\]\:size-3\.5 {
1769
+ &>svg {
1770
+ width: calc(var(--cgui-spacing) * 3.5);
1771
+ height: calc(var(--cgui-spacing) * 3.5);
1772
+ }
1773
+ }
1774
+ .cgui\:\[\&\>svg\]\:size-5 {
1775
+ &>svg {
1776
+ width: calc(var(--cgui-spacing) * 5);
1777
+ height: calc(var(--cgui-spacing) * 5);
1778
+ }
1779
+ }
1780
+ .cgui\:\[\&\>svg\]\:size-5\.5 {
1781
+ &>svg {
1782
+ width: calc(var(--cgui-spacing) * 5.5);
1783
+ height: calc(var(--cgui-spacing) * 5.5);
1784
+ }
1785
+ }
1786
+ .cgui\:\[\&\>svg\]\:size-6 {
1787
+ &>svg {
1788
+ width: calc(var(--cgui-spacing) * 6);
1789
+ height: calc(var(--cgui-spacing) * 6);
1790
+ }
1791
+ }
1792
+ .cgui\:\[\&\>svg\]\:size-6\.5 {
1793
+ &>svg {
1794
+ width: calc(var(--cgui-spacing) * 6.5);
1795
+ height: calc(var(--cgui-spacing) * 6.5);
1796
+ }
1797
+ }
1798
+ .cgui\:\[\&\>svg\]\:size-7 {
1799
+ &>svg {
1800
+ width: calc(var(--cgui-spacing) * 7);
1801
+ height: calc(var(--cgui-spacing) * 7);
1802
+ }
1803
+ }
1804
+ }
1805
+ @property --tw-animation-delay {
1806
+ syntax: "*";
1807
+ inherits: false;
1808
+ initial-value: 0s;
1809
+ }
1810
+ @property --tw-animation-direction {
1811
+ syntax: "*";
1812
+ inherits: false;
1813
+ initial-value: normal;
1814
+ }
1815
+ @property --tw-animation-duration {
1816
+ syntax: "*";
1817
+ inherits: false;
1818
+ }
1819
+ @property --tw-animation-fill-mode {
1820
+ syntax: "*";
1821
+ inherits: false;
1822
+ initial-value: none;
1823
+ }
1824
+ @property --tw-animation-iteration-count {
1825
+ syntax: "*";
1826
+ inherits: false;
1827
+ initial-value: 1;
1828
+ }
1829
+ @property --tw-enter-blur {
1830
+ syntax: "*";
1831
+ inherits: false;
1832
+ initial-value: 0;
1833
+ }
1834
+ @property --tw-enter-opacity {
1835
+ syntax: "*";
1836
+ inherits: false;
1837
+ initial-value: 1;
1838
+ }
1839
+ @property --tw-enter-rotate {
1840
+ syntax: "*";
1841
+ inherits: false;
1842
+ initial-value: 0;
1843
+ }
1844
+ @property --tw-enter-scale {
1845
+ syntax: "*";
1846
+ inherits: false;
1847
+ initial-value: 1;
1848
+ }
1849
+ @property --tw-enter-translate-x {
1850
+ syntax: "*";
1851
+ inherits: false;
1852
+ initial-value: 0;
1853
+ }
1854
+ @property --tw-enter-translate-y {
1855
+ syntax: "*";
1856
+ inherits: false;
1857
+ initial-value: 0;
1858
+ }
1859
+ @property --tw-exit-blur {
1860
+ syntax: "*";
1861
+ inherits: false;
1862
+ initial-value: 0;
1863
+ }
1864
+ @property --tw-exit-opacity {
1865
+ syntax: "*";
1866
+ inherits: false;
1867
+ initial-value: 1;
1868
+ }
1869
+ @property --tw-exit-rotate {
1870
+ syntax: "*";
1871
+ inherits: false;
1872
+ initial-value: 0;
1873
+ }
1874
+ @property --tw-exit-scale {
1875
+ syntax: "*";
1876
+ inherits: false;
1877
+ initial-value: 1;
1878
+ }
1879
+ @property --tw-exit-translate-x {
1880
+ syntax: "*";
1881
+ inherits: false;
1882
+ initial-value: 0;
1883
+ }
1884
+ @property --tw-exit-translate-y {
1885
+ syntax: "*";
1886
+ inherits: false;
1887
+ initial-value: 0;
1533
1888
  }
1534
1889
  :root {
1535
1890
  --cg-ui-primary-hue: 220;
@@ -1574,6 +1929,7 @@
1574
1929
  --cg-ui-shadow-switch-thumb: 0px 1px 1px 0px hsla(0, 0%, 0%, 0.25);
1575
1930
  --cg-ui-shadow-segment-item: 0px 0px 4px 0px hsla(0, 0%, 0%, 0.1);
1576
1931
  --cg-ui-shadow-popover: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
1932
+ --cg-ui-shadow-select: 0px 2px 8px 0px hsla(0, 0%, 0%, 0.25);
1577
1933
  --cg-ui-fz-base: 16;
1578
1934
  --cg-ui-fz-heading: calc(16 / var(--cg-ui-fz-base) * 1rem);
1579
1935
  --cg-ui-lh-heading: calc(22 / var(--cg-ui-fz-base) * 1rem);
@@ -1587,6 +1943,23 @@
1587
1943
  --cg-ui-lh-caption: calc(18 / var(--cg-ui-fz-base) * 1rem);
1588
1944
  --cg-ui-fz-caption-2: calc(12 / var(--cg-ui-fz-base) * 1rem);
1589
1945
  --cg-ui-lh-caption-2: calc(16 / var(--cg-ui-fz-base) * 1rem);
1946
+ --cg-ui-z-index-base: 0;
1947
+ --cg-ui-z-index-content: 1;
1948
+ --cg-ui-z-index-sticky: 10;
1949
+ --cg-ui-z-index-fixed: 20;
1950
+ --cg-ui-z-index-dropdown: 50;
1951
+ --cg-ui-z-index-select: 50;
1952
+ --cg-ui-z-index-popover: 100;
1953
+ --cg-ui-z-index-collapsible: 100;
1954
+ --cg-ui-z-index-tooltip: 200;
1955
+ --cg-ui-z-index-navigation: 250;
1956
+ --cg-ui-z-index-modal: 300;
1957
+ --cg-ui-z-index-dialog: 300;
1958
+ --cg-ui-z-index-backdrop: 300;
1959
+ --cg-ui-z-index-toast: 400;
1960
+ --cg-ui-z-index-notification: 400;
1961
+ --cg-ui-z-index-critical: 500;
1962
+ --cg-ui-z-index-loading: 500;
1590
1963
  }
1591
1964
  .dark, [data-theme='dark'] {
1592
1965
  --cg-ui-primary-hue: 160;
@@ -1611,6 +1984,9 @@
1611
1984
  --cg-ui-palette-system-info-100: hsla(232, 22%, 29%, 1);
1612
1985
  --cg-ui-palette-system-info-10: hsla(240, 12%, 93%, 1);
1613
1986
  }
1987
+ :root {
1988
+ interpolate-size: allow-keywords;
1989
+ }
1614
1990
  @layer base {
1615
1991
  [type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
1616
1992
  appearance: none;
@@ -1951,6 +2327,20 @@
1951
2327
  opacity: 0.5;
1952
2328
  }
1953
2329
  }
2330
+ @keyframes enter {
2331
+ from {
2332
+ opacity: var(--tw-enter-opacity,1);
2333
+ transform: translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));
2334
+ filter: blur(var(--tw-enter-blur,0));
2335
+ }
2336
+ }
2337
+ @keyframes exit {
2338
+ to {
2339
+ opacity: var(--tw-exit-opacity,1);
2340
+ transform: translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));
2341
+ filter: blur(var(--tw-exit-blur,0));
2342
+ }
2343
+ }
1954
2344
  @layer properties {
1955
2345
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1956
2346
  *, ::before, ::after, ::backdrop {
@@ -1991,6 +2381,23 @@
1991
2381
  --tw-duration: initial;
1992
2382
  --tw-ease: initial;
1993
2383
  --tw-content: "";
2384
+ --tw-animation-delay: 0s;
2385
+ --tw-animation-direction: normal;
2386
+ --tw-animation-duration: initial;
2387
+ --tw-animation-fill-mode: none;
2388
+ --tw-animation-iteration-count: 1;
2389
+ --tw-enter-blur: 0;
2390
+ --tw-enter-opacity: 1;
2391
+ --tw-enter-rotate: 0;
2392
+ --tw-enter-scale: 1;
2393
+ --tw-enter-translate-x: 0;
2394
+ --tw-enter-translate-y: 0;
2395
+ --tw-exit-blur: 0;
2396
+ --tw-exit-opacity: 1;
2397
+ --tw-exit-rotate: 0;
2398
+ --tw-exit-scale: 1;
2399
+ --tw-exit-translate-x: 0;
2400
+ --tw-exit-translate-y: 0;
1994
2401
  }
1995
2402
  }
1996
2403
  }