@casinogate/ui 1.10.8 → 1.10.10

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 (40) hide show
  1. package/dist/assets/css/root.css +90 -3
  2. package/dist/components/button/button.component.svelte +13 -18
  3. package/dist/components/button/index.d.ts +1 -0
  4. package/dist/components/button/index.js +1 -0
  5. package/dist/components/button/styles.d.ts +75 -222
  6. package/dist/components/button/styles.js +39 -91
  7. package/dist/components/button/types.d.ts +1 -5
  8. package/dist/components/combobox/combobox.async.svelte +88 -18
  9. package/dist/components/combobox/combobox.svelte +88 -18
  10. package/dist/components/combobox/types.d.ts +35 -3
  11. package/dist/components/dialog/styles.js +3 -3
  12. package/dist/components/drawer/components/drawer.close.svelte +23 -0
  13. package/dist/components/drawer/components/drawer.close.svelte.d.ts +4 -0
  14. package/dist/components/drawer/components/drawer.content.svelte +18 -0
  15. package/dist/components/drawer/components/drawer.content.svelte.d.ts +5 -0
  16. package/dist/components/drawer/components/drawer.description.svelte +11 -0
  17. package/dist/components/drawer/components/drawer.description.svelte.d.ts +4 -0
  18. package/dist/components/drawer/components/drawer.handle.svelte +10 -0
  19. package/dist/components/drawer/components/drawer.handle.svelte.d.ts +4 -0
  20. package/dist/components/drawer/components/drawer.overlay.svelte +10 -0
  21. package/dist/components/drawer/components/drawer.overlay.svelte.d.ts +5 -0
  22. package/dist/components/drawer/components/drawer.portal.svelte +10 -0
  23. package/dist/components/drawer/components/drawer.portal.svelte.d.ts +4 -0
  24. package/dist/components/drawer/components/drawer.root.svelte +15 -0
  25. package/dist/components/drawer/components/drawer.root.svelte.d.ts +4 -0
  26. package/dist/components/drawer/components/drawer.title.svelte +11 -0
  27. package/dist/components/drawer/components/drawer.title.svelte.d.ts +4 -0
  28. package/dist/components/drawer/components/drawer.trigger.svelte +27 -0
  29. package/dist/components/drawer/components/drawer.trigger.svelte.d.ts +5 -0
  30. package/dist/components/drawer/exports-primitive.d.ts +9 -0
  31. package/dist/components/drawer/exports-primitive.js +9 -0
  32. package/dist/components/drawer/index.d.ts +2 -0
  33. package/dist/components/drawer/index.js +1 -0
  34. package/dist/components/drawer/styles.d.ts +232 -0
  35. package/dist/components/drawer/styles.js +62 -0
  36. package/dist/components/drawer/types.d.ts +11 -0
  37. package/dist/components/drawer/types.js +1 -0
  38. package/dist/components/index.d.ts +1 -0
  39. package/dist/components/index.js +1 -0
  40. package/package.json +3 -2
@@ -8,6 +8,7 @@
8
8
  --cgui-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
9
  "Courier New", monospace;
10
10
  --cgui-spacing: 0.25rem;
11
+ --cgui-container-sm: 24rem;
11
12
  --cgui-text-xs: 0.75rem;
12
13
  --cgui-text-xs--line-height: calc(1 / 0.75);
13
14
  --cgui-text-sm: 0.875rem;
@@ -223,6 +224,9 @@
223
224
  .cgui\:left-1\/2 {
224
225
  left: calc(1/2 * 100%);
225
226
  }
227
+ .cgui\:z-\(--cg-ui-z-index-dialog\) {
228
+ z-index: var(--cg-ui-z-index-dialog);
229
+ }
226
230
  .cgui\:z-\(--cg-ui-z-index-dropdown\) {
227
231
  z-index: var(--cg-ui-z-index-dropdown);
228
232
  }
@@ -232,9 +236,6 @@
232
236
  .cgui\:z-\(--cg-ui-z-index-select\) {
233
237
  z-index: var(--cg-ui-z-index-select);
234
238
  }
235
- .cgui\:z-\(--z-index-dialog\) {
236
- z-index: var(--z-index-dialog);
237
- }
238
239
  .cgui\:z-1 {
239
240
  z-index: 1;
240
241
  }
