@fuf-stack/uniform 1.22.3 → 1.22.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.cjs +2 -1
- package/dist/Checkboxes/index.d.cts +2 -2
- package/dist/Checkboxes/index.d.ts +2 -2
- package/dist/Checkboxes/index.js +2 -2
- package/dist/{Checkboxes-DHk09GmH.cjs → Checkboxes-DrJqx6O2.cjs} +7 -1
- package/dist/{Checkboxes-DHk09GmH.cjs.map → Checkboxes-DrJqx6O2.cjs.map} +1 -1
- package/dist/{Checkboxes-D1hppxDE.js → Checkboxes-X6FRwI50.js} +2 -2
- package/dist/{Checkboxes-D1hppxDE.js.map → Checkboxes-X6FRwI50.js.map} +1 -1
- package/dist/DatePicker/index.cjs +2 -1
- package/dist/DatePicker/index.d.cts +2 -2
- package/dist/DatePicker/index.d.ts +2 -2
- package/dist/DatePicker/index.js +2 -2
- package/dist/{DatePicker-BUSi8SWQ.js → DatePicker-CGIWizz9.js} +2 -2
- package/dist/{DatePicker-BUSi8SWQ.js.map → DatePicker-CGIWizz9.js.map} +1 -1
- package/dist/{DatePicker-DuBjvS5g.cjs → DatePicker-CYUuwwsm.cjs} +7 -1
- package/dist/{DatePicker-DuBjvS5g.cjs.map → DatePicker-CYUuwwsm.cjs.map} +1 -1
- package/dist/FieldArray/index.cjs +2 -1
- package/dist/FieldArray/index.d.cts +2 -2
- package/dist/FieldArray/index.d.ts +2 -2
- package/dist/FieldArray/index.js +2 -2
- package/dist/{FieldArray-BxmK1NRd.js → FieldArray-Dkw6JBnT.js} +2 -2
- package/dist/{FieldArray-BxmK1NRd.js.map → FieldArray-Dkw6JBnT.js.map} +1 -1
- package/dist/{FieldArray-DgiQpIdr.cjs → FieldArray-V66fsvtd.cjs} +7 -1
- package/dist/{FieldArray-DgiQpIdr.cjs.map → FieldArray-V66fsvtd.cjs.map} +1 -1
- package/dist/FieldCard/index.cjs +6 -2
- package/dist/FieldCard/index.d.cts +2 -2
- package/dist/FieldCard/index.d.ts +2 -2
- package/dist/FieldCard/index.js +2 -2
- package/dist/{FieldCard-C-DZ5ARr.cjs → FieldCard-CAHnM8C0.cjs} +10 -1
- package/dist/FieldCard-CAHnM8C0.cjs.map +1 -0
- package/dist/{FieldCard-BK6SNqFY.js → FieldCard-Cg31ce9J.js} +5 -2
- package/dist/FieldCard-Cg31ce9J.js.map +1 -0
- package/dist/Input/index.d.cts +1 -1
- package/dist/Input/index.d.ts +1 -1
- package/dist/RadioBoxes/index.cjs +1 -1
- package/dist/RadioBoxes/index.d.cts +2 -2
- package/dist/RadioBoxes/index.d.ts +2 -2
- package/dist/RadioBoxes/index.js +1 -1
- package/dist/{RadioBoxes-CR--FBhQ.cjs → RadioBoxes-BmLrbYXt.cjs} +3 -3
- package/dist/RadioBoxes-BmLrbYXt.cjs.map +1 -0
- package/dist/{RadioBoxes-BJz-aJp3.js → RadioBoxes-DWxJBTKR.js} +3 -3
- package/dist/RadioBoxes-DWxJBTKR.js.map +1 -0
- package/dist/RadioTabs/index.cjs +2 -1
- package/dist/RadioTabs/index.d.cts +2 -2
- package/dist/RadioTabs/index.d.ts +2 -2
- package/dist/RadioTabs/index.js +2 -2
- package/dist/{RadioTabs-Btt582Nl.cjs → RadioTabs-14XTbTJU.cjs} +20 -14
- package/dist/RadioTabs-14XTbTJU.cjs.map +1 -0
- package/dist/{RadioTabs-CYmzrPBG.js → RadioTabs-DAY6MYJI.js} +15 -15
- package/dist/RadioTabs-DAY6MYJI.js.map +1 -0
- package/dist/Radios/index.cjs +2 -1
- package/dist/Radios/index.d.cts +2 -2
- package/dist/Radios/index.d.ts +2 -2
- package/dist/Radios/index.js +2 -2
- package/dist/{Radios-DZxhrX96.js → Radios-C938-msm.js} +2 -2
- package/dist/{Radios-DZxhrX96.js.map → Radios-C938-msm.js.map} +1 -1
- package/dist/{Radios-Jg9mwE0B.cjs → Radios-D_B9Y8s2.cjs} +7 -1
- package/dist/{Radios-Jg9mwE0B.cjs.map → Radios-D_B9Y8s2.cjs.map} +1 -1
- package/dist/Select/index.cjs +2 -1
- package/dist/Select/index.d.cts +2 -2
- package/dist/Select/index.d.ts +2 -2
- package/dist/Select/index.js +2 -2
- package/dist/{Select-CgeqhZIC.js → Select-BL6k_e-D.js} +2 -2
- package/dist/Select-BL6k_e-D.js.map +1 -0
- package/dist/{Select-CZwuEAB5.cjs → Select-D66A-hYm.cjs} +7 -1
- package/dist/Select-D66A-hYm.cjs.map +1 -0
- package/dist/Slider/index.cjs +2 -1
- package/dist/Slider/index.d.cts +2 -2
- package/dist/Slider/index.d.ts +2 -2
- package/dist/Slider/index.js +2 -2
- package/dist/{Slider-Bpxt-Qgj.cjs → Slider-ChC2PZNb.cjs} +7 -1
- package/dist/{Slider-Bpxt-Qgj.cjs.map → Slider-ChC2PZNb.cjs.map} +1 -1
- package/dist/{Slider-DRfSw0uE.js → Slider-DmEwhC1T.js} +2 -2
- package/dist/{Slider-DRfSw0uE.js.map → Slider-DmEwhC1T.js.map} +1 -1
- package/dist/Switch/index.cjs +2 -1
- package/dist/Switch/index.d.cts +2 -2
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.js +2 -2
- package/dist/{Switch-hjjy34QB.cjs → Switch-Ch6_VInV.cjs} +7 -1
- package/dist/{Switch-hjjy34QB.cjs.map → Switch-Ch6_VInV.cjs.map} +1 -1
- package/dist/{Switch-D9DNrqmj.js → Switch-DvKRPFcC.js} +2 -2
- package/dist/{Switch-D9DNrqmj.js.map → Switch-DvKRPFcC.js.map} +1 -1
- package/dist/SwitchBox/index.d.cts +1 -1
- package/dist/SwitchBox/index.d.ts +1 -1
- package/dist/SwitchBox-BU1XieaZ.js.map +1 -1
- package/dist/SwitchBox-Dl-F5y2m.cjs.map +1 -1
- package/dist/TextArea/index.d.cts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/Time/index.cjs +7 -2
- package/dist/Time/index.d.cts +2 -2
- package/dist/Time/index.d.ts +2 -2
- package/dist/Time/index.js +2 -2
- package/dist/{Time-CDptQ3CK.js → Time-B_SXrKWK.js} +5 -2
- package/dist/Time-B_SXrKWK.js.map +1 -0
- package/dist/{Time-WKgbji5k.cjs → Time-CYoWaQsz.cjs} +16 -1
- package/dist/Time-CYoWaQsz.cjs.map +1 -0
- package/dist/hooks/useUniformFieldArray/index.cjs +4 -4
- package/dist/hooks/useUniformFieldArray/index.cjs.map +1 -1
- package/dist/hooks/useUniformFieldArray/index.js +4 -4
- package/dist/hooks/useUniformFieldArray/index.js.map +1 -1
- package/dist/index-19JGtN7H.d.cts +1257 -0
- package/dist/index-19JGtN7H.d.cts.map +1 -0
- package/dist/index-B4XExHDi.d.cts +539 -0
- package/dist/index-B4XExHDi.d.cts.map +1 -0
- package/dist/index-BUZEnZDm.d.ts +1760 -0
- package/dist/index-BUZEnZDm.d.ts.map +1 -0
- package/dist/index-Bbaubtxp.d.cts +677 -0
- package/dist/index-Bbaubtxp.d.cts.map +1 -0
- package/dist/index-BdgFJ-dj.d.ts +1028 -0
- package/dist/index-BdgFJ-dj.d.ts.map +1 -0
- package/dist/index-BiZNkLK3.d.cts +1477 -0
- package/dist/index-BiZNkLK3.d.cts.map +1 -0
- package/dist/index-Bie3CWyW.d.cts +1760 -0
- package/dist/index-Bie3CWyW.d.cts.map +1 -0
- package/dist/index-BsTqcI1C.d.cts +659 -0
- package/dist/index-BsTqcI1C.d.cts.map +1 -0
- package/dist/index-C6Y8KybK.d.ts +677 -0
- package/dist/index-C6Y8KybK.d.ts.map +1 -0
- package/dist/index-CD0Wpla3.d.cts +1413 -0
- package/dist/index-CD0Wpla3.d.cts.map +1 -0
- package/dist/index-CUByIf_d.d.ts +314 -0
- package/dist/index-CUByIf_d.d.ts.map +1 -0
- package/dist/index-Cf2B9woY.d.cts +473 -0
- package/dist/index-Cf2B9woY.d.cts.map +1 -0
- package/dist/index-CqXEYILn.d.cts +1263 -0
- package/dist/index-CqXEYILn.d.cts.map +1 -0
- package/dist/index-D1cB3mbB.d.ts +3917 -0
- package/dist/index-D1cB3mbB.d.ts.map +1 -0
- package/dist/index-D7AUghFx.d.ts +1413 -0
- package/dist/index-D7AUghFx.d.ts.map +1 -0
- package/dist/index-DCwffq1f.d.ts +1263 -0
- package/dist/index-DCwffq1f.d.ts.map +1 -0
- package/dist/index-DFbuWomg.d.ts +534 -0
- package/dist/index-DFbuWomg.d.ts.map +1 -0
- package/dist/index-DXOBPBft.d.ts +659 -0
- package/dist/index-DXOBPBft.d.ts.map +1 -0
- package/dist/index-DY-d4cFe.d.cts +1028 -0
- package/dist/index-DY-d4cFe.d.cts.map +1 -0
- package/dist/index-DqMpHpu7.d.ts +1257 -0
- package/dist/index-DqMpHpu7.d.ts.map +1 -0
- package/dist/index-DwnqyNnX.d.cts +534 -0
- package/dist/index-DwnqyNnX.d.cts.map +1 -0
- package/dist/index-OdNTqjhQ.d.ts +585 -0
- package/dist/index-OdNTqjhQ.d.ts.map +1 -0
- package/dist/index-QPDvw5Z5.d.cts +585 -0
- package/dist/index-QPDvw5Z5.d.cts.map +1 -0
- package/dist/index-amMd-sQN.d.ts +473 -0
- package/dist/index-amMd-sQN.d.ts.map +1 -0
- package/dist/index-clztdahp.d.ts +1477 -0
- package/dist/index-clztdahp.d.ts.map +1 -0
- package/dist/index-jK092-MJ.d.cts +314 -0
- package/dist/index-jK092-MJ.d.cts.map +1 -0
- package/dist/index-veBM95Gw.d.cts +3917 -0
- package/dist/index-veBM95Gw.d.cts.map +1 -0
- package/dist/index-yYjVSHlN.d.ts +539 -0
- package/dist/index-yYjVSHlN.d.ts.map +1 -0
- package/dist/index.cjs +20 -11
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +12 -12
- package/package.json +6 -6
- package/dist/FieldCard-BK6SNqFY.js.map +0 -1
- package/dist/FieldCard-C-DZ5ARr.cjs.map +0 -1
- package/dist/RadioBoxes-BJz-aJp3.js.map +0 -1
- package/dist/RadioBoxes-CR--FBhQ.cjs.map +0 -1
- package/dist/RadioTabs-Btt582Nl.cjs.map +0 -1
- package/dist/RadioTabs-CYmzrPBG.js.map +0 -1
- package/dist/Select-CZwuEAB5.cjs.map +0 -1
- package/dist/Select-CgeqhZIC.js.map +0 -1
- package/dist/Time-CDptQ3CK.js.map +0 -1
- package/dist/Time-WKgbji5k.cjs.map +0 -1
- package/dist/index-B4jKGy-P.d.ts +0 -167
- package/dist/index-B4jKGy-P.d.ts.map +0 -1
- package/dist/index-B5SfdA5O.d.cts +0 -99
- package/dist/index-B5SfdA5O.d.cts.map +0 -1
- package/dist/index-B61zRzeS.d.cts +0 -101
- package/dist/index-B61zRzeS.d.cts.map +0 -1
- package/dist/index-BDFJDKmz.d.ts +0 -166
- package/dist/index-BDFJDKmz.d.ts.map +0 -1
- package/dist/index-BE4OAqJ2.d.cts +0 -113
- package/dist/index-BE4OAqJ2.d.cts.map +0 -1
- package/dist/index-BMEKfOWp.d.ts +0 -174
- package/dist/index-BMEKfOWp.d.ts.map +0 -1
- package/dist/index-BPaSE_7b.d.ts +0 -179
- package/dist/index-BPaSE_7b.d.ts.map +0 -1
- package/dist/index-BSjcTo7A.d.ts +0 -147
- package/dist/index-BSjcTo7A.d.ts.map +0 -1
- package/dist/index-Bgo2Dr6X.d.cts +0 -174
- package/dist/index-Bgo2Dr6X.d.cts.map +0 -1
- package/dist/index-BmMspnsJ.d.cts +0 -137
- package/dist/index-BmMspnsJ.d.cts.map +0 -1
- package/dist/index-BvbHkoH5.d.cts +0 -290
- package/dist/index-BvbHkoH5.d.cts.map +0 -1
- package/dist/index-C6DBVs7t.d.ts +0 -116
- package/dist/index-C6DBVs7t.d.ts.map +0 -1
- package/dist/index-CIiOXrrY.d.ts +0 -99
- package/dist/index-CIiOXrrY.d.ts.map +0 -1
- package/dist/index-CSRKNes5.d.cts +0 -167
- package/dist/index-CSRKNes5.d.cts.map +0 -1
- package/dist/index-CbPJiRK2.d.ts +0 -83
- package/dist/index-CbPJiRK2.d.ts.map +0 -1
- package/dist/index-CbQ8Ft4o.d.ts +0 -113
- package/dist/index-CbQ8Ft4o.d.ts.map +0 -1
- package/dist/index-CvP3tbVV.d.ts +0 -137
- package/dist/index-CvP3tbVV.d.ts.map +0 -1
- package/dist/index-Cwb7sTO0.d.ts +0 -154
- package/dist/index-Cwb7sTO0.d.ts.map +0 -1
- package/dist/index-CxY9VWv5.d.cts +0 -154
- package/dist/index-CxY9VWv5.d.cts.map +0 -1
- package/dist/index-Cz4JaCWd.d.ts +0 -122
- package/dist/index-Cz4JaCWd.d.ts.map +0 -1
- package/dist/index-DBsF7xsq.d.cts +0 -147
- package/dist/index-DBsF7xsq.d.cts.map +0 -1
- package/dist/index-DMOhTl4I.d.cts +0 -116
- package/dist/index-DMOhTl4I.d.cts.map +0 -1
- package/dist/index-DRg0anjB.d.cts +0 -179
- package/dist/index-DRg0anjB.d.cts.map +0 -1
- package/dist/index-DUmNI6cE.d.cts +0 -83
- package/dist/index-DUmNI6cE.d.cts.map +0 -1
- package/dist/index-Db0WD4d1.d.cts +0 -166
- package/dist/index-Db0WD4d1.d.cts.map +0 -1
- package/dist/index-GqydEAFk.d.ts +0 -290
- package/dist/index-GqydEAFk.d.ts.map +0 -1
- package/dist/index-PMCqBX0t.d.ts +0 -101
- package/dist/index-PMCqBX0t.d.ts.map +0 -1
- package/dist/index-Q3BWGyUO.d.cts +0 -122
- package/dist/index-Q3BWGyUO.d.cts.map +0 -1
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
//#region src/RadioBoxes/RadioBoxes.d.ts
|
|
4
|
-
declare const radioBoxesVariants: import("tailwind-variants").TVReturnType<{
|
|
5
|
-
[key: string]: {
|
|
6
|
-
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
7
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
8
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
-
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
10
|
-
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
11
|
-
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
boxDescription?: import("tailwind-merge").ClassNameValue;
|
|
13
|
-
boxLabel?: import("tailwind-merge").ClassNameValue;
|
|
14
|
-
boxLabelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
} | {
|
|
18
|
-
[x: string]: {
|
|
19
|
-
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
20
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
21
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
22
|
-
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
23
|
-
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
24
|
-
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
25
|
-
boxDescription?: import("tailwind-merge").ClassNameValue;
|
|
26
|
-
boxLabel?: import("tailwind-merge").ClassNameValue;
|
|
27
|
-
boxLabelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
} | {}, {
|
|
31
|
-
base: string;
|
|
32
|
-
boxBase: string;
|
|
33
|
-
boxControl: string;
|
|
34
|
-
boxDescription: string;
|
|
35
|
-
boxLabel: string;
|
|
36
|
-
boxLabelWrapper: string;
|
|
37
|
-
label: string;
|
|
38
|
-
wrapper: string;
|
|
39
|
-
}, undefined, {
|
|
40
|
-
[key: string]: {
|
|
41
|
-
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
42
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
43
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
44
|
-
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
45
|
-
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
46
|
-
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
47
|
-
boxDescription?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
boxLabel?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
boxLabelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
} | {}, {
|
|
53
|
-
base: string;
|
|
54
|
-
boxBase: string;
|
|
55
|
-
boxControl: string;
|
|
56
|
-
boxDescription: string;
|
|
57
|
-
boxLabel: string;
|
|
58
|
-
boxLabelWrapper: string;
|
|
59
|
-
label: string;
|
|
60
|
-
wrapper: string;
|
|
61
|
-
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
62
|
-
base: string;
|
|
63
|
-
boxBase: string;
|
|
64
|
-
boxControl: string;
|
|
65
|
-
boxDescription: string;
|
|
66
|
-
boxLabel: string;
|
|
67
|
-
boxLabelWrapper: string;
|
|
68
|
-
label: string;
|
|
69
|
-
wrapper: string;
|
|
70
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
71
|
-
type VariantProps = TVProps<typeof radioBoxesVariants>;
|
|
72
|
-
type ClassName = TVClassName<typeof radioBoxesVariants>;
|
|
73
|
-
interface RadioBoxesOption {
|
|
74
|
-
/** Description of the value. Works with variant radioBox. */
|
|
75
|
-
description?: ReactNode;
|
|
76
|
-
/** disables the option */
|
|
77
|
-
disabled?: boolean;
|
|
78
|
-
/** option label */
|
|
79
|
-
label?: ReactNode;
|
|
80
|
-
/** option icon */
|
|
81
|
-
icon?: ReactNode;
|
|
82
|
-
/** HTML data-testid attribute of the option */
|
|
83
|
-
testId?: string;
|
|
84
|
-
/** option value */
|
|
85
|
-
value: string | number;
|
|
86
|
-
}
|
|
87
|
-
interface RadioBoxesProps extends VariantProps {
|
|
88
|
-
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
89
|
-
ariaLabel?: string;
|
|
90
|
-
/** CSS class name */
|
|
91
|
-
className?: ClassName;
|
|
92
|
-
/** Determines if the Buttons are disabled or not. */
|
|
93
|
-
disabled?: boolean;
|
|
94
|
-
/** determines orientation of the Buttons. */
|
|
95
|
-
inline?: boolean;
|
|
96
|
-
/** Label displayed next to the RadioButton. */
|
|
97
|
-
label?: ReactNode;
|
|
98
|
-
/** Name the RadioButtons are registered at in HTML forms (react-hook-form). */
|
|
99
|
-
name: string;
|
|
100
|
-
/** Radio button configuration. */
|
|
101
|
-
options: RadioBoxesOption[];
|
|
102
|
-
/** Id to grab element in internal tests. */
|
|
103
|
-
testId?: string;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* RadioBoxes component based on [HeroUI RadioGroup](https://www.heroui.com//docs/components/radio-group)
|
|
107
|
-
*/
|
|
108
|
-
declare const RadioBoxes: ({
|
|
109
|
-
className,
|
|
110
|
-
inline,
|
|
111
|
-
name,
|
|
112
|
-
options,
|
|
113
|
-
...uniformFieldProps
|
|
114
|
-
}: RadioBoxesProps) => import("react/jsx-runtime").JSX.Element;
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/RadioBoxes/RadioBox.d.ts
|
|
117
|
-
declare const radioBoxVariants: import("tailwind-variants").TVReturnType<{
|
|
118
|
-
isDisabled: {
|
|
119
|
-
true: {
|
|
120
|
-
base: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
isInvalid: {
|
|
124
|
-
true: {
|
|
125
|
-
base: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
}, {
|
|
129
|
-
base: string;
|
|
130
|
-
control: string;
|
|
131
|
-
description: string;
|
|
132
|
-
icon: string;
|
|
133
|
-
label: string;
|
|
134
|
-
labelWrapper: string;
|
|
135
|
-
}, undefined, {
|
|
136
|
-
isDisabled: {
|
|
137
|
-
true: {
|
|
138
|
-
base: string;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
isInvalid: {
|
|
142
|
-
true: {
|
|
143
|
-
base: string;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
}, {
|
|
147
|
-
base: string;
|
|
148
|
-
control: string;
|
|
149
|
-
description: string;
|
|
150
|
-
icon: string;
|
|
151
|
-
label: string;
|
|
152
|
-
labelWrapper: string;
|
|
153
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
154
|
-
isDisabled: {
|
|
155
|
-
true: {
|
|
156
|
-
base: string;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
isInvalid: {
|
|
160
|
-
true: {
|
|
161
|
-
base: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
}, {
|
|
165
|
-
base: string;
|
|
166
|
-
control: string;
|
|
167
|
-
description: string;
|
|
168
|
-
icon: string;
|
|
169
|
-
label: string;
|
|
170
|
-
labelWrapper: string;
|
|
171
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
172
|
-
//#endregion
|
|
173
|
-
export { RadioBoxes as n, RadioBoxesProps as r, radioBoxVariants as t };
|
|
174
|
-
//# sourceMappingURL=index-Bgo2Dr6X.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-Bgo2Dr6X.d.cts","names":[],"sources":["../src/RadioBoxes/RadioBoxes.tsx","../src/RadioBoxes/RadioBox.tsx"],"mappings":";;;cAaa,kBAAA,8BAAkB,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgB1B,YAAA,GAAe,OAAO,QAAQ,kBAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,kBAAA;AAAA,UAEnB,gBAAA;;EAEf,WAAA,GAAc,SAAA;;EAEd,QAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA,GAAO,SAAA;;EAEP,MAAA;;EAEA,KAAA;AAAA;AAAA,UAGe,eAAA,SAAwB,YAAA;;EAEvC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,MAAA;EA1BG;EA4BH,KAAA,GAAQ,SAAA;;EAER,IAAA;EA9BmD;EAgCnD,OAAA,EAAS,gBAAA;EA/BG;EAiCZ,MAAA;AAAA;AAjCoD;AAEtD;;AAFsD,cAuChD,UAAA;EAAc,SAAA;EAAA,MAAA;EAAA,IAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAMjB,eAAA,iCAAe,GAAA,CAAA,OAAA;;;cClEL,gBAAA,8BAAgB,YAAA"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
|
-
import { CSSProperties, JSX, ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/FieldArray/subcomponents/FieldArrayElement.d.ts
|
|
5
|
-
interface FieldArrayElementMethods {
|
|
6
|
-
/** Add new element at end */
|
|
7
|
-
append: () => void;
|
|
8
|
-
/** Clone current element */
|
|
9
|
-
duplicate: () => void;
|
|
10
|
-
/** Add new element after current */
|
|
11
|
-
insert: () => void;
|
|
12
|
-
/** Remove current element */
|
|
13
|
-
remove: () => void;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/FieldArray/types.d.ts
|
|
17
|
-
type VariantProps = TVProps<typeof fieldArrayVariants>;
|
|
18
|
-
type ClassName = TVClassName<typeof fieldArrayVariants>;
|
|
19
|
-
/** provided all data and methods to render a field array element */
|
|
20
|
-
type FieldArrayChildrenRenderFn = (args: {
|
|
21
|
-
/** index of the current element in the field array */index: number; /** total length of the field array */
|
|
22
|
-
length: number; /** methods of the current element to change the field array */
|
|
23
|
-
methods: FieldArrayElementMethods; /** HTML data-testid attribute used in e2e tests of the current element */
|
|
24
|
-
name: string; /** field name of the current element */
|
|
25
|
-
testId: string;
|
|
26
|
-
}) => JSX.Element;
|
|
27
|
-
interface FieldArrayFeatures {
|
|
28
|
-
/** enables duplicating existing elements */
|
|
29
|
-
duplicate?: boolean;
|
|
30
|
-
/** enables inserting new elements after existing elements */
|
|
31
|
-
insertAfter?: boolean;
|
|
32
|
-
/** enables sorting by drag-n-drop */
|
|
33
|
-
sortable?: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface FieldArrayProps extends FieldArrayFeatures, VariantProps {
|
|
36
|
-
/** text of the append element button */
|
|
37
|
-
appendButtonText?: string;
|
|
38
|
-
/** function that renders the children with provided Properties. */
|
|
39
|
-
children: FieldArrayChildrenRenderFn;
|
|
40
|
-
/** CSS class name */
|
|
41
|
-
className?: ClassName;
|
|
42
|
-
elementInitialValue?: unknown;
|
|
43
|
-
elementMarginBottom?: CSSProperties['marginBottom'];
|
|
44
|
-
/** when true, array stores primitives as wrapper objects: { __FLAT__: value } */
|
|
45
|
-
flat?: boolean;
|
|
46
|
-
/** label of the field array */
|
|
47
|
-
label?: ReactNode;
|
|
48
|
-
/** when true (default false) last element can not be removed and will be shown even if field array is empty */
|
|
49
|
-
lastElementNotRemovable?: boolean;
|
|
50
|
-
/** form field name */
|
|
51
|
-
name: string;
|
|
52
|
-
/** HTML data-testid attribute used in e2e tests */
|
|
53
|
-
testId?: string;
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/FieldArray/FieldArray.d.ts
|
|
57
|
-
declare const fieldArrayVariants: import("tailwind-variants").TVReturnType<{
|
|
58
|
-
hasLabel: {
|
|
59
|
-
false: {
|
|
60
|
-
actionsMenuButton: string;
|
|
61
|
-
removeButton: string;
|
|
62
|
-
sortDragHandle: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
}, {
|
|
66
|
-
/** base class for the field array wrapper */base: string[]; /** class for the actions menu button */
|
|
67
|
-
actionsMenuButton: string[]; /** class for the append button */
|
|
68
|
-
appendButton: string[]; /** class for the element fields grid */
|
|
69
|
-
elementFieldsGrid: string[]; /** class for the label */
|
|
70
|
-
label: string[]; /** class for the list */
|
|
71
|
-
list: string[]; /** class for the list wrapper */
|
|
72
|
-
listWrapper: string[]; /** class for the list item (performs motion animations) */
|
|
73
|
-
listItem: string[]; /** class for the list item inner */
|
|
74
|
-
listItemInner: string[]; /** class for the remove button */
|
|
75
|
-
removeButton: string[]; /** class for the sort drag handle */
|
|
76
|
-
sortDragHandle: string[];
|
|
77
|
-
}, undefined, {
|
|
78
|
-
hasLabel: {
|
|
79
|
-
false: {
|
|
80
|
-
actionsMenuButton: string;
|
|
81
|
-
removeButton: string;
|
|
82
|
-
sortDragHandle: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
}, {
|
|
86
|
-
/** base class for the field array wrapper */base: string[]; /** class for the actions menu button */
|
|
87
|
-
actionsMenuButton: string[]; /** class for the append button */
|
|
88
|
-
appendButton: string[]; /** class for the element fields grid */
|
|
89
|
-
elementFieldsGrid: string[]; /** class for the label */
|
|
90
|
-
label: string[]; /** class for the list */
|
|
91
|
-
list: string[]; /** class for the list wrapper */
|
|
92
|
-
listWrapper: string[]; /** class for the list item (performs motion animations) */
|
|
93
|
-
listItem: string[]; /** class for the list item inner */
|
|
94
|
-
listItemInner: string[]; /** class for the remove button */
|
|
95
|
-
removeButton: string[]; /** class for the sort drag handle */
|
|
96
|
-
sortDragHandle: string[];
|
|
97
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
98
|
-
hasLabel: {
|
|
99
|
-
false: {
|
|
100
|
-
actionsMenuButton: string;
|
|
101
|
-
removeButton: string;
|
|
102
|
-
sortDragHandle: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
}, {
|
|
106
|
-
/** base class for the field array wrapper */base: string[]; /** class for the actions menu button */
|
|
107
|
-
actionsMenuButton: string[]; /** class for the append button */
|
|
108
|
-
appendButton: string[]; /** class for the element fields grid */
|
|
109
|
-
elementFieldsGrid: string[]; /** class for the label */
|
|
110
|
-
label: string[]; /** class for the list */
|
|
111
|
-
list: string[]; /** class for the list wrapper */
|
|
112
|
-
listWrapper: string[]; /** class for the list item (performs motion animations) */
|
|
113
|
-
listItem: string[]; /** class for the list item inner */
|
|
114
|
-
listItemInner: string[]; /** class for the remove button */
|
|
115
|
-
removeButton: string[]; /** class for the sort drag handle */
|
|
116
|
-
sortDragHandle: string[];
|
|
117
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
118
|
-
/**
|
|
119
|
-
* FieldArray component based in [RHF useFieldArray](https://react-hook-form.com/docs/usefieldarray)
|
|
120
|
-
*/
|
|
121
|
-
declare const FieldArray: ({
|
|
122
|
-
appendButtonText,
|
|
123
|
-
children,
|
|
124
|
-
className: _className,
|
|
125
|
-
duplicate,
|
|
126
|
-
elementInitialValue: _elementInitialValue,
|
|
127
|
-
elementMarginBottom,
|
|
128
|
-
flat,
|
|
129
|
-
insertAfter,
|
|
130
|
-
lastElementNotRemovable,
|
|
131
|
-
name,
|
|
132
|
-
sortable,
|
|
133
|
-
...uniformFieldProps
|
|
134
|
-
}: FieldArrayProps) => import("react/jsx-runtime").JSX.Element;
|
|
135
|
-
//#endregion
|
|
136
|
-
export { FieldArrayProps as i, FieldArrayChildrenRenderFn as n, FieldArrayFeatures as r, FieldArray as t };
|
|
137
|
-
//# sourceMappingURL=index-BmMspnsJ.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-BmMspnsJ.d.cts","names":[],"sources":["../src/FieldArray/subcomponents/FieldArrayElement.tsx","../src/FieldArray/types.ts","../src/FieldArray/FieldArray.tsx"],"mappings":";;;;UAiBiB,wBAAA;;EAEf,MAAA;EAFuC;EAIvC,SAAA;EAJuC;EAMvC,MAAA;EAFA;EAIA,MAAA;AAAA;;;KCpBG,YAAA,GAAe,OAAO,QAAQ,kBAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,kBAAA;;KAGxB,0BAAA,IAA8B,IAAA;EDUxC,sDCRA,KAAA,UDYA;ECVA,MAAA,UDYM;ECVN,OAAA,EAAS,wBAAA;EAET,IAAA;EAEA,MAAA;AAAA,MACI,GAAA,CAAI,OAAO;AAAA,UAEA,kBAAA;EAjBG;EAmBlB,SAAA;EAlBG;EAoBH,WAAA;;EAEA,QAAA;AAAA;AAAA,UAGe,eAAA,SAAwB,kBAAA,EAAoB,YAAA;EAtBvB;EAwBpC,gBAAA;EAbe;EAef,QAAA,EAAU,0BAAA;EAtBV;EAwBA,SAAA,GAAY,SAAA;EAEZ,mBAAA;EAKA,mBAAA,GAAsB,aAAA;EAzBtB;EA2BA,IAAA;EA1BI;EA4BJ,KAAA,GAAQ,SAAA;EA5BO;EA8Bf,uBAAA;EA5Be;EA8Bf,IAAA;;EAEA,MAAA;AAAA;;;cCzCW,kBAAA,8BAAkB,YAAA;;;;;;;;;EFU7B,6DAEM;;;+BCpBS;mBAAG;kBACf;;sBAAiD;2BAGhB;0BAWrB;;;;;;;;;;;EAAA,6DAEkB;+BAAA;0BAIjC;+BAEQ;mBAGO;;yBAMH;sBAWJ;2BAjBmD;0BAAY;;;;;;;;;;;EAevE,6DAEQ;+BAIR;0BAEM;;;kBCiDN;yBAAA;;;;;;;;;cAKI,UAAA;EAAc,gBAAA;EAAA,QAAA;EAAA,SAAA,EAAA,UAAA;EAAA,SAAA;EAAA,mBAAA,EAAA,oBAAA;EAAA,mBAAA;EAAA,IAAA;EAAA,WAAA;EAAA,uBAAA;EAAA,IAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAajB,eAAA,iCAAe,GAAA,CAAA,OAAA"}
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import { Props } from "react-select";
|
|
4
|
-
|
|
5
|
-
//#region src/Select/Select.d.ts
|
|
6
|
-
declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
7
|
-
[key: string]: {
|
|
8
|
-
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
10
|
-
control?: import("tailwind-merge").ClassNameValue;
|
|
11
|
-
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
13
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
14
|
-
menu?: import("tailwind-merge").ClassNameValue;
|
|
15
|
-
option?: import("tailwind-merge").ClassNameValue;
|
|
16
|
-
group?: import("tailwind-merge").ClassNameValue;
|
|
17
|
-
clearIndicator?: import("tailwind-merge").ClassNameValue;
|
|
18
|
-
control_focused?: import("tailwind-merge").ClassNameValue;
|
|
19
|
-
crossIcon?: import("tailwind-merge").ClassNameValue;
|
|
20
|
-
downChevron?: import("tailwind-merge").ClassNameValue;
|
|
21
|
-
dropdownIndicator?: import("tailwind-merge").ClassNameValue;
|
|
22
|
-
groupHeading?: import("tailwind-merge").ClassNameValue;
|
|
23
|
-
indicatorsContainer?: import("tailwind-merge").ClassNameValue;
|
|
24
|
-
indicatorSeparator?: import("tailwind-merge").ClassNameValue;
|
|
25
|
-
loadingIndicator?: import("tailwind-merge").ClassNameValue;
|
|
26
|
-
loadingMessage?: import("tailwind-merge").ClassNameValue;
|
|
27
|
-
menuList?: import("tailwind-merge").ClassNameValue;
|
|
28
|
-
menuPortal?: import("tailwind-merge").ClassNameValue;
|
|
29
|
-
multiValue?: import("tailwind-merge").ClassNameValue;
|
|
30
|
-
multiValueContainer?: import("tailwind-merge").ClassNameValue;
|
|
31
|
-
multiValueLabel?: import("tailwind-merge").ClassNameValue;
|
|
32
|
-
multiValueRemove?: import("tailwind-merge").ClassNameValue;
|
|
33
|
-
noOptionsMessage?: import("tailwind-merge").ClassNameValue;
|
|
34
|
-
option_disabled?: import("tailwind-merge").ClassNameValue;
|
|
35
|
-
option_focused?: import("tailwind-merge").ClassNameValue;
|
|
36
|
-
option_selected?: import("tailwind-merge").ClassNameValue;
|
|
37
|
-
selectContainer?: import("tailwind-merge").ClassNameValue;
|
|
38
|
-
singleValue?: import("tailwind-merge").ClassNameValue;
|
|
39
|
-
valueContainer?: import("tailwind-merge").ClassNameValue;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
} | {
|
|
43
|
-
[x: string]: {
|
|
44
|
-
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
45
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
46
|
-
control?: import("tailwind-merge").ClassNameValue;
|
|
47
|
-
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
50
|
-
menu?: import("tailwind-merge").ClassNameValue;
|
|
51
|
-
option?: import("tailwind-merge").ClassNameValue;
|
|
52
|
-
group?: import("tailwind-merge").ClassNameValue;
|
|
53
|
-
clearIndicator?: import("tailwind-merge").ClassNameValue;
|
|
54
|
-
control_focused?: import("tailwind-merge").ClassNameValue;
|
|
55
|
-
crossIcon?: import("tailwind-merge").ClassNameValue;
|
|
56
|
-
downChevron?: import("tailwind-merge").ClassNameValue;
|
|
57
|
-
dropdownIndicator?: import("tailwind-merge").ClassNameValue;
|
|
58
|
-
groupHeading?: import("tailwind-merge").ClassNameValue;
|
|
59
|
-
indicatorsContainer?: import("tailwind-merge").ClassNameValue;
|
|
60
|
-
indicatorSeparator?: import("tailwind-merge").ClassNameValue;
|
|
61
|
-
loadingIndicator?: import("tailwind-merge").ClassNameValue;
|
|
62
|
-
loadingMessage?: import("tailwind-merge").ClassNameValue;
|
|
63
|
-
menuList?: import("tailwind-merge").ClassNameValue;
|
|
64
|
-
menuPortal?: import("tailwind-merge").ClassNameValue;
|
|
65
|
-
multiValue?: import("tailwind-merge").ClassNameValue;
|
|
66
|
-
multiValueContainer?: import("tailwind-merge").ClassNameValue;
|
|
67
|
-
multiValueLabel?: import("tailwind-merge").ClassNameValue;
|
|
68
|
-
multiValueRemove?: import("tailwind-merge").ClassNameValue;
|
|
69
|
-
noOptionsMessage?: import("tailwind-merge").ClassNameValue;
|
|
70
|
-
option_disabled?: import("tailwind-merge").ClassNameValue;
|
|
71
|
-
option_focused?: import("tailwind-merge").ClassNameValue;
|
|
72
|
-
option_selected?: import("tailwind-merge").ClassNameValue;
|
|
73
|
-
selectContainer?: import("tailwind-merge").ClassNameValue;
|
|
74
|
-
singleValue?: import("tailwind-merge").ClassNameValue;
|
|
75
|
-
valueContainer?: import("tailwind-merge").ClassNameValue;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
} | {}, {
|
|
79
|
-
base: string;
|
|
80
|
-
clearIndicator: string;
|
|
81
|
-
control: string;
|
|
82
|
-
control_focused: string;
|
|
83
|
-
crossIcon: string;
|
|
84
|
-
downChevron: string;
|
|
85
|
-
dropdownIndicator: string;
|
|
86
|
-
group: string;
|
|
87
|
-
groupHeading: string;
|
|
88
|
-
indicatorsContainer: string;
|
|
89
|
-
indicatorSeparator: string;
|
|
90
|
-
input: string;
|
|
91
|
-
label: string;
|
|
92
|
-
loadingIndicator: string;
|
|
93
|
-
loadingMessage: string;
|
|
94
|
-
menu: string;
|
|
95
|
-
menuList: string;
|
|
96
|
-
menuPortal: string;
|
|
97
|
-
multiValue: string;
|
|
98
|
-
multiValueContainer: string;
|
|
99
|
-
multiValueLabel: string;
|
|
100
|
-
multiValueRemove: string;
|
|
101
|
-
noOptionsMessage: string;
|
|
102
|
-
option: string;
|
|
103
|
-
option_disabled: string;
|
|
104
|
-
option_focused: string;
|
|
105
|
-
option_selected: string;
|
|
106
|
-
placeholder: string;
|
|
107
|
-
selectContainer: string;
|
|
108
|
-
singleValue: string;
|
|
109
|
-
valueContainer: string;
|
|
110
|
-
}, undefined, {
|
|
111
|
-
[key: string]: {
|
|
112
|
-
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
113
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
114
|
-
control?: import("tailwind-merge").ClassNameValue;
|
|
115
|
-
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
116
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
117
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
118
|
-
menu?: import("tailwind-merge").ClassNameValue;
|
|
119
|
-
option?: import("tailwind-merge").ClassNameValue;
|
|
120
|
-
group?: import("tailwind-merge").ClassNameValue;
|
|
121
|
-
clearIndicator?: import("tailwind-merge").ClassNameValue;
|
|
122
|
-
control_focused?: import("tailwind-merge").ClassNameValue;
|
|
123
|
-
crossIcon?: import("tailwind-merge").ClassNameValue;
|
|
124
|
-
downChevron?: import("tailwind-merge").ClassNameValue;
|
|
125
|
-
dropdownIndicator?: import("tailwind-merge").ClassNameValue;
|
|
126
|
-
groupHeading?: import("tailwind-merge").ClassNameValue;
|
|
127
|
-
indicatorsContainer?: import("tailwind-merge").ClassNameValue;
|
|
128
|
-
indicatorSeparator?: import("tailwind-merge").ClassNameValue;
|
|
129
|
-
loadingIndicator?: import("tailwind-merge").ClassNameValue;
|
|
130
|
-
loadingMessage?: import("tailwind-merge").ClassNameValue;
|
|
131
|
-
menuList?: import("tailwind-merge").ClassNameValue;
|
|
132
|
-
menuPortal?: import("tailwind-merge").ClassNameValue;
|
|
133
|
-
multiValue?: import("tailwind-merge").ClassNameValue;
|
|
134
|
-
multiValueContainer?: import("tailwind-merge").ClassNameValue;
|
|
135
|
-
multiValueLabel?: import("tailwind-merge").ClassNameValue;
|
|
136
|
-
multiValueRemove?: import("tailwind-merge").ClassNameValue;
|
|
137
|
-
noOptionsMessage?: import("tailwind-merge").ClassNameValue;
|
|
138
|
-
option_disabled?: import("tailwind-merge").ClassNameValue;
|
|
139
|
-
option_focused?: import("tailwind-merge").ClassNameValue;
|
|
140
|
-
option_selected?: import("tailwind-merge").ClassNameValue;
|
|
141
|
-
selectContainer?: import("tailwind-merge").ClassNameValue;
|
|
142
|
-
singleValue?: import("tailwind-merge").ClassNameValue;
|
|
143
|
-
valueContainer?: import("tailwind-merge").ClassNameValue;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
} | {}, {
|
|
147
|
-
base: string;
|
|
148
|
-
clearIndicator: string;
|
|
149
|
-
control: string;
|
|
150
|
-
control_focused: string;
|
|
151
|
-
crossIcon: string;
|
|
152
|
-
downChevron: string;
|
|
153
|
-
dropdownIndicator: string;
|
|
154
|
-
group: string;
|
|
155
|
-
groupHeading: string;
|
|
156
|
-
indicatorsContainer: string;
|
|
157
|
-
indicatorSeparator: string;
|
|
158
|
-
input: string;
|
|
159
|
-
label: string;
|
|
160
|
-
loadingIndicator: string;
|
|
161
|
-
loadingMessage: string;
|
|
162
|
-
menu: string;
|
|
163
|
-
menuList: string;
|
|
164
|
-
menuPortal: string;
|
|
165
|
-
multiValue: string;
|
|
166
|
-
multiValueContainer: string;
|
|
167
|
-
multiValueLabel: string;
|
|
168
|
-
multiValueRemove: string;
|
|
169
|
-
noOptionsMessage: string;
|
|
170
|
-
option: string;
|
|
171
|
-
option_disabled: string;
|
|
172
|
-
option_focused: string;
|
|
173
|
-
option_selected: string;
|
|
174
|
-
placeholder: string;
|
|
175
|
-
selectContainer: string;
|
|
176
|
-
singleValue: string;
|
|
177
|
-
valueContainer: string;
|
|
178
|
-
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
179
|
-
base: string;
|
|
180
|
-
clearIndicator: string;
|
|
181
|
-
control: string;
|
|
182
|
-
control_focused: string;
|
|
183
|
-
crossIcon: string;
|
|
184
|
-
downChevron: string;
|
|
185
|
-
dropdownIndicator: string;
|
|
186
|
-
group: string;
|
|
187
|
-
groupHeading: string;
|
|
188
|
-
indicatorsContainer: string;
|
|
189
|
-
indicatorSeparator: string;
|
|
190
|
-
input: string;
|
|
191
|
-
label: string;
|
|
192
|
-
loadingIndicator: string;
|
|
193
|
-
loadingMessage: string;
|
|
194
|
-
menu: string;
|
|
195
|
-
menuList: string;
|
|
196
|
-
menuPortal: string;
|
|
197
|
-
multiValue: string;
|
|
198
|
-
multiValueContainer: string;
|
|
199
|
-
multiValueLabel: string;
|
|
200
|
-
multiValueRemove: string;
|
|
201
|
-
noOptionsMessage: string;
|
|
202
|
-
option: string;
|
|
203
|
-
option_disabled: string;
|
|
204
|
-
option_focused: string;
|
|
205
|
-
option_selected: string;
|
|
206
|
-
placeholder: string;
|
|
207
|
-
selectContainer: string;
|
|
208
|
-
singleValue: string;
|
|
209
|
-
valueContainer: string;
|
|
210
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
211
|
-
interface SelectOption {
|
|
212
|
-
/** set option to disabled state */
|
|
213
|
-
disabled?: boolean;
|
|
214
|
-
/**
|
|
215
|
-
* True when option was auto-generated because the value wasn't found in options.
|
|
216
|
-
* Use in renderOptionLabel to render a component that fetches the real label.
|
|
217
|
-
*/
|
|
218
|
-
isFallback?: boolean;
|
|
219
|
-
/** option label */
|
|
220
|
-
label?: ReactNode;
|
|
221
|
-
/** option value */
|
|
222
|
-
value: string | number;
|
|
223
|
-
}
|
|
224
|
-
type VariantProps = TVProps<typeof selectVariants>;
|
|
225
|
-
type ClassName = TVClassName<typeof selectVariants>;
|
|
226
|
-
interface SelectProps extends VariantProps {
|
|
227
|
-
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
228
|
-
ariaLabel?: string;
|
|
229
|
-
/** CSS class name */
|
|
230
|
-
className?: ClassName;
|
|
231
|
-
/** Determine if the */
|
|
232
|
-
clearable?: boolean;
|
|
233
|
-
/** Set the select to disabled state. */
|
|
234
|
-
disabled?: boolean;
|
|
235
|
-
/** Force menu open for debugging or visual testing. */
|
|
236
|
-
debugMenuOpen?: boolean;
|
|
237
|
-
/** Filter Select Options */
|
|
238
|
-
filterOption?: undefined | ((option?: SelectOption, inputValue?: string) => boolean);
|
|
239
|
-
/** The value of the search input */
|
|
240
|
-
inputValue?: string;
|
|
241
|
-
/** Label that should be associated with the select. */
|
|
242
|
-
label?: ReactNode;
|
|
243
|
-
/** Set the select to a loading state. */
|
|
244
|
-
loading?: boolean;
|
|
245
|
-
/** switch between single and multi select mode. */
|
|
246
|
-
multiSelect?: boolean;
|
|
247
|
-
/** The name for the Select component, used by react-hook-form */
|
|
248
|
-
name: string;
|
|
249
|
-
/** Placeholder that is displayed when nothing is selected */
|
|
250
|
-
placeholder?: string;
|
|
251
|
-
/** Handle change events on the input */
|
|
252
|
-
onInputChange?: Props['onInputChange'];
|
|
253
|
-
/** The options for the Select component */
|
|
254
|
-
options: SelectOption[];
|
|
255
|
-
/** Render custom content when no options match the current search input. */
|
|
256
|
-
renderEmptyOptions?: Props['noOptionsMessage'];
|
|
257
|
-
/** Format the label of the option */
|
|
258
|
-
renderOptionLabel?: undefined | Props['formatOptionLabel'];
|
|
259
|
-
/**
|
|
260
|
-
* Fallback option(s) for async selects when value isn't in current options.
|
|
261
|
-
* Use when the selected value may not be in the options list (e.g., after
|
|
262
|
-
* search results change). Used only if value not found in options.
|
|
263
|
-
* For single select: pass the option object or undefined
|
|
264
|
-
* For multi-select: pass an array of option objects
|
|
265
|
-
*/
|
|
266
|
-
selectedOptionFallback?: SelectOption | SelectOption[];
|
|
267
|
-
/** HTML data-testid attribute used in e2e tests */
|
|
268
|
-
testId?: string;
|
|
269
|
-
}
|
|
270
|
-
/** Select component based on [HeroUI Select](https://www.heroui.com//docs/components/select) and [React-Select](https://react-select.com/home) */
|
|
271
|
-
declare const Select: ({
|
|
272
|
-
className,
|
|
273
|
-
clearable,
|
|
274
|
-
debugMenuOpen,
|
|
275
|
-
filterOption,
|
|
276
|
-
inputValue,
|
|
277
|
-
loading,
|
|
278
|
-
multiSelect,
|
|
279
|
-
name,
|
|
280
|
-
onInputChange,
|
|
281
|
-
options,
|
|
282
|
-
placeholder,
|
|
283
|
-
renderEmptyOptions,
|
|
284
|
-
renderOptionLabel,
|
|
285
|
-
selectedOptionFallback,
|
|
286
|
-
...uniformFieldProps
|
|
287
|
-
}: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
288
|
-
//#endregion
|
|
289
|
-
export { SelectProps as n, Select as t };
|
|
290
|
-
//# sourceMappingURL=index-BvbHkoH5.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-BvbHkoH5.d.cts","names":[],"sources":["../src/Select/Select.tsx"],"mappings":";;;;;cAea,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA8CjB,YAAA;;EAER,QAAA;;;;;EAKA,UAAA;;EAEA,KAAA,GAAQ,SAAS;;EAEjB,KAAA;AAAA;AAAA,KAGG,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,WAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,SAAA;;EAEA,QAAA;;EAEA,aAAA;;EAEA,YAAA,iBAEM,MAAA,GAAS,YAAA,EAAc,UAAA;;EAE7B,UAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,OAAA;;EAEA,WAAA;;EAEA,IAAA;;EAEA,WAAA;;EAEA,aAAA,GAAgB,KAAA;;EAEhB,OAAA,EAAS,YAAA;;EAET,kBAAA,GAAqB,KAAA;;EAErB,iBAAA,eAAgC,KAAA;;;;;;;;EAQhC,sBAAA,GAAyB,YAAA,GAAe,YAAA;;EAExC,MAAA;AAAA;;cA8CI,MAAA;EAAU,SAAA;EAAA,SAAA;EAAA,aAAA;EAAA,YAAA;EAAA,UAAA;EAAA,OAAA;EAAA,WAAA;EAAA,IAAA;EAAA,aAAA;EAAA,OAAA;EAAA,WAAA;EAAA,kBAAA;EAAA,iBAAA;EAAA,sBAAA;EAAA,GAAA;AAAA,GAgBb,WAAA,iCAAW,GAAA,CAAA,OAAA"}
|