@casinogate/ui 1.6.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/root.css +197 -32
- package/dist/assets/css/theme.css +6 -3
- package/dist/components/breadcrumb/styles.d.ts +21 -21
- package/dist/components/button/button.component.svelte +2 -1
- package/dist/components/button/styles.js +4 -4
- package/dist/components/collapsible/styles.d.ts +8 -8
- package/dist/components/dialog/dialog.stories.svelte +28 -14
- package/dist/components/dropdown/components/dropdown.content.svelte +41 -0
- package/dist/components/dropdown/components/dropdown.content.svelte.d.ts +4 -0
- package/dist/components/dropdown/components/dropdown.group-heading.svelte +16 -0
- package/dist/components/dropdown/components/dropdown.group-heading.svelte.d.ts +4 -0
- package/dist/components/dropdown/components/dropdown.group.svelte +16 -0
- package/dist/components/dropdown/components/dropdown.group.svelte.d.ts +4 -0
- package/dist/components/dropdown/components/dropdown.item.svelte +22 -0
- package/dist/components/dropdown/components/dropdown.item.svelte.d.ts +4 -0
- package/dist/components/dropdown/components/dropdown.portal.svelte +10 -0
- package/dist/components/dropdown/components/dropdown.portal.svelte.d.ts +3 -0
- package/dist/components/dropdown/components/dropdown.root.svelte +10 -0
- package/dist/components/dropdown/components/dropdown.root.svelte.d.ts +3 -0
- package/dist/components/dropdown/components/dropdown.separator.svelte +22 -0
- package/dist/components/dropdown/components/dropdown.separator.svelte.d.ts +4 -0
- package/dist/components/dropdown/components/dropdown.sub-content.svelte +16 -0
- package/dist/components/dropdown/components/dropdown.sub-content.svelte.d.ts +4 -0
- package/dist/components/dropdown/components/dropdown.sub-trigger.svelte +21 -0
- package/dist/components/dropdown/components/dropdown.sub-trigger.svelte.d.ts +4 -0
- package/dist/components/dropdown/components/dropdown.sub.svelte +8 -0
- package/dist/components/dropdown/components/dropdown.sub.svelte.d.ts +3 -0
- package/dist/components/dropdown/components/dropdown.trigger.svelte +16 -0
- package/dist/components/dropdown/components/dropdown.trigger.svelte.d.ts +4 -0
- package/dist/components/dropdown/dropdown.stories.svelte +151 -0
- package/dist/components/dropdown/dropdown.stories.svelte.d.ts +19 -0
- package/dist/components/dropdown/dropdown.svelte +136 -0
- package/dist/components/dropdown/dropdown.svelte.d.ts +6 -0
- package/dist/components/dropdown/exports-primitive.d.ts +11 -0
- package/dist/components/dropdown/exports-primitive.js +11 -0
- package/dist/components/dropdown/exports.d.ts +1 -0
- package/dist/components/dropdown/exports.js +1 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/dropdown/index.js +2 -0
- package/dist/components/dropdown/styles.d.ts +496 -0
- package/dist/components/dropdown/styles.js +109 -0
- package/dist/components/dropdown/types.d.ts +62 -0
- package/dist/components/dropdown/types.js +1 -0
- package/dist/components/field/styles.d.ts +15 -15
- package/dist/components/popover/components/popover.content.svelte +7 -2
- package/dist/components/popover/components/popover.content.svelte.d.ts +2 -2
- package/dist/components/popover/components/popover.root.svelte +0 -6
- package/dist/components/popover/components/popover.trigger.svelte +6 -2
- package/dist/components/popover/components/popover.trigger.svelte.d.ts +2 -2
- package/dist/components/popover/popover.stories.svelte +112 -52
- package/dist/components/popover/popover.stories.svelte.d.ts +0 -1
- package/dist/components/popover/styles.d.ts +60 -52
- package/dist/components/popover/styles.js +37 -14
- package/dist/components/popover/types.d.ts +4 -4
- package/dist/components/separator/separator.svelte +4 -5
- package/dist/components/separator/separator.svelte.d.ts +2 -2
- package/dist/components/separator/styles.d.ts +18 -0
- package/dist/components/separator/styles.js +10 -0
- package/dist/components/separator/types.d.ts +2 -1
- package/dist/components/spinner/spinner.svelte +1 -6
- package/dist/internal/utils/tailwindcss.d.ts +3 -2
- package/dist/internal/utils/tailwindcss.js +25 -5
- package/package.json +2 -2
package/dist/assets/css/root.css
CHANGED
|
@@ -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;
|
|
@@ -215,8 +221,8 @@
|
|
|
215
221
|
.cgui\:left-1\/2 {
|
|
216
222
|
left: calc(1/2 * 100%);
|
|
217
223
|
}
|
|
218
|
-
.cgui\:z-\(--cg-ui-z-index-
|
|
219
|
-
z-index: var(--cg-ui-z-index-
|
|
224
|
+
.cgui\:z-\(--cg-ui-z-index-dropdown\) {
|
|
225
|
+
z-index: var(--cg-ui-z-index-dropdown);
|
|
220
226
|
}
|
|
221
227
|
.cgui\:z-\(--cg-ui-z-index-select\) {
|
|
222
228
|
z-index: var(--cg-ui-z-index-select);
|
|
@@ -230,12 +236,21 @@
|
|
|
230
236
|
.cgui\:\!m-0 {
|
|
231
237
|
margin: calc(var(--cgui-spacing) * 0) !important;
|
|
232
238
|
}
|
|
239
|
+
.cgui\:mx-1 {
|
|
240
|
+
margin-inline: calc(var(--cgui-spacing) * 1);
|
|
241
|
+
}
|
|
233
242
|
.cgui\:mx-auto {
|
|
234
243
|
margin-inline: auto;
|
|
235
244
|
}
|
|
245
|
+
.cgui\:my-1 {
|
|
246
|
+
margin-block: calc(var(--cgui-spacing) * 1);
|
|
247
|
+
}
|
|
236
248
|
.cgui\:my-4 {
|
|
237
249
|
margin-block: calc(var(--cgui-spacing) * 4);
|
|
238
250
|
}
|
|
251
|
+
.cgui\:ms-auto {
|
|
252
|
+
margin-inline-start: auto;
|
|
253
|
+
}
|
|
239
254
|
.cgui\:mt-4 {
|
|
240
255
|
margin-top: calc(var(--cgui-spacing) * 4);
|
|
241
256
|
}
|
|
@@ -311,10 +326,6 @@
|
|
|
311
326
|
width: calc(var(--cgui-spacing) * 14);
|
|
312
327
|
height: calc(var(--cgui-spacing) * 14);
|
|
313
328
|
}
|
|
314
|
-
.cgui\:size-40 {
|
|
315
|
-
width: calc(var(--cgui-spacing) * 40);
|
|
316
|
-
height: calc(var(--cgui-spacing) * 40);
|
|
317
|
-
}
|
|
318
329
|
.cgui\:size-full {
|
|
319
330
|
width: 100%;
|
|
320
331
|
height: 100%;
|
|
@@ -361,18 +372,21 @@
|
|
|
361
372
|
.cgui\:h-10 {
|
|
362
373
|
height: calc(var(--cgui-spacing) * 10);
|
|
363
374
|
}
|
|
375
|
+
.cgui\:h-10\.5 {
|
|
376
|
+
height: calc(var(--cgui-spacing) * 10.5);
|
|
377
|
+
}
|
|
364
378
|
.cgui\:h-11 {
|
|
365
379
|
height: calc(var(--cgui-spacing) * 11);
|
|
366
380
|
}
|
|
367
381
|
.cgui\:h-12 {
|
|
368
382
|
height: calc(var(--cgui-spacing) * 12);
|
|
369
383
|
}
|
|
370
|
-
.cgui\:h-14 {
|
|
371
|
-
height: calc(var(--cgui-spacing) * 14);
|
|
372
|
-
}
|
|
373
384
|
.cgui\:h-20 {
|
|
374
385
|
height: calc(var(--cgui-spacing) * 20);
|
|
375
386
|
}
|
|
387
|
+
.cgui\:h-24 {
|
|
388
|
+
height: calc(var(--cgui-spacing) * 24);
|
|
389
|
+
}
|
|
376
390
|
.cgui\:h-30 {
|
|
377
391
|
height: calc(var(--cgui-spacing) * 30);
|
|
378
392
|
}
|
|
@@ -388,6 +402,12 @@
|
|
|
388
402
|
.cgui\:h-full {
|
|
389
403
|
height: 100%;
|
|
390
404
|
}
|
|
405
|
+
.cgui\:h-px {
|
|
406
|
+
height: 1px;
|
|
407
|
+
}
|
|
408
|
+
.cgui\:max-h-\(--bits-dropdown-menu-content-available-height\) {
|
|
409
|
+
max-height: var(--bits-dropdown-menu-content-available-height);
|
|
410
|
+
}
|
|
391
411
|
.cgui\:max-h-\(--bits-select-content-available-height\) {
|
|
392
412
|
max-height: var(--bits-select-content-available-height);
|
|
393
413
|
}
|
|
@@ -436,6 +456,15 @@
|
|
|
436
456
|
.cgui\:w-40 {
|
|
437
457
|
width: calc(var(--cgui-spacing) * 40);
|
|
438
458
|
}
|
|
459
|
+
.cgui\:w-48 {
|
|
460
|
+
width: calc(var(--cgui-spacing) * 48);
|
|
461
|
+
}
|
|
462
|
+
.cgui\:w-70 {
|
|
463
|
+
width: calc(var(--cgui-spacing) * 70);
|
|
464
|
+
}
|
|
465
|
+
.cgui\:w-\[420px\] {
|
|
466
|
+
width: 420px;
|
|
467
|
+
}
|
|
439
468
|
.cgui\:w-auto {
|
|
440
469
|
width: auto;
|
|
441
470
|
}
|
|
@@ -445,6 +474,9 @@
|
|
|
445
474
|
.cgui\:w-full {
|
|
446
475
|
width: 100%;
|
|
447
476
|
}
|
|
477
|
+
.cgui\:w-px {
|
|
478
|
+
width: 1px;
|
|
479
|
+
}
|
|
448
480
|
.cgui\:w-screen {
|
|
449
481
|
width: 100vw;
|
|
450
482
|
}
|
|
@@ -472,15 +504,30 @@
|
|
|
472
504
|
.cgui\:max-w-200 {
|
|
473
505
|
max-width: calc(var(--cgui-spacing) * 200);
|
|
474
506
|
}
|
|
507
|
+
.cgui\:max-w-\[90vw\] {
|
|
508
|
+
max-width: 90vw;
|
|
509
|
+
}
|
|
510
|
+
.cgui\:min-w-\(--bits-dropdown-menu-anchor-width\) {
|
|
511
|
+
min-width: var(--bits-dropdown-menu-anchor-width);
|
|
512
|
+
}
|
|
513
|
+
.cgui\:min-w-\(--bits-popover-anchor-width\) {
|
|
514
|
+
min-width: var(--bits-popover-anchor-width);
|
|
515
|
+
}
|
|
475
516
|
.cgui\:min-w-\(--bits-select-anchor-width\) {
|
|
476
517
|
min-width: var(--bits-select-anchor-width);
|
|
477
518
|
}
|
|
478
519
|
.cgui\:min-w-0 {
|
|
479
520
|
min-width: calc(var(--cgui-spacing) * 0);
|
|
480
521
|
}
|
|
522
|
+
.cgui\:min-w-35 {
|
|
523
|
+
min-width: calc(var(--cgui-spacing) * 35);
|
|
524
|
+
}
|
|
481
525
|
.cgui\:min-w-42 {
|
|
482
526
|
min-width: calc(var(--cgui-spacing) * 42);
|
|
483
527
|
}
|
|
528
|
+
.cgui\:min-w-64 {
|
|
529
|
+
min-width: calc(var(--cgui-spacing) * 64);
|
|
530
|
+
}
|
|
484
531
|
.cgui\:min-w-fit {
|
|
485
532
|
min-width: fit-content;
|
|
486
533
|
}
|
|
@@ -496,6 +543,12 @@
|
|
|
496
543
|
.cgui\:grow {
|
|
497
544
|
flex-grow: 1;
|
|
498
545
|
}
|
|
546
|
+
.cgui\:origin-\(--bits-dropdown-menu-content-transform-origin\) {
|
|
547
|
+
transform-origin: var(--bits-dropdown-menu-content-transform-origin);
|
|
548
|
+
}
|
|
549
|
+
.cgui\:origin-\(--bits-popover-content-transform-origin\) {
|
|
550
|
+
transform-origin: var(--bits-popover-content-transform-origin);
|
|
551
|
+
}
|
|
499
552
|
.cgui\:origin-\(--bits-select-content-transform-origin\) {
|
|
500
553
|
transform-origin: var(--bits-select-content-transform-origin);
|
|
501
554
|
}
|
|
@@ -586,11 +639,14 @@
|
|
|
586
639
|
.cgui\:gap-2\.5 {
|
|
587
640
|
gap: calc(var(--cgui-spacing) * 2.5);
|
|
588
641
|
}
|
|
642
|
+
.cgui\:gap-3 {
|
|
643
|
+
gap: calc(var(--cgui-spacing) * 3);
|
|
644
|
+
}
|
|
589
645
|
.cgui\:gap-4 {
|
|
590
646
|
gap: calc(var(--cgui-spacing) * 4);
|
|
591
647
|
}
|
|
592
|
-
.cgui\:gap-
|
|
593
|
-
gap: calc(var(--cgui-spacing) *
|
|
648
|
+
.cgui\:gap-16 {
|
|
649
|
+
gap: calc(var(--cgui-spacing) * 16);
|
|
594
650
|
}
|
|
595
651
|
.cgui\:space-y-1 {
|
|
596
652
|
:where(& > :not(:last-child)) {
|
|
@@ -599,6 +655,20 @@
|
|
|
599
655
|
margin-block-end: calc(calc(var(--cgui-spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
|
|
600
656
|
}
|
|
601
657
|
}
|
|
658
|
+
.cgui\:space-y-2 {
|
|
659
|
+
:where(& > :not(:last-child)) {
|
|
660
|
+
--tw-space-y-reverse: 0;
|
|
661
|
+
margin-block-start: calc(calc(var(--cgui-spacing) * 2) * var(--tw-space-y-reverse));
|
|
662
|
+
margin-block-end: calc(calc(var(--cgui-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
.cgui\:space-y-3 {
|
|
666
|
+
:where(& > :not(:last-child)) {
|
|
667
|
+
--tw-space-y-reverse: 0;
|
|
668
|
+
margin-block-start: calc(calc(var(--cgui-spacing) * 3) * var(--tw-space-y-reverse));
|
|
669
|
+
margin-block-end: calc(calc(var(--cgui-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
670
|
+
}
|
|
671
|
+
}
|
|
602
672
|
.cgui\:space-x-4 {
|
|
603
673
|
:where(& > :not(:last-child)) {
|
|
604
674
|
--tw-space-x-reverse: 0;
|
|
@@ -660,6 +730,10 @@
|
|
|
660
730
|
border-style: var(--tw-border-style);
|
|
661
731
|
border-width: 1px;
|
|
662
732
|
}
|
|
733
|
+
.cgui\:border-2 {
|
|
734
|
+
border-style: var(--tw-border-style);
|
|
735
|
+
border-width: 2px;
|
|
736
|
+
}
|
|
663
737
|
.cgui\:border-t {
|
|
664
738
|
border-top-style: var(--tw-border-style);
|
|
665
739
|
border-top-width: 1px;
|
|
@@ -672,6 +746,10 @@
|
|
|
672
746
|
border-bottom-style: var(--tw-border-style);
|
|
673
747
|
border-bottom-width: 1px;
|
|
674
748
|
}
|
|
749
|
+
.cgui\:border-dashed {
|
|
750
|
+
--tw-border-style: dashed;
|
|
751
|
+
border-style: dashed;
|
|
752
|
+
}
|
|
675
753
|
.cgui\:border-none {
|
|
676
754
|
--tw-border-style: none;
|
|
677
755
|
border-style: none;
|
|
@@ -775,6 +853,12 @@
|
|
|
775
853
|
.cgui\:bg-surface-lightest {
|
|
776
854
|
background-color: var(--cg-ui-palette-neutral-10);
|
|
777
855
|
}
|
|
856
|
+
.cgui\:bg-surface-lightest\/50 {
|
|
857
|
+
background-color: var(--cg-ui-palette-neutral-10);
|
|
858
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
859
|
+
background-color: color-mix(in oklab, var(--cg-ui-palette-neutral-10) 50%, transparent);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
778
862
|
.cgui\:bg-surface-primary {
|
|
779
863
|
background-color: var(--cg-ui-palette-primary-80);
|
|
780
864
|
}
|
|
@@ -823,6 +907,9 @@
|
|
|
823
907
|
.cgui\:p-1 {
|
|
824
908
|
padding: calc(var(--cgui-spacing) * 1);
|
|
825
909
|
}
|
|
910
|
+
.cgui\:p-1\.5 {
|
|
911
|
+
padding: calc(var(--cgui-spacing) * 1.5);
|
|
912
|
+
}
|
|
826
913
|
.cgui\:p-2 {
|
|
827
914
|
padding: calc(var(--cgui-spacing) * 2);
|
|
828
915
|
}
|
|
@@ -871,6 +958,12 @@
|
|
|
871
958
|
.cgui\:py-4 {
|
|
872
959
|
padding-block: calc(var(--cgui-spacing) * 4);
|
|
873
960
|
}
|
|
961
|
+
.cgui\:py-5 {
|
|
962
|
+
padding-block: calc(var(--cgui-spacing) * 5);
|
|
963
|
+
}
|
|
964
|
+
.cgui\:pt-2 {
|
|
965
|
+
padding-top: calc(var(--cgui-spacing) * 2);
|
|
966
|
+
}
|
|
874
967
|
.cgui\:pt-4 {
|
|
875
968
|
padding-top: calc(var(--cgui-spacing) * 4);
|
|
876
969
|
}
|
|
@@ -910,6 +1003,10 @@
|
|
|
910
1003
|
.cgui\:align-middle {
|
|
911
1004
|
vertical-align: middle;
|
|
912
1005
|
}
|
|
1006
|
+
.cgui\:text-base {
|
|
1007
|
+
font-size: var(--cgui-text-base);
|
|
1008
|
+
line-height: var(--tw-leading, var(--cgui-text-base--line-height));
|
|
1009
|
+
}
|
|
913
1010
|
.cgui\:text-body {
|
|
914
1011
|
font-size: var(--cg-ui-fz-body);
|
|
915
1012
|
line-height: var(--tw-leading, var(--cg-ui-lh-body));
|
|
@@ -926,6 +1023,10 @@
|
|
|
926
1023
|
font-size: var(--cg-ui-fz-caption-2);
|
|
927
1024
|
line-height: var(--tw-leading, var(--cg-ui-lh-caption-2));
|
|
928
1025
|
}
|
|
1026
|
+
.cgui\:text-heading {
|
|
1027
|
+
font-size: var(--cg-ui-fz-heading);
|
|
1028
|
+
line-height: var(--tw-leading, var(--cg-ui-lh-heading));
|
|
1029
|
+
}
|
|
929
1030
|
.cgui\:text-heading-2 {
|
|
930
1031
|
font-size: var(--cg-ui-fz-heading-2);
|
|
931
1032
|
line-height: var(--tw-leading, var(--cg-ui-lh-heading-2));
|
|
@@ -938,10 +1039,18 @@
|
|
|
938
1039
|
font-size: var(--cgui-text-sm);
|
|
939
1040
|
line-height: var(--tw-leading, var(--cgui-text-sm--line-height));
|
|
940
1041
|
}
|
|
1042
|
+
.cgui\:text-xs {
|
|
1043
|
+
font-size: var(--cgui-text-xs);
|
|
1044
|
+
line-height: var(--tw-leading, var(--cgui-text-xs--line-height));
|
|
1045
|
+
}
|
|
941
1046
|
.cgui\:leading-none {
|
|
942
1047
|
--tw-leading: 1;
|
|
943
1048
|
line-height: 1;
|
|
944
1049
|
}
|
|
1050
|
+
.cgui\:leading-relaxed {
|
|
1051
|
+
--tw-leading: var(--cgui-leading-relaxed);
|
|
1052
|
+
line-height: var(--cgui-leading-relaxed);
|
|
1053
|
+
}
|
|
945
1054
|
.cgui\:font-medium {
|
|
946
1055
|
--tw-font-weight: var(--cgui-font-weight-medium);
|
|
947
1056
|
font-weight: var(--cgui-font-weight-medium);
|
|
@@ -950,6 +1059,10 @@
|
|
|
950
1059
|
--tw-font-weight: var(--cgui-font-weight-normal);
|
|
951
1060
|
font-weight: var(--cgui-font-weight-normal);
|
|
952
1061
|
}
|
|
1062
|
+
.cgui\:font-semibold {
|
|
1063
|
+
--tw-font-weight: var(--cgui-font-weight-semibold);
|
|
1064
|
+
font-weight: var(--cgui-font-weight-semibold);
|
|
1065
|
+
}
|
|
953
1066
|
.cgui\:whitespace-nowrap {
|
|
954
1067
|
white-space: nowrap;
|
|
955
1068
|
}
|
|
@@ -1020,6 +1133,10 @@
|
|
|
1020
1133
|
--tw-shadow: var(--cg-ui-shadow-dialog);
|
|
1021
1134
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1022
1135
|
}
|
|
1136
|
+
.cgui\:shadow-dropdown {
|
|
1137
|
+
--tw-shadow: var(--cg-ui-shadow-dropdown);
|
|
1138
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1139
|
+
}
|
|
1023
1140
|
.cgui\:shadow-none {
|
|
1024
1141
|
--tw-shadow: 0 0 #0000;
|
|
1025
1142
|
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 +1153,10 @@
|
|
|
1036
1153
|
--tw-shadow: var(--cg-ui-shadow-select);
|
|
1037
1154
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1038
1155
|
}
|
|
1156
|
+
.cgui\:shadow-sm {
|
|
1157
|
+
--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));
|
|
1158
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1159
|
+
}
|
|
1039
1160
|
.cgui\:shadow-toast {
|
|
1040
1161
|
--tw-shadow: var(--cg-ui-shadow-toast);
|
|
1041
1162
|
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 +1172,11 @@
|
|
|
1051
1172
|
.cgui\:outline-stroke-focus {
|
|
1052
1173
|
outline-color: var(--cg-ui-palette-primary-60);
|
|
1053
1174
|
}
|
|
1175
|
+
.cgui\:transition-\[background-color\,color\] {
|
|
1176
|
+
transition-property: background-color,color;
|
|
1177
|
+
transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
|
|
1178
|
+
transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
|
|
1179
|
+
}
|
|
1054
1180
|
.cgui\:transition-\[opacity\] {
|
|
1055
1181
|
transition-property: opacity;
|
|
1056
1182
|
transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
|
|
@@ -1061,11 +1187,20 @@
|
|
|
1061
1187
|
transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
|
|
1062
1188
|
transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
|
|
1063
1189
|
}
|
|
1190
|
+
.cgui\:transition-colors {
|
|
1191
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
1192
|
+
transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
|
|
1193
|
+
transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
|
|
1194
|
+
}
|
|
1064
1195
|
.cgui\:transition-transform {
|
|
1065
1196
|
transition-property: transform, translate, scale, rotate;
|
|
1066
1197
|
transition-timing-function: var(--tw-ease, var(--cgui-default-transition-timing-function));
|
|
1067
1198
|
transition-duration: var(--tw-duration, var(--cgui-default-transition-duration));
|
|
1068
1199
|
}
|
|
1200
|
+
.cgui\:duration-150 {
|
|
1201
|
+
--tw-duration: 150ms;
|
|
1202
|
+
transition-duration: 150ms;
|
|
1203
|
+
}
|
|
1069
1204
|
.cgui\:duration-250 {
|
|
1070
1205
|
--tw-duration: 250ms;
|
|
1071
1206
|
transition-duration: 250ms;
|
|
@@ -1238,6 +1373,13 @@
|
|
|
1238
1373
|
}
|
|
1239
1374
|
}
|
|
1240
1375
|
}
|
|
1376
|
+
.cgui\:hover\:bg-surface-hover {
|
|
1377
|
+
&:hover {
|
|
1378
|
+
@media (hover: hover) {
|
|
1379
|
+
background-color: var(--cg-ui-palette-neutral-01);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1241
1383
|
.cgui\:hover\:bg-surface-primary-active {
|
|
1242
1384
|
&:hover {
|
|
1243
1385
|
@media (hover: hover) {
|
|
@@ -1329,6 +1471,11 @@
|
|
|
1329
1471
|
--tw-ring-color: var(--cg-ui-palette-system-error-100);
|
|
1330
1472
|
}
|
|
1331
1473
|
}
|
|
1474
|
+
.cgui\:data-highlighted\:bg-surface-lightest {
|
|
1475
|
+
&[data-highlighted] {
|
|
1476
|
+
background-color: var(--cg-ui-palette-neutral-10);
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1332
1479
|
.cgui\:data-\[active\=\"\"\]\:bg-surface-white {
|
|
1333
1480
|
&[data-active=""] {
|
|
1334
1481
|
background-color: var(--cg-ui-palette-neutral-0);
|
|
@@ -1415,14 +1562,9 @@
|
|
|
1415
1562
|
background-color: var(--cg-ui-palette-neutral-10);
|
|
1416
1563
|
}
|
|
1417
1564
|
}
|
|
1418
|
-
.cgui\:data-\[
|
|
1419
|
-
&[data-
|
|
1420
|
-
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
.cgui\:data-\[orientation\=horizontal\]\:w-full {
|
|
1424
|
-
&[data-orientation="horizontal"] {
|
|
1425
|
-
width: 100%;
|
|
1565
|
+
.cgui\:data-\[inset\]\:ps-8 {
|
|
1566
|
+
&[data-inset] {
|
|
1567
|
+
padding-inline-start: calc(var(--cgui-spacing) * 8);
|
|
1426
1568
|
}
|
|
1427
1569
|
}
|
|
1428
1570
|
.cgui\:data-\[orientation\=vertical\]\:h-auto {
|
|
@@ -1430,16 +1572,6 @@
|
|
|
1430
1572
|
height: auto;
|
|
1431
1573
|
}
|
|
1432
1574
|
}
|
|
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
1575
|
.cgui\:data-\[placeholder\]\:text-fg-regular {
|
|
1444
1576
|
&[data-placeholder] {
|
|
1445
1577
|
color: var(--cg-ui-palette-neutral-50);
|
|
@@ -1482,6 +1614,16 @@
|
|
|
1482
1614
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1483
1615
|
}
|
|
1484
1616
|
}
|
|
1617
|
+
.cgui\:data-\[side\=left\]\:slide-in-from-end-2 {
|
|
1618
|
+
&[data-side="left"] {
|
|
1619
|
+
&:where(:dir(ltr),[dir="ltr"],[dir="ltr"]*) {
|
|
1620
|
+
--tw-enter-translate-x: calc(2*var(--spacing));
|
|
1621
|
+
}
|
|
1622
|
+
&:where(:dir(rtl),[dir="rtl"],[dir="rtl"]*) {
|
|
1623
|
+
--tw-enter-translate-x: calc(2*var(--spacing)*-1);
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1485
1627
|
.cgui\:data-\[side\=left\]\:slide-in-from-right-2 {
|
|
1486
1628
|
&[data-side="left"] {
|
|
1487
1629
|
--tw-enter-translate-x: calc(2*var(--spacing));
|
|
@@ -1493,6 +1635,16 @@
|
|
|
1493
1635
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1494
1636
|
}
|
|
1495
1637
|
}
|
|
1638
|
+
.cgui\:data-\[side\=right\]\:slide-in-from-start-2 {
|
|
1639
|
+
&[data-side="right"] {
|
|
1640
|
+
&:where(:dir(ltr),[dir="ltr"],[dir="ltr"]*) {
|
|
1641
|
+
--tw-enter-translate-x: calc(2*var(--spacing)*-1);
|
|
1642
|
+
}
|
|
1643
|
+
&:where(:dir(rtl),[dir="rtl"],[dir="rtl"]*) {
|
|
1644
|
+
--tw-enter-translate-x: calc(2*var(--spacing));
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1496
1648
|
.cgui\:data-\[side\=right\]\:slide-in-from-left-2 {
|
|
1497
1649
|
&[data-side="right"] {
|
|
1498
1650
|
--tw-enter-translate-x: calc(2*var(--spacing)*-1);
|
|
@@ -1712,6 +1864,17 @@
|
|
|
1712
1864
|
flex-shrink: 0;
|
|
1713
1865
|
}
|
|
1714
1866
|
}
|
|
1867
|
+
.cgui\:\[\&_svg\]\:text-icon-regular {
|
|
1868
|
+
& svg {
|
|
1869
|
+
color: var(--cg-ui-palette-neutral-50);
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
.cgui\:\[\&_svg\:not\(\[class\*\=\"size-\"\]\)\]\:size-4\.5 {
|
|
1873
|
+
& svg:not([class*="size-"]) {
|
|
1874
|
+
width: calc(var(--cgui-spacing) * 4.5);
|
|
1875
|
+
height: calc(var(--cgui-spacing) * 4.5);
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1715
1878
|
.cgui\:\[\&_tr\]\:h-10 {
|
|
1716
1879
|
& tr {
|
|
1717
1880
|
height: calc(var(--cgui-spacing) * 10);
|
|
@@ -1966,12 +2129,14 @@
|
|
|
1966
2129
|
--cg-ui-number-xxl: 40;
|
|
1967
2130
|
--cg-ui-number-2xxl: 48;
|
|
1968
2131
|
--cg-ui-number-max: 360;
|
|
2132
|
+
--cg-ui-shadow-base: rgba(0, 0, 0, 0.1) 0px 4px 12px;
|
|
1969
2133
|
--cg-ui-shadow-toast: 0px 0px 8px 0px hsla(0, 0%, 0%, 0.2);
|
|
1970
2134
|
--cg-ui-shadow-switch-thumb: 0px 1px 1px 0px hsla(0, 0%, 0%, 0.25);
|
|
1971
2135
|
--cg-ui-shadow-segment-item: 0px 0px 4px 0px hsla(0, 0%, 0%, 0.1);
|
|
1972
|
-
--cg-ui-shadow-popover:
|
|
1973
|
-
--cg-ui-shadow-
|
|
1974
|
-
--cg-ui-shadow-
|
|
2136
|
+
--cg-ui-shadow-popover: var(--cg-ui-shadow-base);
|
|
2137
|
+
--cg-ui-shadow-dropdown: var(--cg-ui-shadow-base);
|
|
2138
|
+
--cg-ui-shadow-select: var(--cg-ui-shadow-base);
|
|
2139
|
+
--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
2140
|
--cg-ui-fz-base: 16;
|
|
1976
2141
|
--cg-ui-fz-heading: calc(16 / var(--cg-ui-fz-base) * 1rem);
|
|
1977
2142
|
--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:
|
|
206
|
-
--cg-ui-shadow-
|
|
207
|
-
--cg-ui-shadow-
|
|
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;
|
|
@@ -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-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
separator?: import("tailwind-
|
|
11
|
-
page?: import("tailwind-
|
|
12
|
-
item?: import("tailwind-
|
|
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-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
separator?: import("tailwind-
|
|
22
|
-
page?: import("tailwind-
|
|
23
|
-
item?: import("tailwind-
|
|
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-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
separator?: import("tailwind-
|
|
40
|
-
page?: import("tailwind-
|
|
41
|
-
item?: import("tailwind-
|
|
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,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { buttonVariants } from './styles.js';
|
|
3
3
|
import type { ButtonProps } from './types.js';
|
|
4
|
+
import { Spinner } from '../spinner/index.js';
|
|
4
5
|
import { cn } from '../../internal/utils/common.js';
|
|
5
6
|
import { Button, useId } from 'bits-ui';
|
|
6
7
|
import { fly } from 'svelte/transition';
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
|
|
39
40
|
{#if loading}
|
|
40
41
|
<span in:fly={{ duration: 200, x: 20 }} data-slot="loading" class={variants.chevron()}>
|
|
41
|
-
|
|
42
|
+
<Spinner size={18} />
|
|
42
43
|
</span>
|
|
43
44
|
{/if}
|
|
44
45
|
|
|
@@ -49,16 +49,16 @@ export const buttonVariants = tv({
|
|
|
49
49
|
},
|
|
50
50
|
size: {
|
|
51
51
|
xs: {
|
|
52
|
-
root: 'cgui:h-7.5',
|
|
52
|
+
root: 'cgui:h-7.5 cgui:px-2.5 cgui:text-body',
|
|
53
53
|
},
|
|
54
54
|
sm: {
|
|
55
|
-
root: 'cgui:h-8',
|
|
55
|
+
root: 'cgui:h-8 cgui:px-3 cgui:text-body',
|
|
56
56
|
},
|
|
57
57
|
md: {
|
|
58
|
-
root: 'cgui:h-
|
|
58
|
+
root: 'cgui:h-9 cgui:px-4 cgui:text-body',
|
|
59
59
|
},
|
|
60
60
|
lg: {
|
|
61
|
-
root: 'cgui:h-
|
|
61
|
+
root: 'cgui:h-10.5 cgui:px-4 cgui:text-heading-2',
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
w: {
|
|
@@ -73,34 +73,34 @@ export declare const CollapsibleStylesContext: Context<ReadableBox<{
|
|
|
73
73
|
root: (slotProps?: ({
|
|
74
74
|
variant?: "default" | "clean" | undefined;
|
|
75
75
|
iconPosition?: "end" | "start" | undefined;
|
|
76
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
76
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
|
|
77
77
|
trigger: (slotProps?: ({
|
|
78
78
|
variant?: "default" | "clean" | undefined;
|
|
79
79
|
iconPosition?: "end" | "start" | undefined;
|
|
80
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
80
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
|
|
81
81
|
icon: (slotProps?: ({
|
|
82
82
|
variant?: "default" | "clean" | undefined;
|
|
83
83
|
iconPosition?: "end" | "start" | undefined;
|
|
84
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
84
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
|
|
85
85
|
content: (slotProps?: ({
|
|
86
86
|
variant?: "default" | "clean" | undefined;
|
|
87
87
|
iconPosition?: "end" | "start" | undefined;
|
|
88
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
88
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
|
|
89
89
|
} & {
|
|
90
90
|
root: (slotProps?: ({
|
|
91
91
|
variant?: "default" | "clean" | undefined;
|
|
92
92
|
iconPosition?: "end" | "start" | undefined;
|
|
93
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
93
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
|
|
94
94
|
trigger: (slotProps?: ({
|
|
95
95
|
variant?: "default" | "clean" | undefined;
|
|
96
96
|
iconPosition?: "end" | "start" | undefined;
|
|
97
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
97
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
|
|
98
98
|
icon: (slotProps?: ({
|
|
99
99
|
variant?: "default" | "clean" | undefined;
|
|
100
100
|
iconPosition?: "end" | "start" | undefined;
|
|
101
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
101
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
|
|
102
102
|
content: (slotProps?: ({
|
|
103
103
|
variant?: "default" | "clean" | undefined;
|
|
104
104
|
iconPosition?: "end" | "start" | undefined;
|
|
105
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
105
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
|
|
106
106
|
} & {}>>;
|