@@ -250,6 +251,9 @@
250
251
  .cgui\:my-1 {
251
252
  margin-block: calc(var(--cgui-spacing) * 1);
252
253
  }
254
+ .cgui\:my-2 {
255
+ margin-block: calc(var(--cgui-spacing) * 2);
256
+ }
253
257
  .cgui\:my-4 {
254
258
  margin-block: calc(var(--cgui-spacing) * 4);
255
259
  }
@@ -265,6 +269,9 @@
265
269
  .cgui\:mt-4 {
266
270
  margin-top: calc(var(--cgui-spacing) * 4);
267
271
  }
272
+ .cgui\:mt-6 {
273
+ margin-top: calc(var(--cgui-spacing) * 6);
274
+ }
268
275
  .cgui\:-mb-0\.5 {
269
276
  margin-bottom: calc(var(--cgui-spacing) * -0.5);
270
277
  }
@@ -372,6 +379,9 @@
372
379
  .cgui\:h-1 {
373
380
  height: calc(var(--cgui-spacing) * 1);
374
381
  }
382
+ .cgui\:h-1\.5 {
383
+ height: calc(var(--cgui-spacing) * 1.5);
384
+ }
375
385
  .cgui\:h-3 {
376
386
  height: calc(var(--cgui-spacing) * 3);
377
387
  }
@@ -456,6 +466,9 @@
456
466
  .cgui\:max-h-80 {
457
467
  max-height: calc(var(--cgui-spacing) * 80);
458
468
  }
469
+ .cgui\:max-h-\[96\%\] {
470
+ max-height: 96%;
471
+ }
459
472
  .cgui\:min-h-7\.5 {
460
473
  min-height: calc(var(--cgui-spacing) * 7.5);
461
474
  }
@@ -495,6 +508,9 @@
495
508
  .cgui\:w-11 {
496
509
  width: calc(var(--cgui-spacing) * 11);
497
510
  }
511
+ .cgui\:w-12 {
512
+ width: calc(var(--cgui-spacing) * 12);
513
+ }
498
514
  .cgui\:w-40 {
499
515
  width: calc(var(--cgui-spacing) * 40);
500
516
  }
@@ -555,6 +571,12 @@
555
571
  .cgui\:max-w-\[90vw\] {
556
572
  max-width: 90vw;
557
573
  }
574
+ .cgui\:max-w-\[96\%\] {
575
+ max-width: 96%;
576
+ }
577
+ .cgui\:max-w-sm {
578
+ max-width: var(--cgui-container-sm);
579
+ }
558
580
  .cgui\:min-w-\(--bits-dropdown-menu-anchor-width\) {
559
581
  min-width: var(--bits-dropdown-menu-anchor-width);
560
582
  }
@@ -783,6 +805,22 @@
783
805
  .cgui\:rounded-xxxs {
784
806
  border-radius: calc(var(--cg-ui-number-xxxs) * 1px);
785
807
  }
808
+ .cgui\:rounded-t-lg {
809
+ border-top-left-radius: calc(var(--cg-ui-number-lg) * 1px);
810
+ border-top-right-radius: calc(var(--cg-ui-number-lg) * 1px);
811
+ }
812
+ .cgui\:rounded-l-lg {
813
+ border-top-left-radius: calc(var(--cg-ui-number-lg) * 1px);
814
+ border-bottom-left-radius: calc(var(--cg-ui-number-lg) * 1px);
815
+ }
816
+ .cgui\:rounded-r-lg {
817
+ border-top-right-radius: calc(var(--cg-ui-number-lg) * 1px);
818
+ border-bottom-right-radius: calc(var(--cg-ui-number-lg) * 1px);
819
+ }
820
+ .cgui\:rounded-b-lg {
821
+ border-bottom-right-radius: calc(var(--cg-ui-number-lg) * 1px);
822
+ border-bottom-left-radius: calc(var(--cg-ui-number-lg) * 1px);
823
+ }
786
824
  .cgui\:border {
787
825
  border-style: var(--tw-border-style);
788
826
  border-width: 1px;
@@ -984,6 +1022,9 @@
984
1022
  .cgui\:p-4 {
985
1023
  padding: calc(var(--cgui-spacing) * 4);
986
1024
  }
1025
+ .cgui\:p-6 {
1026
+ padding: calc(var(--cgui-spacing) * 6);
1027
+ }
987
1028
  .cgui\:p-8 {
988
1029
  padding: calc(var(--cgui-spacing) * 8);
989
1030
  }
@@ -1868,6 +1909,26 @@
1868
1909
  --tw-exit-scale: .95;
1869
1910
  }
