@casinogate/ui 1.6.2 → 1.8.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 (164) hide show
  1. package/dist/assets/css/root.css +236 -32
  2. package/dist/assets/css/theme.css +6 -3
  3. package/dist/components/breadcrumb/breadcrumb.svelte +2 -2
  4. package/dist/components/breadcrumb/styles.d.ts +21 -21
  5. package/dist/components/breadcrumb/types.d.ts +2 -2
  6. package/dist/components/button/button.component.svelte +2 -1
  7. package/dist/components/button/styles.d.ts +15 -0
  8. package/dist/components/button/styles.js +10 -5
  9. package/dist/components/button-group/components/button-group.root.svelte +1 -3
  10. package/dist/components/collapsible/components/collapsaible.svelte.js +3 -3
  11. package/dist/components/collapsible/styles.d.ts +8 -8
  12. package/dist/components/data-table/data-table.svelte +1 -1
  13. package/dist/components/data-table/utils/pagination-state.svelte.js +3 -3
  14. package/dist/components/data-table/utils/resize-state.svelte.js +3 -3
  15. package/dist/components/data-table/utils/row-selection-state.svelte.js +3 -3
  16. package/dist/components/dialog/components/dialog.overlay.svelte +1 -7
  17. package/dist/components/dropdown/components/dropdown.content.svelte +39 -0
  18. package/dist/components/dropdown/components/dropdown.content.svelte.d.ts +4 -0
  19. package/dist/components/dropdown/components/dropdown.group-heading.svelte +16 -0
  20. package/dist/components/dropdown/components/dropdown.group-heading.svelte.d.ts +4 -0
  21. package/dist/components/dropdown/components/dropdown.group.svelte +16 -0
  22. package/dist/components/dropdown/components/dropdown.group.svelte.d.ts +4 -0
  23. package/dist/components/dropdown/components/dropdown.item.svelte +22 -0
  24. package/dist/components/dropdown/components/dropdown.item.svelte.d.ts +4 -0
  25. package/dist/components/dropdown/components/dropdown.portal.svelte +10 -0
  26. package/dist/components/dropdown/components/dropdown.portal.svelte.d.ts +3 -0
  27. package/dist/components/dropdown/components/dropdown.root.svelte +10 -0
  28. package/dist/components/dropdown/components/dropdown.root.svelte.d.ts +3 -0
  29. package/dist/components/dropdown/components/dropdown.separator.svelte +22 -0
  30. package/dist/components/dropdown/components/dropdown.separator.svelte.d.ts +4 -0
  31. package/dist/components/dropdown/components/dropdown.sub-content.svelte +16 -0
  32. package/dist/components/dropdown/components/dropdown.sub-content.svelte.d.ts +4 -0
  33. package/dist/components/dropdown/components/dropdown.sub-trigger.svelte +21 -0
  34. package/dist/components/dropdown/components/dropdown.sub-trigger.svelte.d.ts +4 -0
  35. package/dist/components/dropdown/components/dropdown.sub.svelte +8 -0
  36. package/dist/components/dropdown/components/dropdown.sub.svelte.d.ts +3 -0
  37. package/dist/components/dropdown/components/dropdown.trigger.svelte +16 -0
  38. package/dist/components/dropdown/components/dropdown.trigger.svelte.d.ts +4 -0
  39. package/dist/components/dropdown/dropdown.svelte +196 -0
  40. package/dist/components/dropdown/dropdown.svelte.d.ts +7 -0
  41. package/dist/components/dropdown/exports-primitive.d.ts +11 -0
  42. package/dist/components/dropdown/exports-primitive.js +11 -0
  43. package/dist/components/dropdown/exports.d.ts +1 -0
  44. package/dist/components/dropdown/exports.js +1 -0
  45. package/dist/components/dropdown/index.d.ts +3 -0
  46. package/dist/components/dropdown/index.js +2 -0
  47. package/dist/components/dropdown/styles.d.ts +496 -0
  48. package/dist/components/dropdown/styles.js +111 -0
  49. package/dist/components/dropdown/types.d.ts +86 -0
  50. package/dist/components/dropdown/types.js +1 -0
  51. package/dist/components/field/field.svelte +0 -1
  52. package/dist/components/field/styles.d.ts +15 -15
  53. package/dist/components/popover/components/popover.content.svelte +7 -2
  54. package/dist/components/popover/components/popover.content.svelte.d.ts +2 -2
  55. package/dist/components/popover/components/popover.root.svelte +0 -6
  56. package/dist/components/popover/components/popover.trigger.svelte +6 -2
  57. package/dist/components/popover/components/popover.trigger.svelte.d.ts +2 -2
  58. package/dist/components/popover/styles.d.ts +60 -52
  59. package/dist/components/popover/styles.js +37 -14
  60. package/dist/components/popover/types.d.ts +4 -4
  61. package/dist/components/segment/components/segment.root.svelte +2 -1
  62. package/dist/components/segment/components/segmet.svelte.d.ts +0 -1
  63. package/dist/components/segment/components/segmet.svelte.js +0 -1
  64. package/dist/components/segment/styles.d.ts +18 -0
  65. package/dist/components/segment/styles.js +7 -1
  66. package/dist/components/select/components/select.content.svelte +2 -4
  67. package/dist/components/select/components/select.group-heading.svelte +2 -4
  68. package/dist/components/select/components/select.group-heading.svelte.d.ts +2 -2
  69. package/dist/components/select/components/select.group.svelte.d.ts +2 -2
  70. package/dist/components/select/components/select.item.svelte +5 -13
  71. package/dist/components/select/components/select.item.svelte.d.ts +2 -2
  72. package/dist/components/select/components/select.root.svelte +1 -17
  73. package/dist/components/select/components/select.root.svelte.d.ts +1 -2
  74. package/dist/components/select/components/select.trigger.svelte +17 -5
  75. package/dist/components/select/components/select.viewport.svelte +2 -4
  76. package/dist/components/select/components/select.viewport.svelte.d.ts +2 -2
  77. package/dist/components/select/exports.d.ts +1 -1
  78. package/dist/components/select/exports.js +1 -1
  79. package/dist/components/select/select.async.svelte +146 -83
  80. package/dist/components/select/select.async.svelte.d.ts +1 -1
  81. package/dist/components/select/select.svelte +107 -62
  82. package/dist/components/select/select.svelte.d.ts +4 -2
  83. package/dist/components/select/styles.d.ts +48 -139
  84. package/dist/components/select/styles.js +74 -101
  85. package/dist/components/select/types.d.ts +69 -29
  86. package/dist/components/select/types.js +0 -1
  87. package/dist/components/select/utils/get-item-key.d.ts +1 -1
  88. package/dist/components/separator/separator.svelte +4 -5
  89. package/dist/components/separator/separator.svelte.d.ts +2 -2
  90. package/dist/components/separator/styles.d.ts +18 -0
  91. package/dist/components/separator/styles.js +10 -0
  92. package/dist/components/separator/types.d.ts +2 -1
  93. package/dist/components/spinner/spinner.svelte +1 -6
  94. package/dist/internal/index.d.ts +1 -0
  95. package/dist/internal/index.js +1 -0
  96. package/dist/internal/lib/collection/grid-collection.d.ts +3 -0
  97. package/dist/internal/lib/collection/grid-collection.js +2 -0
  98. package/dist/internal/lib/collection/index.d.ts +5 -0
  99. package/dist/internal/lib/collection/index.js +5 -0
  100. package/dist/internal/lib/collection/list-collection.d.ts +3 -0
  101. package/dist/internal/lib/collection/list-collection.js +2 -0
  102. package/dist/internal/lib/collection/tree-collection.d.ts +4 -0
  103. package/dist/internal/lib/collection/tree-collection.js +3 -0
  104. package/dist/internal/lib/collection/use-list-collection.svelte.d.ts +88 -0
  105. package/dist/internal/lib/collection/use-list-collection.svelte.js +94 -0
  106. package/dist/internal/lib/collection/use-list-selection.svelte.d.ts +92 -0
  107. package/dist/internal/lib/collection/use-list-selection.svelte.js +80 -0
  108. package/dist/internal/lib/index.d.ts +1 -0
  109. package/dist/internal/lib/index.js +1 -0
  110. package/dist/internal/utils/equal.d.ts +3 -0
  111. package/dist/internal/utils/equal.js +56 -0
  112. package/dist/internal/utils/functions.d.ts +2 -0
  113. package/dist/internal/utils/functions.js +4 -0
  114. package/dist/internal/utils/guard.d.ts +5 -0
  115. package/dist/internal/utils/guard.js +5 -0
  116. package/dist/internal/utils/tailwindcss.d.ts +3 -2
  117. package/dist/internal/utils/tailwindcss.js +25 -5
  118. package/package.json +6 -4
  119. package/dist/components/app-shell/app-shell.stories.svelte +0 -107
  120. package/dist/components/app-shell/app-shell.stories.svelte.d.ts +0 -18
  121. package/dist/components/badge/badge.stories.svelte +0 -81
  122. package/dist/components/badge/badge.stories.svelte.d.ts +0 -19
  123. package/dist/components/breadcrumb/breadcrumb.stories.svelte +0 -67
  124. package/dist/components/breadcrumb/breadcrumb.stories.svelte.d.ts +0 -4
  125. package/dist/components/button/button.stories.svelte +0 -106
  126. package/dist/components/button/button.stories.svelte.d.ts +0 -19
  127. package/dist/components/button-group/button-group.stories.svelte +0 -59
  128. package/dist/components/button-group/button-group.stories.svelte.d.ts +0 -18
  129. package/dist/components/checkbox/checkbox.stories.svelte +0 -52
  130. package/dist/components/checkbox/checkbox.stories.svelte.d.ts +0 -18
  131. package/dist/components/collapsible/collapsible.stories.svelte +0 -69
  132. package/dist/components/collapsible/collapsible.stories.svelte.d.ts +0 -18
  133. package/dist/components/data-table/data-table.stories.svelte +0 -327
  134. package/dist/components/data-table/data-table.stories.svelte.d.ts +0 -4
  135. package/dist/components/dialog/dialog.stories.svelte +0 -102
  136. package/dist/components/dialog/dialog.stories.svelte.d.ts +0 -3
  137. package/dist/components/field/field.stories.svelte +0 -56
  138. package/dist/components/field/field.stories.svelte.d.ts +0 -19
  139. package/dist/components/input/input.stories.svelte +0 -41
  140. package/dist/components/input/input.stories.svelte.d.ts +0 -19
  141. package/dist/components/navigation/navigation.stories.svelte +0 -99
  142. package/dist/components/navigation/navigation.stories.svelte.d.ts +0 -19
  143. package/dist/components/pagination/pagination.stories.svelte +0 -69
  144. package/dist/components/pagination/pagination.stories.svelte.d.ts +0 -19
  145. package/dist/components/popover/popover.stories.svelte +0 -135
  146. package/dist/components/popover/popover.stories.svelte.d.ts +0 -4
  147. package/dist/components/segment/segment.stories.svelte +0 -57
  148. package/dist/components/segment/segment.stories.svelte.d.ts +0 -19
  149. package/dist/components/select/select.stories.svelte +0 -263
  150. package/dist/components/select/select.stories.svelte.d.ts +0 -4
  151. package/dist/components/separator/separator.stories.svelte +0 -44
  152. package/dist/components/separator/separator.stories.svelte.d.ts +0 -19
  153. package/dist/components/skeleton/skeleton.stories.svelte +0 -129
  154. package/dist/components/skeleton/skeleton.stories.svelte.d.ts +0 -19
  155. package/dist/components/spinner/spinner.stories.svelte +0 -29
  156. package/dist/components/spinner/spinner.stories.svelte.d.ts +0 -19
  157. package/dist/components/switch/switch.stories.svelte +0 -55
  158. package/dist/components/switch/switch.stories.svelte.d.ts +0 -19
  159. package/dist/components/textarea/textarea.stories.svelte +0 -36
  160. package/dist/components/textarea/textarea.stories.svelte.d.ts +0 -19
  161. package/dist/components/toast/toast.stories.svelte +0 -96
  162. package/dist/components/toast/toast.stories.svelte.d.ts +0 -19
  163. package/dist/internal/utils/arrays.d.ts +0 -1
  164. package/dist/internal/utils/arrays.js +0 -30
