@deepnoid/ui 0.0.87 → 0.0.89
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-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
- package/dist/{chunk-4SWFYTMR.mjs → chunk-6YE26GOI.mjs} +10 -8
- package/dist/{chunk-QX6VJLEM.mjs → chunk-7HHFRKJU.mjs} +2 -2
- 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-QIZOXBOY.mjs → chunk-DWROPKZW.mjs} +4 -4
- package/dist/{chunk-PHQY5T3E.mjs → chunk-HFVZFUC3.mjs} +7 -14
- package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
- package/dist/{chunk-4VIEZ5FT.mjs → chunk-JN7EGKJL.mjs} +8 -7
- package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
- package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
- package/dist/{chunk-IZOMH2SL.mjs → chunk-MOINJECK.mjs} +16 -15
- package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
- package/dist/chunk-OJ2OEI5B.mjs +202 -0
- package/dist/{chunk-2COCX2VX.mjs → chunk-PXUBPWKU.mjs} +2 -2
- package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
- package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
- package/dist/chunk-UR64ZUAU.mjs +671 -0
- package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
- package/dist/components/accordion/accordion.d.mts +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.test.mjs +3 -3
- package/dist/components/accordion/accordionItem.d.mts +1 -1
- package/dist/components/accordion/accordionItem.d.ts +1 -1
- 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.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 +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.mts +69 -69
- package/dist/components/checkbox/checkbox.d.ts +69 -69
- 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 +3 -3
- package/dist/components/checkbox/index.js +28 -21
- package/dist/components/checkbox/index.mjs +1 -1
- 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 +7 -2
- package/dist/components/input/input.d.ts +7 -2
- 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 +4 -4
- package/dist/components/list/list.d.mts +1 -1
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/list/listItem.d.mts +1 -1
- package/dist/components/list/listItem.d.ts +1 -1
- package/dist/components/modal/index.js +505 -127
- package/dist/components/modal/index.mjs +5 -4
- package/dist/components/modal/modal.js +505 -127
- package/dist/components/modal/modal.mjs +5 -4
- package/dist/components/modal/modal.test.js +497 -129
- package/dist/components/modal/modal.test.mjs +5 -4
- package/dist/components/pagination/index.js +16 -16
- package/dist/components/pagination/index.mjs +1 -1
- 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 +1 -1
- package/dist/components/progress/index.js +9 -9
- package/dist/components/progress/index.mjs +1 -1
- package/dist/components/progress/progress.d.mts +33 -33
- package/dist/components/progress/progress.d.ts +33 -33
- 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 +33 -33
- package/dist/components/radio/radio.d.ts +33 -33
- 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 +1 -1
- 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 +2 -2
- package/dist/components/select/select.d.ts +2 -2
- 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 +7 -7
- package/dist/components/slider/index.js +9 -4
- package/dist/components/slider/index.mjs +1 -1
- package/dist/components/slider/slider.d.mts +26 -0
- package/dist/components/slider/slider.d.ts +26 -0
- 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 +16 -15
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +48 -48
- package/dist/components/switch/switch.d.ts +48 -48
- package/dist/components/switch/switch.js +16 -15
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/switch/switch.test.js +16 -15
- package/dist/components/switch/switch.test.mjs +1 -1
- package/dist/components/table/index.js +66 -27
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.js +60 -23
- package/dist/components/table/table-body.mjs +4 -4
- 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 +21 -7
- package/dist/components/table/table.d.ts +21 -7
- package/dist/components/table/table.js +66 -27
- package/dist/components/table/table.mjs +6 -6
- package/dist/components/table/table.test.js +66 -27
- package/dist/components/table/table.test.mjs +6 -6
- package/dist/components/tabs/tabs.d.mts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.test.mjs +3 -3
- 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 +510 -9
- package/dist/components/textarea/textarea.d.ts +510 -9
- 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 +32 -2
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +31 -1
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/toast.test.js +31 -1
- package/dist/components/toast/toast.test.mjs +3 -3
- package/dist/components/toast/use-toast.js +32 -2
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tooltip/tooltip.test.js +4034 -118
- package/dist/components/tooltip/tooltip.test.mjs +6 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2773 -2334
- package/dist/index.mjs +33 -33
- package/package.json +1 -1
- package/dist/chunk-66WCZEEU.mjs +0 -320
- package/dist/chunk-WOX3SLJB.mjs +0 -162
|
@@ -16,20 +16,20 @@ declare const Switch: react.ForwardRefExoticComponent<Props & ToggleVariantProps
|
|
|
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,17 +106,18 @@ 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
|
-
"px-[2px]"
|
|
119
|
+
"px-[2px]",
|
|
120
|
+
"hover:bg-primary-main/20"
|
|
120
121
|
],
|
|
121
122
|
wrapper: [
|
|
122
123
|
"relative",
|
|
@@ -127,7 +128,7 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
127
128
|
"overflow-hidden",
|
|
128
129
|
"bg-neutral-light",
|
|
129
130
|
"rounded-full",
|
|
130
|
-
"group-has-[:checked]:bg-primary-main"
|
|
131
|
+
"group-has-[:checked]/switch:bg-primary-main"
|
|
131
132
|
],
|
|
132
133
|
thumb: [
|
|
133
134
|
"z-10",
|
|
@@ -139,33 +140,33 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
139
140
|
"rounded-full",
|
|
140
141
|
"origin-right"
|
|
141
142
|
],
|
|
142
|
-
label: "relative text-foreground select-none"
|
|
143
|
+
label: ["relative", "text-foreground", "select-none"]
|
|
143
144
|
},
|
|
144
145
|
variants: {
|
|
145
146
|
size: {
|
|
146
147
|
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]"],
|
|
148
|
+
outerWrapper: ["w-[48px]", "h-[24px]", "px-[3px]"],
|
|
149
|
+
wrapper: ["w-[42px]", "h-[18px]", "px-[3px]"],
|
|
150
|
+
thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"],
|
|
150
151
|
label: "text-sm"
|
|
151
152
|
},
|
|
152
153
|
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]"],
|
|
154
|
+
outerWrapper: ["w-[60px]", "h-[30px]", "px-[3px]"],
|
|
155
|
+
wrapper: ["w-[54px]", "h-[24px]", "px-[3px]"],
|
|
156
|
+
thumb: ["w-[18px]", "h-[18px]", "group-has-[:checked]/switch:ml-[30px]"],
|
|
156
157
|
label: "text-md"
|
|
157
158
|
},
|
|
158
159
|
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]"],
|
|
160
|
+
outerWrapper: ["w-[72px]", "h-[36px]", "px-[3px]"],
|
|
161
|
+
wrapper: ["w-[66px]", "h-[30px]", "px-[3px]"],
|
|
162
|
+
thumb: ["w-[24px]", "h-[24px]", "group-has-[:checked]/switch:ml-[36px]"],
|
|
162
163
|
label: "text-lg"
|
|
163
164
|
}
|
|
164
165
|
},
|
|
165
166
|
isDisabled: {
|
|
166
167
|
true: {
|
|
167
168
|
base: "pointer-events-none",
|
|
168
|
-
wrapper: "bg-neutral-light group-has-[:checked]:bg-neutral-light",
|
|
169
|
+
wrapper: "bg-neutral-light group-has-[:checked]/switch:bg-neutral-light",
|
|
169
170
|
thumb: "bg-trans-soft"
|
|
170
171
|
}
|
|
171
172
|
},
|
|
@@ -12952,17 +12952,18 @@ 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
|
-
"px-[2px]"
|
|
12965
|
+
"px-[2px]",
|
|
12966
|
+
"hover:bg-primary-main/20"
|
|
12966
12967
|
],
|
|
12967
12968
|
wrapper: [
|
|
12968
12969
|
"relative",
|
|
@@ -12973,7 +12974,7 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
12973
12974
|
"overflow-hidden",
|
|
12974
12975
|
"bg-neutral-light",
|
|
12975
12976
|
"rounded-full",
|
|
12976
|
-
"group-has-[:checked]:bg-primary-main"
|
|
12977
|
+
"group-has-[:checked]/switch:bg-primary-main"
|
|
12977
12978
|
],
|
|
12978
12979
|
thumb: [
|
|
12979
12980
|
"z-10",
|
|
@@ -12985,33 +12986,33 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
12985
12986
|
"rounded-full",
|
|
12986
12987
|
"origin-right"
|
|
12987
12988
|
],
|
|
12988
|
-
label: "relative text-foreground select-none"
|
|
12989
|
+
label: ["relative", "text-foreground", "select-none"]
|
|
12989
12990
|
},
|
|
12990
12991
|
variants: {
|
|
12991
12992
|
size: {
|
|
12992
12993
|
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]"],
|
|
12994
|
+
outerWrapper: ["w-[48px]", "h-[24px]", "px-[3px]"],
|
|
12995
|
+
wrapper: ["w-[42px]", "h-[18px]", "px-[3px]"],
|
|
12996
|
+
thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"],
|
|
12996
12997
|
label: "text-sm"
|
|
12997
12998
|
},
|
|
12998
12999
|
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]"],
|
|
13000
|
+
outerWrapper: ["w-[60px]", "h-[30px]", "px-[3px]"],
|
|
13001
|
+
wrapper: ["w-[54px]", "h-[24px]", "px-[3px]"],
|
|
13002
|
+
thumb: ["w-[18px]", "h-[18px]", "group-has-[:checked]/switch:ml-[30px]"],
|
|
13002
13003
|
label: "text-md"
|
|
13003
13004
|
},
|
|
13004
13005
|
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]"],
|
|
13006
|
+
outerWrapper: ["w-[72px]", "h-[36px]", "px-[3px]"],
|
|
13007
|
+
wrapper: ["w-[66px]", "h-[30px]", "px-[3px]"],
|
|
13008
|
+
thumb: ["w-[24px]", "h-[24px]", "group-has-[:checked]/switch:ml-[36px]"],
|
|
13008
13009
|
label: "text-lg"
|
|
13009
13010
|
}
|
|
13010
13011
|
},
|
|
13011
13012
|
isDisabled: {
|
|
13012
13013
|
true: {
|
|
13013
13014
|
base: "pointer-events-none",
|
|
13014
|
-
wrapper: "bg-neutral-light group-has-[:checked]:bg-neutral-light",
|
|
13015
|
+
wrapper: "bg-neutral-light group-has-[:checked]/switch:bg-neutral-light",
|
|
13015
13016
|
thumb: "bg-trans-soft"
|
|
13016
13017
|
}
|
|
13017
13018
|
},
|
|
@@ -167,10 +167,7 @@ var CheckBox = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
167
167
|
fill: "none",
|
|
168
168
|
points: "1 9 7 14 15 4",
|
|
169
169
|
stroke: "currentColor",
|
|
170
|
-
strokeDasharray: 22,
|
|
171
|
-
strokeDashoffset: isSelected ? 44 : 66,
|
|
172
170
|
strokeLinecap: "round",
|
|
173
|
-
strokeLinejoin: "round",
|
|
174
171
|
strokeWidth: 3,
|
|
175
172
|
style: isSelected ? {
|
|
176
173
|
transition: "stroke-dashoffset 250ms linear 0.2s"
|
|
@@ -188,7 +185,7 @@ CheckBox.displayName = "CheckBox";
|
|
|
188
185
|
var checkbox_default = CheckBox;
|
|
189
186
|
var checkbox = tv({
|
|
190
187
|
slots: {
|
|
191
|
-
base: "group relative inline-flex items-center cursor-pointer",
|
|
188
|
+
base: ["group", "relative", "inline-flex", "items-center", "cursor-pointer"],
|
|
192
189
|
wrapper: [
|
|
193
190
|
"relative",
|
|
194
191
|
"inline-flex",
|
|
@@ -215,33 +212,33 @@ var checkbox = tv({
|
|
|
215
212
|
"group-hover:before:bg-neutral-soft",
|
|
216
213
|
"before:transition duration-200"
|
|
217
214
|
],
|
|
218
|
-
icon: "z-10 opacity-0 group-has-[:checked]:opacity-100 text-white",
|
|
219
|
-
label: "relative text-foreground select-none"
|
|
215
|
+
icon: ["z-10", "opacity-0", "group-has-[:checked]:opacity-100", "text-white"],
|
|
216
|
+
label: ["relative", "text-foreground", "select-none"]
|
|
220
217
|
},
|
|
221
218
|
variants: {
|
|
222
219
|
color: {
|
|
223
220
|
primary: {
|
|
224
|
-
wrapper: "group-has-[:checked]:before:border-primary-main group-has-[:checked]:before:bg-primary-main"
|
|
221
|
+
wrapper: ["group-has-[:checked]:before:border-primary-main", "group-has-[:checked]:before:bg-primary-main"]
|
|
225
222
|
},
|
|
226
223
|
secondary: {
|
|
227
|
-
wrapper: "group-has-[:checked]:before:border-secondary-main group-has-[:checked]:before:bg-secondary-main"
|
|
224
|
+
wrapper: ["group-has-[:checked]:before:border-secondary-main", "group-has-[:checked]:before:bg-secondary-main"]
|
|
228
225
|
}
|
|
229
226
|
},
|
|
230
227
|
size: {
|
|
231
228
|
sm: {
|
|
232
|
-
wrapper: ["w-[15px] h-[15px] rounded-sm", "before:rounded-[
|
|
233
|
-
label: "text-sm ml-[
|
|
234
|
-
icon: "w-[10px] h-[10px]"
|
|
229
|
+
wrapper: ["w-[15px]", "h-[15px]", "rounded-sm", "before:rounded-[3px]", "after:rounded-[3px]"],
|
|
230
|
+
label: ["text-sm", "ml-[6px]"],
|
|
231
|
+
icon: ["w-[10px]", "h-[10px]"]
|
|
235
232
|
},
|
|
236
233
|
md: {
|
|
237
|
-
wrapper: ["w-[17px] h-[17px] rounded-md", "before:rounded-[
|
|
238
|
-
label: "text-md ml-[
|
|
239
|
-
icon: "w-[12px] h-[12px]"
|
|
234
|
+
wrapper: ["w-[17px]", "h-[17px]", "rounded-md", "before:rounded-[3px]", "after:rounded-[3px]"],
|
|
235
|
+
label: ["text-md", "ml-[8px]"],
|
|
236
|
+
icon: ["w-[12px]", "h-[12px]"]
|
|
240
237
|
},
|
|
241
238
|
lg: {
|
|
242
|
-
wrapper: ["w-[20px] h-[20px] rounded-lg", "before:rounded-[
|
|
243
|
-
label: "text-lg ml-[10px]",
|
|
244
|
-
icon: "w-[15px] h-[15px]"
|
|
239
|
+
wrapper: ["w-[20px]", "h-[20px]", "rounded-lg", "before:rounded-[4px]", "after:rounded-[4px]"],
|
|
240
|
+
label: ["text-lg", "ml-[10px]"],
|
|
241
|
+
icon: ["w-[15px]", "h-[15px]"]
|
|
245
242
|
}
|
|
246
243
|
},
|
|
247
244
|
lineThrough: {
|
|
@@ -262,14 +259,24 @@ var checkbox = tv({
|
|
|
262
259
|
},
|
|
263
260
|
isInvalid: {
|
|
264
261
|
true: {
|
|
265
|
-
wrapper:
|
|
262
|
+
wrapper: [
|
|
263
|
+
"before:border-danger-main",
|
|
264
|
+
"group-has-[:checked]:before:bg-danger-main",
|
|
265
|
+
"group-has-[:checked]:before:border-danger-main"
|
|
266
|
+
],
|
|
266
267
|
label: "text-danger-main"
|
|
267
268
|
}
|
|
268
269
|
},
|
|
269
270
|
isDisabled: {
|
|
270
271
|
true: {
|
|
271
272
|
base: "opacity-disabled pointer-events-none text-neutral-light",
|
|
272
|
-
wrapper:
|
|
273
|
+
wrapper: [
|
|
274
|
+
"after:bg-neutral-soft",
|
|
275
|
+
"before:border-neutral-light",
|
|
276
|
+
"before:bg-neutral-soft",
|
|
277
|
+
"group-has-[:checked]:before:bg-neutral-soft",
|
|
278
|
+
"group-has-[:checked]:before:border-neutral-light"
|
|
279
|
+
],
|
|
273
280
|
label: "text-neutral-light",
|
|
274
281
|
icon: "text-neutral-light"
|
|
275
282
|
}
|
|
@@ -290,8 +297,8 @@ var checkbox = tv({
|
|
|
290
297
|
"after:!duration-200",
|
|
291
298
|
"motion-reduce:transition-none"
|
|
292
299
|
],
|
|
293
|
-
icon: "transition-opacity motion-reduce:transition-none",
|
|
294
|
-
label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
|
|
300
|
+
icon: ["transition-opacity", "motion-reduce:transition-none"],
|
|
301
|
+
label: ["transition-colors-opacity", "before:transition-width", "motion-reduce:transition-none"]
|
|
295
302
|
}
|
|
296
303
|
}
|
|
297
304
|
},
|
|
@@ -637,6 +644,36 @@ var template = {
|
|
|
637
644
|
}
|
|
638
645
|
);
|
|
639
646
|
},
|
|
647
|
+
loading: ({ className, fill }) => {
|
|
648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
649
|
+
"svg",
|
|
650
|
+
{
|
|
651
|
+
width: "24",
|
|
652
|
+
height: "24",
|
|
653
|
+
viewBox: "0 0 24 24",
|
|
654
|
+
fill: "none",
|
|
655
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
656
|
+
className,
|
|
657
|
+
children: [
|
|
658
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
659
|
+
"path",
|
|
660
|
+
{
|
|
661
|
+
d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.6 12C6.6 14.9823 9.01766 17.4 12 17.4C14.9823 17.4 17.4 14.9823 17.4 12C17.4 9.01766 14.9823 6.6 12 6.6C9.01766 6.6 6.6 9.01766 6.6 12Z",
|
|
662
|
+
fill: "currentColor",
|
|
663
|
+
fillOpacity: "0.1"
|
|
664
|
+
}
|
|
665
|
+
),
|
|
666
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
667
|
+
"path",
|
|
668
|
+
{
|
|
669
|
+
d: "M21 12C21 13.9006 20.3983 15.7524 19.2812 17.2901C18.164 18.8277 16.5887 19.9722 14.7812 20.5595C12.9736 21.1468 11.0264 21.1468 9.21885 20.5595C7.41126 19.9722 5.836 18.8277 4.71885 17.2901C3.60169 15.7524 3 13.9006 3 12C3 10.0994 3.60169 8.24756 4.71885 6.70993C5.836 5.1723 7.41126 4.02781 9.21885 3.44049C11.0264 2.85317 12.9736 2.85317 14.7812 3.44049L13.6687 6.8643C12.5841 6.5119 11.4159 6.5119 10.3313 6.86429C9.24675 7.21669 8.3016 7.90338 7.63131 8.82596C6.96102 9.74854 6.6 10.8596 6.6 12C6.6 13.1404 6.96102 14.2515 7.63131 15.174C8.3016 16.0966 9.24675 16.7833 10.3313 17.1357C11.4159 17.4881 12.5841 17.4881 13.6687 17.1357C14.7532 16.7833 15.6984 16.0966 16.3687 15.174C17.039 14.2515 17.4 13.1404 17.4 12H21Z",
|
|
670
|
+
fill: "currentColor"
|
|
671
|
+
}
|
|
672
|
+
)
|
|
673
|
+
]
|
|
674
|
+
}
|
|
675
|
+
);
|
|
676
|
+
},
|
|
640
677
|
// ** User **
|
|
641
678
|
"user-circle": ({ className, fill }) => {
|
|
642
679
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
@@ -3922,7 +3959,7 @@ var TableBody = ({
|
|
|
3922
3959
|
const getTrProps = (0, import_react4.useCallback)(
|
|
3923
3960
|
(index) => ({
|
|
3924
3961
|
className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr })),
|
|
3925
|
-
"data-
|
|
3962
|
+
"data-odd": index % 2 !== 0,
|
|
3926
3963
|
"data-expanded": expandedRows.has(index)
|
|
3927
3964
|
}),
|
|
3928
3965
|
[classNames == null ? void 0 : classNames.tr, expandedRows, slots]
|
|
@@ -3989,7 +4026,7 @@ var TableBody = ({
|
|
|
3989
4026
|
isExpanded && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("td", { ...getTdProps({ field: "expandIcon" }, row, keys), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
3990
4027
|
Icon_default,
|
|
3991
4028
|
{
|
|
3992
|
-
name: expandedRows.has(rowIndex) ? "
|
|
4029
|
+
name: expandedRows.has(rowIndex) ? "brace-down" : "brace-right",
|
|
3993
4030
|
className: `ml-2 transition-transform`,
|
|
3994
4031
|
size
|
|
3995
4032
|
}
|
|
@@ -4174,7 +4211,9 @@ var table = (0, import_tailwind_variants3.tv)({
|
|
|
4174
4211
|
true: {}
|
|
4175
4212
|
},
|
|
4176
4213
|
isSelectedRow: {
|
|
4177
|
-
true: {
|
|
4214
|
+
true: {
|
|
4215
|
+
tr: "cursor-pointer"
|
|
4216
|
+
}
|
|
4178
4217
|
},
|
|
4179
4218
|
hideHeader: {
|
|
4180
4219
|
true: {
|
|
@@ -4263,7 +4302,7 @@ var table = (0, import_tailwind_variants3.tv)({
|
|
|
4263
4302
|
variant: "stripe",
|
|
4264
4303
|
color: "primary",
|
|
4265
4304
|
class: {
|
|
4266
|
-
tr: "data-[
|
|
4305
|
+
tr: "data-[odd=true]:bg-primary-soft",
|
|
4267
4306
|
td: "group-hover:bg-primary-light"
|
|
4268
4307
|
}
|
|
4269
4308
|
},
|
|
@@ -4271,7 +4310,7 @@ var table = (0, import_tailwind_variants3.tv)({
|
|
|
4271
4310
|
variant: "stripe",
|
|
4272
4311
|
color: "secondary",
|
|
4273
4312
|
class: {
|
|
4274
|
-
tr: "data-[
|
|
4313
|
+
tr: "data-[odd=true]:bg-secondary-soft",
|
|
4275
4314
|
td: "group-hover:bg-secondary-light"
|
|
4276
4315
|
}
|
|
4277
4316
|
},
|
|
@@ -4279,7 +4318,7 @@ var table = (0, import_tailwind_variants3.tv)({
|
|
|
4279
4318
|
variant: "stripe",
|
|
4280
4319
|
color: "neutral",
|
|
4281
4320
|
class: {
|
|
4282
|
-
tr: "data-[
|
|
4321
|
+
tr: "data-[odd=true]:bg-trans-soft",
|
|
4283
4322
|
td: "group-hover:bg-neutral-light"
|
|
4284
4323
|
}
|
|
4285
4324
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import "../../chunk-2UUH2MBF.mjs";
|
|
3
3
|
import {
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-6YE26GOI.mjs";
|
|
6
|
+
import "../../chunk-DWROPKZW.mjs";
|
|
7
|
+
import "../../chunk-VG4644BG.mjs";
|
|
8
8
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-ANYPMQH4.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-LCI6RPWE.mjs";
|
|
13
|
+
import "../../chunk-IOCRFIQF.mjs";
|
|
14
14
|
import "../../chunk-E3G5QXSH.mjs";
|
|
15
15
|
import "../../chunk-J725QONZ.mjs";
|
|
16
16
|
import "../../chunk-IZ6II3QA.mjs";
|