@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,95 @@
|
|
|
1
|
+
import { tv } from '../../../shared/utils/tv';
|
|
2
|
+
import { tvInput } from './input';
|
|
3
|
+
const prefix = 'rui-editable';
|
|
4
|
+
export const tvEditable = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
root: 'flex items-center',
|
|
7
|
+
area: '',
|
|
8
|
+
preview: '',
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
xs: '',
|
|
13
|
+
sm: '',
|
|
14
|
+
base: '',
|
|
15
|
+
lg: '',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
compoundVariants: [
|
|
19
|
+
{
|
|
20
|
+
size: 'xs',
|
|
21
|
+
class: {
|
|
22
|
+
root: 'text-xs',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
size: 'sm',
|
|
27
|
+
class: {
|
|
28
|
+
root: 'text-sm',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
size: 'base',
|
|
33
|
+
class: {
|
|
34
|
+
root: 'text-base',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
size: 'lg',
|
|
39
|
+
class: {
|
|
40
|
+
root: 'text-lg',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
defaultVariants: { size: 'base' },
|
|
45
|
+
}, {
|
|
46
|
+
slots: {
|
|
47
|
+
root: prefix,
|
|
48
|
+
area: `${prefix}-area`,
|
|
49
|
+
preview: `${prefix}-preview`,
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
export const tvEditableInput = tv({
|
|
53
|
+
extend: tvInput,
|
|
54
|
+
slots: {
|
|
55
|
+
root: '',
|
|
56
|
+
input: 'min-w-20 w-fit',
|
|
57
|
+
clearable: '',
|
|
58
|
+
},
|
|
59
|
+
compoundVariants: [
|
|
60
|
+
{
|
|
61
|
+
size: 'xs',
|
|
62
|
+
class: {
|
|
63
|
+
root: 'px-1 py-0.25',
|
|
64
|
+
clearable: 'text-xs size-[1lh]',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
size: 'sm',
|
|
69
|
+
class: {
|
|
70
|
+
root: 'px-1 py-0.5',
|
|
71
|
+
clearable: 'text-sm size-[1lh]',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
size: 'base',
|
|
76
|
+
class: {
|
|
77
|
+
root: 'px-2 py-0.75',
|
|
78
|
+
clearable: 'text-base size-[1lh]',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
size: 'lg',
|
|
83
|
+
class: {
|
|
84
|
+
root: 'px-2 py-1',
|
|
85
|
+
clearable: 'text-lg size-[1lh]',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
}, {
|
|
90
|
+
slots: {
|
|
91
|
+
root: `${prefix}-input`,
|
|
92
|
+
input: `${prefix}-input-input`,
|
|
93
|
+
clearable: `${prefix}-input-clearable`,
|
|
94
|
+
},
|
|
95
|
+
});
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { VariantProps } from '../../../shared/utils/tv';
|
|
2
|
+
export declare const tvFloatingPanel: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: {
|
|
5
|
+
header: string;
|
|
6
|
+
control: string;
|
|
7
|
+
trigger: string;
|
|
8
|
+
resizeVertical: string;
|
|
9
|
+
resizeHorizontal: string;
|
|
10
|
+
resizeCorner: string;
|
|
11
|
+
};
|
|
12
|
+
sm: {
|
|
13
|
+
header: string;
|
|
14
|
+
control: string;
|
|
15
|
+
trigger: string;
|
|
16
|
+
resizeVertical: string;
|
|
17
|
+
resizeHorizontal: string;
|
|
18
|
+
resizeCorner: string;
|
|
19
|
+
};
|
|
20
|
+
base: {
|
|
21
|
+
header: string;
|
|
22
|
+
control: string;
|
|
23
|
+
trigger: string;
|
|
24
|
+
resizeVertical: string;
|
|
25
|
+
resizeHorizontal: string;
|
|
26
|
+
resizeCorner: string;
|
|
27
|
+
};
|
|
28
|
+
lg: {
|
|
29
|
+
header: string;
|
|
30
|
+
control: string;
|
|
31
|
+
trigger: string;
|
|
32
|
+
resizeVertical: string;
|
|
33
|
+
resizeHorizontal: string;
|
|
34
|
+
resizeCorner: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
} & {
|
|
38
|
+
unstyled: {
|
|
39
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
40
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
positioner: string;
|
|
44
|
+
content: string;
|
|
45
|
+
header: string;
|
|
46
|
+
control: string;
|
|
47
|
+
title: string;
|
|
48
|
+
trigger: string;
|
|
49
|
+
resizeVertical: string;
|
|
50
|
+
resizeHorizontal: string;
|
|
51
|
+
resizeCorner: string;
|
|
52
|
+
}, undefined, {
|
|
53
|
+
size: {
|
|
54
|
+
xs: {
|
|
55
|
+
header: string;
|
|
56
|
+
control: string;
|
|
57
|
+
trigger: string;
|
|
58
|
+
resizeVertical: string;
|
|
59
|
+
resizeHorizontal: string;
|
|
60
|
+
resizeCorner: string;
|
|
61
|
+
};
|
|
62
|
+
sm: {
|
|
63
|
+
header: string;
|
|
64
|
+
control: string;
|
|
65
|
+
trigger: string;
|
|
66
|
+
resizeVertical: string;
|
|
67
|
+
resizeHorizontal: string;
|
|
68
|
+
resizeCorner: string;
|
|
69
|
+
};
|
|
70
|
+
base: {
|
|
71
|
+
header: string;
|
|
72
|
+
control: string;
|
|
73
|
+
trigger: string;
|
|
74
|
+
resizeVertical: string;
|
|
75
|
+
resizeHorizontal: string;
|
|
76
|
+
resizeCorner: string;
|
|
77
|
+
};
|
|
78
|
+
lg: {
|
|
79
|
+
header: string;
|
|
80
|
+
control: string;
|
|
81
|
+
trigger: string;
|
|
82
|
+
resizeVertical: string;
|
|
83
|
+
resizeHorizontal: string;
|
|
84
|
+
resizeCorner: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
positioner: string;
|
|
89
|
+
content: string;
|
|
90
|
+
header: string;
|
|
91
|
+
control: string;
|
|
92
|
+
title: string;
|
|
93
|
+
trigger: string;
|
|
94
|
+
resizeVertical: string;
|
|
95
|
+
resizeHorizontal: string;
|
|
96
|
+
resizeCorner: string;
|
|
97
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
98
|
+
size: {
|
|
99
|
+
xs: {
|
|
100
|
+
header: string;
|
|
101
|
+
control: string;
|
|
102
|
+
trigger: string;
|
|
103
|
+
resizeVertical: string;
|
|
104
|
+
resizeHorizontal: string;
|
|
105
|
+
resizeCorner: string;
|
|
106
|
+
};
|
|
107
|
+
sm: {
|
|
108
|
+
header: string;
|
|
109
|
+
control: string;
|
|
110
|
+
trigger: string;
|
|
111
|
+
resizeVertical: string;
|
|
112
|
+
resizeHorizontal: string;
|
|
113
|
+
resizeCorner: string;
|
|
114
|
+
};
|
|
115
|
+
base: {
|
|
116
|
+
header: string;
|
|
117
|
+
control: string;
|
|
118
|
+
trigger: string;
|
|
119
|
+
resizeVertical: string;
|
|
120
|
+
resizeHorizontal: string;
|
|
121
|
+
resizeCorner: string;
|
|
122
|
+
};
|
|
123
|
+
lg: {
|
|
124
|
+
header: string;
|
|
125
|
+
control: string;
|
|
126
|
+
trigger: string;
|
|
127
|
+
resizeVertical: string;
|
|
128
|
+
resizeHorizontal: string;
|
|
129
|
+
resizeCorner: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}, {
|
|
133
|
+
positioner: string;
|
|
134
|
+
content: string;
|
|
135
|
+
header: string;
|
|
136
|
+
control: string;
|
|
137
|
+
title: string;
|
|
138
|
+
trigger: string;
|
|
139
|
+
resizeVertical: string;
|
|
140
|
+
resizeHorizontal: string;
|
|
141
|
+
resizeCorner: string;
|
|
142
|
+
}, undefined, unknown, unknown>>;
|
|
143
|
+
export type FloatingPanelVariants = VariantProps<typeof tvFloatingPanel>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { tv } from '../../../shared/utils/tv';
|
|
2
|
+
const prefix = 'rui-floating-panel';
|
|
3
|
+
export const tvFloatingPanel = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
positioner: '',
|
|
6
|
+
content: '',
|
|
7
|
+
header: 'w-full flex items-center justify-between',
|
|
8
|
+
control: 'flex items-center gap-2',
|
|
9
|
+
title: '',
|
|
10
|
+
trigger: 'flex items-center justify-center',
|
|
11
|
+
resizeVertical: 'h-full w-2',
|
|
12
|
+
resizeHorizontal: 'w-full h-2',
|
|
13
|
+
resizeCorner: 'size-2',
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
size: {
|
|
17
|
+
xs: {
|
|
18
|
+
header: 'py-2 pl-4 pr-3 text-xs',
|
|
19
|
+
control: '',
|
|
20
|
+
trigger: 'size-5',
|
|
21
|
+
resizeVertical: 'w-0.5',
|
|
22
|
+
resizeHorizontal: 'h-0.5',
|
|
23
|
+
resizeCorner: 'size-1',
|
|
24
|
+
},
|
|
25
|
+
sm: {
|
|
26
|
+
header: 'py-2.5 pl-5 pr-4 text-sm',
|
|
27
|
+
control: '',
|
|
28
|
+
trigger: 'size-6',
|
|
29
|
+
resizeVertical: 'w-0.75',
|
|
30
|
+
resizeHorizontal: 'h-0.75',
|
|
31
|
+
resizeCorner: 'size-1.5',
|
|
32
|
+
},
|
|
33
|
+
base: {
|
|
34
|
+
header: 'py-3 pl-6 pr-5 text-base',
|
|
35
|
+
control: '',
|
|
36
|
+
trigger: 'size-7',
|
|
37
|
+
resizeVertical: 'w-1',
|
|
38
|
+
resizeHorizontal: 'h-1',
|
|
39
|
+
resizeCorner: 'size-2',
|
|
40
|
+
},
|
|
41
|
+
lg: {
|
|
42
|
+
header: 'py-4 pl-8 pr-7 text-lg',
|
|
43
|
+
control: '',
|
|
44
|
+
trigger: 'size-8',
|
|
45
|
+
resizeVertical: 'w-1.25',
|
|
46
|
+
resizeHorizontal: 'h-1.25',
|
|
47
|
+
resizeCorner: 'size-2.5',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
}, {
|
|
52
|
+
slots: {
|
|
53
|
+
positioner: `${prefix}-positioner`,
|
|
54
|
+
content: `${prefix}-content`,
|
|
55
|
+
header: `${prefix}-header`,
|
|
56
|
+
control: `${prefix}-control`,
|
|
57
|
+
title: `${prefix}-title`,
|
|
58
|
+
trigger: `${prefix}-trigger`,
|
|
59
|
+
resizeVertical: `${prefix}-resize-vertical`,
|
|
60
|
+
resizeHorizontal: `${prefix}-resize-horizontal`,
|
|
61
|
+
resizeCorner: `${prefix}-resize-corner`,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { VariantProps } from '../../../shared/utils/tv';
|
|
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 '../../../shared/utils/tv';
|
|
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 '../../../shared/utils/tv';
|
|
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 '../../../shared/utils/tv';
|
|
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 '../../../shared/utils/tv';
|
|
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';
|