@deepnoid/ui 0.0.88 → 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-IXFP2WQ4.mjs → chunk-6YE26GOI.mjs} +10 -8
- 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-YGTJU3GD.mjs → chunk-HFVZFUC3.mjs} +9 -16
- 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-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-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 +1 -1
- 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 +5 -1
- 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 +5 -1
- 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 +2 -2
- 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 +5 -5
- package/dist/components/list/list.d.mts +1 -1
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/list/list.test.mjs +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 +6 -5
- package/dist/components/modal/modal.js +505 -127
- package/dist/components/modal/modal.mjs +6 -5
- package/dist/components/modal/modal.test.js +497 -129
- 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.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 +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 +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 +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 +6 -6
- 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 +2 -2
- package/dist/components/table/index.js +66 -27
- package/dist/components/table/index.mjs +7 -7
- 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 +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 +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 +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.test.mjs +1 -1
- 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 +2 -1
- package/dist/components/toast/index.js +30 -0
- package/dist/components/toast/index.mjs +4 -4
- 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/tooltip.test.js +4034 -118
- package/dist/components/tooltip/tooltip.test.mjs +5 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2771 -2332
- package/dist/index.mjs +38 -38
- package/package.json +1 -1
- package/dist/chunk-66WCZEEU.mjs +0 -320
- package/dist/chunk-WOX3SLJB.mjs +0 -162
|
@@ -12968,12 +12968,12 @@ Progress.displayName = "Progress";
|
|
|
12968
12968
|
var progress_default = Progress;
|
|
12969
12969
|
var progress = tv({
|
|
12970
12970
|
slots: {
|
|
12971
|
-
base: "flex flex-col gap-2 w-[200px]",
|
|
12972
|
-
labelWrapper: "flex justify-between",
|
|
12973
|
-
label: "font-[500]",
|
|
12974
|
-
output: "font-[500]",
|
|
12975
|
-
track: "relative bg-neutral-soft rounded-full overflow-hidden",
|
|
12976
|
-
indicator: "absolute h-full rounded-full"
|
|
12971
|
+
base: ["flex", "flex-col", "gap-2", "w-[200px]"],
|
|
12972
|
+
labelWrapper: ["flex", "justify-between"],
|
|
12973
|
+
label: ["font-[500]"],
|
|
12974
|
+
output: ["font-[500]"],
|
|
12975
|
+
track: ["relative", "bg-neutral-soft", "rounded-full", "overflow-hidden"],
|
|
12976
|
+
indicator: ["absolute", "h-full", "rounded-full"]
|
|
12977
12977
|
},
|
|
12978
12978
|
variants: {
|
|
12979
12979
|
color: {
|
|
@@ -13003,7 +13003,7 @@ var progress = tv({
|
|
|
13003
13003
|
},
|
|
13004
13004
|
gradient: {
|
|
13005
13005
|
true: {
|
|
13006
|
-
indicator: "bg-gradient-to-r from-primary-main to-secondary-main"
|
|
13006
|
+
indicator: ["bg-gradient-to-r", "from-primary-main", "to-secondary-main"]
|
|
13007
13007
|
}
|
|
13008
13008
|
},
|
|
13009
13009
|
fullWidth: {
|
|
@@ -13013,8 +13013,8 @@ var progress = tv({
|
|
|
13013
13013
|
},
|
|
13014
13014
|
isDisabled: {
|
|
13015
13015
|
true: {
|
|
13016
|
-
base: "opacity-disabled cursor-not-allowed",
|
|
13017
|
-
indicator: "bg-neutral-light"
|
|
13016
|
+
base: ["opacity-disabled", "cursor-not-allowed"],
|
|
13017
|
+
indicator: ["bg-neutral-light", "from-none", "to-none"]
|
|
13018
13018
|
}
|
|
13019
13019
|
}
|
|
13020
13020
|
},
|
|
@@ -112,7 +112,16 @@ Radio.displayName = "Radio";
|
|
|
112
112
|
var radio_default = Radio;
|
|
113
113
|
var radio = tv({
|
|
114
114
|
slots: {
|
|
115
|
-
base:
|
|
115
|
+
base: [
|
|
116
|
+
"group/radio",
|
|
117
|
+
"relative",
|
|
118
|
+
"max-w-fit",
|
|
119
|
+
"inline-flex",
|
|
120
|
+
"items-center",
|
|
121
|
+
"justify-start",
|
|
122
|
+
"cursor-pointer",
|
|
123
|
+
"tap-highlight-transparent"
|
|
124
|
+
],
|
|
116
125
|
icon: [
|
|
117
126
|
"relative",
|
|
118
127
|
"inline-flex",
|
|
@@ -141,18 +150,18 @@ var radio = tv({
|
|
|
141
150
|
"after:left-1/2",
|
|
142
151
|
"after:-translate-x-1/2",
|
|
143
152
|
"after:-translate-y-1/2",
|
|
144
|
-
"group-has-[:checked]:after:opacity-100",
|
|
145
|
-
"group-has-[:checked]:after:scale-100",
|
|
153
|
+
"group-has-[:checked]/radio:after:opacity-100",
|
|
154
|
+
"group-has-[:checked]/radio:after:scale-100",
|
|
146
155
|
// hover
|
|
147
|
-
"group-hover:before:bg-neutral-soft",
|
|
156
|
+
"group-hover/radio:before:bg-neutral-soft",
|
|
148
157
|
"before:transition duration-200",
|
|
149
158
|
// focus ring
|
|
150
159
|
"outline-none",
|
|
151
|
-
"group-focus:z-10",
|
|
152
|
-
"group-focus:ring-2",
|
|
153
|
-
"group-focus:ring-focus",
|
|
154
|
-
"group-focus:ring-offset-2",
|
|
155
|
-
"group-focus:ring-offset-background"
|
|
160
|
+
"group-focus/radio:z-10",
|
|
161
|
+
"group-focus/radio:ring-2",
|
|
162
|
+
"group-focus/radio:ring-focus",
|
|
163
|
+
"group-focus/radio:ring-offset-2",
|
|
164
|
+
"group-focus/radio:ring-offset-background"
|
|
156
165
|
],
|
|
157
166
|
labelWrapper: "flex flex-col",
|
|
158
167
|
label: "text-foreground select-none"
|
|
@@ -160,44 +169,53 @@ var radio = tv({
|
|
|
160
169
|
variants: {
|
|
161
170
|
color: {
|
|
162
171
|
primary: {
|
|
163
|
-
icon: "group-has-[:checked]:before:border-primary-main after:bg-primary-main"
|
|
172
|
+
icon: ["group-has-[:checked]/radio:before:border-primary-main", "after:bg-primary-main"]
|
|
164
173
|
},
|
|
165
174
|
secondary: {
|
|
166
|
-
icon: "group-has-[:checked]:before:border-secondary-main after:bg-secondary-main"
|
|
175
|
+
icon: ["group-has-[:checked]/radio:before:border-secondary-main", "after:bg-secondary-main"]
|
|
167
176
|
}
|
|
168
177
|
},
|
|
169
178
|
size: {
|
|
170
179
|
sm: {
|
|
171
|
-
icon: ["w-[15px] h-[15px] mr-[
|
|
180
|
+
icon: ["w-[15px]", "h-[15px]", "mr-[6px]", "after:w-[9px]", "after:h-[9px]"],
|
|
172
181
|
label: "text-sm"
|
|
173
182
|
},
|
|
174
183
|
md: {
|
|
175
|
-
icon: ["w-[17px] h-[17px] mr-[
|
|
184
|
+
icon: ["w-[17px]", "h-[17px]", "mr-[8px]", "after:w-[11px]", "after:h-[11px]"],
|
|
176
185
|
label: "text-md"
|
|
177
186
|
},
|
|
178
187
|
lg: {
|
|
179
|
-
icon: ["w-[20px] h-[20px] mr-[10px] after:w-[
|
|
188
|
+
icon: ["w-[20px]", "h-[20px]", "mr-[10px]", "after:w-[14px]", "after:h-[14px]"],
|
|
180
189
|
label: "text-lg"
|
|
181
190
|
}
|
|
182
191
|
},
|
|
183
192
|
isInvalid: {
|
|
184
193
|
true: {
|
|
185
|
-
icon:
|
|
194
|
+
icon: [
|
|
195
|
+
"after:bg-danger-main",
|
|
196
|
+
"before:border-danger-main",
|
|
197
|
+
"group-has-[:checked]/radio:before:border-danger-main"
|
|
198
|
+
],
|
|
186
199
|
label: "text-danger-main"
|
|
187
200
|
}
|
|
188
201
|
},
|
|
189
202
|
isDisabled: {
|
|
190
203
|
true: {
|
|
191
|
-
base: "opacity-disabled pointer-events-none",
|
|
192
|
-
icon:
|
|
204
|
+
base: ["opacity-disabled", "pointer-events-none"],
|
|
205
|
+
icon: [
|
|
206
|
+
"before:border-neutral-light",
|
|
207
|
+
"before:bg-neutral-soft",
|
|
208
|
+
"after:bg-neutral-light",
|
|
209
|
+
"group-has-[:checked]/radio:before:border-neutral-light"
|
|
210
|
+
],
|
|
193
211
|
label: "text-neutral-light"
|
|
194
212
|
}
|
|
195
213
|
},
|
|
196
214
|
disableAnimation: {
|
|
197
215
|
true: {},
|
|
198
216
|
false: {
|
|
199
|
-
icon: ["group-active:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
|
|
200
|
-
label: "transition-colors motion-reduce:transition-none"
|
|
217
|
+
icon: ["group-active/radio:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
|
|
218
|
+
label: ["transition-colors", "motion-reduce:transition-none"]
|
|
201
219
|
}
|
|
202
220
|
}
|
|
203
221
|
},
|
|
@@ -15,10 +15,10 @@ declare const Radio: react.ForwardRefExoticComponent<Props & RadioVariantProps &
|
|
|
15
15
|
declare const radio: tailwind_variants.TVReturnType<{
|
|
16
16
|
color: {
|
|
17
17
|
primary: {
|
|
18
|
-
icon: string;
|
|
18
|
+
icon: string[];
|
|
19
19
|
};
|
|
20
20
|
secondary: {
|
|
21
|
-
icon: string;
|
|
21
|
+
icon: string[];
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
size: {
|
|
@@ -37,14 +37,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
37
37
|
};
|
|
38
38
|
isInvalid: {
|
|
39
39
|
true: {
|
|
40
|
-
icon: string;
|
|
40
|
+
icon: string[];
|
|
41
41
|
label: string;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
isDisabled: {
|
|
45
45
|
true: {
|
|
46
|
-
base: string;
|
|
47
|
-
icon: string;
|
|
46
|
+
base: string[];
|
|
47
|
+
icon: string[];
|
|
48
48
|
label: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
@@ -52,11 +52,11 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
52
52
|
true: {};
|
|
53
53
|
false: {
|
|
54
54
|
icon: string[];
|
|
55
|
-
label: string;
|
|
55
|
+
label: string[];
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
}, {
|
|
59
|
-
base: string;
|
|
59
|
+
base: string[];
|
|
60
60
|
icon: string[];
|
|
61
61
|
labelWrapper: string;
|
|
62
62
|
label: string;
|
|
@@ -91,10 +91,10 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
91
91
|
}, {
|
|
92
92
|
color: {
|
|
93
93
|
primary: {
|
|
94
|
-
icon: string;
|
|
94
|
+
icon: string[];
|
|
95
95
|
};
|
|
96
96
|
secondary: {
|
|
97
|
-
icon: string;
|
|
97
|
+
icon: string[];
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
size: {
|
|
@@ -113,14 +113,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
113
113
|
};
|
|
114
114
|
isInvalid: {
|
|
115
115
|
true: {
|
|
116
|
-
icon: string;
|
|
116
|
+
icon: string[];
|
|
117
117
|
label: string;
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
isDisabled: {
|
|
121
121
|
true: {
|
|
122
|
-
base: string;
|
|
123
|
-
icon: string;
|
|
122
|
+
base: string[];
|
|
123
|
+
icon: string[];
|
|
124
124
|
label: string;
|
|
125
125
|
};
|
|
126
126
|
};
|
|
@@ -128,21 +128,21 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
128
128
|
true: {};
|
|
129
129
|
false: {
|
|
130
130
|
icon: string[];
|
|
131
|
-
label: string;
|
|
131
|
+
label: string[];
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
134
|
}, {
|
|
135
|
-
base: string;
|
|
135
|
+
base: string[];
|
|
136
136
|
icon: string[];
|
|
137
137
|
labelWrapper: string;
|
|
138
138
|
label: string;
|
|
139
139
|
}, tailwind_variants.TVReturnType<{
|
|
140
140
|
color: {
|
|
141
141
|
primary: {
|
|
142
|
-
icon: string;
|
|
142
|
+
icon: string[];
|
|
143
143
|
};
|
|
144
144
|
secondary: {
|
|
145
|
-
icon: string;
|
|
145
|
+
icon: string[];
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
148
|
size: {
|
|
@@ -161,14 +161,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
161
161
|
};
|
|
162
162
|
isInvalid: {
|
|
163
163
|
true: {
|
|
164
|
-
icon: string;
|
|
164
|
+
icon: string[];
|
|
165
165
|
label: string;
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
168
|
isDisabled: {
|
|
169
169
|
true: {
|
|
170
|
-
base: string;
|
|
171
|
-
icon: string;
|
|
170
|
+
base: string[];
|
|
171
|
+
icon: string[];
|
|
172
172
|
label: string;
|
|
173
173
|
};
|
|
174
174
|
};
|
|
@@ -176,21 +176,21 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
176
176
|
true: {};
|
|
177
177
|
false: {
|
|
178
178
|
icon: string[];
|
|
179
|
-
label: string;
|
|
179
|
+
label: string[];
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
182
|
}, {
|
|
183
|
-
base: string;
|
|
183
|
+
base: string[];
|
|
184
184
|
icon: string[];
|
|
185
185
|
labelWrapper: string;
|
|
186
186
|
label: string;
|
|
187
187
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
188
188
|
color: {
|
|
189
189
|
primary: {
|
|
190
|
-
icon: string;
|
|
190
|
+
icon: string[];
|
|
191
191
|
};
|
|
192
192
|
secondary: {
|
|
193
|
-
icon: string;
|
|
193
|
+
icon: string[];
|
|
194
194
|
};
|
|
195
195
|
};
|
|
196
196
|
size: {
|
|
@@ -209,14 +209,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
209
209
|
};
|
|
210
210
|
isInvalid: {
|
|
211
211
|
true: {
|
|
212
|
-
icon: string;
|
|
212
|
+
icon: string[];
|
|
213
213
|
label: string;
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
216
|
isDisabled: {
|
|
217
217
|
true: {
|
|
218
|
-
base: string;
|
|
219
|
-
icon: string;
|
|
218
|
+
base: string[];
|
|
219
|
+
icon: string[];
|
|
220
220
|
label: string;
|
|
221
221
|
};
|
|
222
222
|
};
|
|
@@ -224,16 +224,16 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
224
224
|
true: {};
|
|
225
225
|
false: {
|
|
226
226
|
icon: string[];
|
|
227
|
-
label: string;
|
|
227
|
+
label: string[];
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
230
|
}, {
|
|
231
231
|
color: {
|
|
232
232
|
primary: {
|
|
233
|
-
icon: string;
|
|
233
|
+
icon: string[];
|
|
234
234
|
};
|
|
235
235
|
secondary: {
|
|
236
|
-
icon: string;
|
|
236
|
+
icon: string[];
|
|
237
237
|
};
|
|
238
238
|
};
|
|
239
239
|
size: {
|
|
@@ -252,14 +252,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
252
252
|
};
|
|
253
253
|
isInvalid: {
|
|
254
254
|
true: {
|
|
255
|
-
icon: string;
|
|
255
|
+
icon: string[];
|
|
256
256
|
label: string;
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
259
|
isDisabled: {
|
|
260
260
|
true: {
|
|
261
|
-
base: string;
|
|
262
|
-
icon: string;
|
|
261
|
+
base: string[];
|
|
262
|
+
icon: string[];
|
|
263
263
|
label: string;
|
|
264
264
|
};
|
|
265
265
|
};
|
|
@@ -267,7 +267,7 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
267
267
|
true: {};
|
|
268
268
|
false: {
|
|
269
269
|
icon: string[];
|
|
270
|
-
label: string;
|
|
270
|
+
label: string[];
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
273
|
}>, unknown, unknown, undefined>>;
|
|
@@ -15,10 +15,10 @@ declare const Radio: react.ForwardRefExoticComponent<Props & RadioVariantProps &
|
|
|
15
15
|
declare const radio: tailwind_variants.TVReturnType<{
|
|
16
16
|
color: {
|
|
17
17
|
primary: {
|
|
18
|
-
icon: string;
|
|
18
|
+
icon: string[];
|
|
19
19
|
};
|
|
20
20
|
secondary: {
|
|
21
|
-
icon: string;
|
|
21
|
+
icon: string[];
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
size: {
|
|
@@ -37,14 +37,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
37
37
|
};
|
|
38
38
|
isInvalid: {
|
|
39
39
|
true: {
|
|
40
|
-
icon: string;
|
|
40
|
+
icon: string[];
|
|
41
41
|
label: string;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
isDisabled: {
|
|
45
45
|
true: {
|
|
46
|
-
base: string;
|
|
47
|
-
icon: string;
|
|
46
|
+
base: string[];
|
|
47
|
+
icon: string[];
|
|
48
48
|
label: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
@@ -52,11 +52,11 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
52
52
|
true: {};
|
|
53
53
|
false: {
|
|
54
54
|
icon: string[];
|
|
55
|
-
label: string;
|
|
55
|
+
label: string[];
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
}, {
|
|
59
|
-
base: string;
|
|
59
|
+
base: string[];
|
|
60
60
|
icon: string[];
|
|
61
61
|
labelWrapper: string;
|
|
62
62
|
label: string;
|
|
@@ -91,10 +91,10 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
91
91
|
}, {
|
|
92
92
|
color: {
|
|
93
93
|
primary: {
|
|
94
|
-
icon: string;
|
|
94
|
+
icon: string[];
|
|
95
95
|
};
|
|
96
96
|
secondary: {
|
|
97
|
-
icon: string;
|
|
97
|
+
icon: string[];
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
size: {
|
|
@@ -113,14 +113,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
113
113
|
};
|
|
114
114
|
isInvalid: {
|
|
115
115
|
true: {
|
|
116
|
-
icon: string;
|
|
116
|
+
icon: string[];
|
|
117
117
|
label: string;
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
isDisabled: {
|
|
121
121
|
true: {
|
|
122
|
-
base: string;
|
|
123
|
-
icon: string;
|
|
122
|
+
base: string[];
|
|
123
|
+
icon: string[];
|
|
124
124
|
label: string;
|
|
125
125
|
};
|
|
126
126
|
};
|
|
@@ -128,21 +128,21 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
128
128
|
true: {};
|
|
129
129
|
false: {
|
|
130
130
|
icon: string[];
|
|
131
|
-
label: string;
|
|
131
|
+
label: string[];
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
134
|
}, {
|
|
135
|
-
base: string;
|
|
135
|
+
base: string[];
|
|
136
136
|
icon: string[];
|
|
137
137
|
labelWrapper: string;
|
|
138
138
|
label: string;
|
|
139
139
|
}, tailwind_variants.TVReturnType<{
|
|
140
140
|
color: {
|
|
141
141
|
primary: {
|
|
142
|
-
icon: string;
|
|
142
|
+
icon: string[];
|
|
143
143
|
};
|
|
144
144
|
secondary: {
|
|
145
|
-
icon: string;
|
|
145
|
+
icon: string[];
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
148
|
size: {
|
|
@@ -161,14 +161,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
161
161
|
};
|
|
162
162
|
isInvalid: {
|
|
163
163
|
true: {
|
|
164
|
-
icon: string;
|
|
164
|
+
icon: string[];
|
|
165
165
|
label: string;
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
168
|
isDisabled: {
|
|
169
169
|
true: {
|
|
170
|
-
base: string;
|
|
171
|
-
icon: string;
|
|
170
|
+
base: string[];
|
|
171
|
+
icon: string[];
|
|
172
172
|
label: string;
|
|
173
173
|
};
|
|
174
174
|
};
|
|
@@ -176,21 +176,21 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
176
176
|
true: {};
|
|
177
177
|
false: {
|
|
178
178
|
icon: string[];
|
|
179
|
-
label: string;
|
|
179
|
+
label: string[];
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
182
|
}, {
|
|
183
|
-
base: string;
|
|
183
|
+
base: string[];
|
|
184
184
|
icon: string[];
|
|
185
185
|
labelWrapper: string;
|
|
186
186
|
label: string;
|
|
187
187
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
188
188
|
color: {
|
|
189
189
|
primary: {
|
|
190
|
-
icon: string;
|
|
190
|
+
icon: string[];
|
|
191
191
|
};
|
|
192
192
|
secondary: {
|
|
193
|
-
icon: string;
|
|
193
|
+
icon: string[];
|
|
194
194
|
};
|
|
195
195
|
};
|
|
196
196
|
size: {
|
|
@@ -209,14 +209,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
209
209
|
};
|
|
210
210
|
isInvalid: {
|
|
211
211
|
true: {
|
|
212
|
-
icon: string;
|
|
212
|
+
icon: string[];
|
|
213
213
|
label: string;
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
216
|
isDisabled: {
|
|
217
217
|
true: {
|
|
218
|
-
base: string;
|
|
219
|
-
icon: string;
|
|
218
|
+
base: string[];
|
|
219
|
+
icon: string[];
|
|
220
220
|
label: string;
|
|
221
221
|
};
|
|
222
222
|
};
|
|
@@ -224,16 +224,16 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
224
224
|
true: {};
|
|
225
225
|
false: {
|
|
226
226
|
icon: string[];
|
|
227
|
-
label: string;
|
|
227
|
+
label: string[];
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
230
|
}, {
|
|
231
231
|
color: {
|
|
232
232
|
primary: {
|
|
233
|
-
icon: string;
|
|
233
|
+
icon: string[];
|
|
234
234
|
};
|
|
235
235
|
secondary: {
|
|
236
|
-
icon: string;
|
|
236
|
+
icon: string[];
|
|
237
237
|
};
|
|
238
238
|
};
|
|
239
239
|
size: {
|
|
@@ -252,14 +252,14 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
252
252
|
};
|
|
253
253
|
isInvalid: {
|
|
254
254
|
true: {
|
|
255
|
-
icon: string;
|
|
255
|
+
icon: string[];
|
|
256
256
|
label: string;
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
259
|
isDisabled: {
|
|
260
260
|
true: {
|
|
261
|
-
base: string;
|
|
262
|
-
icon: string;
|
|
261
|
+
base: string[];
|
|
262
|
+
icon: string[];
|
|
263
263
|
label: string;
|
|
264
264
|
};
|
|
265
265
|
};
|
|
@@ -267,7 +267,7 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
267
267
|
true: {};
|
|
268
268
|
false: {
|
|
269
269
|
icon: string[];
|
|
270
|
-
label: string;
|
|
270
|
+
label: string[];
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
273
|
}>, unknown, unknown, undefined>>;
|
|
@@ -110,7 +110,16 @@ Radio.displayName = "Radio";
|
|
|
110
110
|
var radio_default = Radio;
|
|
111
111
|
var radio = tv({
|
|
112
112
|
slots: {
|
|
113
|
-
base:
|
|
113
|
+
base: [
|
|
114
|
+
"group/radio",
|
|
115
|
+
"relative",
|
|
116
|
+
"max-w-fit",
|
|
117
|
+
"inline-flex",
|
|
118
|
+
"items-center",
|
|
119
|
+
"justify-start",
|
|
120
|
+
"cursor-pointer",
|
|
121
|
+
"tap-highlight-transparent"
|
|
122
|
+
],
|
|
114
123
|
icon: [
|
|
115
124
|
"relative",
|
|
116
125
|
"inline-flex",
|
|
@@ -139,18 +148,18 @@ var radio = tv({
|
|
|
139
148
|
"after:left-1/2",
|
|
140
149
|
"after:-translate-x-1/2",
|
|
141
150
|
"after:-translate-y-1/2",
|
|
142
|
-
"group-has-[:checked]:after:opacity-100",
|
|
143
|
-
"group-has-[:checked]:after:scale-100",
|
|
151
|
+
"group-has-[:checked]/radio:after:opacity-100",
|
|
152
|
+
"group-has-[:checked]/radio:after:scale-100",
|
|
144
153
|
// hover
|
|
145
|
-
"group-hover:before:bg-neutral-soft",
|
|
154
|
+
"group-hover/radio:before:bg-neutral-soft",
|
|
146
155
|
"before:transition duration-200",
|
|
147
156
|
// focus ring
|
|
148
157
|
"outline-none",
|
|
149
|
-
"group-focus:z-10",
|
|
150
|
-
"group-focus:ring-2",
|
|
151
|
-
"group-focus:ring-focus",
|
|
152
|
-
"group-focus:ring-offset-2",
|
|
153
|
-
"group-focus:ring-offset-background"
|
|
158
|
+
"group-focus/radio:z-10",
|
|
159
|
+
"group-focus/radio:ring-2",
|
|
160
|
+
"group-focus/radio:ring-focus",
|
|
161
|
+
"group-focus/radio:ring-offset-2",
|
|
162
|
+
"group-focus/radio:ring-offset-background"
|
|
154
163
|
],
|
|
155
164
|
labelWrapper: "flex flex-col",
|
|
156
165
|
label: "text-foreground select-none"
|
|
@@ -158,44 +167,53 @@ var radio = tv({
|
|
|
158
167
|
variants: {
|
|
159
168
|
color: {
|
|
160
169
|
primary: {
|
|
161
|
-
icon: "group-has-[:checked]:before:border-primary-main after:bg-primary-main"
|
|
170
|
+
icon: ["group-has-[:checked]/radio:before:border-primary-main", "after:bg-primary-main"]
|
|
162
171
|
},
|
|
163
172
|
secondary: {
|
|
164
|
-
icon: "group-has-[:checked]:before:border-secondary-main after:bg-secondary-main"
|
|
173
|
+
icon: ["group-has-[:checked]/radio:before:border-secondary-main", "after:bg-secondary-main"]
|
|
165
174
|
}
|
|
166
175
|
},
|
|
167
176
|
size: {
|
|
168
177
|
sm: {
|
|
169
|
-
icon: ["w-[15px] h-[15px] mr-[
|
|
178
|
+
icon: ["w-[15px]", "h-[15px]", "mr-[6px]", "after:w-[9px]", "after:h-[9px]"],
|
|
170
179
|
label: "text-sm"
|
|
171
180
|
},
|
|
172
181
|
md: {
|
|
173
|
-
icon: ["w-[17px] h-[17px] mr-[
|
|
182
|
+
icon: ["w-[17px]", "h-[17px]", "mr-[8px]", "after:w-[11px]", "after:h-[11px]"],
|
|
174
183
|
label: "text-md"
|
|
175
184
|
},
|
|
176
185
|
lg: {
|
|
177
|
-
icon: ["w-[20px] h-[20px] mr-[10px] after:w-[
|
|
186
|
+
icon: ["w-[20px]", "h-[20px]", "mr-[10px]", "after:w-[14px]", "after:h-[14px]"],
|
|
178
187
|
label: "text-lg"
|
|
179
188
|
}
|
|
180
189
|
},
|
|
181
190
|
isInvalid: {
|
|
182
191
|
true: {
|
|
183
|
-
icon:
|
|
192
|
+
icon: [
|
|
193
|
+
"after:bg-danger-main",
|
|
194
|
+
"before:border-danger-main",
|
|
195
|
+
"group-has-[:checked]/radio:before:border-danger-main"
|
|
196
|
+
],
|
|
184
197
|
label: "text-danger-main"
|
|
185
198
|
}
|
|
186
199
|
},
|
|
187
200
|
isDisabled: {
|
|
188
201
|
true: {
|
|
189
|
-
base: "opacity-disabled pointer-events-none",
|
|
190
|
-
icon:
|
|
202
|
+
base: ["opacity-disabled", "pointer-events-none"],
|
|
203
|
+
icon: [
|
|
204
|
+
"before:border-neutral-light",
|
|
205
|
+
"before:bg-neutral-soft",
|
|
206
|
+
"after:bg-neutral-light",
|
|
207
|
+
"group-has-[:checked]/radio:before:border-neutral-light"
|
|
208
|
+
],
|
|
191
209
|
label: "text-neutral-light"
|
|
192
210
|
}
|
|
193
211
|
},
|
|
194
212
|
disableAnimation: {
|
|
195
213
|
true: {},
|
|
196
214
|
false: {
|
|
197
|
-
icon: ["group-active:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
|
|
198
|
-
label: "transition-colors motion-reduce:transition-none"
|
|
215
|
+
icon: ["group-active/radio:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
|
|
216
|
+
label: ["transition-colors", "motion-reduce:transition-none"]
|
|
199
217
|
}
|
|
200
218
|
}
|
|
201
219
|
},
|