@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
package/{esm/MultiplicityField/__stories__/Default.js → MultiplicityField/__stories__/Default.mjs}
RENAMED
|
@@ -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',
|
|
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ = _interopRequireWildcard(require("../.."));
|
|
17
17
|
|
|
18
18
|
var _Button = require("@digigov/ui/form/Button");
|
|
19
19
|
|
|
@@ -97,15 +97,15 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
|
97
97
|
}, "\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1");
|
|
98
98
|
|
|
99
99
|
var WithExactLength = function WithExactLength() {
|
|
100
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
100
|
+
return /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
101
101
|
onSubmit: function onSubmit(data) {
|
|
102
102
|
console.log(data);
|
|
103
103
|
}
|
|
104
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
105
105
|
name: "string"
|
|
106
|
-
}, fields[0])), /*#__PURE__*/_react["default"].createElement(
|
|
106
|
+
}, fields[0])), /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
107
107
|
name: "multiplicity"
|
|
108
|
-
}, fields[1])), /*#__PURE__*/_react["default"].createElement(
|
|
108
|
+
}, fields[1])), /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
109
109
|
name: "phonenumber"
|
|
110
110
|
}, fields[2])), _ref);
|
|
111
111
|
};
|
|
@@ -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',
|
|
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ = _interopRequireWildcard(require("../.."));
|
|
17
17
|
|
|
18
18
|
var _Button = require("@digigov/ui/form/Button");
|
|
19
19
|
|
|
@@ -100,15 +100,15 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
|
100
100
|
}, "\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1");
|
|
101
101
|
|
|
102
102
|
var WithMaxLength = function WithMaxLength() {
|
|
103
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
104
104
|
onSubmit: function onSubmit(data) {
|
|
105
105
|
console.log(data);
|
|
106
106
|
}
|
|
107
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
108
108
|
name: "string"
|
|
109
|
-
}, fields[0])), /*#__PURE__*/_react["default"].createElement(
|
|
109
|
+
}, fields[0])), /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
110
110
|
name: "multiplicity"
|
|
111
|
-
}, fields[1])), /*#__PURE__*/_react["default"].createElement(
|
|
111
|
+
}, fields[1])), /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
112
112
|
name: "phonenumber"
|
|
113
113
|
}, fields[2])), _ref);
|
|
114
114
|
};
|
|
@@ -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',
|
|
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ = _interopRequireWildcard(require("../.."));
|
|
17
17
|
|
|
18
18
|
var _Button = require("@digigov/ui/form/Button");
|
|
19
19
|
|
|
@@ -101,15 +101,15 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
|
101
101
|
}, "\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1");
|
|
102
102
|
|
|
103
103
|
var WithMinAndMaxLength = function WithMinAndMaxLength() {
|
|
104
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
104
|
+
return /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
105
105
|
onSubmit: function onSubmit(data) {
|
|
106
106
|
console.log(data);
|
|
107
107
|
}
|
|
108
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
108
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
109
109
|
name: "string"
|
|
110
|
-
}, fields[0])), /*#__PURE__*/_react["default"].createElement(
|
|
110
|
+
}, fields[0])), /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
111
111
|
name: "multiplicity"
|
|
112
|
-
}, fields[1])), /*#__PURE__*/_react["default"].createElement(
|
|
112
|
+
}, fields[1])), /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
113
113
|
name: "phonenumber"
|
|
114
114
|
}, fields[2])), _ref);
|
|
115
115
|
};
|
|
@@ -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',
|
|
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ = _interopRequireWildcard(require("../.."));
|
|
17
17
|
|
|
18
18
|
var _Button = require("@digigov/ui/form/Button");
|
|
19
19
|
|
|
@@ -100,15 +100,15 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
|
100
100
|
}, "\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1");
|
|
101
101
|
|
|
102
102
|
var WithMinLength = function WithMinLength() {
|
|
103
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
104
104
|
onSubmit: function onSubmit(data) {
|
|
105
105
|
console.log(data);
|
|
106
106
|
}
|
|
107
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
108
108
|
name: "string"
|
|
109
|
-
}, fields[0])), /*#__PURE__*/_react["default"].createElement(
|
|
109
|
+
}, fields[0])), /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
110
110
|
name: "multiplicity"
|
|
111
|
-
}, fields[1])), /*#__PURE__*/_react["default"].createElement(
|
|
111
|
+
}, fields[1])), /*#__PURE__*/_react["default"].createElement(_.Field, (0, _extends2["default"])({
|
|
112
112
|
name: "phonenumber"
|
|
113
113
|
}, fields[2])), _ref);
|
|
114
114
|
};
|
|
@@ -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',
|
|
@@ -17,11 +17,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
|
|
18
18
|
var _reactHookForm = require("react-hook-form");
|
|
19
19
|
|
|
20
|
-
var _FieldBase = require("
|
|
20
|
+
var _FieldBase = require("../Field/FieldBase");
|
|
21
21
|
|
|
22
|
-
var _utils = require("
|
|
22
|
+
var _utils = require("../Field/utils");
|
|
23
23
|
|
|
24
|
-
var _FieldObject = _interopRequireDefault(require("
|
|
24
|
+
var _FieldObject = _interopRequireDefault(require("../FieldObject"));
|
|
25
25
|
|
|
26
26
|
var _Fieldset = _interopRequireDefault(require("@digigov/react-core/Fieldset"));
|
|
27
27
|
|
|
@@ -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';
|
|
@@ -19,11 +19,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
19
19
|
|
|
20
20
|
var _reactHookForm = require("react-hook-form");
|
|
21
21
|
|
|
22
|
-
var _FieldBaseContainer = _interopRequireDefault(require("
|
|
22
|
+
var _FieldBaseContainer = _interopRequireDefault(require("../Field/FieldBaseContainer"));
|
|
23
23
|
|
|
24
|
-
var _FieldObject = _interopRequireDefault(require("
|
|
24
|
+
var _FieldObject = _interopRequireDefault(require("../FieldObject"));
|
|
25
25
|
|
|
26
|
-
var _addObjects = _interopRequireDefault(require("
|
|
26
|
+
var _addObjects = _interopRequireDefault(require("./add-objects"));
|
|
27
27
|
|
|
28
28
|
var _reactCore = require("@digigov/react-core");
|
|
29
29
|
|
|
@@ -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) {
|
package/Questions/Questions.js
CHANGED
|
@@ -13,9 +13,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var _getNextStep = require("
|
|
16
|
+
var _getNextStep = require("./getNextStep");
|
|
17
17
|
|
|
18
|
-
var _QuestionsContext = require("
|
|
18
|
+
var _QuestionsContext = require("./QuestionsContext");
|
|
19
19
|
|
|
20
20
|
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); }
|
|
21
21
|
|
|
@@ -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
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _ = _interopRequireDefault(require("./"));
|
|
12
12
|
|
|
13
|
-
var _Default = require("
|
|
13
|
+
var _Default = require("./__stories__/Default");
|
|
14
14
|
|
|
15
15
|
Object.keys(_Default).forEach(function (key) {
|
|
16
16
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -25,7 +25,7 @@ Object.keys(_Default).forEach(function (key) {
|
|
|
25
25
|
});
|
|
26
26
|
var _default = {
|
|
27
27
|
title: 'Digigov Form/Questions',
|
|
28
|
-
component:
|
|
28
|
+
component: _["default"],
|
|
29
29
|
displayName: 'Questions'
|
|
30
30
|
};
|
|
31
31
|
exports["default"] = _default;
|
|
@@ -11,11 +11,11 @@ exports["default"] = exports.ReviewStep = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var _QuestionsContext = require("
|
|
14
|
+
var _QuestionsContext = require("../QuestionsContext");
|
|
15
15
|
|
|
16
|
-
var _StepContext = require("
|
|
16
|
+
var _StepContext = require("./StepContext");
|
|
17
17
|
|
|
18
|
-
var _StepTitle = require("
|
|
18
|
+
var _StepTitle = require("./StepTitle");
|
|
19
19
|
|
|
20
20
|
var _SummaryList = require("@digigov/ui/content/SummaryList");
|
|
21
21
|
|
|
@@ -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';
|
package/Questions/Step/Step.js
CHANGED
|
@@ -17,11 +17,11 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
17
17
|
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
19
|
|
|
20
|
-
var _QuestionsContext = require("
|
|
20
|
+
var _QuestionsContext = require("../QuestionsContext");
|
|
21
21
|
|
|
22
|
-
var _StepArrayReview = require("
|
|
22
|
+
var _StepArrayReview = require("./StepArrayReview");
|
|
23
23
|
|
|
24
|
-
var _StepContext = require("
|
|
24
|
+
var _StepContext = require("./StepContext");
|
|
25
25
|
|
|
26
26
|
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); }
|
|
27
27
|
|
|
@@ -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
|
|
@@ -11,17 +11,17 @@ exports["default"] = exports.StepArrayReview = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Field = require("
|
|
14
|
+
var _Field = require("../../Field");
|
|
15
15
|
|
|
16
|
-
var _Fieldset = require("
|
|
16
|
+
var _Fieldset = require("../../Fieldset");
|
|
17
17
|
|
|
18
|
-
var _FormBuilder = _interopRequireDefault(require("
|
|
18
|
+
var _FormBuilder = _interopRequireDefault(require("../../FormBuilder"));
|
|
19
19
|
|
|
20
|
-
var _Label = _interopRequireDefault(require("
|
|
20
|
+
var _Label = _interopRequireDefault(require("../../inputs/Label"));
|
|
21
21
|
|
|
22
|
-
var _QuestionsContext = require("
|
|
22
|
+
var _QuestionsContext = require("../QuestionsContext");
|
|
23
23
|
|
|
24
|
-
var _getAddMoreFields = require("
|
|
24
|
+
var _getAddMoreFields = require("./getAddMoreFields");
|
|
25
25
|
|
|
26
26
|
var _PageTitleContainer = _interopRequireWildcard(require("@digigov/ui/app/PageTitleContainer"));
|
|
27
27
|
|
|
@@ -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';
|
|
@@ -15,7 +15,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
-
var _StepContext = require("
|
|
18
|
+
var _StepContext = require("./StepContext");
|
|
19
19
|
|
|
20
20
|
var _i18n = require("@digigov/ui/i18n");
|
|
21
21
|
|
|
@@ -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) {
|
|
@@ -13,13 +13,13 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var _Field = _interopRequireDefault(require("
|
|
16
|
+
var _Field = _interopRequireDefault(require("../../Field"));
|
|
17
17
|
|
|
18
|
-
var _Fieldset = _interopRequireDefault(require("
|
|
18
|
+
var _Fieldset = _interopRequireDefault(require("../../Fieldset"));
|
|
19
19
|
|
|
20
|
-
var _FormBuilder = _interopRequireDefault(require("
|
|
20
|
+
var _FormBuilder = _interopRequireDefault(require("../../FormBuilder"));
|
|
21
21
|
|
|
22
|
-
var _StepContext = require("
|
|
22
|
+
var _StepContext = require("./StepContext");
|
|
23
23
|
|
|
24
24
|
var _Button = _interopRequireDefault(require("@digigov/ui/form/Button"));
|
|
25
25
|
|
|
@@ -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
|
|
|
@@ -11,7 +11,7 @@ exports["default"] = exports.StepTitleHeading = exports.StepTitleBase = exports.
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var _StepContext = require("
|
|
14
|
+
var _StepContext = require("./StepContext");
|
|
15
15
|
|
|
16
16
|
var _PageTitleContainer = _interopRequireWildcard(require("@digigov/ui/app/PageTitleContainer"));
|
|
17
17
|
|
|
@@ -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';
|
package/Questions/Step/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 _ReviewStep = require("
|
|
11
|
+
var _ReviewStep = require("./ReviewStep");
|
|
12
12
|
|
|
13
13
|
Object.keys(_ReviewStep).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -22,7 +22,7 @@ Object.keys(_ReviewStep).forEach(function (key) {
|
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
var _Step = _interopRequireWildcard(require("
|
|
25
|
+
var _Step = _interopRequireWildcard(require("./Step"));
|
|
26
26
|
|
|
27
27
|
Object.keys(_Step).forEach(function (key) {
|
|
28
28
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -36,7 +36,7 @@ Object.keys(_Step).forEach(function (key) {
|
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
var _StepArrayReview = require("
|
|
39
|
+
var _StepArrayReview = require("./StepArrayReview");
|
|
40
40
|
|
|
41
41
|
Object.keys(_StepArrayReview).forEach(function (key) {
|
|
42
42
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -50,7 +50,7 @@ Object.keys(_StepArrayReview).forEach(function (key) {
|
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
var _StepContext = require("
|
|
53
|
+
var _StepContext = require("./StepContext");
|
|
54
54
|
|
|
55
55
|
Object.keys(_StepContext).forEach(function (key) {
|
|
56
56
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -64,7 +64,7 @@ Object.keys(_StepContext).forEach(function (key) {
|
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
var _StepDescription = require("
|
|
67
|
+
var _StepDescription = require("./StepDescription");
|
|
68
68
|
|
|
69
69
|
Object.keys(_StepDescription).forEach(function (key) {
|
|
70
70
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -78,7 +78,7 @@ Object.keys(_StepDescription).forEach(function (key) {
|
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
var _StepForm = require("
|
|
81
|
+
var _StepForm = require("./StepForm");
|
|
82
82
|
|
|
83
83
|
Object.keys(_StepForm).forEach(function (key) {
|
|
84
84
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -92,7 +92,7 @@ Object.keys(_StepForm).forEach(function (key) {
|
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
var _StepQuote = require("
|
|
95
|
+
var _StepQuote = require("./StepQuote");
|
|
96
96
|
|
|
97
97
|
Object.keys(_StepQuote).forEach(function (key) {
|
|
98
98
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -106,7 +106,7 @@ Object.keys(_StepQuote).forEach(function (key) {
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
var _StepTitle = require("
|
|
109
|
+
var _StepTitle = require("./StepTitle");
|
|
110
110
|
|
|
111
111
|
Object.keys(_StepTitle).forEach(function (key) {
|
|
112
112
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -120,7 +120,7 @@ Object.keys(_StepTitle).forEach(function (key) {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
|
|
123
|
-
var _getAddMoreFields = require("
|
|
123
|
+
var _getAddMoreFields = require("./getAddMoreFields");
|
|
124
124
|
|
|
125
125
|
Object.keys(_getAddMoreFields).forEach(function (key) {
|
|
126
126
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -134,21 +134,21 @@ Object.keys(_getAddMoreFields).forEach(function (key) {
|
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
var
|
|
137
|
+
var _ = require("./");
|
|
138
138
|
|
|
139
|
-
Object.keys(
|
|
139
|
+
Object.keys(_).forEach(function (key) {
|
|
140
140
|
if (key === "default" || key === "__esModule") return;
|
|
141
141
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
142
|
-
if (key in exports && exports[key] ===
|
|
142
|
+
if (key in exports && exports[key] === _[key]) return;
|
|
143
143
|
Object.defineProperty(exports, key, {
|
|
144
144
|
enumerable: true,
|
|
145
145
|
get: function get() {
|
|
146
|
-
return
|
|
146
|
+
return _[key];
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
var _types = require("
|
|
151
|
+
var _types = require("./types");
|
|
152
152
|
|
|
153
153
|
Object.keys(_types).forEach(function (key) {
|
|
154
154
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export default Step;
|