@digigov/form 0.10.7 → 0.10.9
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/CHANGELOG.md +15 -1
- package/{dist/Field → Field}/FieldBase.d.ts +0 -0
- package/{dist/Field → Field}/FieldBase.js +0 -0
- package/{dist/Field → Field}/FieldBaseContainer.d.ts +0 -0
- package/{dist/Field → Field}/FieldBaseContainer.js +0 -0
- package/{dist/Field → Field}/FieldConditional.d.ts +0 -0
- package/{dist/Field → Field}/FieldConditional.js +0 -0
- package/{dist/Field → Field}/index.d.ts +0 -0
- package/{dist/Field → Field}/index.js +0 -0
- package/{dist/Field → Field}/index.mdx +0 -0
- package/{dist/Field → Field}/types.d.ts +0 -0
- package/{dist/Field → Field}/types.js +0 -0
- package/{dist/Field → Field}/utils.d.ts +0 -0
- package/{dist/Field → Field}/utils.js +0 -0
- package/{dist/FieldArray → FieldArray}/FieldArray.stories.d.ts +1 -0
- package/{dist/FieldArray → FieldArray}/FieldArray.stories.js +2 -1
- package/{dist/FieldArray → FieldArray}/FieldArray.stories.playwright.json +0 -0
- package/{dist/FieldArray → FieldArray}/__stories__/Default.d.ts +0 -0
- package/{dist/FieldArray → FieldArray}/__stories__/Default.js +0 -0
- package/{dist/FieldArray → FieldArray}/__stories__/WithExactLength.d.ts +0 -0
- package/{dist/FieldArray → FieldArray}/__stories__/WithExactLength.js +0 -0
- package/{dist/FieldArray → FieldArray}/index.d.ts +0 -0
- package/{dist/FieldArray → FieldArray}/index.js +0 -0
- package/{dist/FieldObject → FieldObject}/index.d.ts +0 -0
- package/{dist/FieldObject → FieldObject}/index.js +0 -0
- package/{dist/Fieldset → Fieldset}/FieldsetWithContext.d.ts +0 -0
- package/{dist/Fieldset → Fieldset}/FieldsetWithContext.js +0 -0
- package/{dist/Fieldset → Fieldset}/index.d.ts +0 -0
- package/{dist/Fieldset → Fieldset}/index.js +0 -0
- package/{dist/Fieldset → Fieldset}/types.d.ts +0 -0
- package/{dist/Fieldset → Fieldset}/types.js +0 -0
- package/{dist/Form.stories.d.ts → Form.stories.d.ts} +0 -0
- package/{dist/Form.stories.js → Form.stories.js} +0 -0
- package/Form.stories.playwright.json +71 -0
- package/{dist/FormBuilder → FormBuilder}/FormBuilder.d.ts +0 -0
- package/{dist/FormBuilder → FormBuilder}/FormBuilder.js +0 -0
- package/{dist/FormBuilder → FormBuilder}/FormBuilder.mdx +1 -1
- package/{dist/FormBuilder → FormBuilder}/FormBuilder.stories.d.ts +1 -0
- package/{dist/FormBuilder → FormBuilder}/FormBuilder.stories.js +2 -1
- package/{dist/FormBuilder → FormBuilder}/FormBuilder.stories.playwright.json +0 -0
- package/{dist/FormBuilder → FormBuilder}/__stories__/Default.d.ts +0 -0
- package/{dist/FormBuilder → FormBuilder}/__stories__/Default.js +0 -0
- package/{dist/FormBuilder → FormBuilder}/index.d.ts +0 -0
- package/{dist/FormBuilder → FormBuilder}/index.js +0 -0
- package/{dist/FormContext.d.ts → FormContext.d.ts} +0 -0
- package/{dist/FormContext.js → FormContext.js} +0 -0
- package/{dist/LICENSE → LICENSE} +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/MultiplicityField.mdx +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/MultiplicityField.stories.d.ts +1 -0
- package/{dist/MultiplicityField → MultiplicityField}/MultiplicityField.stories.js +2 -1
- package/{dist/MultiplicityField → MultiplicityField}/MultiplicityField.stories.playwright.json +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/Default.d.ts +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/Default.js +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/PreviewDisplay.d.ts +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/PreviewDisplay.js +6 -6
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithExactLength.d.ts +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithExactLength.js +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMaxLength.d.ts +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMaxLength.js +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMinAndMaxLength.d.ts +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMinAndMaxLength.js +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMinLength.d.ts +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMinLength.js +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/add-objects.d.ts +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/add-objects.js +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/index.d.ts +0 -0
- package/{dist/MultiplicityField → MultiplicityField}/index.js +0 -0
- package/{dist/Questions → Questions}/Questions.d.ts +0 -0
- package/{dist/Questions → Questions}/Questions.js +0 -0
- package/Questions/Questions.stories.d.ts +8 -0
- package/Questions/Questions.stories.js +31 -0
- package/{dist/Questions → Questions}/QuestionsContext.d.ts +0 -0
- package/{dist/Questions → Questions}/QuestionsContext.js +0 -0
- package/{dist/Questions → Questions}/Step/ReviewStep.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/ReviewStep.js +0 -0
- package/{dist/Questions → Questions}/Step/Step.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/Step.js +0 -0
- package/{dist/Questions → Questions}/Step/StepArrayReview.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/StepArrayReview.js +0 -0
- package/{dist/Questions → Questions}/Step/StepContext.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/StepContext.js +0 -0
- package/{dist/Questions → Questions}/Step/StepDescription.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/StepDescription.js +0 -0
- package/{dist/Questions → Questions}/Step/StepForm.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/StepForm.js +0 -0
- package/{dist/Questions → Questions}/Step/StepQuote.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/StepQuote.js +0 -0
- package/{dist/Questions → Questions}/Step/StepTitle.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/StepTitle.js +0 -0
- package/{dist/Questions → Questions}/Step/getAddMoreFields.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/getAddMoreFields.js +0 -0
- package/{dist/Questions → Questions}/Step/index.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/index.js +0 -0
- package/{dist/Questions → Questions}/Step/types.d.ts +0 -0
- package/{dist/Questions → Questions}/Step/types.js +0 -0
- package/{dist/Questions → Questions}/__snapshots__/index.spec.tsx.snap +0 -0
- package/Questions/__stories__/Default.d.ts +2 -0
- package/Questions/__stories__/Default.js +130 -0
- package/{dist/Questions → Questions}/getNextStep.d.ts +0 -0
- package/{dist/Questions → Questions}/getNextStep.js +0 -0
- package/{dist/Questions → Questions}/index.d.ts +0 -0
- package/{dist/Questions → Questions}/index.js +0 -0
- package/Questions/index.mdx +418 -0
- package/{dist/Questions → Questions}/index.spec.d.ts +0 -0
- package/{dist/Questions → Questions}/index.spec.js +0 -0
- package/{dist/Questions → Questions}/types.d.ts +0 -0
- package/{dist/Questions → Questions}/types.js +0 -0
- package/{dist/__stories__ → __stories__}/AutoCompleteField.d.ts +0 -0
- package/{dist/__stories__ → __stories__}/AutoCompleteField.js +0 -0
- package/{dist/__stories__ → __stories__}/IntField.d.ts +0 -0
- package/{dist/__stories__ → __stories__}/IntField.js +0 -0
- package/{dist/create-simple-form.mdx → create-simple-form.mdx} +0 -0
- package/{dist/es → es}/Field/FieldBase.js +0 -0
- package/{dist/es → es}/Field/FieldBaseContainer.js +0 -0
- package/{dist/es → es}/Field/FieldConditional.js +0 -0
- package/{dist/es → es}/Field/index.js +0 -0
- package/{dist/es → es}/Field/index.mdx +0 -0
- package/{dist/es → es}/Field/types.js +0 -0
- package/{dist/es → es}/Field/utils.js +0 -0
- package/{dist/esm → es}/FieldArray/FieldArray.stories.js +2 -1
- package/{dist/es → es}/FieldArray/FieldArray.stories.playwright.json +0 -0
- package/{dist/es → es}/FieldArray/__stories__/Default.js +0 -0
- package/{dist/es → es}/FieldArray/__stories__/WithExactLength.js +0 -0
- package/{dist/es → es}/FieldArray/index.js +0 -0
- package/{dist/es → es}/FieldObject/index.js +0 -0
- package/{dist/es → es}/Fieldset/FieldsetWithContext.js +0 -0
- package/{dist/es → es}/Fieldset/index.js +0 -0
- package/{dist/es → es}/Fieldset/types.js +0 -0
- package/{dist/es → es}/Form.stories.js +0 -0
- package/es/Form.stories.playwright.json +71 -0
- package/{dist/es → es}/FormBuilder/FormBuilder.js +0 -0
- package/{dist/es → es}/FormBuilder/FormBuilder.mdx +1 -1
- package/es/FormBuilder/FormBuilder.stories.js +7 -0
- package/{dist/es → es}/FormBuilder/FormBuilder.stories.playwright.json +0 -0
- package/{dist/es → es}/FormBuilder/__stories__/Default.js +0 -0
- package/{dist/es → es}/FormBuilder/index.js +0 -0
- package/{dist/es → es}/FormContext.js +0 -0
- package/{dist/es → es}/MultiplicityField/MultiplicityField.mdx +0 -0
- package/{dist/es → es}/MultiplicityField/MultiplicityField.stories.js +2 -1
- package/{dist/es → es}/MultiplicityField/MultiplicityField.stories.playwright.json +0 -0
- package/{dist/es → es}/MultiplicityField/__stories__/Default.js +0 -0
- package/{dist/esm → es}/MultiplicityField/__stories__/PreviewDisplay.js +6 -6
- package/{dist/es → es}/MultiplicityField/__stories__/WithExactLength.js +0 -0
- package/{dist/es → es}/MultiplicityField/__stories__/WithMaxLength.js +0 -0
- package/{dist/es → es}/MultiplicityField/__stories__/WithMinAndMaxLength.js +0 -0
- package/{dist/es → es}/MultiplicityField/__stories__/WithMinLength.js +0 -0
- package/{dist/es → es}/MultiplicityField/add-objects.js +0 -0
- package/{dist/es → es}/MultiplicityField/index.js +0 -0
- package/{dist/es → es}/Questions/Questions.js +0 -0
- package/es/Questions/Questions.stories.js +7 -0
- package/{dist/es → es}/Questions/QuestionsContext.js +0 -0
- package/{dist/es → es}/Questions/Step/ReviewStep.js +0 -0
- package/{dist/es → es}/Questions/Step/Step.js +0 -0
- package/{dist/es → es}/Questions/Step/StepArrayReview.js +0 -0
- package/{dist/es → es}/Questions/Step/StepContext.js +0 -0
- package/{dist/es → es}/Questions/Step/StepDescription.js +0 -0
- package/{dist/es → es}/Questions/Step/StepForm.js +0 -0
- package/{dist/es → es}/Questions/Step/StepQuote.js +0 -0
- package/{dist/es → es}/Questions/Step/StepTitle.js +0 -0
- package/{dist/es → es}/Questions/Step/getAddMoreFields.js +0 -0
- package/{dist/es → es}/Questions/Step/index.js +0 -0
- package/{dist/es → es}/Questions/Step/types.js +0 -0
- package/{dist/es → es}/Questions/__snapshots__/index.spec.tsx.snap +0 -0
- package/es/Questions/__stories__/Default.js +103 -0
- package/{dist/es → es}/Questions/getNextStep.js +0 -0
- package/{dist/es → es}/Questions/index.js +0 -0
- package/es/Questions/index.mdx +418 -0
- package/{dist/es → es}/Questions/index.spec.js +0 -0
- package/{dist/es → es}/Questions/types.js +0 -0
- package/{dist/es → es}/__stories__/AutoCompleteField.js +0 -0
- package/{dist/es → es}/__stories__/IntField.js +0 -0
- package/{dist/es → es}/create-simple-form.mdx +0 -0
- package/{dist/es → es}/index.js +0 -0
- package/{dist/es → es}/index.mdx +0 -0
- package/{dist/es → es}/inputs/AutoComplete/index.js +0 -0
- package/{dist/es → es}/inputs/Checkboxes/Checkboxes.stories.js +2 -1
- package/{dist/es → es}/inputs/Checkboxes/Checkboxes.stories.playwright.json +0 -0
- package/{dist/es → es}/inputs/Checkboxes/__stories__/Default.js +0 -0
- package/{dist/es → es}/inputs/Checkboxes/index.js +0 -0
- package/{dist/es → es}/inputs/Checkboxes/index.mdx +0 -0
- package/{dist/esm → es}/inputs/DateInput/DateInput.stories.js +2 -1
- package/{dist/es → es}/inputs/DateInput/DateInput.stories.playwright.json +0 -0
- package/{dist/es → es}/inputs/DateInput/__stories__/Default.js +0 -0
- package/{dist/es → es}/inputs/DateInput/index.js +0 -0
- package/{dist/es → es}/inputs/FileInput/FileInput.stories.js +2 -1
- package/{dist/es → es}/inputs/FileInput/FileInput.stories.playwright.json +0 -0
- package/{dist/es → es}/inputs/FileInput/__stories__/Default.js +0 -0
- package/{dist/es → es}/inputs/FileInput/index.js +0 -0
- package/{dist/es → es}/inputs/Input/Input.stories.js +2 -1
- package/{dist/es → es}/inputs/Input/Input.stories.playwright.json +0 -0
- package/{dist/es → es}/inputs/Input/__stories__/AFM.js +0 -0
- package/{dist/es → es}/inputs/Input/__stories__/Boolean.js +0 -0
- package/{dist/es → es}/inputs/Input/__stories__/Default.js +0 -0
- package/{dist/es → es}/inputs/Input/__stories__/IBAN.js +0 -0
- package/{dist/es → es}/inputs/Input/__stories__/Integer.js +0 -0
- package/{dist/es → es}/inputs/Input/__stories__/MobilePhone.js +0 -0
- package/{dist/es → es}/inputs/Input/__stories__/PhoneNumber.js +0 -0
- package/{dist/es → es}/inputs/Input/__stories__/PostalCode.js +0 -0
- package/{dist/es → es}/inputs/Input/index.js +0 -0
- package/{dist/es → es}/inputs/Input/index.mdx +0 -0
- package/{dist/es → es}/inputs/Label/Label.stories.js +2 -1
- package/{dist/es → es}/inputs/Label/Label.stories.playwright.json +0 -0
- package/{dist/es → es}/inputs/Label/__stories__/Default.js +0 -0
- package/{dist/es → es}/inputs/Label/index.js +0 -0
- package/{dist/es → es}/inputs/Label/index.mdx +0 -0
- package/{dist/es → es}/inputs/Radio/Radio.stories.js +2 -1
- package/{dist/es → es}/inputs/Radio/Radio.stories.playwright.json +0 -0
- package/{dist/es → es}/inputs/Radio/__stories__/Default.js +0 -0
- package/{dist/es → es}/inputs/Radio/index.js +0 -0
- package/{dist/es → es}/inputs/Radio/index.mdx +0 -0
- package/{dist/es → es}/inputs/Select/Select.stories.js +2 -1
- package/{dist/es → es}/inputs/Select/Select.stories.playwright.json +0 -0
- package/{dist/es → es}/inputs/Select/__stories__/Default.js +0 -0
- package/{dist/es → es}/inputs/Select/index.js +0 -0
- package/{dist/es → es}/inputs/index.js +0 -0
- package/{dist/es → es}/installation.mdx +0 -0
- package/{dist/es → es}/internal.js +0 -0
- package/{dist/es → es}/registry.js +0 -0
- package/{dist/es → es}/types.js +0 -0
- package/{dist/es → es}/utils.js +0 -0
- package/{dist/es → es}/validators/index.js +0 -0
- package/{dist/es → es}/validators/types.js +0 -0
- package/{dist/es → es}/validators/utils/afm.js +0 -0
- package/{dist/es → es}/validators/utils/file.js +0 -0
- package/{dist/es → es}/validators/utils/iban.js +0 -0
- package/{dist/es → es}/validators/utils/index.js +0 -0
- package/{dist/es → es}/validators/utils/int.js +0 -0
- package/{dist/es → es}/validators/utils/number.js +0 -0
- package/{dist/es → es}/validators/utils/phone.js +0 -0
- package/{dist/es → es}/validators/utils/postal_code.js +0 -0
- package/{dist/es → es}/validators/utils/uuid4.js +0 -0
- package/{dist/es → es}/validators/validators.spec.js +0 -0
- package/{dist/esm → esm}/Field/FieldBase.js +0 -0
- package/{dist/esm → esm}/Field/FieldBaseContainer.js +0 -0
- package/{dist/esm → esm}/Field/FieldConditional.js +0 -0
- package/{dist/esm → esm}/Field/index.js +0 -0
- package/{dist/esm → esm}/Field/index.mdx +0 -0
- package/{dist/esm → esm}/Field/types.js +0 -0
- package/{dist/esm → esm}/Field/utils.js +0 -0
- package/{dist/es → esm}/FieldArray/FieldArray.stories.js +2 -1
- package/{dist/esm → esm}/FieldArray/FieldArray.stories.playwright.json +0 -0
- package/{dist/esm → esm}/FieldArray/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/FieldArray/__stories__/WithExactLength.js +0 -0
- package/{dist/esm → esm}/FieldArray/index.js +0 -0
- package/{dist/esm → esm}/FieldObject/index.js +0 -0
- package/{dist/esm → esm}/Fieldset/FieldsetWithContext.js +0 -0
- package/{dist/esm → esm}/Fieldset/index.js +0 -0
- package/{dist/esm → esm}/Fieldset/types.js +0 -0
- package/{dist/esm → esm}/Form.stories.js +0 -0
- package/esm/Form.stories.playwright.json +71 -0
- package/{dist/esm → esm}/FormBuilder/FormBuilder.js +0 -0
- package/{dist/esm → esm}/FormBuilder/FormBuilder.mdx +1 -1
- package/esm/FormBuilder/FormBuilder.stories.js +7 -0
- package/{dist/esm → esm}/FormBuilder/FormBuilder.stories.playwright.json +0 -0
- package/{dist/esm → esm}/FormBuilder/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/FormBuilder/index.js +0 -0
- package/{dist/esm → esm}/FormContext.js +0 -0
- package/{dist/esm → esm}/MultiplicityField/MultiplicityField.mdx +0 -0
- package/{dist/esm → esm}/MultiplicityField/MultiplicityField.stories.js +2 -1
- package/{dist/esm → esm}/MultiplicityField/MultiplicityField.stories.playwright.json +0 -0
- package/{dist/esm → esm}/MultiplicityField/__stories__/Default.js +0 -0
- package/{dist/es → esm}/MultiplicityField/__stories__/PreviewDisplay.js +6 -6
- package/{dist/esm → esm}/MultiplicityField/__stories__/WithExactLength.js +0 -0
- package/{dist/esm → esm}/MultiplicityField/__stories__/WithMaxLength.js +0 -0
- package/{dist/esm → esm}/MultiplicityField/__stories__/WithMinAndMaxLength.js +0 -0
- package/{dist/esm → esm}/MultiplicityField/__stories__/WithMinLength.js +0 -0
- package/{dist/esm → esm}/MultiplicityField/add-objects.js +0 -0
- package/{dist/esm → esm}/MultiplicityField/index.js +0 -0
- package/{dist/esm → esm}/Questions/Questions.js +0 -0
- package/esm/Questions/Questions.stories.js +7 -0
- package/{dist/esm → esm}/Questions/QuestionsContext.js +0 -0
- package/{dist/esm → esm}/Questions/Step/ReviewStep.js +0 -0
- package/{dist/esm → esm}/Questions/Step/Step.js +0 -0
- package/{dist/esm → esm}/Questions/Step/StepArrayReview.js +0 -0
- package/{dist/esm → esm}/Questions/Step/StepContext.js +0 -0
- package/{dist/esm → esm}/Questions/Step/StepDescription.js +0 -0
- package/{dist/esm → esm}/Questions/Step/StepForm.js +0 -0
- package/{dist/esm → esm}/Questions/Step/StepQuote.js +0 -0
- package/{dist/esm → esm}/Questions/Step/StepTitle.js +0 -0
- package/{dist/esm → esm}/Questions/Step/getAddMoreFields.js +0 -0
- package/{dist/esm → esm}/Questions/Step/index.js +0 -0
- package/{dist/esm → esm}/Questions/Step/types.js +0 -0
- package/{dist/esm → esm}/Questions/__snapshots__/index.spec.tsx.snap +0 -0
- package/esm/Questions/__stories__/Default.js +103 -0
- package/{dist/esm → esm}/Questions/getNextStep.js +0 -0
- package/{dist/esm → esm}/Questions/index.js +0 -0
- package/esm/Questions/index.mdx +418 -0
- package/{dist/esm → esm}/Questions/index.spec.js +0 -0
- package/{dist/esm → esm}/Questions/types.js +0 -0
- package/{dist/esm → esm}/__stories__/AutoCompleteField.js +0 -0
- package/{dist/esm → esm}/__stories__/IntField.js +0 -0
- package/{dist/esm → esm}/create-simple-form.mdx +0 -0
- package/{dist/esm → esm}/index.js +1 -1
- package/{dist/esm → esm}/index.mdx +0 -0
- package/{dist/esm → esm}/inputs/AutoComplete/index.js +0 -0
- package/{dist/esm → esm}/inputs/Checkboxes/Checkboxes.stories.js +2 -1
- package/{dist/esm → esm}/inputs/Checkboxes/Checkboxes.stories.playwright.json +0 -0
- package/{dist/esm → esm}/inputs/Checkboxes/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/inputs/Checkboxes/index.js +0 -0
- package/{dist/esm → esm}/inputs/Checkboxes/index.mdx +0 -0
- package/{dist/es → esm}/inputs/DateInput/DateInput.stories.js +2 -1
- package/{dist/esm → esm}/inputs/DateInput/DateInput.stories.playwright.json +0 -0
- package/{dist/esm → esm}/inputs/DateInput/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/inputs/DateInput/index.js +0 -0
- package/{dist/esm → esm}/inputs/FileInput/FileInput.stories.js +2 -1
- package/{dist/esm → esm}/inputs/FileInput/FileInput.stories.playwright.json +0 -0
- package/{dist/esm → esm}/inputs/FileInput/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/inputs/FileInput/index.js +0 -0
- package/{dist/esm → esm}/inputs/Input/Input.stories.js +2 -1
- package/{dist/esm → esm}/inputs/Input/Input.stories.playwright.json +0 -0
- package/{dist/esm → esm}/inputs/Input/__stories__/AFM.js +0 -0
- package/{dist/esm → esm}/inputs/Input/__stories__/Boolean.js +0 -0
- package/{dist/esm → esm}/inputs/Input/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/inputs/Input/__stories__/IBAN.js +0 -0
- package/{dist/esm → esm}/inputs/Input/__stories__/Integer.js +0 -0
- package/{dist/esm → esm}/inputs/Input/__stories__/MobilePhone.js +0 -0
- package/{dist/esm → esm}/inputs/Input/__stories__/PhoneNumber.js +0 -0
- package/{dist/esm → esm}/inputs/Input/__stories__/PostalCode.js +0 -0
- package/{dist/esm → esm}/inputs/Input/index.js +0 -0
- package/{dist/esm → esm}/inputs/Input/index.mdx +0 -0
- package/{dist/esm → esm}/inputs/Label/Label.stories.js +2 -1
- package/{dist/esm → esm}/inputs/Label/Label.stories.playwright.json +0 -0
- package/{dist/esm → esm}/inputs/Label/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/inputs/Label/index.js +0 -0
- package/{dist/esm → esm}/inputs/Label/index.mdx +0 -0
- package/{dist/esm → esm}/inputs/Radio/Radio.stories.js +2 -1
- package/{dist/esm → esm}/inputs/Radio/Radio.stories.playwright.json +0 -0
- package/{dist/esm → esm}/inputs/Radio/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/inputs/Radio/index.js +0 -0
- package/{dist/esm → esm}/inputs/Radio/index.mdx +0 -0
- package/{dist/esm → esm}/inputs/Select/Select.stories.js +2 -1
- package/{dist/esm → esm}/inputs/Select/Select.stories.playwright.json +0 -0
- package/{dist/esm → esm}/inputs/Select/__stories__/Default.js +0 -0
- package/{dist/esm → esm}/inputs/Select/index.js +0 -0
- package/{dist/esm → esm}/inputs/index.js +0 -0
- package/{dist/esm → esm}/installation.mdx +0 -0
- package/{dist/esm → esm}/internal.js +0 -0
- package/{dist/esm → esm}/registry.js +0 -0
- package/{dist/esm → esm}/types.js +0 -0
- package/{dist/esm → esm}/utils.js +0 -0
- package/{dist/esm → esm}/validators/index.js +0 -0
- package/{dist/esm → esm}/validators/types.js +0 -0
- package/{dist/esm → esm}/validators/utils/afm.js +0 -0
- package/{dist/esm → esm}/validators/utils/file.js +0 -0
- package/{dist/esm → esm}/validators/utils/iban.js +0 -0
- package/{dist/esm → esm}/validators/utils/index.js +0 -0
- package/{dist/esm → esm}/validators/utils/int.js +0 -0
- package/{dist/esm → esm}/validators/utils/number.js +0 -0
- package/{dist/esm → esm}/validators/utils/phone.js +0 -0
- package/{dist/esm → esm}/validators/utils/postal_code.js +0 -0
- package/{dist/esm → esm}/validators/utils/uuid4.js +0 -0
- package/{dist/esm → esm}/validators/validators.spec.js +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/{dist/index.mdx → index.mdx} +0 -0
- package/{dist/inputs → inputs}/AutoComplete/index.d.ts +0 -0
- package/{dist/inputs → inputs}/AutoComplete/index.js +0 -0
- package/{dist/inputs → inputs}/Checkboxes/Checkboxes.stories.d.ts +1 -0
- package/{dist/inputs → inputs}/Checkboxes/Checkboxes.stories.js +2 -1
- package/{dist/inputs → inputs}/Checkboxes/Checkboxes.stories.playwright.json +0 -0
- package/{dist/inputs → inputs}/Checkboxes/__stories__/Default.d.ts +0 -0
- package/{dist/inputs → inputs}/Checkboxes/__stories__/Default.js +0 -0
- package/{dist/inputs → inputs}/Checkboxes/index.d.ts +0 -0
- package/{dist/inputs → inputs}/Checkboxes/index.js +0 -0
- package/{dist/inputs → inputs}/Checkboxes/index.mdx +0 -0
- package/{dist/inputs → inputs}/DateInput/DateInput.stories.d.ts +1 -0
- package/{dist/inputs → inputs}/DateInput/DateInput.stories.js +2 -1
- package/{dist/inputs → inputs}/DateInput/DateInput.stories.playwright.json +0 -0
- package/{dist/inputs → inputs}/DateInput/__stories__/Default.d.ts +0 -0
- package/{dist/inputs → inputs}/DateInput/__stories__/Default.js +0 -0
- package/{dist/inputs → inputs}/DateInput/index.d.ts +0 -0
- package/{dist/inputs → inputs}/DateInput/index.js +0 -0
- package/{dist/inputs → inputs}/FileInput/FileInput.stories.d.ts +1 -0
- package/{dist/inputs → inputs}/FileInput/FileInput.stories.js +2 -1
- package/{dist/inputs → inputs}/FileInput/FileInput.stories.playwright.json +0 -0
- package/{dist/inputs → inputs}/FileInput/__stories__/Default.d.ts +0 -0
- package/{dist/inputs → inputs}/FileInput/__stories__/Default.js +0 -0
- package/{dist/inputs → inputs}/FileInput/index.d.ts +0 -0
- package/{dist/inputs → inputs}/FileInput/index.js +0 -0
- package/{dist/inputs → inputs}/Input/Input.stories.d.ts +1 -0
- package/{dist/inputs → inputs}/Input/Input.stories.js +2 -1
- package/{dist/inputs → inputs}/Input/Input.stories.playwright.json +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/AFM.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/AFM.js +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/Boolean.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/Boolean.js +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/Default.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/Default.js +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/IBAN.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/IBAN.js +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/Integer.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/Integer.js +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/MobilePhone.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/MobilePhone.js +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/PhoneNumber.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/PhoneNumber.js +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/PostalCode.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/__stories__/PostalCode.js +0 -0
- package/{dist/inputs → inputs}/Input/index.d.ts +0 -0
- package/{dist/inputs → inputs}/Input/index.js +0 -0
- package/{dist/inputs → inputs}/Input/index.mdx +0 -0
- package/{dist/inputs → inputs}/Label/Label.stories.d.ts +1 -0
- package/{dist/inputs → inputs}/Label/Label.stories.js +2 -1
- package/{dist/inputs → inputs}/Label/Label.stories.playwright.json +0 -0
- package/{dist/inputs → inputs}/Label/__stories__/Default.d.ts +0 -0
- package/{dist/inputs → inputs}/Label/__stories__/Default.js +0 -0
- package/{dist/inputs → inputs}/Label/index.d.ts +0 -0
- package/{dist/inputs → inputs}/Label/index.js +0 -0
- package/{dist/inputs → inputs}/Label/index.mdx +0 -0
- package/{dist/inputs → inputs}/Radio/Radio.stories.d.ts +1 -0
- package/{dist/inputs → inputs}/Radio/Radio.stories.js +2 -1
- package/{dist/inputs → inputs}/Radio/Radio.stories.playwright.json +0 -0
- package/{dist/inputs → inputs}/Radio/__stories__/Default.d.ts +0 -0
- package/{dist/inputs → inputs}/Radio/__stories__/Default.js +0 -0
- package/{dist/inputs → inputs}/Radio/index.d.ts +0 -0
- package/{dist/inputs → inputs}/Radio/index.js +0 -0
- package/{dist/inputs → inputs}/Radio/index.mdx +0 -0
- package/{dist/inputs → inputs}/Select/Select.stories.d.ts +1 -0
- package/{dist/inputs → inputs}/Select/Select.stories.js +2 -1
- package/{dist/inputs → inputs}/Select/Select.stories.playwright.json +0 -0
- package/{dist/inputs → inputs}/Select/__stories__/Default.d.ts +0 -0
- package/{dist/inputs → inputs}/Select/__stories__/Default.js +0 -0
- package/{dist/inputs → inputs}/Select/index.d.ts +0 -0
- package/{dist/inputs → inputs}/Select/index.js +0 -0
- package/{dist/inputs → inputs}/index.d.ts +0 -0
- package/{dist/inputs → inputs}/index.js +0 -0
- package/{dist/installation.mdx → installation.mdx} +0 -0
- package/{dist/internal.d.ts → internal.d.ts} +0 -0
- package/{dist/internal.js → internal.js} +0 -0
- package/package.json +10 -31
- package/{dist/registry.d.ts → registry.d.ts} +0 -0
- package/{dist/registry.js → registry.js} +0 -0
- package/src/FieldArray/FieldArray.stories.js +1 -0
- package/src/Form.stories.playwright.json +0 -72
- package/src/FormBuilder/FormBuilder.mdx +1 -1
- package/src/FormBuilder/FormBuilder.stories.js +1 -0
- package/src/MultiplicityField/MultiplicityField.stories.js +1 -0
- package/src/MultiplicityField/__stories__/PreviewDisplay.tsx +6 -6
- package/src/Questions/Questions.stories.js +7 -0
- package/src/Questions/__stories__/Default.tsx +130 -0
- package/src/Questions/index.mdx +411 -6
- package/src/inputs/Checkboxes/Checkboxes.stories.js +1 -0
- package/src/inputs/DateInput/DateInput.stories.js +1 -0
- package/src/inputs/FileInput/FileInput.stories.js +1 -0
- package/src/inputs/Input/Input.stories.js +1 -0
- package/src/inputs/Label/Label.stories.js +1 -0
- package/src/inputs/Radio/Radio.stories.js +1 -0
- package/src/inputs/Select/Select.stories.js +1 -0
- package/{dist/types.d.ts → types.d.ts} +0 -0
- package/{dist/types.js → types.js} +0 -0
- package/{dist/utils.d.ts → utils.d.ts} +0 -0
- package/{dist/utils.js → utils.js} +0 -0
- package/{dist/validators → validators}/index.d.ts +0 -0
- package/{dist/validators → validators}/index.js +0 -0
- package/{dist/validators → validators}/types.d.ts +0 -0
- package/{dist/validators → validators}/types.js +0 -0
- package/{dist/validators → validators}/utils/afm.d.ts +0 -0
- package/{dist/validators → validators}/utils/afm.js +0 -0
- package/{dist/validators → validators}/utils/file.d.ts +0 -0
- package/{dist/validators → validators}/utils/file.js +0 -0
- package/{dist/validators → validators}/utils/iban.d.ts +0 -0
- package/{dist/validators → validators}/utils/iban.js +0 -0
- package/{dist/validators → validators}/utils/index.d.ts +0 -0
- package/{dist/validators → validators}/utils/index.js +0 -0
- package/{dist/validators → validators}/utils/int.d.ts +0 -0
- package/{dist/validators → validators}/utils/int.js +0 -0
- package/{dist/validators → validators}/utils/number.d.ts +0 -0
- package/{dist/validators → validators}/utils/number.js +0 -0
- package/{dist/validators → validators}/utils/phone.d.ts +0 -0
- package/{dist/validators → validators}/utils/phone.js +0 -0
- package/{dist/validators → validators}/utils/postal_code.d.ts +0 -0
- package/{dist/validators → validators}/utils/postal_code.js +0 -0
- package/{dist/validators → validators}/utils/uuid4.d.ts +0 -0
- package/{dist/validators → validators}/utils/uuid4.js +0 -0
- package/{dist/validators → validators}/validators.spec.d.ts +0 -0
- package/{dist/validators → validators}/validators.spec.js +0 -0
- package/.eslintrc.js +0 -3
- package/.prettierrc.js +0 -3
- package/CHANGELOG.json +0 -1392
- package/coverage/clover.xml +0 -859
- package/coverage/coverage-final.json +0 -51
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -386
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/Field/FieldBase.tsx.html +0 -379
- package/coverage/lcov-report/src/Field/FieldConditional.tsx.html +0 -310
- package/coverage/lcov-report/src/Field/FieldContainer.tsx.html +0 -256
- package/coverage/lcov-report/src/Field/index.html +0 -176
- package/coverage/lcov-report/src/Field/index.tsx.html +0 -352
- package/coverage/lcov-report/src/Field/utils.ts.html +0 -559
- package/coverage/lcov-report/src/FieldArray/index.html +0 -116
- package/coverage/lcov-report/src/FieldArray/index.tsx.html +0 -319
- package/coverage/lcov-report/src/FieldObject/index.html +0 -116
- package/coverage/lcov-report/src/FieldObject/index.tsx.html +0 -364
- package/coverage/lcov-report/src/Fieldset/index.html +0 -116
- package/coverage/lcov-report/src/Fieldset/index.tsx.html +0 -202
- package/coverage/lcov-report/src/FormBuilder/FormBuilder.tsx.html +0 -580
- package/coverage/lcov-report/src/FormBuilder/index.html +0 -131
- package/coverage/lcov-report/src/FormBuilder/index.tsx.html +0 -94
- package/coverage/lcov-report/src/FormContext.tsx.html +0 -109
- package/coverage/lcov-report/src/MultiplicityField/add-objects.tsx.html +0 -637
- package/coverage/lcov-report/src/MultiplicityField/index.html +0 -131
- package/coverage/lcov-report/src/MultiplicityField/index.tsx.html +0 -580
- package/coverage/lcov-report/src/Questions/Questions.tsx.html +0 -307
- package/coverage/lcov-report/src/Questions/QuestionsContext.tsx.html +0 -112
- package/coverage/lcov-report/src/Questions/Step/ReviewStep.tsx.html +0 -274
- package/coverage/lcov-report/src/Questions/Step/Step.tsx.html +0 -286
- package/coverage/lcov-report/src/Questions/Step/StepArrayReview.tsx.html +0 -289
- package/coverage/lcov-report/src/Questions/Step/StepContext.tsx.html +0 -148
- package/coverage/lcov-report/src/Questions/Step/StepDescription.tsx.html +0 -184
- package/coverage/lcov-report/src/Questions/Step/StepForm.tsx.html +0 -265
- package/coverage/lcov-report/src/Questions/Step/StepQuote.tsx.html +0 -109
- package/coverage/lcov-report/src/Questions/Step/StepTitle.tsx.html +0 -265
- package/coverage/lcov-report/src/Questions/Step/getAddMoreFields.tsx.html +0 -169
- package/coverage/lcov-report/src/Questions/Step/index.html +0 -266
- package/coverage/lcov-report/src/Questions/Step/index.ts.html +0 -124
- package/coverage/lcov-report/src/Questions/Step/types.tsx.html +0 -181
- package/coverage/lcov-report/src/Questions/getNextStep.tsx.html +0 -157
- package/coverage/lcov-report/src/Questions/index.html +0 -161
- package/coverage/lcov-report/src/Questions/index.tsx.html +0 -100
- package/coverage/lcov-report/src/index.html +0 -176
- package/coverage/lcov-report/src/index.ts.html +0 -94
- package/coverage/lcov-report/src/inputs/Checkboxes/index.html +0 -116
- package/coverage/lcov-report/src/inputs/Checkboxes/index.tsx.html +0 -307
- package/coverage/lcov-report/src/inputs/DateInput/index.html +0 -116
- package/coverage/lcov-report/src/inputs/DateInput/index.tsx.html +0 -475
- package/coverage/lcov-report/src/inputs/FileInput/index.html +0 -116
- package/coverage/lcov-report/src/inputs/FileInput/index.tsx.html +0 -313
- package/coverage/lcov-report/src/inputs/Input/index.html +0 -116
- package/coverage/lcov-report/src/inputs/Input/index.tsx.html +0 -271
- package/coverage/lcov-report/src/inputs/Label/index.html +0 -116
- package/coverage/lcov-report/src/inputs/Label/index.tsx.html +0 -217
- package/coverage/lcov-report/src/inputs/Radio/index.html +0 -116
- package/coverage/lcov-report/src/inputs/Radio/index.tsx.html +0 -256
- package/coverage/lcov-report/src/inputs/Select/index.html +0 -116
- package/coverage/lcov-report/src/inputs/Select/index.tsx.html +0 -196
- package/coverage/lcov-report/src/inputs/index.html +0 -116
- package/coverage/lcov-report/src/inputs/index.ts.html +0 -106
- package/coverage/lcov-report/src/internal.ts.html +0 -184
- package/coverage/lcov-report/src/types.tsx.html +0 -406
- package/coverage/lcov-report/src/utils.ts.html +0 -319
- package/coverage/lcov-report/src/validators/index.html +0 -116
- package/coverage/lcov-report/src/validators/index.ts.html +0 -694
- package/coverage/lcov-report/src/validators/utils/afm.ts.html +0 -196
- package/coverage/lcov-report/src/validators/utils/file.ts.html +0 -160
- package/coverage/lcov-report/src/validators/utils/iban.ts.html +0 -442
- package/coverage/lcov-report/src/validators/utils/index.html +0 -236
- package/coverage/lcov-report/src/validators/utils/index.ts.html +0 -367
- package/coverage/lcov-report/src/validators/utils/int.ts.html +0 -151
- package/coverage/lcov-report/src/validators/utils/number.ts.html +0 -139
- package/coverage/lcov-report/src/validators/utils/phone.ts.html +0 -445
- package/coverage/lcov-report/src/validators/utils/postal_code.ts.html +0 -184
- package/coverage/lcov-report/src/validators/utils/uuid4.ts.html +0 -148
- package/coverage/lcov.info +0 -1969
- package/dist/CHANGELOG.md +0 -432
- package/dist/Form.stories.playwright.json +0 -143
- package/dist/Questions/index.mdx +0 -13
- package/dist/README.md +0 -0
- package/dist/es/Form.stories.playwright.json +0 -143
- package/dist/es/FormBuilder/FormBuilder.stories.js +0 -6
- package/dist/es/Questions/index.mdx +0 -13
- package/dist/esm/Form.stories.playwright.json +0 -143
- package/dist/esm/FormBuilder/FormBuilder.stories.js +0 -6
- package/dist/esm/Questions/index.mdx +0 -13
- package/dist/package.json +0 -31
- package/docs/index.mdx +0 -6
- package/form.build.log +0 -16
- package/tsconfig.json +0 -14
- package/tsconfig.production.json +0 -49
|
@@ -25,6 +25,7 @@ Object.keys(_Default).forEach(function (key) {
|
|
|
25
25
|
});
|
|
26
26
|
var _default = {
|
|
27
27
|
title: 'Digigov Form/inputs/Checkboxes',
|
|
28
|
-
component: _Checkboxes["default"]
|
|
28
|
+
component: _Checkboxes["default"],
|
|
29
|
+
displayName: 'Checkboxes'
|
|
29
30
|
};
|
|
30
31
|
exports["default"] = _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/form",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
4
4
|
"description": "@digigov form builder",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
7
|
-
"main": "
|
|
8
|
-
"module": "index.js",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"module": "./esm/index.js",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public",
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"lint": "digigov lint",
|
|
15
|
-
"test": "digigov test",
|
|
16
|
-
"build": "digigov build --subpackages",
|
|
17
|
-
"prepublish": "digigov build --subpackages"
|
|
18
|
-
},
|
|
19
13
|
"dependencies": {
|
|
20
14
|
"react-hook-form": "7.33.1",
|
|
21
15
|
"yup": "0.32.11",
|
|
@@ -24,29 +18,14 @@
|
|
|
24
18
|
"@hookform/resolvers": "2.9.6"
|
|
25
19
|
},
|
|
26
20
|
"peerDependencies": {
|
|
27
|
-
"@digigov/ui": "0.
|
|
28
|
-
"@digigov/react-core": "0.
|
|
29
|
-
"@digigov/react-extensions": "0.20.
|
|
21
|
+
"@digigov/ui": "0.29.0",
|
|
22
|
+
"@digigov/react-core": "0.19.0",
|
|
23
|
+
"@digigov/react-extensions": "0.20.2",
|
|
30
24
|
"clsx": "1.1.1",
|
|
31
25
|
"react": "^16.8.0 || ^17.0.0",
|
|
32
26
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
33
27
|
},
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"@digigov/cli-test": "0.7.2",
|
|
39
|
-
"typescript": "4.2.3",
|
|
40
|
-
"@types/node": "16.6.2",
|
|
41
|
-
"@types/react": "16.9.56",
|
|
42
|
-
"@types/react-dom": "16.9.9",
|
|
43
|
-
"@types/enzyme": "3.10.8",
|
|
44
|
-
"@types/enzyme-adapter-react-16": "1.0.5",
|
|
45
|
-
"@types/jest": "26.0.15",
|
|
46
|
-
"enzyme": "3.11.0",
|
|
47
|
-
"eslint": "7.24.0",
|
|
48
|
-
"prettier": "2.2.1",
|
|
49
|
-
"@hookform/devtools": "4.2.0"
|
|
50
|
-
},
|
|
51
|
-
"gitHead": "c903a46306f77f55ad7fc4d2e274006f39a6c871"
|
|
52
|
-
}
|
|
28
|
+
"gitHead": "c903a46306f77f55ad7fc4d2e274006f39a6c871",
|
|
29
|
+
"private": false,
|
|
30
|
+
"typings": "./index.d.ts"
|
|
31
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,7 @@ import FieldArray from '@digigov/form/FieldArray';
|
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/FieldArray',
|
|
4
4
|
component: FieldArray,
|
|
5
|
+
displayName: 'FieldArray'
|
|
5
6
|
};
|
|
6
7
|
export * from '@digigov/form/FieldArray/__stories__/Default';
|
|
7
8
|
export * from '@digigov/form/FieldArray/__stories__/WithExactLength';
|
|
@@ -66,78 +66,6 @@
|
|
|
66
66
|
"title": "Add number"
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
|
-
},
|
|
70
|
-
"digigov-form--auto-complete-field": {
|
|
71
|
-
"actionSets": [
|
|
72
|
-
{
|
|
73
|
-
"actions": [
|
|
74
|
-
{
|
|
75
|
-
"name": "keyboard.press",
|
|
76
|
-
"args": {
|
|
77
|
-
"key": "Tab"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "type",
|
|
82
|
-
"args": {
|
|
83
|
-
"selector": "html>body>div:nth-child(5)>form>div>label>div>input",
|
|
84
|
-
"text": "ch"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "keyboard.press",
|
|
89
|
-
"args": {
|
|
90
|
-
"key": "ArrowDown"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "keyboard.press",
|
|
95
|
-
"args": {
|
|
96
|
-
"key": "ArrowDown"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "keyboard.press",
|
|
101
|
-
"args": {
|
|
102
|
-
"key": "ArrowUp"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "keyboard.press",
|
|
107
|
-
"args": {
|
|
108
|
-
"key": "Enter"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
"id": "14vEsPV7hizO",
|
|
113
|
-
"title": "flow with keyboard"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"actions": [
|
|
117
|
-
{
|
|
118
|
-
"name": "type",
|
|
119
|
-
"args": {
|
|
120
|
-
"selector": "html>body>div:nth-child(5)>form>div>label>div>input",
|
|
121
|
-
"text": "a"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "click",
|
|
126
|
-
"args": {
|
|
127
|
-
"selector": ".govgr-autocomplete__option:has-text(\"Akrotiri\")"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"name": "click",
|
|
132
|
-
"args": {
|
|
133
|
-
"selector": "html>body>div:nth-child(5)>form>button"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"id": "4a4faD_8O-1f",
|
|
138
|
-
"title": "flow with mouse"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
69
|
}
|
|
142
70
|
}
|
|
143
71
|
}
|
|
@@ -94,7 +94,7 @@ import BasicLayout, {
|
|
|
94
94
|
Bottom,
|
|
95
95
|
} from '@digigov/ui/layouts/Basic';
|
|
96
96
|
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
97
|
-
import GovGRLogo from '@digigov/ui/govgr/
|
|
97
|
+
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
98
98
|
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
99
99
|
import Button from '@digigov/ui/core/Button';
|
|
100
100
|
import PageTitle, {
|
|
@@ -2,6 +2,7 @@ import MultiplicityField from '@digigov/form/MultiplicityField';
|
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/MultiplicityField',
|
|
4
4
|
component: MultiplicityField,
|
|
5
|
+
displayName: 'MultiplicityField'
|
|
5
6
|
};
|
|
6
7
|
export * from '@digigov/form/MultiplicityField/__stories__/Default';
|
|
7
8
|
export * from '@digigov/form/MultiplicityField/__stories__/WithMinLength';
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
HeaderSection,
|
|
11
11
|
HeaderContent,
|
|
12
12
|
HeaderTitle,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
HeadingCaption,
|
|
14
|
+
Heading,
|
|
15
15
|
Paragraph,
|
|
16
16
|
Card,
|
|
17
17
|
CardHeading,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ListItem,
|
|
21
21
|
} from '@digigov/ui';
|
|
22
22
|
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
23
|
-
import GovGRLogo from '@digigov/ui/govgr/
|
|
23
|
+
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
24
24
|
|
|
25
25
|
const fields = [
|
|
26
26
|
{
|
|
@@ -73,8 +73,8 @@ export const PreviewDisplay = () => (
|
|
|
73
73
|
</Header>
|
|
74
74
|
<Content>
|
|
75
75
|
<Main>
|
|
76
|
-
<
|
|
77
|
-
<
|
|
76
|
+
<HeadingCaption>Ψηφιακή βεβαίωση ιδιωτικού συμφωνητικού</HeadingCaption>
|
|
77
|
+
<Heading>Προεπισκόπηση</Heading>
|
|
78
78
|
<Paragraph>
|
|
79
79
|
<Paragraph>
|
|
80
80
|
Παρακάτω εμφανίζονται οι συνυπογράφοντες του ιδιωτικού συμφωνητικού
|
|
@@ -123,7 +123,7 @@ export const PreviewDisplay = () => (
|
|
|
123
123
|
</SummaryList>
|
|
124
124
|
</CardText>
|
|
125
125
|
</Card>
|
|
126
|
-
<
|
|
126
|
+
<Heading size="m">Στοιχεία Δήλωσης</Heading>
|
|
127
127
|
<SummaryList>
|
|
128
128
|
<SummaryListItem>
|
|
129
129
|
<SummaryListItemKey>Όνομα</SummaryListItemKey>
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
3
|
+
import Header from '@digigov/ui/app/Header';
|
|
4
|
+
import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
|
5
|
+
import HeaderContent from '@digigov/ui/app/Header/HeaderContent';
|
|
6
|
+
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
7
|
+
import BasicLayout, {
|
|
8
|
+
Top,
|
|
9
|
+
Content,
|
|
10
|
+
Main,
|
|
11
|
+
Bottom,
|
|
12
|
+
} from '@digigov/ui/layouts/Basic';
|
|
13
|
+
import Questions, { Step, StepForm, StepTitle } from '@digigov/form/Questions';
|
|
14
|
+
import { Field } from '@digigov/form';
|
|
15
|
+
|
|
16
|
+
const steps = [
|
|
17
|
+
{
|
|
18
|
+
name: 'age',
|
|
19
|
+
title: 'What is your age?',
|
|
20
|
+
fields: [
|
|
21
|
+
{
|
|
22
|
+
key: 'age',
|
|
23
|
+
type: 'int',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
nextStep: (data) => {
|
|
28
|
+
return data.age > 17 ? 'citizen-adult' : 'citizen-underage';
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'citizen-underage',
|
|
33
|
+
title: 'Are you a student?',
|
|
34
|
+
fields: [
|
|
35
|
+
{
|
|
36
|
+
key: 'citizen-underage-student',
|
|
37
|
+
type: 'radio',
|
|
38
|
+
required: true,
|
|
39
|
+
options: [
|
|
40
|
+
{
|
|
41
|
+
label: { primary: 'Yes' },
|
|
42
|
+
value: 'yes',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: { primary: 'No' },
|
|
46
|
+
value: 'no',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'citizen-adult',
|
|
54
|
+
title: 'Are you currently employed?',
|
|
55
|
+
fields: [
|
|
56
|
+
{
|
|
57
|
+
key: 'citizen-adult-employed',
|
|
58
|
+
type: 'radio',
|
|
59
|
+
required: true,
|
|
60
|
+
options: [
|
|
61
|
+
{
|
|
62
|
+
label: { primary: 'Yes' },
|
|
63
|
+
value: 'yes',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: { primary: 'No' },
|
|
67
|
+
value: 'no',
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
export function Default() {
|
|
76
|
+
return (
|
|
77
|
+
<BasicLayout>
|
|
78
|
+
<Top>
|
|
79
|
+
<Header>
|
|
80
|
+
<HeaderSection>
|
|
81
|
+
<HeaderContent>
|
|
82
|
+
<GovGRLogo href="#" />
|
|
83
|
+
</HeaderContent>
|
|
84
|
+
</HeaderSection>
|
|
85
|
+
</Header>
|
|
86
|
+
</Top>
|
|
87
|
+
<Content>
|
|
88
|
+
<Main>
|
|
89
|
+
<Questions
|
|
90
|
+
name={'example'}
|
|
91
|
+
steps={steps}
|
|
92
|
+
onSubmit={(data) => {
|
|
93
|
+
console.log(data);
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
<Step name="age">
|
|
97
|
+
<StepTitle />
|
|
98
|
+
<StepForm submitButton={true}>
|
|
99
|
+
<Field key="age" name="age" />
|
|
100
|
+
</StepForm>
|
|
101
|
+
</Step>
|
|
102
|
+
<Step name="citizen-underage">
|
|
103
|
+
<StepTitle />
|
|
104
|
+
<StepForm submitButton={true}>
|
|
105
|
+
<Field
|
|
106
|
+
key="citizen-underage-student"
|
|
107
|
+
name="citizen-underage-student"
|
|
108
|
+
/>
|
|
109
|
+
</StepForm>
|
|
110
|
+
</Step>
|
|
111
|
+
<Step name="citizen-adult">
|
|
112
|
+
<StepTitle />
|
|
113
|
+
<StepForm submitButton={true}>
|
|
114
|
+
<Field
|
|
115
|
+
key="citizen-adult-employed"
|
|
116
|
+
name="citizen-adult-employed"
|
|
117
|
+
/>
|
|
118
|
+
</StepForm>
|
|
119
|
+
</Step>
|
|
120
|
+
</Questions>
|
|
121
|
+
</Main>
|
|
122
|
+
</Content>
|
|
123
|
+
<Bottom>
|
|
124
|
+
<GovGRFooter />
|
|
125
|
+
</Bottom>
|
|
126
|
+
</BasicLayout>
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export default Default;
|