@casinogate/ui 2.0.9 → 2.0.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.
- package/dist/assets/css/root.css +304 -5
- package/dist/assets/css/tailwind/theme.css +24 -0
- package/dist/assets/css/tokens/primitives.css +14 -0
- package/dist/internal/utils/motion.d.ts +20 -0
- package/dist/internal/utils/motion.js +15 -0
- package/dist/primitives/app-shell/styles.js +4 -5
- package/dist/primitives/badge/styles.js +5 -4
- package/dist/primitives/breadcrumb/styles.js +1 -1
- package/dist/primitives/button/styles.js +5 -3
- package/dist/primitives/calendar/styles.js +2 -2
- package/dist/primitives/checkbox/components/checkbox.root.svelte +19 -6
- package/dist/primitives/checkbox/styles.js +1 -1
- package/dist/primitives/chip/styles.js +1 -1
- package/dist/primitives/collapsible/components/collapsaible.content.svelte +2 -1
- package/dist/primitives/collapsible/styles.js +2 -2
- package/dist/primitives/combobox/styles.js +1 -1
- package/dist/primitives/command/styles.js +2 -2
- package/dist/primitives/date-picker/styles.js +4 -3
- package/dist/primitives/dialog/styles.js +2 -0
- package/dist/primitives/drawer/styles.js +2 -2
- package/dist/primitives/dropdown/styles.js +2 -1
- package/dist/primitives/field/styles.js +1 -1
- package/dist/primitives/file-upload/styles.js +2 -2
- package/dist/primitives/input/styles.js +1 -1
- package/dist/primitives/navigation/components/navigation.content.svelte +2 -1
- package/dist/primitives/navigation/components/navigation.item.svelte +3 -2
- package/dist/primitives/navigation/components/navigation.root.svelte +2 -1
- package/dist/primitives/navigation/components/navigation.sub-content.svelte +10 -5
- package/dist/primitives/navigation/components/navigation.sub-trigger.svelte +18 -22
- package/dist/primitives/navigation/components/navigation.sub.svelte +3 -2
- package/dist/primitives/navigation/components/navigation.trigger.svelte +9 -11
- package/dist/primitives/navigation/styles.js +31 -12
- package/dist/primitives/pagination/styles.js +2 -2
- package/dist/primitives/pill/styles.js +2 -2
- package/dist/primitives/popover/styles.js +1 -0
- package/dist/primitives/segment/styles.js +4 -4
- package/dist/primitives/select/components/select.item.svelte +1 -1
- package/dist/primitives/select/styles.js +10 -5
- package/dist/primitives/skeleton/components/skeleton.svelte +18 -12
- package/dist/primitives/skeleton/styles.d.ts +40 -31
- package/dist/primitives/skeleton/styles.js +122 -17
- package/dist/primitives/skeleton/types.d.ts +4 -5
- package/dist/primitives/slider/styles.js +2 -2
- package/dist/primitives/switch/styles.js +2 -2
- package/dist/primitives/textarea/styles.js +1 -1
- package/dist/primitives/toast/styles.js +2 -2
- package/package.json +1 -1
- package/dist/assets/css/theme.css +0 -337
|
@@ -4,7 +4,7 @@ export const selectTriggerStyles = tv({
|
|
|
4
4
|
'cgui:group/select-trigger',
|
|
5
5
|
'cgui:relative cgui:flex cgui:items-center cgui:gap-1 cgui:flex-wrap',
|
|
6
6
|
'cgui:text-body cgui:outline-none cgui:bg-clip-padding',
|
|
7
|
-
'cgui:transition-
|
|
7
|
+
'cgui:transition-[color,background-color,border-color,box-shadow,transform] cgui:duration-(--cg-ui-duration-base) cgui:ease-out',
|
|
8
8
|
'cgui:[&_svg]:shrink-0 cgui:[&_svg]:pointer-events-none cgui:[&_svg]:text-icon-regular cgui:[&_svg:not([class*="size-"])]:size-4',
|
|
9
9
|
'cgui:has-[data-slot=chevron]:pr-3',
|
|
10
10
|
'cgui:data-[state=open]:ring-stroke-primary/50 cgui:data-[state=open]:ring-1',
|
|
@@ -70,9 +70,13 @@ export const selectContentStyles = tv({
|
|
|
70
70
|
'cgui:relative cgui:overflow-y-auto cgui:overflow-x-hidden',
|
|
71
71
|
'cgui:shadow-select cgui:bg-surface-white',
|
|
72
72
|
'cgui:rounded-sm',
|
|
73
|
-
'cgui:
|
|
74
|
-
'cgui:
|
|
75
|
-
'cgui:data-[state=open]:animate-in cgui:data-[state=closed]:animate-out
|
|
73
|
+
'cgui:max-h-(--bits-select-content-available-height) cgui:h-(--cg-ui-max-content-height)',
|
|
74
|
+
'cgui:z-(--cg-ui-z-index-select) cgui:origin-(--bits-select-content-transform-origin) cgui:scroll-smooth',
|
|
75
|
+
'cgui:data-[state=open]:animate-in cgui:data-[state=closed]:animate-out',
|
|
76
|
+
'cgui:data-[state=open]:fade-in-0 cgui:data-[state=closed]:fade-out-0',
|
|
77
|
+
'cgui:data-[state=open]:zoom-in-95 cgui:data-[state=closed]:zoom-out-95',
|
|
78
|
+
'cgui:data-[state=open]:slide-in-from-top-2 cgui:data-[state=closed]:slide-out-to-top-2',
|
|
79
|
+
'cgui:transition-[opacity,transform] cgui:duration-(--cg-ui-duration-fast) cgui:ease-out',
|
|
76
80
|
],
|
|
77
81
|
});
|
|
78
82
|
export const selectViewportStyles = tv({
|
|
@@ -85,13 +89,14 @@ export const selectItemStyles = tv({
|
|
|
85
89
|
'cgui:relative cgui:w-full',
|
|
86
90
|
'cgui:flex cgui:items-center cgui:gap-2',
|
|
87
91
|
'cgui:outline-hidden cgui:cursor-default cgui:select-none',
|
|
88
|
-
'cgui:transition-
|
|
92
|
+
'cgui:transition-[color,background-color,border-color,box-shadow,transform] cgui:duration-(--cg-ui-duration-base) cgui:ease-out',
|
|
89
93
|
'cgui:rounded-xs',
|
|
90
94
|
'cgui:p-2',
|
|
91
95
|
'cgui:text-body cgui:text-fg-medium',
|
|
92
96
|
'cgui:data-[disabled]:pointer-events-none cgui:data-[disabled]:opacity-50',
|
|
93
97
|
'cgui:[&_svg]:shrink-0 cgui:[&_svg]:pointer-events-none',
|
|
94
98
|
'cgui:data-[highlighted]:bg-surface-lightest',
|
|
99
|
+
'cgui:[&_svg:not([class*="size-"])]:size-4 cgui:[&_svg]:text-icon-regular',
|
|
95
100
|
],
|
|
96
101
|
});
|
|
97
102
|
export const selectGroupStyles = tv({
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { cn } from '../../../internal/utils/tailwindcss.js';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import { skeletonVariants } from '../styles.js';
|
|
4
5
|
import type { SkeletonProps } from '../types.js';
|
|
5
6
|
|
|
6
7
|
let {
|
|
7
8
|
ref = $bindable(null),
|
|
9
|
+
children,
|
|
8
10
|
class: className,
|
|
9
|
-
w = 'clear',
|
|
10
|
-
rounded = 'md',
|
|
11
|
-
variant = 'clear',
|
|
12
11
|
as = 'div',
|
|
13
|
-
|
|
12
|
+
variant = 'block',
|
|
13
|
+
intent = 'none',
|
|
14
|
+
rounded = 'sm',
|
|
15
|
+
animate = true,
|
|
16
|
+
'aria-hidden': ariaHidden = true,
|
|
14
17
|
...restProps
|
|
15
18
|
}: SkeletonProps = $props();
|
|
16
|
-
|
|
17
|
-
const variants = $derived(skeletonStyles({ w, rounded, variant }));
|
|
18
|
-
|
|
19
|
-
const items = $derived(Array.from({ length: count }).map((_, idx) => idx));
|
|
20
19
|
</script>
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
21
|
+
<svelte:element
|
|
22
|
+
this={as}
|
|
23
|
+
{...restProps}
|
|
24
|
+
bind:this={ref}
|
|
25
|
+
aria-hidden={ariaHidden}
|
|
26
|
+
data-slot="skeleton"
|
|
27
|
+
class={cn(skeletonVariants({ variant, intent, rounded, animate }), className)}
|
|
28
|
+
>
|
|
29
|
+
{@render children?.()}
|
|
30
|
+
</svelte:element>
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const
|
|
3
|
-
w: {
|
|
4
|
-
full: string;
|
|
5
|
-
clear: string;
|
|
6
|
-
};
|
|
7
|
-
rounded: {
|
|
8
|
-
sm: string;
|
|
9
|
-
md: string;
|
|
10
|
-
lg: string;
|
|
11
|
-
xl: string;
|
|
12
|
-
full: string;
|
|
13
|
-
clear: string;
|
|
14
|
-
};
|
|
1
|
+
import { type VariantProps } from '../../internal/utils/tailwindcss.js';
|
|
2
|
+
export declare const skeletonVariants: import("tailwind-variants").TVReturnType<{
|
|
15
3
|
variant: {
|
|
4
|
+
block: string;
|
|
5
|
+
text: string[];
|
|
6
|
+
};
|
|
7
|
+
intent: {
|
|
16
8
|
h1: string;
|
|
17
9
|
h2: string;
|
|
18
10
|
h3: string;
|
|
@@ -22,12 +14,7 @@ export declare const skeletonStyles: import("tailwind-variants").TVReturnType<{
|
|
|
22
14
|
p: string;
|
|
23
15
|
avatar: string;
|
|
24
16
|
'avatar-lg': string;
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
}, undefined, "cgui:animate-pulse cgui:bg-surface-regular", {
|
|
28
|
-
w: {
|
|
29
|
-
full: string;
|
|
30
|
-
clear: string;
|
|
17
|
+
none: string;
|
|
31
18
|
};
|
|
32
19
|
rounded: {
|
|
33
20
|
sm: string;
|
|
@@ -35,9 +22,17 @@ export declare const skeletonStyles: import("tailwind-variants").TVReturnType<{
|
|
|
35
22
|
lg: string;
|
|
36
23
|
xl: string;
|
|
37
24
|
full: string;
|
|
38
|
-
|
|
25
|
+
none: string;
|
|
26
|
+
};
|
|
27
|
+
animate: {
|
|
28
|
+
true: string;
|
|
39
29
|
};
|
|
30
|
+
}, undefined, string[], {
|
|
40
31
|
variant: {
|
|
32
|
+
block: string;
|
|
33
|
+
text: string[];
|
|
34
|
+
};
|
|
35
|
+
intent: {
|
|
41
36
|
h1: string;
|
|
42
37
|
h2: string;
|
|
43
38
|
h3: string;
|
|
@@ -47,12 +42,7 @@ export declare const skeletonStyles: import("tailwind-variants").TVReturnType<{
|
|
|
47
42
|
p: string;
|
|
48
43
|
avatar: string;
|
|
49
44
|
'avatar-lg': string;
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
53
|
-
w: {
|
|
54
|
-
full: string;
|
|
55
|
-
clear: string;
|
|
45
|
+
none: string;
|
|
56
46
|
};
|
|
57
47
|
rounded: {
|
|
58
48
|
sm: string;
|
|
@@ -60,9 +50,17 @@ export declare const skeletonStyles: import("tailwind-variants").TVReturnType<{
|
|
|
60
50
|
lg: string;
|
|
61
51
|
xl: string;
|
|
62
52
|
full: string;
|
|
63
|
-
|
|
53
|
+
none: string;
|
|
54
|
+
};
|
|
55
|
+
animate: {
|
|
56
|
+
true: string;
|
|
64
57
|
};
|
|
58
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
65
59
|
variant: {
|
|
60
|
+
block: string;
|
|
61
|
+
text: string[];
|
|
62
|
+
};
|
|
63
|
+
intent: {
|
|
66
64
|
h1: string;
|
|
67
65
|
h2: string;
|
|
68
66
|
h3: string;
|
|
@@ -72,7 +70,18 @@ export declare const skeletonStyles: import("tailwind-variants").TVReturnType<{
|
|
|
72
70
|
p: string;
|
|
73
71
|
avatar: string;
|
|
74
72
|
'avatar-lg': string;
|
|
75
|
-
|
|
73
|
+
none: string;
|
|
74
|
+
};
|
|
75
|
+
rounded: {
|
|
76
|
+
sm: string;
|
|
77
|
+
md: string;
|
|
78
|
+
lg: string;
|
|
79
|
+
xl: string;
|
|
80
|
+
full: string;
|
|
81
|
+
none: string;
|
|
82
|
+
};
|
|
83
|
+
animate: {
|
|
84
|
+
true: string;
|
|
76
85
|
};
|
|
77
|
-
}, undefined,
|
|
78
|
-
export type
|
|
86
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
87
|
+
export type SkeletonVariants = VariantProps<typeof skeletonVariants>;
|
|
@@ -1,10 +1,57 @@
|
|
|
1
|
+
// import { tv } from '../../internal/utils/tailwindcss.js';
|
|
2
|
+
// import type { VariantProps } from 'tailwind-variants';
|
|
1
3
|
import { tv } from '../../internal/utils/tailwindcss.js';
|
|
2
|
-
export const skeletonStyles = tv({
|
|
3
|
-
|
|
4
|
+
// export const skeletonStyles = tv({
|
|
5
|
+
// base: 'cgui:animate-pulse cgui:bg-surface-regular',
|
|
6
|
+
// variants: {
|
|
7
|
+
// w: {
|
|
8
|
+
// full: 'cgui:w-full',
|
|
9
|
+
// clear: '',
|
|
10
|
+
// },
|
|
11
|
+
// rounded: {
|
|
12
|
+
// sm: 'cgui:rounded-sm',
|
|
13
|
+
// md: 'cgui:rounded-md',
|
|
14
|
+
// lg: 'cgui:rounded-lg',
|
|
15
|
+
// xl: 'cgui:rounded-xl',
|
|
16
|
+
// full: 'cgui:rounded-full',
|
|
17
|
+
// clear: '',
|
|
18
|
+
// },
|
|
19
|
+
// variant: {
|
|
20
|
+
// h1: 'cgui:h-10 cgui:max-w-44 cgui:w-full',
|
|
21
|
+
// h2: 'cgui:h-8 cgui:max-w-36 cgui:w-full',
|
|
22
|
+
// h3: 'cgui:h-7 cgui:max-w-32 cgui:w-full',
|
|
23
|
+
// h4: 'cgui:h-6 cgui:max-w-32 cgui:w-full',
|
|
24
|
+
// h5: 'cgui:h-5 cgui:max-w-32 cgui:w-full',
|
|
25
|
+
// h6: 'cgui:h-4 cgui:max-w-32 cgui:w-full',
|
|
26
|
+
// p: 'cgui:h-3 cgui:max-w-100 cgui:w-full',
|
|
27
|
+
// avatar: 'cgui:size-11',
|
|
28
|
+
// 'avatar-lg': 'cgui:size-14',
|
|
29
|
+
// clear: '',
|
|
30
|
+
// },
|
|
31
|
+
// },
|
|
32
|
+
// });
|
|
33
|
+
// export type SkeletonVariantProps = VariantProps<typeof skeletonStyles>;
|
|
34
|
+
export const skeletonVariants = tv({
|
|
35
|
+
base: ['cgui:inline-flex'],
|
|
4
36
|
variants: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
37
|
+
variant: {
|
|
38
|
+
block: 'cgui:overflow-hidden cgui:bg-surface-regular',
|
|
39
|
+
text: [
|
|
40
|
+
'cgui:w-fit cgui:bg-clip-text cgui:text-transparent cgui:will-change-[background-position] cgui:bg-[length:200%_auto] cgui:bg-[position:-50%_0]',
|
|
41
|
+
'cgui:bg-[linear-gradient(105deg,color-mix(in_srgb,var(--cg-ui-color-fg-regular)_20%,transparent)_0%_40%,var(--cg-ui-color-fg-regular)_50%,color-mix(in_srgb,var(--cg-ui-color-fg-regular)_20%,transparent)_60%_100%)]',
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
intent: {
|
|
45
|
+
h1: '',
|
|
46
|
+
h2: '',
|
|
47
|
+
h3: '',
|
|
48
|
+
h4: '',
|
|
49
|
+
h5: '',
|
|
50
|
+
h6: '',
|
|
51
|
+
p: '',
|
|
52
|
+
avatar: '',
|
|
53
|
+
'avatar-lg': '',
|
|
54
|
+
none: '',
|
|
8
55
|
},
|
|
9
56
|
rounded: {
|
|
10
57
|
sm: 'cgui:rounded-sm',
|
|
@@ -12,19 +59,77 @@ export const skeletonStyles = tv({
|
|
|
12
59
|
lg: 'cgui:rounded-lg',
|
|
13
60
|
xl: 'cgui:rounded-xl',
|
|
14
61
|
full: 'cgui:rounded-full',
|
|
15
|
-
|
|
62
|
+
none: '',
|
|
16
63
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
h2: 'cgui:h-8 cgui:max-w-36 cgui:w-full',
|
|
20
|
-
h3: 'cgui:h-7 cgui:max-w-32 cgui:w-full',
|
|
21
|
-
h4: 'cgui:h-6 cgui:max-w-32 cgui:w-full',
|
|
22
|
-
h5: 'cgui:h-5 cgui:max-w-32 cgui:w-full',
|
|
23
|
-
h6: 'cgui:h-4 cgui:max-w-32 cgui:w-full',
|
|
24
|
-
p: 'cgui:h-3 cgui:max-w-100 cgui:w-full',
|
|
25
|
-
avatar: 'cgui:size-11',
|
|
26
|
-
'avatar-lg': 'cgui:size-14',
|
|
27
|
-
clear: '',
|
|
64
|
+
animate: {
|
|
65
|
+
true: '',
|
|
28
66
|
},
|
|
29
67
|
},
|
|
68
|
+
compoundVariants: [
|
|
69
|
+
{
|
|
70
|
+
variant: 'block',
|
|
71
|
+
animate: true,
|
|
72
|
+
class: 'cgui:animate-pulse',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
variant: 'text',
|
|
76
|
+
animate: true,
|
|
77
|
+
class: 'cgui:motion-safe:animate-shimmer cgui:motion-reduce:duration-[15s]',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
intent: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'],
|
|
81
|
+
variant: 'block',
|
|
82
|
+
class: 'cgui:h-10 cgui:max-w-44',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
intent: 'h1',
|
|
86
|
+
variant: 'block',
|
|
87
|
+
class: 'cgui:h-10 cgui:max-w-44',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
intent: 'h2',
|
|
91
|
+
variant: 'block',
|
|
92
|
+
class: 'cgui:h-8 cgui:max-w-36',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
intent: 'h3',
|
|
96
|
+
variant: 'block',
|
|
97
|
+
class: 'cgui:h-7 cgui:max-w-32',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
intent: 'h4',
|
|
101
|
+
variant: 'block',
|
|
102
|
+
class: 'cgui:h-6 cgui:max-w-32',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
intent: 'h5',
|
|
106
|
+
variant: 'block',
|
|
107
|
+
class: 'cgui:h-5 cgui:max-w-32',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
intent: 'h6',
|
|
111
|
+
variant: 'block',
|
|
112
|
+
class: 'cgui:h-4 cgui:max-w-32',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
intent: 'p',
|
|
116
|
+
variant: 'block',
|
|
117
|
+
class: 'cgui:h-3 cgui:max-w-100',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
intent: 'avatar',
|
|
121
|
+
variant: 'block',
|
|
122
|
+
class: 'cgui:size-11',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
intent: 'avatar-lg',
|
|
126
|
+
variant: 'block',
|
|
127
|
+
class: 'cgui:size-14',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
intent: ['avatar', 'avatar-lg'],
|
|
131
|
+
variant: 'text',
|
|
132
|
+
class: '',
|
|
133
|
+
},
|
|
134
|
+
],
|
|
30
135
|
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { PrimitiveDivAttributes } from '../../internal/types/html-attributes.js';
|
|
2
|
-
import type { WithElementRef, Without } from 'svelte-toolbelt';
|
|
3
|
-
import type {
|
|
4
|
-
type SkeletonPropsWithoutHTML = WithElementRef<{
|
|
5
|
-
count?: number;
|
|
2
|
+
import type { WithChildren, WithElementRef, Without } from 'svelte-toolbelt';
|
|
3
|
+
import type { SkeletonVariants } from './styles.js';
|
|
4
|
+
type SkeletonPropsWithoutHTML = WithElementRef<WithChildren<{
|
|
6
5
|
as?: keyof HTMLElementTagNameMap;
|
|
7
|
-
}
|
|
6
|
+
}>> & SkeletonVariants;
|
|
8
7
|
export type SkeletonProps = SkeletonPropsWithoutHTML & Without<PrimitiveDivAttributes, SkeletonPropsWithoutHTML>;
|
|
9
8
|
export {};
|
|
@@ -16,7 +16,7 @@ export const sliderPrimitiveRootStyles = tv({
|
|
|
16
16
|
export const sliderPrimitiveTrackStyles = tv({
|
|
17
17
|
base: [
|
|
18
18
|
'cgui:relative cgui:rounded-full cgui:grow cgui:overflow-hidden',
|
|
19
|
-
'cgui:cursor-pointer cgui:data-disabled:cursor-not-
|
|
19
|
+
'cgui:cursor-pointer cgui:data-disabled:cursor-not-allowed cgui:bg-surface-primary-light',
|
|
20
20
|
],
|
|
21
21
|
variants: {
|
|
22
22
|
size: {
|
|
@@ -75,7 +75,7 @@ export const sliderPrimitiveThumbStyles = tv({
|
|
|
75
75
|
'cgui:transition-colors',
|
|
76
76
|
'cgui:border cgui:border-stroke-focus cgui:bg-surface-lightest cgui:rounded-full',
|
|
77
77
|
'cgui:focus-visible:ring-stroke-focus cgui:focus-visible:outline-hidden',
|
|
78
|
-
'cgui:data-active:scale-
|
|
78
|
+
'cgui:data-active:scale-98 cgui:active:duration-(--cg-ui-duration-instant) cgui:shadow-thumb',
|
|
79
79
|
],
|
|
80
80
|
variants: {
|
|
81
81
|
size: {
|
|
@@ -6,7 +6,7 @@ export const switchRootVariants = tv({
|
|
|
6
6
|
'cgui:relative cgui:overflow-hidden',
|
|
7
7
|
'cgui:flex cgui:items-center cgui:p-0.5',
|
|
8
8
|
'cgui:bg-surface-regular cgui:rounded-xl',
|
|
9
|
-
'cgui:transition-
|
|
9
|
+
'cgui:transition-[background-color,border-color,box-shadow] cgui:duration-(--cg-ui-duration-base) cgui:ease-out',
|
|
10
10
|
'cgui:cursor-pointer cgui:select-none',
|
|
11
11
|
'cgui:data-[state=checked]:bg-surface-primary',
|
|
12
12
|
'cgui:active:[&_span]:w-2/3 cgui:active:data-[state=checked]:[&_span]:translate-x-[calc(44%+2px)]',
|
|
@@ -25,7 +25,7 @@ export const switchThumbVariants = tv({
|
|
|
25
25
|
base: [
|
|
26
26
|
'cgui:relative',
|
|
27
27
|
'cgui:h-full cgui:rounded-full cgui:bg-surface-light',
|
|
28
|
-
'cgui:transition-all cgui:duration-
|
|
28
|
+
'cgui:transition-all cgui:duration-(--cg-ui-duration-slow) cgui:ease-out',
|
|
29
29
|
'cgui:data-[state=checked]:translate-x-full cgui:data-[state=checked]:shadow-switch-thumb',
|
|
30
30
|
],
|
|
31
31
|
variants: {
|
|
@@ -5,7 +5,7 @@ export const textareaVariants = tv({
|
|
|
5
5
|
'cgui:scrollbar-thin cgui:scrollbar-track-surface-lightest cgui:scrollbar-thumb-rounded-md cgui:scrollbar-track-rounded-md',
|
|
6
6
|
'cgui:scrollbar-thumb-surface-regular/40 cgui:scrollbar-hover:scrollbar-thumb-surface-regular/60',
|
|
7
7
|
'cgui:outline-none cgui:text-body',
|
|
8
|
-
'cgui:transition-[
|
|
8
|
+
'cgui:transition-[color,background-color,border-color,box-shadow] cgui:duration-(--cg-ui-duration-base) cgui:ease-out',
|
|
9
9
|
'cgui:disabled:opacity-50 cgui:disabled:cursor-not-allowed',
|
|
10
10
|
'cgui:focus-visible:ring-stroke-primary/50 cgui:focus-visible:ring-1',
|
|
11
11
|
'cgui:aria-invalid:ring-stroke-error cgui:aria-invalid:border-stroke-error',
|
|
@@ -4,7 +4,7 @@ export const toastPrimitiveRootStyles = tv({
|
|
|
4
4
|
'cgui:overflow-hidden cgui:relative cgui:min-w-60 cgui:max-w-80',
|
|
5
5
|
'cgui:flex cgui:items-center cgui:gap-2 cgui:p-3',
|
|
6
6
|
'cgui:shadow-toast cgui:bg-surface-white',
|
|
7
|
-
'cgui:transition-
|
|
7
|
+
'cgui:transition-[color,background-color,border-color] cgui:duration-(--cg-ui-duration-base) cgui:ease-out',
|
|
8
8
|
'cgui:before:content-[""] cgui:before:pointer-events-none cgui:before:absolute cgui:before:top-0 cgui:before:inset-x-0 cgui:before:h-1.5 cgui:before:block',
|
|
9
9
|
],
|
|
10
10
|
variants: {
|
|
@@ -60,6 +60,6 @@ export const toastPrimitiveCloseStyles = tv({
|
|
|
60
60
|
'cgui:shrink-0 cgui:size-6 cgui:flex cgui:items-center cgui:justify-center',
|
|
61
61
|
'cgui:rounded-xs cgui:cursor-pointer cgui:select-none',
|
|
62
62
|
'cgui:text-fg-regular cgui:hover:text-fg-darkest',
|
|
63
|
-
'cgui:transition-colors cgui:duration-
|
|
63
|
+
'cgui:transition-colors cgui:duration-(--cg-ui-duration-base) cgui:ease-out',
|
|
64
64
|
],
|
|
65
65
|
});
|