@digigov/form 1.0.0-8bbf3ef2 → 1.0.0-a131264d
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/FieldBase.js +1 -1
- package/{esm/Field/FieldBase.js → Field/FieldBase.mjs} +1 -1
- package/Field/FieldBaseContainer.js +1 -1
- package/{esm/Field/FieldBaseContainer.js → Field/FieldBaseContainer.mjs} +1 -1
- package/Field/FieldConditional.js +2 -2
- package/{esm/Field/FieldConditional.js → Field/FieldConditional.mjs} +2 -2
- package/Field/index.js +5 -5
- package/{esm/Field/index.js → Field/index.mjs} +5 -5
- package/Field/utils.js +9 -9
- package/{esm/Field/utils.js → Field/utils.mjs} +9 -9
- package/FieldArray/FieldArray.stories.js +4 -4
- package/FieldArray/FieldArray.stories.mjs +8 -0
- package/FieldArray/__stories__/Default.js +5 -5
- package/{esm/FieldArray/__stories__/Default.js → FieldArray/__stories__/Default.mjs} +1 -1
- package/FieldArray/__stories__/WithExactLength.js +5 -5
- package/{esm/FieldArray/__stories__/WithExactLength.js → FieldArray/__stories__/WithExactLength.mjs} +1 -1
- package/FieldArray/index.js +3 -3
- package/{esm/FieldArray/index.js → FieldArray/index.mjs} +3 -3
- package/FieldObject/index.js +3 -3
- package/{esm/FieldObject/index.js → FieldObject/index.mjs} +3 -3
- package/Fieldset/FieldsetWithContext.js +5 -5
- package/{esm/Fieldset/FieldsetWithContext.js → Fieldset/FieldsetWithContext.mjs} +3 -3
- package/FormBuilder/FormBuilder.js +5 -5
- package/{esm/FormBuilder/FormBuilder.js → FormBuilder/FormBuilder.mjs} +5 -5
- package/FormBuilder/FormBuilder.stories.js +3 -3
- package/FormBuilder/FormBuilder.stories.mjs +7 -0
- package/FormBuilder/__stories__/Default.js +3 -3
- package/{esm/FormBuilder/__stories__/Default.js → FormBuilder/__stories__/Default.mjs} +1 -1
- package/FormBuilder/index.js +1 -1
- package/FormBuilder/index.mjs +2 -0
- package/MultiplicityField/MultiplicityField.stories.js +8 -8
- package/MultiplicityField/MultiplicityField.stories.mjs +12 -0
- package/MultiplicityField/__stories__/Default.js +5 -5
- package/{esm/MultiplicityField/__stories__/Default.js → MultiplicityField/__stories__/Default.mjs} +1 -1
- package/MultiplicityField/__stories__/WithExactLength.js +5 -5
- package/{esm/MultiplicityField/__stories__/WithExactLength.js → MultiplicityField/__stories__/WithExactLength.mjs} +1 -1
- package/MultiplicityField/__stories__/WithMaxLength.js +5 -5
- package/{esm/MultiplicityField/__stories__/WithMaxLength.js → MultiplicityField/__stories__/WithMaxLength.mjs} +1 -1
- package/MultiplicityField/__stories__/WithMinAndMaxLength.js +5 -5
- package/{esm/MultiplicityField/__stories__/WithMinAndMaxLength.js → MultiplicityField/__stories__/WithMinAndMaxLength.mjs} +1 -1
- package/MultiplicityField/__stories__/WithMinLength.js +5 -5
- package/{esm/MultiplicityField/__stories__/WithMinLength.js → MultiplicityField/__stories__/WithMinLength.mjs} +1 -1
- package/MultiplicityField/add-objects.js +3 -3
- package/{esm/MultiplicityField/add-objects.js → MultiplicityField/add-objects.mjs} +3 -3
- package/MultiplicityField/index.js +3 -3
- package/{esm/MultiplicityField/index.js → MultiplicityField/index.mjs} +3 -3
- package/Questions/Questions.js +2 -2
- package/{esm/Questions/Questions.js → Questions/Questions.mjs} +2 -2
- package/Questions/Questions.stories.js +3 -3
- package/Questions/Questions.stories.mjs +7 -0
- package/Questions/Step/ReviewStep.js +3 -3
- package/{esm/Questions/Step/ReviewStep.js → Questions/Step/ReviewStep.mjs} +3 -3
- package/Questions/Step/Step.js +3 -3
- package/{esm/Questions/Step/Step.js → Questions/Step/Step.mjs} +3 -3
- package/Questions/Step/StepArrayReview.js +6 -6
- package/{esm/Questions/Step/StepArrayReview.js → Questions/Step/StepArrayReview.mjs} +6 -6
- package/Questions/Step/StepDescription.js +1 -1
- package/{esm/Questions/Step/StepDescription.js → Questions/Step/StepDescription.mjs} +1 -1
- package/Questions/Step/StepForm.js +4 -4
- package/{esm/Questions/Step/StepForm.js → Questions/Step/StepForm.mjs} +4 -4
- package/Questions/Step/StepTitle.js +1 -1
- package/{esm/Questions/Step/StepTitle.js → Questions/Step/StepTitle.mjs} +1 -1
- package/Questions/Step/index.js +14 -14
- package/Questions/Step/index.mjs +13 -0
- package/Questions/__stories__/Default.js +13 -13
- package/{esm/Questions/__stories__/Default.js → Questions/__stories__/Default.mjs} +2 -2
- package/Questions/index.js +2 -2
- package/Questions/index.mjs +3 -0
- package/Questions/index.spec.js +9 -9
- package/{esm/Questions/index.spec.js → Questions/index.spec.mjs} +3 -3
- package/es/Field/FieldBase.js +1 -1
- package/es/Field/FieldBaseContainer.js +1 -1
- package/es/Field/FieldConditional.js +2 -2
- package/es/Field/index.js +5 -5
- package/es/Field/utils.js +9 -9
- package/es/FieldArray/FieldArray.stories.js +3 -3
- package/es/FieldArray/__stories__/Default.js +1 -1
- package/es/FieldArray/__stories__/WithExactLength.js +1 -1
- package/es/FieldArray/index.js +3 -3
- package/es/FieldObject/index.js +3 -3
- package/es/Fieldset/FieldsetWithContext.js +3 -3
- package/es/FormBuilder/FormBuilder.js +5 -5
- package/es/FormBuilder/FormBuilder.stories.js +2 -2
- package/es/FormBuilder/__stories__/Default.js +1 -1
- package/es/FormBuilder/index.js +1 -1
- package/es/MultiplicityField/MultiplicityField.stories.js +7 -7
- package/es/MultiplicityField/__stories__/Default.js +1 -1
- package/es/MultiplicityField/__stories__/WithExactLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMaxLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMinAndMaxLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMinLength.js +1 -1
- package/es/MultiplicityField/add-objects.js +3 -3
- package/es/MultiplicityField/index.js +3 -3
- package/es/Questions/Questions.js +2 -2
- package/es/Questions/Questions.stories.js +2 -2
- package/es/Questions/Step/ReviewStep.js +3 -3
- package/es/Questions/Step/Step.js +3 -3
- package/es/Questions/Step/StepArrayReview.js +6 -6
- package/es/Questions/Step/StepDescription.js +1 -1
- package/es/Questions/Step/StepForm.js +4 -4
- package/es/Questions/Step/StepTitle.js +1 -1
- package/es/Questions/Step/index.js +12 -12
- package/es/Questions/__stories__/Default.js +2 -2
- package/es/Questions/index.js +2 -2
- package/es/Questions/index.spec.js +3 -3
- package/es/index.js +2 -2
- package/es/inputs/AutoComplete/AutoComplete.stories.js +2 -2
- package/es/inputs/AutoComplete/__stories__/Default.js +2 -2
- package/es/inputs/Checkboxes/Checkboxes.stories.js +4 -4
- package/es/inputs/Checkboxes/__stories__/Conditional.js +1 -1
- package/es/inputs/Checkboxes/__stories__/Default.js +1 -1
- package/es/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
- package/es/inputs/Checkboxes/index.js +1 -1
- package/es/inputs/DateInput/DateInput.stories.js +2 -2
- package/es/inputs/DateInput/__stories__/Default.js +1 -1
- package/es/inputs/FileInput/FileInput.stories.js +2 -2
- package/es/inputs/FileInput/__stories__/Default.js +1 -1
- package/es/inputs/Input/Input.stories.js +10 -10
- package/es/inputs/Input/__stories__/AFM.js +1 -1
- package/es/inputs/Input/__stories__/Boolean.js +1 -1
- package/es/inputs/Input/__stories__/Default.js +1 -1
- package/es/inputs/Input/__stories__/IBAN.js +1 -1
- package/es/inputs/Input/__stories__/Integer.js +1 -1
- package/es/inputs/Input/__stories__/MobilePhone.js +1 -1
- package/es/inputs/Input/__stories__/PhoneNumber.js +1 -1
- package/es/inputs/Input/__stories__/PostalCode.js +1 -1
- package/es/inputs/Input/__stories__/TextWithCharacterLimit.js +1 -1
- package/es/inputs/Label/Label.stories.js +2 -2
- package/es/inputs/Label/__stories__/Default.js +1 -1
- package/es/inputs/OtpInput/OtpInput.stories.js +2 -2
- package/es/inputs/OtpInput/__stories__/Default.js +1 -1
- package/es/inputs/Radio/Radio.stories.js +4 -4
- package/es/inputs/Radio/__stories__/Conditional.js +1 -1
- package/es/inputs/Radio/__stories__/Default.js +1 -1
- package/es/inputs/Radio/__stories__/WithDivider.js +1 -1
- package/es/inputs/Radio/index.js +1 -1
- package/es/inputs/Select/Select.stories.js +2 -2
- package/es/inputs/Select/__stories__/Default.js +1 -1
- package/es/inputs/index.js +8 -8
- package/es/internal.js +34 -34
- package/es/registry.js +59 -59
- package/es/validators/index.js +3 -3
- package/es/validators/utils/index.js +8 -8
- package/es/validators/validators.spec.js +1 -1
- package/index.js +2 -2
- package/index.mjs +8 -0
- package/inputs/AutoComplete/AutoComplete.stories.js +3 -3
- package/inputs/AutoComplete/AutoComplete.stories.mjs +7 -0
- package/inputs/AutoComplete/__stories__/Default.js +2 -2
- package/{esm/inputs/AutoComplete/__stories__/Default.js → inputs/AutoComplete/__stories__/Default.mjs} +2 -2
- package/inputs/Checkboxes/Checkboxes.stories.js +5 -5
- package/inputs/Checkboxes/Checkboxes.stories.mjs +9 -0
- package/inputs/Checkboxes/__stories__/Conditional.js +3 -3
- package/{esm/inputs/Checkboxes/__stories__/Conditional.js → inputs/Checkboxes/__stories__/Conditional.mjs} +1 -1
- package/inputs/Checkboxes/__stories__/Default.js +3 -3
- package/{esm/inputs/Checkboxes/__stories__/Default.js → inputs/Checkboxes/__stories__/Default.mjs} +1 -1
- package/inputs/Checkboxes/__stories__/WithDivider.js +3 -3
- package/{esm/inputs/Checkboxes/__stories__/WithDivider.js → inputs/Checkboxes/__stories__/WithDivider.mjs} +1 -1
- package/inputs/Checkboxes/index.js +2 -2
- package/{esm/inputs/Checkboxes/index.js → inputs/Checkboxes/index.mjs} +1 -1
- package/inputs/DateInput/DateInput.stories.js +3 -3
- package/inputs/DateInput/DateInput.stories.mjs +7 -0
- package/inputs/DateInput/__stories__/Default.js +3 -3
- package/{esm/inputs/DateInput/__stories__/Default.js → inputs/DateInput/__stories__/Default.mjs} +1 -1
- package/inputs/FileInput/FileInput.stories.js +3 -3
- package/inputs/FileInput/FileInput.stories.mjs +7 -0
- package/inputs/FileInput/__stories__/Default.js +3 -3
- package/{esm/inputs/FileInput/__stories__/Default.js → inputs/FileInput/__stories__/Default.mjs} +1 -1
- package/inputs/Input/Input.stories.js +11 -11
- package/inputs/Input/Input.stories.mjs +15 -0
- package/inputs/Input/__stories__/AFM.js +3 -3
- package/{esm/inputs/Input/__stories__/AFM.js → inputs/Input/__stories__/AFM.mjs} +1 -1
- package/inputs/Input/__stories__/Boolean.js +3 -3
- package/{esm/inputs/Input/__stories__/Boolean.js → inputs/Input/__stories__/Boolean.mjs} +1 -1
- package/inputs/Input/__stories__/Default.js +3 -3
- package/{esm/inputs/Input/__stories__/Default.js → inputs/Input/__stories__/Default.mjs} +1 -1
- package/inputs/Input/__stories__/IBAN.js +3 -3
- package/{esm/inputs/Input/__stories__/IBAN.js → inputs/Input/__stories__/IBAN.mjs} +1 -1
- package/inputs/Input/__stories__/Integer.js +4 -4
- package/{esm/inputs/Input/__stories__/Integer.js → inputs/Input/__stories__/Integer.mjs} +1 -1
- package/inputs/Input/__stories__/MobilePhone.js +3 -3
- package/{esm/inputs/Input/__stories__/MobilePhone.js → inputs/Input/__stories__/MobilePhone.mjs} +1 -1
- package/inputs/Input/__stories__/PhoneNumber.js +3 -3
- package/{esm/inputs/Input/__stories__/PhoneNumber.js → inputs/Input/__stories__/PhoneNumber.mjs} +1 -1
- package/inputs/Input/__stories__/PostalCode.js +3 -3
- package/{esm/inputs/Input/__stories__/PostalCode.js → inputs/Input/__stories__/PostalCode.mjs} +1 -1
- package/inputs/Input/__stories__/TextWithCharacterLimit.js +5 -5
- package/{esm/inputs/Input/__stories__/TextWithCharacterLimit.js → inputs/Input/__stories__/TextWithCharacterLimit.mjs} +1 -1
- package/inputs/Label/Label.stories.js +3 -3
- package/inputs/Label/Label.stories.mjs +7 -0
- package/inputs/Label/__stories__/Default.js +4 -4
- package/{esm/inputs/Label/__stories__/Default.js → inputs/Label/__stories__/Default.mjs} +1 -1
- package/inputs/OtpInput/OtpInput.stories.js +3 -3
- package/inputs/OtpInput/OtpInput.stories.mjs +7 -0
- package/inputs/OtpInput/__stories__/Default.js +4 -4
- package/{esm/inputs/OtpInput/__stories__/Default.js → inputs/OtpInput/__stories__/Default.mjs} +1 -1
- package/inputs/Radio/Radio.stories.js +5 -5
- package/inputs/Radio/Radio.stories.mjs +9 -0
- package/inputs/Radio/__stories__/Conditional.js +3 -3
- package/{esm/inputs/Radio/__stories__/Conditional.js → inputs/Radio/__stories__/Conditional.mjs} +1 -1
- package/inputs/Radio/__stories__/Default.js +3 -3
- package/{esm/inputs/Radio/__stories__/Default.js → inputs/Radio/__stories__/Default.mjs} +1 -1
- package/inputs/Radio/__stories__/WithDivider.js +3 -3
- package/{esm/inputs/Radio/__stories__/WithDivider.js → inputs/Radio/__stories__/WithDivider.mjs} +1 -1
- package/inputs/Radio/index.js +2 -2
- package/{esm/inputs/Radio/index.js → inputs/Radio/index.mjs} +1 -1
- package/inputs/Select/Select.stories.js +3 -3
- package/inputs/Select/Select.stories.mjs +7 -0
- package/inputs/Select/__stories__/Default.js +3 -3
- package/{esm/inputs/Select/__stories__/Default.js → inputs/Select/__stories__/Default.mjs} +1 -1
- package/inputs/index.js +8 -8
- package/inputs/index.mjs +8 -0
- package/internal.js +20 -20
- package/internal.mjs +34 -0
- package/package.json +5 -5
- package/registry.d.ts +1 -1
- package/registry.js +59 -59
- package/{esm/registry.js → registry.mjs} +59 -59
- package/validators/index.js +3 -3
- package/{esm/validators/index.js → validators/index.mjs} +3 -3
- package/validators/utils/index.js +8 -8
- package/{esm/validators/utils/index.js → validators/utils/index.mjs} +8 -8
- package/validators/validators.spec.js +1 -1
- package/{esm/validators/validators.spec.js → validators/validators.spec.mjs} +1 -1
- package/esm/Field/index.mdx +0 -6
- package/esm/FieldArray/FieldArray.stories.js +0 -8
- package/esm/FieldArray/FieldArray.stories.playwright.json +0 -353
- package/esm/FormBuilder/FormBuilder.mdx +0 -256
- package/esm/FormBuilder/FormBuilder.stories.js +0 -7
- package/esm/FormBuilder/FormBuilder.stories.playwright.json +0 -52
- package/esm/FormBuilder/index.js +0 -2
- package/esm/MultiplicityField/MultiplicityField.mdx +0 -590
- package/esm/MultiplicityField/MultiplicityField.stories.js +0 -12
- package/esm/MultiplicityField/MultiplicityField.stories.playwright.json +0 -1370
- package/esm/Questions/Questions.stories.js +0 -7
- package/esm/Questions/Step/index.js +0 -13
- package/esm/Questions/__snapshots__/index.spec.tsx.snap +0 -596
- package/esm/Questions/index.js +0 -3
- package/esm/Questions/index.mdx +0 -415
- package/esm/create-simple-form.mdx +0 -539
- package/esm/index.js +0 -8
- package/esm/index.mdx +0 -51
- package/esm/inputs/AutoComplete/AutoComplete.stories.js +0 -7
- package/esm/inputs/Checkboxes/Checkboxes.stories.js +0 -9
- package/esm/inputs/Checkboxes/Checkboxes.stories.playwright.json +0 -85
- package/esm/inputs/Checkboxes/index.mdx +0 -0
- package/esm/inputs/DateInput/DateInput.stories.js +0 -7
- package/esm/inputs/DateInput/DateInput.stories.playwright.json +0 -72
- package/esm/inputs/FileInput/FileInput.stories.js +0 -7
- package/esm/inputs/FileInput/FileInput.stories.playwright.json +0 -75
- package/esm/inputs/Input/Input.stories.js +0 -15
- package/esm/inputs/Input/Input.stories.playwright.json +0 -376
- package/esm/inputs/Input/index.mdx +0 -8
- package/esm/inputs/Label/Label.stories.js +0 -7
- package/esm/inputs/Label/Label.stories.playwright.json +0 -40
- package/esm/inputs/Label/index.mdx +0 -0
- package/esm/inputs/OtpInput/OtpInput.stories.js +0 -7
- package/esm/inputs/Radio/Radio.stories.js +0 -9
- package/esm/inputs/Radio/Radio.stories.playwright.json +0 -73
- package/esm/inputs/Radio/index.mdx +0 -0
- package/esm/inputs/Select/Select.stories.js +0 -7
- package/esm/inputs/Select/Select.stories.playwright.json +0 -22
- package/esm/inputs/index.js +0 -8
- package/esm/installation.mdx +0 -68
- package/esm/internal.js +0 -34
- /package/{esm/Field/types.js → Field/types.mjs} +0 -0
- /package/{esm/Fieldset/index.js → Fieldset/index.mjs} +0 -0
- /package/{esm/Fieldset/types.js → Fieldset/types.mjs} +0 -0
- /package/{esm/Form.stories.js → Form.stories.mjs} +0 -0
- /package/{esm/FormContext.js → FormContext.mjs} +0 -0
- /package/{esm/MultiplicityField/__stories__/PreviewDisplay.js → MultiplicityField/__stories__/PreviewDisplay.mjs} +0 -0
- /package/{esm/Questions/QuestionsContext.js → Questions/QuestionsContext.mjs} +0 -0
- /package/{esm/Questions/Step/StepContext.js → Questions/Step/StepContext.mjs} +0 -0
- /package/{esm/Questions/Step/StepQuote.js → Questions/Step/StepQuote.mjs} +0 -0
- /package/{esm/Questions/Step/getAddMoreFields.js → Questions/Step/getAddMoreFields.mjs} +0 -0
- /package/{esm/Questions/Step/types.js → Questions/Step/types.mjs} +0 -0
- /package/{esm/Questions/getNextStep.js → Questions/getNextStep.mjs} +0 -0
- /package/{esm/Questions/types.js → Questions/types.mjs} +0 -0
- /package/{esm/inputs/AutoComplete/index.js → inputs/AutoComplete/index.mjs} +0 -0
- /package/{esm/inputs/DateInput/index.js → inputs/DateInput/index.mjs} +0 -0
- /package/{esm/inputs/FileInput/index.js → inputs/FileInput/index.mjs} +0 -0
- /package/{esm/inputs/Input/index.js → inputs/Input/index.mjs} +0 -0
- /package/{esm/inputs/Label/index.js → inputs/Label/index.mjs} +0 -0
- /package/{esm/inputs/OtpInput/index.js → inputs/OtpInput/index.mjs} +0 -0
- /package/{esm/inputs/Select/index.js → inputs/Select/index.mjs} +0 -0
- /package/{esm/types.js → types.mjs} +0 -0
- /package/{esm/utils.js → utils.mjs} +0 -0
- /package/{esm/validators/types.js → validators/types.mjs} +0 -0
- /package/{esm/validators/utils/afm.js → validators/utils/afm.mjs} +0 -0
- /package/{esm/validators/utils/file.js → validators/utils/file.mjs} +0 -0
- /package/{esm/validators/utils/iban.js → validators/utils/iban.mjs} +0 -0
- /package/{esm/validators/utils/int.js → validators/utils/int.mjs} +0 -0
- /package/{esm/validators/utils/number.js → validators/utils/number.mjs} +0 -0
- /package/{esm/validators/utils/otp.js → validators/utils/otp.mjs} +0 -0
- /package/{esm/validators/utils/phone.js → validators/utils/phone.mjs} +0 -0
- /package/{esm/validators/utils/postal_code.js → validators/utils/postal_code.mjs} +0 -0
- /package/{esm/validators/utils/text_limit.js → validators/utils/text_limit.mjs} +0 -0
- /package/{esm/validators/utils/uuid4.js → validators/utils/uuid4.mjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import AutoComplete from
|
|
1
|
+
import AutoComplete from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/AutoComplete',
|
|
4
4
|
component: AutoComplete,
|
|
5
5
|
displayName: 'AutoComplete'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Suspense } from 'react';
|
|
2
|
-
import { Field } from
|
|
3
|
-
import FormBuilder from
|
|
2
|
+
import { Field } from "../../../Field";
|
|
3
|
+
import FormBuilder from "../../../FormBuilder";
|
|
4
4
|
import { results } from '@digigov/ui/form/AutoComplete/utils';
|
|
5
5
|
import Button from '@digigov/ui/form/Button';
|
|
6
6
|
var fields = [{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import Checkboxes from
|
|
1
|
+
import Checkboxes from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/Checkboxes',
|
|
4
4
|
component: Checkboxes,
|
|
5
5
|
displayName: 'Checkboxes'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
8
|
+
export * from "./__stories__/WithDivider";
|
|
9
|
+
export * from "./__stories__/Conditional";
|
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
var _excluded = ["name", "onChange", "value", "extra", "disabled"],
|
|
5
5
|
_excluded2 = ["label", "value", "show", "disabled", "selected"];
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
|
-
import { Field } from
|
|
7
|
+
import { Field } from "../..";
|
|
8
8
|
import { CheckboxConditional } from '@digigov/react-core';
|
|
9
9
|
import CoreCheckboxes from '@digigov/react-core/Checkbox';
|
|
10
10
|
import CheckboxItem from '@digigov/react-core/CheckboxItem';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import DateInput from
|
|
1
|
+
import DateInput from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/DateInput',
|
|
4
4
|
component: DateInput,
|
|
5
5
|
displayName: 'DateInput'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import FileInput from
|
|
1
|
+
import FileInput from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/FileInput',
|
|
4
4
|
component: FileInput,
|
|
5
5
|
displayName: 'FileInput'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import FormBuilder, { Field } from
|
|
2
|
+
import FormBuilder, { Field } from "../../..";
|
|
3
3
|
import { Button } from '@digigov/ui/form/Button';
|
|
4
4
|
|
|
5
5
|
var _ref = /*#__PURE__*/React.createElement(Button, null, "\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import Input from
|
|
1
|
+
import Input from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/Input',
|
|
4
4
|
component: Input,
|
|
5
5
|
displayName: 'Input'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
8
|
+
export * from "./__stories__/Integer";
|
|
9
|
+
export * from "./__stories__/Boolean";
|
|
10
|
+
export * from "./__stories__/PhoneNumber";
|
|
11
|
+
export * from "./__stories__/MobilePhone";
|
|
12
|
+
export * from "./__stories__/AFM";
|
|
13
|
+
export * from "./__stories__/IBAN";
|
|
14
|
+
export * from "./__stories__/PostalCode";
|
|
15
|
+
export * from "./__stories__/TextWithCharacterLimit";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Label from
|
|
1
|
+
import Label from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/Label',
|
|
4
4
|
component: Label,
|
|
5
5
|
displayName: 'Label'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import OtpInput from
|
|
1
|
+
import OtpInput from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/OtpInput',
|
|
4
4
|
component: OtpInput,
|
|
5
5
|
displayName: 'OtpInput'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import Radio from
|
|
1
|
+
import Radio from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/Radio',
|
|
4
4
|
component: Radio,
|
|
5
5
|
displayName: 'Radio'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
8
|
+
export * from "./__stories__/WithDivider";
|
|
9
|
+
export * from "./__stories__/Conditional";
|
package/es/inputs/Radio/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var _excluded = ["name", "control", "register", "extra", "disabled"],
|
|
|
4
4
|
_excluded2 = ["label", "value", "show", "disabled", "selected"];
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useWatch } from 'react-hook-form';
|
|
7
|
-
import { Field } from
|
|
7
|
+
import { Field } from "../..";
|
|
8
8
|
import { RadioConditional } from '@digigov/react-core';
|
|
9
9
|
import Hint from '@digigov/react-core/Hint';
|
|
10
10
|
import RadioContainer from '@digigov/react-core/RadioContainer';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Select from
|
|
1
|
+
import Select from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/inputs/Select',
|
|
4
4
|
component: Select,
|
|
5
5
|
displayName: 'Select'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
package/es/inputs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as Checkboxes } from
|
|
2
|
-
export { default as DateInput } from
|
|
3
|
-
export { default as OtpInput } from
|
|
4
|
-
export { default as FileInput } from
|
|
5
|
-
export { default as Input } from
|
|
6
|
-
export { default as Label } from
|
|
7
|
-
export { default as Radio } from
|
|
8
|
-
export { default as Select } from
|
|
1
|
+
export { default as Checkboxes } from "./Checkboxes";
|
|
2
|
+
export { default as DateInput } from "./DateInput";
|
|
3
|
+
export { default as OtpInput } from "./OtpInput";
|
|
4
|
+
export { default as FileInput } from "./FileInput";
|
|
5
|
+
export { default as Input } from "./Input";
|
|
6
|
+
export { default as Label } from "./Label";
|
|
7
|
+
export { default as Radio } from "./Radio";
|
|
8
|
+
export { default as Select } from "./Select";
|
package/es/internal.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export { default as Field } from
|
|
2
|
-
export * from
|
|
3
|
-
export { default as FieldArray } from
|
|
4
|
-
export * from
|
|
5
|
-
export { default as FieldConditional } from
|
|
6
|
-
export * from
|
|
7
|
-
export { default as Fieldset } from
|
|
8
|
-
export * from
|
|
9
|
-
export { default as FormBuilder } from
|
|
10
|
-
export * from
|
|
11
|
-
export { Step } from
|
|
12
|
-
export * from
|
|
13
|
-
export { default as Questions } from
|
|
14
|
-
export * from
|
|
15
|
-
export { default as Checkboxes } from
|
|
16
|
-
export * from
|
|
17
|
-
export { default as DateInput } from
|
|
18
|
-
export * from
|
|
19
|
-
export { default as FileInput } from
|
|
20
|
-
export * from
|
|
21
|
-
export { default as Input } from
|
|
22
|
-
export * from
|
|
23
|
-
export { default as Label } from
|
|
24
|
-
export * from
|
|
25
|
-
export { default as Radio } from
|
|
26
|
-
export * from
|
|
27
|
-
export { default as Select } from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
1
|
+
export { default as Field } from "./Field";
|
|
2
|
+
export * from "./Field";
|
|
3
|
+
export { default as FieldArray } from "./FieldArray";
|
|
4
|
+
export * from "./FieldArray";
|
|
5
|
+
export { default as FieldConditional } from "./Field/FieldConditional";
|
|
6
|
+
export * from "./Field/FieldConditional";
|
|
7
|
+
export { default as Fieldset } from "./Fieldset";
|
|
8
|
+
export * from "./Fieldset";
|
|
9
|
+
export { default as FormBuilder } from "./FormBuilder";
|
|
10
|
+
export * from "./FormBuilder";
|
|
11
|
+
export { Step } from "./Questions/Step";
|
|
12
|
+
export * from "./Questions/Step";
|
|
13
|
+
export { default as Questions } from "./Questions";
|
|
14
|
+
export * from "./Questions";
|
|
15
|
+
export { default as Checkboxes } from "./inputs/Checkboxes";
|
|
16
|
+
export * from "./inputs/Checkboxes";
|
|
17
|
+
export { default as DateInput } from "./inputs/DateInput";
|
|
18
|
+
export * from "./inputs/DateInput";
|
|
19
|
+
export { default as FileInput } from "./inputs/FileInput";
|
|
20
|
+
export * from "./inputs/FileInput";
|
|
21
|
+
export { default as Input } from "./inputs/Input";
|
|
22
|
+
export * from "./inputs/Input";
|
|
23
|
+
export { default as Label } from "./inputs/Label";
|
|
24
|
+
export * from "./inputs/Label";
|
|
25
|
+
export { default as Radio } from "./inputs/Radio";
|
|
26
|
+
export * from "./inputs/Radio";
|
|
27
|
+
export { default as Select } from "./inputs/Select";
|
|
28
|
+
export * from "./FormContext";
|
|
29
|
+
export * from "./inputs/Select";
|
|
30
|
+
export * from "./inputs";
|
|
31
|
+
export * from "./internal";
|
|
32
|
+
export * from "./types";
|
|
33
|
+
export * from "./utils";
|
|
34
|
+
export * from "./validators";
|
package/es/registry.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import * as _digigov_form_Field_FieldBase from
|
|
2
|
-
import * as _digigov_form_Field_FieldBaseContainer from
|
|
3
|
-
import * as _digigov_form_Field_FieldConditional from
|
|
4
|
-
import * as _digigov_form_Field from
|
|
5
|
-
import * as _digigov_form_Field_types from
|
|
6
|
-
import * as _digigov_form_Field_utils from
|
|
7
|
-
import * as _digigov_form_FieldArray from
|
|
8
|
-
import * as _digigov_form_FieldObject from
|
|
9
|
-
import * as _digigov_form_Fieldset_FieldsetWithContext from
|
|
10
|
-
import * as _digigov_form_Fieldset from
|
|
11
|
-
import * as _digigov_form_Fieldset_types from
|
|
12
|
-
import * as _digigov_form_FormBuilder_FormBuilder from
|
|
13
|
-
import * as _digigov_form_FormBuilder from
|
|
14
|
-
import * as _digigov_form_FormContext from
|
|
15
|
-
import * as _digigov_form from
|
|
16
|
-
import * as _digigov_form_inputs_AutoComplete from
|
|
17
|
-
import * as _digigov_form_inputs_Checkboxes from
|
|
18
|
-
import * as _digigov_form_inputs_DateInput from
|
|
19
|
-
import * as _digigov_form_inputs_FileInput from
|
|
20
|
-
import * as _digigov_form_inputs from
|
|
21
|
-
import * as _digigov_form_inputs_Input from
|
|
22
|
-
import * as _digigov_form_inputs_Label from
|
|
23
|
-
import * as _digigov_form_inputs_OtpInput from
|
|
24
|
-
import * as _digigov_form_inputs_Radio from
|
|
25
|
-
import * as _digigov_form_inputs_Select from
|
|
26
|
-
import * as _digigov_form_internal from
|
|
27
|
-
import * as _digigov_form_MultiplicityField_add_objects from
|
|
28
|
-
import * as _digigov_form_MultiplicityField from
|
|
29
|
-
import * as _digigov_form_Questions_getNextStep from
|
|
30
|
-
import * as _digigov_form_Questions from
|
|
31
|
-
import * as _digigov_form_Questions_Questions from
|
|
32
|
-
import * as _digigov_form_Questions_QuestionsContext from
|
|
33
|
-
import * as _digigov_form_Questions_Step_getAddMoreFields from
|
|
34
|
-
import * as _digigov_form_Questions_Step from
|
|
35
|
-
import * as _digigov_form_Questions_Step_ReviewStep from
|
|
36
|
-
import * as _digigov_form_Questions_Step_Step from
|
|
37
|
-
import * as _digigov_form_Questions_Step_StepArrayReview from
|
|
38
|
-
import * as _digigov_form_Questions_Step_StepContext from
|
|
39
|
-
import * as _digigov_form_Questions_Step_StepDescription from
|
|
40
|
-
import * as _digigov_form_Questions_Step_StepForm from
|
|
41
|
-
import * as _digigov_form_Questions_Step_StepQuote from
|
|
42
|
-
import * as _digigov_form_Questions_Step_StepTitle from
|
|
43
|
-
import * as _digigov_form_Questions_Step_types from
|
|
44
|
-
import * as _digigov_form_Questions_types from
|
|
45
|
-
import * as _digigov_form_types from
|
|
46
|
-
import * as _digigov_form_utils from
|
|
47
|
-
import * as _digigov_form_validators from
|
|
48
|
-
import * as _digigov_form_validators_types from
|
|
49
|
-
import * as _digigov_form_validators_utils_afm from
|
|
50
|
-
import * as _digigov_form_validators_utils_file from
|
|
51
|
-
import * as _digigov_form_validators_utils_iban from
|
|
52
|
-
import * as _digigov_form_validators_utils from
|
|
53
|
-
import * as _digigov_form_validators_utils_int from
|
|
54
|
-
import * as _digigov_form_validators_utils_number from
|
|
55
|
-
import * as _digigov_form_validators_utils_otp from
|
|
56
|
-
import * as _digigov_form_validators_utils_phone from
|
|
57
|
-
import * as _digigov_form_validators_utils_postal_code from
|
|
58
|
-
import * as _digigov_form_validators_utils_text_limit from
|
|
59
|
-
import * as _digigov_form_validators_utils_uuid4 from
|
|
1
|
+
import * as _digigov_form_Field_FieldBase from "./Field/FieldBase";
|
|
2
|
+
import * as _digigov_form_Field_FieldBaseContainer from "./Field/FieldBaseContainer";
|
|
3
|
+
import * as _digigov_form_Field_FieldConditional from "./Field/FieldConditional";
|
|
4
|
+
import * as _digigov_form_Field from "./Field";
|
|
5
|
+
import * as _digigov_form_Field_types from "./Field/types";
|
|
6
|
+
import * as _digigov_form_Field_utils from "./Field/utils";
|
|
7
|
+
import * as _digigov_form_FieldArray from "./FieldArray";
|
|
8
|
+
import * as _digigov_form_FieldObject from "./FieldObject";
|
|
9
|
+
import * as _digigov_form_Fieldset_FieldsetWithContext from "./Fieldset/FieldsetWithContext";
|
|
10
|
+
import * as _digigov_form_Fieldset from "./Fieldset";
|
|
11
|
+
import * as _digigov_form_Fieldset_types from "./Fieldset/types";
|
|
12
|
+
import * as _digigov_form_FormBuilder_FormBuilder from "./FormBuilder/FormBuilder";
|
|
13
|
+
import * as _digigov_form_FormBuilder from "./FormBuilder";
|
|
14
|
+
import * as _digigov_form_FormContext from "./FormContext";
|
|
15
|
+
import * as _digigov_form from "./";
|
|
16
|
+
import * as _digigov_form_inputs_AutoComplete from "./inputs/AutoComplete";
|
|
17
|
+
import * as _digigov_form_inputs_Checkboxes from "./inputs/Checkboxes";
|
|
18
|
+
import * as _digigov_form_inputs_DateInput from "./inputs/DateInput";
|
|
19
|
+
import * as _digigov_form_inputs_FileInput from "./inputs/FileInput";
|
|
20
|
+
import * as _digigov_form_inputs from "./inputs";
|
|
21
|
+
import * as _digigov_form_inputs_Input from "./inputs/Input";
|
|
22
|
+
import * as _digigov_form_inputs_Label from "./inputs/Label";
|
|
23
|
+
import * as _digigov_form_inputs_OtpInput from "./inputs/OtpInput";
|
|
24
|
+
import * as _digigov_form_inputs_Radio from "./inputs/Radio";
|
|
25
|
+
import * as _digigov_form_inputs_Select from "./inputs/Select";
|
|
26
|
+
import * as _digigov_form_internal from "./internal";
|
|
27
|
+
import * as _digigov_form_MultiplicityField_add_objects from "./MultiplicityField/add-objects";
|
|
28
|
+
import * as _digigov_form_MultiplicityField from "./MultiplicityField";
|
|
29
|
+
import * as _digigov_form_Questions_getNextStep from "./Questions/getNextStep";
|
|
30
|
+
import * as _digigov_form_Questions from "./Questions";
|
|
31
|
+
import * as _digigov_form_Questions_Questions from "./Questions/Questions";
|
|
32
|
+
import * as _digigov_form_Questions_QuestionsContext from "./Questions/QuestionsContext";
|
|
33
|
+
import * as _digigov_form_Questions_Step_getAddMoreFields from "./Questions/Step/getAddMoreFields";
|
|
34
|
+
import * as _digigov_form_Questions_Step from "./Questions/Step";
|
|
35
|
+
import * as _digigov_form_Questions_Step_ReviewStep from "./Questions/Step/ReviewStep";
|
|
36
|
+
import * as _digigov_form_Questions_Step_Step from "./Questions/Step/Step";
|
|
37
|
+
import * as _digigov_form_Questions_Step_StepArrayReview from "./Questions/Step/StepArrayReview";
|
|
38
|
+
import * as _digigov_form_Questions_Step_StepContext from "./Questions/Step/StepContext";
|
|
39
|
+
import * as _digigov_form_Questions_Step_StepDescription from "./Questions/Step/StepDescription";
|
|
40
|
+
import * as _digigov_form_Questions_Step_StepForm from "./Questions/Step/StepForm";
|
|
41
|
+
import * as _digigov_form_Questions_Step_StepQuote from "./Questions/Step/StepQuote";
|
|
42
|
+
import * as _digigov_form_Questions_Step_StepTitle from "./Questions/Step/StepTitle";
|
|
43
|
+
import * as _digigov_form_Questions_Step_types from "./Questions/Step/types";
|
|
44
|
+
import * as _digigov_form_Questions_types from "./Questions/types";
|
|
45
|
+
import * as _digigov_form_types from "./types";
|
|
46
|
+
import * as _digigov_form_utils from "./utils";
|
|
47
|
+
import * as _digigov_form_validators from "./validators";
|
|
48
|
+
import * as _digigov_form_validators_types from "./validators/types";
|
|
49
|
+
import * as _digigov_form_validators_utils_afm from "./validators/utils/afm";
|
|
50
|
+
import * as _digigov_form_validators_utils_file from "./validators/utils/file";
|
|
51
|
+
import * as _digigov_form_validators_utils_iban from "./validators/utils/iban";
|
|
52
|
+
import * as _digigov_form_validators_utils from "./validators/utils";
|
|
53
|
+
import * as _digigov_form_validators_utils_int from "./validators/utils/int";
|
|
54
|
+
import * as _digigov_form_validators_utils_number from "./validators/utils/number";
|
|
55
|
+
import * as _digigov_form_validators_utils_otp from "./validators/utils/otp";
|
|
56
|
+
import * as _digigov_form_validators_utils_phone from "./validators/utils/phone";
|
|
57
|
+
import * as _digigov_form_validators_utils_postal_code from "./validators/utils/postal_code";
|
|
58
|
+
import * as _digigov_form_validators_utils_text_limit from "./validators/utils/text_limit";
|
|
59
|
+
import * as _digigov_form_validators_utils_uuid4 from "./validators/utils/uuid4";
|
|
60
60
|
|
|
61
61
|
function lazyImport(pkgImport) {
|
|
62
62
|
// eslint-disable-next-line no-undef
|
package/es/validators/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { useMemo } from 'react';
|
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
5
5
|
import * as yup from 'yup';
|
|
6
|
-
import { getYupObjectShape, AFM_VALIDATOR, FILE_MAX_SIZE_VALIDATOR, IBAN_VALIDATOR, OTP_VALIDATOR, MOBILE_PHONE_VALIDATOR, PHONE_NUMBER_VALIDATOR, TEXT_LIMIT_VALIDATOR, POSTALCODE_VALIDATOR, UUID4_VALIDATOR } from
|
|
7
|
-
import { INT_VALIDATOR } from
|
|
8
|
-
import { NUMBER_VALIDATOR } from
|
|
6
|
+
import { getYupObjectShape, AFM_VALIDATOR, FILE_MAX_SIZE_VALIDATOR, IBAN_VALIDATOR, OTP_VALIDATOR, MOBILE_PHONE_VALIDATOR, PHONE_NUMBER_VALIDATOR, TEXT_LIMIT_VALIDATOR, POSTALCODE_VALIDATOR, UUID4_VALIDATOR } from "./utils";
|
|
7
|
+
import { INT_VALIDATOR } from "./utils/int";
|
|
8
|
+
import { NUMBER_VALIDATOR } from "./utils/number";
|
|
9
9
|
dayjs.extend(customParseFormat);
|
|
10
10
|
var VALID_DATE_FORMATS = ['DD/MM/YYYY'];
|
|
11
11
|
var DATE_CACHE = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
2
|
+
export * from "./afm";
|
|
3
|
+
export * from "./file";
|
|
4
|
+
export * from "./iban";
|
|
5
|
+
export * from "./otp";
|
|
6
|
+
export * from "./phone";
|
|
7
|
+
export * from "./postal_code";
|
|
8
|
+
export * from "./uuid4";
|
|
9
|
+
export * from "./text_limit";
|
|
10
10
|
export function getYupField(field, yupTypeMap) {
|
|
11
11
|
var yupField = yupTypeMap[(field === null || field === void 0 ? void 0 : field.type) || 'string'] || yupTypeMap['string'];
|
|
12
12
|
return yupField(field);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateUUID4, validateIban, validatePostalCode, validatePhoneNumber } from
|
|
1
|
+
import { validateUUID4, validateIban, validatePostalCode, validatePhoneNumber } from "./utils";
|
|
2
2
|
it('validates wrong uuid4 for empty value', function () {
|
|
3
3
|
expect(validateUUID4('')).toBe(false);
|
|
4
4
|
});
|
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var _internal = require("
|
|
11
|
+
var _internal = require("./internal");
|
|
12
12
|
|
|
13
13
|
Object.keys(_internal).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -22,7 +22,7 @@ Object.keys(_internal).forEach(function (key) {
|
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
var _FormBuilder = _interopRequireDefault(require("
|
|
25
|
+
var _FormBuilder = _interopRequireDefault(require("./FormBuilder"));
|
|
26
26
|
|
|
27
27
|
var _default = _FormBuilder["default"];
|
|
28
28
|
exports["default"] = _default;
|