@nextui-org/theme 2.1.18 → 2.2.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/README.md +1 -1
- package/dist/{chunk-XY766PDD.mjs → chunk-3FZU25GR.mjs} +2 -1
- package/dist/{chunk-CVU6I4IJ.mjs → chunk-4ZM6AI3H.mjs} +1 -1
- package/dist/{chunk-LQGOKGQV.mjs → chunk-524WVPFR.mjs} +1 -1
- package/dist/{chunk-RJKUWMDJ.mjs → chunk-6XJJCV76.mjs} +1 -1
- package/dist/{chunk-S7W5DQP2.mjs → chunk-726LN7M3.mjs} +1 -1
- package/dist/{chunk-PXVLYT7W.mjs → chunk-7ELFOVMX.mjs} +1 -1
- package/dist/{chunk-WODEC7EF.mjs → chunk-7ODIBITJ.mjs} +6 -6
- package/dist/chunk-7TJINK3S.mjs +390 -0
- package/dist/{chunk-NVOA7VPK.mjs → chunk-AC6F4DT6.mjs} +4 -4
- package/dist/{chunk-GNLIYZAQ.mjs → chunk-AGUZRGXC.mjs} +1 -1
- package/dist/{chunk-U4EMZ2CQ.mjs → chunk-AO2AAOEJ.mjs} +2 -2
- package/dist/{chunk-3BNHFA72.mjs → chunk-AT4OXKKK.mjs} +1 -1
- package/dist/{chunk-5EJVI4V3.mjs → chunk-CTY7IP65.mjs} +29 -13
- package/dist/{chunk-DXTDUHS5.mjs → chunk-CUUGEIPA.mjs} +1 -1
- package/dist/chunk-D2XMP2NC.mjs +6 -0
- package/dist/{chunk-4JBYJQSP.mjs → chunk-ECP4S2VZ.mjs} +1 -1
- package/dist/{chunk-B55QBA5E.mjs → chunk-FRI2VDCA.mjs} +1 -1
- package/dist/{chunk-6AEINX52.mjs → chunk-GMMETTYU.mjs} +2 -16
- package/dist/{chunk-Y5VJSYKV.mjs → chunk-GMUSZ3YF.mjs} +1 -1
- package/dist/{chunk-FHNC7F3W.mjs → chunk-HGSHFC5N.mjs} +7 -1
- package/dist/{chunk-G3PB7L4N.mjs → chunk-HPFX3B3F.mjs} +1 -30
- package/dist/{chunk-VZI6SR6H.mjs → chunk-HUBDRSA4.mjs} +1 -2
- package/dist/{chunk-33DU6C7I.mjs → chunk-I6ESTKKY.mjs} +9 -9
- package/dist/{chunk-EGP3AT4R.mjs → chunk-IP3D7KVB.mjs} +3 -1
- package/dist/{chunk-Q3TEEYQJ.mjs → chunk-JQTFOIV7.mjs} +1 -1
- package/dist/{chunk-JBHEJMGV.mjs → chunk-KCOC3H6R.mjs} +1 -1
- package/dist/{chunk-ZWJMJMVY.mjs → chunk-KVPPQD2E.mjs} +27 -5
- package/dist/{chunk-WBNF66V7.mjs → chunk-LDBYFTHC.mjs} +1 -1
- package/dist/{chunk-GOHT67J3.mjs → chunk-MUWHEIW6.mjs} +13 -6
- package/dist/{chunk-2SNOAR5H.mjs → chunk-NAUU2OUH.mjs} +1 -1
- package/dist/chunk-NPDZ7OMC.mjs +401 -0
- package/dist/{chunk-QYW2VWAB.mjs → chunk-NYSEAAK5.mjs} +4 -4
- package/dist/{chunk-LENRVMCD.mjs → chunk-OQIS4MXV.mjs} +1 -1
- package/dist/{chunk-NAY2XKLY.mjs → chunk-PSEUPXFL.mjs} +1 -1
- package/dist/{chunk-SPRRISBY.mjs → chunk-RNAP5C4C.mjs} +1 -1
- package/dist/{chunk-L37EV5TN.mjs → chunk-S573WUYY.mjs} +1 -1
- package/dist/{chunk-777XXWYS.mjs → chunk-SEKJ6A6T.mjs} +19 -2
- package/dist/{chunk-YSXRNNDV.mjs → chunk-UODOTC2G.mjs} +1 -1
- package/dist/{chunk-77O7KLUI.mjs → chunk-V5ZTBGGO.mjs} +1 -1
- package/dist/{chunk-MUPUMXL7.mjs → chunk-VDRJHB4F.mjs} +7 -4
- package/dist/chunk-VJTX4YUQ.mjs +31 -0
- package/dist/{chunk-EC4F6RJF.mjs → chunk-W6DVXJB3.mjs} +1 -1
- package/dist/{chunk-XPLXQDB3.mjs → chunk-WAAJG22Y.mjs} +1 -1
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/{chunk-TDMF44G6.mjs → chunk-X7N3NQ6S.mjs} +1 -1
- package/dist/{chunk-5QVKTCUZ.mjs → chunk-YSA7EQBH.mjs} +12 -47
- package/dist/components/accordion.js +2 -67
- package/dist/components/accordion.mjs +2 -3
- package/dist/components/autocomplete.js +2 -67
- package/dist/components/autocomplete.mjs +2 -3
- package/dist/components/avatar.d.ts +14 -4
- package/dist/components/avatar.js +8 -70
- package/dist/components/avatar.mjs +2 -3
- package/dist/components/badge.js +2 -67
- package/dist/components/badge.mjs +2 -3
- package/dist/components/breadcrumbs.js +2 -67
- package/dist/components/breadcrumbs.mjs +2 -3
- package/dist/components/button.d.ts +35 -35
- package/dist/components/button.js +10 -75
- package/dist/components/button.mjs +2 -3
- package/dist/components/calendar.d.ts +495 -0
- package/dist/components/calendar.js +456 -0
- package/dist/components/calendar.mjs +11 -0
- package/dist/components/card.js +2 -67
- package/dist/components/card.mjs +2 -3
- package/dist/components/checkbox.js +5 -70
- package/dist/components/checkbox.mjs +2 -3
- package/dist/components/chip.js +5 -70
- package/dist/components/chip.mjs +2 -3
- package/dist/components/circular-progress.js +2 -67
- package/dist/components/circular-progress.mjs +2 -3
- package/dist/components/code.js +2 -67
- package/dist/components/code.mjs +2 -3
- package/dist/components/date-input.d.ts +815 -0
- package/dist/components/date-input.js +439 -0
- package/dist/components/date-input.mjs +7 -0
- package/dist/components/date-picker.d.ts +325 -0
- package/dist/components/date-picker.js +81 -0
- package/dist/components/date-picker.mjs +9 -0
- package/dist/components/divider.js +2 -67
- package/dist/components/divider.mjs +2 -3
- package/dist/components/drip.d.ts +2 -32
- package/dist/components/drip.js +2 -67
- package/dist/components/drip.mjs +2 -3
- package/dist/components/dropdown.d.ts +4 -64
- package/dist/components/dropdown.js +2 -67
- package/dist/components/dropdown.mjs +2 -3
- package/dist/components/image.js +2 -67
- package/dist/components/image.mjs +2 -3
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +926 -112
- package/dist/components/index.mjs +72 -59
- package/dist/components/input.js +14 -72
- package/dist/components/input.mjs +2 -3
- package/dist/components/kbd.js +3 -67
- package/dist/components/kbd.mjs +2 -3
- package/dist/components/link.js +2 -67
- package/dist/components/link.mjs +2 -3
- package/dist/components/listbox.js +2 -67
- package/dist/components/listbox.mjs +2 -3
- package/dist/components/menu.d.ts +2 -2
- package/dist/components/menu.js +2 -67
- package/dist/components/menu.mjs +2 -3
- package/dist/components/modal.js +4 -67
- package/dist/components/modal.mjs +2 -3
- package/dist/components/navbar.js +2 -67
- package/dist/components/navbar.mjs +2 -3
- package/dist/components/pagination.js +2 -67
- package/dist/components/pagination.mjs +2 -3
- package/dist/components/popover.d.ts +42 -0
- package/dist/components/popover.js +8 -67
- package/dist/components/popover.mjs +2 -3
- package/dist/components/progress.js +2 -67
- package/dist/components/progress.mjs +2 -3
- package/dist/components/radio.js +2 -67
- package/dist/components/radio.mjs +2 -3
- package/dist/components/scroll-shadow.js +2 -67
- package/dist/components/scroll-shadow.mjs +2 -3
- package/dist/components/select.js +30 -79
- package/dist/components/select.mjs +2 -3
- package/dist/components/skeleton.js +3 -68
- package/dist/components/skeleton.mjs +2 -3
- package/dist/components/slider.js +2 -67
- package/dist/components/slider.mjs +2 -3
- package/dist/components/snippet.js +2 -67
- package/dist/components/snippet.mjs +2 -3
- package/dist/components/spacer.js +2 -67
- package/dist/components/spacer.mjs +2 -3
- package/dist/components/spinner.js +2 -67
- package/dist/components/spinner.mjs +2 -3
- package/dist/components/table.js +28 -71
- package/dist/components/table.mjs +2 -3
- package/dist/components/tabs.d.ts +115 -0
- package/dist/components/tabs.js +20 -68
- package/dist/components/tabs.mjs +2 -3
- package/dist/components/toggle.js +7 -72
- package/dist/components/toggle.mjs +2 -3
- package/dist/components/user.d.ts +1 -1
- package/dist/components/user.js +2 -67
- package/dist/components/user.mjs +2 -3
- package/dist/default-layout.js +1 -2
- package/dist/default-layout.mjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1122 -430
- package/dist/index.mjs +78 -69
- package/dist/plugin.js +6 -177
- package/dist/plugin.mjs +5 -6
- package/dist/types.d.ts +1 -11
- package/dist/types.js +0 -64
- package/dist/types.mjs +1 -8
- package/dist/utilities/index.d.ts +0 -30
- package/dist/utilities/index.js +0 -30
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +2 -31
- package/dist/utilities/transition.js +4 -31
- package/dist/utilities/transition.mjs +3 -1
- package/dist/utils/theme.d.ts +1 -3
- package/dist/utils/theme.js +0 -110
- package/dist/utils/theme.mjs +1 -6
- package/dist/utils/tv.js +2 -67
- package/dist/utils/tv.mjs +1 -2
- package/package.json +4 -4
- package/dist/chunk-DGMET46Q.mjs +0 -63
- package/dist/chunk-WA5F6AED.mjs +0 -57
- /package/dist/{chunk-T6HAGWX5.mjs → chunk-UVXYPGDZ.mjs} +0 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* DatePicker wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*/
|
|
10
|
+
declare const datePicker: tailwind_variants.TVReturnType<{
|
|
11
|
+
[key: string]: {
|
|
12
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
13
|
+
base?: tailwind_variants.ClassValue;
|
|
14
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
15
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
16
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
17
|
+
calendar?: tailwind_variants.ClassValue;
|
|
18
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
19
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
20
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
} | {
|
|
24
|
+
[x: string]: {
|
|
25
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
26
|
+
base?: tailwind_variants.ClassValue;
|
|
27
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
28
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
29
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
30
|
+
calendar?: tailwind_variants.ClassValue;
|
|
31
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
32
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
33
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
} | {}, {
|
|
37
|
+
base: string;
|
|
38
|
+
selectorButton: string;
|
|
39
|
+
selectorIcon: string;
|
|
40
|
+
popoverContent: string;
|
|
41
|
+
calendar: string;
|
|
42
|
+
calendarContent: string;
|
|
43
|
+
timeInputLabel: string;
|
|
44
|
+
timeInput: string;
|
|
45
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
46
|
+
[key: string]: {
|
|
47
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
48
|
+
base?: tailwind_variants.ClassValue;
|
|
49
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
50
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
51
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
52
|
+
calendar?: tailwind_variants.ClassValue;
|
|
53
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
54
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
55
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
} | {}>, {
|
|
59
|
+
[key: string]: {
|
|
60
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
61
|
+
base?: tailwind_variants.ClassValue;
|
|
62
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
63
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
64
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
65
|
+
calendar?: tailwind_variants.ClassValue;
|
|
66
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
67
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
68
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
} | {}, {
|
|
72
|
+
base: string;
|
|
73
|
+
selectorButton: string;
|
|
74
|
+
selectorIcon: string;
|
|
75
|
+
popoverContent: string;
|
|
76
|
+
calendar: string;
|
|
77
|
+
calendarContent: string;
|
|
78
|
+
timeInputLabel: string;
|
|
79
|
+
timeInput: string;
|
|
80
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
81
|
+
base: string;
|
|
82
|
+
selectorButton: string;
|
|
83
|
+
selectorIcon: string;
|
|
84
|
+
popoverContent: string;
|
|
85
|
+
calendar: string;
|
|
86
|
+
calendarContent: string;
|
|
87
|
+
timeInputLabel: string;
|
|
88
|
+
timeInput: string;
|
|
89
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
90
|
+
[key: string]: {
|
|
91
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
92
|
+
base?: tailwind_variants.ClassValue;
|
|
93
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
94
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
95
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
96
|
+
calendar?: tailwind_variants.ClassValue;
|
|
97
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
98
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
99
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
103
|
+
declare const dateRangePicker: tailwind_variants.TVReturnType<{
|
|
104
|
+
[key: string]: {
|
|
105
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
106
|
+
separator?: tailwind_variants.ClassValue;
|
|
107
|
+
calendar?: tailwind_variants.ClassValue;
|
|
108
|
+
bottomContent?: tailwind_variants.ClassValue;
|
|
109
|
+
timeInputWrapper?: tailwind_variants.ClassValue;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
} | {
|
|
113
|
+
[x: string]: {
|
|
114
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
115
|
+
separator?: tailwind_variants.ClassValue;
|
|
116
|
+
calendar?: tailwind_variants.ClassValue;
|
|
117
|
+
bottomContent?: tailwind_variants.ClassValue;
|
|
118
|
+
timeInputWrapper?: tailwind_variants.ClassValue;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
} | {
|
|
122
|
+
[x: string]: {
|
|
123
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
124
|
+
separator?: tailwind_variants.ClassValue;
|
|
125
|
+
calendar?: tailwind_variants.ClassValue;
|
|
126
|
+
bottomContent?: tailwind_variants.ClassValue;
|
|
127
|
+
timeInputWrapper?: tailwind_variants.ClassValue;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
} | {}, {
|
|
131
|
+
calendar: string;
|
|
132
|
+
bottomContent: string;
|
|
133
|
+
timeInputWrapper: string;
|
|
134
|
+
separator: string;
|
|
135
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
136
|
+
[key: string]: {
|
|
137
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
138
|
+
separator?: tailwind_variants.ClassValue;
|
|
139
|
+
calendar?: tailwind_variants.ClassValue;
|
|
140
|
+
bottomContent?: tailwind_variants.ClassValue;
|
|
141
|
+
timeInputWrapper?: tailwind_variants.ClassValue;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
} | {
|
|
145
|
+
[x: string]: {
|
|
146
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
147
|
+
separator?: tailwind_variants.ClassValue;
|
|
148
|
+
calendar?: tailwind_variants.ClassValue;
|
|
149
|
+
bottomContent?: tailwind_variants.ClassValue;
|
|
150
|
+
timeInputWrapper?: tailwind_variants.ClassValue;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
} | {
|
|
154
|
+
[x: string]: {
|
|
155
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
156
|
+
separator?: tailwind_variants.ClassValue;
|
|
157
|
+
calendar?: tailwind_variants.ClassValue;
|
|
158
|
+
bottomContent?: tailwind_variants.ClassValue;
|
|
159
|
+
timeInputWrapper?: tailwind_variants.ClassValue;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
} | {}, {
|
|
163
|
+
[key: string]: {
|
|
164
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
165
|
+
base?: tailwind_variants.ClassValue;
|
|
166
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
167
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
168
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
169
|
+
calendar?: tailwind_variants.ClassValue;
|
|
170
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
171
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
172
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
} | {
|
|
176
|
+
[x: string]: {
|
|
177
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
178
|
+
base?: tailwind_variants.ClassValue;
|
|
179
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
180
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
181
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
182
|
+
calendar?: tailwind_variants.ClassValue;
|
|
183
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
184
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
185
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
} | {}>, {
|
|
189
|
+
[key: string]: {
|
|
190
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
191
|
+
base?: tailwind_variants.ClassValue;
|
|
192
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
193
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
194
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
195
|
+
calendar?: tailwind_variants.ClassValue;
|
|
196
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
197
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
198
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
} | {
|
|
202
|
+
[x: string]: {
|
|
203
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
204
|
+
base?: tailwind_variants.ClassValue;
|
|
205
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
206
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
207
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
208
|
+
calendar?: tailwind_variants.ClassValue;
|
|
209
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
210
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
211
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
} | {}, {
|
|
215
|
+
base: string;
|
|
216
|
+
selectorButton: string;
|
|
217
|
+
selectorIcon: string;
|
|
218
|
+
popoverContent: string;
|
|
219
|
+
calendar: string;
|
|
220
|
+
calendarContent: string;
|
|
221
|
+
timeInputLabel: string;
|
|
222
|
+
timeInput: string;
|
|
223
|
+
}, tailwind_variants.TVReturnType<{
|
|
224
|
+
[key: string]: {
|
|
225
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
226
|
+
base?: tailwind_variants.ClassValue;
|
|
227
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
228
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
229
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
230
|
+
calendar?: tailwind_variants.ClassValue;
|
|
231
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
232
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
233
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
} | {
|
|
237
|
+
[x: string]: {
|
|
238
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
239
|
+
base?: tailwind_variants.ClassValue;
|
|
240
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
241
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
242
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
243
|
+
calendar?: tailwind_variants.ClassValue;
|
|
244
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
245
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
246
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
} | {}, {
|
|
250
|
+
base: string;
|
|
251
|
+
selectorButton: string;
|
|
252
|
+
selectorIcon: string;
|
|
253
|
+
popoverContent: string;
|
|
254
|
+
calendar: string;
|
|
255
|
+
calendarContent: string;
|
|
256
|
+
timeInputLabel: string;
|
|
257
|
+
timeInput: string;
|
|
258
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
259
|
+
[key: string]: {
|
|
260
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
261
|
+
base?: tailwind_variants.ClassValue;
|
|
262
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
263
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
264
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
265
|
+
calendar?: tailwind_variants.ClassValue;
|
|
266
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
267
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
268
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
} | {}>, {
|
|
272
|
+
[key: string]: {
|
|
273
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
274
|
+
base?: tailwind_variants.ClassValue;
|
|
275
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
276
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
277
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
278
|
+
calendar?: tailwind_variants.ClassValue;
|
|
279
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
280
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
281
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
} | {}, {
|
|
285
|
+
base: string;
|
|
286
|
+
selectorButton: string;
|
|
287
|
+
selectorIcon: string;
|
|
288
|
+
popoverContent: string;
|
|
289
|
+
calendar: string;
|
|
290
|
+
calendarContent: string;
|
|
291
|
+
timeInputLabel: string;
|
|
292
|
+
timeInput: string;
|
|
293
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
294
|
+
base: string;
|
|
295
|
+
selectorButton: string;
|
|
296
|
+
selectorIcon: string;
|
|
297
|
+
popoverContent: string;
|
|
298
|
+
calendar: string;
|
|
299
|
+
calendarContent: string;
|
|
300
|
+
timeInputLabel: string;
|
|
301
|
+
timeInput: string;
|
|
302
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
303
|
+
[key: string]: {
|
|
304
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
305
|
+
base?: tailwind_variants.ClassValue;
|
|
306
|
+
selectorIcon?: tailwind_variants.ClassValue;
|
|
307
|
+
popoverContent?: tailwind_variants.ClassValue;
|
|
308
|
+
selectorButton?: tailwind_variants.ClassValue;
|
|
309
|
+
calendar?: tailwind_variants.ClassValue;
|
|
310
|
+
calendarContent?: tailwind_variants.ClassValue;
|
|
311
|
+
timeInputLabel?: tailwind_variants.ClassValue;
|
|
312
|
+
timeInput?: tailwind_variants.ClassValue;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
} | {}>, unknown, unknown, undefined>>>;
|
|
316
|
+
/** Base */
|
|
317
|
+
type DatePickerReturnType = ReturnType<typeof datePicker>;
|
|
318
|
+
type DatePickerVariantProps = VariantProps<typeof datePicker>;
|
|
319
|
+
type DatePickerSlots = keyof ReturnType<typeof datePicker>;
|
|
320
|
+
/** Range */
|
|
321
|
+
type DateRangePickerReturnType = ReturnType<typeof dateRangePicker>;
|
|
322
|
+
type DateRangePickerVariantProps = VariantProps<typeof dateRangePicker>;
|
|
323
|
+
type DateRangePickerSlots = keyof ReturnType<typeof dateRangePicker>;
|
|
324
|
+
|
|
325
|
+
export { DatePickerReturnType, DatePickerSlots, DatePickerVariantProps, DateRangePickerReturnType, DateRangePickerSlots, DateRangePickerVariantProps, datePicker, dateRangePicker };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/date-picker.ts
|
|
21
|
+
var date_picker_exports = {};
|
|
22
|
+
__export(date_picker_exports, {
|
|
23
|
+
datePicker: () => datePicker,
|
|
24
|
+
dateRangePicker: () => dateRangePicker
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(date_picker_exports);
|
|
27
|
+
|
|
28
|
+
// src/utils/tv.ts
|
|
29
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
30
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
31
|
+
var tv = (options, config) => {
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
return (0, import_tailwind_variants.tv)(options, {
|
|
34
|
+
...config,
|
|
35
|
+
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
|
|
36
|
+
twMergeConfig: {
|
|
37
|
+
...config == null ? void 0 : config.twMergeConfig,
|
|
38
|
+
theme: {
|
|
39
|
+
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
40
|
+
opacity: ["disabled"],
|
|
41
|
+
spacing: ["divider"],
|
|
42
|
+
borderWidth: COMMON_UNITS,
|
|
43
|
+
borderRadius: COMMON_UNITS
|
|
44
|
+
},
|
|
45
|
+
classGroups: {
|
|
46
|
+
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
47
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
48
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
49
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/components/date-picker.ts
|
|
56
|
+
var datePicker = tv({
|
|
57
|
+
slots: {
|
|
58
|
+
base: "group w-full",
|
|
59
|
+
selectorButton: "-mr-2 text-inherit",
|
|
60
|
+
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
|
|
61
|
+
popoverContent: "p-0 w-full",
|
|
62
|
+
calendar: "w-[var(--calendar-width)] shadow-none",
|
|
63
|
+
calendarContent: "w-[var(--calendar-width)]",
|
|
64
|
+
timeInputLabel: "font-medium",
|
|
65
|
+
timeInput: "px-5 pb-4 flex-wrap gap-x-6"
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
var dateRangePicker = tv({
|
|
69
|
+
extend: datePicker,
|
|
70
|
+
slots: {
|
|
71
|
+
calendar: "group",
|
|
72
|
+
bottomContent: "flex flex-col gap-y-2",
|
|
73
|
+
timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]:flex-row",
|
|
74
|
+
separator: "-mx-1 text-inherit"
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
datePicker,
|
|
80
|
+
dateRangePicker
|
|
81
|
+
});
|
|
@@ -26,61 +26,6 @@ module.exports = __toCommonJS(divider_exports);
|
|
|
26
26
|
|
|
27
27
|
// src/utils/tv.ts
|
|
28
28
|
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
-
|
|
30
|
-
// src/types.ts
|
|
31
|
-
var spacingScaleKeys = [
|
|
32
|
-
"0",
|
|
33
|
-
"xs",
|
|
34
|
-
"sm",
|
|
35
|
-
"md",
|
|
36
|
-
"lg",
|
|
37
|
-
"xl",
|
|
38
|
-
"2xl",
|
|
39
|
-
"3xl",
|
|
40
|
-
"4xl",
|
|
41
|
-
"5xl",
|
|
42
|
-
"6xl",
|
|
43
|
-
"7xl",
|
|
44
|
-
"8xl",
|
|
45
|
-
"9xl",
|
|
46
|
-
"1",
|
|
47
|
-
"2",
|
|
48
|
-
"3",
|
|
49
|
-
"3.5",
|
|
50
|
-
"4",
|
|
51
|
-
"5",
|
|
52
|
-
"6",
|
|
53
|
-
"7",
|
|
54
|
-
"8",
|
|
55
|
-
"9",
|
|
56
|
-
"10",
|
|
57
|
-
"11",
|
|
58
|
-
"12",
|
|
59
|
-
"13",
|
|
60
|
-
"14",
|
|
61
|
-
"15",
|
|
62
|
-
"16",
|
|
63
|
-
"17",
|
|
64
|
-
"18",
|
|
65
|
-
"20",
|
|
66
|
-
"24",
|
|
67
|
-
"28",
|
|
68
|
-
"32",
|
|
69
|
-
"36",
|
|
70
|
-
"40",
|
|
71
|
-
"44",
|
|
72
|
-
"48",
|
|
73
|
-
"52",
|
|
74
|
-
"56",
|
|
75
|
-
"60",
|
|
76
|
-
"64",
|
|
77
|
-
"72",
|
|
78
|
-
"80",
|
|
79
|
-
"96"
|
|
80
|
-
];
|
|
81
|
-
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
82
|
-
|
|
83
|
-
// src/utils/tv.ts
|
|
84
29
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
85
30
|
var tv = (options, config) => {
|
|
86
31
|
var _a, _b, _c;
|
|
@@ -92,7 +37,7 @@ var tv = (options, config) => {
|
|
|
92
37
|
theme: {
|
|
93
38
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
94
39
|
opacity: ["disabled"],
|
|
95
|
-
spacing: ["divider"
|
|
40
|
+
spacing: ["divider"],
|
|
96
41
|
borderWidth: COMMON_UNITS,
|
|
97
42
|
borderRadius: COMMON_UNITS
|
|
98
43
|
},
|
|
@@ -100,17 +45,7 @@ var tv = (options, config) => {
|
|
|
100
45
|
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
101
46
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
102
47
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
103
|
-
"bg-image": ["bg-stripe-gradient"]
|
|
104
|
-
"min-w": [
|
|
105
|
-
{
|
|
106
|
-
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"min-h": [
|
|
110
|
-
{
|
|
111
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
112
|
-
}
|
|
113
|
-
]
|
|
48
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
114
49
|
}
|
|
115
50
|
}
|
|
116
51
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
2
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Drip wrapper **Tailwind Variants** component
|
|
@@ -9,36 +9,6 @@ import * as tailwind_variants from 'tailwind-variants';
|
|
|
9
9
|
* @example
|
|
10
10
|
* <span ref={dripRef} className={classNames())} />
|
|
11
11
|
*/
|
|
12
|
-
declare const drip: tailwind_variants.TVReturnType<{
|
|
13
|
-
[key: string]: {
|
|
14
|
-
[key: string]: tailwind_variants.ClassValue | {
|
|
15
|
-
base?: tailwind_variants.ClassValue;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
} | {
|
|
19
|
-
[x: string]: {
|
|
20
|
-
[x: string]: tailwind_variants.ClassValue | {
|
|
21
|
-
base?: tailwind_variants.ClassValue;
|
|
22
|
-
};
|
|
23
|
-
} | undefined;
|
|
24
|
-
} | {}, undefined, string[], tailwind_variants_dist_config.TVConfig<unknown, {
|
|
25
|
-
[key: string]: {
|
|
26
|
-
[key: string]: tailwind_variants.ClassValue | {
|
|
27
|
-
base?: tailwind_variants.ClassValue;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
} | {}>, {
|
|
31
|
-
[key: string]: {
|
|
32
|
-
[key: string]: tailwind_variants.ClassValue | {
|
|
33
|
-
base?: tailwind_variants.ClassValue;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, string[], tailwind_variants_dist_config.TVConfig<unknown, {
|
|
37
|
-
[key: string]: {
|
|
38
|
-
[key: string]: tailwind_variants.ClassValue | {
|
|
39
|
-
base?: tailwind_variants.ClassValue;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
} | {}>, unknown, unknown, undefined>>;
|
|
12
|
+
declare const drip: tailwind_variants.TVReturnType<{} | {} | {}, undefined, string[], tailwind_variants_dist_config.TVConfig<unknown, {} | {}>, {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, string[], tailwind_variants_dist_config.TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
43
13
|
|
|
44
14
|
export { drip };
|
package/dist/components/drip.js
CHANGED
|
@@ -26,61 +26,6 @@ module.exports = __toCommonJS(drip_exports);
|
|
|
26
26
|
|
|
27
27
|
// src/utils/tv.ts
|
|
28
28
|
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
-
|
|
30
|
-
// src/types.ts
|
|
31
|
-
var spacingScaleKeys = [
|
|
32
|
-
"0",
|
|
33
|
-
"xs",
|
|
34
|
-
"sm",
|
|
35
|
-
"md",
|
|
36
|
-
"lg",
|
|
37
|
-
"xl",
|
|
38
|
-
"2xl",
|
|
39
|
-
"3xl",
|
|
40
|
-
"4xl",
|
|
41
|
-
"5xl",
|
|
42
|
-
"6xl",
|
|
43
|
-
"7xl",
|
|
44
|
-
"8xl",
|
|
45
|
-
"9xl",
|
|
46
|
-
"1",
|
|
47
|
-
"2",
|
|
48
|
-
"3",
|
|
49
|
-
"3.5",
|
|
50
|
-
"4",
|
|
51
|
-
"5",
|
|
52
|
-
"6",
|
|
53
|
-
"7",
|
|
54
|
-
"8",
|
|
55
|
-
"9",
|
|
56
|
-
"10",
|
|
57
|
-
"11",
|
|
58
|
-
"12",
|
|
59
|
-
"13",
|
|
60
|
-
"14",
|
|
61
|
-
"15",
|
|
62
|
-
"16",
|
|
63
|
-
"17",
|
|
64
|
-
"18",
|
|
65
|
-
"20",
|
|
66
|
-
"24",
|
|
67
|
-
"28",
|
|
68
|
-
"32",
|
|
69
|
-
"36",
|
|
70
|
-
"40",
|
|
71
|
-
"44",
|
|
72
|
-
"48",
|
|
73
|
-
"52",
|
|
74
|
-
"56",
|
|
75
|
-
"60",
|
|
76
|
-
"64",
|
|
77
|
-
"72",
|
|
78
|
-
"80",
|
|
79
|
-
"96"
|
|
80
|
-
];
|
|
81
|
-
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
82
|
-
|
|
83
|
-
// src/utils/tv.ts
|
|
84
29
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
85
30
|
var tv = (options, config) => {
|
|
86
31
|
var _a, _b, _c;
|
|
@@ -92,7 +37,7 @@ var tv = (options, config) => {
|
|
|
92
37
|
theme: {
|
|
93
38
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
94
39
|
opacity: ["disabled"],
|
|
95
|
-
spacing: ["divider"
|
|
40
|
+
spacing: ["divider"],
|
|
96
41
|
borderWidth: COMMON_UNITS,
|
|
97
42
|
borderRadius: COMMON_UNITS
|
|
98
43
|
},
|
|
@@ -100,17 +45,7 @@ var tv = (options, config) => {
|
|
|
100
45
|
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
101
46
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
102
47
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
103
|
-
"bg-image": ["bg-stripe-gradient"]
|
|
104
|
-
"min-w": [
|
|
105
|
-
{
|
|
106
|
-
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"min-h": [
|
|
110
|
-
{
|
|
111
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
112
|
-
}
|
|
113
|
-
]
|
|
48
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
114
49
|
}
|
|
115
50
|
}
|
|
116
51
|
});
|