@rark-ui/themes 1.0.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/.tsbuildinfo +1 -0
- package/dist/default/crafts/addons/index.d.ts +2 -0
- package/dist/default/crafts/addons/index.js +2 -0
- package/dist/default/crafts/addons/v-title.d.ts +47 -0
- package/dist/default/crafts/addons/v-title.js +33 -0
- package/dist/default/crafts/addons/virtual.d.ts +112 -0
- package/dist/default/crafts/addons/virtual.js +86 -0
- package/dist/default/crafts/core/badge.d.ts +44 -0
- package/dist/default/crafts/core/badge.js +48 -0
- package/dist/default/crafts/core/button.d.ts +107 -0
- package/dist/default/crafts/core/button.js +60 -0
- package/dist/default/crafts/core/checkbox.d.ts +62 -0
- package/dist/default/crafts/core/checkbox.js +70 -0
- package/dist/default/crafts/core/collapsible.d.ts +111 -0
- package/dist/default/crafts/core/collapsible.js +55 -0
- package/dist/default/crafts/core/date-picker.d.ts +369 -0
- package/dist/default/crafts/core/date-picker.js +242 -0
- package/dist/default/crafts/core/dialog.d.ts +116 -0
- package/dist/default/crafts/core/dialog.js +95 -0
- package/dist/default/crafts/core/editable.d.ts +197 -0
- package/dist/default/crafts/core/editable.js +95 -0
- package/dist/default/crafts/core/floating-panel.d.ts +143 -0
- package/dist/default/crafts/core/floating-panel.js +63 -0
- package/dist/default/crafts/core/hotkey.d.ts +149 -0
- package/dist/default/crafts/core/hotkey.js +16 -0
- package/dist/default/crafts/core/hover-card.d.ts +50 -0
- package/dist/default/crafts/core/hover-card.js +75 -0
- package/dist/default/crafts/core/icon.d.ts +8 -0
- package/dist/default/crafts/core/icon.js +7 -0
- package/dist/default/crafts/core/index.d.ts +33 -0
- package/dist/default/crafts/core/index.js +33 -0
- package/dist/default/crafts/core/input.d.ts +77 -0
- package/dist/default/crafts/core/input.js +45 -0
- package/dist/default/crafts/core/menu.d.ts +71 -0
- package/dist/default/crafts/core/menu.js +111 -0
- package/dist/default/crafts/core/message.d.ts +131 -0
- package/dist/default/crafts/core/message.js +58 -0
- package/dist/default/crafts/core/number-input.d.ts +83 -0
- package/dist/default/crafts/core/number-input.js +42 -0
- package/dist/default/crafts/core/pagination.d.ts +190 -0
- package/dist/default/crafts/core/pagination.js +100 -0
- package/dist/default/crafts/core/popover.d.ts +104 -0
- package/dist/default/crafts/core/popover.js +66 -0
- package/dist/default/crafts/core/progress.d.ts +110 -0
- package/dist/default/crafts/core/progress.js +121 -0
- package/dist/default/crafts/core/radio-group.d.ts +119 -0
- package/dist/default/crafts/core/radio-group.js +92 -0
- package/dist/default/crafts/core/rating-group.d.ts +71 -0
- package/dist/default/crafts/core/rating-group.js +38 -0
- package/dist/default/crafts/core/scroll-area.d.ts +74 -0
- package/dist/default/crafts/core/scroll-area.js +109 -0
- package/dist/default/crafts/core/select.d.ts +146 -0
- package/dist/default/crafts/core/select.js +114 -0
- package/dist/default/crafts/core/skeleton.d.ts +35 -0
- package/dist/default/crafts/core/skeleton.js +15 -0
- package/dist/default/crafts/core/slider.d.ts +167 -0
- package/dist/default/crafts/core/slider.js +85 -0
- package/dist/default/crafts/core/spin.d.ts +102 -0
- package/dist/default/crafts/core/spin.js +56 -0
- package/dist/default/crafts/core/switch.d.ts +92 -0
- package/dist/default/crafts/core/switch.js +66 -0
- package/dist/default/crafts/core/tabs.d.ts +119 -0
- package/dist/default/crafts/core/tabs.js +116 -0
- package/dist/default/crafts/core/tags-input.d.ts +158 -0
- package/dist/default/crafts/core/tags-input.js +72 -0
- package/dist/default/crafts/core/toast.d.ts +137 -0
- package/dist/default/crafts/core/toast.js +62 -0
- package/dist/default/crafts/core/toggle-group.d.ts +92 -0
- package/dist/default/crafts/core/toggle-group.js +49 -0
- package/dist/default/crafts/core/toggle.d.ts +29 -0
- package/dist/default/crafts/core/toggle.js +29 -0
- package/dist/default/crafts/core/tooltip.d.ts +86 -0
- package/dist/default/crafts/core/tooltip.js +55 -0
- package/dist/default/crafts/core/tree.d.ts +208 -0
- package/dist/default/crafts/core/tree.js +145 -0
- package/dist/default/crafts/index.d.ts +4 -0
- package/dist/default/crafts/index.js +2 -0
- package/dist/default/index.d.ts +4 -0
- package/dist/default/index.js +3 -0
- package/dist/razer/crafts/addons/index.d.ts +1 -0
- package/dist/razer/crafts/addons/index.js +1 -0
- package/dist/razer/crafts/core/index.d.ts +15 -0
- package/dist/razer/crafts/core/index.js +15 -0
- package/dist/razer/crafts/index.d.ts +4 -0
- package/dist/razer/crafts/index.js +2 -0
- package/dist/razer/index.css +5233 -0
- package/dist/razer/index.d.ts +4 -0
- package/dist/razer/index.js +3 -0
- package/dist/shared/utils/cn.d.ts +1 -0
- package/dist/shared/utils/cn.js +1 -0
- package/dist/shared/utils/tv.d.ts +37 -0
- package/dist/shared/utils/tv.js +29 -0
- package/package.json +47 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { VariantProps } from '../../../shared/utils/tv';
|
|
2
|
+
export declare const tvInput: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: {
|
|
5
|
+
root: string;
|
|
6
|
+
input: string;
|
|
7
|
+
};
|
|
8
|
+
sm: {
|
|
9
|
+
root: string;
|
|
10
|
+
input: string;
|
|
11
|
+
};
|
|
12
|
+
base: {
|
|
13
|
+
root: string;
|
|
14
|
+
input: string;
|
|
15
|
+
};
|
|
16
|
+
lg: {
|
|
17
|
+
root: string;
|
|
18
|
+
input: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} & {
|
|
22
|
+
unstyled: {
|
|
23
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
root: string[];
|
|
28
|
+
input: string[];
|
|
29
|
+
clearable: string[];
|
|
30
|
+
}, undefined, {
|
|
31
|
+
size: {
|
|
32
|
+
xs: {
|
|
33
|
+
root: string;
|
|
34
|
+
input: string;
|
|
35
|
+
};
|
|
36
|
+
sm: {
|
|
37
|
+
root: string;
|
|
38
|
+
input: string;
|
|
39
|
+
};
|
|
40
|
+
base: {
|
|
41
|
+
root: string;
|
|
42
|
+
input: string;
|
|
43
|
+
};
|
|
44
|
+
lg: {
|
|
45
|
+
root: string;
|
|
46
|
+
input: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
root: string[];
|
|
51
|
+
input: string[];
|
|
52
|
+
clearable: string[];
|
|
53
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
54
|
+
size: {
|
|
55
|
+
xs: {
|
|
56
|
+
root: string;
|
|
57
|
+
input: string;
|
|
58
|
+
};
|
|
59
|
+
sm: {
|
|
60
|
+
root: string;
|
|
61
|
+
input: string;
|
|
62
|
+
};
|
|
63
|
+
base: {
|
|
64
|
+
root: string;
|
|
65
|
+
input: string;
|
|
66
|
+
};
|
|
67
|
+
lg: {
|
|
68
|
+
root: string;
|
|
69
|
+
input: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
root: string[];
|
|
74
|
+
input: string[];
|
|
75
|
+
clearable: string[];
|
|
76
|
+
}, undefined, unknown, unknown>>;
|
|
77
|
+
export type InputVariants = VariantProps<typeof tvInput>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { tv } from '../../../shared/utils/tv';
|
|
2
|
+
const prefix = 'rui-input';
|
|
3
|
+
export const tvInput = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: [
|
|
6
|
+
'flex',
|
|
7
|
+
'items-center',
|
|
8
|
+
'min-w-0',
|
|
9
|
+
'border',
|
|
10
|
+
'rounded',
|
|
11
|
+
'transition-all',
|
|
12
|
+
'data-[state=disabled]:pointer-events-none',
|
|
13
|
+
'data-[state=disabled]:opacity-(--disabled-opacity)',
|
|
14
|
+
],
|
|
15
|
+
input: ['flex-1', 'w-0', 'outline-hidden', 'border-none', 'bg-transparent'],
|
|
16
|
+
clearable: ['size-[1lh]', 'flex', 'items-center', 'justify-center'],
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
size: {
|
|
20
|
+
xs: {
|
|
21
|
+
root: 'px-2 py-1.5 gap-1.5 text-xs',
|
|
22
|
+
input: 'placeholder:text-xs',
|
|
23
|
+
},
|
|
24
|
+
sm: {
|
|
25
|
+
root: 'px-2 py-1.5 gap-2 text-sm',
|
|
26
|
+
input: 'placeholder:text-sm',
|
|
27
|
+
},
|
|
28
|
+
base: {
|
|
29
|
+
root: 'px-2 py-2 gap-2.5 text-base',
|
|
30
|
+
input: 'placeholder:text-base',
|
|
31
|
+
},
|
|
32
|
+
lg: {
|
|
33
|
+
root: 'px-2 py-2.5 gap-3 text-lg',
|
|
34
|
+
input: 'placeholder:text-lg',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: { size: 'base' },
|
|
39
|
+
}, {
|
|
40
|
+
slots: {
|
|
41
|
+
root: prefix,
|
|
42
|
+
input: `${prefix}-input`,
|
|
43
|
+
clearable: `${prefix}-clearable`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { VariantProps } from '../../../shared/utils/tv';
|
|
2
|
+
export declare const tvMenu: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: string;
|
|
5
|
+
sm: string;
|
|
6
|
+
base: string;
|
|
7
|
+
lg: string;
|
|
8
|
+
};
|
|
9
|
+
bordered: {
|
|
10
|
+
true: string;
|
|
11
|
+
false: string;
|
|
12
|
+
};
|
|
13
|
+
} & {
|
|
14
|
+
unstyled: {
|
|
15
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
root: string;
|
|
20
|
+
content: string[];
|
|
21
|
+
contentInner: string[];
|
|
22
|
+
item: string[];
|
|
23
|
+
itemGroup: string;
|
|
24
|
+
itemGroupLabel: string;
|
|
25
|
+
triggerItem: string;
|
|
26
|
+
triggerItemIndicator: string[];
|
|
27
|
+
radioItem: string;
|
|
28
|
+
}, undefined, {
|
|
29
|
+
size: {
|
|
30
|
+
xs: string;
|
|
31
|
+
sm: string;
|
|
32
|
+
base: string;
|
|
33
|
+
lg: string;
|
|
34
|
+
};
|
|
35
|
+
bordered: {
|
|
36
|
+
true: string;
|
|
37
|
+
false: string;
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
root: string;
|
|
41
|
+
content: string[];
|
|
42
|
+
contentInner: string[];
|
|
43
|
+
item: string[];
|
|
44
|
+
itemGroup: string;
|
|
45
|
+
itemGroupLabel: string;
|
|
46
|
+
triggerItem: string;
|
|
47
|
+
triggerItemIndicator: string[];
|
|
48
|
+
radioItem: string;
|
|
49
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
50
|
+
size: {
|
|
51
|
+
xs: string;
|
|
52
|
+
sm: string;
|
|
53
|
+
base: string;
|
|
54
|
+
lg: string;
|
|
55
|
+
};
|
|
56
|
+
bordered: {
|
|
57
|
+
true: string;
|
|
58
|
+
false: string;
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
root: string;
|
|
62
|
+
content: string[];
|
|
63
|
+
contentInner: string[];
|
|
64
|
+
item: string[];
|
|
65
|
+
itemGroup: string;
|
|
66
|
+
itemGroupLabel: string;
|
|
67
|
+
triggerItem: string;
|
|
68
|
+
triggerItemIndicator: string[];
|
|
69
|
+
radioItem: string;
|
|
70
|
+
}, undefined, unknown, unknown>>;
|
|
71
|
+
export type MenuVariants = VariantProps<typeof tvMenu>;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { tv } from '../../../shared/utils/tv';
|
|
2
|
+
const prefix = 'rui-menu';
|
|
3
|
+
export const tvMenu = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: '',
|
|
6
|
+
content: [
|
|
7
|
+
'rounded-(--border-radius)',
|
|
8
|
+
'data-[state=open]:motion-opacity-in',
|
|
9
|
+
'data-[state=open]:motion-scale-in-95',
|
|
10
|
+
'data-[state=open]:data-[placement^=bottom]:motion-translate-y-in-[.25rem]',
|
|
11
|
+
'data-[state=open]:data-[placement^=top]:-motion-translate-y-in-[.25rem]',
|
|
12
|
+
'data-[state=open]:data-[placement^=left]:-motion-translate-x-in-[.25rem]',
|
|
13
|
+
'data-[state=open]:data-[placement^=right]:motion-translate-x-in-[.25rem]',
|
|
14
|
+
'data-[state=closed]:motion-opacity-out',
|
|
15
|
+
'data-[state=closed]:motion-scale-out-95',
|
|
16
|
+
'data-[state=closed]:data-[placement^=bottom]:motion-translate-y-out-[.25rem]',
|
|
17
|
+
'data-[state=closed]:data-[placement^=top]:-motion-translate-y-out-[.25rem]',
|
|
18
|
+
'data-[state=closed]:data-[placement^=left]:-motion-translate-x-out-[.25rem]',
|
|
19
|
+
'data-[state=closed]:data-[placement^=right]:motion-translate-x-out-[.25rem]',
|
|
20
|
+
],
|
|
21
|
+
contentInner: [
|
|
22
|
+
'relative',
|
|
23
|
+
'rounded-(--border-radius)',
|
|
24
|
+
'z-10',
|
|
25
|
+
'min-w-(--reference-width)',
|
|
26
|
+
],
|
|
27
|
+
item: [
|
|
28
|
+
'relative',
|
|
29
|
+
'flex',
|
|
30
|
+
'items-center',
|
|
31
|
+
'rounded',
|
|
32
|
+
'cursor-pointer',
|
|
33
|
+
'transition-colors',
|
|
34
|
+
'data-[disabled]:pointer-events-none',
|
|
35
|
+
'data-[disabled]:opacity-(--disabled-opacity)',
|
|
36
|
+
],
|
|
37
|
+
itemGroup: '',
|
|
38
|
+
itemGroupLabel: 'relative border-b',
|
|
39
|
+
triggerItem: 'justify-between',
|
|
40
|
+
triggerItemIndicator: [
|
|
41
|
+
'transition-transform',
|
|
42
|
+
'data-[state=open]:rotate-180',
|
|
43
|
+
],
|
|
44
|
+
radioItem: 'justify-between',
|
|
45
|
+
},
|
|
46
|
+
variants: {
|
|
47
|
+
size: {
|
|
48
|
+
xs: '',
|
|
49
|
+
sm: '',
|
|
50
|
+
base: '',
|
|
51
|
+
lg: '',
|
|
52
|
+
},
|
|
53
|
+
bordered: {
|
|
54
|
+
true: '',
|
|
55
|
+
false: '',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
compoundVariants: [
|
|
59
|
+
{
|
|
60
|
+
size: 'xs',
|
|
61
|
+
class: {
|
|
62
|
+
contentInner: 'px-1.5 py-1',
|
|
63
|
+
item: 'text-xs px-1.5 py-1 gap-1.5',
|
|
64
|
+
itemGroupLabel: 'text-xs px-1.5 py-1.5 mb-0.5',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
size: 'sm',
|
|
69
|
+
class: {
|
|
70
|
+
contentInner: 'px-2 py-1.5',
|
|
71
|
+
item: 'text-sm px-2 py-1.5 gap-2',
|
|
72
|
+
itemGroupLabel: 'text-sm px-2 py-2 mb-1',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
size: 'base',
|
|
77
|
+
class: {
|
|
78
|
+
contentInner: 'px-2.5 py-2',
|
|
79
|
+
item: 'text-base px-2.5 py-2 gap-2.5',
|
|
80
|
+
itemGroupLabel: 'text-base px-2.5 py-2.5 mb-1.5',
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
size: 'lg',
|
|
85
|
+
class: {
|
|
86
|
+
contentInner: 'px-3 py-2.5',
|
|
87
|
+
item: 'text-lg px-3 py-2.5 gap-3',
|
|
88
|
+
itemGroupLabel: 'text-xl px-3 py-3 mb-2',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
bordered: true,
|
|
93
|
+
class: {
|
|
94
|
+
content: 'border',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
defaultVariants: { size: 'base', bordered: true },
|
|
99
|
+
}, {
|
|
100
|
+
slots: {
|
|
101
|
+
root: prefix,
|
|
102
|
+
content: `${prefix}-content`,
|
|
103
|
+
contentInner: `${prefix}-content-inner`,
|
|
104
|
+
item: `${prefix}-item`,
|
|
105
|
+
itemGroup: `${prefix}-item-group`,
|
|
106
|
+
itemGroupLabel: `${prefix}-item-group-label`,
|
|
107
|
+
triggerItem: `${prefix}-trigger-item`,
|
|
108
|
+
triggerItemIndicator: `${prefix}-trigger-item-indicator`,
|
|
109
|
+
radioItem: `${prefix}-radio-item`,
|
|
110
|
+
},
|
|
111
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { VariantProps } from '../../../shared/utils/tv';
|
|
2
|
+
export declare const tvMessage: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: {
|
|
5
|
+
content: string;
|
|
6
|
+
inner: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
close: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
sm: {
|
|
13
|
+
content: string;
|
|
14
|
+
inner: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
close: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
base: {
|
|
21
|
+
content: string;
|
|
22
|
+
inner: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
close: string;
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
lg: {
|
|
29
|
+
content: string;
|
|
30
|
+
inner: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
close: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
} & {
|
|
38
|
+
unstyled: {
|
|
39
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
40
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
root: string[];
|
|
44
|
+
content: string[];
|
|
45
|
+
description: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
close: string;
|
|
48
|
+
}, undefined, {
|
|
49
|
+
size: {
|
|
50
|
+
xs: {
|
|
51
|
+
content: string;
|
|
52
|
+
inner: string;
|
|
53
|
+
icon: string;
|
|
54
|
+
close: string;
|
|
55
|
+
title: string;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
sm: {
|
|
59
|
+
content: string;
|
|
60
|
+
inner: string;
|
|
61
|
+
icon: string;
|
|
62
|
+
close: string;
|
|
63
|
+
title: string;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
base: {
|
|
67
|
+
content: string;
|
|
68
|
+
inner: string;
|
|
69
|
+
icon: string;
|
|
70
|
+
close: string;
|
|
71
|
+
title: string;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
lg: {
|
|
75
|
+
content: string;
|
|
76
|
+
inner: string;
|
|
77
|
+
icon: string;
|
|
78
|
+
close: string;
|
|
79
|
+
title: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
root: string[];
|
|
85
|
+
content: string[];
|
|
86
|
+
description: string;
|
|
87
|
+
icon: string;
|
|
88
|
+
close: string;
|
|
89
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
90
|
+
size: {
|
|
91
|
+
xs: {
|
|
92
|
+
content: string;
|
|
93
|
+
inner: string;
|
|
94
|
+
icon: string;
|
|
95
|
+
close: string;
|
|
96
|
+
title: string;
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
sm: {
|
|
100
|
+
content: string;
|
|
101
|
+
inner: string;
|
|
102
|
+
icon: string;
|
|
103
|
+
close: string;
|
|
104
|
+
title: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
base: {
|
|
108
|
+
content: string;
|
|
109
|
+
inner: string;
|
|
110
|
+
icon: string;
|
|
111
|
+
close: string;
|
|
112
|
+
title: string;
|
|
113
|
+
description: string;
|
|
114
|
+
};
|
|
115
|
+
lg: {
|
|
116
|
+
content: string;
|
|
117
|
+
inner: string;
|
|
118
|
+
icon: string;
|
|
119
|
+
close: string;
|
|
120
|
+
title: string;
|
|
121
|
+
description: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
125
|
+
root: string[];
|
|
126
|
+
content: string[];
|
|
127
|
+
description: string;
|
|
128
|
+
icon: string;
|
|
129
|
+
close: string;
|
|
130
|
+
}, undefined, unknown, unknown>>;
|
|
131
|
+
export type MessageVariants = VariantProps<typeof tvMessage>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { tv } from '../../../shared/utils/tv';
|
|
2
|
+
const prefix = 'rui-message';
|
|
3
|
+
export const tvMessage = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: ['group/message'],
|
|
6
|
+
content: ['flex', 'items-center', 'rounded-md'],
|
|
7
|
+
description: 'w-max',
|
|
8
|
+
icon: 'size-[1lh]',
|
|
9
|
+
close: 'size-[1lh]',
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
xs: {
|
|
14
|
+
content: 'py-3 px-4 space-x-3',
|
|
15
|
+
inner: 'gap-0.5',
|
|
16
|
+
icon: 'text-sm',
|
|
17
|
+
close: 'text-xs',
|
|
18
|
+
title: 'text-xs',
|
|
19
|
+
description: 'text-xs',
|
|
20
|
+
},
|
|
21
|
+
sm: {
|
|
22
|
+
content: 'py-4 px-6 space-x-4',
|
|
23
|
+
inner: 'gap-1',
|
|
24
|
+
icon: 'text-base',
|
|
25
|
+
close: 'text-sm',
|
|
26
|
+
title: 'text-sm',
|
|
27
|
+
description: 'text-sm',
|
|
28
|
+
},
|
|
29
|
+
base: {
|
|
30
|
+
content: 'py-5 px-8 space-x-5',
|
|
31
|
+
inner: 'gap-1.5',
|
|
32
|
+
icon: 'text-lg',
|
|
33
|
+
close: 'text-base',
|
|
34
|
+
title: 'text-base',
|
|
35
|
+
description: 'text-base',
|
|
36
|
+
},
|
|
37
|
+
lg: {
|
|
38
|
+
content: 'py-6 px-10 space-x-6',
|
|
39
|
+
inner: 'gap-2',
|
|
40
|
+
icon: 'text-xl',
|
|
41
|
+
close: 'text-lg',
|
|
42
|
+
title: 'text-lg',
|
|
43
|
+
description: 'text-lg',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
size: 'base',
|
|
49
|
+
},
|
|
50
|
+
}, {
|
|
51
|
+
slots: {
|
|
52
|
+
root: prefix,
|
|
53
|
+
content: `${prefix}-content`,
|
|
54
|
+
description: `${prefix}-description`,
|
|
55
|
+
icon: `${prefix}-icon`,
|
|
56
|
+
close: `${prefix}-close`,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { VariantProps } from '../../../shared/utils/tv';
|
|
2
|
+
export declare const tvNumberInput: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: {
|
|
5
|
+
input: string;
|
|
6
|
+
trigger: string;
|
|
7
|
+
};
|
|
8
|
+
sm: {
|
|
9
|
+
input: string;
|
|
10
|
+
trigger: string;
|
|
11
|
+
};
|
|
12
|
+
base: {
|
|
13
|
+
input: string;
|
|
14
|
+
trigger: string;
|
|
15
|
+
};
|
|
16
|
+
lg: {
|
|
17
|
+
input: string;
|
|
18
|
+
trigger: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} & {
|
|
22
|
+
unstyled: {
|
|
23
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
root: string;
|
|
28
|
+
control: string;
|
|
29
|
+
input: string;
|
|
30
|
+
triggerGroup: string;
|
|
31
|
+
trigger: string;
|
|
32
|
+
}, undefined, {
|
|
33
|
+
size: {
|
|
34
|
+
xs: {
|
|
35
|
+
input: string;
|
|
36
|
+
trigger: string;
|
|
37
|
+
};
|
|
38
|
+
sm: {
|
|
39
|
+
input: string;
|
|
40
|
+
trigger: string;
|
|
41
|
+
};
|
|
42
|
+
base: {
|
|
43
|
+
input: string;
|
|
44
|
+
trigger: string;
|
|
45
|
+
};
|
|
46
|
+
lg: {
|
|
47
|
+
input: string;
|
|
48
|
+
trigger: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
root: string;
|
|
53
|
+
control: string;
|
|
54
|
+
input: string;
|
|
55
|
+
triggerGroup: string;
|
|
56
|
+
trigger: string;
|
|
57
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
58
|
+
size: {
|
|
59
|
+
xs: {
|
|
60
|
+
input: string;
|
|
61
|
+
trigger: string;
|
|
62
|
+
};
|
|
63
|
+
sm: {
|
|
64
|
+
input: string;
|
|
65
|
+
trigger: string;
|
|
66
|
+
};
|
|
67
|
+
base: {
|
|
68
|
+
input: string;
|
|
69
|
+
trigger: string;
|
|
70
|
+
};
|
|
71
|
+
lg: {
|
|
72
|
+
input: string;
|
|
73
|
+
trigger: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
root: string;
|
|
78
|
+
control: string;
|
|
79
|
+
input: string;
|
|
80
|
+
triggerGroup: string;
|
|
81
|
+
trigger: string;
|
|
82
|
+
}, undefined, unknown, unknown>>;
|
|
83
|
+
export type NumberInputVariants = VariantProps<typeof tvNumberInput>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { tv } from '../../../shared/utils/tv';
|
|
2
|
+
const prefix = 'rui-number-input';
|
|
3
|
+
export const tvNumberInput = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: '',
|
|
6
|
+
control: 'p-0',
|
|
7
|
+
input: '',
|
|
8
|
+
triggerGroup: 'flex flex-col',
|
|
9
|
+
trigger: '[&>svg]:size-full',
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
xs: {
|
|
14
|
+
input: 'text-xs py-1 px-1.5',
|
|
15
|
+
trigger: 'h-3 w-6 [&>svg]:size-full',
|
|
16
|
+
},
|
|
17
|
+
sm: {
|
|
18
|
+
input: 'text-sm py-1.5 px-2',
|
|
19
|
+
trigger: 'h-4 w-8 [&>svg]:size-full',
|
|
20
|
+
},
|
|
21
|
+
base: {
|
|
22
|
+
input: 'text-base py-2 px-2.5',
|
|
23
|
+
trigger: 'h-4.5 w-8 [&>svg]:size-full',
|
|
24
|
+
},
|
|
25
|
+
lg: {
|
|
26
|
+
input: 'text-lg py-2.5 px-3',
|
|
27
|
+
trigger: 'h-5 w-10 [&>svg]:size-full',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
size: 'base',
|
|
33
|
+
},
|
|
34
|
+
}, {
|
|
35
|
+
slots: {
|
|
36
|
+
root: prefix,
|
|
37
|
+
control: `${prefix}-control`,
|
|
38
|
+
input: `${prefix}-input`,
|
|
39
|
+
triggerGroup: `${prefix}-trigger-group`,
|
|
40
|
+
trigger: `${prefix}-trigger`,
|
|
41
|
+
},
|
|
42
|
+
});
|