@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,242 @@
|
|
|
1
|
+
import { tv } from '../../../shared/utils/tv';
|
|
2
|
+
const prefix = 'rui-date-picker';
|
|
3
|
+
export const tvDatePicker = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: '',
|
|
6
|
+
control: ['flex', 'items-center', 'gap-2', 'w-fit'],
|
|
7
|
+
content: [
|
|
8
|
+
'group/content',
|
|
9
|
+
'relative',
|
|
10
|
+
'z-auto',
|
|
11
|
+
'min-w-(--reference-width)',
|
|
12
|
+
'rounded',
|
|
13
|
+
'p-0',
|
|
14
|
+
'z-(--z-popover)',
|
|
15
|
+
'data-[state=open]:motion-opacity-in',
|
|
16
|
+
'data-[state=open]:motion-scale-in-95',
|
|
17
|
+
'data-[state=open]:data-[placement^=bottom]:motion-translate-y-in-[.25rem]',
|
|
18
|
+
'data-[state=open]:data-[placement^=top]:-motion-translate-y-in-[.25rem]',
|
|
19
|
+
'data-[state=open]:data-[placement^=left]:-motion-translate-x-in-[.25rem]',
|
|
20
|
+
'data-[state=open]:data-[placement^=right]:motion-translate-x-in-[.25rem]',
|
|
21
|
+
'data-[state=closed]:motion-opacity-out',
|
|
22
|
+
'data-[state=closed]:motion-scale-out-95',
|
|
23
|
+
'data-[state=closed]:data-[placement^=bottom]:motion-translate-y-out-[.25rem]',
|
|
24
|
+
'data-[state=closed]:data-[placement^=top]:-motion-translate-y-out-[.25rem]',
|
|
25
|
+
'data-[state=closed]:data-[placement^=left]:-motion-translate-x-out-[.25rem]',
|
|
26
|
+
'data-[state=closed]:data-[placement^=right]:motion-translate-x-out-[.25rem]',
|
|
27
|
+
],
|
|
28
|
+
contentInner: '',
|
|
29
|
+
},
|
|
30
|
+
variants: {
|
|
31
|
+
size: {
|
|
32
|
+
xs: {
|
|
33
|
+
contentInner: 'px-1.5 py-1',
|
|
34
|
+
},
|
|
35
|
+
sm: {
|
|
36
|
+
contentInner: 'px-2 py-1.5',
|
|
37
|
+
},
|
|
38
|
+
base: {
|
|
39
|
+
contentInner: 'px-2.5 py-1.5',
|
|
40
|
+
},
|
|
41
|
+
lg: {
|
|
42
|
+
contentInner: 'px-3 py-2',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
bordered: {
|
|
46
|
+
true: {
|
|
47
|
+
content: 'border',
|
|
48
|
+
},
|
|
49
|
+
false: '',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
}, {
|
|
53
|
+
slots: {
|
|
54
|
+
root: `${prefix}`,
|
|
55
|
+
control: `${prefix}-control`,
|
|
56
|
+
content: `${prefix}-content`,
|
|
57
|
+
contentInner: `${prefix}-content-inner`,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
export const tvDatePickerView = tv({
|
|
61
|
+
slots: {
|
|
62
|
+
view: 'flex flex-col gap-2',
|
|
63
|
+
viewControl: ['flex', 'items-center', 'justify-between', 'w-full'],
|
|
64
|
+
viewControlTrigger: '',
|
|
65
|
+
viewTrigger: 'rounded',
|
|
66
|
+
table: 'grid gap-2',
|
|
67
|
+
tableHead: 'grid',
|
|
68
|
+
tableHeader: 'block text-center truncate uppercase',
|
|
69
|
+
tableBody: 'grid',
|
|
70
|
+
tableCell: '',
|
|
71
|
+
tableCellTrigger: [
|
|
72
|
+
'relative',
|
|
73
|
+
'flex',
|
|
74
|
+
'items-center',
|
|
75
|
+
'justify-center',
|
|
76
|
+
'size-full',
|
|
77
|
+
'cursor-default',
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
variants: {
|
|
81
|
+
size: {
|
|
82
|
+
xs: {
|
|
83
|
+
view: 'text-xs',
|
|
84
|
+
viewControl: '',
|
|
85
|
+
viewControlTrigger: 'box-content p-1.5',
|
|
86
|
+
viewTrigger: 'text-xs h-6 px-1.5',
|
|
87
|
+
tableHeader: 'w-6 text-xxs',
|
|
88
|
+
},
|
|
89
|
+
sm: {
|
|
90
|
+
view: 'text-sm',
|
|
91
|
+
viewControl: '',
|
|
92
|
+
viewControlTrigger: 'box-content p-2',
|
|
93
|
+
viewTrigger: 'text-sm h-8 px-2',
|
|
94
|
+
tableHeader: 'w-8 text-xs',
|
|
95
|
+
},
|
|
96
|
+
base: {
|
|
97
|
+
view: 'text-base',
|
|
98
|
+
viewControl: '',
|
|
99
|
+
viewControlTrigger: 'box-content p-2.5',
|
|
100
|
+
viewTrigger: 'text-base h-9.5 px-2.5',
|
|
101
|
+
tableHeader: 'w-10 text-sm',
|
|
102
|
+
},
|
|
103
|
+
lg: {
|
|
104
|
+
view: 'text-lg',
|
|
105
|
+
viewControl: '',
|
|
106
|
+
viewControlTrigger: 'box-content p-3',
|
|
107
|
+
viewTrigger: 'text-lg h-10 px-3',
|
|
108
|
+
tableHeader: 'w-12 text-base',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
view: {
|
|
112
|
+
day: {
|
|
113
|
+
tableHead: 'grid-cols-7',
|
|
114
|
+
tableBody: 'grid-cols-7',
|
|
115
|
+
tableCell: 'aspect-square',
|
|
116
|
+
},
|
|
117
|
+
month: {
|
|
118
|
+
tableBody: 'grid-cols-4',
|
|
119
|
+
tableCell: 'aspect-[16/9]',
|
|
120
|
+
},
|
|
121
|
+
year: {
|
|
122
|
+
tableBody: 'grid-cols-4',
|
|
123
|
+
tableCell: 'aspect-[16/9]',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
selected: {
|
|
127
|
+
true: {
|
|
128
|
+
tableCellTrigger: 'rounded',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
inRange: {
|
|
132
|
+
true: {
|
|
133
|
+
tableCellTrigger: 'rounded-none',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
firstInRange: {
|
|
137
|
+
true: {
|
|
138
|
+
tableCellTrigger: 'rounded-tl rounded-bl',
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
firstInHoveredRange: {
|
|
142
|
+
true: {
|
|
143
|
+
tableCellTrigger: 'rounded-tl rounded-bl',
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
lastInRange: {
|
|
147
|
+
true: {
|
|
148
|
+
tableCellTrigger: 'rounded-br rounded-tr',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
lastInHoveredRange: {
|
|
152
|
+
true: {
|
|
153
|
+
tableCellTrigger: 'rounded-br rounded-tr',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
today: {
|
|
157
|
+
true: {
|
|
158
|
+
tableCellTrigger: [
|
|
159
|
+
'after:content-[""]',
|
|
160
|
+
'after:absolute',
|
|
161
|
+
'after:top-0',
|
|
162
|
+
'after:right-0',
|
|
163
|
+
'after:rounded-full',
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
compoundVariants: [
|
|
169
|
+
{
|
|
170
|
+
size: 'xs',
|
|
171
|
+
view: ['month', 'year'],
|
|
172
|
+
class: {
|
|
173
|
+
tableCell: 'w-12',
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
size: 'sm',
|
|
178
|
+
view: ['month', 'year'],
|
|
179
|
+
class: {
|
|
180
|
+
tableCell: 'w-14',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
size: 'base',
|
|
185
|
+
view: ['month', 'year'],
|
|
186
|
+
class: {
|
|
187
|
+
tableCell: 'w-16',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
size: 'lg',
|
|
192
|
+
view: ['month', 'year'],
|
|
193
|
+
class: {
|
|
194
|
+
tableCell: 'w-18',
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
today: true,
|
|
199
|
+
size: 'xs',
|
|
200
|
+
class: {
|
|
201
|
+
tableCellTrigger: 'after:w-1.25 after:h-1.25',
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
today: true,
|
|
206
|
+
size: 'sm',
|
|
207
|
+
class: {
|
|
208
|
+
tableCellTrigger: 'after:w-1.5 after:h-1.5',
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
today: true,
|
|
213
|
+
size: 'base',
|
|
214
|
+
class: {
|
|
215
|
+
tableCellTrigger: 'after:w-1.75 after:h-1.75',
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
today: true,
|
|
220
|
+
size: 'lg',
|
|
221
|
+
class: {
|
|
222
|
+
tableCellTrigger: 'after:w-2 after:h-2',
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
defaultVariants: {
|
|
227
|
+
size: 'base',
|
|
228
|
+
},
|
|
229
|
+
}, {
|
|
230
|
+
slots: {
|
|
231
|
+
view: `${prefix}-view`,
|
|
232
|
+
viewControl: `${prefix}-view-control`,
|
|
233
|
+
viewTrigger: `${prefix}-view-trigger`,
|
|
234
|
+
viewControlTrigger: `${prefix}-view-control-trigger`,
|
|
235
|
+
table: `${prefix}-table`,
|
|
236
|
+
tableHead: `${prefix}-table-head`,
|
|
237
|
+
tableHeader: `${prefix}-table-header`,
|
|
238
|
+
tableBody: `${prefix}-table-body`,
|
|
239
|
+
tableCell: `${prefix}-table-cell`,
|
|
240
|
+
tableCellTrigger: `${prefix}-table-cell-trigger`,
|
|
241
|
+
},
|
|
242
|
+
});
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { VariantProps } from '../../../shared/utils/tv';
|
|
2
|
+
export declare const tvDialog: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: {
|
|
5
|
+
body: string;
|
|
6
|
+
footer: string;
|
|
7
|
+
header: string;
|
|
8
|
+
close: string[];
|
|
9
|
+
};
|
|
10
|
+
sm: {
|
|
11
|
+
body: string;
|
|
12
|
+
footer: string;
|
|
13
|
+
header: string;
|
|
14
|
+
close: string[];
|
|
15
|
+
};
|
|
16
|
+
base: {
|
|
17
|
+
body: string;
|
|
18
|
+
footer: string;
|
|
19
|
+
header: string;
|
|
20
|
+
close: string[];
|
|
21
|
+
};
|
|
22
|
+
lg: {
|
|
23
|
+
body: string;
|
|
24
|
+
footer: string;
|
|
25
|
+
header: string;
|
|
26
|
+
close: string[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
} & {
|
|
30
|
+
unstyled: {
|
|
31
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
32
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
backdrop: string[];
|
|
36
|
+
positioner: string[];
|
|
37
|
+
content: string[];
|
|
38
|
+
close: string;
|
|
39
|
+
header: string[];
|
|
40
|
+
title: never[];
|
|
41
|
+
body: string[];
|
|
42
|
+
footer: string[];
|
|
43
|
+
}, undefined, {
|
|
44
|
+
size: {
|
|
45
|
+
xs: {
|
|
46
|
+
body: string;
|
|
47
|
+
footer: string;
|
|
48
|
+
header: string;
|
|
49
|
+
close: string[];
|
|
50
|
+
};
|
|
51
|
+
sm: {
|
|
52
|
+
body: string;
|
|
53
|
+
footer: string;
|
|
54
|
+
header: string;
|
|
55
|
+
close: string[];
|
|
56
|
+
};
|
|
57
|
+
base: {
|
|
58
|
+
body: string;
|
|
59
|
+
footer: string;
|
|
60
|
+
header: string;
|
|
61
|
+
close: string[];
|
|
62
|
+
};
|
|
63
|
+
lg: {
|
|
64
|
+
body: string;
|
|
65
|
+
footer: string;
|
|
66
|
+
header: string;
|
|
67
|
+
close: string[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}, {
|
|
71
|
+
backdrop: string[];
|
|
72
|
+
positioner: string[];
|
|
73
|
+
content: string[];
|
|
74
|
+
close: string;
|
|
75
|
+
header: string[];
|
|
76
|
+
title: never[];
|
|
77
|
+
body: string[];
|
|
78
|
+
footer: string[];
|
|
79
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
80
|
+
size: {
|
|
81
|
+
xs: {
|
|
82
|
+
body: string;
|
|
83
|
+
footer: string;
|
|
84
|
+
header: string;
|
|
85
|
+
close: string[];
|
|
86
|
+
};
|
|
87
|
+
sm: {
|
|
88
|
+
body: string;
|
|
89
|
+
footer: string;
|
|
90
|
+
header: string;
|
|
91
|
+
close: string[];
|
|
92
|
+
};
|
|
93
|
+
base: {
|
|
94
|
+
body: string;
|
|
95
|
+
footer: string;
|
|
96
|
+
header: string;
|
|
97
|
+
close: string[];
|
|
98
|
+
};
|
|
99
|
+
lg: {
|
|
100
|
+
body: string;
|
|
101
|
+
footer: string;
|
|
102
|
+
header: string;
|
|
103
|
+
close: string[];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
backdrop: string[];
|
|
108
|
+
positioner: string[];
|
|
109
|
+
content: string[];
|
|
110
|
+
close: string;
|
|
111
|
+
header: string[];
|
|
112
|
+
title: never[];
|
|
113
|
+
body: string[];
|
|
114
|
+
footer: string[];
|
|
115
|
+
}, undefined, unknown, unknown>>;
|
|
116
|
+
export type DialogVariants = VariantProps<typeof tvDialog>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { tv } from '../../../shared/utils/tv';
|
|
2
|
+
const prefix = 'rui-dialog';
|
|
3
|
+
export const tvDialog = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
backdrop: [
|
|
6
|
+
'fixed',
|
|
7
|
+
'inset-0',
|
|
8
|
+
'z-(--z-overlay)',
|
|
9
|
+
'data-[state=open]:motion-opacity-in',
|
|
10
|
+
'data-[state=open]:animate-backdrop-blur-in',
|
|
11
|
+
'data-[state=closed]:motion-opacity-out',
|
|
12
|
+
'data-[state=closed]:animate-backdrop-blur-out',
|
|
13
|
+
],
|
|
14
|
+
positioner: ['fixed', 'inset-0', 'z-(--z-modal)', 'flex', 'items-center', 'justify-center'],
|
|
15
|
+
content: [
|
|
16
|
+
'relative',
|
|
17
|
+
'max-w-full',
|
|
18
|
+
'md:max-w-[80vw]',
|
|
19
|
+
'border',
|
|
20
|
+
'rounded',
|
|
21
|
+
'data-[state=open]:motion-opacity-in',
|
|
22
|
+
'data-[state=open]:motion-translate-y-in',
|
|
23
|
+
'data-[state=closed]:motion-opacity-out',
|
|
24
|
+
'data-[state=closed]:motion-translate-y-out',
|
|
25
|
+
],
|
|
26
|
+
close: '',
|
|
27
|
+
header: ['flex', 'items-center', 'justify-between'],
|
|
28
|
+
title: [],
|
|
29
|
+
body: ['flex-1', 'overflow-y-auto'],
|
|
30
|
+
footer: ['flex', 'items-center', 'justify-end'],
|
|
31
|
+
},
|
|
32
|
+
variants: {
|
|
33
|
+
size: {
|
|
34
|
+
xs: {
|
|
35
|
+
body: 'p-4 text-xs',
|
|
36
|
+
footer: 'px-4 py-3 gap-4 text-xs',
|
|
37
|
+
header: 'py-2 px-4 text-xs',
|
|
38
|
+
close: [
|
|
39
|
+
'p-0.25',
|
|
40
|
+
'text-xs',
|
|
41
|
+
'data-[variant=content-close]:pt-1.5',
|
|
42
|
+
'data-[variant=content-close]:pr-1.5',
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
sm: {
|
|
46
|
+
body: 'p-5 text-sm',
|
|
47
|
+
footer: 'px-5 py-4 gap-5 text-sm',
|
|
48
|
+
header: 'py-2.5 px-5 text-sm',
|
|
49
|
+
close: [
|
|
50
|
+
'p-0.5',
|
|
51
|
+
'text-sm',
|
|
52
|
+
'data-[variant=content-close]:p-0',
|
|
53
|
+
'data-[variant=content-close]:pt-2',
|
|
54
|
+
'data-[variant=content-close]:pr-2',
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
base: {
|
|
58
|
+
body: 'p-6 text-base',
|
|
59
|
+
footer: 'px-6 py-5 gap-6 text-base',
|
|
60
|
+
header: 'py-3 px-6 text-base',
|
|
61
|
+
close: [
|
|
62
|
+
'p-0.75',
|
|
63
|
+
'text-base',
|
|
64
|
+
'data-[variant=content-close]:pt-2.5',
|
|
65
|
+
'data-[variant=content-close]:pr-2.5',
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
lg: {
|
|
69
|
+
body: 'p-8 text-lg',
|
|
70
|
+
footer: 'px-8 py-6 gap-8 text-lg',
|
|
71
|
+
header: 'py-4 px-8 text-lg',
|
|
72
|
+
close: [
|
|
73
|
+
'p-1',
|
|
74
|
+
'text-lg',
|
|
75
|
+
'data-[variant=content-close]:pt-3',
|
|
76
|
+
'data-[variant=content-close]:pr-3',
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
defaultVariants: {
|
|
82
|
+
size: 'base',
|
|
83
|
+
},
|
|
84
|
+
}, {
|
|
85
|
+
slots: {
|
|
86
|
+
backdrop: `${prefix}-backdrop`,
|
|
87
|
+
positioner: `${prefix}-positioner`,
|
|
88
|
+
content: `${prefix}-content`,
|
|
89
|
+
header: `${prefix}-header`,
|
|
90
|
+
close: `${prefix}-close`,
|
|
91
|
+
title: `${prefix}-title`,
|
|
92
|
+
body: `${prefix}-body`,
|
|
93
|
+
footer: `${prefix}-footer`,
|
|
94
|
+
},
|
|
95
|
+
});
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { VariantProps } from '../../../shared/utils/tv';
|
|
2
|
+
export declare const tvEditable: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: string;
|
|
5
|
+
sm: string;
|
|
6
|
+
base: string;
|
|
7
|
+
lg: string;
|
|
8
|
+
};
|
|
9
|
+
} & {
|
|
10
|
+
unstyled: {
|
|
11
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
root: string;
|
|
16
|
+
area: string;
|
|
17
|
+
preview: string;
|
|
18
|
+
}, undefined, {
|
|
19
|
+
size: {
|
|
20
|
+
xs: string;
|
|
21
|
+
sm: string;
|
|
22
|
+
base: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
root: string;
|
|
27
|
+
area: string;
|
|
28
|
+
preview: string;
|
|
29
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
30
|
+
size: {
|
|
31
|
+
xs: string;
|
|
32
|
+
sm: string;
|
|
33
|
+
base: string;
|
|
34
|
+
lg: string;
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
root: string;
|
|
38
|
+
area: string;
|
|
39
|
+
preview: string;
|
|
40
|
+
}, undefined, unknown, unknown>>;
|
|
41
|
+
export declare const tvEditableInput: import("tailwind-variants").TVReturnType<({
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
44
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
45
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
46
|
+
clearable?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
} | {
|
|
50
|
+
size: {
|
|
51
|
+
xs: import("tailwind-merge").ClassNameValue | {
|
|
52
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
53
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
54
|
+
clearable?: import("tailwind-merge").ClassNameValue;
|
|
55
|
+
};
|
|
56
|
+
sm: import("tailwind-merge").ClassNameValue | {
|
|
57
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
58
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
59
|
+
clearable?: import("tailwind-merge").ClassNameValue;
|
|
60
|
+
};
|
|
61
|
+
base: import("tailwind-merge").ClassNameValue | {
|
|
62
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
63
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
64
|
+
clearable?: import("tailwind-merge").ClassNameValue;
|
|
65
|
+
};
|
|
66
|
+
lg: import("tailwind-merge").ClassNameValue | {
|
|
67
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
68
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
69
|
+
clearable?: import("tailwind-merge").ClassNameValue;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
unstyled: {
|
|
73
|
+
true: import("tailwind-merge").ClassNameValue | {
|
|
74
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
75
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
76
|
+
clearable?: import("tailwind-merge").ClassNameValue;
|
|
77
|
+
};
|
|
78
|
+
false: import("tailwind-merge").ClassNameValue | {
|
|
79
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
80
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
81
|
+
clearable?: import("tailwind-merge").ClassNameValue;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}) & {
|
|
85
|
+
unstyled: {
|
|
86
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
87
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
root: string;
|
|
91
|
+
input: string;
|
|
92
|
+
clearable: string;
|
|
93
|
+
}, undefined, {
|
|
94
|
+
size: {
|
|
95
|
+
xs: {
|
|
96
|
+
root: string;
|
|
97
|
+
input: string;
|
|
98
|
+
};
|
|
99
|
+
sm: {
|
|
100
|
+
root: string;
|
|
101
|
+
input: string;
|
|
102
|
+
};
|
|
103
|
+
base: {
|
|
104
|
+
root: string;
|
|
105
|
+
input: string;
|
|
106
|
+
};
|
|
107
|
+
lg: {
|
|
108
|
+
root: string;
|
|
109
|
+
input: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
} & {
|
|
113
|
+
unstyled: {
|
|
114
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
115
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
root: string[];
|
|
119
|
+
input: string[];
|
|
120
|
+
clearable: string[];
|
|
121
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
122
|
+
size: {
|
|
123
|
+
xs: {
|
|
124
|
+
root: string;
|
|
125
|
+
input: string;
|
|
126
|
+
};
|
|
127
|
+
sm: {
|
|
128
|
+
root: string;
|
|
129
|
+
input: string;
|
|
130
|
+
};
|
|
131
|
+
base: {
|
|
132
|
+
root: string;
|
|
133
|
+
input: string;
|
|
134
|
+
};
|
|
135
|
+
lg: {
|
|
136
|
+
root: string;
|
|
137
|
+
input: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
} & {
|
|
141
|
+
unstyled: {
|
|
142
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
143
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
144
|
+
};
|
|
145
|
+
}, {
|
|
146
|
+
root: string[];
|
|
147
|
+
input: string[];
|
|
148
|
+
clearable: string[];
|
|
149
|
+
}, undefined, {
|
|
150
|
+
size: {
|
|
151
|
+
xs: {
|
|
152
|
+
root: string;
|
|
153
|
+
input: string;
|
|
154
|
+
};
|
|
155
|
+
sm: {
|
|
156
|
+
root: string;
|
|
157
|
+
input: string;
|
|
158
|
+
};
|
|
159
|
+
base: {
|
|
160
|
+
root: string;
|
|
161
|
+
input: string;
|
|
162
|
+
};
|
|
163
|
+
lg: {
|
|
164
|
+
root: string;
|
|
165
|
+
input: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
root: string[];
|
|
170
|
+
input: string[];
|
|
171
|
+
clearable: string[];
|
|
172
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
173
|
+
size: {
|
|
174
|
+
xs: {
|
|
175
|
+
root: string;
|
|
176
|
+
input: string;
|
|
177
|
+
};
|
|
178
|
+
sm: {
|
|
179
|
+
root: string;
|
|
180
|
+
input: string;
|
|
181
|
+
};
|
|
182
|
+
base: {
|
|
183
|
+
root: string;
|
|
184
|
+
input: string;
|
|
185
|
+
};
|
|
186
|
+
lg: {
|
|
187
|
+
root: string;
|
|
188
|
+
input: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
}, {
|
|
192
|
+
root: string[];
|
|
193
|
+
input: string[];
|
|
194
|
+
clearable: string[];
|
|
195
|
+
}, undefined, unknown, unknown>>>;
|
|
196
|
+
export type EditableVariants = VariantProps<typeof tvEditable>;
|
|
197
|
+
export type EditableInputVariants = VariantProps<typeof tvEditableInput>;
|