@raxium/themes 0.1.1
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/badge.d.ts +44 -0
- package/dist/default/crafts/badge.js +48 -0
- package/dist/default/crafts/button.d.ts +107 -0
- package/dist/default/crafts/button.js +60 -0
- package/dist/default/crafts/checkbox.d.ts +62 -0
- package/dist/default/crafts/checkbox.js +70 -0
- package/dist/default/crafts/collapsible.d.ts +111 -0
- package/dist/default/crafts/collapsible.js +55 -0
- package/dist/default/crafts/date-picker.d.ts +369 -0
- package/dist/default/crafts/date-picker.js +242 -0
- package/dist/default/crafts/dialog.d.ts +116 -0
- package/dist/default/crafts/dialog.js +95 -0
- package/dist/default/crafts/editable.d.ts +197 -0
- package/dist/default/crafts/editable.js +95 -0
- package/dist/default/crafts/floating-panel.d.ts +143 -0
- package/dist/default/crafts/floating-panel.js +63 -0
- package/dist/default/crafts/hotkey.d.ts +149 -0
- package/dist/default/crafts/hotkey.js +16 -0
- package/dist/default/crafts/hover-card.d.ts +50 -0
- package/dist/default/crafts/hover-card.js +75 -0
- package/dist/default/crafts/icon.d.ts +8 -0
- package/dist/default/crafts/icon.js +7 -0
- package/dist/default/crafts/index.d.ts +33 -0
- package/dist/default/crafts/index.js +33 -0
- package/dist/default/crafts/input.d.ts +77 -0
- package/dist/default/crafts/input.js +45 -0
- package/dist/default/crafts/menu.d.ts +71 -0
- package/dist/default/crafts/menu.js +111 -0
- package/dist/default/crafts/message.d.ts +131 -0
- package/dist/default/crafts/message.js +58 -0
- package/dist/default/crafts/number-input.d.ts +83 -0
- package/dist/default/crafts/number-input.js +42 -0
- package/dist/default/crafts/pagination.d.ts +190 -0
- package/dist/default/crafts/pagination.js +100 -0
- package/dist/default/crafts/popover.d.ts +104 -0
- package/dist/default/crafts/popover.js +66 -0
- package/dist/default/crafts/progress.d.ts +110 -0
- package/dist/default/crafts/progress.js +121 -0
- package/dist/default/crafts/radio-group.d.ts +119 -0
- package/dist/default/crafts/radio-group.js +92 -0
- package/dist/default/crafts/rating-group.d.ts +71 -0
- package/dist/default/crafts/rating-group.js +38 -0
- package/dist/default/crafts/scroll-area.d.ts +74 -0
- package/dist/default/crafts/scroll-area.js +109 -0
- package/dist/default/crafts/select.d.ts +146 -0
- package/dist/default/crafts/select.js +114 -0
- package/dist/default/crafts/skeleton.d.ts +35 -0
- package/dist/default/crafts/skeleton.js +15 -0
- package/dist/default/crafts/slider.d.ts +167 -0
- package/dist/default/crafts/slider.js +85 -0
- package/dist/default/crafts/spin.d.ts +102 -0
- package/dist/default/crafts/spin.js +56 -0
- package/dist/default/crafts/switch.d.ts +92 -0
- package/dist/default/crafts/switch.js +66 -0
- package/dist/default/crafts/tabs.d.ts +119 -0
- package/dist/default/crafts/tabs.js +116 -0
- package/dist/default/crafts/tags-input.d.ts +158 -0
- package/dist/default/crafts/tags-input.js +72 -0
- package/dist/default/crafts/toast.d.ts +137 -0
- package/dist/default/crafts/toast.js +62 -0
- package/dist/default/crafts/toggle-group.d.ts +92 -0
- package/dist/default/crafts/toggle-group.js +49 -0
- package/dist/default/crafts/toggle.d.ts +29 -0
- package/dist/default/crafts/toggle.js +29 -0
- package/dist/default/crafts/tooltip.d.ts +86 -0
- package/dist/default/crafts/tooltip.js +55 -0
- package/dist/default/crafts/tree.d.ts +208 -0
- package/dist/default/crafts/tree.js +145 -0
- package/dist/default/index.css +1624 -0
- package/dist/default/index.d.ts +2 -0
- package/dist/default/index.js +1 -0
- package/dist/razer/crafts/index.d.ts +15 -0
- package/dist/razer/crafts/index.js +15 -0
- package/dist/razer/index.css +4830 -0
- package/dist/razer/index.d.ts +2 -0
- package/dist/razer/index.js +1 -0
- package/dist/utils/cn.d.ts +7 -0
- package/dist/utils/cn.js +13 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/tv.d.ts +37 -0
- package/dist/utils/tv.js +29 -0
- package/package.json +61 -0
- package/src/css/animation-easing.css +21 -0
- package/src/css/animations.css +252 -0
- package/src/css/index.css +2 -0
- package/src/css/static.css +31 -0
- package/src/default/crafts/badge.ts +56 -0
- package/src/default/crafts/button.ts +68 -0
- package/src/default/crafts/checkbox.ts +75 -0
- package/src/default/crafts/collapsible.ts +61 -0
- package/src/default/crafts/date-picker.ts +261 -0
- package/src/default/crafts/dialog.ts +103 -0
- package/src/default/crafts/editable.ts +108 -0
- package/src/default/crafts/floating-panel.ts +71 -0
- package/src/default/crafts/hotkey.ts +24 -0
- package/src/default/crafts/hover-card.ts +83 -0
- package/src/default/crafts/icon.ts +15 -0
- package/src/default/crafts/index.ts +62 -0
- package/src/default/crafts/input.ts +50 -0
- package/src/default/crafts/menu.ts +118 -0
- package/src/default/crafts/message.ts +66 -0
- package/src/default/crafts/number-input.ts +51 -0
- package/src/default/crafts/pagination.ts +120 -0
- package/src/default/crafts/popover.ts +74 -0
- package/src/default/crafts/progress.ts +131 -0
- package/src/default/crafts/radio-group.ts +100 -0
- package/src/default/crafts/rating-group.ts +46 -0
- package/src/default/crafts/scroll-area.ts +116 -0
- package/src/default/crafts/select.ts +122 -0
- package/src/default/crafts/skeleton.ts +23 -0
- package/src/default/crafts/slider.ts +93 -0
- package/src/default/crafts/spin.ts +64 -0
- package/src/default/crafts/switch.ts +71 -0
- package/src/default/crafts/tabs.ts +122 -0
- package/src/default/crafts/tags-input.ts +81 -0
- package/src/default/crafts/toast.ts +70 -0
- package/src/default/crafts/toggle-group.ts +57 -0
- package/src/default/crafts/toggle.ts +34 -0
- package/src/default/crafts/tooltip.ts +63 -0
- package/src/default/crafts/tree.ts +165 -0
- package/src/default/index.css +3 -0
- package/src/default/index.ts +2 -0
- package/src/default/tailwind.config.ts +9 -0
- package/src/razer/components/arrow.css +20 -0
- package/src/razer/components/badge.css +13 -0
- package/src/razer/components/button.css +40 -0
- package/src/razer/components/checkbox.css +39 -0
- package/src/razer/components/collapsible.css +16 -0
- package/src/razer/components/date-picker.css +46 -0
- package/src/razer/components/dialog.css +29 -0
- package/src/razer/components/editable.css +27 -0
- package/src/razer/components/floating-panel.css +11 -0
- package/src/razer/components/hotkey.css +5 -0
- package/src/razer/components/hover-card.css +14 -0
- package/src/razer/components/input.css +29 -0
- package/src/razer/components/menu.css +47 -0
- package/src/razer/components/message.css +41 -0
- package/src/razer/components/number-input.css +9 -0
- package/src/razer/components/pagination.css +14 -0
- package/src/razer/components/popover.css +19 -0
- package/src/razer/components/progress.css +78 -0
- package/src/razer/components/radio-group.css +44 -0
- package/src/razer/components/rating-group.css +26 -0
- package/src/razer/components/scroll-area.css +14 -0
- package/src/razer/components/select.css +31 -0
- package/src/razer/components/skeleton.css +11 -0
- package/src/razer/components/slider.css +27 -0
- package/src/razer/components/spin.css +15 -0
- package/src/razer/components/switch.css +24 -0
- package/src/razer/components/tabs.css +11 -0
- package/src/razer/components/tags-input.css +16 -0
- package/src/razer/components/toast.css +41 -0
- package/src/razer/components/toggle-group.css +19 -0
- package/src/razer/components/toggle.css +17 -0
- package/src/razer/components/tooltip.css +16 -0
- package/src/razer/components/tree.css +19 -0
- package/src/razer/components.css +33 -0
- package/src/razer/crafts/index.ts +16 -0
- package/src/razer/index.css +6 -0
- package/src/razer/index.ts +2 -0
- package/src/razer/preset.css +261 -0
- package/src/razer/tailwind.config.ts +10 -0
- package/src/utils/cn.ts +18 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/tv.ts +91 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { VariantProps } from '../../utils';
|
|
2
|
+
export declare const tvHotkey: import("tailwind-variants").TVReturnType<({
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
5
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
6
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
10
|
+
size: {
|
|
11
|
+
xs: import("tailwind-merge").ClassNameValue | {
|
|
12
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
13
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
};
|
|
15
|
+
sm: import("tailwind-merge").ClassNameValue | {
|
|
16
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
18
|
+
};
|
|
19
|
+
base: import("tailwind-merge").ClassNameValue | {
|
|
20
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
22
|
+
};
|
|
23
|
+
lg: import("tailwind-merge").ClassNameValue | {
|
|
24
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
25
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
unstyled: {
|
|
29
|
+
true: import("tailwind-merge").ClassNameValue | {
|
|
30
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
31
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
32
|
+
};
|
|
33
|
+
false: import("tailwind-merge").ClassNameValue | {
|
|
34
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}) & {
|
|
39
|
+
unstyled: {
|
|
40
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
41
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
root: string[];
|
|
45
|
+
input: never[];
|
|
46
|
+
}, undefined, {
|
|
47
|
+
size: {
|
|
48
|
+
xs: {
|
|
49
|
+
root: string;
|
|
50
|
+
input: string;
|
|
51
|
+
};
|
|
52
|
+
sm: {
|
|
53
|
+
root: string;
|
|
54
|
+
input: string;
|
|
55
|
+
};
|
|
56
|
+
base: {
|
|
57
|
+
root: string;
|
|
58
|
+
input: string;
|
|
59
|
+
};
|
|
60
|
+
lg: {
|
|
61
|
+
root: string;
|
|
62
|
+
input: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
} & {
|
|
66
|
+
unstyled: {
|
|
67
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
68
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
69
|
+
};
|
|
70
|
+
}, {
|
|
71
|
+
root: string[];
|
|
72
|
+
input: string[];
|
|
73
|
+
clearable: string[];
|
|
74
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
75
|
+
size: {
|
|
76
|
+
xs: {
|
|
77
|
+
root: string;
|
|
78
|
+
input: string;
|
|
79
|
+
};
|
|
80
|
+
sm: {
|
|
81
|
+
root: string;
|
|
82
|
+
input: string;
|
|
83
|
+
};
|
|
84
|
+
base: {
|
|
85
|
+
root: string;
|
|
86
|
+
input: string;
|
|
87
|
+
};
|
|
88
|
+
lg: {
|
|
89
|
+
root: string;
|
|
90
|
+
input: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
} & {
|
|
94
|
+
unstyled: {
|
|
95
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
96
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
root: string[];
|
|
100
|
+
input: string[];
|
|
101
|
+
clearable: string[];
|
|
102
|
+
}, undefined, {
|
|
103
|
+
size: {
|
|
104
|
+
xs: {
|
|
105
|
+
root: string;
|
|
106
|
+
input: string;
|
|
107
|
+
};
|
|
108
|
+
sm: {
|
|
109
|
+
root: string;
|
|
110
|
+
input: string;
|
|
111
|
+
};
|
|
112
|
+
base: {
|
|
113
|
+
root: string;
|
|
114
|
+
input: string;
|
|
115
|
+
};
|
|
116
|
+
lg: {
|
|
117
|
+
root: string;
|
|
118
|
+
input: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}, {
|
|
122
|
+
root: string[];
|
|
123
|
+
input: string[];
|
|
124
|
+
clearable: string[];
|
|
125
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
126
|
+
size: {
|
|
127
|
+
xs: {
|
|
128
|
+
root: string;
|
|
129
|
+
input: string;
|
|
130
|
+
};
|
|
131
|
+
sm: {
|
|
132
|
+
root: string;
|
|
133
|
+
input: string;
|
|
134
|
+
};
|
|
135
|
+
base: {
|
|
136
|
+
root: string;
|
|
137
|
+
input: string;
|
|
138
|
+
};
|
|
139
|
+
lg: {
|
|
140
|
+
root: string;
|
|
141
|
+
input: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
root: string[];
|
|
146
|
+
input: string[];
|
|
147
|
+
clearable: string[];
|
|
148
|
+
}, undefined, unknown, unknown>>>;
|
|
149
|
+
export type HotkeyVariants = VariantProps<typeof tvHotkey>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tv } from '../../utils';
|
|
2
|
+
import { tvInput } from './input';
|
|
3
|
+
const inputPrefix = 'rui-input';
|
|
4
|
+
const prefix = 'rui-hotkey';
|
|
5
|
+
export const tvHotkey = tv({
|
|
6
|
+
extend: tvInput,
|
|
7
|
+
slots: {
|
|
8
|
+
root: ['relative'],
|
|
9
|
+
input: [],
|
|
10
|
+
},
|
|
11
|
+
}, {
|
|
12
|
+
slots: {
|
|
13
|
+
root: [inputPrefix, prefix],
|
|
14
|
+
input: [`${inputPrefix}-input`, `${prefix}-input`],
|
|
15
|
+
},
|
|
16
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { VariantProps } from '../../utils';
|
|
2
|
+
export declare const tvHoverCard: 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
|
+
content: string[];
|
|
20
|
+
contentInner: string[];
|
|
21
|
+
}, undefined, {
|
|
22
|
+
size: {
|
|
23
|
+
xs: string;
|
|
24
|
+
sm: string;
|
|
25
|
+
base: string;
|
|
26
|
+
lg: string;
|
|
27
|
+
};
|
|
28
|
+
bordered: {
|
|
29
|
+
true: string;
|
|
30
|
+
false: string;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
content: string[];
|
|
34
|
+
contentInner: string[];
|
|
35
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
36
|
+
size: {
|
|
37
|
+
xs: string;
|
|
38
|
+
sm: string;
|
|
39
|
+
base: string;
|
|
40
|
+
lg: string;
|
|
41
|
+
};
|
|
42
|
+
bordered: {
|
|
43
|
+
true: string;
|
|
44
|
+
false: string;
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
content: string[];
|
|
48
|
+
contentInner: string[];
|
|
49
|
+
}, undefined, unknown, unknown>>;
|
|
50
|
+
export type HoverCardVariants = VariantProps<typeof tvHoverCard>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { tv } from '../../utils';
|
|
2
|
+
const prefix = 'rui-hover-card';
|
|
3
|
+
export const tvHoverCard = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
content: [
|
|
6
|
+
'rounded-(--border-radius)',
|
|
7
|
+
'data-[state=open]:motion-opacity-in',
|
|
8
|
+
'data-[state=open]:motion-scale-in-95',
|
|
9
|
+
'data-[state=open]:data-[placement^=bottom]:motion-translate-y-in-[.25rem]',
|
|
10
|
+
'data-[state=open]:data-[placement^=top]:-motion-translate-y-in-[.25rem]',
|
|
11
|
+
'data-[state=open]:data-[placement^=left]:-motion-translate-x-in-[.25rem]',
|
|
12
|
+
'data-[state=open]:data-[placement^=right]:motion-translate-x-in-[.25rem]',
|
|
13
|
+
'data-[state=closed]:motion-opacity-out',
|
|
14
|
+
'data-[state=closed]:motion-scale-out-95',
|
|
15
|
+
'data-[state=closed]:data-[placement^=bottom]:motion-translate-y-out-[.25rem]',
|
|
16
|
+
'data-[state=closed]:data-[placement^=top]:-motion-translate-y-out-[.25rem]',
|
|
17
|
+
'data-[state=closed]:data-[placement^=left]:-motion-translate-x-out-[.25rem]',
|
|
18
|
+
'data-[state=closed]:data-[placement^=right]:motion-translate-x-out-[.25rem]',
|
|
19
|
+
],
|
|
20
|
+
contentInner: ['relative', 'rounded-(--border-radius)', 'z-10'],
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
size: {
|
|
24
|
+
xs: '',
|
|
25
|
+
sm: '',
|
|
26
|
+
base: '',
|
|
27
|
+
lg: '',
|
|
28
|
+
},
|
|
29
|
+
bordered: {
|
|
30
|
+
true: '',
|
|
31
|
+
false: '',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
size: 'base',
|
|
36
|
+
bordered: true,
|
|
37
|
+
},
|
|
38
|
+
compoundVariants: [
|
|
39
|
+
{
|
|
40
|
+
size: 'xs',
|
|
41
|
+
class: {
|
|
42
|
+
contentInner: 'px-1.5 py-0.5 text-xs',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
size: 'sm',
|
|
47
|
+
class: {
|
|
48
|
+
contentInner: 'px-2 py-1 text-sm',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
size: 'base',
|
|
53
|
+
class: {
|
|
54
|
+
contentInner: 'px-2.5 py-1.5 text-base',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
size: 'lg',
|
|
59
|
+
class: {
|
|
60
|
+
contentInner: 'px-3 py-2 text-lg',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
bordered: true,
|
|
65
|
+
class: {
|
|
66
|
+
content: 'border',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
}, {
|
|
71
|
+
slots: {
|
|
72
|
+
content: `${prefix}-content`,
|
|
73
|
+
contentInner: `${prefix}-content-inner`,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VariantProps } from '../../utils';
|
|
2
|
+
export declare const tvIcon: import("tailwind-variants").TVReturnType<({} | {} | {}) & {
|
|
3
|
+
unstyled: {
|
|
4
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
5
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
6
|
+
};
|
|
7
|
+
}, undefined, "size-[1lh]", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "size-[1lh]", unknown, unknown>>;
|
|
8
|
+
export type IconVariants = VariantProps<typeof tvIcon>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { type BadgeVariants, tvBadge } from './badge';
|
|
2
|
+
export { type ButtonVariants, tvButton } from './button';
|
|
3
|
+
export { type CheckboxVariants, tvCheckbox } from './checkbox';
|
|
4
|
+
export { type CollapsibleVariants, type ReadMoreVariants, tvCollapsible, tvReadMore, } from './collapsible';
|
|
5
|
+
export { type DatePickerVariants, type DatePickerViewVariants, tvDatePicker, tvDatePickerView, } from './date-picker';
|
|
6
|
+
export { type DialogVariants, tvDialog } from './dialog';
|
|
7
|
+
export { type EditableInputVariants, type EditableVariants, tvEditable, tvEditableInput, } from './editable';
|
|
8
|
+
export { type FloatingPanelVariants, tvFloatingPanel } from './floating-panel';
|
|
9
|
+
export { type HotkeyVariants, tvHotkey } from './hotkey';
|
|
10
|
+
export { type HoverCardVariants, tvHoverCard } from './hover-card';
|
|
11
|
+
export { type IconVariants, tvIcon } from './icon';
|
|
12
|
+
export { type InputVariants, tvInput } from './input';
|
|
13
|
+
export { type MenuVariants, tvMenu } from './menu';
|
|
14
|
+
export { type MessageVariants, tvMessage } from './message';
|
|
15
|
+
export { type NumberInputVariants, tvNumberInput } from './number-input';
|
|
16
|
+
export { type PaginationGotoVariants, type PaginationPageSizeVariants, type PaginationVariants, tvPagination, tvPaginationGoto, tvPaginationPageSize, } from './pagination';
|
|
17
|
+
export { type PopoverVariants, tvPopover } from './popover';
|
|
18
|
+
export { type ProgressVariants, tvProgress } from './progress';
|
|
19
|
+
export { type RadioGroupVariants, tvRadioGroup } from './radio-group';
|
|
20
|
+
export { type RatingGroupVariants, tvRatingGroup } from './rating-group';
|
|
21
|
+
export { type ScrollAreaVariants, tvScrollArea } from './scroll-area';
|
|
22
|
+
export { type SelectVariants, tvSelect } from './select';
|
|
23
|
+
export { type SkeletonVariants, tvSkeleton } from './skeleton';
|
|
24
|
+
export { type SliderVariants, tvSlider } from './slider';
|
|
25
|
+
export { type SpinVariants, tvSpin } from './spin';
|
|
26
|
+
export { type SwitchVariants, tvSwitch } from './switch';
|
|
27
|
+
export { type TabsVariants, tvTabs } from './tabs';
|
|
28
|
+
export { type TagsInputVariants, tvTagsInput } from './tags-input';
|
|
29
|
+
export { type ToastVariants, tvToast } from './toast';
|
|
30
|
+
export { type ToggleVariants, tvToggle } from './toggle';
|
|
31
|
+
export { type ToggleGroupVariants, tvToggleGroup } from './toggle-group';
|
|
32
|
+
export { type TooltipVariants, tvTooltip } from './tooltip';
|
|
33
|
+
export { type TreeBranchVariants, type TreeItemVariants, type TreeVariants, tvTree, tvTreeBranch, tvTreeItem, } from './tree';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { tvBadge } from './badge';
|
|
2
|
+
export { tvButton } from './button';
|
|
3
|
+
export { tvCheckbox } from './checkbox';
|
|
4
|
+
export { tvCollapsible, tvReadMore, } from './collapsible';
|
|
5
|
+
export { tvDatePicker, tvDatePickerView, } from './date-picker';
|
|
6
|
+
export { tvDialog } from './dialog';
|
|
7
|
+
export { tvEditable, tvEditableInput, } from './editable';
|
|
8
|
+
export { tvFloatingPanel } from './floating-panel';
|
|
9
|
+
export { tvHotkey } from './hotkey';
|
|
10
|
+
export { tvHoverCard } from './hover-card';
|
|
11
|
+
export { tvIcon } from './icon';
|
|
12
|
+
export { tvInput } from './input';
|
|
13
|
+
export { tvMenu } from './menu';
|
|
14
|
+
export { tvMessage } from './message';
|
|
15
|
+
export { tvNumberInput } from './number-input';
|
|
16
|
+
export { tvPagination, tvPaginationGoto, tvPaginationPageSize, } from './pagination';
|
|
17
|
+
export { tvPopover } from './popover';
|
|
18
|
+
export { tvProgress } from './progress';
|
|
19
|
+
export { tvRadioGroup } from './radio-group';
|
|
20
|
+
export { tvRatingGroup } from './rating-group';
|
|
21
|
+
export { tvScrollArea } from './scroll-area';
|
|
22
|
+
export { tvSelect } from './select';
|
|
23
|
+
export { tvSkeleton } from './skeleton';
|
|
24
|
+
export { tvSlider } from './slider';
|
|
25
|
+
export { tvSpin } from './spin';
|
|
26
|
+
export { tvSwitch } from './switch';
|
|
27
|
+
export { tvTabs } from './tabs';
|
|
28
|
+
export { tvTagsInput } from './tags-input';
|
|
29
|
+
export { tvToast } from './toast';
|
|
30
|
+
export { tvToggle } from './toggle';
|
|
31
|
+
export { tvToggleGroup } from './toggle-group';
|
|
32
|
+
export { tvTooltip } from './tooltip';
|
|
33
|
+
export { tvTree, tvTreeBranch, tvTreeItem, } from './tree';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { VariantProps } from '../../utils';
|
|
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 '../../utils';
|
|
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 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 '../../utils';
|
|
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 '../../utils';
|
|
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
|
+
});
|