@fuf-stack/uniform 2.0.0-next.4 → 2.0.0-next.5
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/Checkboxes/index.d.mts +49 -49
- package/dist/Checkboxes/index.mjs +5 -5
- package/dist/Checkboxes/index.mjs.map +1 -1
- package/dist/DatePicker/index.d.mts +59 -59
- package/dist/DatePicker/index.mjs +18 -18
- package/dist/DatePicker/index.mjs.map +1 -1
- package/dist/FieldArray/index.d.mts +6 -6
- package/dist/FieldArray/index.mjs +12 -12
- package/dist/FieldArray/index.mjs.map +1 -1
- package/dist/FieldCard/index.mjs +6 -6
- package/dist/FieldCard/index.mjs.map +1 -1
- package/dist/FieldReset/index.d.mts +1 -1
- package/dist/FieldReset/index.mjs +1 -1
- package/dist/Form/index.d.mts +2 -2
- package/dist/Form/index.mjs +4 -4
- package/dist/Form/index.mjs.map +1 -1
- package/dist/{FormContext-PXkVlBdU.mjs → FormContext-CVq3glVW.mjs} +5 -5
- package/dist/FormContext-CVq3glVW.mjs.map +1 -0
- package/dist/{FormContext-BnNJYZOo.d.mts → FormContext-Dvt3MiKq.d.mts} +3 -3
- package/dist/{FormContext-BnNJYZOo.d.mts.map → FormContext-Dvt3MiKq.d.mts.map} +1 -1
- package/dist/Input/index.d.mts +52 -52
- package/dist/Input/index.mjs +10 -10
- package/dist/Input/index.mjs.map +1 -1
- package/dist/RadioBoxes/index.d.mts +28 -28
- package/dist/RadioBoxes/index.mjs +3 -3
- package/dist/RadioBoxes/index.mjs.map +1 -1
- package/dist/RadioTabs/index.d.mts +21 -21
- package/dist/RadioTabs/index.d.mts.map +1 -1
- package/dist/RadioTabs/index.mjs +5 -5
- package/dist/RadioTabs/index.mjs.map +1 -1
- package/dist/Radios/index.d.mts +14 -14
- package/dist/Radios/index.mjs +2 -2
- package/dist/Select/index.d.mts +48 -48
- package/dist/Select/index.mjs +8 -8
- package/dist/Select/index.mjs.map +1 -1
- package/dist/Slider/index.d.mts +51 -51
- package/dist/Slider/index.mjs +7 -7
- package/dist/Slider/index.mjs.map +1 -1
- package/dist/Switch/index.d.mts +1 -1
- package/dist/Switch/index.mjs +2 -2
- package/dist/{Switch-aBYStBoY.d.mts → Switch-3ujfKWwt.d.mts} +38 -38
- package/dist/{Switch-aBYStBoY.d.mts.map → Switch-3ujfKWwt.d.mts.map} +1 -1
- package/dist/SwitchBox/index.d.mts +35 -35
- package/dist/SwitchBox/index.mjs +2 -2
- package/dist/TextArea/index.d.mts +18 -18
- package/dist/TextArea/index.mjs +7 -7
- package/dist/TextArea/index.mjs.map +1 -1
- package/dist/Time/index.d.mts +37 -37
- package/dist/Time/index.mjs +2 -2
- package/dist/hooks/useClientValidation/index.mjs +1 -1
- package/dist/hooks/useController/index.mjs +1 -1
- package/dist/hooks/useFormContext/index.d.mts +1 -1
- package/dist/hooks/useFormContext/index.mjs +1 -1
- package/dist/hooks/useInputValueDebounce/index.mjs +1 -1
- package/dist/hooks/useWatchFormReset/index.mjs +1 -1
- package/dist/hooks/useWatchUserChange/index.mjs +1 -1
- package/dist/partials/FieldHelper/index.d.mts +2 -2
- package/dist/partials/FieldValidationError/index.d.mts +11 -11
- package/dist/{radioControlVariants-CbtG5U4_.mjs → radioControlVariants-CxA0og5-.mjs} +7 -7
- package/dist/{radioControlVariants-CbtG5U4_.mjs.map → radioControlVariants-CxA0og5-.mjs.map} +1 -1
- package/dist/{switchVariants-0Xa7TQYg.mjs → switchVariants-B8dq8DYP.mjs} +9 -9
- package/dist/{switchVariants-0Xa7TQYg.mjs.map → switchVariants-B8dq8DYP.mjs.map} +1 -1
- package/dist/{timeVariants-Bkt4iwXx.mjs → timeVariants-CIX6R59-.mjs} +6 -6
- package/dist/{timeVariants-Bkt4iwXx.mjs.map → timeVariants-CIX6R59-.mjs.map} +1 -1
- package/dist/{useController-JtIeurpw.mjs → useController-SEAuP3G4.mjs} +6 -6
- package/dist/useController-SEAuP3G4.mjs.map +1 -0
- package/dist/{useFormContext-piqnN2L-.mjs → useFormContext-CQzJhAU4.mjs} +12 -8
- package/dist/useFormContext-CQzJhAU4.mjs.map +1 -0
- package/dist/{useUniformField-TTNPTsVn.mjs → useUniformField-BvPoQyLL.mjs} +4 -4
- package/dist/{useUniformField-TTNPTsVn.mjs.map → useUniformField-BvPoQyLL.mjs.map} +1 -1
- package/package.json +4 -4
- package/dist/FormContext-PXkVlBdU.mjs.map +0 -1
- package/dist/useController-JtIeurpw.mjs.map +0 -1
- package/dist/useFormContext-piqnN2L-.mjs.map +0 -1
|
@@ -20,9 +20,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
20
20
|
class?: never;
|
|
21
21
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
22
22
|
})) | ({
|
|
23
|
-
fullWidth?: boolean | undefined;
|
|
24
23
|
invalid?: boolean | undefined;
|
|
25
24
|
readOnly?: boolean | undefined;
|
|
25
|
+
fullWidth?: boolean | undefined;
|
|
26
26
|
hasContent?: boolean | undefined;
|
|
27
27
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
28
28
|
} & ({
|
|
@@ -51,9 +51,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
51
51
|
class?: never;
|
|
52
52
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
53
53
|
})) | ({
|
|
54
|
-
fullWidth?: boolean | undefined;
|
|
55
54
|
invalid?: boolean | undefined;
|
|
56
55
|
readOnly?: boolean | undefined;
|
|
56
|
+
fullWidth?: boolean | undefined;
|
|
57
57
|
hasContent?: boolean | undefined;
|
|
58
58
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
59
59
|
} & ({
|
|
@@ -82,9 +82,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
82
82
|
class?: never;
|
|
83
83
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
84
84
|
})) | ({
|
|
85
|
-
fullWidth?: boolean | undefined;
|
|
86
85
|
invalid?: boolean | undefined;
|
|
87
86
|
readOnly?: boolean | undefined;
|
|
87
|
+
fullWidth?: boolean | undefined;
|
|
88
88
|
hasContent?: boolean | undefined;
|
|
89
89
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
90
90
|
} & ({
|
|
@@ -113,9 +113,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
113
113
|
class?: never;
|
|
114
114
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
115
115
|
})) | ({
|
|
116
|
-
fullWidth?: boolean | undefined;
|
|
117
116
|
invalid?: boolean | undefined;
|
|
118
117
|
readOnly?: boolean | undefined;
|
|
118
|
+
fullWidth?: boolean | undefined;
|
|
119
119
|
hasContent?: boolean | undefined;
|
|
120
120
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
121
121
|
} & ({
|
|
@@ -145,9 +145,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
145
145
|
class?: never;
|
|
146
146
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
147
147
|
})) | ({
|
|
148
|
-
fullWidth?: boolean | undefined;
|
|
149
148
|
invalid?: boolean | undefined;
|
|
150
149
|
readOnly?: boolean | undefined;
|
|
150
|
+
fullWidth?: boolean | undefined;
|
|
151
151
|
hasContent?: boolean | undefined;
|
|
152
152
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
153
153
|
} & ({
|
|
@@ -176,9 +176,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
176
176
|
class?: never;
|
|
177
177
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
178
178
|
})) | ({
|
|
179
|
-
fullWidth?: boolean | undefined;
|
|
180
179
|
invalid?: boolean | undefined;
|
|
181
180
|
readOnly?: boolean | undefined;
|
|
181
|
+
fullWidth?: boolean | undefined;
|
|
182
182
|
hasContent?: boolean | undefined;
|
|
183
183
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
184
184
|
} & ({
|
|
@@ -207,9 +207,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
207
207
|
class?: never;
|
|
208
208
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
209
209
|
})) | ({
|
|
210
|
-
fullWidth?: boolean | undefined;
|
|
211
210
|
invalid?: boolean | undefined;
|
|
212
211
|
readOnly?: boolean | undefined;
|
|
212
|
+
fullWidth?: boolean | undefined;
|
|
213
213
|
hasContent?: boolean | undefined;
|
|
214
214
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
215
215
|
} & ({
|
|
@@ -238,9 +238,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
238
238
|
class?: never;
|
|
239
239
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
240
240
|
})) | ({
|
|
241
|
-
fullWidth?: boolean | undefined;
|
|
242
241
|
invalid?: boolean | undefined;
|
|
243
242
|
readOnly?: boolean | undefined;
|
|
243
|
+
fullWidth?: boolean | undefined;
|
|
244
244
|
hasContent?: boolean | undefined;
|
|
245
245
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
246
246
|
} & ({
|
|
@@ -269,9 +269,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
269
269
|
class?: never;
|
|
270
270
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
271
271
|
})) | ({
|
|
272
|
-
fullWidth?: boolean | undefined;
|
|
273
272
|
invalid?: boolean | undefined;
|
|
274
273
|
readOnly?: boolean | undefined;
|
|
274
|
+
fullWidth?: boolean | undefined;
|
|
275
275
|
hasContent?: boolean | undefined;
|
|
276
276
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
277
277
|
} & ({
|
|
@@ -300,9 +300,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
300
300
|
class?: never;
|
|
301
301
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
302
302
|
})) | ({
|
|
303
|
-
fullWidth?: boolean | undefined;
|
|
304
303
|
invalid?: boolean | undefined;
|
|
305
304
|
readOnly?: boolean | undefined;
|
|
305
|
+
fullWidth?: boolean | undefined;
|
|
306
306
|
hasContent?: boolean | undefined;
|
|
307
307
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
308
308
|
} & ({
|
|
@@ -331,9 +331,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
331
331
|
class?: never;
|
|
332
332
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
333
333
|
})) | ({
|
|
334
|
-
fullWidth?: boolean | undefined;
|
|
335
334
|
invalid?: boolean | undefined;
|
|
336
335
|
readOnly?: boolean | undefined;
|
|
336
|
+
fullWidth?: boolean | undefined;
|
|
337
337
|
hasContent?: boolean | undefined;
|
|
338
338
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
339
339
|
} & ({
|
|
@@ -362,9 +362,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
362
362
|
class?: never;
|
|
363
363
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
364
364
|
})) | ({
|
|
365
|
-
fullWidth?: boolean | undefined;
|
|
366
365
|
invalid?: boolean | undefined;
|
|
367
366
|
readOnly?: boolean | undefined;
|
|
367
|
+
fullWidth?: boolean | undefined;
|
|
368
368
|
hasContent?: boolean | undefined;
|
|
369
369
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
370
370
|
} & ({
|
|
@@ -393,9 +393,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
393
393
|
class?: never;
|
|
394
394
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
395
395
|
})) | ({
|
|
396
|
-
fullWidth?: boolean | undefined;
|
|
397
396
|
invalid?: boolean | undefined;
|
|
398
397
|
readOnly?: boolean | undefined;
|
|
398
|
+
fullWidth?: boolean | undefined;
|
|
399
399
|
hasContent?: boolean | undefined;
|
|
400
400
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
401
401
|
} & ({
|
|
@@ -424,9 +424,9 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
424
424
|
class?: never;
|
|
425
425
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
426
426
|
})) | ({
|
|
427
|
-
fullWidth?: boolean | undefined;
|
|
428
427
|
invalid?: boolean | undefined;
|
|
429
428
|
readOnly?: boolean | undefined;
|
|
429
|
+
fullWidth?: boolean | undefined;
|
|
430
430
|
hasContent?: boolean | undefined;
|
|
431
431
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
432
432
|
} & ({
|
|
@@ -935,7 +935,7 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
935
935
|
class?: never;
|
|
936
936
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
937
937
|
}))))[];
|
|
938
|
-
variantKeys:
|
|
938
|
+
variantKeys: (string | number)[] | never[];
|
|
939
939
|
};
|
|
940
940
|
base: undefined;
|
|
941
941
|
slots: {
|
|
@@ -999,23 +999,23 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
999
999
|
};
|
|
1000
1000
|
};
|
|
1001
1001
|
defaultVariants: {
|
|
1002
|
-
fullWidth?: boolean | undefined;
|
|
1003
1002
|
invalid?: boolean | undefined;
|
|
1004
1003
|
readOnly?: boolean | undefined;
|
|
1004
|
+
fullWidth?: boolean | undefined;
|
|
1005
1005
|
hasContent?: boolean | undefined;
|
|
1006
1006
|
appearance?: "bordered" | "light" | "solid" | "underlined" | undefined;
|
|
1007
1007
|
};
|
|
1008
1008
|
compoundVariants: ({
|
|
1009
|
-
fullWidth?: boolean | boolean[] | undefined;
|
|
1010
1009
|
invalid?: boolean | boolean[] | undefined;
|
|
1011
1010
|
readOnly?: boolean | boolean[] | undefined;
|
|
1011
|
+
fullWidth?: boolean | boolean[] | undefined;
|
|
1012
1012
|
hasContent?: boolean | boolean[] | undefined;
|
|
1013
1013
|
appearance?: "bordered" | "light" | "solid" | "underlined" | ("bordered" | "light" | "solid" | "underlined")[] | undefined;
|
|
1014
1014
|
} & ({
|
|
1015
1015
|
class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
1016
1016
|
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1017
|
-
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1018
1017
|
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1018
|
+
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1019
1019
|
tabWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1020
1020
|
cursor?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1021
1021
|
tab?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
@@ -1029,8 +1029,8 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
1029
1029
|
class?: never;
|
|
1030
1030
|
className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
1031
1031
|
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1032
|
-
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1033
1032
|
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1033
|
+
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1034
1034
|
tabWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1035
1035
|
cursor?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1036
1036
|
tab?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
@@ -1041,7 +1041,7 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
1041
1041
|
};
|
|
1042
1042
|
}))[];
|
|
1043
1043
|
compoundSlots: ({
|
|
1044
|
-
slots: ("base" | "
|
|
1044
|
+
slots: ("base" | "label" | "wrapper" | "tabWrapper" | "cursor" | "tab" | "tabBase" | "tabContent" | "tabList" | "tabPanel")[];
|
|
1045
1045
|
} & ({
|
|
1046
1046
|
hasContent?: boolean | boolean[] | undefined;
|
|
1047
1047
|
fullWidth?: boolean | boolean[] | undefined;
|
|
@@ -1055,7 +1055,7 @@ export declare const radioTabsVariants: ((props?: ({
|
|
|
1055
1055
|
class?: never;
|
|
1056
1056
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
1057
1057
|
})))[];
|
|
1058
|
-
variantKeys: ("
|
|
1058
|
+
variantKeys: ("invalid" | "readOnly" | "fullWidth" | "hasContent" | "appearance")[];
|
|
1059
1059
|
};
|
|
1060
1060
|
type VariantProps = TVProps<typeof radioTabsVariants>;
|
|
1061
1061
|
type ClassName = TVClassName<typeof radioTabsVariants>;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+GlB,eAAe,eAAe;KAE9B,YAAY,mBAAmB;UC/G1B;;EAEf,UAAU;;EAEV;;EAEA,OAAO;;EAEP,QAAQ;;EAER;;EAEA;;UAGe,uBAAuB,KACtC;;EAIA;;EAEA,YAAY;;EAEZ,cAAc;;EAEd;;EAEA;;EAEA;;EAEA,QAAQ;;EAER;;EAEA,SAAS;;EAET;;EAEA;;EAEA,UAAU;;;cAIN,cAAa,WAAA,WAAA,QAAA,MAAA,SAAA,YAAA,qBAQhB,mBAAiB"}
|
package/dist/RadioTabs/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useUniformField } from "../useUniformField-
|
|
1
|
+
import { t as useUniformField } from "../useUniformField-BvPoQyLL.mjs";
|
|
2
2
|
import { createOptionValueConverter } from "../helpers/index.mjs";
|
|
3
3
|
import { t as getFieldControlProps } from "../fieldProps-DWfz2jSO.mjs";
|
|
4
4
|
import { t as FieldLayout } from "../FieldLayout-C9MEBZAC.mjs";
|
|
@@ -36,8 +36,8 @@ const radioTabsVariants = tv({
|
|
|
36
36
|
/** Selectable tab button */
|
|
37
37
|
tab: [
|
|
38
38
|
"",
|
|
39
|
-
"
|
|
40
|
-
"data-[
|
|
39
|
+
"group relative z-0 flex h-8 w-full cursor-pointer items-center justify-center rounded-small px-3 py-1 text-small outline-transparent transition-opacity outline-solid",
|
|
40
|
+
"data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-30 data-[focus-visible=true]:z-10",
|
|
41
41
|
"data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-focus",
|
|
42
42
|
"motion-reduce:transition-none"
|
|
43
43
|
],
|
|
@@ -57,7 +57,7 @@ const radioTabsVariants = tv({
|
|
|
57
57
|
"[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
|
|
58
58
|
],
|
|
59
59
|
/** Content associated with the selected tab */
|
|
60
|
-
tabPanel: ["p-3", "
|
|
60
|
+
tabPanel: ["p-3", "p-3 outline-transparent outline-solid data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-focus"],
|
|
61
61
|
/** Container grouping the tab list and active panel */
|
|
62
62
|
tabWrapper: "",
|
|
63
63
|
/** Container around the tab engine */
|
|
@@ -73,7 +73,7 @@ const radioTabsVariants = tv({
|
|
|
73
73
|
invalid: { true: { tabWrapper: "rounded-medium border-2 !border-danger" } },
|
|
74
74
|
readOnly: { true: { base: "cursor-not-allowed opacity-disabled **:cursor-not-allowed" } },
|
|
75
75
|
appearance: {
|
|
76
|
-
bordered: { tabList: "
|
|
76
|
+
bordered: { tabList: "border-2 border-default-200 bg-transparent shadow-xs dark:bg-transparent" },
|
|
77
77
|
light: { tabList: "bg-transparent dark:bg-transparent" },
|
|
78
78
|
solid: {},
|
|
79
79
|
underlined: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["divProps"],"sources":["../../src/RadioTabs/radioTabsVariants.ts","../../src/RadioTabs/subcomponents/RadioTab.tsx","../../src/RadioTabs/subcomponents/RadioTabsList.tsx","../../src/RadioTabs/subcomponents/RadioTabsControl.tsx","../../src/RadioTabs/RadioTabs.tsx","../../src/RadioTabs/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\nimport { fieldHelperVariants } from '../partials/FieldHelper/fieldHelperVariants';\nimport { fieldLabelVariants } from '../partials/FieldLabel/fieldLabelVariants';\n\nexport const radioTabsVariants = tv({\n extend: fieldHelperVariants,\n slots: {\n /** Container grouping the label, tabs and hints */\n base: [\n // Needs group for group-data condition.\n 'group',\n // Match shared field wrapper layout.\n 'flex w-full flex-col',\n 'relative',\n ],\n /** Highlight behind the selected tab */\n cursor: [\n '',\n // selection indicator surface\n 'pointer-events-none absolute z-0 rounded-small bg-background shadow-small',\n // animate indicator position and size\n 'transition-[left,top,width,height] duration-250 ease-out motion-reduce:transition-none',\n // dark theme surface\n 'dark:bg-default',\n ],\n /** Label above the selection */\n label: [\n fieldLabelVariants.base,\n 'inline-flex',\n 'relative',\n ],\n /** Selectable tab button */\n tab: [\n '',\n // tab dimensions and appearance\n 'outline-solid group relative z-0 flex h-8 w-full cursor-pointer items-center justify-center rounded-small px-3 py-1 outline-transparent transition-opacity text-small',\n // focus stacking and disabled state\n 'data-[focus-visible=true]:z-10 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-30',\n // keyboard focus outline\n 'data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-focus',\n // reduced motion\n 'motion-reduce:transition-none',\n ],\n /** Container around the tab list */\n tabBase: ['', 'inline-flex w-full'],\n /** Text and icons inside a tab */\n tabContent: [\n '',\n // tab text and color transition\n 'relative z-10 whitespace-nowrap text-foreground transition-colors',\n // selected text\n 'group-data-[selected=true]:text-default-foreground',\n // reduced motion\n 'motion-reduce:transition-none',\n ],\n /** Row of selectable tabs */\n tabList: [\n '',\n // tab row layout and surface\n 'relative flex h-fit w-full flex-nowrap items-center gap-2 overflow-x-auto rounded-medium bg-default-100 p-1',\n // hide the horizontal scrollbar\n '[scrollbar-width:none] [&::-webkit-scrollbar]:hidden',\n ],\n /** Content associated with the selected tab */\n tabPanel: [\n 'p-3',\n 'outline-solid p-3 outline-transparent data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-focus',\n ],\n /** Container grouping the tab list and active panel */\n tabWrapper: '',\n /** Container around the tab engine */\n wrapper: '',\n },\n variants: {\n hasContent: {\n true: {\n base: '',\n tabBase: 'p-1',\n tabWrapper: [\n // border style\n 'rounded-medium border border-divider',\n // full width\n 'w-full',\n ],\n },\n },\n fullWidth: {\n true: {\n tabWrapper: 'w-full',\n },\n },\n invalid: {\n true: {\n tabWrapper: 'rounded-medium border-2 !border-danger',\n },\n },\n readOnly: {\n true: {\n // inner controls set their own cursors, override every descendant\n base: 'cursor-not-allowed opacity-disabled **:cursor-not-allowed',\n },\n },\n appearance: {\n bordered: {\n tabList:\n 'shadow-xs border-2 border-default-200 bg-transparent dark:bg-transparent',\n },\n light: { tabList: 'bg-transparent dark:bg-transparent' },\n solid: {},\n underlined: {\n cursor:\n 'rounded-none bg-foreground shadow-[0_1px_0px_0_rgba(0,0,0,0.05)] dark:bg-foreground',\n tab: 'rounded-none',\n tabList: 'rounded-none bg-transparent dark:bg-transparent',\n },\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof radioTabsVariants>;\n\nexport type ClassName = TVClassName<typeof radioTabsVariants>;\n\nexport type RadioTabsClassNames = Record<\n keyof ReturnType<typeof radioTabsVariants>,\n string\n>;\n\nexport default radioTabsVariants;\n","import type { ComponentPropsWithRef } from 'react';\nimport type { RadioTabOption } from '../RadioTabs';\nimport type { RadioTabsClassNames } from '../radioTabsVariants';\n\nimport { Tab } from 'react-aria-components';\n\ninterface RadioTabProps {\n /** CSS class name */\n className: RadioTabsClassNames;\n /** Supporting description and validation message IDs */\n describedBy: string | undefined;\n /** Disables the whole field */\n disabled: boolean | undefined;\n /** Option label, value and optional panel */\n option: RadioTabOption;\n /** HTML data-testid attribute for e2e tests */\n testId: string;\n}\n\n/**\n * Selectable tab with option labeling, panel association and interaction styles\n *\n * @see https://react-aria.adobe.com/Tabs\n */\nconst RadioTab = ({\n className: classNames,\n describedBy,\n disabled,\n option,\n testId,\n}: RadioTabProps) => {\n return (\n <Tab\n aria-describedby={describedBy}\n aria-label={\n option.label == null && typeof option.value === 'boolean'\n ? String(option.value)\n : undefined\n }\n className={classNames.tab}\n data-key={String(option.value)}\n data-slot=\"tab\"\n data-testid={testId}\n id={String(option.value)}\n isDisabled={!!disabled || !!option.disabled}\n render={(props, state) => {\n // options expose no href, React Aria always uses div attributes here\n const divProps = props as ComponentPropsWithRef<'div'>;\n\n return (\n <div\n {...divProps}\n aria-controls={\n option.content != null ? props['aria-controls'] : undefined\n }\n data-focus={state.isFocused || undefined}\n data-hover={state.isHovered || undefined}\n data-hover-unselected={\n (state.isHovered && !state.isSelected) || undefined\n }\n >\n {props.children}\n </div>\n );\n }}\n >\n <span className={classNames.tabContent} data-slot=\"tabContent\">\n {option.label ?? option.value}\n </span>\n </Tab>\n );\n};\n\nexport default RadioTab;\n","import type { Key } from 'react';\nimport type { RadioTabsProps } from '../RadioTabs';\nimport type { RadioTabsClassNames } from '../radioTabsVariants';\n\nimport { useLayoutEffect, useState } from 'react';\nimport { TabList, TabPanel, Tabs } from 'react-aria-components';\n\nimport RadioTab from './RadioTab';\n\ninterface RadioTabsListProps {\n /** CSS class name */\n className: RadioTabsClassNames;\n /** Supporting description and validation message IDs */\n describedBy: string | undefined;\n /** Disables the field */\n disabled: boolean | undefined;\n /** Field label */\n label: string;\n /** Callback with the selected option's string value */\n onChange: (value: string) => void;\n /** Available options */\n options: RadioTabsProps['options'];\n /** Selected option's string value */\n selectedKey: string;\n /** HTML data-testid attribute for e2e tests */\n testId: (value: string | number | boolean, explicit?: string) => string;\n /** Tab appearance */\n variant: RadioTabsProps['variant'];\n}\n\n/**\n * Tab list, selection indicator and panels with React Aria keyboard behavior\n *\n * @see https://react-aria.adobe.com/Tabs\n */\nconst RadioTabsList = ({\n className: classNames,\n describedBy,\n disabled,\n label,\n onChange,\n options,\n selectedKey,\n testId,\n variant,\n}: RadioTabsListProps) => {\n const [list, setList] = useState<HTMLDivElement | null>(null);\n const [cursor, setCursor] = useState<{\n left: number;\n top: number;\n width: number;\n height: number;\n } | null>(null);\n\n // keep the selection indicator aligned after layout changes\n useLayoutEffect(() => {\n if (!list) {\n return undefined;\n }\n\n const update = () => {\n const active = list.querySelector<HTMLElement>(\n '[role=\"tab\"][aria-selected=\"true\"]',\n );\n\n if (!active) {\n setCursor(null);\n\n return;\n }\n\n setCursor({\n left:\n active.offsetLeft +\n (variant === 'underlined' ? active.offsetWidth * 0.1 : 0),\n top:\n variant === 'underlined'\n ? active.offsetTop + active.offsetHeight - 2\n : active.offsetTop,\n width:\n variant === 'underlined'\n ? active.offsetWidth * 0.8\n : active.offsetWidth,\n height: variant === 'underlined' ? 2 : active.offsetHeight,\n });\n };\n\n update();\n\n const observer = new ResizeObserver(update);\n observer.observe(list);\n list.querySelectorAll('[role=\"tab\"]').forEach((tab) => {\n observer.observe(tab);\n });\n\n return () => {\n observer.disconnect();\n };\n }, [list, selectedKey, variant, options]);\n\n // forward tab keys as option string values\n const handleSelectionChange = (key: Key | null) => {\n if (key != null) {\n onChange(String(key));\n }\n };\n\n return (\n <Tabs\n className={classNames.tabWrapper}\n data-placement=\"top\"\n data-slot=\"tabWrapper\"\n data-vertical=\"horizontal\"\n disabledKeys={options\n .filter((option) => {\n return !!disabled || !!option.disabled;\n })\n .map((option) => {\n return String(option.value);\n })}\n onSelectionChange={handleSelectionChange}\n selectedKey={selectedKey}\n >\n <div className={classNames.tabBase} data-slot=\"base\">\n <TabList\n ref={setList}\n aria-describedby={describedBy}\n aria-label={label}\n className={classNames.tabList}\n data-slot=\"tabList\"\n render={(props) => {\n return (\n <div {...props}>\n {cursor ? (\n <span\n aria-hidden\n className={classNames.cursor}\n data-animated=\"true\"\n data-initialized=\"true\"\n data-slot=\"cursor\"\n style={cursor}\n />\n ) : null}\n {props.children}\n </div>\n );\n }}\n >\n {options.map((option) => {\n return (\n <RadioTab\n key={String(option.value)}\n className={classNames}\n describedBy={describedBy}\n disabled={disabled}\n option={option}\n testId={testId(option.value, option.testId)}\n />\n );\n })}\n </TabList>\n </div>\n {options.map((option) => {\n return option.content != null ? (\n <TabPanel\n key={String(option.value)}\n className={classNames.tabPanel}\n data-slot=\"panel\"\n id={String(option.value)}\n >\n {option.content}\n </TabPanel>\n ) : null;\n })}\n </Tabs>\n );\n};\n\nexport default RadioTabsList;\n","import type { UniformField } from '../../hooks/useUniformField/types';\nimport type { RadioTabsProps } from '../RadioTabs';\n\nimport { useFocusWithin } from 'react-aria/useFocusWithin';\n\nimport { slugify } from '@fuf-stack/pixel-utils';\nimport { useStyling } from '@fuf-stack/pixels/StylingProvider';\n\nimport { createOptionValueConverter } from '../../helpers';\nimport { getFieldControlProps } from '../../helpers/fieldProps/fieldProps';\nimport FieldLayout from '../../partials/FieldLayout/FieldLayout';\nimport { radioTabsVariants } from '../radioTabsVariants';\nimport RadioTabsList from './RadioTabsList';\n\ninterface RadioTabsControlProps extends Pick<\n RadioTabsProps,\n 'className' | 'fullWidth' | 'inline' | 'options' | 'variant'\n> {\n /** Bound field values, interactions and metadata */\n field: UniformField<unknown, string | number | boolean>;\n}\n\n/**\n * Tab selection presentation with group messages and keyboard focus routing\n *\n * @see https://react-aria.adobe.com/Tabs\n */\nconst RadioTabsControl = ({\n field,\n className,\n fullWidth,\n inline,\n options,\n variant,\n}: RadioTabsControlProps) => {\n const {\n ariaLabel,\n description,\n disabled,\n errorMessage,\n ids,\n ref: inputRef,\n invalid,\n label,\n onBlur,\n onChange: onValueChange,\n readOnly,\n required,\n testId,\n value,\n } = field;\n\n // associate the editable control with its label and messages\n const controlProps = getFieldControlProps(field);\n\n const styling = useStyling();\n const { focusWithinProps } = useFocusWithin({ onBlurWithin: onBlur });\n\n // check if any option has content\n // eslint-disable-next-line @typescript-eslint/no-misused-promises, @typescript-eslint/promise-function-async\n const hasContent = options.some((option) => {\n return option.content;\n });\n\n const { convertToOriginalType } = createOptionValueConverter(options);\n\n // classNames from slots\n const variants = styling.resolve(radioTabsVariants, {\n fullWidth,\n hasContent,\n invalid,\n readOnly,\n appearance: variant ?? 'solid',\n });\n const classNames = styling.variantsToClassNames(variants, className, 'base');\n\n // required-selection text supplies the group announcement\n const { 'aria-required': _ariaRequired, ...associations } = controlProps;\n const describedBy =\n [\n associations['aria-describedby'],\n required ? `${ids.control}-required` : undefined,\n ]\n .filter(Boolean)\n .join(' ') || undefined;\n\n // restore the selected option's original value type, read-only tabs keep\n // their selection since Tabs have no read-only mode\n const handleChange = (nextValue: string) => {\n if (!readOnly) {\n onValueChange(convertToOriginalType(nextValue));\n }\n };\n\n // route form focus to the selected enabled tab, otherwise the first enabled tab\n const handleControlRef = (node: HTMLDivElement | null) => {\n inputRef(\n node\n ? {\n focus: () => {\n const tab =\n node.querySelector<HTMLElement>(\n '[role=\"tab\"][aria-selected=\"true\"]:not([disabled]):not([aria-disabled=\"true\"])',\n ) ??\n node.querySelector<HTMLElement>(\n '[role=\"tab\"]:not([disabled]):not([aria-disabled=\"true\"])',\n );\n tab?.focus();\n },\n }\n : null,\n );\n };\n\n // keep option test IDs stable when values contain dots\n const getOptionTestId = (\n optionValue: string | number | boolean,\n explicit?: string,\n ) => {\n return slugify(`${testId}_option_${explicit ?? optionValue}`, {\n replaceDots: true,\n });\n };\n\n return (\n <FieldLayout\n baseProps={{\n ...associations,\n ...focusWithinProps,\n 'aria-describedby': describedBy,\n 'data-component': 'radio-tabs',\n 'data-invalid': invalid,\n 'data-readonly': readOnly || undefined,\n 'data-required': required,\n 'data-testid': testId,\n ref: handleControlRef,\n role: 'group',\n }}\n className={classNames}\n description={description}\n errorMessage={errorMessage}\n ids={ids}\n invalid={invalid}\n label={label}\n labelAs=\"div\"\n required={required}\n >\n {required ? (\n <span className=\"sr-only\" id={`${ids.control}-required`}>\n Required selection.\n </span>\n ) : null}\n\n {/* selectable tabs */}\n <div\n className={styling.cn(\n 'flex flex-col flex-wrap gap-2',\n inline ? 'flex-row' : undefined,\n classNames.wrapper,\n )}\n data-slot=\"wrapper\"\n >\n <RadioTabsList\n className={classNames}\n describedBy={describedBy}\n disabled={disabled}\n label={ariaLabel}\n onChange={handleChange}\n options={options}\n selectedKey={value != null ? String(value) : ''}\n testId={getOptionTestId}\n variant={variant}\n />\n </div>\n </FieldLayout>\n );\n};\n\nexport default RadioTabsControl;\n","import type { TabsProps } from '@fuf-stack/pixels';\nimport type { ReactElement, ReactNode } from 'react';\nimport type { ClassName, VariantProps } from './radioTabsVariants';\n\nimport useUniformField from '../hooks/useUniformField/useUniformField';\nimport RadioTabsControl from './subcomponents/RadioTabsControl';\n\nexport { default as radioTabsVariants } from './radioTabsVariants';\n\nexport interface RadioTabOption {\n /** Optional content inside of the tab */\n content?: ReactNode;\n /** Disables the field */\n disabled?: boolean;\n /** option icon */\n icon?: ReactNode;\n /** Field label */\n label?: ReactNode;\n /** HTML data-testid attribute for e2e tests */\n testId?: string;\n /** option value */\n value: string | number | boolean;\n}\n\nexport interface RadioTabsProps extends Omit<\n VariantProps,\n 'appearance' | 'hasContent' | 'invalid'\n> {\n /** Custom accessible name */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** Help text associated with the field */\n description?: ReactNode;\n /** Disables the field */\n disabled?: boolean;\n /** Whether tabs should take up full container width */\n fullWidth?: boolean;\n /** Arranges options horizontally */\n inline?: boolean;\n /** Field label */\n label?: ReactNode;\n /** Field name */\n name: string;\n /** Available options */\n options: RadioTabOption[];\n /** Prevents changes while keeping the selection in validation and submission */\n readOnly?: boolean;\n /** HTML data-testid attribute for e2e tests */\n testId?: string;\n /** How the RadioTabs should look like. */\n variant?: TabsProps['variant'];\n}\n\n/** Form selection field displayed as tabs with optional panels */\nconst RadioTabs = ({\n className = undefined,\n fullWidth = false,\n inline = false,\n name,\n options,\n variant = undefined,\n ...uniformFieldProps\n}: RadioTabsProps): ReactElement => {\n const { field } = useUniformField({ ...uniformFieldProps, name });\n\n return (\n <RadioTabsControl\n className={className}\n field={field}\n fullWidth={fullWidth}\n inline={inline}\n options={options}\n variant={variant}\n />\n );\n};\n\nexport default RadioTabs;\n","import RadioTabs from './RadioTabs';\n\nexport type { RadioTabsProps, RadioTabOption } from './RadioTabs';\n\nexport { radioTabsVariants } from './RadioTabs';\n\nexport default RadioTabs;\n"],"mappings":";;;;;;;;;;;;;AAOA,MAAa,oBAAoB,GAAG;CAClC,QAAQ;CACR,OAAO;;EAEL,MAAM;GAEJ;GAEA;GACA;EACF;;EAEA,QAAQ;GACN;GAEA;GAEA;GAEA;EACF;;EAEA,OAAO;GACL,mBAAmB;GACnB;GACA;EACF;;EAEA,KAAK;GACH;GAEA;GAEA;GAEA;GAEA;EACF;;EAEA,SAAS,CAAC,IAAI,oBAAoB;;EAElC,YAAY;GACV;GAEA;GAEA;GAEA;EACF;;EAEA,SAAS;GACP;GAEA;GAEA;EACF;;EAEA,UAAU,CACR,OACA,8JACF;;EAEA,YAAY;;EAEZ,SAAS;CACX;CACA,UAAU;EACR,YAAY,EACV,MAAM;GACJ,MAAM;GACN,SAAS;GACT,YAAY,CAEV,wCAEA,QACF;EACF,EACF;EACA,WAAW,EACT,MAAM,EACJ,YAAY,SACd,EACF;EACA,SAAS,EACP,MAAM,EACJ,YAAY,yCACd,EACF;EACA,UAAU,EACR,MAAM,EAEJ,MAAM,4DACR,EACF;EACA,YAAY;GACV,UAAU,EACR,SACE,2EACJ;GACA,OAAO,EAAE,SAAS,qCAAqC;GACvD,OAAO,CAAC;GACR,YAAY;IACV,QACE;IACF,KAAK;IACL,SAAS;GACX;EACF;CACF;AACF,CAAC;;;;;;;AChGD,MAAM,YAAY,EAChB,WAAW,YACX,aACA,UACA,QACA,aACmB;CACnB,OACE,oBAAC,KAAD;EACE,oBAAkB;EAClB,cACE,OAAO,SAAS,QAAQ,OAAO,OAAO,UAAU,YAC5C,OAAO,OAAO,KAAK,IACnB,KAAA;EAEN,WAAW,WAAW;EACtB,YAAU,OAAO,OAAO,KAAK;EAC7B,aAAU;EACV,eAAa;EACb,IAAI,OAAO,OAAO,KAAK;EACvB,YAAY,CAAC,CAAC,YAAY,CA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AQ,GACjB,iCACA,SAAS,aAAa,KAAA,GACtB,WAAW,OACb;GACA,aAAU;GAEV,UAAA,oBAAC,eAAD;IACE,WAAW;IACE;IACH;IACV,OAAO;IACP,UAAU;IACD;IACT,aAAa,SAAS,OAAO,OAAO,KAAK,IAAI;IAC7C,QAAQ;IACC;GACV,CAAA;EACE,CAAA,CACM;;AAEjB;;;ACzHA,MAAM,aAAa,EACjB,YAAY,KAAA,GACZ,YAAY,OACZ,SAAS,OACT,MACA,SACA,UAAU,KAAA,GACV,GAAG,wBAC+B;CAClC,MAAM,EAAE,UAAU,gBAAgB;EAAE,GAAG;EAAmB;CAAK,CAAC;CAEhE,OACE,oBAAC,kBAAD;EACa;EACJ;EACI;EACH;EACC;EACA;CACV,CAAA;AAEL;;ACtEA,IAAA,oBAAe"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["divProps"],"sources":["../../src/RadioTabs/radioTabsVariants.ts","../../src/RadioTabs/subcomponents/RadioTab.tsx","../../src/RadioTabs/subcomponents/RadioTabsList.tsx","../../src/RadioTabs/subcomponents/RadioTabsControl.tsx","../../src/RadioTabs/RadioTabs.tsx","../../src/RadioTabs/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\nimport { fieldHelperVariants } from '../partials/FieldHelper/fieldHelperVariants';\nimport { fieldLabelVariants } from '../partials/FieldLabel/fieldLabelVariants';\n\nexport const radioTabsVariants = tv({\n extend: fieldHelperVariants,\n slots: {\n /** Container grouping the label, tabs and hints */\n base: [\n // Needs group for group-data condition.\n 'group',\n // Match shared field wrapper layout.\n 'flex w-full flex-col',\n 'relative',\n ],\n /** Highlight behind the selected tab */\n cursor: [\n '',\n // selection indicator surface\n 'pointer-events-none absolute z-0 rounded-small bg-background shadow-small',\n // animate indicator position and size\n 'transition-[left,top,width,height] duration-250 ease-out motion-reduce:transition-none',\n // dark theme surface\n 'dark:bg-default',\n ],\n /** Label above the selection */\n label: [fieldLabelVariants.base, 'inline-flex', 'relative'],\n /** Selectable tab button */\n tab: [\n '',\n // tab dimensions and appearance\n 'group relative z-0 flex h-8 w-full cursor-pointer items-center justify-center rounded-small px-3 py-1 text-small outline-transparent transition-opacity outline-solid',\n // focus stacking and disabled state\n 'data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-30 data-[focus-visible=true]:z-10',\n // keyboard focus outline\n 'data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-focus',\n // reduced motion\n 'motion-reduce:transition-none',\n ],\n /** Container around the tab list */\n tabBase: ['', 'inline-flex w-full'],\n /** Text and icons inside a tab */\n tabContent: [\n '',\n // tab text and color transition\n 'relative z-10 whitespace-nowrap text-foreground transition-colors',\n // selected text\n 'group-data-[selected=true]:text-default-foreground',\n // reduced motion\n 'motion-reduce:transition-none',\n ],\n /** Row of selectable tabs */\n tabList: [\n '',\n // tab row layout and surface\n 'relative flex h-fit w-full flex-nowrap items-center gap-2 overflow-x-auto rounded-medium bg-default-100 p-1',\n // hide the horizontal scrollbar\n '[scrollbar-width:none] [&::-webkit-scrollbar]:hidden',\n ],\n /** Content associated with the selected tab */\n tabPanel: [\n 'p-3',\n 'p-3 outline-transparent outline-solid data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-focus',\n ],\n /** Container grouping the tab list and active panel */\n tabWrapper: '',\n /** Container around the tab engine */\n wrapper: '',\n },\n variants: {\n hasContent: {\n true: {\n base: '',\n tabBase: 'p-1',\n tabWrapper: [\n // border style\n 'rounded-medium border border-divider',\n // full width\n 'w-full',\n ],\n },\n },\n fullWidth: {\n true: {\n tabWrapper: 'w-full',\n },\n },\n invalid: {\n true: {\n tabWrapper: 'rounded-medium border-2 !border-danger',\n },\n },\n readOnly: {\n true: {\n // inner controls set their own cursors, override every descendant\n base: 'cursor-not-allowed opacity-disabled **:cursor-not-allowed',\n },\n },\n appearance: {\n bordered: {\n tabList:\n 'border-2 border-default-200 bg-transparent shadow-xs dark:bg-transparent',\n },\n light: { tabList: 'bg-transparent dark:bg-transparent' },\n solid: {},\n underlined: {\n cursor:\n 'rounded-none bg-foreground shadow-[0_1px_0px_0_rgba(0,0,0,0.05)] dark:bg-foreground',\n tab: 'rounded-none',\n tabList: 'rounded-none bg-transparent dark:bg-transparent',\n },\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof radioTabsVariants>;\n\nexport type ClassName = TVClassName<typeof radioTabsVariants>;\n\nexport type RadioTabsClassNames = Record<\n keyof ReturnType<typeof radioTabsVariants>,\n string\n>;\n\nexport default radioTabsVariants;\n","import type { ComponentPropsWithRef } from 'react';\nimport type { RadioTabOption } from '../RadioTabs';\nimport type { RadioTabsClassNames } from '../radioTabsVariants';\n\nimport { Tab } from 'react-aria-components';\n\ninterface RadioTabProps {\n /** CSS class name */\n className: RadioTabsClassNames;\n /** Supporting description and validation message IDs */\n describedBy: string | undefined;\n /** Disables the whole field */\n disabled: boolean | undefined;\n /** Option label, value and optional panel */\n option: RadioTabOption;\n /** HTML data-testid attribute for e2e tests */\n testId: string;\n}\n\n/**\n * Selectable tab with option labeling, panel association and interaction styles\n *\n * @see https://react-aria.adobe.com/Tabs\n */\nconst RadioTab = ({\n className: classNames,\n describedBy,\n disabled,\n option,\n testId,\n}: RadioTabProps) => {\n return (\n <Tab\n aria-describedby={describedBy}\n aria-label={\n option.label == null && typeof option.value === 'boolean'\n ? String(option.value)\n : undefined\n }\n className={classNames.tab}\n data-key={String(option.value)}\n data-slot=\"tab\"\n data-testid={testId}\n id={String(option.value)}\n isDisabled={!!disabled || !!option.disabled}\n render={(props, state) => {\n // options expose no href, React Aria always uses div attributes here\n const divProps = props as ComponentPropsWithRef<'div'>;\n\n return (\n <div\n {...divProps}\n aria-controls={\n option.content != null ? props['aria-controls'] : undefined\n }\n data-focus={state.isFocused || undefined}\n data-hover={state.isHovered || undefined}\n data-hover-unselected={\n (state.isHovered && !state.isSelected) || undefined\n }\n >\n {props.children}\n </div>\n );\n }}\n >\n <span className={classNames.tabContent} data-slot=\"tabContent\">\n {option.label ?? option.value}\n </span>\n </Tab>\n );\n};\n\nexport default RadioTab;\n","import type { Key } from 'react';\nimport type { RadioTabsProps } from '../RadioTabs';\nimport type { RadioTabsClassNames } from '../radioTabsVariants';\n\nimport { useLayoutEffect, useState } from 'react';\nimport { TabList, TabPanel, Tabs } from 'react-aria-components';\n\nimport RadioTab from './RadioTab';\n\ninterface RadioTabsListProps {\n /** CSS class name */\n className: RadioTabsClassNames;\n /** Supporting description and validation message IDs */\n describedBy: string | undefined;\n /** Disables the field */\n disabled: boolean | undefined;\n /** Field label */\n label: string;\n /** Callback with the selected option's string value */\n onChange: (value: string) => void;\n /** Available options */\n options: RadioTabsProps['options'];\n /** Selected option's string value */\n selectedKey: string;\n /** HTML data-testid attribute for e2e tests */\n testId: (value: string | number | boolean, explicit?: string) => string;\n /** Tab appearance */\n variant: RadioTabsProps['variant'];\n}\n\n/**\n * Tab list, selection indicator and panels with React Aria keyboard behavior\n *\n * @see https://react-aria.adobe.com/Tabs\n */\nconst RadioTabsList = ({\n className: classNames,\n describedBy,\n disabled,\n label,\n onChange,\n options,\n selectedKey,\n testId,\n variant,\n}: RadioTabsListProps) => {\n const [list, setList] = useState<HTMLDivElement | null>(null);\n const [cursor, setCursor] = useState<{\n left: number;\n top: number;\n width: number;\n height: number;\n } | null>(null);\n\n // keep the selection indicator aligned after layout changes\n useLayoutEffect(() => {\n if (!list) {\n return undefined;\n }\n\n const update = () => {\n const active = list.querySelector<HTMLElement>(\n '[role=\"tab\"][aria-selected=\"true\"]',\n );\n\n if (!active) {\n setCursor(null);\n\n return;\n }\n\n setCursor({\n left:\n active.offsetLeft +\n (variant === 'underlined' ? active.offsetWidth * 0.1 : 0),\n top:\n variant === 'underlined'\n ? active.offsetTop + active.offsetHeight - 2\n : active.offsetTop,\n width:\n variant === 'underlined'\n ? active.offsetWidth * 0.8\n : active.offsetWidth,\n height: variant === 'underlined' ? 2 : active.offsetHeight,\n });\n };\n\n update();\n\n const observer = new ResizeObserver(update);\n observer.observe(list);\n list.querySelectorAll('[role=\"tab\"]').forEach((tab) => {\n observer.observe(tab);\n });\n\n return () => {\n observer.disconnect();\n };\n }, [list, selectedKey, variant, options]);\n\n // forward tab keys as option string values\n const handleSelectionChange = (key: Key | null) => {\n if (key != null) {\n onChange(String(key));\n }\n };\n\n return (\n <Tabs\n className={classNames.tabWrapper}\n data-placement=\"top\"\n data-slot=\"tabWrapper\"\n data-vertical=\"horizontal\"\n disabledKeys={options\n .filter((option) => {\n return !!disabled || !!option.disabled;\n })\n .map((option) => {\n return String(option.value);\n })}\n onSelectionChange={handleSelectionChange}\n selectedKey={selectedKey}\n >\n <div className={classNames.tabBase} data-slot=\"base\">\n <TabList\n ref={setList}\n aria-describedby={describedBy}\n aria-label={label}\n className={classNames.tabList}\n data-slot=\"tabList\"\n render={(props) => {\n return (\n <div {...props}>\n {cursor ? (\n <span\n aria-hidden\n className={classNames.cursor}\n data-animated=\"true\"\n data-initialized=\"true\"\n data-slot=\"cursor\"\n style={cursor}\n />\n ) : null}\n {props.children}\n </div>\n );\n }}\n >\n {options.map((option) => {\n return (\n <RadioTab\n key={String(option.value)}\n className={classNames}\n describedBy={describedBy}\n disabled={disabled}\n option={option}\n testId={testId(option.value, option.testId)}\n />\n );\n })}\n </TabList>\n </div>\n {options.map((option) => {\n return option.content != null ? (\n <TabPanel\n key={String(option.value)}\n className={classNames.tabPanel}\n data-slot=\"panel\"\n id={String(option.value)}\n >\n {option.content}\n </TabPanel>\n ) : null;\n })}\n </Tabs>\n );\n};\n\nexport default RadioTabsList;\n","import type { UniformField } from '../../hooks/useUniformField/types';\nimport type { RadioTabsProps } from '../RadioTabs';\n\nimport { useFocusWithin } from 'react-aria/useFocusWithin';\n\nimport { slugify } from '@fuf-stack/pixel-utils';\nimport { useStyling } from '@fuf-stack/pixels/StylingProvider';\n\nimport { createOptionValueConverter } from '../../helpers';\nimport { getFieldControlProps } from '../../helpers/fieldProps/fieldProps';\nimport FieldLayout from '../../partials/FieldLayout/FieldLayout';\nimport { radioTabsVariants } from '../radioTabsVariants';\nimport RadioTabsList from './RadioTabsList';\n\ninterface RadioTabsControlProps extends Pick<\n RadioTabsProps,\n 'className' | 'fullWidth' | 'inline' | 'options' | 'variant'\n> {\n /** Bound field values, interactions and metadata */\n field: UniformField<unknown, string | number | boolean>;\n}\n\n/**\n * Tab selection presentation with group messages and keyboard focus routing\n *\n * @see https://react-aria.adobe.com/Tabs\n */\nconst RadioTabsControl = ({\n field,\n className,\n fullWidth,\n inline,\n options,\n variant,\n}: RadioTabsControlProps) => {\n const {\n ariaLabel,\n description,\n disabled,\n errorMessage,\n ids,\n ref: inputRef,\n invalid,\n label,\n onBlur,\n onChange: onValueChange,\n readOnly,\n required,\n testId,\n value,\n } = field;\n\n // associate the editable control with its label and messages\n const controlProps = getFieldControlProps(field);\n\n const styling = useStyling();\n const { focusWithinProps } = useFocusWithin({ onBlurWithin: onBlur });\n\n // check if any option has content\n // eslint-disable-next-line @typescript-eslint/no-misused-promises, @typescript-eslint/promise-function-async\n const hasContent = options.some((option) => {\n return option.content;\n });\n\n const { convertToOriginalType } = createOptionValueConverter(options);\n\n // classNames from slots\n const variants = styling.resolve(radioTabsVariants, {\n fullWidth,\n hasContent,\n invalid,\n readOnly,\n appearance: variant ?? 'solid',\n });\n const classNames = styling.variantsToClassNames(variants, className, 'base');\n\n // required-selection text supplies the group announcement\n const { 'aria-required': _ariaRequired, ...associations } = controlProps;\n const describedBy =\n [\n associations['aria-describedby'],\n required ? `${ids.control}-required` : undefined,\n ]\n .filter(Boolean)\n .join(' ') || undefined;\n\n // restore the selected option's original value type, read-only tabs keep\n // their selection since Tabs have no read-only mode\n const handleChange = (nextValue: string) => {\n if (!readOnly) {\n onValueChange(convertToOriginalType(nextValue));\n }\n };\n\n // route form focus to the selected enabled tab, otherwise the first enabled tab\n const handleControlRef = (node: HTMLDivElement | null) => {\n inputRef(\n node\n ? {\n focus: () => {\n const tab =\n node.querySelector<HTMLElement>(\n '[role=\"tab\"][aria-selected=\"true\"]:not([disabled]):not([aria-disabled=\"true\"])',\n ) ??\n node.querySelector<HTMLElement>(\n '[role=\"tab\"]:not([disabled]):not([aria-disabled=\"true\"])',\n );\n tab?.focus();\n },\n }\n : null,\n );\n };\n\n // keep option test IDs stable when values contain dots\n const getOptionTestId = (\n optionValue: string | number | boolean,\n explicit?: string,\n ) => {\n return slugify(`${testId}_option_${explicit ?? optionValue}`, {\n replaceDots: true,\n });\n };\n\n return (\n <FieldLayout\n baseProps={{\n ...associations,\n ...focusWithinProps,\n 'aria-describedby': describedBy,\n 'data-component': 'radio-tabs',\n 'data-invalid': invalid,\n 'data-readonly': readOnly || undefined,\n 'data-required': required,\n 'data-testid': testId,\n ref: handleControlRef,\n role: 'group',\n }}\n className={classNames}\n description={description}\n errorMessage={errorMessage}\n ids={ids}\n invalid={invalid}\n label={label}\n labelAs=\"div\"\n required={required}\n >\n {required ? (\n <span className=\"sr-only\" id={`${ids.control}-required`}>\n Required selection.\n </span>\n ) : null}\n\n {/* selectable tabs */}\n <div\n className={styling.cn(\n 'flex flex-col flex-wrap gap-2',\n inline ? 'flex-row' : undefined,\n classNames.wrapper,\n )}\n data-slot=\"wrapper\"\n >\n <RadioTabsList\n className={classNames}\n describedBy={describedBy}\n disabled={disabled}\n label={ariaLabel}\n onChange={handleChange}\n options={options}\n selectedKey={value != null ? String(value) : ''}\n testId={getOptionTestId}\n variant={variant}\n />\n </div>\n </FieldLayout>\n );\n};\n\nexport default RadioTabsControl;\n","import type { TabsProps } from '@fuf-stack/pixels';\nimport type { ReactElement, ReactNode } from 'react';\nimport type { ClassName, VariantProps } from './radioTabsVariants';\n\nimport useUniformField from '../hooks/useUniformField/useUniformField';\nimport RadioTabsControl from './subcomponents/RadioTabsControl';\n\nexport { default as radioTabsVariants } from './radioTabsVariants';\n\nexport interface RadioTabOption {\n /** Optional content inside of the tab */\n content?: ReactNode;\n /** Disables the field */\n disabled?: boolean;\n /** option icon */\n icon?: ReactNode;\n /** Field label */\n label?: ReactNode;\n /** HTML data-testid attribute for e2e tests */\n testId?: string;\n /** option value */\n value: string | number | boolean;\n}\n\nexport interface RadioTabsProps extends Omit<\n VariantProps,\n 'appearance' | 'hasContent' | 'invalid'\n> {\n /** Custom accessible name */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** Help text associated with the field */\n description?: ReactNode;\n /** Disables the field */\n disabled?: boolean;\n /** Whether tabs should take up full container width */\n fullWidth?: boolean;\n /** Arranges options horizontally */\n inline?: boolean;\n /** Field label */\n label?: ReactNode;\n /** Field name */\n name: string;\n /** Available options */\n options: RadioTabOption[];\n /** Prevents changes while keeping the selection in validation and submission */\n readOnly?: boolean;\n /** HTML data-testid attribute for e2e tests */\n testId?: string;\n /** How the RadioTabs should look like. */\n variant?: TabsProps['variant'];\n}\n\n/** Form selection field displayed as tabs with optional panels */\nconst RadioTabs = ({\n className = undefined,\n fullWidth = false,\n inline = false,\n name,\n options,\n variant = undefined,\n ...uniformFieldProps\n}: RadioTabsProps): ReactElement => {\n const { field } = useUniformField({ ...uniformFieldProps, name });\n\n return (\n <RadioTabsControl\n className={className}\n field={field}\n fullWidth={fullWidth}\n inline={inline}\n options={options}\n variant={variant}\n />\n );\n};\n\nexport default RadioTabs;\n","import RadioTabs from './RadioTabs';\n\nexport type { RadioTabsProps, RadioTabOption } from './RadioTabs';\n\nexport { radioTabsVariants } from './RadioTabs';\n\nexport default RadioTabs;\n"],"mappings":";;;;;;;;;;;;;AAOA,MAAa,oBAAoB,GAAG;CAClC,QAAQ;CACR,OAAO;;EAEL,MAAM;GAEJ;GAEA;GACA;EACF;;EAEA,QAAQ;GACN;GAEA;GAEA;GAEA;EACF;;EAEA,OAAO;GAAC,mBAAmB;GAAM;GAAe;EAAU;;EAE1D,KAAK;GACH;GAEA;GAEA;GAEA;GAEA;EACF;;EAEA,SAAS,CAAC,IAAI,oBAAoB;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AAK,CAAC;CAEhE,OACE,oBAAC,kBAAD;EACa;EACJ;EACI;EACH;EACC;EACA;CACV,CAAA;AAEL;;ACtEA,IAAA,oBAAe"}
|
package/dist/Radios/index.d.mts
CHANGED
|
@@ -480,26 +480,26 @@ export declare const radiosVariants: ((props?: ({
|
|
|
480
480
|
} & ({
|
|
481
481
|
class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
482
482
|
description?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
483
|
-
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
484
|
-
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
485
|
-
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
486
483
|
errorMessage?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
487
484
|
helperWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
485
|
+
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
486
|
+
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
487
|
+
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
488
488
|
};
|
|
489
489
|
className?: never;
|
|
490
490
|
} | {
|
|
491
491
|
class?: never;
|
|
492
492
|
className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
493
493
|
description?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
494
|
-
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
495
|
-
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
496
|
-
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
497
494
|
errorMessage?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
498
495
|
helperWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
496
|
+
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
497
|
+
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
498
|
+
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
499
499
|
};
|
|
500
500
|
}))[];
|
|
501
501
|
compoundSlots: ({
|
|
502
|
-
slots: ("description" | "
|
|
502
|
+
slots: ("description" | "errorMessage" | "helperWrapper" | "base" | "label" | "wrapper")[];
|
|
503
503
|
} & ({
|
|
504
504
|
readOnly?: boolean | boolean[] | undefined;
|
|
505
505
|
} & ({
|
|
@@ -535,26 +535,26 @@ export declare const radiosVariants: ((props?: ({
|
|
|
535
535
|
} & ({
|
|
536
536
|
class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
537
537
|
description?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
538
|
-
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
539
|
-
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
540
|
-
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
541
538
|
errorMessage?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
542
539
|
helperWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
540
|
+
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
541
|
+
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
542
|
+
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
543
543
|
};
|
|
544
544
|
className?: never;
|
|
545
545
|
} | {
|
|
546
546
|
class?: never;
|
|
547
547
|
className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
548
548
|
description?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
549
|
-
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
550
|
-
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
551
|
-
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
552
549
|
errorMessage?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
553
550
|
helperWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
551
|
+
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
552
|
+
label?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
553
|
+
wrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
554
554
|
};
|
|
555
555
|
}))[];
|
|
556
556
|
compoundSlots: ({
|
|
557
|
-
slots: ("description" | "
|
|
557
|
+
slots: ("description" | "errorMessage" | "helperWrapper" | "base" | "label" | "wrapper")[];
|
|
558
558
|
} & ({
|
|
559
559
|
readOnly?: boolean | boolean[] | undefined;
|
|
560
560
|
} & ({
|
package/dist/Radios/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as useUniformField } from "../useUniformField-
|
|
1
|
+
import { t as useUniformField } from "../useUniformField-BvPoQyLL.mjs";
|
|
2
2
|
import { createOptionValueConverter } from "../helpers/index.mjs";
|
|
3
3
|
import { t as getFieldControlProps } from "../fieldProps-DWfz2jSO.mjs";
|
|
4
4
|
import { t as FieldLayout } from "../FieldLayout-C9MEBZAC.mjs";
|
|
5
|
-
import { i as RadioGroupField, n as RadioControl, r as radioGroupFieldVariants, t as radioControlVariants } from "../radioControlVariants-
|
|
5
|
+
import { i as RadioGroupField, n as RadioControl, r as radioGroupFieldVariants, t as radioControlVariants } from "../radioControlVariants-CxA0og5-.mjs";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { slugify, tv } from "@fuf-stack/pixel-utils";
|
|
8
8
|
import { useStyling } from "@fuf-stack/pixels/StylingProvider";
|