@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
|
@@ -12,9 +12,9 @@ exports["default"] = void 0;
|
|
|
12
12
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _ = require("../..");
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _2 = _interopRequireWildcard(require("./.."));
|
|
18
18
|
|
|
19
19
|
var _Header = _interopRequireDefault(require("@digigov/ui/app/Header"));
|
|
20
20
|
|
|
@@ -90,31 +90,31 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, /*#__P
|
|
|
90
90
|
href: "#"
|
|
91
91
|
})))));
|
|
92
92
|
|
|
93
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(
|
|
93
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_2.Step, {
|
|
94
94
|
name: "age"
|
|
95
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
95
|
+
}, /*#__PURE__*/_react["default"].createElement(_2.StepTitle, null), /*#__PURE__*/_react["default"].createElement(_2.StepForm, {
|
|
96
96
|
submitButton: true
|
|
97
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
98
98
|
key: "age",
|
|
99
99
|
name: "age"
|
|
100
100
|
})));
|
|
101
101
|
|
|
102
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(
|
|
102
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_2.Step, {
|
|
103
103
|
name: "citizen-underage"
|
|
104
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement(_2.StepTitle, null), /*#__PURE__*/_react["default"].createElement(_2.StepForm, {
|
|
105
105
|
submitButton: true
|
|
106
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
107
107
|
key: "citizen-underage-student",
|
|
108
108
|
name: "citizen-underage-student"
|
|
109
109
|
})));
|
|
110
110
|
|
|
111
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(
|
|
111
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_2.Step, {
|
|
112
112
|
name: "citizen-adult"
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement(_2.StepTitle, {
|
|
114
114
|
backButton: "\u03A0\u03AF\u03C3\u03C9"
|
|
115
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
115
|
+
}), /*#__PURE__*/_react["default"].createElement(_2.StepForm, {
|
|
116
116
|
submitButton: true
|
|
117
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
117
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
118
118
|
key: "citizen-adult-employed",
|
|
119
119
|
name: "citizen-adult-employed"
|
|
120
120
|
})));
|
|
@@ -122,7 +122,7 @@ var _ref4 = /*#__PURE__*/_react["default"].createElement(_Questions.Step, {
|
|
|
122
122
|
var _ref5 = /*#__PURE__*/_react["default"].createElement(_Basic.Bottom, null, /*#__PURE__*/_react["default"].createElement(_Footer["default"], null));
|
|
123
123
|
|
|
124
124
|
function Default() {
|
|
125
|
-
return /*#__PURE__*/_react["default"].createElement(_Basic["default"], null, _ref, /*#__PURE__*/_react["default"].createElement(_Basic.Content, null, /*#__PURE__*/_react["default"].createElement(_Basic.Main, null, /*#__PURE__*/_react["default"].createElement(
|
|
125
|
+
return /*#__PURE__*/_react["default"].createElement(_Basic["default"], null, _ref, /*#__PURE__*/_react["default"].createElement(_Basic.Content, null, /*#__PURE__*/_react["default"].createElement(_Basic.Main, null, /*#__PURE__*/_react["default"].createElement(_2["default"], {
|
|
126
126
|
name: 'example',
|
|
127
127
|
steps: steps,
|
|
128
128
|
onSubmit: function onSubmit(data) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Field } from
|
|
3
|
-
import Questions, { Step, StepForm, StepTitle } from
|
|
2
|
+
import { Field } from "../..";
|
|
3
|
+
import Questions, { Step, StepForm, StepTitle } from "./..";
|
|
4
4
|
import Header from '@digigov/ui/app/Header';
|
|
5
5
|
import HeaderContent from '@digigov/ui/app/Header/HeaderContent';
|
|
6
6
|
import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
package/Questions/index.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {};
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
|
|
9
|
-
var _Questions = require("
|
|
9
|
+
var _Questions = require("./Questions");
|
|
10
10
|
|
|
11
|
-
var _Step = require("
|
|
11
|
+
var _Step = require("./Step");
|
|
12
12
|
|
|
13
13
|
Object.keys(_Step).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
package/Questions/index.spec.js
CHANGED
|
@@ -6,9 +6,9 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _enzyme = require("enzyme");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ = require("./..");
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _2 = _interopRequireWildcard(require("./"));
|
|
12
12
|
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
|
|
@@ -44,26 +44,26 @@ var steps = [{
|
|
|
44
44
|
}]
|
|
45
45
|
}];
|
|
46
46
|
|
|
47
|
-
var _ref = /*#__PURE__*/React.createElement(
|
|
47
|
+
var _ref = /*#__PURE__*/React.createElement(_2.Step, {
|
|
48
48
|
name: "intro"
|
|
49
|
-
}, /*#__PURE__*/React.createElement(
|
|
49
|
+
}, /*#__PURE__*/React.createElement(_2.StepTitle, null), /*#__PURE__*/React.createElement(_2.StepQuote, null, "This is the intro"), /*#__PURE__*/React.createElement(_2.StepForm, {
|
|
50
50
|
submitButton: true
|
|
51
|
-
}, /*#__PURE__*/React.createElement(
|
|
51
|
+
}, /*#__PURE__*/React.createElement(_.Field, {
|
|
52
52
|
key: 'name',
|
|
53
53
|
name: "name"
|
|
54
54
|
})));
|
|
55
55
|
|
|
56
|
-
var _ref2 = /*#__PURE__*/React.createElement(
|
|
56
|
+
var _ref2 = /*#__PURE__*/React.createElement(_2.Step, {
|
|
57
57
|
name: "age"
|
|
58
|
-
}, /*#__PURE__*/React.createElement(
|
|
58
|
+
}, /*#__PURE__*/React.createElement(_2.StepTitle, null), /*#__PURE__*/React.createElement(_2.StepQuote, null, "This is the age"), /*#__PURE__*/React.createElement(_2.StepForm, {
|
|
59
59
|
submitButton: true
|
|
60
|
-
}, /*#__PURE__*/React.createElement(
|
|
60
|
+
}, /*#__PURE__*/React.createElement(_.Field, {
|
|
61
61
|
key: 'dateOfBirth',
|
|
62
62
|
name: "dateOfBirth"
|
|
63
63
|
})));
|
|
64
64
|
|
|
65
65
|
it('renders the Questions', function () {
|
|
66
|
-
expect((0, _enzyme.mount)( /*#__PURE__*/React.createElement(
|
|
66
|
+
expect((0, _enzyme.mount)( /*#__PURE__*/React.createElement(_2["default"], {
|
|
67
67
|
name: 'example',
|
|
68
68
|
onSubmit: function onSubmit(data) {
|
|
69
69
|
console.log(data);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
|
-
import { Field } from
|
|
4
|
-
import { Step, StepForm, StepQuote, StepTitle } from
|
|
5
|
-
import Questions from
|
|
3
|
+
import { Field } from "./..";
|
|
4
|
+
import { Step, StepForm, StepQuote, StepTitle } from "./";
|
|
5
|
+
import Questions from "./";
|
|
6
6
|
var steps = [{
|
|
7
7
|
name: 'intro',
|
|
8
8
|
caption: 'intro.caption',
|
package/es/Field/FieldBase.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["required", "name", "component", "wrapper", "control", "type", "controlled", "enabled", "editable", "defaultValue", "label", "extra", "layout", "error", "register"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Controller } from 'react-hook-form';
|
|
6
|
-
import FieldBaseContainer from
|
|
6
|
+
import FieldBaseContainer from "./FieldBaseContainer";
|
|
7
7
|
export var FieldBase = function FieldBase(props) {
|
|
8
8
|
var required = props.required,
|
|
9
9
|
name = props.name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Label from
|
|
3
|
+
import Label from "../inputs/Label";
|
|
4
4
|
import ErrorMessage from '@digigov/react-core/ErrorMessage';
|
|
5
5
|
import FieldContainer from '@digigov/react-core/FieldContainer';
|
|
6
6
|
import CoreFieldset from '@digigov/react-core/Fieldset';
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useWatch } from 'react-hook-form';
|
|
5
|
-
import { FieldBase } from
|
|
6
|
-
import { evaluateFieldWithConditions } from
|
|
5
|
+
import { FieldBase } from "./FieldBase";
|
|
6
|
+
import { evaluateFieldWithConditions } from "./utils";
|
|
7
7
|
var ChildFieldMemo = /*#__PURE__*/React.memo(function ChildField(_ref) {
|
|
8
8
|
var dependencies = _ref.dependencies,
|
|
9
9
|
field = _ref.field,
|
package/es/Field/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["name", "children"];
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
|
-
import { FieldBase } from
|
|
6
|
-
import FieldConditional from
|
|
7
|
-
import { useField, calculateField } from
|
|
8
|
-
import FieldArray from
|
|
9
|
-
import Multiplicity from
|
|
5
|
+
import { FieldBase } from "./FieldBase";
|
|
6
|
+
import FieldConditional from "./FieldConditional";
|
|
7
|
+
import { useField, calculateField } from "./utils";
|
|
8
|
+
import FieldArray from "../FieldArray";
|
|
9
|
+
import Multiplicity from "../MultiplicityField";
|
|
10
10
|
export var Field = function Field(_ref) {
|
|
11
11
|
var name = _ref.name,
|
|
12
12
|
children = _ref.children,
|
package/es/Field/utils.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { lazy, useContext, useMemo } from 'react';
|
|
3
|
-
import { FormContext } from
|
|
4
|
-
import Checkboxes from
|
|
5
|
-
import DateInput from
|
|
6
|
-
import FileInput from
|
|
7
|
-
import Input from
|
|
8
|
-
import OtpInput from
|
|
9
|
-
import Radio from
|
|
10
|
-
import Select from
|
|
3
|
+
import { FormContext } from "../FormContext";
|
|
4
|
+
import Checkboxes from "../inputs/Checkboxes";
|
|
5
|
+
import DateInput from "../inputs/DateInput";
|
|
6
|
+
import FileInput from "../inputs/FileInput";
|
|
7
|
+
import Input from "../inputs/Input";
|
|
8
|
+
import OtpInput from "../inputs/OtpInput";
|
|
9
|
+
import Radio from "../inputs/Radio";
|
|
10
|
+
import Select from "../inputs/Select";
|
|
11
11
|
var AutoComplete = /*#__PURE__*/lazy(function () {
|
|
12
|
-
return import(
|
|
12
|
+
return import("../inputs/AutoComplete");
|
|
13
13
|
});
|
|
14
14
|
var FIELD_COMPONENTS = {
|
|
15
15
|
text: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import FieldArray from
|
|
1
|
+
import FieldArray from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/FieldArray',
|
|
4
4
|
component: FieldArray,
|
|
5
5
|
displayName: 'FieldArray'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
8
|
+
export * from "./__stories__/WithExactLength";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
package/es/FieldArray/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["name", "register", "control", "formState", "error", "layout", "label"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useFieldArray } from 'react-hook-form';
|
|
6
|
-
import FieldContainer from
|
|
7
|
-
import FieldObject from
|
|
8
|
-
import { FieldsetLabel } from
|
|
6
|
+
import FieldContainer from "../Field/FieldBaseContainer";
|
|
7
|
+
import FieldObject from "../FieldObject";
|
|
8
|
+
import { FieldsetLabel } from "../Fieldset";
|
|
9
9
|
import Fieldset from '@digigov/react-core/Fieldset';
|
|
10
10
|
import { Button, Card, Hint } from '@digigov/ui';
|
|
11
11
|
export var FieldArray = function FieldArray(_ref) {
|
package/es/FieldObject/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { FieldBase } from
|
|
4
|
-
import { calculateField } from
|
|
5
|
-
import Fieldset, { FieldsetCaption } from
|
|
3
|
+
import { FieldBase } from "../Field/FieldBase";
|
|
4
|
+
import { calculateField } from "../Field/utils";
|
|
5
|
+
import Fieldset, { FieldsetCaption } from "../Fieldset";
|
|
6
6
|
import { FieldsetLegend } from '@digigov/react-core';
|
|
7
7
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
8
8
|
export var FieldObject = function FieldObject(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import Field from
|
|
3
|
-
import { Fieldset, FieldsetLabel, FieldsetCaption, FieldsetBody } from
|
|
4
|
-
import { FormContext } from
|
|
2
|
+
import Field from "../Field";
|
|
3
|
+
import { Fieldset, FieldsetLabel, FieldsetCaption, FieldsetBody } from "./";
|
|
4
|
+
import { FormContext } from "../FormContext";
|
|
5
5
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
6
6
|
export var FieldsetWithContext = function FieldsetWithContext(_ref) {
|
|
7
7
|
var name = _ref.name;
|
|
@@ -7,11 +7,11 @@ var _excluded = ["onSubmit", "children", "registerField", "fieldsMap", "fieldset
|
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
8
|
import React, { useCallback, useRef } from 'react';
|
|
9
9
|
import { useForm } from 'react-hook-form';
|
|
10
|
-
import Field from
|
|
11
|
-
import Fieldset from
|
|
12
|
-
import { FormContext } from
|
|
13
|
-
import { yupResolver } from
|
|
14
|
-
import { useValidationSchema } from
|
|
10
|
+
import Field from "../Field";
|
|
11
|
+
import Fieldset from "../Fieldset";
|
|
12
|
+
import { FormContext } from "../FormContext";
|
|
13
|
+
import { yupResolver } from "../utils";
|
|
14
|
+
import { useValidationSchema } from "../validators";
|
|
15
15
|
import { Form } from '@digigov/react-core/Form';
|
|
16
16
|
export var FormBase = /*#__PURE__*/React.forwardRef(function FormBase(_ref, ref) {
|
|
17
17
|
var onSubmit = _ref.onSubmit,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import FormBuilder from
|
|
1
|
+
import FormBuilder from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/FormBuilder',
|
|
4
4
|
component: FormBuilder,
|
|
5
5
|
displayName: 'FormBuilder'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
package/es/FormBuilder/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FormBuilder } from
|
|
1
|
+
import { FormBuilder } from "./FormBuilder";
|
|
2
2
|
export default FormBuilder;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import MultiplicityField from
|
|
1
|
+
import MultiplicityField from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/MultiplicityField',
|
|
4
4
|
component: MultiplicityField,
|
|
5
5
|
displayName: 'MultiplicityField'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
8
|
+
export * from "./__stories__/WithMinLength";
|
|
9
|
+
export * from "./__stories__/WithMaxLength";
|
|
10
|
+
export * from "./__stories__/WithMinAndMaxLength";
|
|
11
|
+
export * from "./__stories__/WithExactLength";
|
|
12
|
+
export * from "./__stories__/PreviewDisplay";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import FormBuilder, { Field } from
|
|
3
|
+
import FormBuilder, { Field } from "../..";
|
|
4
4
|
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
@@ -8,9 +8,9 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
8
8
|
import React, { useEffect, useMemo } from 'react'; // import { FormBuilderProps } from '@digigov/form';
|
|
9
9
|
|
|
10
10
|
import { useWatch } from 'react-hook-form';
|
|
11
|
-
import { FieldBase } from
|
|
12
|
-
import { calculateField, useField } from
|
|
13
|
-
import FieldObject from
|
|
11
|
+
import { FieldBase } from "../Field/FieldBase";
|
|
12
|
+
import { calculateField, useField } from "../Field/utils";
|
|
13
|
+
import FieldObject from "../FieldObject";
|
|
14
14
|
import Fieldset from '@digigov/react-core/Fieldset';
|
|
15
15
|
import RadioConditional from '@digigov/react-core/RadioConditional';
|
|
16
16
|
import Button from '@digigov/ui/form/Button';
|
|
@@ -3,9 +3,9 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { useFieldArray } from 'react-hook-form';
|
|
6
|
-
import FieldContainer from
|
|
7
|
-
import FieldObject from
|
|
8
|
-
import AddObjects from
|
|
6
|
+
import FieldContainer from "../Field/FieldBaseContainer";
|
|
7
|
+
import FieldObject from "../FieldObject";
|
|
8
|
+
import AddObjects from "./add-objects";
|
|
9
9
|
import { Card, CardContent, CardAction, Button, Heading, CardHeading } from '@digigov/react-core';
|
|
10
10
|
// epeidh einai forwardRef to ref mas to dinei xwrista apo ta props
|
|
11
11
|
export var Multiplicity = function Multiplicity(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
|
-
import { getNextStep } from
|
|
4
|
-
import { QuestionsContext } from
|
|
3
|
+
import { getNextStep } from "./getNextStep";
|
|
4
|
+
import { QuestionsContext } from "./QuestionsContext";
|
|
5
5
|
var isBrowser = typeof window !== 'undefined';
|
|
6
6
|
/**
|
|
7
7
|
* The Question component accepts question data as props
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Questions from
|
|
1
|
+
import Questions from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov Form/Questions',
|
|
4
4
|
component: Questions,
|
|
5
5
|
displayName: 'Questions'
|
|
6
6
|
};
|
|
7
|
-
export * from
|
|
7
|
+
export * from "./__stories__/Default";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { QuestionsContext } from
|
|
3
|
-
import { StepContext } from
|
|
4
|
-
import { StepTitleBase } from
|
|
2
|
+
import { QuestionsContext } from "../QuestionsContext";
|
|
3
|
+
import { StepContext } from "./StepContext";
|
|
4
|
+
import { StepTitleBase } from "./StepTitle";
|
|
5
5
|
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from '@digigov/ui/content/SummaryList';
|
|
6
6
|
import { Button } from '@digigov/ui/form/Button';
|
|
7
7
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import React, { useContext, useState } from 'react';
|
|
5
|
-
import { QuestionsContext } from
|
|
6
|
-
import { StepArrayReview } from
|
|
7
|
-
import { StepContext } from
|
|
5
|
+
import { QuestionsContext } from "../QuestionsContext";
|
|
6
|
+
import { StepArrayReview } from "./StepArrayReview";
|
|
7
|
+
import { StepContext } from "./StepContext";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* The Step component accepts Step data as props
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { Field } from
|
|
3
|
-
import { Fieldset } from
|
|
4
|
-
import FormBuilder from
|
|
5
|
-
import Label from
|
|
6
|
-
import { QuestionsContext } from
|
|
7
|
-
import { getAddMoreFields } from
|
|
2
|
+
import { Field } from "../../Field";
|
|
3
|
+
import { Fieldset } from "../../Fieldset";
|
|
4
|
+
import FormBuilder from "../../FormBuilder";
|
|
5
|
+
import Label from "../../inputs/Label";
|
|
6
|
+
import { QuestionsContext } from "../QuestionsContext";
|
|
7
|
+
import { getAddMoreFields } from "./getAddMoreFields";
|
|
8
8
|
import PageTitleContainer, { PageTitleHeading } from '@digigov/ui/app/PageTitleContainer';
|
|
9
9
|
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from '@digigov/ui/content/SummaryList';
|
|
10
10
|
import Button from '@digigov/ui/form/Button';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children", "description"];
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
|
-
import { StepContext } from
|
|
5
|
+
import { StepContext } from "./StepContext";
|
|
6
6
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
7
7
|
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
8
8
|
export var StepDescriptionBase = function StepDescriptionBase(_ref) {
|
|
@@ -2,10 +2,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
var _excluded = ["children", "submitButton"],
|
|
3
3
|
_excluded2 = ["name", "submitStep"];
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
|
-
import Field from
|
|
6
|
-
import Fieldset from
|
|
7
|
-
import FormBuilder from
|
|
8
|
-
import { StepContext } from
|
|
5
|
+
import Field from "../../Field";
|
|
6
|
+
import Fieldset from "../../Fieldset";
|
|
7
|
+
import FormBuilder from "../../FormBuilder";
|
|
8
|
+
import { StepContext } from "./StepContext";
|
|
9
9
|
import Button from '@digigov/ui/form/Button';
|
|
10
10
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { StepContext } from
|
|
2
|
+
import { StepContext } from "./StepContext";
|
|
3
3
|
import PageTitleContainer, { PageTitleCaption } from '@digigov/ui/app/PageTitleContainer';
|
|
4
4
|
import BackButton from '@digigov/ui/form/Button/BackButton';
|
|
5
5
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
import Step from
|
|
1
|
+
export * from "./ReviewStep";
|
|
2
|
+
export * from "./Step";
|
|
3
|
+
export * from "./StepArrayReview";
|
|
4
|
+
export * from "./StepContext";
|
|
5
|
+
export * from "./StepDescription";
|
|
6
|
+
export * from "./StepForm";
|
|
7
|
+
export * from "./StepQuote";
|
|
8
|
+
export * from "./StepTitle";
|
|
9
|
+
export * from "./getAddMoreFields";
|
|
10
|
+
export * from "./";
|
|
11
|
+
export * from "./types";
|
|
12
|
+
import Step from "./Step";
|
|
13
13
|
export default Step;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Field } from
|
|
3
|
-
import Questions, { Step, StepForm, StepTitle } from
|
|
2
|
+
import { Field } from "../..";
|
|
3
|
+
import Questions, { Step, StepForm, StepTitle } from "./..";
|
|
4
4
|
import Header from '@digigov/ui/app/Header';
|
|
5
5
|
import HeaderContent from '@digigov/ui/app/Header/HeaderContent';
|
|
6
6
|
import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
package/es/Questions/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Questions } from
|
|
1
|
+
import { Questions } from "./Questions";
|
|
2
2
|
export default Questions;
|
|
3
|
-
export * from
|
|
3
|
+
export * from "./Step";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
|
-
import { Field } from
|
|
4
|
-
import { Step, StepForm, StepQuote, StepTitle } from
|
|
5
|
-
import Questions from
|
|
3
|
+
import { Field } from "./..";
|
|
4
|
+
import { Step, StepForm, StepQuote, StepTitle } from "./";
|
|
5
|
+
import Questions from "./";
|
|
6
6
|
var steps = [{
|
|
7
7
|
name: 'intro',
|
|
8
8
|
caption: 'intro.caption',
|
package/es/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
import FormBuilder from
|
|
1
|
+
export * from "./internal";
|
|
2
|
+
import FormBuilder from "./FormBuilder";
|
|
3
3
|
export default FormBuilder;
|