@digigov/form 2.0.0-36b707c1 → 2.0.0-385c7994
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/Field/ErrorGroup.d.ts +15 -0
- package/Field/ErrorGroup.js +53 -0
- package/Field/FieldBase.d.ts +1 -1
- package/Field/FieldBase.js +77 -0
- package/Field/FieldBaseContainer.d.ts +2 -2
- package/Field/FieldBaseContainer.js +43 -0
- package/Field/FieldConditional.d.ts +1 -1
- package/Field/FieldConditional.js +45 -0
- package/Field/index.d.ts +1 -1
- package/Field/index.js +70 -107
- package/Field/types.d.ts +33 -19
- package/Field/utils/evaluateFieldWithConditions.d.ts +2 -2
- package/Field/utils/evaluateFieldWithConditions.js +19 -0
- package/Field/utils/resolveField.d.ts +3 -0
- package/Field/utils/resolveField.js +32 -0
- package/Field/utils/useField.d.ts +1 -1
- package/Field/utils/useField.js +47 -0
- package/FieldArray/BaseFieldArray.d.ts +5 -0
- package/FieldArray/BaseFieldArray.js +46 -0
- package/FieldArray/FormDialog/ArrayDisplay/ArrayContainerDisplay.d.ts +9 -0
- package/FieldArray/FormDialog/ArrayDisplay/ArrayContainerDisplay.js +13 -0
- package/FieldArray/FormDialog/ArrayDisplay/ArrayItemDisplay.d.ts +26 -0
- package/FieldArray/FormDialog/ArrayDisplay/ArrayItemDisplay.js +134 -0
- package/FieldArray/FormDialog/ArrayDisplay/ArrayItemHeader.d.ts +5 -0
- package/FieldArray/FormDialog/ArrayDisplay/ArrayItemHeader.js +6 -0
- package/FieldArray/FormDialog/ArrayDisplay/index.d.ts +15 -0
- package/FieldArray/FormDialog/ArrayDisplay/index.js +32 -0
- package/FieldArray/FormDialog/ArrayEditModal.d.ts +24 -0
- package/FieldArray/FormDialog/ArrayEditModal.js +138 -0
- package/FieldArray/FormDialog/index.d.ts +19 -0
- package/FieldArray/FormDialog/index.js +199 -0
- package/FieldArray/index.d.ts +10 -2
- package/FieldArray/index.js +65 -75
- package/FieldObject/index.d.ts +8 -3
- package/FieldObject/index.js +51 -68
- package/Fieldset/FieldsetWithContext.js +27 -0
- package/Fieldset/index.d.ts +2 -2
- package/Fieldset/index.js +18 -30
- package/Fieldset/types.d.ts +2 -2
- package/Fieldset/types.js +0 -0
- package/FormBuilder/index.d.ts +2 -2
- package/FormBuilder/index.js +234 -153
- package/FormContext.d.ts +3 -2
- package/FormContext.js +7 -0
- package/MultiplicityField/add-objects.d.ts +2 -2
- package/MultiplicityField/add-objects.js +107 -0
- package/MultiplicityField/index.d.ts +2 -2
- package/MultiplicityField/index.js +81 -113
- package/MultiplicityField/types.d.ts +3 -3
- package/MultiplicityField/types.js +0 -0
- package/Questions/Questions.d.ts +1 -1
- package/Questions/Questions.js +48 -0
- package/Questions/QuestionsContext.d.ts +1 -1
- package/Questions/QuestionsContext.js +10 -0
- package/Questions/Step/ReviewStep.js +32 -0
- package/Questions/Step/Step.d.ts +1 -1
- package/Questions/Step/Step.js +39 -0
- package/Questions/Step/StepArrayReview.d.ts +1 -1
- package/Questions/Step/StepArrayReview.js +35 -0
- package/Questions/Step/StepContext.d.ts +1 -1
- package/Questions/Step/StepContext.js +28 -0
- package/Questions/Step/StepDescription.d.ts +1 -1
- package/Questions/Step/StepDescription.js +18 -0
- package/Questions/Step/StepForm.d.ts +2 -2
- package/Questions/Step/StepForm.js +29 -0
- package/Questions/Step/StepQuote.d.ts +1 -1
- package/Questions/Step/StepQuote.js +5 -0
- package/Questions/Step/StepTitle.d.ts +1 -1
- package/Questions/Step/StepTitle.js +25 -0
- package/Questions/Step/getAddMoreFields.d.ts +2 -2
- package/Questions/Step/getAddMoreFields.js +24 -0
- package/Questions/Step/index.d.ts +11 -11
- package/Questions/Step/index.js +13 -16
- package/Questions/Step/types.d.ts +1 -1
- package/Questions/Step/types.js +0 -0
- package/Questions/getNextStep.d.ts +1 -1
- package/Questions/getNextStep.js +13 -0
- package/Questions/index.d.ts +2 -2
- package/Questions/index.js +4 -7
- package/Questions/types.d.ts +1 -1
- package/Questions/types.js +0 -0
- package/hooks/useFieldFocusManager.d.ts +25 -0
- package/hooks/useFieldFocusManager.js +83 -0
- package/hooks/utils.d.ts +18 -0
- package/hooks/utils.js +60 -0
- package/index.d.ts +5 -5
- package/index.js +8 -13
- package/inputs/AutoCompleteInput/index.d.ts +4 -4
- package/inputs/AutoCompleteInput/index.js +39 -60
- package/inputs/Checkboxes/index.d.ts +6 -4
- package/inputs/Checkboxes/index.js +50 -74
- package/inputs/DateInput/index.d.ts +2 -6
- package/inputs/DateInput/index.js +125 -112
- package/inputs/DateTimeInput/index.d.ts +10 -0
- package/inputs/DateTimeInput/index.js +190 -0
- package/inputs/FileInput/index.d.ts +18 -2
- package/inputs/FileInput/index.js +59 -46
- package/inputs/ImageInput/index.d.ts +10 -2
- package/inputs/ImageInput/index.js +85 -49
- package/inputs/Input/index.d.ts +5 -2
- package/inputs/Input/index.js +60 -61
- package/inputs/Label/index.d.ts +1 -3
- package/inputs/Label/index.js +13 -16
- package/inputs/OtpInput/index.d.ts +1 -5
- package/inputs/OtpInput/index.js +117 -140
- package/inputs/Radio/index.d.ts +7 -5
- package/inputs/Radio/index.js +71 -99
- package/inputs/Select/index.d.ts +7 -4
- package/inputs/Select/index.js +24 -24
- package/inputs/index.d.ts +9 -9
- package/inputs/index.js +10 -21
- package/{Field/utils/index.d.ts → inputs/registry.d.ts} +2 -1
- package/inputs/registry.js +80 -0
- package/internal.d.ts +5 -5
- package/internal.js +6 -0
- package/lazy.d.ts +92 -72
- package/lazy.js +163 -0
- package/package.json +12 -12
- package/registry.d.ts +42 -30
- package/registry.js +170 -0
- package/src/Field/ErrorGroup.tsx +84 -0
- package/src/Field/FieldBase.tsx +42 -26
- package/src/Field/FieldBaseContainer.tsx +71 -47
- package/src/Field/FieldConditional.tsx +7 -3
- package/src/Field/doc.mdx +207 -0
- package/src/Field/index.tsx +32 -37
- package/src/Field/types.tsx +56 -41
- package/src/Field/utils/evaluateFieldWithConditions.ts +5 -2
- package/src/Field/utils/resolveField.ts +58 -0
- package/src/Field/utils/useField.ts +17 -3
- package/src/FieldArray/BaseFieldArray.tsx +97 -0
- package/src/FieldArray/FieldArray.stories.js +2 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/ArrayContainerDisplay.tsx +45 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/ArrayDisplay.stories.js +14 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/ArrayItemDisplay.tsx +370 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/ArrayItemHeader.tsx +15 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/__stories__/Cards.tsx +88 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/__stories__/Default.tsx +93 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/__stories__/ReadOnly.tsx +79 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/__stories__/ReadOnlyCards.tsx +75 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/__stories__/Sortable.tsx +93 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/__stories__/SortableCards.tsx +88 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/index.test.tsx +44 -0
- package/src/FieldArray/FormDialog/ArrayDisplay/index.tsx +67 -0
- package/src/FieldArray/FormDialog/ArrayEditModal.tsx +241 -0
- package/src/FieldArray/FormDialog/index.tsx +302 -0
- package/src/FieldArray/__stories__/CardsWithError.tsx +110 -0
- package/src/FieldArray/__stories__/Default.tsx +2 -1
- package/src/FieldArray/__stories__/TableWithError.tsx +111 -0
- package/src/FieldArray/__stories__/WithExactLength.tsx +2 -1
- package/src/FieldArray/__stories__/WithModal.tsx +188 -0
- package/src/FieldArray/__tests__/fieldset-multiplicity.spec.tsx +271 -0
- package/src/FieldArray/__tests__/multiplicity-attachment.spec.tsx +280 -0
- package/src/FieldArray/__tests__/multiplicity-optional.spec.tsx +232 -0
- package/src/FieldArray/__tests__/multiplicity-required.spec.tsx +170 -0
- package/src/FieldArray/__tests__/nested-fieldset-multiplicity.spec.tsx +627 -0
- package/src/FieldArray/__tests__/preference-multiple-choice.spec.tsx +222 -0
- package/src/FieldArray/index.spec.tsx +355 -0
- package/src/FieldArray/index.test.tsx +19 -0
- package/src/FieldArray/index.tsx +82 -64
- package/src/FieldObject/index.tsx +45 -32
- package/src/Fieldset/FieldsetWithContext.tsx +1 -1
- package/src/Fieldset/index.tsx +6 -6
- package/src/Fieldset/types.tsx +2 -2
- package/src/FormBuilder/FormBuilder.stories.js +5 -0
- package/src/FormBuilder/__stories__/AutoErrorGrouping.tsx +63 -0
- package/src/FormBuilder/__stories__/Default.tsx +1 -1
- package/src/FormBuilder/__stories__/ErrorGrouping.tsx +43 -0
- package/src/FormBuilder/{FormBuilder.mdx → doc.mdx} +27 -35
- package/src/FormBuilder/index.test.tsx +12 -0
- package/src/FormBuilder/index.tsx +228 -92
- package/src/FormBuilder/interaction.test.tsx +40 -0
- package/src/FormBuilder/scenarios.test.tsx +1043 -132
- package/src/FormContext.tsx +7 -3
- package/src/MultiplicityField/MultiplicityField.stories.js +3 -0
- package/src/MultiplicityField/__stories__/Default.tsx +1 -1
- package/src/MultiplicityField/__stories__/PreviewDisplay.tsx +2 -4
- package/src/MultiplicityField/__stories__/WithExactLength.tsx +1 -1
- package/src/MultiplicityField/__stories__/WithMaxLength.tsx +1 -1
- package/src/MultiplicityField/__stories__/WithMinAndMaxLength.tsx +1 -1
- package/src/MultiplicityField/__stories__/WithMinLength.tsx +1 -1
- package/src/MultiplicityField/add-objects.tsx +23 -30
- package/src/MultiplicityField/{MultiplicityField.mdx → doc.mdx} +112 -98
- package/src/MultiplicityField/index.test.tsx +4 -0
- package/src/MultiplicityField/index.tsx +20 -14
- package/src/MultiplicityField/types.ts +6 -3
- package/src/Questions/Questions.stories.js +3 -0
- package/src/Questions/Questions.tsx +6 -6
- package/src/Questions/QuestionsContext.tsx +1 -1
- package/src/Questions/Step/Step.tsx +1 -1
- package/src/Questions/Step/StepArrayReview.tsx +3 -3
- package/src/Questions/Step/StepContext.tsx +1 -1
- package/src/Questions/Step/StepDescription.tsx +2 -1
- package/src/Questions/Step/StepForm.tsx +2 -2
- package/src/Questions/Step/StepQuote.tsx +2 -1
- package/src/Questions/Step/StepTitle.tsx +5 -3
- package/src/Questions/Step/getAddMoreFields.tsx +2 -2
- package/src/Questions/Step/types.tsx +1 -1
- package/src/Questions/__snapshots__/index.spec.tsx.snap +11 -5
- package/src/Questions/__stories__/Default.tsx +1 -1
- package/src/Questions/{index.mdx → doc.mdx} +30 -53
- package/src/Questions/getNextStep.tsx +1 -1
- package/src/Questions/index.spec.tsx +14 -2
- package/src/Questions/index.test.tsx +4 -0
- package/src/Questions/types.tsx +1 -1
- package/src/create-simple-form.mdx +2 -6
- package/src/{index.mdx → doc.mdx} +29 -18
- package/src/hooks/__tests__/useFieldFocusManager.spec.tsx +1079 -0
- package/src/hooks/__tests__/utils.spec.ts +568 -0
- package/src/hooks/useFieldFocusManager.ts +162 -0
- package/src/hooks/utils.ts +122 -0
- package/src/inputs/AutoCompleteInput/AutoComplete.stories.js +3 -0
- package/src/inputs/AutoCompleteInput/__stories__/Default.tsx +3 -11
- package/src/inputs/AutoCompleteInput/__stories__/Multiple.tsx +2 -8
- package/src/inputs/AutoCompleteInput/{index.mdx → doc.mdx} +2 -13
- package/src/inputs/AutoCompleteInput/index.test.tsx +4 -0
- package/src/inputs/AutoCompleteInput/index.tsx +34 -32
- package/src/inputs/Checkboxes/Checkboxes.stories.js +3 -0
- package/src/inputs/Checkboxes/__stories__/Conditional.tsx +1 -1
- package/src/inputs/Checkboxes/__stories__/Default.tsx +1 -1
- package/src/inputs/Checkboxes/__stories__/WithDivider.tsx +1 -1
- package/src/inputs/Checkboxes/{index.mdx → doc.mdx} +5 -15
- package/src/inputs/Checkboxes/index.test.tsx +4 -0
- package/src/inputs/Checkboxes/index.tsx +89 -78
- package/src/inputs/DateInput/DateInput.stories.js +7 -0
- package/src/inputs/DateInput/__stories__/Default.tsx +8 -13
- package/src/inputs/DateInput/__stories__/WithDefaultValue.tsx +26 -0
- package/src/inputs/DateInput/__stories__/WithInitialValue.tsx +28 -0
- package/src/inputs/DateInput/__stories__/WithWrongDefaultValue.tsx +26 -0
- package/src/inputs/DateInput/__stories__/WithWrongInitialValue.tsx +28 -0
- package/src/inputs/DateInput/{index.mdx → doc.mdx} +1 -8
- package/src/inputs/DateInput/index.test.tsx +20 -0
- package/src/inputs/DateInput/index.tsx +75 -25
- package/src/inputs/DateTimeInput/DateTimeInput.stories.js +14 -0
- package/src/inputs/DateTimeInput/__stories__/Default.tsx +25 -0
- package/src/inputs/DateTimeInput/__stories__/WithDefaultValue.tsx +26 -0
- package/src/inputs/DateTimeInput/__stories__/WithInitialValue.tsx +28 -0
- package/src/inputs/DateTimeInput/__stories__/WithWrongDefaultValue.tsx +26 -0
- package/src/inputs/DateTimeInput/__stories__/WithWrongInitialValue.tsx +28 -0
- package/src/inputs/DateTimeInput/doc.mdx +16 -0
- package/src/inputs/DateTimeInput/index.test.tsx +40 -0
- package/src/inputs/DateTimeInput/index.tsx +246 -0
- package/src/inputs/FileInput/FileInput.stories.js +4 -0
- package/src/inputs/FileInput/__stories__/Default.tsx +1 -1
- package/src/inputs/FileInput/__stories__/WithBorderAndLink.tsx +34 -0
- package/src/inputs/FileInput/{index.mdx → doc.mdx} +1 -5
- package/src/inputs/FileInput/index.test.tsx +8 -0
- package/src/inputs/FileInput/index.tsx +102 -43
- package/src/inputs/ImageInput/ImageInput.stories.js +5 -2
- package/src/inputs/ImageInput/__stories__/Default.tsx +1 -1
- package/src/inputs/ImageInput/__stories__/MaxSize.tsx +5 -4
- package/src/inputs/ImageInput/__stories__/{WithInvalidImageSize.tsx → WithInitialValues.tsx} +12 -3
- package/src/inputs/ImageInput/__stories__/WithInvalidImageDimension.tsx +3 -1
- package/src/inputs/ImageInput/__stories__/logo.d.ts +4 -0
- package/src/inputs/ImageInput/__stories__/logo.png +0 -0
- package/src/inputs/ImageInput/doc.mdx +23 -0
- package/src/inputs/ImageInput/index.test.tsx +8 -4
- package/src/inputs/ImageInput/index.tsx +105 -52
- package/src/inputs/Input/Input.stories.js +7 -0
- package/src/inputs/Input/__stories__/AFM.tsx +1 -1
- package/src/inputs/Input/__stories__/AMKA.tsx +23 -0
- package/src/inputs/Input/__stories__/Boolean.tsx +1 -1
- package/src/inputs/Input/__stories__/Email.tsx +23 -0
- package/src/inputs/Input/__stories__/IBAN.tsx +1 -1
- package/src/inputs/Input/__stories__/Integer.tsx +1 -1
- package/src/inputs/Input/__stories__/LandlineNumber.tsx +3 -2
- package/src/inputs/Input/__stories__/MobilePhone.tsx +2 -1
- package/src/inputs/Input/__stories__/PhoneNumber.tsx +2 -1
- package/src/inputs/Input/__stories__/PostalCode.tsx +2 -1
- package/src/inputs/Input/__stories__/Rate.tsx +25 -0
- package/src/inputs/Input/__stories__/String.tsx +1 -1
- package/src/inputs/Input/__stories__/StringWithTrimValidation.tsx +26 -0
- package/src/inputs/Input/__stories__/TextWithLimit.tsx +2 -1
- package/src/inputs/Input/doc.mdx +56 -0
- package/src/inputs/Input/index.test.tsx +20 -0
- package/src/inputs/Input/index.tsx +42 -17
- package/src/inputs/Label/Label.stories.js +3 -0
- package/src/inputs/Label/__stories__/Default.tsx +1 -1
- package/src/inputs/Label/doc.mdx +14 -0
- package/src/inputs/Label/index.test.tsx +4 -0
- package/src/inputs/Label/index.tsx +3 -7
- package/src/inputs/OtpInput/OtpInput.stories.js +3 -0
- package/src/inputs/OtpInput/__stories__/Default.tsx +1 -1
- package/src/inputs/OtpInput/{index.mdx → doc.mdx} +1 -8
- package/src/inputs/OtpInput/index.test.tsx +4 -0
- package/src/inputs/OtpInput/index.tsx +45 -34
- package/src/inputs/Radio/Radio.stories.js +3 -0
- package/src/inputs/Radio/__stories__/Conditional.tsx +1 -1
- package/src/inputs/Radio/__stories__/Default.tsx +1 -1
- package/src/inputs/Radio/__stories__/WithDivider.tsx +1 -1
- package/src/inputs/Radio/{index.mdx → doc.mdx} +5 -15
- package/src/inputs/Radio/index.test.tsx +4 -0
- package/src/inputs/Radio/index.tsx +77 -63
- package/src/inputs/Select/Select.stories.js +3 -0
- package/src/inputs/Select/__stories__/Default.tsx +1 -1
- package/src/inputs/Select/{index.mdx → doc.mdx} +1 -5
- package/src/inputs/Select/index.test.tsx +4 -0
- package/src/inputs/Select/index.tsx +22 -9
- package/src/{Field/utils/index.ts → inputs/registry.ts} +11 -1
- package/src/installation.mdx +2 -5
- package/src/lazy.ts +56 -0
- package/src/registry.ts +179 -0
- package/src/types.tsx +16 -7
- package/src/utils.ts +43 -10
- package/src/validators/index.ts +134 -100
- package/src/validators/types.ts +1 -1
- package/src/validators/utils/amka.ts +39 -0
- package/src/validators/utils/date.ts +131 -0
- package/src/validators/utils/datetime.ts +222 -0
- package/src/validators/utils/email.ts +11 -0
- package/src/validators/utils/file.ts +35 -19
- package/src/validators/utils/iban.ts +2 -2
- package/src/validators/utils/image.ts +2 -2
- package/src/validators/utils/index.ts +15 -6
- package/src/validators/utils/int.ts +2 -2
- package/src/validators/utils/number.ts +2 -2
- package/src/validators/utils/otp.ts +2 -2
- package/src/validators/utils/phone.ts +3 -3
- package/src/validators/utils/postal_code.ts +3 -3
- package/src/validators/utils/text_limit.ts +2 -2
- package/src/validators/utils/uuid4.ts +2 -1
- package/src/validators/validators.spec.ts +3 -3
- package/types.d.ts +13 -7
- package/types.js +1 -0
- package/utils.d.ts +4 -1
- package/utils.js +56 -0
- package/validators/index.d.ts +6 -6
- package/validators/index.js +112 -168
- package/validators/types.d.ts +1 -1
- package/validators/types.js +0 -0
- package/validators/utils/afm.js +19 -0
- package/validators/utils/amka.d.ts +6 -0
- package/validators/utils/amka.js +27 -0
- package/validators/utils/date.d.ts +9 -0
- package/validators/utils/date.js +95 -0
- package/validators/utils/datetime.d.ts +9 -0
- package/validators/utils/datetime.js +121 -0
- package/validators/utils/email.d.ts +5 -0
- package/validators/utils/email.js +10 -0
- package/validators/utils/file.d.ts +2 -2
- package/validators/utils/file.js +31 -0
- package/validators/utils/iban.d.ts +2 -2
- package/validators/utils/iban.js +104 -0
- package/validators/utils/image.d.ts +2 -2
- package/validators/utils/image.js +65 -0
- package/validators/utils/index.d.ts +14 -11
- package/validators/utils/index.js +59 -88
- package/validators/utils/int.d.ts +1 -1
- package/validators/utils/int.js +13 -0
- package/validators/utils/number.d.ts +1 -1
- package/validators/utils/number.js +12 -0
- package/validators/utils/otp.d.ts +2 -2
- package/validators/utils/otp.js +21 -0
- package/validators/utils/phone.d.ts +3 -3
- package/validators/utils/phone.js +198 -0
- package/validators/utils/postal_code.d.ts +3 -3
- package/validators/utils/postal_code.js +18 -0
- package/validators/utils/text_limit.d.ts +2 -2
- package/validators/utils/text_limit.js +34 -0
- package/validators/utils/uuid4.js +14 -0
- package/Field/FieldBase/index.js +0 -109
- package/Field/FieldBase/package.json +0 -6
- package/Field/FieldBase.js.map +0 -7
- package/Field/FieldBaseContainer/index.js +0 -32
- package/Field/FieldBaseContainer/package.json +0 -6
- package/Field/FieldBaseContainer.js.map +0 -7
- package/Field/FieldConditional/index.js +0 -85
- package/Field/FieldConditional/package.json +0 -6
- package/Field/FieldConditional.js.map +0 -7
- package/Field/index.js.map +0 -7
- package/Field/package.json +0 -6
- package/Field/types/index.js +0 -1
- package/Field/types/package.json +0 -6
- package/Field/types.js.map +0 -7
- package/Field/utils/calculateField/index.js +0 -27
- package/Field/utils/calculateField/package.json +0 -6
- package/Field/utils/calculateField.d.ts +0 -2
- package/Field/utils/calculateField.js.map +0 -7
- package/Field/utils/evaluateFieldWithConditions/index.js +0 -26
- package/Field/utils/evaluateFieldWithConditions/package.json +0 -6
- package/Field/utils/evaluateFieldWithConditions.js.map +0 -7
- package/Field/utils/index.js +0 -78
- package/Field/utils/index.js.map +0 -7
- package/Field/utils/package.json +0 -6
- package/Field/utils/useField/index.js +0 -51
- package/Field/utils/useField/package.json +0 -6
- package/Field/utils/useField.js.map +0 -7
- package/FieldArray/FieldArray.stories/index.js +0 -14
- package/FieldArray/FieldArray.stories/package.json +0 -6
- package/FieldArray/FieldArray.stories.d.ts +0 -9
- package/FieldArray/FieldArray.stories.js.map +0 -7
- package/FieldArray/__stories__/Default/index.js +0 -95
- package/FieldArray/__stories__/Default/package.json +0 -6
- package/FieldArray/__stories__/Default.d.ts +0 -2
- package/FieldArray/__stories__/Default.js.map +0 -7
- package/FieldArray/__stories__/WithExactLength/index.js +0 -95
- package/FieldArray/__stories__/WithExactLength/package.json +0 -6
- package/FieldArray/__stories__/WithExactLength.d.ts +0 -2
- package/FieldArray/__stories__/WithExactLength.js.map +0 -7
- package/FieldArray/index.js.map +0 -7
- package/FieldArray/index.test.d.ts +0 -1
- package/FieldArray/package.json +0 -6
- package/FieldObject/index.js.map +0 -7
- package/FieldObject/package.json +0 -6
- package/Fieldset/FieldsetWithContext/index.js +0 -31
- package/Fieldset/FieldsetWithContext/package.json +0 -6
- package/Fieldset/FieldsetWithContext.js.map +0 -7
- package/Fieldset/index.js.map +0 -7
- package/Fieldset/package.json +0 -6
- package/Fieldset/types/index.js +0 -1
- package/Fieldset/types/package.json +0 -6
- package/Fieldset/types.js.map +0 -7
- package/Form.stories/index.js +0 -7
- package/Form.stories/package.json +0 -6
- package/Form.stories.d.ts +0 -4
- package/Form.stories.js.map +0 -7
- package/FormBuilder/FormBuilder.stories/index.js +0 -12
- package/FormBuilder/FormBuilder.stories/package.json +0 -6
- package/FormBuilder/FormBuilder.stories.d.ts +0 -8
- package/FormBuilder/FormBuilder.stories.js.map +0 -7
- package/FormBuilder/__stories__/Default/index.js +0 -32
- package/FormBuilder/__stories__/Default/package.json +0 -6
- package/FormBuilder/__stories__/Default.d.ts +0 -3
- package/FormBuilder/__stories__/Default.js.map +0 -7
- package/FormBuilder/index.js.map +0 -7
- package/FormBuilder/index.test.d.ts +0 -1
- package/FormBuilder/package.json +0 -6
- package/FormBuilder/scenarios.test.d.ts +0 -88
- package/FormContext/index.js +0 -9
- package/FormContext/package.json +0 -6
- package/FormContext.js.map +0 -7
- package/MultiplicityField/MultiplicityField.stories/index.js +0 -22
- package/MultiplicityField/MultiplicityField.stories/package.json +0 -6
- package/MultiplicityField/MultiplicityField.stories.d.ts +0 -13
- package/MultiplicityField/MultiplicityField.stories.js.map +0 -7
- package/MultiplicityField/__stories__/Default/index.js +0 -100
- package/MultiplicityField/__stories__/Default/package.json +0 -6
- package/MultiplicityField/__stories__/Default.d.ts +0 -2
- package/MultiplicityField/__stories__/Default.js.map +0 -7
- package/MultiplicityField/__stories__/PreviewDisplay/index.js +0 -70
- package/MultiplicityField/__stories__/PreviewDisplay/package.json +0 -6
- package/MultiplicityField/__stories__/PreviewDisplay.d.ts +0 -2
- package/MultiplicityField/__stories__/PreviewDisplay.js.map +0 -7
- package/MultiplicityField/__stories__/WithExactLength/index.js +0 -97
- package/MultiplicityField/__stories__/WithExactLength/package.json +0 -6
- package/MultiplicityField/__stories__/WithExactLength.d.ts +0 -2
- package/MultiplicityField/__stories__/WithExactLength.js.map +0 -7
- package/MultiplicityField/__stories__/WithMaxLength/index.js +0 -100
- package/MultiplicityField/__stories__/WithMaxLength/package.json +0 -6
- package/MultiplicityField/__stories__/WithMaxLength.d.ts +0 -2
- package/MultiplicityField/__stories__/WithMaxLength.js.map +0 -7
- package/MultiplicityField/__stories__/WithMinAndMaxLength/index.js +0 -101
- package/MultiplicityField/__stories__/WithMinAndMaxLength/package.json +0 -6
- package/MultiplicityField/__stories__/WithMinAndMaxLength.d.ts +0 -2
- package/MultiplicityField/__stories__/WithMinAndMaxLength.js.map +0 -7
- package/MultiplicityField/__stories__/WithMinLength/index.js +0 -100
- package/MultiplicityField/__stories__/WithMinLength/package.json +0 -6
- package/MultiplicityField/__stories__/WithMinLength.d.ts +0 -2
- package/MultiplicityField/__stories__/WithMinLength.js.map +0 -7
- package/MultiplicityField/add-objects/index.js +0 -151
- package/MultiplicityField/add-objects/package.json +0 -6
- package/MultiplicityField/add-objects.js.map +0 -7
- package/MultiplicityField/index.js.map +0 -7
- package/MultiplicityField/index.test.d.ts +0 -1
- package/MultiplicityField/package.json +0 -6
- package/MultiplicityField/types/index.js +0 -1
- package/MultiplicityField/types/package.json +0 -6
- package/MultiplicityField/types.js.map +0 -7
- package/Questions/Questions/index.js +0 -66
- package/Questions/Questions/package.json +0 -6
- package/Questions/Questions.js.map +0 -7
- package/Questions/Questions.stories/index.js +0 -12
- package/Questions/Questions.stories/package.json +0 -6
- package/Questions/Questions.stories.d.ts +0 -8
- package/Questions/Questions.stories.js.map +0 -7
- package/Questions/QuestionsContext/index.js +0 -11
- package/Questions/QuestionsContext/package.json +0 -6
- package/Questions/QuestionsContext.js.map +0 -7
- package/Questions/Step/ReviewStep/index.js +0 -38
- package/Questions/Step/ReviewStep/package.json +0 -6
- package/Questions/Step/ReviewStep.js.map +0 -7
- package/Questions/Step/Step/index.js +0 -54
- package/Questions/Step/Step/package.json +0 -6
- package/Questions/Step/Step.js.map +0 -7
- package/Questions/Step/StepArrayReview/index.js +0 -42
- package/Questions/Step/StepArrayReview/package.json +0 -6
- package/Questions/Step/StepArrayReview.js.map +0 -7
- package/Questions/Step/StepContext/index.js +0 -23
- package/Questions/Step/StepContext/package.json +0 -6
- package/Questions/Step/StepContext.js.map +0 -7
- package/Questions/Step/StepDescription/index.js +0 -24
- package/Questions/Step/StepDescription/package.json +0 -6
- package/Questions/Step/StepDescription.js.map +0 -7
- package/Questions/Step/StepForm/index.js +0 -34
- package/Questions/Step/StepForm/package.json +0 -6
- package/Questions/Step/StepForm.js.map +0 -7
- package/Questions/Step/StepQuote/index.js +0 -11
- package/Questions/Step/StepQuote/package.json +0 -6
- package/Questions/Step/StepQuote.js.map +0 -7
- package/Questions/Step/StepTitle/index.js +0 -43
- package/Questions/Step/StepTitle/package.json +0 -6
- package/Questions/Step/StepTitle.js.map +0 -7
- package/Questions/Step/getAddMoreFields/index.js +0 -29
- package/Questions/Step/getAddMoreFields/package.json +0 -6
- package/Questions/Step/getAddMoreFields.js.map +0 -7
- package/Questions/Step/index.js.map +0 -7
- package/Questions/Step/package.json +0 -6
- package/Questions/Step/types/index.js +0 -1
- package/Questions/Step/types/package.json +0 -6
- package/Questions/Step/types.js.map +0 -7
- package/Questions/__stories__/Default/index.js +0 -108
- package/Questions/__stories__/Default/package.json +0 -6
- package/Questions/__stories__/Default.d.ts +0 -3
- package/Questions/__stories__/Default.js.map +0 -7
- package/Questions/getNextStep/index.js +0 -22
- package/Questions/getNextStep/package.json +0 -6
- package/Questions/getNextStep.js.map +0 -7
- package/Questions/index.js.map +0 -7
- package/Questions/index.spec.d.ts +0 -1
- package/Questions/index.test.d.ts +0 -1
- package/Questions/package.json +0 -6
- package/Questions/types/index.js +0 -1
- package/Questions/types/package.json +0 -6
- package/Questions/types.js.map +0 -7
- package/cjs/Field/FieldBase/index.js +0 -142
- package/cjs/Field/FieldBase.js.map +0 -7
- package/cjs/Field/FieldBaseContainer/index.js +0 -65
- package/cjs/Field/FieldBaseContainer.js.map +0 -7
- package/cjs/Field/FieldConditional/index.js +0 -118
- package/cjs/Field/FieldConditional.js.map +0 -7
- package/cjs/Field/index.js +0 -139
- package/cjs/Field/index.js.map +0 -7
- package/cjs/Field/types/index.js +0 -16
- package/cjs/Field/types.js.map +0 -7
- package/cjs/Field/utils/calculateField/index.js +0 -50
- package/cjs/Field/utils/calculateField.js.map +0 -7
- package/cjs/Field/utils/evaluateFieldWithConditions/index.js +0 -49
- package/cjs/Field/utils/evaluateFieldWithConditions.js.map +0 -7
- package/cjs/Field/utils/index.js +0 -113
- package/cjs/Field/utils/index.js.map +0 -7
- package/cjs/Field/utils/useField/index.js +0 -74
- package/cjs/Field/utils/useField.js.map +0 -7
- package/cjs/FieldArray/FieldArray.stories/index.js +0 -48
- package/cjs/FieldArray/FieldArray.stories.js.map +0 -7
- package/cjs/FieldArray/__stories__/Default/index.js +0 -128
- package/cjs/FieldArray/__stories__/Default.js.map +0 -7
- package/cjs/FieldArray/__stories__/WithExactLength/index.js +0 -128
- package/cjs/FieldArray/__stories__/WithExactLength.js.map +0 -7
- package/cjs/FieldArray/index.js +0 -109
- package/cjs/FieldArray/index.js.map +0 -7
- package/cjs/FieldObject/index.js +0 -102
- package/cjs/FieldObject/index.js.map +0 -7
- package/cjs/Fieldset/FieldsetWithContext/index.js +0 -59
- package/cjs/Fieldset/FieldsetWithContext.js.map +0 -7
- package/cjs/Fieldset/index.js +0 -66
- package/cjs/Fieldset/index.js.map +0 -7
- package/cjs/Fieldset/types/index.js +0 -16
- package/cjs/Fieldset/types.js.map +0 -7
- package/cjs/Form.stories/index.js +0 -26
- package/cjs/Form.stories.js.map +0 -7
- package/cjs/FormBuilder/FormBuilder.stories/index.js +0 -45
- package/cjs/FormBuilder/FormBuilder.stories.js.map +0 -7
- package/cjs/FormBuilder/__stories__/Default/index.js +0 -65
- package/cjs/FormBuilder/__stories__/Default.js.map +0 -7
- package/cjs/FormBuilder/index.js +0 -194
- package/cjs/FormBuilder/index.js.map +0 -7
- package/cjs/FormContext/index.js +0 -32
- package/cjs/FormContext.js.map +0 -7
- package/cjs/MultiplicityField/MultiplicityField.stories/index.js +0 -60
- package/cjs/MultiplicityField/MultiplicityField.stories.js.map +0 -7
- package/cjs/MultiplicityField/__stories__/Default/index.js +0 -133
- package/cjs/MultiplicityField/__stories__/Default.js.map +0 -7
- package/cjs/MultiplicityField/__stories__/PreviewDisplay/index.js +0 -86
- package/cjs/MultiplicityField/__stories__/PreviewDisplay.js.map +0 -7
- package/cjs/MultiplicityField/__stories__/WithExactLength/index.js +0 -130
- package/cjs/MultiplicityField/__stories__/WithExactLength.js.map +0 -7
- package/cjs/MultiplicityField/__stories__/WithMaxLength/index.js +0 -133
- package/cjs/MultiplicityField/__stories__/WithMaxLength.js.map +0 -7
- package/cjs/MultiplicityField/__stories__/WithMinAndMaxLength/index.js +0 -134
- package/cjs/MultiplicityField/__stories__/WithMinAndMaxLength.js.map +0 -7
- package/cjs/MultiplicityField/__stories__/WithMinLength/index.js +0 -133
- package/cjs/MultiplicityField/__stories__/WithMinLength.js.map +0 -7
- package/cjs/MultiplicityField/add-objects/index.js +0 -179
- package/cjs/MultiplicityField/add-objects.js.map +0 -7
- package/cjs/MultiplicityField/index.js +0 -152
- package/cjs/MultiplicityField/index.js.map +0 -7
- package/cjs/MultiplicityField/types/index.js +0 -16
- package/cjs/MultiplicityField/types.js.map +0 -7
- package/cjs/Questions/Questions/index.js +0 -99
- package/cjs/Questions/Questions.js.map +0 -7
- package/cjs/Questions/Questions.stories/index.js +0 -45
- package/cjs/Questions/Questions.stories.js.map +0 -7
- package/cjs/Questions/QuestionsContext/index.js +0 -34
- package/cjs/Questions/QuestionsContext.js.map +0 -7
- package/cjs/Questions/Step/ReviewStep/index.js +0 -65
- package/cjs/Questions/Step/ReviewStep.js.map +0 -7
- package/cjs/Questions/Step/Step/index.js +0 -87
- package/cjs/Questions/Step/Step.js.map +0 -7
- package/cjs/Questions/Step/StepArrayReview/index.js +0 -67
- package/cjs/Questions/Step/StepArrayReview.js.map +0 -7
- package/cjs/Questions/Step/StepContext/index.js +0 -46
- package/cjs/Questions/Step/StepContext.js.map +0 -7
- package/cjs/Questions/Step/StepDescription/index.js +0 -58
- package/cjs/Questions/Step/StepDescription.js.map +0 -7
- package/cjs/Questions/Step/StepForm/index.js +0 -67
- package/cjs/Questions/Step/StepForm.js.map +0 -7
- package/cjs/Questions/Step/StepQuote/index.js +0 -44
- package/cjs/Questions/Step/StepQuote.js.map +0 -7
- package/cjs/Questions/Step/StepTitle/index.js +0 -76
- package/cjs/Questions/Step/StepTitle.js.map +0 -7
- package/cjs/Questions/Step/getAddMoreFields/index.js +0 -52
- package/cjs/Questions/Step/getAddMoreFields.js.map +0 -7
- package/cjs/Questions/Step/index.js +0 -59
- package/cjs/Questions/Step/index.js.map +0 -7
- package/cjs/Questions/Step/types/index.js +0 -16
- package/cjs/Questions/Step/types.js.map +0 -7
- package/cjs/Questions/__stories__/Default/index.js +0 -136
- package/cjs/Questions/__stories__/Default.js.map +0 -7
- package/cjs/Questions/getNextStep/index.js +0 -45
- package/cjs/Questions/getNextStep.js.map +0 -7
- package/cjs/Questions/index.js +0 -31
- package/cjs/Questions/index.js.map +0 -7
- package/cjs/Questions/types/index.js +0 -16
- package/cjs/Questions/types.js.map +0 -7
- package/cjs/index.js +0 -49
- package/cjs/index.js.map +0 -7
- package/cjs/inputs/AutoCompleteInput/AutoComplete.stories/index.js +0 -48
- package/cjs/inputs/AutoCompleteInput/AutoComplete.stories.js.map +0 -7
- package/cjs/inputs/AutoCompleteInput/__stories__/Default/index.js +0 -83
- package/cjs/inputs/AutoCompleteInput/__stories__/Default.js.map +0 -7
- package/cjs/inputs/AutoCompleteInput/__stories__/Multiple/index.js +0 -83
- package/cjs/inputs/AutoCompleteInput/__stories__/Multiple.js.map +0 -7
- package/cjs/inputs/AutoCompleteInput/index.js +0 -97
- package/cjs/inputs/AutoCompleteInput/index.js.map +0 -7
- package/cjs/inputs/Checkboxes/Checkboxes.stories/index.js +0 -51
- package/cjs/inputs/Checkboxes/Checkboxes.stories.js.map +0 -7
- package/cjs/inputs/Checkboxes/__stories__/Conditional/index.js +0 -133
- package/cjs/inputs/Checkboxes/__stories__/Conditional.js.map +0 -7
- package/cjs/inputs/Checkboxes/__stories__/Default/index.js +0 -77
- package/cjs/inputs/Checkboxes/__stories__/Default.js.map +0 -7
- package/cjs/inputs/Checkboxes/__stories__/WithDivider/index.js +0 -78
- package/cjs/inputs/Checkboxes/__stories__/WithDivider.js.map +0 -7
- package/cjs/inputs/Checkboxes/index.js +0 -107
- package/cjs/inputs/Checkboxes/index.js.map +0 -7
- package/cjs/inputs/DateInput/DateInput.stories/index.js +0 -45
- package/cjs/inputs/DateInput/DateInput.stories.js.map +0 -7
- package/cjs/inputs/DateInput/__stories__/Default/index.js +0 -61
- package/cjs/inputs/DateInput/__stories__/Default.js.map +0 -7
- package/cjs/inputs/DateInput/index.js +0 -154
- package/cjs/inputs/DateInput/index.js.map +0 -7
- package/cjs/inputs/FileInput/FileInput.stories/index.js +0 -45
- package/cjs/inputs/FileInput/FileInput.stories.js.map +0 -7
- package/cjs/inputs/FileInput/__stories__/Default/index.js +0 -61
- package/cjs/inputs/FileInput/__stories__/Default.js.map +0 -7
- package/cjs/inputs/FileInput/index.js +0 -81
- package/cjs/inputs/FileInput/index.js.map +0 -7
- package/cjs/inputs/ImageInput/ImageInput.stories/index.js +0 -51
- package/cjs/inputs/ImageInput/ImageInput.stories.js.map +0 -7
- package/cjs/inputs/ImageInput/__stories__/Default/index.js +0 -63
- package/cjs/inputs/ImageInput/__stories__/Default.js.map +0 -7
- package/cjs/inputs/ImageInput/__stories__/MaxSize/index.js +0 -69
- package/cjs/inputs/ImageInput/__stories__/MaxSize.js.map +0 -7
- package/cjs/inputs/ImageInput/__stories__/WithInvalidImageDimension/index.js +0 -71
- package/cjs/inputs/ImageInput/__stories__/WithInvalidImageDimension.js.map +0 -7
- package/cjs/inputs/ImageInput/__stories__/WithInvalidImageSize/index.js +0 -68
- package/cjs/inputs/ImageInput/__stories__/WithInvalidImageSize.js.map +0 -7
- package/cjs/inputs/ImageInput/index.js +0 -94
- package/cjs/inputs/ImageInput/index.js.map +0 -7
- package/cjs/inputs/Input/Input.stories/index.js +0 -72
- package/cjs/inputs/Input/Input.stories.js.map +0 -7
- package/cjs/inputs/Input/__stories__/AFM/index.js +0 -63
- package/cjs/inputs/Input/__stories__/AFM.js.map +0 -7
- package/cjs/inputs/Input/__stories__/Boolean/index.js +0 -64
- package/cjs/inputs/Input/__stories__/Boolean.js.map +0 -7
- package/cjs/inputs/Input/__stories__/IBAN/index.js +0 -64
- package/cjs/inputs/Input/__stories__/IBAN.js.map +0 -7
- package/cjs/inputs/Input/__stories__/Integer/index.js +0 -78
- package/cjs/inputs/Input/__stories__/Integer.js.map +0 -7
- package/cjs/inputs/Input/__stories__/LandlineNumber/index.js +0 -67
- package/cjs/inputs/Input/__stories__/LandlineNumber.js.map +0 -7
- package/cjs/inputs/Input/__stories__/MobilePhone/index.js +0 -67
- package/cjs/inputs/Input/__stories__/MobilePhone.js.map +0 -7
- package/cjs/inputs/Input/__stories__/PhoneNumber/index.js +0 -66
- package/cjs/inputs/Input/__stories__/PhoneNumber.js.map +0 -7
- package/cjs/inputs/Input/__stories__/PostalCode/index.js +0 -64
- package/cjs/inputs/Input/__stories__/PostalCode.js.map +0 -7
- package/cjs/inputs/Input/__stories__/String/index.js +0 -64
- package/cjs/inputs/Input/__stories__/String.js.map +0 -7
- package/cjs/inputs/Input/__stories__/TextWithLimit/index.js +0 -64
- package/cjs/inputs/Input/__stories__/TextWithLimit.js.map +0 -7
- package/cjs/inputs/Input/index.js +0 -103
- package/cjs/inputs/Input/index.js.map +0 -7
- package/cjs/inputs/Input/inputsInputScenarios/index.js +0 -439
- package/cjs/inputs/Input/inputsInputScenarios.js.map +0 -7
- package/cjs/inputs/Label/Label.stories/index.js +0 -45
- package/cjs/inputs/Label/Label.stories.js.map +0 -7
- package/cjs/inputs/Label/__stories__/Default/index.js +0 -72
- package/cjs/inputs/Label/__stories__/Default.js.map +0 -7
- package/cjs/inputs/Label/index.js +0 -50
- package/cjs/inputs/Label/index.js.map +0 -7
- package/cjs/inputs/OtpInput/OtpInput.stories/index.js +0 -45
- package/cjs/inputs/OtpInput/OtpInput.stories.js.map +0 -7
- package/cjs/inputs/OtpInput/__stories__/Default/index.js +0 -64
- package/cjs/inputs/OtpInput/__stories__/Default.js.map +0 -7
- package/cjs/inputs/OtpInput/index.js +0 -180
- package/cjs/inputs/OtpInput/index.js.map +0 -7
- package/cjs/inputs/Radio/Radio.stories/index.js +0 -51
- package/cjs/inputs/Radio/Radio.stories.js.map +0 -7
- package/cjs/inputs/Radio/__stories__/Conditional/index.js +0 -133
- package/cjs/inputs/Radio/__stories__/Conditional.js.map +0 -7
- package/cjs/inputs/Radio/__stories__/Default/index.js +0 -81
- package/cjs/inputs/Radio/__stories__/Default.js.map +0 -7
- package/cjs/inputs/Radio/__stories__/WithDivider/index.js +0 -82
- package/cjs/inputs/Radio/__stories__/WithDivider.js.map +0 -7
- package/cjs/inputs/Radio/index.js +0 -135
- package/cjs/inputs/Radio/index.js.map +0 -7
- package/cjs/inputs/Select/Select.stories/index.js +0 -45
- package/cjs/inputs/Select/Select.stories.js.map +0 -7
- package/cjs/inputs/Select/__stories__/Default/index.js +0 -86
- package/cjs/inputs/Select/__stories__/Default.js.map +0 -7
- package/cjs/inputs/Select/index.js +0 -57
- package/cjs/inputs/Select/index.js.map +0 -7
- package/cjs/inputs/index.js +0 -62
- package/cjs/inputs/index.js.map +0 -7
- package/cjs/inputs/inputsScenarios/index.js +0 -539
- package/cjs/inputs/inputsScenarios.js.map +0 -7
- package/cjs/internal/index.js +0 -38
- package/cjs/internal.js.map +0 -7
- package/cjs/lazy/index.js +0 -97
- package/cjs/lazy.js.map +0 -7
- package/cjs/locales/el/index.js +0 -35
- package/cjs/locales/el.js.map +0 -7
- package/cjs/registry/index.js +0 -185
- package/cjs/registry.js.map +0 -7
- package/cjs/types/index.js +0 -22
- package/cjs/types.js.map +0 -7
- package/cjs/utils/index.js +0 -82
- package/cjs/utils.js.map +0 -7
- package/cjs/validators/index.js +0 -195
- package/cjs/validators/index.js.map +0 -7
- package/cjs/validators/types/index.js +0 -16
- package/cjs/validators/types.js.map +0 -7
- package/cjs/validators/utils/afm/index.js +0 -55
- package/cjs/validators/utils/afm.js.map +0 -7
- package/cjs/validators/utils/file/index.js +0 -48
- package/cjs/validators/utils/file.js.map +0 -7
- package/cjs/validators/utils/iban/index.js +0 -142
- package/cjs/validators/utils/iban.js.map +0 -7
- package/cjs/validators/utils/image/index.js +0 -102
- package/cjs/validators/utils/image.js.map +0 -7
- package/cjs/validators/utils/index.js +0 -140
- package/cjs/validators/utils/index.js.map +0 -7
- package/cjs/validators/utils/int/index.js +0 -48
- package/cjs/validators/utils/int.js.map +0 -7
- package/cjs/validators/utils/number/index.js +0 -44
- package/cjs/validators/utils/number.js.map +0 -7
- package/cjs/validators/utils/otp/index.js +0 -54
- package/cjs/validators/utils/otp.js.map +0 -7
- package/cjs/validators/utils/phone/index.js +0 -198
- package/cjs/validators/utils/phone.js.map +0 -7
- package/cjs/validators/utils/postal_code/index.js +0 -54
- package/cjs/validators/utils/postal_code.js.map +0 -7
- package/cjs/validators/utils/text_limit/index.js +0 -69
- package/cjs/validators/utils/text_limit.js.map +0 -7
- package/cjs/validators/utils/uuid4/index.js +0 -46
- package/cjs/validators/utils/uuid4.js.map +0 -7
- package/index.js.map +0 -7
- package/inputs/AutoCompleteInput/AutoComplete.stories/index.js +0 -14
- package/inputs/AutoCompleteInput/AutoComplete.stories/package.json +0 -6
- package/inputs/AutoCompleteInput/AutoComplete.stories.d.ts +0 -9
- package/inputs/AutoCompleteInput/AutoComplete.stories.js.map +0 -7
- package/inputs/AutoCompleteInput/__stories__/Default/index.js +0 -50
- package/inputs/AutoCompleteInput/__stories__/Default/package.json +0 -6
- package/inputs/AutoCompleteInput/__stories__/Default.d.ts +0 -3
- package/inputs/AutoCompleteInput/__stories__/Default.js.map +0 -7
- package/inputs/AutoCompleteInput/__stories__/Multiple/index.js +0 -50
- package/inputs/AutoCompleteInput/__stories__/Multiple/package.json +0 -6
- package/inputs/AutoCompleteInput/__stories__/Multiple.d.ts +0 -3
- package/inputs/AutoCompleteInput/__stories__/Multiple.js.map +0 -7
- package/inputs/AutoCompleteInput/index.js.map +0 -7
- package/inputs/AutoCompleteInput/index.test.d.ts +0 -1
- package/inputs/AutoCompleteInput/package.json +0 -6
- package/inputs/Checkboxes/Checkboxes.stories/index.js +0 -16
- package/inputs/Checkboxes/Checkboxes.stories/package.json +0 -6
- package/inputs/Checkboxes/Checkboxes.stories.d.ts +0 -10
- package/inputs/Checkboxes/Checkboxes.stories.js.map +0 -7
- package/inputs/Checkboxes/__stories__/Conditional/index.js +0 -100
- package/inputs/Checkboxes/__stories__/Conditional/package.json +0 -6
- package/inputs/Checkboxes/__stories__/Conditional.d.ts +0 -3
- package/inputs/Checkboxes/__stories__/Conditional.js.map +0 -7
- package/inputs/Checkboxes/__stories__/Default/index.js +0 -44
- package/inputs/Checkboxes/__stories__/Default/package.json +0 -6
- package/inputs/Checkboxes/__stories__/Default.d.ts +0 -3
- package/inputs/Checkboxes/__stories__/Default.js.map +0 -7
- package/inputs/Checkboxes/__stories__/WithDivider/index.js +0 -45
- package/inputs/Checkboxes/__stories__/WithDivider/package.json +0 -6
- package/inputs/Checkboxes/__stories__/WithDivider.d.ts +0 -3
- package/inputs/Checkboxes/__stories__/WithDivider.js.map +0 -7
- package/inputs/Checkboxes/index.js.map +0 -7
- package/inputs/Checkboxes/index.test.d.ts +0 -1
- package/inputs/Checkboxes/package.json +0 -6
- package/inputs/DateInput/DateInput.stories/index.js +0 -12
- package/inputs/DateInput/DateInput.stories/package.json +0 -6
- package/inputs/DateInput/DateInput.stories.d.ts +0 -8
- package/inputs/DateInput/DateInput.stories.js.map +0 -7
- package/inputs/DateInput/__stories__/Default/index.js +0 -28
- package/inputs/DateInput/__stories__/Default/package.json +0 -6
- package/inputs/DateInput/__stories__/Default.d.ts +0 -3
- package/inputs/DateInput/__stories__/Default.js.map +0 -7
- package/inputs/DateInput/index.js.map +0 -7
- package/inputs/DateInput/index.test.d.ts +0 -1
- package/inputs/DateInput/package.json +0 -6
- package/inputs/FileInput/FileInput.stories/index.js +0 -12
- package/inputs/FileInput/FileInput.stories/package.json +0 -6
- package/inputs/FileInput/FileInput.stories.d.ts +0 -8
- package/inputs/FileInput/FileInput.stories.js.map +0 -7
- package/inputs/FileInput/__stories__/Default/index.js +0 -28
- package/inputs/FileInput/__stories__/Default/package.json +0 -6
- package/inputs/FileInput/__stories__/Default.d.ts +0 -3
- package/inputs/FileInput/__stories__/Default.js.map +0 -7
- package/inputs/FileInput/index.js.map +0 -7
- package/inputs/FileInput/index.test.d.ts +0 -1
- package/inputs/FileInput/package.json +0 -6
- package/inputs/ImageInput/ImageInput.stories/index.js +0 -16
- package/inputs/ImageInput/ImageInput.stories/package.json +0 -6
- package/inputs/ImageInput/ImageInput.stories.d.ts +0 -10
- package/inputs/ImageInput/ImageInput.stories.js.map +0 -7
- package/inputs/ImageInput/__stories__/Default/index.js +0 -30
- package/inputs/ImageInput/__stories__/Default/package.json +0 -6
- package/inputs/ImageInput/__stories__/Default.d.ts +0 -3
- package/inputs/ImageInput/__stories__/Default.js.map +0 -7
- package/inputs/ImageInput/__stories__/MaxSize/index.js +0 -36
- package/inputs/ImageInput/__stories__/MaxSize/package.json +0 -6
- package/inputs/ImageInput/__stories__/MaxSize.d.ts +0 -3
- package/inputs/ImageInput/__stories__/MaxSize.js.map +0 -7
- package/inputs/ImageInput/__stories__/WithInvalidImageDimension/index.js +0 -38
- package/inputs/ImageInput/__stories__/WithInvalidImageDimension/package.json +0 -6
- package/inputs/ImageInput/__stories__/WithInvalidImageDimension.d.ts +0 -3
- package/inputs/ImageInput/__stories__/WithInvalidImageDimension.js.map +0 -7
- package/inputs/ImageInput/__stories__/WithInvalidImageSize/index.js +0 -35
- package/inputs/ImageInput/__stories__/WithInvalidImageSize/package.json +0 -6
- package/inputs/ImageInput/__stories__/WithInvalidImageSize.d.ts +0 -3
- package/inputs/ImageInput/__stories__/WithInvalidImageSize.js.map +0 -7
- package/inputs/ImageInput/index.js.map +0 -7
- package/inputs/ImageInput/index.test.d.ts +0 -1
- package/inputs/ImageInput/package.json +0 -6
- package/inputs/Input/Input.stories/index.js +0 -30
- package/inputs/Input/Input.stories/package.json +0 -6
- package/inputs/Input/Input.stories.d.ts +0 -17
- package/inputs/Input/Input.stories.js.map +0 -7
- package/inputs/Input/__stories__/AFM/index.js +0 -30
- package/inputs/Input/__stories__/AFM/package.json +0 -6
- package/inputs/Input/__stories__/AFM.d.ts +0 -3
- package/inputs/Input/__stories__/AFM.js.map +0 -7
- package/inputs/Input/__stories__/Boolean/index.js +0 -31
- package/inputs/Input/__stories__/Boolean/package.json +0 -6
- package/inputs/Input/__stories__/Boolean.d.ts +0 -3
- package/inputs/Input/__stories__/Boolean.js.map +0 -7
- package/inputs/Input/__stories__/IBAN/index.js +0 -31
- package/inputs/Input/__stories__/IBAN/package.json +0 -6
- package/inputs/Input/__stories__/IBAN.d.ts +0 -3
- package/inputs/Input/__stories__/IBAN.js.map +0 -7
- package/inputs/Input/__stories__/Integer/index.js +0 -45
- package/inputs/Input/__stories__/Integer/package.json +0 -6
- package/inputs/Input/__stories__/Integer.d.ts +0 -3
- package/inputs/Input/__stories__/Integer.js.map +0 -7
- package/inputs/Input/__stories__/LandlineNumber/index.js +0 -34
- package/inputs/Input/__stories__/LandlineNumber/package.json +0 -6
- package/inputs/Input/__stories__/LandlineNumber.d.ts +0 -3
- package/inputs/Input/__stories__/LandlineNumber.js.map +0 -7
- package/inputs/Input/__stories__/MobilePhone/index.js +0 -34
- package/inputs/Input/__stories__/MobilePhone/package.json +0 -6
- package/inputs/Input/__stories__/MobilePhone.d.ts +0 -3
- package/inputs/Input/__stories__/MobilePhone.js.map +0 -7
- package/inputs/Input/__stories__/PhoneNumber/index.js +0 -33
- package/inputs/Input/__stories__/PhoneNumber/package.json +0 -6
- package/inputs/Input/__stories__/PhoneNumber.d.ts +0 -3
- package/inputs/Input/__stories__/PhoneNumber.js.map +0 -7
- package/inputs/Input/__stories__/PostalCode/index.js +0 -31
- package/inputs/Input/__stories__/PostalCode/package.json +0 -6
- package/inputs/Input/__stories__/PostalCode.d.ts +0 -3
- package/inputs/Input/__stories__/PostalCode.js.map +0 -7
- package/inputs/Input/__stories__/String/index.js +0 -31
- package/inputs/Input/__stories__/String/package.json +0 -6
- package/inputs/Input/__stories__/String.d.ts +0 -3
- package/inputs/Input/__stories__/String.js.map +0 -7
- package/inputs/Input/__stories__/TextWithLimit/index.js +0 -31
- package/inputs/Input/__stories__/TextWithLimit/package.json +0 -6
- package/inputs/Input/__stories__/TextWithLimit.d.ts +0 -3
- package/inputs/Input/__stories__/TextWithLimit.js.map +0 -7
- package/inputs/Input/index.js.map +0 -7
- package/inputs/Input/index.test.d.ts +0 -1
- package/inputs/Input/inputsInputScenarios/index.js +0 -406
- package/inputs/Input/inputsInputScenarios/package.json +0 -6
- package/inputs/Input/inputsInputScenarios.d.ts +0 -57
- package/inputs/Input/inputsInputScenarios.js.map +0 -7
- package/inputs/Input/package.json +0 -6
- package/inputs/Label/Label.stories/index.js +0 -12
- package/inputs/Label/Label.stories/package.json +0 -6
- package/inputs/Label/Label.stories.d.ts +0 -8
- package/inputs/Label/Label.stories.js.map +0 -7
- package/inputs/Label/__stories__/Default/index.js +0 -39
- package/inputs/Label/__stories__/Default/package.json +0 -6
- package/inputs/Label/__stories__/Default.d.ts +0 -3
- package/inputs/Label/__stories__/Default.js.map +0 -7
- package/inputs/Label/index.js.map +0 -7
- package/inputs/Label/index.test.d.ts +0 -1
- package/inputs/Label/package.json +0 -6
- package/inputs/OtpInput/OtpInput.stories/index.js +0 -12
- package/inputs/OtpInput/OtpInput.stories/package.json +0 -6
- package/inputs/OtpInput/OtpInput.stories.d.ts +0 -8
- package/inputs/OtpInput/OtpInput.stories.js.map +0 -7
- package/inputs/OtpInput/__stories__/Default/index.js +0 -31
- package/inputs/OtpInput/__stories__/Default/package.json +0 -6
- package/inputs/OtpInput/__stories__/Default.d.ts +0 -3
- package/inputs/OtpInput/__stories__/Default.js.map +0 -7
- package/inputs/OtpInput/index.js.map +0 -7
- package/inputs/OtpInput/index.test.d.ts +0 -1
- package/inputs/OtpInput/package.json +0 -6
- package/inputs/Radio/Radio.stories/index.js +0 -16
- package/inputs/Radio/Radio.stories/package.json +0 -6
- package/inputs/Radio/Radio.stories.d.ts +0 -10
- package/inputs/Radio/Radio.stories.js.map +0 -7
- package/inputs/Radio/__stories__/Conditional/index.js +0 -100
- package/inputs/Radio/__stories__/Conditional/package.json +0 -6
- package/inputs/Radio/__stories__/Conditional.d.ts +0 -3
- package/inputs/Radio/__stories__/Conditional.js.map +0 -7
- package/inputs/Radio/__stories__/Default/index.js +0 -48
- package/inputs/Radio/__stories__/Default/package.json +0 -6
- package/inputs/Radio/__stories__/Default.d.ts +0 -3
- package/inputs/Radio/__stories__/Default.js.map +0 -7
- package/inputs/Radio/__stories__/WithDivider/index.js +0 -49
- package/inputs/Radio/__stories__/WithDivider/package.json +0 -6
- package/inputs/Radio/__stories__/WithDivider.d.ts +0 -3
- package/inputs/Radio/__stories__/WithDivider.js.map +0 -7
- package/inputs/Radio/index.js.map +0 -7
- package/inputs/Radio/index.test.d.ts +0 -1
- package/inputs/Radio/package.json +0 -6
- package/inputs/Select/Select.stories/index.js +0 -12
- package/inputs/Select/Select.stories/package.json +0 -6
- package/inputs/Select/Select.stories.d.ts +0 -8
- package/inputs/Select/Select.stories.js.map +0 -7
- package/inputs/Select/__stories__/Default/index.js +0 -53
- package/inputs/Select/__stories__/Default/package.json +0 -6
- package/inputs/Select/__stories__/Default.d.ts +0 -3
- package/inputs/Select/__stories__/Default.js.map +0 -7
- package/inputs/Select/index.js.map +0 -7
- package/inputs/Select/index.test.d.ts +0 -1
- package/inputs/Select/package.json +0 -6
- package/inputs/index.js.map +0 -7
- package/inputs/inputsScenarios/index.js +0 -505
- package/inputs/inputsScenarios/package.json +0 -6
- package/inputs/inputsScenarios.d.ts +0 -296
- package/inputs/inputsScenarios.js.map +0 -7
- package/inputs/package.json +0 -6
- package/internal/index.js +0 -10
- package/internal/package.json +0 -6
- package/internal.js.map +0 -7
- package/lazy/index.js +0 -68
- package/lazy/package.json +0 -6
- package/lazy.js.map +0 -7
- package/locales/el/index.js +0 -6
- package/locales/el/package.json +0 -6
- package/locales/el.d.ts +0 -2
- package/locales/el.js.map +0 -7
- package/registry/index.js +0 -156
- package/registry/package.json +0 -6
- package/registry.js.map +0 -7
- package/src/Field/index.mdx +0 -6
- package/src/Field/utils/calculateField.ts +0 -49
- package/src/inputs/ImageInput/index.mdx +0 -19
- package/src/inputs/Input/index.mdx +0 -95
- package/src/inputs/Input/inputsInputScenarios.ts +0 -405
- package/src/inputs/inputsScenarios.ts +0 -502
- package/src/lazy.js +0 -65
- package/src/locales/el.ts +0 -3
- package/src/registry.js +0 -157
- package/types/index.js +0 -2
- package/types/package.json +0 -6
- package/types.js.map +0 -7
- package/utils/index.js +0 -59
- package/utils/package.json +0 -6
- package/utils.js.map +0 -7
- package/validators/index.js.map +0 -7
- package/validators/package.json +0 -6
- package/validators/types/index.js +0 -1
- package/validators/types/package.json +0 -6
- package/validators/types.js.map +0 -7
- package/validators/utils/afm/index.js +0 -31
- package/validators/utils/afm/package.json +0 -6
- package/validators/utils/afm.js.map +0 -7
- package/validators/utils/file/index.js +0 -25
- package/validators/utils/file/package.json +0 -6
- package/validators/utils/file.js.map +0 -7
- package/validators/utils/iban/index.js +0 -118
- package/validators/utils/iban/package.json +0 -6
- package/validators/utils/iban.js.map +0 -7
- package/validators/utils/image/index.js +0 -79
- package/validators/utils/image/package.json +0 -6
- package/validators/utils/image.js.map +0 -7
- package/validators/utils/index.js.map +0 -7
- package/validators/utils/int/index.js +0 -24
- package/validators/utils/int/package.json +0 -6
- package/validators/utils/int.js.map +0 -7
- package/validators/utils/number/index.js +0 -20
- package/validators/utils/number/package.json +0 -6
- package/validators/utils/number.js.map +0 -7
- package/validators/utils/otp/index.js +0 -30
- package/validators/utils/otp/package.json +0 -6
- package/validators/utils/otp.js.map +0 -7
- package/validators/utils/package.json +0 -6
- package/validators/utils/phone/index.js +0 -172
- package/validators/utils/phone/package.json +0 -6
- package/validators/utils/phone.js.map +0 -7
- package/validators/utils/postal_code/index.js +0 -30
- package/validators/utils/postal_code/package.json +0 -6
- package/validators/utils/postal_code.js.map +0 -7
- package/validators/utils/text_limit/index.js +0 -45
- package/validators/utils/text_limit/package.json +0 -6
- package/validators/utils/text_limit.js.map +0 -7
- package/validators/utils/uuid4/index.js +0 -22
- package/validators/utils/uuid4/package.json +0 -6
- package/validators/utils/uuid4.js.map +0 -7
- package/validators/validators.spec.d.ts +0 -1
- /package/{src/inputs/Label/index.mdx → Field/types.js} +0 -0
|
@@ -1,60 +1,96 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import Paragraph from "@digigov/ui/typography/Paragraph";
|
|
8
|
-
import { Base } from "@digigov/
|
|
9
|
-
const
|
|
10
|
-
|
|
1
|
+
import react, { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
+
import { omit } from "../../utils.js";
|
|
3
|
+
import { Button, ButtonGroup } from "@digigov/ui/form/Button/index.js";
|
|
4
|
+
import { FileUpload, FileUploadContainer } from "@digigov/ui/form/FileUpload/index.js";
|
|
5
|
+
import { useTranslation } from "@digigov/ui/i18n/index.js";
|
|
6
|
+
import { Hint } from "@digigov/ui/typography/Hint/index.js";
|
|
7
|
+
import { Paragraph } from "@digigov/ui/typography/Paragraph/index.js";
|
|
8
|
+
import { Base } from "@digigov/ui/utils/Base/index.js";
|
|
9
|
+
const ImageInput_Image = /*#__PURE__*/ react.memo(function({ src }) {
|
|
10
|
+
return /*#__PURE__*/ react.createElement(Base, {
|
|
11
|
+
as: "img",
|
|
12
|
+
src: src,
|
|
13
|
+
className: "ds-image--ratio"
|
|
14
|
+
});
|
|
11
15
|
});
|
|
12
|
-
const
|
|
13
|
-
|
|
16
|
+
const blobToFileList = (blob, fileName)=>{
|
|
17
|
+
const file = new File([
|
|
18
|
+
blob
|
|
19
|
+
], fileName, {
|
|
20
|
+
type: 'image/jpeg'
|
|
21
|
+
});
|
|
22
|
+
const dataTransfer = new DataTransfer();
|
|
23
|
+
dataTransfer.items.add(file);
|
|
24
|
+
return dataTransfer.files;
|
|
25
|
+
};
|
|
26
|
+
const ImageInput_ImageInput = /*#__PURE__*/ react.forwardRef(function({ name, disabled, onChange, defaultValue, value, resetField, ...props }, ref) {
|
|
27
|
+
const imageRef = useRef(ref?.current);
|
|
14
28
|
const { t } = useTranslation();
|
|
15
|
-
const
|
|
16
|
-
const [
|
|
17
|
-
const
|
|
18
|
-
|
|
29
|
+
const currentValue = defaultValue || value || null;
|
|
30
|
+
const [selectedImage, setSelectedImage] = useState(currentValue);
|
|
31
|
+
const [imageUrl, setImageUrl] = useState(currentValue?.src || null);
|
|
32
|
+
const handleImageChange = useCallback((e)=>{
|
|
19
33
|
e.preventDefault();
|
|
20
34
|
const target = e.target;
|
|
21
35
|
const selectedFile = target.files?.[0];
|
|
22
36
|
if (selectedFile) {
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
setSelectedImage(selectedFile);
|
|
38
|
+
setImageUrl(URL.createObjectURL(selectedFile));
|
|
25
39
|
}
|
|
26
|
-
onChange(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
30
|
-
const handleDeleteImage = useCallback(
|
|
31
|
-
(event) => {
|
|
40
|
+
onChange(target.files);
|
|
41
|
+
}, [
|
|
42
|
+
selectedImage
|
|
43
|
+
]);
|
|
44
|
+
const handleDeleteImage = useCallback((event)=>{
|
|
32
45
|
event.preventDefault();
|
|
33
|
-
|
|
46
|
+
resetField(name);
|
|
34
47
|
setSelectedImage(null);
|
|
35
|
-
setImageUrl(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
setImageUrl(null);
|
|
49
|
+
}, [
|
|
50
|
+
resetField,
|
|
51
|
+
name
|
|
52
|
+
]);
|
|
53
|
+
useEffect(()=>{
|
|
54
|
+
if (defaultValue?.src && imageRef.current) fetch(defaultValue?.src).then((response)=>response.blob()).then((blob)=>{
|
|
55
|
+
const fileList = blobToFileList(blob, defaultValue.filename);
|
|
56
|
+
imageRef.current.files = fileList;
|
|
57
|
+
const fileChangeEvent = new Event('change', {
|
|
58
|
+
bubbles: true
|
|
59
|
+
});
|
|
60
|
+
imageRef.current.dispatchEvent(fileChangeEvent);
|
|
61
|
+
}).catch((error)=>console.error('Error fetching image:', error));
|
|
62
|
+
}, [
|
|
63
|
+
defaultValue,
|
|
64
|
+
imageRef
|
|
65
|
+
]);
|
|
66
|
+
return /*#__PURE__*/ react.createElement(FileUploadContainer, null, null !== selectedImage ? /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Paragraph, null, /*#__PURE__*/ react.createElement(Base, {
|
|
67
|
+
as: "b"
|
|
68
|
+
}, t('upload.image'), ":"), ' ', /*#__PURE__*/ react.createElement("em", null, `${selectedImage?.name || selectedImage?.filename}`))) : /*#__PURE__*/ react.createElement(Hint, {
|
|
69
|
+
className: "ds-dashed--border"
|
|
70
|
+
}, t('upload.no_image')), null !== imageUrl && null !== selectedImage && /*#__PURE__*/ react.createElement(ImageInput_Image, {
|
|
71
|
+
src: imageUrl
|
|
72
|
+
}), !disabled && /*#__PURE__*/ react.createElement(ButtonGroup, {
|
|
73
|
+
marginTop: 2
|
|
74
|
+
}, /*#__PURE__*/ react.createElement(FileUpload, {
|
|
75
|
+
ref: imageRef,
|
|
76
|
+
hasFiles: null !== selectedImage,
|
|
77
|
+
name: name,
|
|
78
|
+
id: name,
|
|
79
|
+
disabled: disabled,
|
|
46
80
|
accept: "image/*",
|
|
47
81
|
onChange: handleImageChange,
|
|
48
|
-
...
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
};
|
|
60
|
-
|
|
82
|
+
...omit(props, [
|
|
83
|
+
'Field',
|
|
84
|
+
'reset',
|
|
85
|
+
'error'
|
|
86
|
+
]),
|
|
87
|
+
required: void 0,
|
|
88
|
+
type: 'file'
|
|
89
|
+
}, selectedImage ? t('upload.change_image') : t('upload.choose_image')), null !== selectedImage && /*#__PURE__*/ react.createElement(Button, {
|
|
90
|
+
color: "warning",
|
|
91
|
+
variant: "link",
|
|
92
|
+
onClick: handleDeleteImage
|
|
93
|
+
}, t('upload.reset_file'))));
|
|
94
|
+
});
|
|
95
|
+
const inputs_ImageInput = ImageInput_ImageInput;
|
|
96
|
+
export { ImageInput_Image as Image, ImageInput_ImageInput as ImageInput, inputs_ImageInput as default };
|
package/inputs/Input/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import type { UseFormReturn } from 'react-hook-form';
|
|
3
|
+
import type { UncontrolledFieldProps } from '../../Field/types.js';
|
|
4
|
+
export interface InputProps extends Omit<UncontrolledFieldProps, 'extra' | 'Field'> {
|
|
4
5
|
extra?: {
|
|
5
6
|
fullWidth?: boolean;
|
|
6
7
|
multiline?: boolean;
|
|
@@ -11,6 +12,8 @@ export interface InputProps extends Omit<UncontrolledFieldProps, 'extra'> {
|
|
|
11
12
|
max?: number;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
15
|
+
Field?: UncontrolledFieldProps['Field'];
|
|
16
|
+
resetField: UseFormReturn['resetField'];
|
|
14
17
|
}
|
|
15
18
|
export declare const Input: React.ExoticComponent<InputProps>;
|
|
16
19
|
export default Input;
|
package/inputs/Input/index.js
CHANGED
|
@@ -1,70 +1,69 @@
|
|
|
1
|
-
import
|
|
1
|
+
import react from "react";
|
|
2
2
|
import { useWatch } from "react-hook-form";
|
|
3
|
-
import {
|
|
4
|
-
import { TextArea } from "@digigov/
|
|
5
|
-
import { TextInput } from "@digigov/
|
|
6
|
-
import { useTranslation } from "@digigov/ui/i18n";
|
|
3
|
+
import { omit } from "../../utils.js";
|
|
4
|
+
import { TextArea } from "@digigov/ui/form/TextArea/index.js";
|
|
5
|
+
import { TextInput } from "@digigov/ui/form/TextInput/index.js";
|
|
6
|
+
import { useTranslation } from "@digigov/ui/i18n/index.js";
|
|
7
|
+
import { Hint } from "@digigov/ui/typography/Hint/index.js";
|
|
7
8
|
const TYPES_MAP = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
string: 'text',
|
|
10
|
+
password: 'password',
|
|
11
|
+
int: 'text',
|
|
12
|
+
rate: 'number',
|
|
13
|
+
text: 'text',
|
|
14
|
+
date: 'date'
|
|
12
15
|
};
|
|
13
|
-
const Input =
|
|
14
|
-
function WrappedInput({ name, control, type, extra, ...props }, ref) {
|
|
16
|
+
const Input = /*#__PURE__*/ react.forwardRef(function({ name, control, type, extra, ...props }, ref) {
|
|
15
17
|
let { multiline = false, rows, limit } = extra || {};
|
|
16
18
|
const { className } = extra || {};
|
|
17
|
-
multiline =
|
|
19
|
+
multiline = true === multiline || 'text' === type;
|
|
18
20
|
rows = rows || (multiline ? 4 : 1);
|
|
19
|
-
const fieldType = TYPES_MAP[type ||
|
|
21
|
+
const fieldType = TYPES_MAP[type || 'text'] || 'text';
|
|
20
22
|
const { t } = useTranslation();
|
|
21
|
-
const currentValue = useWatch({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
const currentValue = useWatch({
|
|
24
|
+
control,
|
|
25
|
+
name
|
|
26
|
+
});
|
|
27
|
+
const getRemainingChars = (currentValue, limit)=>{
|
|
28
|
+
if (currentValue) return limit?.max - currentValue.length;
|
|
29
|
+
return limit?.max;
|
|
27
30
|
};
|
|
28
|
-
const constructRemainingText = (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const constructRemainingText = (currentValue, limit)=>{
|
|
32
|
+
const remainingChars = getRemainingChars(currentValue, limit);
|
|
33
|
+
let remainingText = 1 === Math.abs(remainingChars) ? t('form.info.text.character') : t('form.info.text.characters');
|
|
34
|
+
remainingText += remainingChars > 0 ? ` ${t('form.info.text.remaining')}.` : ` ${t('form.info.text.too_many')}.`;
|
|
35
|
+
return remainingText;
|
|
33
36
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
Input,
|
|
68
|
-
Input_default as default
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=index.js.map
|
|
37
|
+
const transformedProps = omit(props, [
|
|
38
|
+
'Field',
|
|
39
|
+
'resetField'
|
|
40
|
+
]);
|
|
41
|
+
if (true === multiline) return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(TextArea, {
|
|
42
|
+
name: name,
|
|
43
|
+
className: className,
|
|
44
|
+
rows: rows,
|
|
45
|
+
ref: ref,
|
|
46
|
+
id: name,
|
|
47
|
+
...transformedProps,
|
|
48
|
+
reset: void 0,
|
|
49
|
+
required: void 0,
|
|
50
|
+
type: fieldType
|
|
51
|
+
}), limit?.max && /*#__PURE__*/ react.createElement(Hint, {
|
|
52
|
+
display: 'flex'
|
|
53
|
+
}, t('form.info.text.you_have'), /*#__PURE__*/ react.createElement("strong", null, "\xa0", `${Math.abs(getRemainingChars(currentValue, limit))}`, "\xa0"), constructRemainingText(currentValue, limit)));
|
|
54
|
+
return /*#__PURE__*/ react.createElement(TextInput, {
|
|
55
|
+
name: name,
|
|
56
|
+
id: name,
|
|
57
|
+
type: fieldType,
|
|
58
|
+
"data-type": type,
|
|
59
|
+
className: className,
|
|
60
|
+
ref: ref,
|
|
61
|
+
...transformedProps,
|
|
62
|
+
min: void 0,
|
|
63
|
+
max: void 0,
|
|
64
|
+
reset: void 0,
|
|
65
|
+
required: void 0
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
const inputs_Input = Input;
|
|
69
|
+
export { Input, inputs_Input as default };
|
package/inputs/Label/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FieldLabelProps } from '
|
|
2
|
+
import type { FieldLabelProps } from '../../types.js';
|
|
3
3
|
export interface FieldOptionProps {
|
|
4
4
|
label?: FieldLabelProps;
|
|
5
5
|
value: string;
|
|
@@ -11,8 +11,6 @@ export interface FieldOptionProps {
|
|
|
11
11
|
export interface LabelProps {
|
|
12
12
|
primary?: string;
|
|
13
13
|
secondary?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface LabelProps {
|
|
16
14
|
className?: string;
|
|
17
15
|
value?: string;
|
|
18
16
|
label?: FieldLabelProps;
|
package/inputs/Label/index.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return null
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { LabelTitle } from "@digigov/ui/form/LabelContainer/index.js";
|
|
3
|
+
import { useTranslation } from "@digigov/ui/i18n/index.js";
|
|
4
|
+
import { Hint } from "@digigov/ui/typography/Hint/index.js";
|
|
5
|
+
const Label_Label = ({ className, label, value })=>{
|
|
6
|
+
const { t } = useTranslation();
|
|
7
|
+
if ((!label || label && !label.primary && !label.secondary) && !value) return null;
|
|
8
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(LabelTitle, {
|
|
9
|
+
className: className,
|
|
10
|
+
size: "sm"
|
|
11
|
+
}, label && label.primary && t(label.primary) || value), label && label.secondary && /*#__PURE__*/ react.createElement(Hint, null, t(label.secondary)));
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
Label,
|
|
15
|
-
Label_default as default
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
const Label = Label_Label;
|
|
14
|
+
export { Label_Label as Label, Label as default };
|
|
@@ -8,9 +8,5 @@ export declare function useOtp(onChange: any, maxLength: any): {
|
|
|
8
8
|
handleFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
9
9
|
handlePaste: (e: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const OtpInput:
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
name: any;
|
|
14
|
-
maxLength?: number | undefined;
|
|
15
|
-
}) => React.JSX.Element;
|
|
11
|
+
export declare const OtpInput: React.ForwardRefExoticComponent<Omit<Record<string, any>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
16
12
|
export default OtpInput;
|
package/inputs/OtpInput/index.js
CHANGED
|
@@ -1,146 +1,123 @@
|
|
|
1
|
-
import
|
|
2
|
-
import SingleCharacterInputs, {
|
|
3
|
-
SingleCharacterInput
|
|
4
|
-
} from "@digigov/ui/form/SingleCharacterInputs";
|
|
1
|
+
import react, { useCallback, useState } from "react";
|
|
2
|
+
import SingleCharacterInputs, { SingleCharacterInput } from "@digigov/ui/form/SingleCharacterInputs/index.js";
|
|
5
3
|
const RE_DIGIT = new RegExp(/^\d+$/);
|
|
6
4
|
const REMOVE_SPACES = new RegExp(/\s+/g);
|
|
7
5
|
function useOtp(onChange, maxLength) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
const setSelectionRange = useCallback((target) => {
|
|
28
|
-
return target.setSelectionRange(0, target.value.length);
|
|
29
|
-
}, []);
|
|
30
|
-
const focusToNextInput = useCallback((target) => {
|
|
31
|
-
const nextElement = target.nextElementSibling;
|
|
32
|
-
if (nextElement) {
|
|
33
|
-
nextElement.focus();
|
|
34
|
-
}
|
|
35
|
-
}, []);
|
|
36
|
-
const focusToPrevInput = useCallback((target) => {
|
|
37
|
-
const previousElement = target.previousElementSibling;
|
|
38
|
-
if (previousElement) {
|
|
39
|
-
previousElement.focus();
|
|
40
|
-
}
|
|
41
|
-
}, []);
|
|
42
|
-
const handleKeyDown = useCallback(
|
|
43
|
-
(e, idx) => {
|
|
44
|
-
const { key } = e;
|
|
45
|
-
const target = e.target;
|
|
46
|
-
let targetValue = target.value;
|
|
47
|
-
setSelectionRange(target);
|
|
48
|
-
if (key === "ArrowRight" || key === "ArrowDown") {
|
|
49
|
-
e.preventDefault();
|
|
50
|
-
return focusToNextInput(target);
|
|
51
|
-
}
|
|
52
|
-
if (key === "ArrowLeft" || key === "ArrowUp") {
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
return focusToPrevInput(target);
|
|
55
|
-
}
|
|
56
|
-
if (e.key === "Backspace" || e.key === "Delete") {
|
|
57
|
-
if (targetValue !== "") {
|
|
58
|
-
targetValue = "";
|
|
59
|
-
} else {
|
|
60
|
-
focusToPrevInput(target);
|
|
6
|
+
const [otpValues, setOtpValues] = useState(Array(maxLength).fill(''));
|
|
7
|
+
const handleChange = useCallback((otp)=>{
|
|
8
|
+
setOtpValues(otp);
|
|
9
|
+
const otpValue = otp.join('');
|
|
10
|
+
onChange(otpValue);
|
|
11
|
+
}, [
|
|
12
|
+
onChange
|
|
13
|
+
]);
|
|
14
|
+
const setOtp = (item, idx)=>{
|
|
15
|
+
const updatedOTPValues = [
|
|
16
|
+
...otpValues
|
|
17
|
+
];
|
|
18
|
+
if (1 === item.length || 0 === item.length) {
|
|
19
|
+
updatedOTPValues[idx] = item[0] || '';
|
|
20
|
+
handleChange(updatedOTPValues);
|
|
21
|
+
} else if (item.length === maxLength) {
|
|
22
|
+
const valueArray = item.split('').slice(0, maxLength);
|
|
23
|
+
handleChange(valueArray);
|
|
61
24
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (isTargetValueDigit || targetValue === "") {
|
|
81
|
-
setOtp(targetValue, idx);
|
|
82
|
-
if (target.value.length > 1) {
|
|
83
|
-
target.blur();
|
|
25
|
+
};
|
|
26
|
+
const setSelectionRange = useCallback((target)=>target.setSelectionRange(0, target.value.length), []);
|
|
27
|
+
const focusToNextInput = useCallback((target)=>{
|
|
28
|
+
const nextElement = target.nextElementSibling;
|
|
29
|
+
if (nextElement) nextElement.focus();
|
|
30
|
+
}, []);
|
|
31
|
+
const focusToPrevInput = useCallback((target)=>{
|
|
32
|
+
const previousElement = target.previousElementSibling;
|
|
33
|
+
if (previousElement) previousElement.focus();
|
|
34
|
+
}, []);
|
|
35
|
+
const handleKeyDown = useCallback((e, idx)=>{
|
|
36
|
+
const { key } = e;
|
|
37
|
+
const target = e.target;
|
|
38
|
+
let targetValue = target.value;
|
|
39
|
+
setSelectionRange(target);
|
|
40
|
+
if ('ArrowRight' === key || 'ArrowDown' === key) {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
return focusToNextInput(target);
|
|
84
43
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if (pastedData) {
|
|
95
|
-
setOtp(pastedData, 0);
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
[]
|
|
99
|
-
);
|
|
100
|
-
return {
|
|
101
|
-
otpValues,
|
|
102
|
-
handleOtpChange,
|
|
103
|
-
handleKeyDown,
|
|
104
|
-
handleFocus,
|
|
105
|
-
handlePaste
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
const SingleCharacterInputPart = ({ ...props }) => {
|
|
109
|
-
return /* @__PURE__ */ React.createElement(SingleCharacterInput, { ...props });
|
|
110
|
-
};
|
|
111
|
-
const OtpInput = ({ name, maxLength = 6, ...props }) => {
|
|
112
|
-
const otp = useOtp(props.onChange, maxLength);
|
|
113
|
-
return /* @__PURE__ */ React.createElement(SingleCharacterInputs, null, otp.otpValues.map((digit, idx) => /* @__PURE__ */ React.createElement(
|
|
114
|
-
SingleCharacterInputPart,
|
|
115
|
-
{
|
|
116
|
-
name: `${name}-${idx}`,
|
|
117
|
-
type: "text",
|
|
118
|
-
key: idx,
|
|
119
|
-
autoComplete: "one-time-code",
|
|
120
|
-
pattern: "\\d{1}",
|
|
121
|
-
maxLength,
|
|
122
|
-
value: digit,
|
|
123
|
-
disabled: props.disabled,
|
|
124
|
-
"aria-required": props["aria-required"],
|
|
125
|
-
onChange: (e) => otp.handleOtpChange(e, idx),
|
|
126
|
-
onInput: (e) => {
|
|
127
|
-
if (e.target.value === digit) {
|
|
128
|
-
otp.handleOtpChange(e, idx);
|
|
44
|
+
if ('ArrowLeft' === key || 'ArrowUp' === key) {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
return focusToPrevInput(target);
|
|
47
|
+
}
|
|
48
|
+
if ('Backspace' === e.key || 'Delete' === e.key) {
|
|
49
|
+
if ('' !== targetValue) targetValue = '';
|
|
50
|
+
else focusToPrevInput(target);
|
|
51
|
+
setOtp(targetValue, idx);
|
|
52
|
+
return e.preventDefault();
|
|
129
53
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
54
|
+
}, [
|
|
55
|
+
setOtp,
|
|
56
|
+
focusToPrevInput,
|
|
57
|
+
focusToNextInput
|
|
58
|
+
]);
|
|
59
|
+
const handleFocus = useCallback((e)=>{
|
|
60
|
+
const { target } = e;
|
|
61
|
+
setSelectionRange(target);
|
|
62
|
+
}, [
|
|
63
|
+
setSelectionRange
|
|
64
|
+
]);
|
|
65
|
+
const handleOtpChange = useCallback((e, idx)=>{
|
|
66
|
+
const target = e.target;
|
|
67
|
+
const targetValue = target.value;
|
|
68
|
+
const isTargetValueDigit = RE_DIGIT.test(targetValue);
|
|
69
|
+
if (isTargetValueDigit || '' === targetValue) {
|
|
70
|
+
setOtp(targetValue, idx);
|
|
71
|
+
if (target.value.length > 1) target.blur();
|
|
72
|
+
focusToNextInput(target);
|
|
73
|
+
}
|
|
74
|
+
}, [
|
|
75
|
+
setOtp,
|
|
76
|
+
handleKeyDown,
|
|
77
|
+
handleFocus
|
|
78
|
+
]);
|
|
79
|
+
const handlePaste = useCallback((e)=>{
|
|
80
|
+
e.preventDefault();
|
|
81
|
+
const pastedData = e.clipboardData.getData('text/plain').replace(REMOVE_SPACES, '');
|
|
82
|
+
if (pastedData) setOtp(pastedData, 0);
|
|
83
|
+
}, []);
|
|
84
|
+
return {
|
|
85
|
+
otpValues,
|
|
86
|
+
handleOtpChange,
|
|
87
|
+
handleKeyDown,
|
|
88
|
+
handleFocus,
|
|
89
|
+
handlePaste
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
const SingleCharacterInputPart = /*#__PURE__*/ react.forwardRef(({ ...props }, ref)=>/*#__PURE__*/ react.createElement(SingleCharacterInput, {
|
|
93
|
+
...props,
|
|
94
|
+
ref: ref
|
|
95
|
+
}));
|
|
96
|
+
SingleCharacterInputPart.displayName = 'SingleCharacterInputPart';
|
|
97
|
+
const OtpInput_OtpInput = /*#__PURE__*/ react.forwardRef(({ name, maxLength = 6, ...props }, ref)=>{
|
|
98
|
+
const otp = useOtp(props.onChange, maxLength);
|
|
99
|
+
return /*#__PURE__*/ react.createElement(SingleCharacterInputs, null, otp.otpValues.map((digit, idx)=>/*#__PURE__*/ react.createElement(SingleCharacterInputPart, {
|
|
100
|
+
ref: 0 === idx ? ref : null,
|
|
101
|
+
name: `${name}-${idx}`,
|
|
102
|
+
id: `${name}-${idx}`,
|
|
103
|
+
type: "text",
|
|
104
|
+
key: idx,
|
|
105
|
+
autoComplete: "one-time-code",
|
|
106
|
+
pattern: "\\d{1}",
|
|
107
|
+
maxLength: maxLength,
|
|
108
|
+
value: digit,
|
|
109
|
+
disabled: props.disabled,
|
|
110
|
+
"aria-required": props['aria-required'],
|
|
111
|
+
onChange: (e)=>otp.handleOtpChange(e, idx),
|
|
112
|
+
onInput: (e)=>{
|
|
113
|
+
if (e.target.value === digit) otp.handleOtpChange(e, idx);
|
|
114
|
+
},
|
|
115
|
+
onKeyDown: (e)=>otp.handleKeyDown(e, idx),
|
|
116
|
+
onFocus: otp.handleFocus,
|
|
117
|
+
onPaste: otp.handlePaste,
|
|
118
|
+
error: digit ? false : props.error
|
|
119
|
+
})));
|
|
120
|
+
});
|
|
121
|
+
OtpInput_OtpInput.displayName = 'OtpInput';
|
|
122
|
+
const OtpInput = OtpInput_OtpInput;
|
|
123
|
+
export { OtpInput_OtpInput as OtpInput, REMOVE_SPACES, RE_DIGIT, OtpInput as default, useOtp };
|
package/inputs/Radio/index.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { UseFormReturn } from 'react-hook-form';
|
|
3
|
+
import type { UncontrolledFieldProps } from '../../Field/types.js';
|
|
4
|
+
import type { FieldOptionProps } from '../Label/index.js';
|
|
4
5
|
export interface RadioButtonsGroupProps extends Omit<UncontrolledFieldProps, 'extra'> {
|
|
5
6
|
extra: {
|
|
6
7
|
className?: string;
|
|
7
|
-
options:
|
|
8
|
+
options: FieldOptionProps[];
|
|
8
9
|
dense?: boolean;
|
|
9
10
|
};
|
|
10
11
|
fieldComponent?: React.FC<Omit<UncontrolledFieldProps, 'register'>>;
|
|
12
|
+
resetField: UseFormReturn['resetField'];
|
|
11
13
|
}
|
|
12
14
|
export declare const RadioButtonsGroup: React.FC<RadioButtonsGroupProps>;
|
|
13
|
-
export declare const ControlledRadioButtonsGroup: React.
|
|
15
|
+
export declare const ControlledRadioButtonsGroup: React.ForwardRefExoticComponent<RadioButtonsGroupProps & {
|
|
14
16
|
onChange: (e: any) => void;
|
|
15
17
|
value: any;
|
|
16
|
-
}
|
|
18
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
17
19
|
export default RadioButtonsGroup;
|