1870
1911
  }
1912
+ .cgui\:data-\[state\=closed\]\:slide-out-to-bottom-full {
1913
+ &[data-state="closed"] {
1914
+ --tw-exit-translate-y: calc(1*100%);
1915
+ }
1916
+ }
1917
+ .cgui\:data-\[state\=closed\]\:slide-out-to-left-full {
1918
+ &[data-state="closed"] {
1919
+ --tw-exit-translate-x: calc(1*-100%);
1920
+ }
1921
+ }
1922
+ .cgui\:data-\[state\=closed\]\:slide-out-to-right-full {
1923
+ &[data-state="closed"] {
1924
+ --tw-exit-translate-x: calc(1*100%);
1925
+ }
1926
+ }
1927
+ .cgui\:data-\[state\=closed\]\:slide-out-to-top-full {
1928
+ &[data-state="closed"] {
1929
+ --tw-exit-translate-y: calc(1*-100%);
1930
+ }
1931
+ }
1871
1932
  .cgui\:data-\[state\=indeterminate\]\:border-surface-primary {
1872
1933
  &[data-state="indeterminate"] {
1873
1934
  border-color: var(--cg-ui-color-surface-primary);
@@ -1896,6 +1957,26 @@
1896
1957
  --tw-enter-scale: .95;
1897
1958
  }
1898
1959
  }
1960
+ .cgui\:data-\[state\=open\]\:slide-in-from-bottom-full {
1961
+ &[data-state="open"] {
1962
+ --tw-enter-translate-y: calc(1*100%);
1963
+ }
1964
+ }
1965
+ .cgui\:data-\[state\=open\]\:slide-in-from-left-full {
1966
+ &[data-state="open"] {
1967
+ --tw-enter-translate-x: calc(1*-100%);
1968
+ }
1969
+ }
1970
+ .cgui\:data-\[state\=open\]\:slide-in-from-right-full {
1971
+ &[data-state="open"] {
1972
+ --tw-enter-translate-x: calc(1*100%);
1973
+ }
1974
+ }
1975
+ .cgui\:data-\[state\=open\]\:slide-in-from-top-full {
1976
+ &[data-state="open"] {
1977
+ --tw-enter-translate-y: calc(1*-100%);
1978
+ }
1979
+ }
1899
1980
  .cgui\:scrollbar-hover\:scrollbar-thumb-surface-regular\/60 {
1900
1981
  &::-webkit-scrollbar-thumb:hover {
1901
1982
  --scrollbar-thumb: var(--cg-ui-color-surface-regular);
@@ -2043,6 +2124,12 @@
2043
2124
  height: calc(var(--cgui-spacing) * 4);
2044
2125
  }
2045
2126
  }