@@ -9,12 +9,18 @@
9
9
  "Courier New", monospace;
10
10
  --cgui-color-black: #000;
11
11
  --cgui-spacing: 0.25rem;
12
+ --cgui-text-xs: 0.75rem;
13
+ --cgui-text-xs--line-height: calc(1 / 0.75);
12
14
  --cgui-text-sm: 0.875rem;
13
15
  --cgui-text-sm--line-height: calc(1.25 / 0.875);
16
+ --cgui-text-base: 1rem;
17
+ --cgui-text-base--line-height: calc(1.5 / 1);
14
18
  --cgui-text-lg: 1.125rem;
15
19
  --cgui-text-lg--line-height: calc(1.75 / 1.125);
16
20
  --cgui-font-weight-normal: 400;
17
21
  --cgui-font-weight-medium: 500;
22
+ --cgui-font-weight-semibold: 600;
23
+ --cgui-leading-relaxed: 1.625;
18
24
  --cgui-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
19
25
  --cgui-animate-spin: spin 1s linear infinite;
20
26
  --cgui-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
@@ -203,6 +209,9 @@
203
209
  .cgui\:right-0 {
204
210
  right: calc(var(--cgui-spacing) * 0);
205
211
  }
212
+ .cgui\:right-2 {
213
+ right: calc(var(--cgui-spacing) * 2);
214
+ }
206
215
  .cgui\:right-4 {
207
216
  right: calc(var(--cgui-spacing) * 4);
208
217
  }
