@deepnoid/ui 0.0.88 → 0.0.90
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/{chunk-4VIEZ5FT.mjs → chunk-2BCJZILI.mjs} +10 -9
- package/dist/chunk-2ZFHB4JM.mjs +76 -0
- package/dist/{chunk-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
- package/dist/{chunk-IXFP2WQ4.mjs → chunk-6YE26GOI.mjs} +10 -8
- package/dist/chunk-75HLCORR.mjs +1 -0
- package/dist/{chunk-K6HPMTN4.mjs → chunk-7HHFRKJU.mjs} +1 -1
- package/dist/{chunk-H2HUJ4N2.mjs → chunk-A3RWT3JJ.mjs} +9 -4
- package/dist/{chunk-BE2OG6M4.mjs → chunk-ANYPMQH4.mjs} +28 -21
- package/dist/{chunk-5HSZ5AYM.mjs → chunk-B4KZBOGT.mjs} +16 -16
- package/dist/{chunk-KHWFCTPX.mjs → chunk-DWROPKZW.mjs} +6 -6
- package/dist/{chunk-FPCP4OOL.mjs → chunk-EDEV4IK4.mjs} +3 -3
- package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
- package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
- package/dist/{chunk-YGTJU3GD.mjs → chunk-L7P6OBUX.mjs} +10 -17
- package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
- package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
- package/dist/chunk-N6IEGD4K.mjs +119 -0
- package/dist/chunk-OJ2OEI5B.mjs +202 -0
- package/dist/chunk-P732YGHO.mjs +18 -0
- package/dist/{chunk-QRHT7MSO.mjs → chunk-PXUBPWKU.mjs} +1 -1
- package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
- package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
- package/dist/chunk-S2VUKVCH.mjs +319 -0
- package/dist/{chunk-IZOMH2SL.mjs → chunk-S3O52LLG.mjs} +14 -14
- package/dist/chunk-UR64ZUAU.mjs +671 -0
- package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
- package/dist/chunk-WX32MAKV.mjs +219 -0
- package/dist/components/accordion/accordion.d.mts +3 -3
- package/dist/components/accordion/accordion.d.ts +3 -3
- package/dist/components/accordion/accordion.test.mjs +3 -3
- package/dist/components/accordion/accordionItem.d.mts +3 -3
- package/dist/components/accordion/accordionItem.d.ts +3 -3
- package/dist/components/accordion/accordionItem.js +31 -1
- package/dist/components/accordion/accordionItem.mjs +3 -3
- package/dist/components/accordion/index.js +31 -1
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/button/button-group.d.mts +2 -2
- package/dist/components/button/button-group.d.ts +2 -2
- package/dist/components/button/button-group.test.js +4103 -167
- package/dist/components/button/button-group.test.mjs +7 -3
- package/dist/components/button/button.d.mts +360 -12
- package/dist/components/button/button.d.ts +360 -12
- package/dist/components/button/button.js +4054 -110
- package/dist/components/button/button.mjs +5 -1
- package/dist/components/button/button.test.js +4059 -125
- package/dist/components/button/button.test.mjs +7 -3
- package/dist/components/button/index.d.mts +3 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.js +4046 -112
- package/dist/components/button/index.mjs +5 -1
- package/dist/components/card/card.d.mts +3 -3
- package/dist/components/card/card.d.ts +3 -3
- package/dist/components/checkbox/checkbox.d.mts +71 -71
- package/dist/components/checkbox/checkbox.d.ts +71 -71
- package/dist/components/checkbox/checkbox.js +28 -21
- package/dist/components/checkbox/checkbox.mjs +1 -1
- package/dist/components/checkbox/checkbox.test.js +28 -21
- package/dist/components/checkbox/checkbox.test.mjs +4 -4
- package/dist/components/checkbox/index.js +28 -21
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/dateTimePicker/calendar.d.mts +118 -0
- package/dist/components/dateTimePicker/calendar.d.ts +118 -0
- package/dist/components/dateTimePicker/calendar.js +3854 -0
- package/dist/components/dateTimePicker/calendar.mjs +16 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.mts +443 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.ts +443 -0
- package/dist/components/dateTimePicker/dateTimePicker.js +4486 -0
- package/dist/components/dateTimePicker/dateTimePicker.mjs +22 -0
- package/dist/components/dateTimePicker/index.d.mts +5 -0
- package/dist/components/dateTimePicker/index.d.ts +5 -0
- package/dist/components/dateTimePicker/index.js +4487 -0
- package/dist/components/dateTimePicker/index.mjs +21 -0
- package/dist/components/dateTimePicker/timePicker.d.mts +10 -0
- package/dist/components/dateTimePicker/timePicker.d.ts +10 -0
- package/dist/components/dateTimePicker/timePicker.js +342 -0
- package/dist/components/dateTimePicker/timePicker.mjs +13 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.mts +31 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.ts +31 -0
- package/dist/components/dateTimePicker/useDateTimePicker.js +106 -0
- package/dist/components/dateTimePicker/useDateTimePicker.mjs +9 -0
- package/dist/components/dateTimePicker/util.d.mts +4 -0
- package/dist/components/dateTimePicker/util.d.ts +4 -0
- package/dist/components/dateTimePicker/util.js +42 -0
- package/dist/components/dateTimePicker/util.mjs +10 -0
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +30 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +30 -0
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -0
- package/dist/components/icon/template.d.ts +1 -0
- package/dist/components/icon/template.js +30 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +36 -4
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.d.mts +9 -4
- package/dist/components/input/input.d.ts +9 -4
- package/dist/components/input/input.js +36 -4
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/input/input.test.js +36 -4
- package/dist/components/input/input.test.mjs +6 -6
- package/dist/components/list/index.js +3 -3
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/list/list.d.mts +3 -3
- package/dist/components/list/list.d.ts +3 -3
- package/dist/components/list/list.test.mjs +1 -1
- package/dist/components/list/listItem.d.mts +4 -4
- package/dist/components/list/listItem.d.ts +4 -4
- package/dist/components/list/listItem.js +3 -3
- package/dist/components/list/listItem.mjs +1 -1
- package/dist/components/modal/index.js +506 -128
- package/dist/components/modal/index.mjs +6 -5
- package/dist/components/modal/modal.d.mts +2 -2
- package/dist/components/modal/modal.d.ts +2 -2
- package/dist/components/modal/modal.js +506 -128
- package/dist/components/modal/modal.mjs +6 -5
- package/dist/components/modal/modal.test.js +498 -130
- package/dist/components/modal/modal.test.mjs +6 -5
- package/dist/components/pagination/index.js +16 -16
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.d.mts +2 -2
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/pagination/pagination.js +16 -16
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/pagination/pagination.test.js +16 -16
- package/dist/components/pagination/pagination.test.mjs +2 -2
- package/dist/components/progress/index.js +9 -9
- package/dist/components/progress/index.mjs +1 -1
- package/dist/components/progress/progress.d.mts +35 -35
- package/dist/components/progress/progress.d.ts +35 -35
- package/dist/components/progress/progress.js +9 -9
- package/dist/components/progress/progress.mjs +1 -1
- package/dist/components/progress/progress.test.js +9 -9
- package/dist/components/progress/progress.test.mjs +1 -1
- package/dist/components/radio/index.js +37 -19
- package/dist/components/radio/index.mjs +1 -1
- package/dist/components/radio/radio.d.mts +35 -35
- package/dist/components/radio/radio.d.ts +35 -35
- package/dist/components/radio/radio.js +37 -19
- package/dist/components/radio/radio.mjs +1 -1
- package/dist/components/radio/radio.test.js +37 -19
- package/dist/components/radio/radio.test.mjs +2 -2
- package/dist/components/select/index.js +36 -5
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.js +30 -0
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.d.mts +4 -4
- package/dist/components/select/select.d.ts +4 -4
- package/dist/components/select/select.js +36 -5
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/select/select.test.js +36 -5
- package/dist/components/select/select.test.mjs +9 -9
- package/dist/components/select/useSelect.d.mts +3 -3
- package/dist/components/select/useSelect.d.ts +3 -3
- package/dist/components/slider/index.js +9 -4
- package/dist/components/slider/index.mjs +1 -1
- package/dist/components/slider/slider.d.mts +28 -2
- package/dist/components/slider/slider.d.ts +28 -2
- package/dist/components/slider/slider.js +9 -4
- package/dist/components/slider/slider.mjs +1 -1
- package/dist/components/slider/slider.test.js +9 -4
- package/dist/components/slider/slider.test.mjs +1 -1
- package/dist/components/switch/index.js +14 -14
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +50 -50
- package/dist/components/switch/switch.d.ts +50 -50
- package/dist/components/switch/switch.js +14 -14
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/switch/switch.test.js +14 -14
- package/dist/components/switch/switch.test.mjs +2 -2
- package/dist/components/table/index.js +66 -27
- package/dist/components/table/index.mjs +7 -7
- package/dist/components/table/table-body.d.mts +2 -2
- package/dist/components/table/table-body.d.ts +2 -2
- package/dist/components/table/table-body.js +60 -23
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +28 -21
- package/dist/components/table/table-head.mjs +2 -2
- package/dist/components/table/table.d.mts +26 -12
- package/dist/components/table/table.d.ts +26 -12
- package/dist/components/table/table.js +66 -27
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/table/table.test.js +66 -27
- package/dist/components/table/table.test.mjs +8 -8
- package/dist/components/tabs/tabs.d.mts +3 -3
- package/dist/components/tabs/tabs.d.ts +3 -3
- package/dist/components/tabs/tabs.test.mjs +4 -4
- package/dist/components/textarea/index.d.mts +3 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/index.js +89 -30
- package/dist/components/textarea/index.mjs +2 -1
- package/dist/components/textarea/textarea.d.mts +512 -11
- package/dist/components/textarea/textarea.d.ts +512 -11
- package/dist/components/textarea/textarea.js +89 -30
- package/dist/components/textarea/textarea.mjs +2 -1
- package/dist/components/textarea/textarea.test.js +89 -30
- package/dist/components/textarea/textarea.test.mjs +3 -2
- package/dist/components/toast/index.js +30 -0
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.d.mts +2 -2
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toast/toast.js +30 -0
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/toast.test.js +30 -0
- package/dist/components/toast/toast.test.mjs +5 -5
- package/dist/components/toast/use-toast.js +30 -0
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tooltip/index.d.mts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.mts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.mts +3 -3
- package/dist/components/tooltip/tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip.test.js +4034 -118
- package/dist/components/tooltip/tooltip.test.mjs +7 -4
- package/dist/components/tooltip/useTooltip.d.mts +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3741 -2611
- package/dist/index.mjs +71 -52
- package/dist/{tooltip-utils-DCKA5gnI.d.ts → tooltip-utils-CrCabndd.d.mts} +2 -2
- package/dist/{tooltip-utils-DCKA5gnI.d.mts → tooltip-utils-CrCabndd.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-66WCZEEU.mjs +0 -320
- package/dist/chunk-WOX3SLJB.mjs +0 -162
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ComponentPropsWithRef } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
7
7
|
|
|
@@ -11,25 +11,25 @@ interface Props extends Omit<ComponentPropsWithRef<"input">, "ref" | "size"> {
|
|
|
11
11
|
label?: string;
|
|
12
12
|
}
|
|
13
13
|
type SwitchProps = Props & ToggleVariantProps;
|
|
14
|
-
declare const Switch:
|
|
14
|
+
declare const Switch: React.ForwardRefExoticComponent<Props & ToggleVariantProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
15
|
|
|
16
16
|
declare const toggle: tailwind_variants.TVReturnType<{
|
|
17
17
|
size: {
|
|
18
18
|
sm: {
|
|
19
|
-
outerWrapper: string;
|
|
20
|
-
wrapper: string;
|
|
19
|
+
outerWrapper: string[];
|
|
20
|
+
wrapper: string[];
|
|
21
21
|
thumb: string[];
|
|
22
22
|
label: string;
|
|
23
23
|
};
|
|
24
24
|
md: {
|
|
25
|
-
outerWrapper: string;
|
|
26
|
-
wrapper: string;
|
|
25
|
+
outerWrapper: string[];
|
|
26
|
+
wrapper: string[];
|
|
27
27
|
thumb: string[];
|
|
28
28
|
label: string;
|
|
29
29
|
};
|
|
30
30
|
lg: {
|
|
31
|
-
outerWrapper: string;
|
|
32
|
-
wrapper: string;
|
|
31
|
+
outerWrapper: string[];
|
|
32
|
+
wrapper: string[];
|
|
33
33
|
thumb: string[];
|
|
34
34
|
label: string;
|
|
35
35
|
};
|
|
@@ -52,28 +52,28 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
|
-
base: string;
|
|
55
|
+
base: string[];
|
|
56
56
|
outerWrapper: string[];
|
|
57
57
|
wrapper: string[];
|
|
58
58
|
thumb: string[];
|
|
59
|
-
label: string;
|
|
59
|
+
label: string[];
|
|
60
60
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
61
61
|
size: {
|
|
62
62
|
sm: {
|
|
63
|
-
outerWrapper: string;
|
|
64
|
-
wrapper: string;
|
|
63
|
+
outerWrapper: string[];
|
|
64
|
+
wrapper: string[];
|
|
65
65
|
thumb: string[];
|
|
66
66
|
label: string;
|
|
67
67
|
};
|
|
68
68
|
md: {
|
|
69
|
-
outerWrapper: string;
|
|
70
|
-
wrapper: string;
|
|
69
|
+
outerWrapper: string[];
|
|
70
|
+
wrapper: string[];
|
|
71
71
|
thumb: string[];
|
|
72
72
|
label: string;
|
|
73
73
|
};
|
|
74
74
|
lg: {
|
|
75
|
-
outerWrapper: string;
|
|
76
|
-
wrapper: string;
|
|
75
|
+
outerWrapper: string[];
|
|
76
|
+
wrapper: string[];
|
|
77
77
|
thumb: string[];
|
|
78
78
|
label: string;
|
|
79
79
|
};
|
|
@@ -98,20 +98,20 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
98
98
|
}, {
|
|
99
99
|
size: {
|
|
100
100
|
sm: {
|
|
101
|
-
outerWrapper: string;
|
|
102
|
-
wrapper: string;
|
|
101
|
+
outerWrapper: string[];
|
|
102
|
+
wrapper: string[];
|
|
103
103
|
thumb: string[];
|
|
104
104
|
label: string;
|
|
105
105
|
};
|
|
106
106
|
md: {
|
|
107
|
-
outerWrapper: string;
|
|
108
|
-
wrapper: string;
|
|
107
|
+
outerWrapper: string[];
|
|
108
|
+
wrapper: string[];
|
|
109
109
|
thumb: string[];
|
|
110
110
|
label: string;
|
|
111
111
|
};
|
|
112
112
|
lg: {
|
|
113
|
-
outerWrapper: string;
|
|
114
|
-
wrapper: string;
|
|
113
|
+
outerWrapper: string[];
|
|
114
|
+
wrapper: string[];
|
|
115
115
|
thumb: string[];
|
|
116
116
|
label: string;
|
|
117
117
|
};
|
|
@@ -136,20 +136,20 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
136
136
|
}>, {
|
|
137
137
|
size: {
|
|
138
138
|
sm: {
|
|
139
|
-
outerWrapper: string;
|
|
140
|
-
wrapper: string;
|
|
139
|
+
outerWrapper: string[];
|
|
140
|
+
wrapper: string[];
|
|
141
141
|
thumb: string[];
|
|
142
142
|
label: string;
|
|
143
143
|
};
|
|
144
144
|
md: {
|
|
145
|
-
outerWrapper: string;
|
|
146
|
-
wrapper: string;
|
|
145
|
+
outerWrapper: string[];
|
|
146
|
+
wrapper: string[];
|
|
147
147
|
thumb: string[];
|
|
148
148
|
label: string;
|
|
149
149
|
};
|
|
150
150
|
lg: {
|
|
151
|
-
outerWrapper: string;
|
|
152
|
-
wrapper: string;
|
|
151
|
+
outerWrapper: string[];
|
|
152
|
+
wrapper: string[];
|
|
153
153
|
thumb: string[];
|
|
154
154
|
label: string;
|
|
155
155
|
};
|
|
@@ -172,28 +172,28 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
174
|
}, {
|
|
175
|
-
base: string;
|
|
175
|
+
base: string[];
|
|
176
176
|
outerWrapper: string[];
|
|
177
177
|
wrapper: string[];
|
|
178
178
|
thumb: string[];
|
|
179
|
-
label: string;
|
|
179
|
+
label: string[];
|
|
180
180
|
}, tailwind_variants.TVReturnType<{
|
|
181
181
|
size: {
|
|
182
182
|
sm: {
|
|
183
|
-
outerWrapper: string;
|
|
184
|
-
wrapper: string;
|
|
183
|
+
outerWrapper: string[];
|
|
184
|
+
wrapper: string[];
|
|
185
185
|
thumb: string[];
|
|
186
186
|
label: string;
|
|
187
187
|
};
|
|
188
188
|
md: {
|
|
189
|
-
outerWrapper: string;
|
|
190
|
-
wrapper: string;
|
|
189
|
+
outerWrapper: string[];
|
|
190
|
+
wrapper: string[];
|
|
191
191
|
thumb: string[];
|
|
192
192
|
label: string;
|
|
193
193
|
};
|
|
194
194
|
lg: {
|
|
195
|
-
outerWrapper: string;
|
|
196
|
-
wrapper: string;
|
|
195
|
+
outerWrapper: string[];
|
|
196
|
+
wrapper: string[];
|
|
197
197
|
thumb: string[];
|
|
198
198
|
label: string;
|
|
199
199
|
};
|
|
@@ -216,28 +216,28 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
218
|
}, {
|
|
219
|
-
base: string;
|
|
219
|
+
base: string[];
|
|
220
220
|
outerWrapper: string[];
|
|
221
221
|
wrapper: string[];
|
|
222
222
|
thumb: string[];
|
|
223
|
-
label: string;
|
|
223
|
+
label: string[];
|
|
224
224
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
225
225
|
size: {
|
|
226
226
|
sm: {
|
|
227
|
-
outerWrapper: string;
|
|
228
|
-
wrapper: string;
|
|
227
|
+
outerWrapper: string[];
|
|
228
|
+
wrapper: string[];
|
|
229
229
|
thumb: string[];
|
|
230
230
|
label: string;
|
|
231
231
|
};
|
|
232
232
|
md: {
|
|
233
|
-
outerWrapper: string;
|
|
234
|
-
wrapper: string;
|
|
233
|
+
outerWrapper: string[];
|
|
234
|
+
wrapper: string[];
|
|
235
235
|
thumb: string[];
|
|
236
236
|
label: string;
|
|
237
237
|
};
|
|
238
238
|
lg: {
|
|
239
|
-
outerWrapper: string;
|
|
240
|
-
wrapper: string;
|
|
239
|
+
outerWrapper: string[];
|
|
240
|
+
wrapper: string[];
|
|
241
241
|
thumb: string[];
|
|
242
242
|
label: string;
|
|
243
243
|
};
|
|
@@ -262,20 +262,20 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
262
262
|
}, {
|
|
263
263
|
size: {
|
|
264
264
|
sm: {
|
|
265
|
-
outerWrapper: string;
|
|
266
|
-
wrapper: string;
|
|
265
|
+
outerWrapper: string[];
|
|
266
|
+
wrapper: string[];
|
|
267
267
|
thumb: string[];
|
|
268
268
|
label: string;
|
|
269
269
|
};
|
|
270
270
|
md: {
|
|
271
|
-
outerWrapper: string;
|
|
272
|
-
wrapper: string;
|
|
271
|
+
outerWrapper: string[];
|
|
272
|
+
wrapper: string[];
|
|
273
273
|
thumb: string[];
|
|
274
274
|
label: string;
|
|
275
275
|
};
|
|
276
276
|
lg: {
|
|
277
|
-
outerWrapper: string;
|
|
278
|
-
wrapper: string;
|
|
277
|
+
outerWrapper: string[];
|
|
278
|
+
wrapper: string[];
|
|
279
279
|
thumb: string[];
|
|
280
280
|
label: string;
|
|
281
281
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ComponentPropsWithRef } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
7
7
|
|
|
@@ -11,25 +11,25 @@ interface Props extends Omit<ComponentPropsWithRef<"input">, "ref" | "size"> {
|
|
|
11
11
|
label?: string;
|
|
12
12
|
}
|
|
13
13
|
type SwitchProps = Props & ToggleVariantProps;
|
|
14
|
-
declare const Switch:
|
|
14
|
+
declare const Switch: React.ForwardRefExoticComponent<Props & ToggleVariantProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
15
|
|
|
16
16
|
declare const toggle: tailwind_variants.TVReturnType<{
|
|
17
17
|
size: {
|
|
18
18
|
sm: {
|
|
19
|
-
outerWrapper: string;
|
|
20
|
-
wrapper: string;
|
|
19
|
+
outerWrapper: string[];
|
|
20
|
+
wrapper: string[];
|
|
21
21
|
thumb: string[];
|
|
22
22
|
label: string;
|
|
23
23
|
};
|
|
24
24
|
md: {
|
|
25
|
-
outerWrapper: string;
|
|
26
|
-
wrapper: string;
|
|
25
|
+
outerWrapper: string[];
|
|
26
|
+
wrapper: string[];
|
|
27
27
|
thumb: string[];
|
|
28
28
|
label: string;
|
|
29
29
|
};
|
|
30
30
|
lg: {
|
|
31
|
-
outerWrapper: string;
|
|
32
|
-
wrapper: string;
|
|
31
|
+
outerWrapper: string[];
|
|
32
|
+
wrapper: string[];
|
|
33
33
|
thumb: string[];
|
|
34
34
|
label: string;
|
|
35
35
|
};
|
|
@@ -52,28 +52,28 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
|
-
base: string;
|
|
55
|
+
base: string[];
|
|
56
56
|
outerWrapper: string[];
|
|
57
57
|
wrapper: string[];
|
|
58
58
|
thumb: string[];
|
|
59
|
-
label: string;
|
|
59
|
+
label: string[];
|
|
60
60
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
61
61
|
size: {
|
|
62
62
|
sm: {
|
|
63
|
-
outerWrapper: string;
|
|
64
|
-
wrapper: string;
|
|
63
|
+
outerWrapper: string[];
|
|
64
|
+
wrapper: string[];
|
|
65
65
|
thumb: string[];
|
|
66
66
|
label: string;
|
|
67
67
|
};
|
|
68
68
|
md: {
|
|
69
|
-
outerWrapper: string;
|
|
70
|
-
wrapper: string;
|
|
69
|
+
outerWrapper: string[];
|
|
70
|
+
wrapper: string[];
|
|
71
71
|
thumb: string[];
|
|
72
72
|
label: string;
|
|
73
73
|
};
|
|
74
74
|
lg: {
|
|
75
|
-
outerWrapper: string;
|
|
76
|
-
wrapper: string;
|
|
75
|
+
outerWrapper: string[];
|
|
76
|
+
wrapper: string[];
|
|
77
77
|
thumb: string[];
|
|
78
78
|
label: string;
|
|
79
79
|
};
|
|
@@ -98,20 +98,20 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
98
98
|
}, {
|
|
99
99
|
size: {
|
|
100
100
|
sm: {
|
|
101
|
-
outerWrapper: string;
|
|
102
|
-
wrapper: string;
|
|
101
|
+
outerWrapper: string[];
|
|
102
|
+
wrapper: string[];
|
|
103
103
|
thumb: string[];
|
|
104
104
|
label: string;
|
|
105
105
|
};
|
|
106
106
|
md: {
|
|
107
|
-
outerWrapper: string;
|
|
108
|
-
wrapper: string;
|
|
107
|
+
outerWrapper: string[];
|
|
108
|
+
wrapper: string[];
|
|
109
109
|
thumb: string[];
|
|
110
110
|
label: string;
|
|
111
111
|
};
|
|
112
112
|
lg: {
|
|
113
|
-
outerWrapper: string;
|
|
114
|
-
wrapper: string;
|
|
113
|
+
outerWrapper: string[];
|
|
114
|
+
wrapper: string[];
|
|
115
115
|
thumb: string[];
|
|
116
116
|
label: string;
|
|
117
117
|
};
|
|
@@ -136,20 +136,20 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
136
136
|
}>, {
|
|
137
137
|
size: {
|
|
138
138
|
sm: {
|
|
139
|
-
outerWrapper: string;
|
|
140
|
-
wrapper: string;
|
|
139
|
+
outerWrapper: string[];
|
|
140
|
+
wrapper: string[];
|
|
141
141
|
thumb: string[];
|
|
142
142
|
label: string;
|
|
143
143
|
};
|
|
144
144
|
md: {
|
|
145
|
-
outerWrapper: string;
|
|
146
|
-
wrapper: string;
|
|
145
|
+
outerWrapper: string[];
|
|
146
|
+
wrapper: string[];
|
|
147
147
|
thumb: string[];
|
|
148
148
|
label: string;
|
|
149
149
|
};
|
|
150
150
|
lg: {
|
|
151
|
-
outerWrapper: string;
|
|
152
|
-
wrapper: string;
|
|
151
|
+
outerWrapper: string[];
|
|
152
|
+
wrapper: string[];
|
|
153
153
|
thumb: string[];
|
|
154
154
|
label: string;
|
|
155
155
|
};
|
|
@@ -172,28 +172,28 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
174
|
}, {
|
|
175
|
-
base: string;
|
|
175
|
+
base: string[];
|
|
176
176
|
outerWrapper: string[];
|
|
177
177
|
wrapper: string[];
|
|
178
178
|
thumb: string[];
|
|
179
|
-
label: string;
|
|
179
|
+
label: string[];
|
|
180
180
|
}, tailwind_variants.TVReturnType<{
|
|
181
181
|
size: {
|
|
182
182
|
sm: {
|
|
183
|
-
outerWrapper: string;
|
|
184
|
-
wrapper: string;
|
|
183
|
+
outerWrapper: string[];
|
|
184
|
+
wrapper: string[];
|
|
185
185
|
thumb: string[];
|
|
186
186
|
label: string;
|
|
187
187
|
};
|
|
188
188
|
md: {
|
|
189
|
-
outerWrapper: string;
|
|
190
|
-
wrapper: string;
|
|
189
|
+
outerWrapper: string[];
|
|
190
|
+
wrapper: string[];
|
|
191
191
|
thumb: string[];
|
|
192
192
|
label: string;
|
|
193
193
|
};
|
|
194
194
|
lg: {
|
|
195
|
-
outerWrapper: string;
|
|
196
|
-
wrapper: string;
|
|
195
|
+
outerWrapper: string[];
|
|
196
|
+
wrapper: string[];
|
|
197
197
|
thumb: string[];
|
|
198
198
|
label: string;
|
|
199
199
|
};
|
|
@@ -216,28 +216,28 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
218
|
}, {
|
|
219
|
-
base: string;
|
|
219
|
+
base: string[];
|
|
220
220
|
outerWrapper: string[];
|
|
221
221
|
wrapper: string[];
|
|
222
222
|
thumb: string[];
|
|
223
|
-
label: string;
|
|
223
|
+
label: string[];
|
|
224
224
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
225
225
|
size: {
|
|
226
226
|
sm: {
|
|
227
|
-
outerWrapper: string;
|
|
228
|
-
wrapper: string;
|
|
227
|
+
outerWrapper: string[];
|
|
228
|
+
wrapper: string[];
|
|
229
229
|
thumb: string[];
|
|
230
230
|
label: string;
|
|
231
231
|
};
|
|
232
232
|
md: {
|
|
233
|
-
outerWrapper: string;
|
|
234
|
-
wrapper: string;
|
|
233
|
+
outerWrapper: string[];
|
|
234
|
+
wrapper: string[];
|
|
235
235
|
thumb: string[];
|
|
236
236
|
label: string;
|
|
237
237
|
};
|
|
238
238
|
lg: {
|
|
239
|
-
outerWrapper: string;
|
|
240
|
-
wrapper: string;
|
|
239
|
+
outerWrapper: string[];
|
|
240
|
+
wrapper: string[];
|
|
241
241
|
thumb: string[];
|
|
242
242
|
label: string;
|
|
243
243
|
};
|
|
@@ -262,20 +262,20 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
262
262
|
}, {
|
|
263
263
|
size: {
|
|
264
264
|
sm: {
|
|
265
|
-
outerWrapper: string;
|
|
266
|
-
wrapper: string;
|
|
265
|
+
outerWrapper: string[];
|
|
266
|
+
wrapper: string[];
|
|
267
267
|
thumb: string[];
|
|
268
268
|
label: string;
|
|
269
269
|
};
|
|
270
270
|
md: {
|
|
271
|
-
outerWrapper: string;
|
|
272
|
-
wrapper: string;
|
|
271
|
+
outerWrapper: string[];
|
|
272
|
+
wrapper: string[];
|
|
273
273
|
thumb: string[];
|
|
274
274
|
label: string;
|
|
275
275
|
};
|
|
276
276
|
lg: {
|
|
277
|
-
outerWrapper: string;
|
|
278
|
-
wrapper: string;
|
|
277
|
+
outerWrapper: string[];
|
|
278
|
+
wrapper: string[];
|
|
279
279
|
thumb: string[];
|
|
280
280
|
label: string;
|
|
281
281
|
};
|
|
@@ -106,15 +106,15 @@ Switch.displayName = "Switch";
|
|
|
106
106
|
var switch_default = Switch;
|
|
107
107
|
var toggle = (0, import_tailwind_variants.tv)({
|
|
108
108
|
slots: {
|
|
109
|
-
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer",
|
|
109
|
+
base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
|
|
110
110
|
outerWrapper: [
|
|
111
111
|
"relative",
|
|
112
112
|
"inline-flex",
|
|
113
113
|
"items-center",
|
|
114
114
|
"justify-start",
|
|
115
115
|
"flex-shrink-0",
|
|
116
|
-
"overflow-hidden",
|
|
117
116
|
"bg-neutral-soft",
|
|
117
|
+
"overflow-hidden",
|
|
118
118
|
"rounded-full",
|
|
119
119
|
"px-[2px]"
|
|
120
120
|
],
|
|
@@ -127,7 +127,7 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
127
127
|
"overflow-hidden",
|
|
128
128
|
"bg-neutral-light",
|
|
129
129
|
"rounded-full",
|
|
130
|
-
"group-has-[:checked]:bg-primary-main"
|
|
130
|
+
"group-has-[:checked]/switch:bg-primary-main"
|
|
131
131
|
],
|
|
132
132
|
thumb: [
|
|
133
133
|
"z-10",
|
|
@@ -139,33 +139,33 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
139
139
|
"rounded-full",
|
|
140
140
|
"origin-right"
|
|
141
141
|
],
|
|
142
|
-
label: "relative text-foreground select-none"
|
|
142
|
+
label: ["relative", "text-foreground", "select-none"]
|
|
143
143
|
},
|
|
144
144
|
variants: {
|
|
145
145
|
size: {
|
|
146
146
|
sm: {
|
|
147
|
-
outerWrapper: "w-[48px] h-[24px] px-[3px]",
|
|
148
|
-
wrapper: "w-[42px] h-[18px] px-[3px]",
|
|
149
|
-
thumb: ["w-[12px] h-[12px]", "group-has-[:checked]:ml-[24px]"],
|
|
147
|
+
outerWrapper: ["w-[48px]", "h-[24px]", "px-[3px]"],
|
|
148
|
+
wrapper: ["w-[42px]", "h-[18px]", "px-[3px]"],
|
|
149
|
+
thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"],
|
|
150
150
|
label: "text-sm"
|
|
151
151
|
},
|
|
152
152
|
md: {
|
|
153
|
-
outerWrapper: "w-[60px] h-[30px] px-[3px]",
|
|
154
|
-
wrapper: "w-[54px] h-[24px] px-[3px]",
|
|
155
|
-
thumb: ["w-[18px] h-[18px]", "group-has-[:checked]:ml-[30px]"],
|
|
153
|
+
outerWrapper: ["w-[60px]", "h-[30px]", "px-[3px]"],
|
|
154
|
+
wrapper: ["w-[54px]", "h-[24px]", "px-[3px]"],
|
|
155
|
+
thumb: ["w-[18px]", "h-[18px]", "group-has-[:checked]/switch:ml-[30px]"],
|
|
156
156
|
label: "text-md"
|
|
157
157
|
},
|
|
158
158
|
lg: {
|
|
159
|
-
outerWrapper: "w-[72px] h-[36px] px-[3px]",
|
|
160
|
-
wrapper: "w-[66px] h-[30px] px-[3px]",
|
|
161
|
-
thumb: ["w-[24px] h-[24px]", "group-has-[:checked]:ml-[36px]"],
|
|
159
|
+
outerWrapper: ["w-[72px]", "h-[36px]", "px-[3px]"],
|
|
160
|
+
wrapper: ["w-[66px]", "h-[30px]", "px-[3px]"],
|
|
161
|
+
thumb: ["w-[24px]", "h-[24px]", "group-has-[:checked]/switch:ml-[36px]"],
|
|
162
162
|
label: "text-lg"
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
isDisabled: {
|
|
166
166
|
true: {
|
|
167
167
|
base: "pointer-events-none",
|
|
168
|
-
wrapper: "bg-neutral-light group-has-[:checked]:bg-neutral-light",
|
|
168
|
+
wrapper: "bg-neutral-light group-has-[:checked]/switch:bg-neutral-light",
|
|
169
169
|
thumb: "bg-trans-soft"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
@@ -12952,15 +12952,15 @@ Switch.displayName = "Switch";
|
|
|
12952
12952
|
var switch_default = Switch;
|
|
12953
12953
|
var toggle = (0, import_tailwind_variants.tv)({
|
|
12954
12954
|
slots: {
|
|
12955
|
-
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer",
|
|
12955
|
+
base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
|
|
12956
12956
|
outerWrapper: [
|
|
12957
12957
|
"relative",
|
|
12958
12958
|
"inline-flex",
|
|
12959
12959
|
"items-center",
|
|
12960
12960
|
"justify-start",
|
|
12961
12961
|
"flex-shrink-0",
|
|
12962
|
-
"overflow-hidden",
|
|
12963
12962
|
"bg-neutral-soft",
|
|
12963
|
+
"overflow-hidden",
|
|
12964
12964
|
"rounded-full",
|
|
12965
12965
|
"px-[2px]"
|
|
12966
12966
|
],
|
|
@@ -12973,7 +12973,7 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
12973
12973
|
"overflow-hidden",
|
|
12974
12974
|
"bg-neutral-light",
|
|
12975
12975
|
"rounded-full",
|
|
12976
|
-
"group-has-[:checked]:bg-primary-main"
|
|
12976
|
+
"group-has-[:checked]/switch:bg-primary-main"
|
|
12977
12977
|
],
|
|
12978
12978
|
thumb: [
|
|
12979
12979
|
"z-10",
|
|
@@ -12985,33 +12985,33 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
12985
12985
|
"rounded-full",
|
|
12986
12986
|
"origin-right"
|
|
12987
12987
|
],
|
|
12988
|
-
label: "relative text-foreground select-none"
|
|
12988
|
+
label: ["relative", "text-foreground", "select-none"]
|
|
12989
12989
|
},
|
|
12990
12990
|
variants: {
|
|
12991
12991
|
size: {
|
|
12992
12992
|
sm: {
|
|
12993
|
-
outerWrapper: "w-[48px] h-[24px] px-[3px]",
|
|
12994
|
-
wrapper: "w-[42px] h-[18px] px-[3px]",
|
|
12995
|
-
thumb: ["w-[12px] h-[12px]", "group-has-[:checked]:ml-[24px]"],
|
|
12993
|
+
outerWrapper: ["w-[48px]", "h-[24px]", "px-[3px]"],
|
|
12994
|
+
wrapper: ["w-[42px]", "h-[18px]", "px-[3px]"],
|
|
12995
|
+
thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"],
|
|
12996
12996
|
label: "text-sm"
|
|
12997
12997
|
},
|
|
12998
12998
|
md: {
|
|
12999
|
-
outerWrapper: "w-[60px] h-[30px] px-[3px]",
|
|
13000
|
-
wrapper: "w-[54px] h-[24px] px-[3px]",
|
|
13001
|
-
thumb: ["w-[18px] h-[18px]", "group-has-[:checked]:ml-[30px]"],
|
|
12999
|
+
outerWrapper: ["w-[60px]", "h-[30px]", "px-[3px]"],
|
|
13000
|
+
wrapper: ["w-[54px]", "h-[24px]", "px-[3px]"],
|
|
13001
|
+
thumb: ["w-[18px]", "h-[18px]", "group-has-[:checked]/switch:ml-[30px]"],
|
|
13002
13002
|
label: "text-md"
|
|
13003
13003
|
},
|
|
13004
13004
|
lg: {
|
|
13005
|
-
outerWrapper: "w-[72px] h-[36px] px-[3px]",
|
|
13006
|
-
wrapper: "w-[66px] h-[30px] px-[3px]",
|
|
13007
|
-
thumb: ["w-[24px] h-[24px]", "group-has-[:checked]:ml-[36px]"],
|
|
13005
|
+
outerWrapper: ["w-[72px]", "h-[36px]", "px-[3px]"],
|
|
13006
|
+
wrapper: ["w-[66px]", "h-[30px]", "px-[3px]"],
|
|
13007
|
+
thumb: ["w-[24px]", "h-[24px]", "group-has-[:checked]/switch:ml-[36px]"],
|
|
13008
13008
|
label: "text-lg"
|
|
13009
13009
|
}
|
|
13010
13010
|
},
|
|
13011
13011
|
isDisabled: {
|
|
13012
13012
|
true: {
|
|
13013
13013
|
base: "pointer-events-none",
|
|
13014
|
-
wrapper: "bg-neutral-light group-has-[:checked]:bg-neutral-light",
|
|
13014
|
+
wrapper: "bg-neutral-light group-has-[:checked]/switch:bg-neutral-light",
|
|
13015
13015
|
thumb: "bg-trans-soft"
|
|
13016
13016
|
}
|
|
13017
13017
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
switch_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
4
|
+
} from "../../chunk-S3O52LLG.mjs";
|
|
6
5
|
import {
|
|
7
6
|
act,
|
|
8
7
|
render
|
|
9
8
|
} from "../../chunk-FNPWLOGV.mjs";
|
|
9
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
10
10
|
import "../../chunk-IZ6II3QA.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/switch/switch.test.tsx
|