2127
+ .cgui\:\[\&_svg\]\:size-4\.5 {
2128
+ & svg {
2129
+ width: calc(var(--cgui-spacing) * 4.5);
2130
+ height: calc(var(--cgui-spacing) * 4.5);
2131
+ }
2132
+ }
2046
2133
  .cgui\:\[\&_svg\]\:size-6 {
2047
2134
  & svg {
2048
2135
  width: calc(var(--cgui-spacing) * 6);
@@ -9,8 +9,6 @@
9
9
  const uid = $props.id();
10
10
 
11
11
  let {
12
- startChevron,
13
- endChevron,
14
12
  children,
15
13
  ref = $bindable(null),
16
14
  variant = 'primary',
@@ -24,28 +22,25 @@
24
22
  class: className,
25
23
  ...props
26
24
  }: ButtonProps = $props();
27
-
28
- const variants = $derived(buttonVariants({ variant, size, rounded, shadow, w, loading }));
29
25
  </script>
30
26
 
31
- <Button.Root data-slot="button" bind:ref {id} class={cn(variants.root(), className)} {disabled} {...props}>
32
- {#if startChevron}
33
- <span data-slot="start-chevron" class={variants.chevron}>
34
- {@render startChevron()}
35
- </span>
36
- {/if}
37
-
27
+ <Button.Root
28
+ data-slot="button"
29
+ bind:ref
30
+ {id}
31
+ class={cn(buttonVariants({ variant, size, rounded, shadow, w, loading }), className)}
32
+ {disabled}
33
+ {...props}
34
+ >
38
35
  {@render children?.()}
39
36
 
40
37
  {#if loading}
41
- <span in:fly={{ duration: 200, x: 20 }} data-slot="loading" class={variants.chevron()}>
38
+ <span
39
+ in:fly={{ duration: 200, x: 20 }}
40
+ data-slot="loading"
41
+ class="cgui:inline-flex cgui:items-center cgui:justify-center cgui:shrink-0"
42
+ >
42
43
  <Spinner size={18} />
43
44
  </span>
44
45
  {/if}
45
-
46
- {#if endChevron && !loading}
47
- <span data-slot="end-chevron" class={variants.chevron}>
48
- {@render endChevron()}
49
- </span>
50
- {/if}
51
46
  </Button.Root>
@@ -1,2 +1,3 @@
1
1
  export * from './exports.js';
2
2
  export type { ButtonProps } from './types.js';
3
+ export { buttonVariants, type ButtonVariantsProps } from './styles.js';
@@ -1 +1,2 @@
1
1
  export * from './exports.js';
2
+ export { buttonVariants } from './styles.js';
@@ -1,264 +1,117 @@
1
1
  import type { VariantProps } from 'tailwind-variants';
2
2
  export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
3
3
  variant: {
4
- primary: {
5
- root: string[];
6
- };
7
- outline: {
8
- root: string[];
9
- };
10
- ghost: {
11
- root: string[];
12
- };
13
- link: {
14
- root: string[];
15
- };
16
- clean: {
17
- root: never[];
18
- };
4
+ primary: string[];
5
+ outline: string[];
6
+ ghost: string[];
7
+ link: string[];
8
+ clean: never[];
19
9
  };
20
10
  loading: {
21
- true: {
22
- root: string;
23
- };
11
+ true: string;
24
12
  };
25
13
  shadow: {
26
- true: {
27
- root: string;
28
- };
14
+ true: string;
29
15
  };
30
16
  size: {
31
- xs: {
32
- root: string;
33
- };
34
- sm: {
35
- root: string;
36
- };
37
- md: {
38
- root: string;
39
- };
40
- lg: {
41
- root: string;
42
- };
43
- clean: {
44
- root: string;
45
- };
17
+ xs: string;
18
+ sm: string;
19
+ md: string;
20
+ lg: string;
21
+ clean: string;
46
22
  };
47
23
  w: {
48
- full: {
49
- root: string;
50
- };
51
- auto: {
52
- root: string;
53
- };
54
- fit: {
55
- root: string;
56
- };
57
- clean: {
58
- root: string;
59
- };
24
+ full: string;
25
+ auto: string;
26
+ fit: string;
27
+ clean: string;
60
28
  };
61
29
  fullWidth: {
62
- true: {
63
- root: string;
64
- };
30
+ true: string;
65
31
  };
66
32
  rounded: {
67
- sm: {
68
- root: string;
69
- };
70
- md: {
71
- root: string;
72
- };
73
- lg: {
74
- root: string;
75
- };
76
- xl: {
77
- root: string;
78
- };
79
- full: {
80
- root: string;
81
- };
82
- clean: {
83
- root: string;
84
- };
85
- };
86
- }, {
87
- root: string[];
88
- chevron: string[];
89
- }, undefined, {
33
+ sm: string;
34
+ md: string;
35
+ lg: string;
36
+ xl: string;
37
+ full: string;
38
+ clean: string;
39
+ };
40
+ }, undefined, string[], {
90
41
  variant: {
91
- primary: {
92
- root: string[];
93
- };
94
- outline: {
95
- root: string[];
96
- };
97
- ghost: {
98
- root: string[];
99
- };
100
- link: {
101
- root: string[];
102
- };
103
- clean: {
104
- root: never[];
105
- };
42
+ primary: string[];
43
+ outline: string[];
44
+ ghost: string[];
45
+ link: string[];
46
+ clean: never[];
106
47
  };
107
48
  loading: {
108
- true: {
109
- root: string;
110
- };
49
+ true: string;
111
50
  };
112
51
  shadow: {
113
- true: {
114
- root: string;
115
- };
52
+ true: string;
116
53
  };
117
54
  size: {
118
- xs: {
119
- root: string;
120
- };
121
- sm: {
122
- root: string;
123
- };
124
- md: {
125
- root: string;
126
- };
127
- lg: {
128
- root: string;
129
- };
130
- clean: {
131
- root: string;
132
- };
55
+ xs: string;
56
+ sm: string;
57
+ md: string;
58
+ lg: string;
59
+ clean: string;
133
60
  };
134
61
  w: {
135
- full: {
136
- root: string;
137
- };
138
- auto: {
139
- root: string;
140
- };
141
- fit: {
142
- root: string;
143
- };
144
- clean: {
145
- root: string;
146
- };
62
+ full: string;
63
+ auto: string;
64
+ fit: string;
65
+ clean: string;
147
66
  };
148
67
  fullWidth: {
149
- true: {
150
- root: string;
151
- };
68
+ true: string;
152
69
  };
153
70
  rounded: {
154
- sm: {
155
- root: string;
156
- };
157
- md: {
158
- root: string;
159
- };
160
- lg: {
161
- root: string;
162
- };
163
- xl: {
164
- root: string;
165
- };
166
- full: {
167
- root: string;
168
- };
169
- clean: {
170
- root: string;
171
- };
172
- };
173
- }, {
174
- root: string[];
175
- chevron: string[];
176
- }, import("tailwind-variants").TVReturnType<{
71
+ sm: string;
72
+ md: string;
73
+ lg: string;
74
+ xl: string;
75
+ full: string;
76
+ clean: string;
77
+ };
78
+ }, undefined, import("tailwind-variants").TVReturnType<{
177
79
  variant: {
178
- primary: {
179
- root: string[];
180
- };
181
- outline: {
182
- root: string[];
183
- };
184
- ghost: {
185
- root: string[];
186
- };
187
- link: {
188
- root: string[];
189
- };
190
- clean: {
191
- root: never[];
192
- };
80
+ primary: string[];
81
+ outline: string[];
82
+ ghost: string[];
83
+ link: string[];
84
+ clean: never[];
193
85
  };
194
86
  loading: {
195
- true: {
196
- root: string;
197
- };
87
+ true: string;
198
88
  };
199
89
  shadow: {
200
- true: {
201
- root: string;
202
- };
90
+ true: string;
203
91
  };
204
92
  size: {
205
- xs: {
206
- root: string;
207
- };
208
- sm: {
209
- root: string;
210
- };
211
- md: {
212
- root: string;
213
- };
214
- lg: {
215
- root: string;
216
- };
217
- clean: {
218
- root: string;
219
- };
93
+ xs: string;
94
+ sm: string;
95
+ md: string;
96
+ lg: string;
97
+ clean: string;
220
98
  };
221
99
  w: {
222
- full: {
223
- root: string;
224
- };
225
- auto: {
226
- root: string;
227
- };
228
- fit: {
229
- root: string;
230
- };
231
- clean: {
232
- root: string;
233
- };
100
+ full: string;
101
+ auto: string;
102
+ fit: string;
103
+ clean: string;
234
104
  };
235
105
  fullWidth: {
236
- true: {
237
- root: string;
238
- };
106
+ true: string;
239
107
  };
240
108
  rounded: {
241
- sm: {
242
- root: string;
243
- };
244
- md: {
245
- root: string;
246
- };
247
- lg: {
248
- root: string;
249
- };
250
- xl: {
251
- root: string;
252
- };
253
- full: {
254
- root: string;
255
- };
256
- clean: {
257
- root: string;
258
- };
259
- };
260
- }, {
261
- root: string[];
262
- chevron: string[];
263
- }, undefined, unknown, unknown, undefined>>;
109
+ sm: string;
110
+ md: string;
111
+ lg: string;
112
+ xl: string;
113
+ full: string;
114
+ clean: string;
115
+ };
116
+ }, undefined, string[], unknown, unknown, undefined>>;
264
117
  export type ButtonVariantsProps = VariantProps<typeof buttonVariants>;