@@ -215,8 +224,8 @@
215
224
  .cgui\:left-1\/2 {
216
225
  left: calc(1/2 * 100%);
217
226
  }
218
- .cgui\:z-\(--cg-ui-z-index-popover\) {
219
- z-index: var(--cg-ui-z-index-popover);
227
+ .cgui\:z-\(--cg-ui-z-index-dropdown\) {
228
+ z-index: var(--cg-ui-z-index-dropdown);
220
229
  }
221
230
  .cgui\:z-\(--cg-ui-z-index-select\) {
222
231
  z-index: var(--cg-ui-z-index-select);
@@ -230,15 +239,30 @@
230
239
  .cgui\:\!m-0 {
231
240
  margin: calc(var(--cgui-spacing) * 0) !important;
232
241
  }
242
+ .cgui\:mx-1 {
243
+ margin-inline: calc(var(--cgui-spacing) * 1);
244
+ }
233
245
  .cgui\:mx-auto {
234
246
  margin-inline: auto;
235
247
  }
248
+ .cgui\:my-1 {
249
+ margin-block: calc(var(--cgui-spacing) * 1);
250
+ }
236
251
  .cgui\:my-4 {
237
252
  margin-block: calc(var(--cgui-spacing) * 4);
238
253
  }
254
+ .cgui\:ms-auto {
255
+ margin-inline-start: auto;
256
+ }
257
+ .cgui\:mt-2 {
258
+ margin-top: calc(var(--cgui-spacing) * 2);
259
+ }
239
260
  .cgui\:mt-4 {
240
261
  margin-top: calc(var(--cgui-spacing) * 4);
241
262
  }
263
+ .cgui\:mb-2 {
264
+ margin-bottom: calc(var(--cgui-spacing) * 2);
265
+ }
242
266
  .cgui\:scrollbar-thin {
243
267
  &::-webkit-scrollbar-track {
244
268
  background-color: var(--scrollbar-track);
@@ -311,10 +335,6 @@
311
335
  width: calc(var(--cgui-spacing) * 14);
312
336
  height: calc(var(--cgui-spacing) * 14);
313
337
  }
314
- .cgui\:size-40 {
315
- width: calc(var(--cgui-spacing) * 40);
316
- height: calc(var(--cgui-spacing) * 40);
317
- }
318
338
  .cgui\:size-full {
319
339
  width: 100%;
320
340
  height: 100%;
@@ -361,18 +381,21 @@
361
381
  .cgui\:h-10 {
362
382
  height: calc(var(--cgui-spacing) * 10);
363
383
  }
384
+ .cgui\:h-10\.5 {
385
+ height: calc(var(--cgui-spacing) * 10.5);
386
+ }
364
387
  .cgui\:h-11 {
365
388
  height: calc(var(--cgui-spacing) * 11);
366
389
  }
367
390
  .cgui\:h-12 {
368
391
  height: calc(var(--cgui-spacing) * 12);
369
392
  }
370
- .cgui\:h-14 {
371
- height: calc(var(--cgui-spacing) * 14);
372
- }
373
393
  .cgui\:h-20 {
374
394
  height: calc(var(--cgui-spacing) * 20);
375
395
  }
396
+ .cgui\:h-24 {
397
+ height: calc(var(--cgui-spacing) * 24);
398
+ }
376
399
  .cgui\:h-30 {
377
400
  height: calc(var(--cgui-spacing) * 30);
378
401
  }
@@ -388,6 +411,12 @@
388
411
  .cgui\:h-full {
389
412
  height: 100%;
390
413
  }
414
+ .cgui\:h-px {
415
+ height: 1px;
416
+ }
417
+ .cgui\:max-h-\(--bits-dropdown-menu-content-available-height\) {
418
+ max-height: var(--bits-dropdown-menu-content-available-height);
419
+ }
391
420
  .cgui\:max-h-\(--bits-select-content-available-height\) {
392
421
  max-height: var(--bits-select-content-available-height);
393
422
  }
@@ -436,6 +465,21 @@
436
465
  .cgui\:w-40 {
437
466
  width: calc(var(--cgui-spacing) * 40);
438
467
  }
468
+ .cgui\:w-48 {
469
+ width: calc(var(--cgui-spacing) * 48);
470
+ }
471
+ .cgui\:w-56 {
472
+ width: calc(var(--cgui-spacing) * 56);
473
+ }
474
+ .cgui\:w-64 {
475
+ width: calc(var(--cgui-spacing) * 64);
476
+ }
477
+ .cgui\:w-80 {
478
+ width: calc(var(--cgui-spacing) * 80);
479
+ }
480
+ .cgui\:w-\[420px\] {
481
+ width: 420px;
482
+ }
439
483
  .cgui\:w-auto {
440
484
  width: auto;
441
485
  }
@@ -445,6 +489,9 @@
445
489
  .cgui\:w-full {
446
490
  width: 100%;
447
491
  }
492
+ .cgui\:w-px {
493
+ width: 1px;
494
+ }
448
495
  .cgui\:w-screen {
449
496
  width: 100vw;
450
497
  }
@@ -472,15 +519,30 @@
472
519
  .cgui\:max-w-200 {
473
520
  max-width: calc(var(--cgui-spacing) * 200);
474
521
  }
522
+ .cgui\:max-w-\[90vw\] {
523
+ max-width: 90vw;
524
+ }
525
+ .cgui\:min-w-\(--bits-dropdown-menu-anchor-width\) {
526
+ min-width: var(--bits-dropdown-menu-anchor-width);
527
+ }
528
+ .cgui\:min-w-\(--bits-popover-anchor-width\) {
529
+ min-width: var(--bits-popover-anchor-width);
530
+ }
475
531
  .cgui\:min-w-\(--bits-select-anchor-width\) {
476
532
  min-width: var(--bits-select-anchor-width);
477
533
  }
478
534
  .cgui\:min-w-0 {
479
535
  min-width: calc(var(--cgui-spacing) * 0);
480
536
  }
537
+ .cgui\:min-w-35 {
538
+ min-width: calc(var(--cgui-spacing) * 35);
539
+ }
481
540
  .cgui\:min-w-42 {
482
541
  min-width: calc(var(--cgui-spacing) * 42);
483
542
  }
543
+ .cgui\:min-w-64 {
544
+ min-width: calc(var(--cgui-spacing) * 64);
545
+ }
484
546
  .cgui\:min-w-fit {
485
547
  min-width: fit-content;
486
548
  }
@@ -496,6 +558,12 @@
496
558
  .cgui\:grow {
497
559
  flex-grow: 1;
498
560
  }
561
+ .cgui\:origin-\(--bits-dropdown-menu-content-transform-origin\) {
562
+ transform-origin: var(--bits-dropdown-menu-content-transform-origin);
563
+ }
564
+ .cgui\:origin-\(--bits-popover-content-transform-origin\) {
565
+ transform-origin: var(--bits-popover-content-transform-origin);
566
+ }
499
567
  .cgui\:origin-\(--bits-select-content-transform-origin\) {
500
568
  transform-origin: var(--bits-select-content-transform-origin);
501
569
  }
@@ -586,11 +654,14 @@
586
654
  .cgui\:gap-2\.5 {
587
655
  gap: calc(var(--cgui-spacing) * 2.5);
588
656
  }
657
+ .cgui\:gap-3 {
658
+ gap: calc(var(--cgui-spacing) * 3);
659
+ }
589
660
  .cgui\:gap-4 {
590
661
  gap: calc(var(--cgui-spacing) * 4);
591
662
  }
592
- .cgui\:gap-12 {
593
- gap: calc(var(--cgui-spacing) * 12);
663
+ .cgui\:gap-16 {
664
+ gap: calc(var(--cgui-spacing) * 16);
594
665
  }
595
666
  .cgui\:space-y-1 {
596
667
  :where(& > :not(:last-child)) {
@@ -599,6 +670,20 @@
599
670
  margin-block-end: calc(calc(var(--cgui-spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
600
671
  }
601
672
  }
673
+ .cgui\:space-y-2 {
674
+ :where(& > :not(:last-child)) {
675
+ --tw-space-y-reverse: 0;
676
+ margin-block-start: calc(calc(var(--cgui-spacing) * 2) * var(--tw-space-y-reverse));
677
+ margin-block-end: calc(calc(var(--cgui-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
678
+ }
679
+ }
680
+ .cgui\:space-y-3 {
681
+ :where(& > :not(:last-child)) {
682
+ --tw-space-y-reverse: 0;
683
+ margin-block-start: calc(calc(var(--cgui-spacing) * 3) * var(--tw-space-y-reverse));
684
+ margin-block-end: calc(calc(var(--cgui-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
685
+ }
686
+ }
602
687
  .cgui\:space-x-4 {
603
688
  :where(& > :not(:last-child)) {
604
689
  --tw-space-x-reverse: 0;
@@ -626,6 +711,9 @@
626
711
  .cgui\:overflow-y-auto {
627
712
  overflow-y: auto;
628
713
  }
714
+ .cgui\:scroll-smooth {
715
+ scroll-behavior: smooth;
716
+ }
629
717
  .cgui\:rounded-\[inherit\] {
630
718
  border-radius: inherit;
631
719
  }
@@ -660,6 +748,10 @@
660
748
  border-style: var(--tw-border-style);
661
749
  border-width: 1px;
662
750
  }
751
+ .cgui\:border-2 {
752
+ border-style: var(--tw-border-style);
753
+ border-width: 2px;
754
+ }
663
755
  .cgui\:border-t {
664
756
  border-top-style: var(--tw-border-style);
665
757
  border-top-width: 1px;
@@ -672,6 +764,10 @@
672
764
  border-bottom-style: var(--tw-border-style);
673
765
  border-bottom-width: 1px;
674
766
  }
767
+ .cgui\:border-dashed {
768
+ --tw-border-style: dashed;
769
+ border-style: dashed;
770
+ }
675
771
  .cgui\:border-none {
676
772
  --tw-border-style: none;
677
773
  border-style: none;
@@ -775,6 +871,12 @@
775
871
  .cgui\:bg-surface-lightest {
776
872
  background-color: var(--cg-ui-palette-neutral-10);
777
873
  }
874
+ .cgui\:bg-surface-lightest\/50 {
875
+ background-color: var(--cg-ui-palette-neutral-10);
876
+ @supports (color: color-mix(in lab, red, red)) {
877
+ background-color: color-mix(in oklab, var(--cg-ui-palette-neutral-10) 50%, transparent);
878
+ }
879
+ }
778
880
  .cgui\:bg-surface-primary {
779
881
  background-color: var(--cg-ui-palette-primary-80);
780
882
  }
@@ -823,6 +925,9 @@
823
925
  .cgui\:p-1 {
824
926
  padding: calc(var(--cgui-spacing) * 1);
825
927
  }
928
+ .cgui\:p-1\.5 {
929
+ padding: calc(var(--cgui-spacing) * 1.5);
930
+ }
826
931
  .cgui\:p-2 {
827
932
  padding: calc(var(--cgui-spacing) * 2);
828
933
  }
@@ -871,6 +976,12 @@
871
976
  .cgui\:py-4 {
872
977
  padding-block: calc(var(--cgui-spacing) * 4);
873
978
  }
979
+ .cgui\:py-5 {
980
+ padding-block: calc(var(--cgui-spacing) * 5);
981
+ }
982
+ .cgui\:pt-2 {
983
+ padding-top: calc(var(--cgui-spacing) * 2);
984
+ }
874
985
  .cgui\:pt-4 {
875
986
  padding-top: calc(var(--cgui-spacing) * 4);
876
987
  }
@@ -910,6 +1021,10 @@
910
1021
  .cgui\:align-middle {
911
1022
  vertical-align: middle;
912
1023
  }
1024
+ .cgui\:text-base {
1025
+ font-size: var(--cgui-text-base);
1026
+ line-height: var(--tw-leading, var(--cgui-text-base--line-height));
1027
+ }
913
1028
  .cgui\:text-body {
914
1029
  font-size: var(--cg-ui-fz-body);
915
1030
  line-height: var(--tw-leading, var(--cg-ui-lh-body));
@@ -926,6 +1041,10 @@
926
1041
  font-size: var(--cg-ui-fz-caption-2);
927
1042
  line-height: var(--tw-leading, var(--cg-ui-lh-caption-2));
928
1043
  }
1044
+ .cgui\:text-heading {
1045
+ font-size: var(--cg-ui-fz-heading);
1046
+ line-height: var(--tw-leading, var(--cg-ui-lh-heading));
1047
+ }
929
1048
  .cgui\:text-heading-2 {
930
1049
  font-size: var(--cg-ui-fz-heading-2);
931
1050
  line-height: var(--tw-leading, var(--cg-ui-lh-heading-2));
@@ -938,10 +1057,18 @@
938
1057
  font-size: var(--cgui-text-sm);
939
1058
  line-height: var(--tw-leading, var(--cgui-text-sm--line-height));
940
1059
  }
1060
+ .cgui\:text-xs {
1061
+ font-size: var(--cgui-text-xs);
1062
+ line-height: var(--tw-leading, var(--cgui-text-xs--line-height));
1063
+ }
941
1064
  .cgui\:leading-none {
942
1065
  --tw-leading: 1;
943
1066
  line-height: 1;
944
1067
  }
1068
+ .cgui\:leading-relaxed {
1069
+ --tw-leading: var(--cgui-leading-relaxed);
1070
+ line-height: var(--cgui-leading-relaxed);
1071
+ }
945
1072
  .cgui\:font-medium {
946
1073
  --tw-font-weight: var(--cgui-font-weight-medium);
947
1074
  font-weight: var(--cgui-font-weight-medium);
@@ -950,6 +1077,10 @@
950
1077
  --tw-font-weight: var(--cgui-font-weight-normal);
951
1078
  font-weight: var(--cgui-font-weight-normal);
952
1079
  }
1080
+ .cgui\:font-semibold {
1081
+ --tw-font-weight: var(--cgui-font-weight-semibold);
1082
+ font-weight: var(--cgui-font-weight-semibold);
1083
+ }
953
1084
  .cgui\:whitespace-nowrap {
954
1085
  white-space: nowrap;
955
1086
  }
@@ -1020,6 +1151,10 @@
1020
1151
  --tw-shadow: var(--cg-ui-shadow-dialog);
1021
1152
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1022
1153
  }
1154
+ .cgui\:shadow-dropdown {
1155
+ --tw-shadow: var(--cg-ui-shadow-dropdown);
1156
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1157
+ }
1023
1158
  .cgui\:shadow-none {
1024
1159
  --tw-shadow: 0 0 #0000;
1025
1160
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -1036,6 +1171,10 @@
1036
1171
  --tw-shadow: var(--cg-ui-shadow-select);
1037
1172
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1038
1173
  }
1174
+ .cgui\:shadow-sm {
1175
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1176
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1177
+ }
1039
1178
  .cgui\:shadow-toast {
1040
1179
  --tw-shadow: var(--cg-ui-shadow-toast);
1041
1180
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -1051,6 +1190,11 @@
1051
1190
  .cgui\:outline-stroke-focus {
1052
1191
  outline-color: var(--cg-ui-palette-primary-60);
1053
1192
  }
1193
+ .cgui\:transition-\[background-color\,color\,ring\,outline\,border-color\] {
1194
+ transition-property: background-color,color,ring,outline,border-color;
1195
+ transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
1196
+ transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
1197
+ }
1054
1198
  .cgui\:transition-\[opacity\] {
1055
1199
  transition-property: opacity;
1056
1200
  transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
@@ -1061,11 +1205,20 @@
1061
1205
  transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
1062
1206
  transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
1063
1207
  }
1208
+ .cgui\:transition-colors {
1209
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
1210
+ transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
1211
+ transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
1212
+ }
1064
1213
  .cgui\:transition-transform {
1065
1214
  transition-property: transform, translate, scale, rotate;
1066
1215
  transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
1067
1216
  transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
1068
1217
  }
1218
+ .cgui\:duration-150 {
1219
+ --tw-duration: 150ms;
1220
+ transition-duration: 150ms;
1221
+ }
1069
1222
  .cgui\:duration-250 {
1070
1223
  --tw-duration: 250ms;
1071
1224
  transition-duration: 250ms;
@@ -1095,6 +1248,9 @@
1095
1248
  .cgui\:scrollbar-thumb-stroke-default {
1096
1249
  --scrollbar-thumb: var(--cg-ui-palette-neutral-40);
1097
1250
  }
1251
+ .cgui\:scrollbar-thumb-surface-light {
1252
+ --scrollbar-thumb: var(--cg-ui-palette-neutral-20);
1253
+ }
1098
1254
  .cgui\:scrollbar-thumb-surface-regular {
1099
1255
  --scrollbar-thumb: var(--cg-ui-palette-neutral-50);
1100
1256
  }
@@ -1238,6 +1394,13 @@
1238
1394
  }
1239
1395
  }
1240
1396
  }
1397
+ .cgui\:hover\:bg-surface-hover {
1398
+ &:hover {
1399
+ @media (hover: hover) {
1400
+ background-color: var(--cg-ui-palette-neutral-01);
1401
+ }
1402
+ }
1403
+ }
1241
1404
  .cgui\:hover\:bg-surface-primary-active {
1242
1405
  &:hover {
1243
1406
  @media (hover: hover) {
@@ -1266,6 +1429,13 @@
1266
1429
  }
1267
1430
  }
1268
1431
  }
1432
+ .cgui\:hover\:no-underline {
1433
+ &:hover {
1434
+ @media (hover: hover) {
1435
+ text-decoration-line: none;
1436
+ }
1437
+ }
1438
+ }
1269
1439
  .cgui\:focus\:ring-stroke-default {
1270
1440
  &:focus {
1271
1441
  --tw-ring-color: var(--cg-ui-palette-neutral-40);
@@ -1314,6 +1484,11 @@
1314
1484
  opacity: 50%;
1315
1485
  }
1316
1486
  }
1487
+ .cgui\:has-\[data-slot\=chevron\]\:pr-3 {
1488
+ &:has(*:is(data-slot=chevron)) {
1489
+ padding-right: calc(var(--cgui-spacing) * 3);
1490
+ }
1491
+ }
1317
1492
  .cgui\:has-\[\>\[data-slot\=button-group\]\]\:gap-2 {
1318
1493
  &:has(>[data-slot=button-group]) {
1319
1494
  gap: calc(var(--cgui-spacing) * 2);
@@ -1329,6 +1504,11 @@
1329
1504
  --tw-ring-color: var(--cg-ui-palette-system-error-100);
1330
1505
  }
1331
1506
  }
1507
+ .cgui\:data-highlighted\:bg-surface-lightest {
1508
+ &[data-highlighted] {
1509
+ background-color: var(--cg-ui-palette-neutral-10);
1510
+ }
1511
+ }
1332
1512
  .cgui\:data-\[active\=\"\"\]\:bg-surface-white {
1333
1513
  &[data-active=""] {
1334
1514
  background-color: var(--cg-ui-palette-neutral-0);
@@ -1415,14 +1595,9 @@
1415
1595
  background-color: var(--cg-ui-palette-neutral-10);
1416
1596
  }
1417
1597
  }
1418
- .cgui\:data-\[orientation\=horizontal\]\:h-px {
1419
- &[data-orientation="horizontal"] {
1420
- height: 1px;
1421
- }
1422
- }
1423
- .cgui\:data-\[orientation\=horizontal\]\:w-full {
1424
- &[data-orientation="horizontal"] {
1425
- width: 100%;
1598
+ .cgui\:data-\[inset\]\:ps-8 {
1599
+ &[data-inset] {
1600
+ padding-inline-start: calc(var(--cgui-spacing) * 8);
1426
1601
  }
1427
1602
  }
1428
1603
  .cgui\:data-\[orientation\=vertical\]\:h-auto {
@@ -1430,16 +1605,6 @@
1430
1605
  height: auto;
1431
1606
  }
1432
1607
  }
1433
- .cgui\:data-\[orientation\=vertical\]\:h-full {
1434
- &[data-orientation="vertical"] {
1435
- height: 100%;
1436
- }
1437
- }
1438
- .cgui\:data-\[orientation\=vertical\]\:w-px {
1439
- &[data-orientation="vertical"] {
1440
- width: 1px;
1441
- }
1442
- }
1443
1608
  .cgui\:data-\[placeholder\]\:text-fg-regular {
1444
1609
  &[data-placeholder] {
1445
1610
  color: var(--cg-ui-palette-neutral-50);
@@ -1482,6 +1647,16 @@
1482
1647
  translate: var(--tw-translate-x) var(--tw-translate-y);
1483
1648
  }
1484
1649
  }
1650
+ .cgui\:data-\[side\=left\]\:slide-in-from-end-2 {
1651
+ &[data-side="left"] {
1652
+ &:where(:dir(ltr),[dir="ltr"],[dir="ltr"]*) {
1653
+ --tw-enter-translate-x: calc(2*var(--spacing));
1654
+ }
1655
+ &:where(:dir(rtl),[dir="rtl"],[dir="rtl"]*) {
1656
+ --tw-enter-translate-x: calc(2*var(--spacing)*-1);
1657
+ }
1658
+ }
1659
+ }
1485
1660
  .cgui\:data-\[side\=left\]\:slide-in-from-right-2 {
1486
1661
  &[data-side="left"] {
1487
1662
  --tw-enter-translate-x: calc(2*var(--spacing));
@@ -1493,6 +1668,16 @@
1493
1668
  translate: var(--tw-translate-x) var(--tw-translate-y);
1494
1669
  }
1495
1670
  }
1671
+ .cgui\:data-\[side\=right\]\:slide-in-from-start-2 {
1672
+ &[data-side="right"] {
1673
+ &:where(:dir(ltr),[dir="ltr"],[dir="ltr"]*) {
1674
+ --tw-enter-translate-x: calc(2*var(--spacing)*-1);
1675
+ }
1676
+ &:where(:dir(rtl),[dir="rtl"],[dir="rtl"]*) {
1677
+ --tw-enter-translate-x: calc(2*var(--spacing));
1678
+ }
1679
+ }
1680
+ }
1496
1681
  .cgui\:data-\[side\=right\]\:slide-in-from-left-2 {
1497
1682
  &[data-side="right"] {
1498
1683
  --tw-enter-translate-x: calc(2*var(--spacing)*-1);
@@ -1712,6 +1897,23 @@
1712
1897
  flex-shrink: 0;
1713
1898
  }
1714
1899
  }
1900
+ .cgui\:\[\&_svg\]\:text-icon-regular {
1901
+ & svg {
1902
+ color: var(--cg-ui-palette-neutral-50);
1903
+ }
1904
+ }
1905
+ .cgui\:\[\&_svg\:not\(\[class\*\=\"size-\"\]\)\]\:size-4 {
1906
+ & svg:not([class*="size-"]) {
1907
+ width: calc(var(--cgui-spacing) * 4);
1908
+ height: calc(var(--cgui-spacing) * 4);
1909
+ }
1910
+ }
1911
+ .cgui\:\[\&_svg\:not\(\[class\*\=\"size-\"\]\)\]\:size-4\.5 {
1912
+ & svg:not([class*="size-"]) {
1913
+ width: calc(var(--cgui-spacing) * 4.5);
1914
+ height: calc(var(--cgui-spacing) * 4.5);
1915
+ }
1916
+ }
1715
1917
  .cgui\:\[\&_tr\]\:h-10 {
1716
1918
  & tr {
1717
1919
  height: calc(var(--cgui-spacing) * 10);
@@ -1966,12 +2168,14 @@
1966
2168
  --cg-ui-number-xxl: 40;
1967
2169
  --cg-ui-number-2xxl: 48;
1968
2170
  --cg-ui-number-max: 360;
2171
+ --cg-ui-shadow-base: rgba(0, 0, 0, 0.1) 0px 4px 12px;
1969
2172
  --cg-ui-shadow-toast: 0px 0px 8px 0px hsla(0, 0%, 0%, 0.2);
1970
2173
  --cg-ui-shadow-switch-thumb: 0px 1px 1px 0px hsla(0, 0%, 0%, 0.25);
1971
2174
  --cg-ui-shadow-segment-item: 0px 0px 4px 0px hsla(0, 0%, 0%, 0.1);
1972
- --cg-ui-shadow-popover: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
1973
- --cg-ui-shadow-select: 0px 2px 8px 0px hsla(0, 0%, 0%, 0.25);
1974
- --cg-ui-shadow-dialog: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
2175
+ --cg-ui-shadow-popover: var(--cg-ui-shadow-base);
2176
+ --cg-ui-shadow-dropdown: var(--cg-ui-shadow-base);
2177
+ --cg-ui-shadow-select: var(--cg-ui-shadow-base);
2178
+ --cg-ui-shadow-dialog: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1975
2179
  --cg-ui-fz-base: 16;
1976
2180
  --cg-ui-fz-heading: calc(16 / var(--cg-ui-fz-base) * 1rem);
1977
2181
  --cg-ui-lh-heading: calc(22 / var(--cg-ui-fz-base) * 1rem);
@@ -123,6 +123,7 @@
123
123
  --shadow-popover: var(--cg-ui-shadow-popover);
124
124
  --shadow-select: var(--cg-ui-shadow-select);
125
125
  --shadow-dialog: var(--cg-ui-shadow-dialog);
126
+ --shadow-dropdown: var(--cg-ui-shadow-dropdown);
126
127
 
127
128
  /* Font sizes, Line heights */
128
129
  --text-heading: var(--cg-ui-fz-heading);
@@ -199,12 +200,14 @@
199
200
  --cg-ui-number-max: 360;
200
201
 
201
202
  /* Shadows */
203
+ --cg-ui-shadow-base: rgba(0, 0, 0, 0.1) 0px 4px 12px;
202
204
  --cg-ui-shadow-toast: 0px 0px 8px 0px hsla(0, 0%, 0%, 0.2);
203
205
  --cg-ui-shadow-switch-thumb: 0px 1px 1px 0px hsla(0, 0%, 0%, 0.25);
204
206
  --cg-ui-shadow-segment-item: 0px 0px 4px 0px hsla(0, 0%, 0%, 0.1);
205
- --cg-ui-shadow-popover: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
206
- --cg-ui-shadow-select: 0px 2px 8px 0px hsla(0, 0%, 0%, 0.25);
207
- --cg-ui-shadow-dialog: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
207
+ --cg-ui-shadow-popover: var(--cg-ui-shadow-base);
208
+ --cg-ui-shadow-dropdown: var(--cg-ui-shadow-base);
209
+ --cg-ui-shadow-select: var(--cg-ui-shadow-base);
210
+ --cg-ui-shadow-dialog: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
208
211
 
209
212
  /* Font sizes, Line heights */
210
213
  --cg-ui-fz-base: 16;
@@ -7,14 +7,14 @@
7
7
  import Separator from './components/breadcrumb.separator.svelte';
8
8
  import type { BreadcrumbProps } from './types.js';
9
9
 
10
- let { children, ref = $bindable(null), path, ...restProps }: BreadcrumbProps = $props();
10
+ let { ref = $bindable(null), path, ...restProps }: BreadcrumbProps = $props();
11
11
 
12
12
  const items = $derived(Array.isArray(path) ? path : path.split('/').filter(Boolean));
13
13
  </script>
14
14
 
15
15
  <Root bind:ref {...restProps}>
16
16
  <List>
17
- {#each items as item, idx}
17
+ {#each items as item, idx (idx)}
18
18
  {@const isLast = idx === items.length - 1}
19
19
 
20
20
  {#if isLast}
@@ -3,24 +3,24 @@ import type { ReadableBox } from 'svelte-toolbelt';
3
3
  import type { VariantProps } from 'tailwind-variants';
4
4
  export declare const breadcrumbVariants: import("tailwind-variants").TVReturnType<{
5
5
  [key: string]: {
6
- [key: string]: import("tailwind-variants").ClassValue | {
7
- root?: import("tailwind-variants").ClassValue;
8
- list?: import("tailwind-variants").ClassValue;
9
- link?: import("tailwind-variants").ClassValue;
10
- separator?: import("tailwind-variants").ClassValue;
11
- page?: import("tailwind-variants").ClassValue;
12
- item?: import("tailwind-variants").ClassValue;
6
+ [key: string]: import("tailwind-merge").ClassNameValue | {
7
+ link?: import("tailwind-merge").ClassNameValue;
8
+ root?: import("tailwind-merge").ClassNameValue;
9
+ list?: import("tailwind-merge").ClassNameValue;
10
+ separator?: import("tailwind-merge").ClassNameValue;
11
+ page?: import("tailwind-merge").ClassNameValue;
12
+ item?: import("tailwind-merge").ClassNameValue;
13
13
  };
14
14
  };
15
15
  } | {
16
16
  [x: string]: {
17
- [x: string]: import("tailwind-variants").ClassValue | {
18
- root?: import("tailwind-variants").ClassValue;
19
- list?: import("tailwind-variants").ClassValue;
20
- link?: import("tailwind-variants").ClassValue;
21
- separator?: import("tailwind-variants").ClassValue;
22
- page?: import("tailwind-variants").ClassValue;
23
- item?: import("tailwind-variants").ClassValue;
17
+ [x: string]: import("tailwind-merge").ClassNameValue | {
18
+ link?: import("tailwind-merge").ClassNameValue;
19
+ root?: import("tailwind-merge").ClassNameValue;
20
+ list?: import("tailwind-merge").ClassNameValue;
21
+ separator?: import("tailwind-merge").ClassNameValue;
22
+ page?: import("tailwind-merge").ClassNameValue;
23
+ item?: import("tailwind-merge").ClassNameValue;
24
24
  };
25
25
  };
26
26
  } | {}, {
@@ -32,13 +32,13 @@ export declare const breadcrumbVariants: import("tailwind-variants").TVReturnTyp
32
32
  page: string[];
33
33
  }, undefined, {
34
34
  [key: string]: {
35
- [key: string]: import("tailwind-variants").ClassValue | {
36
- root?: import("tailwind-variants").ClassValue;
37
- list?: import("tailwind-variants").ClassValue;
38
- link?: import("tailwind-variants").ClassValue;
39
- separator?: import("tailwind-variants").ClassValue;
40
- page?: import("tailwind-variants").ClassValue;
41
- item?: import("tailwind-variants").ClassValue;
35
+ [key: string]: import("tailwind-merge").ClassNameValue | {
36
+ link?: import("tailwind-merge").ClassNameValue;
37
+ root?: import("tailwind-merge").ClassNameValue;
38
+ list?: import("tailwind-merge").ClassNameValue;
39
+ separator?: import("tailwind-merge").ClassNameValue;
40
+ page?: import("tailwind-merge").ClassNameValue;
41
+ item?: import("tailwind-merge").ClassNameValue;
42
42
  };
43
43
  };
44
44
  } | {}, {
@@ -1,5 +1,5 @@
1
1
  import type { PrimitiveAnchorAttributes, PrimitiveElementAttributes, PrimitiveLiAttributes, PrimitiveOListAttributes, PrimitiveSpanAttributes } from '../../internal/types/html-attributes.js';
2
- import type { WithChild, WithChildren, WithElementRef, Without } from 'svelte-toolbelt';
2
+ import type { WithChild, WithChildren, WithElementRef, Without, WithoutChildrenOrChild } from 'svelte-toolbelt';
3
3
  import type { BreadcrumbVariantsProps } from './styles.js';
4
4
  type BreadcrumbRootPropsWithoutHTML = WithElementRef<WithChildren<{}>> & BreadcrumbVariantsProps;
5
5
  export type BreadcrumbRootProps = BreadcrumbRootPropsWithoutHTML & Without<PrimitiveElementAttributes, BreadcrumbRootPropsWithoutHTML>;
@@ -13,7 +13,7 @@ type BreadcrumbLinkPropsWithoutHTML = WithElementRef<WithChild<{}>>;
13
13
  export type BreadcrumbLinkProps = BreadcrumbLinkPropsWithoutHTML & Without<PrimitiveAnchorAttributes, BreadcrumbLinkPropsWithoutHTML>;
14
14
  type BreadcrumbPagePropsWithoutHTML = WithElementRef<WithChildren<{}>>;
15
15
  export type BreadcrumbPageProps = BreadcrumbPagePropsWithoutHTML & Without<PrimitiveSpanAttributes, BreadcrumbPagePropsWithoutHTML>;
16
- export type BreadcrumbProps = BreadcrumbRootProps & {
16
+ export type BreadcrumbProps = WithoutChildrenOrChild<BreadcrumbRootProps> & {
17
17
  path: string[] | string;
18
18
  };
19
19
  export {};