@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,369 @@
|
|
|
1
|
+
import type { VariantProps } from '../../utils';
|
|
2
|
+
export declare const tvDatePicker: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: {
|
|
5
|
+
contentInner: string;
|
|
6
|
+
};
|
|
7
|
+
sm: {
|
|
8
|
+
contentInner: string;
|
|
9
|
+
};
|
|
10
|
+
base: {
|
|
11
|
+
contentInner: string;
|
|
12
|
+
};
|
|
13
|
+
lg: {
|
|
14
|
+
contentInner: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
bordered: {
|
|
18
|
+
true: {
|
|
19
|
+
content: string;
|
|
20
|
+
};
|
|
21
|
+
false: string;
|
|
22
|
+
};
|
|
23
|
+
} & {
|
|
24
|
+
unstyled: {
|
|
25
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
26
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
root: string;
|
|
30
|
+
control: string[];
|
|
31
|
+
content: string[];
|
|
32
|
+
contentInner: string;
|
|
33
|
+
}, undefined, {
|
|
34
|
+
size: {
|
|
35
|
+
xs: {
|
|
36
|
+
contentInner: string;
|
|
37
|
+
};
|
|
38
|
+
sm: {
|
|
39
|
+
contentInner: string;
|
|
40
|
+
};
|
|
41
|
+
base: {
|
|
42
|
+
contentInner: string;
|
|
43
|
+
};
|
|
44
|
+
lg: {
|
|
45
|
+
contentInner: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
bordered: {
|
|
49
|
+
true: {
|
|
50
|
+
content: string;
|
|
51
|
+
};
|
|
52
|
+
false: string;
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
root: string;
|
|
56
|
+
control: string[];
|
|
57
|
+
content: string[];
|
|
58
|
+
contentInner: string;
|
|
59
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
60
|
+
size: {
|
|
61
|
+
xs: {
|
|
62
|
+
contentInner: string;
|
|
63
|
+
};
|
|
64
|
+
sm: {
|
|
65
|
+
contentInner: string;
|
|
66
|
+
};
|
|
67
|
+
base: {
|
|
68
|
+
contentInner: string;
|
|
69
|
+
};
|
|
70
|
+
lg: {
|
|
71
|
+
contentInner: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
bordered: {
|
|
75
|
+
true: {
|
|
76
|
+
content: string;
|
|
77
|
+
};
|
|
78
|
+
false: string;
|
|
79
|
+
};
|
|
80
|
+
}, {
|
|
81
|
+
root: string;
|
|
82
|
+
control: string[];
|
|
83
|
+
content: string[];
|
|
84
|
+
contentInner: string;
|
|
85
|
+
}, undefined, unknown, unknown>>;
|
|
86
|
+
export type DatePickerVariants = VariantProps<typeof tvDatePicker>;
|
|
87
|
+
export declare const tvDatePickerView: import("tailwind-variants").TVReturnType<{
|
|
88
|
+
size: {
|
|
89
|
+
xs: {
|
|
90
|
+
view: string;
|
|
91
|
+
viewControl: string;
|
|
92
|
+
viewControlTrigger: string;
|
|
93
|
+
viewTrigger: string;
|
|
94
|
+
tableHeader: string;
|
|
95
|
+
};
|
|
96
|
+
sm: {
|
|
97
|
+
view: string;
|
|
98
|
+
viewControl: string;
|
|
99
|
+
viewControlTrigger: string;
|
|
100
|
+
viewTrigger: string;
|
|
101
|
+
tableHeader: string;
|
|
102
|
+
};
|
|
103
|
+
base: {
|
|
104
|
+
view: string;
|
|
105
|
+
viewControl: string;
|
|
106
|
+
viewControlTrigger: string;
|
|
107
|
+
viewTrigger: string;
|
|
108
|
+
tableHeader: string;
|
|
109
|
+
};
|
|
110
|
+
lg: {
|
|
111
|
+
view: string;
|
|
112
|
+
viewControl: string;
|
|
113
|
+
viewControlTrigger: string;
|
|
114
|
+
viewTrigger: string;
|
|
115
|
+
tableHeader: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
view: {
|
|
119
|
+
day: {
|
|
120
|
+
tableHead: string;
|
|
121
|
+
tableBody: string;
|
|
122
|
+
tableCell: string;
|
|
123
|
+
};
|
|
124
|
+
month: {
|
|
125
|
+
tableBody: string;
|
|
126
|
+
tableCell: string;
|
|
127
|
+
};
|
|
128
|
+
year: {
|
|
129
|
+
tableBody: string;
|
|
130
|
+
tableCell: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
selected: {
|
|
134
|
+
true: {
|
|
135
|
+
tableCellTrigger: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
inRange: {
|
|
139
|
+
true: {
|
|
140
|
+
tableCellTrigger: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
firstInRange: {
|
|
144
|
+
true: {
|
|
145
|
+
tableCellTrigger: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
firstInHoveredRange: {
|
|
149
|
+
true: {
|
|
150
|
+
tableCellTrigger: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
lastInRange: {
|
|
154
|
+
true: {
|
|
155
|
+
tableCellTrigger: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
lastInHoveredRange: {
|
|
159
|
+
true: {
|
|
160
|
+
tableCellTrigger: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
today: {
|
|
164
|
+
true: {
|
|
165
|
+
tableCellTrigger: string[];
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
} & {
|
|
169
|
+
unstyled: {
|
|
170
|
+
true: import("tailwind-merge").ClassNameValue;
|
|
171
|
+
false: import("tailwind-merge").ClassNameValue;
|
|
172
|
+
};
|
|
173
|
+
}, {
|
|
174
|
+
view: string;
|
|
175
|
+
viewControl: string[];
|
|
176
|
+
viewControlTrigger: string;
|
|
177
|
+
viewTrigger: string;
|
|
178
|
+
table: string;
|
|
179
|
+
tableHead: string;
|
|
180
|
+
tableHeader: string;
|
|
181
|
+
tableBody: string;
|
|
182
|
+
tableCell: string;
|
|
183
|
+
tableCellTrigger: string[];
|
|
184
|
+
}, undefined, {
|
|
185
|
+
size: {
|
|
186
|
+
xs: {
|
|
187
|
+
view: string;
|
|
188
|
+
viewControl: string;
|
|
189
|
+
viewControlTrigger: string;
|
|
190
|
+
viewTrigger: string;
|
|
191
|
+
tableHeader: string;
|
|
192
|
+
};
|
|
193
|
+
sm: {
|
|
194
|
+
view: string;
|
|
195
|
+
viewControl: string;
|
|
196
|
+
viewControlTrigger: string;
|
|
197
|
+
viewTrigger: string;
|
|
198
|
+
tableHeader: string;
|
|
199
|
+
};
|
|
200
|
+
base: {
|
|
201
|
+
view: string;
|
|
202
|
+
viewControl: string;
|
|
203
|
+
viewControlTrigger: string;
|
|
204
|
+
viewTrigger: string;
|
|
205
|
+
tableHeader: string;
|
|
206
|
+
};
|
|
207
|
+
lg: {
|
|
208
|
+
view: string;
|
|
209
|
+
viewControl: string;
|
|
210
|
+
viewControlTrigger: string;
|
|
211
|
+
viewTrigger: string;
|
|
212
|
+
tableHeader: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
view: {
|
|
216
|
+
day: {
|
|
217
|
+
tableHead: string;
|
|
218
|
+
tableBody: string;
|
|
219
|
+
tableCell: string;
|
|
220
|
+
};
|
|
221
|
+
month: {
|
|
222
|
+
tableBody: string;
|
|
223
|
+
tableCell: string;
|
|
224
|
+
};
|
|
225
|
+
year: {
|
|
226
|
+
tableBody: string;
|
|
227
|
+
tableCell: string;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
selected: {
|
|
231
|
+
true: {
|
|
232
|
+
tableCellTrigger: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
inRange: {
|
|
236
|
+
true: {
|
|
237
|
+
tableCellTrigger: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
firstInRange: {
|
|
241
|
+
true: {
|
|
242
|
+
tableCellTrigger: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
firstInHoveredRange: {
|
|
246
|
+
true: {
|
|
247
|
+
tableCellTrigger: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
lastInRange: {
|
|
251
|
+
true: {
|
|
252
|
+
tableCellTrigger: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
lastInHoveredRange: {
|
|
256
|
+
true: {
|
|
257
|
+
tableCellTrigger: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
today: {
|
|
261
|
+
true: {
|
|
262
|
+
tableCellTrigger: string[];
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
}, {
|
|
266
|
+
view: string;
|
|
267
|
+
viewControl: string[];
|
|
268
|
+
viewControlTrigger: string;
|
|
269
|
+
viewTrigger: string;
|
|
270
|
+
table: string;
|
|
271
|
+
tableHead: string;
|
|
272
|
+
tableHeader: string;
|
|
273
|
+
tableBody: string;
|
|
274
|
+
tableCell: string;
|
|
275
|
+
tableCellTrigger: string[];
|
|
276
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
277
|
+
size: {
|
|
278
|
+
xs: {
|
|
279
|
+
view: string;
|
|
280
|
+
viewControl: string;
|
|
281
|
+
viewControlTrigger: string;
|
|
282
|
+
viewTrigger: string;
|
|
283
|
+
tableHeader: string;
|
|
284
|
+
};
|
|
285
|
+
sm: {
|
|
286
|
+
view: string;
|
|
287
|
+
viewControl: string;
|
|
288
|
+
viewControlTrigger: string;
|
|
289
|
+
viewTrigger: string;
|
|
290
|
+
tableHeader: string;
|
|
291
|
+
};
|
|
292
|
+
base: {
|
|
293
|
+
view: string;
|
|
294
|
+
viewControl: string;
|
|
295
|
+
viewControlTrigger: string;
|
|
296
|
+
viewTrigger: string;
|
|
297
|
+
tableHeader: string;
|
|
298
|
+
};
|
|
299
|
+
lg: {
|
|
300
|
+
view: string;
|
|
301
|
+
viewControl: string;
|
|
302
|
+
viewControlTrigger: string;
|
|
303
|
+
viewTrigger: string;
|
|
304
|
+
tableHeader: string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
view: {
|
|
308
|
+
day: {
|
|
309
|
+
tableHead: string;
|
|
310
|
+
tableBody: string;
|
|
311
|
+
tableCell: string;
|
|
312
|
+
};
|
|
313
|
+
month: {
|
|
314
|
+
tableBody: string;
|
|
315
|
+
tableCell: string;
|
|
316
|
+
};
|
|
317
|
+
year: {
|
|
318
|
+
tableBody: string;
|
|
319
|
+
tableCell: string;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
selected: {
|
|
323
|
+
true: {
|
|
324
|
+
tableCellTrigger: string;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
inRange: {
|
|
328
|
+
true: {
|
|
329
|
+
tableCellTrigger: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
firstInRange: {
|
|
333
|
+
true: {
|
|
334
|
+
tableCellTrigger: string;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
firstInHoveredRange: {
|
|
338
|
+
true: {
|
|
339
|
+
tableCellTrigger: string;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
lastInRange: {
|
|
343
|
+
true: {
|
|
344
|
+
tableCellTrigger: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
lastInHoveredRange: {
|
|
348
|
+
true: {
|
|
349
|
+
tableCellTrigger: string;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
today: {
|
|
353
|
+
true: {
|
|
354
|
+
tableCellTrigger: string[];
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
}, {
|
|
358
|
+
view: string;
|
|
359
|
+
viewControl: string[];
|
|
360
|
+
viewControlTrigger: string;
|
|
361
|
+
viewTrigger: string;
|
|
362
|
+
table: string;
|
|
363
|
+
tableHead: string;
|
|
364
|
+
tableHeader: string;
|
|
365
|
+
tableBody: string;
|
|
366
|
+
tableCell: string;
|
|
367
|
+
tableCellTrigger: string[];
|
|
368
|
+
}, undefined, unknown, unknown>>;
|
|
369
|
+
export type DatePickerViewVariants = VariantProps<typeof tvDatePickerView>;
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { tv } from '../../utils';
|
|
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 '../../utils';
|
|
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>;
|