@digigov/form 0.6.9 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -1
- package/Field/FieldBase.js +110 -0
- package/Field/{ConditionalField.js → FieldConditional.js} +9 -29
- package/Field/FieldContainer.js +62 -0
- package/Field/index.js +11 -251
- package/Field/types.js +5 -0
- package/Field/utils.js +146 -0
- package/Fieldset/FieldsetWithContext.js +63 -0
- package/Fieldset/index.js +4 -63
- package/Fieldset/types.js +5 -0
- package/FormBuilder.js +178 -0
- package/FormContext.js +14 -0
- package/Questions/Questions.js +105 -0
- package/Questions/QuestionsContext.js +20 -0
- package/Questions/Step/ReviewStep.js +11 -7
- package/Questions/Step/Step.js +93 -0
- package/Questions/Step/StepArrayReview.js +79 -0
- package/Questions/Step/StepContext.js +37 -0
- package/Questions/Step/StepDescription.js +2 -2
- package/Questions/Step/StepForm.js +10 -6
- package/Questions/Step/StepTitle.js +2 -2
- package/Questions/Step/getAddMoreFields.js +31 -0
- package/Questions/Step/index.js +81 -200
- package/Questions/Step/types.js +5 -0
- package/Questions/__snapshots__/index.spec.tsx.snap +461 -2499
- package/Questions/getNextStep.js +30 -0
- package/Questions/index.js +4 -150
- package/Questions/types.js +5 -0
- package/es/Field/FieldBase.js +93 -0
- package/es/Field/{ConditionalField.js → FieldConditional.js} +5 -28
- package/es/Field/FieldContainer.js +40 -0
- package/es/Field/index.js +8 -233
- package/es/Field/types.js +1 -0
- package/es/Field/utils.js +122 -0
- package/es/Fieldset/FieldsetWithContext.js +41 -0
- package/es/Fieldset/index.js +3 -51
- package/es/Fieldset/types.js +1 -0
- package/es/FormBuilder.js +148 -0
- package/es/FormContext.js +5 -0
- package/es/Questions/Questions.js +84 -0
- package/es/Questions/QuestionsContext.js +11 -0
- package/es/Questions/Step/ReviewStep.js +5 -3
- package/es/Questions/Step/Step.js +69 -0
- package/es/Questions/Step/StepArrayReview.js +50 -0
- package/es/Questions/Step/StepContext.js +27 -0
- package/es/Questions/Step/StepDescription.js +1 -1
- package/es/Questions/Step/StepForm.js +4 -2
- package/es/Questions/Step/StepTitle.js +1 -1
- package/es/Questions/Step/getAddMoreFields.js +22 -0
- package/es/Questions/Step/index.js +13 -165
- package/es/Questions/Step/types.js +1 -0
- package/es/Questions/__snapshots__/index.spec.tsx.snap +461 -2499
- package/es/Questions/getNextStep.js +23 -0
- package/es/Questions/index.js +2 -119
- package/es/Questions/index.spec.js +2 -1
- package/es/Questions/types.js +1 -0
- package/es/index.js +2 -153
- package/es/inputs/index.js +5 -4
- package/es/internal.js +31 -0
- package/es/types.js +1 -0
- package/es/utils.js +5 -3
- package/es/validators/index.js +155 -0
- package/es/validators/types.js +1 -0
- package/es/validators/utils/afm.js +35 -0
- package/es/validators/utils/file.js +52 -0
- package/es/validators/utils/iban.js +123 -0
- package/es/validators/utils/index.js +105 -0
- package/es/validators/utils/phone.js +122 -0
- package/es/validators/utils/postal_code.js +29 -0
- package/es/validators/utils/uuid4.js +20 -0
- package/{esm → es/validators}/validators.spec.js +1 -1
- package/esm/Field/FieldBase.js +93 -0
- package/esm/Field/{ConditionalField.js → FieldConditional.js} +5 -28
- package/esm/Field/FieldContainer.js +40 -0
- package/esm/Field/index.js +8 -233
- package/esm/Field/types.js +1 -0
- package/esm/Field/utils.js +122 -0
- package/esm/Fieldset/FieldsetWithContext.js +41 -0
- package/esm/Fieldset/index.js +3 -51
- package/esm/Fieldset/types.js +1 -0
- package/esm/FormBuilder.js +148 -0
- package/esm/FormContext.js +5 -0
- package/esm/Questions/Questions.js +84 -0
- package/esm/Questions/QuestionsContext.js +11 -0
- package/esm/Questions/Step/ReviewStep.js +5 -3
- package/esm/Questions/Step/Step.js +69 -0
- package/esm/Questions/Step/StepArrayReview.js +50 -0
- package/esm/Questions/Step/StepContext.js +27 -0
- package/esm/Questions/Step/StepDescription.js +1 -1
- package/esm/Questions/Step/StepForm.js +4 -2
- package/esm/Questions/Step/StepTitle.js +1 -1
- package/esm/Questions/Step/getAddMoreFields.js +22 -0
- package/esm/Questions/Step/index.js +13 -165
- package/esm/Questions/Step/types.js +1 -0
- package/esm/Questions/__snapshots__/index.spec.tsx.snap +461 -2499
- package/esm/Questions/getNextStep.js +23 -0
- package/esm/Questions/index.js +2 -119
- package/esm/Questions/index.spec.js +2 -1
- package/esm/Questions/types.js +1 -0
- package/esm/index.js +3 -154
- package/esm/inputs/index.js +5 -4
- package/esm/internal.js +31 -0
- package/esm/types.js +1 -0
- package/esm/utils.js +5 -3
- package/esm/validators/index.js +155 -0
- package/esm/validators/types.js +1 -0
- package/esm/validators/utils/afm.js +35 -0
- package/esm/validators/utils/file.js +52 -0
- package/esm/validators/utils/iban.js +123 -0
- package/esm/validators/utils/index.js +105 -0
- package/esm/validators/utils/phone.js +122 -0
- package/esm/validators/utils/postal_code.js +29 -0
- package/esm/validators/utils/uuid4.js +20 -0
- package/{es → esm/validators}/validators.spec.js +1 -1
- package/index.js +8 -191
- package/inputs/index.js +13 -5
- package/internal.js +356 -0
- package/libs/form/src/Field/FieldBase.d.ts +3 -0
- package/libs/form/src/Field/FieldConditional.d.ts +4 -0
- package/libs/form/src/Field/FieldContainer.d.ts +4 -0
- package/libs/form/src/Field/index.d.ts +1 -62
- package/libs/form/src/Field/types.d.ts +75 -0
- package/libs/form/src/Field/utils.d.ts +5 -0
- package/libs/form/src/Fieldset/FieldsetWithContext.d.ts +4 -0
- package/libs/form/src/Fieldset/index.d.ts +2 -12
- package/libs/form/src/Fieldset/types.d.ts +6 -0
- package/libs/form/src/FormBuilder.d.ts +5 -0
- package/libs/form/src/FormContext.d.ts +3 -0
- package/libs/form/src/Questions/Questions.d.ts +8 -0
- package/libs/form/src/Questions/QuestionsContext.d.ts +3 -0
- package/libs/form/src/Questions/Step/ReviewStep.d.ts +1 -0
- package/libs/form/src/Questions/Step/Step.d.ts +9 -0
- package/libs/form/src/Questions/Step/StepArrayReview.d.ts +4 -0
- package/libs/form/src/Questions/Step/StepContext.d.ts +4 -0
- package/libs/form/src/Questions/Step/StepForm.d.ts +2 -1
- package/libs/form/src/Questions/Step/getAddMoreFields.d.ts +3 -0
- package/libs/form/src/Questions/Step/index.d.ts +12 -47
- package/libs/form/src/Questions/Step/types.d.ts +31 -0
- package/libs/form/src/Questions/getNextStep.d.ts +2 -0
- package/libs/form/src/Questions/index.d.ts +1 -28
- package/libs/form/src/Questions/types.d.ts +19 -0
- package/libs/form/src/index.d.ts +2 -73
- package/libs/form/src/inputs/Checkboxes/index.d.ts +1 -1
- package/libs/form/src/inputs/DateInput/index.d.ts +1 -2
- package/libs/form/src/inputs/FileInput/index.d.ts +1 -1
- package/libs/form/src/inputs/Input/index.d.ts +1 -1
- package/libs/form/src/inputs/Label/index.d.ts +2 -1
- package/libs/form/src/inputs/Radio/index.d.ts +1 -1
- package/libs/form/src/inputs/Select/index.d.ts +1 -1
- package/libs/form/src/inputs/index.d.ts +4 -3
- package/libs/form/src/internal.d.ts +31 -0
- package/libs/form/src/types.d.ts +70 -0
- package/libs/form/src/validators/index.d.ts +8 -0
- package/libs/form/src/validators/types.d.ts +2 -0
- package/libs/form/src/validators/utils/afm.d.ts +6 -0
- package/libs/form/src/validators/utils/file.d.ts +1 -0
- package/libs/form/src/validators/utils/iban.d.ts +2 -0
- package/libs/form/src/validators/utils/index.d.ts +12 -0
- package/libs/form/src/validators/utils/phone.d.ts +9 -0
- package/libs/form/src/validators/utils/postal_code.d.ts +2 -0
- package/libs/form/src/validators/utils/uuid4.d.ts +6 -0
- package/libs/form/src/{validators.spec.d.ts → validators/validators.spec.d.ts} +0 -0
- package/libs/ui/src/core/Accordion/index.d.ts +3 -3
- package/libs/ui/src/core/Base/index.d.ts +3 -0
- package/libs/ui/src/core/Blockquote/index.d.ts +1 -1
- package/libs/ui/src/core/Button/BackButton.d.ts +1 -1
- package/libs/ui/src/core/Button/ButtonLink.d.ts +1 -1
- package/libs/ui/src/core/Button/index.d.ts +1 -1
- package/libs/ui/src/core/Divider/index.d.ts +1 -1
- package/libs/ui/src/core/Form/index.d.ts +3 -0
- package/libs/ui/src/core/Label/index.d.ts +4 -0
- package/libs/ui/src/core/Link/index.d.ts +1 -0
- package/libs/ui/src/core/NavList/NavHorizontal.d.ts +3 -0
- package/libs/ui/src/core/NavList/NavHorizontalList.d.ts +3 -0
- package/libs/ui/src/core/NavList/NavHorizontalListItem.d.ts +3 -0
- package/libs/ui/src/core/NavList/NavList.d.ts +1 -14
- package/libs/ui/src/core/NavList/NavListBase.d.ts +4 -0
- package/libs/ui/src/core/NavList/NavListItem.d.ts +1 -0
- package/libs/ui/src/core/NavList/NavListItemBase.d.ts +2 -1
- package/libs/ui/src/core/NavList/NavListSubMenu.d.ts +1 -1
- package/libs/ui/src/core/NavList/NavVertical.d.ts +3 -0
- package/libs/ui/src/core/NavList/NavVerticalItem.d.ts +3 -0
- package/libs/ui/src/core/NavList/index.d.ts +5 -0
- package/libs/ui/src/core/NavList/types.d.ts +14 -0
- package/libs/ui/src/core/SkipLink/index.d.ts +3 -0
- package/libs/ui/src/core/SvgIcon/index.d.ts +1 -0
- package/libs/ui/src/core/Table/TableFloatingScroll.d.ts +2 -0
- package/libs/ui/src/core/Table/index.d.ts +1 -0
- package/libs/ui/src/core/index.d.ts +4 -0
- package/libs/ui/src/layouts/Grid/index.d.ts +1 -0
- package/libs/ui/src/typography/Caption/index.d.ts +3 -2
- package/libs/ui/src/typography/Title/index.d.ts +2 -1
- package/libs-ui/react-core/src/Accordion/index.d.ts +3 -3
- package/libs-ui/react-core/src/AccordionControls/index.d.ts +3 -3
- package/libs-ui/react-core/src/AccordionSection/index.d.ts +3 -3
- package/libs-ui/react-core/src/AccordionSectionContent/index.d.ts +3 -3
- package/libs-ui/react-core/src/AccordionSectionHeader/index.d.ts +3 -3
- package/libs-ui/react-core/src/AccordionSectionSummary/index.d.ts +4 -3
- package/libs-ui/react-core/src/AccordionSectionSummaryHeading/index.d.ts +3 -3
- package/libs-ui/react-core/src/BackLink/index.d.ts +3 -3
- package/libs-ui/react-core/src/Base/index.d.ts +43 -0
- package/libs-ui/react-core/src/Blockquote/index.d.ts +3 -3
- package/libs-ui/react-core/src/Breadcrumbs/index.d.ts +3 -3
- package/libs-ui/react-core/src/BreadcrumbsList/index.d.ts +3 -3
- package/libs-ui/react-core/src/BreadcrumbsListItem/index.d.ts +3 -3
- package/libs-ui/react-core/src/Button/index.d.ts +3 -3
- package/libs-ui/react-core/src/ButtonGroup/index.d.ts +3 -3
- package/libs-ui/react-core/src/ButtonLink/index.d.ts +3 -3
- package/libs-ui/react-core/src/CallToAction/index.d.ts +1 -1
- package/libs-ui/react-core/src/Card/index.d.ts +3 -3
- package/libs-ui/react-core/src/CardAction/index.d.ts +3 -3
- package/libs-ui/react-core/src/CardHeading/index.d.ts +3 -3
- package/libs-ui/react-core/src/CardText/index.d.ts +3 -3
- package/libs-ui/react-core/src/CheckIcon/index.d.ts +15 -0
- package/libs-ui/react-core/src/Checkbox/index.d.ts +3 -3
- package/libs-ui/react-core/src/CheckboxItem/index.d.ts +3 -3
- package/libs-ui/react-core/src/Confirmation/index.d.ts +3 -3
- package/libs-ui/react-core/src/ConfirmationBody/index.d.ts +3 -3
- package/libs-ui/react-core/src/ConfirmationTitle/index.d.ts +3 -3
- package/libs-ui/react-core/src/DateInput/index.d.ts +3 -3
- package/libs-ui/react-core/src/DateInputItem/index.d.ts +3 -3
- package/libs-ui/react-core/src/Details/index.d.ts +3 -3
- package/libs-ui/react-core/src/DetailsContent/index.d.ts +3 -3
- package/libs-ui/react-core/src/DetailsSummary/index.d.ts +3 -3
- package/libs-ui/react-core/src/ErrorMessage/index.d.ts +3 -3
- package/libs-ui/react-core/src/ErrorSummary/index.d.ts +3 -3
- package/libs-ui/react-core/src/Field/index.d.ts +3 -3
- package/libs-ui/react-core/src/Fieldset/index.d.ts +3 -3
- package/libs-ui/react-core/src/FieldsetLegend/index.d.ts +3 -3
- package/libs-ui/react-core/src/FileUpload/index.d.ts +3 -3
- package/libs-ui/react-core/src/Form/index.d.ts +11 -0
- package/libs-ui/react-core/src/Grid/index.d.ts +3 -3
- package/libs-ui/react-core/src/Heading/index.d.ts +3 -3
- package/libs-ui/react-core/src/HeadingCaption/index.d.ts +3 -3
- package/libs-ui/react-core/src/Hidden/index.d.ts +3 -3
- package/libs-ui/react-core/src/Hint/index.d.ts +3 -3
- package/libs-ui/react-core/src/Label/index.d.ts +3 -3
- package/libs-ui/react-core/src/LabelTitle/index.d.ts +7 -7
- package/libs-ui/react-core/src/Link/index.d.ts +3 -3
- package/libs-ui/react-core/src/List/index.d.ts +3 -3
- package/libs-ui/react-core/src/ListItem/index.d.ts +3 -3
- package/libs-ui/react-core/src/NavHorizontal/index.d.ts +16 -0
- package/libs-ui/react-core/src/NavHorizontalList/index.d.ts +10 -0
- package/libs-ui/react-core/src/NavHorizontalListItem/index.d.ts +18 -0
- package/libs-ui/react-core/src/NavVertical/index.d.ts +11 -0
- package/libs-ui/react-core/src/NavVerticalItem/index.d.ts +14 -0
- package/libs-ui/react-core/src/NormalText/index.d.ts +3 -3
- package/libs-ui/react-core/src/NotificationBanner/index.d.ts +3 -3
- package/libs-ui/react-core/src/NotificationBannerContent/index.d.ts +3 -3
- package/libs-ui/react-core/src/NotificationBannerHeader/index.d.ts +3 -3
- package/libs-ui/react-core/src/NotificationBannerHeading/index.d.ts +3 -3
- package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +3 -3
- package/libs-ui/react-core/src/Paragraph/index.d.ts +3 -3
- package/libs-ui/react-core/src/PhaseBanner/index.d.ts +3 -3
- package/libs-ui/react-core/src/PhaseBannerHeaderContainer/index.d.ts +3 -3
- package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +3 -3
- package/libs-ui/react-core/src/PhaseBannerText/index.d.ts +3 -3
- package/libs-ui/react-core/src/Radio/index.d.ts +3 -3
- package/libs-ui/react-core/src/RadioItem/index.d.ts +3 -3
- package/libs-ui/react-core/src/SectionBreak/index.d.ts +3 -3
- package/libs-ui/react-core/src/Select/index.d.ts +3 -3
- package/libs-ui/react-core/src/SelectOption/index.d.ts +3 -3
- package/libs-ui/react-core/src/SkipLink/index.d.ts +10 -0
- package/libs-ui/react-core/src/SummaryList/index.d.ts +3 -3
- package/libs-ui/react-core/src/SummaryListItem/index.d.ts +3 -3
- package/libs-ui/react-core/src/SummaryListItemAction/index.d.ts +3 -3
- package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +3 -3
- package/libs-ui/react-core/src/SummaryListItemValue/index.d.ts +3 -3
- package/libs-ui/react-core/src/SvgIcon/index.d.ts +3 -3
- package/libs-ui/react-core/src/Table/index.d.ts +3 -3
- package/libs-ui/react-core/src/TableBody/index.d.ts +3 -3
- package/libs-ui/react-core/src/TableCaption/index.d.ts +3 -3
- package/libs-ui/react-core/src/TableContainer/index.d.ts +3 -3
- package/libs-ui/react-core/src/TableDataCell/index.d.ts +3 -3
- package/libs-ui/react-core/src/TableHead/index.d.ts +3 -3
- package/libs-ui/react-core/src/TableHeadCell/index.d.ts +3 -3
- package/libs-ui/react-core/src/TableNoDataRow/index.d.ts +3 -3
- package/libs-ui/react-core/src/TableRow/index.d.ts +3 -3
- package/libs-ui/react-core/src/Tabs/index.d.ts +3 -3
- package/libs-ui/react-core/src/TabsHeading/index.d.ts +3 -3
- package/libs-ui/react-core/src/TabsList/index.d.ts +3 -3
- package/libs-ui/react-core/src/TabsListItem/index.d.ts +3 -3
- package/libs-ui/react-core/src/TabsPanel/index.d.ts +3 -3
- package/libs-ui/react-core/src/TextArea/index.d.ts +3 -3
- package/libs-ui/react-core/src/TextInput/index.d.ts +3 -3
- package/libs-ui/react-core/src/UncheckIcon/index.d.ts +4 -4
- package/libs-ui/react-core/src/VisuallyHidden/index.d.ts +3 -3
- package/libs-ui/react-core/src/WarningText/index.d.ts +3 -3
- package/package.json +3 -2
- package/types.js +5 -0
- package/utils.js +6 -4
- package/validators/index.js +181 -0
- package/validators/types.js +5 -0
- package/validators/utils/afm.js +45 -0
- package/validators/utils/file.js +62 -0
- package/validators/utils/iban.js +134 -0
- package/validators/utils/index.js +210 -0
- package/validators/utils/phone.js +144 -0
- package/validators/utils/postal_code.js +40 -0
- package/validators/utils/uuid4.js +30 -0
- package/validators/validators.spec.js +88 -0
- package/es/validators.js +0 -626
- package/esm/validators.js +0 -626
- package/libs/form/src/Field/ConditionalField.d.ts +0 -17
- package/libs/form/src/validators.d.ts +0 -14
- package/validators.js +0 -662
- package/validators.spec.js +0 -88
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState, useEffect } from 'react';
|
|
3
|
+
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
4
|
+
import { getNextStep } from '@digigov/form/Questions/getNextStep';
|
|
5
|
+
var isBrowser = typeof window !== 'undefined';
|
|
6
|
+
/**
|
|
7
|
+
* The Question component accepts question data as props
|
|
8
|
+
* uses composable components to provide a wholesome UX
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export var Questions = function Questions(_ref) {
|
|
13
|
+
var name = _ref.name,
|
|
14
|
+
steps = _ref.steps,
|
|
15
|
+
_ref$initialData = _ref.initialData,
|
|
16
|
+
initialData = _ref$initialData === void 0 ? {} : _ref$initialData,
|
|
17
|
+
onChange = _ref.onChange,
|
|
18
|
+
onSubmit = _ref.onSubmit,
|
|
19
|
+
onActiveStep = _ref.onActiveStep,
|
|
20
|
+
forceStepName = _ref.forceStepName,
|
|
21
|
+
_ref$localDraft = _ref.localDraft,
|
|
22
|
+
localDraft = _ref$localDraft === void 0 ? false : _ref$localDraft,
|
|
23
|
+
children = _ref.children;
|
|
24
|
+
|
|
25
|
+
var _useState = useState({
|
|
26
|
+
name: ''
|
|
27
|
+
}),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
currentStep = _useState2[0],
|
|
30
|
+
setCurrentStep = _useState2[1];
|
|
31
|
+
|
|
32
|
+
useEffect(function () {
|
|
33
|
+
if (!forceStepName) {
|
|
34
|
+
setCurrentStep(steps[0]);
|
|
35
|
+
}
|
|
36
|
+
}, [forceStepName, steps]);
|
|
37
|
+
useEffect(function () {
|
|
38
|
+
if (forceStepName !== currentStep.name) {
|
|
39
|
+
var forceStep = steps.find(function (_ref2) {
|
|
40
|
+
var name = _ref2.name;
|
|
41
|
+
return name === forceStepName;
|
|
42
|
+
});
|
|
43
|
+
forceStep && setCurrentStep(forceStep);
|
|
44
|
+
}
|
|
45
|
+
}, [forceStepName]);
|
|
46
|
+
var localData = isBrowser && localDraft && window.localStorage.getItem("questions-".concat(name));
|
|
47
|
+
|
|
48
|
+
var _useState3 = useState(localData && JSON.parse(localData) || initialData),
|
|
49
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
50
|
+
data = _useState4[0],
|
|
51
|
+
setData = _useState4[1];
|
|
52
|
+
|
|
53
|
+
var submitStep = function submitStep(stepName, stepData) {
|
|
54
|
+
data[stepName] = stepData;
|
|
55
|
+
|
|
56
|
+
if (localDraft) {
|
|
57
|
+
isBrowser && window.localStorage.setItem("questions-".concat(name), JSON.stringify(data));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (onChange) {
|
|
61
|
+
onChange && onChange(data);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
setData(data);
|
|
65
|
+
var nextStep = getNextStep(currentStep, steps, data);
|
|
66
|
+
|
|
67
|
+
if (nextStep) {
|
|
68
|
+
onActiveStep && onActiveStep(nextStep);
|
|
69
|
+
setCurrentStep(nextStep);
|
|
70
|
+
} else {
|
|
71
|
+
onSubmit(data);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
return /*#__PURE__*/React.createElement(QuestionsContext.Provider, {
|
|
76
|
+
value: {
|
|
77
|
+
steps: steps,
|
|
78
|
+
currentStep: currentStep,
|
|
79
|
+
submitStep: submitStep,
|
|
80
|
+
data: data,
|
|
81
|
+
onActiveStep: onActiveStep
|
|
82
|
+
}
|
|
83
|
+
}, children);
|
|
84
|
+
};
|
|
@@ -2,8 +2,9 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from '@digigov/ui/core/SummaryList';
|
|
3
3
|
import Title from '@digigov/ui/typography/Title';
|
|
4
4
|
import { Button } from '@digigov/ui/core';
|
|
5
|
-
import { QuestionsContext } from '@digigov/form/Questions/';
|
|
6
|
-
import { StepTitleBase
|
|
5
|
+
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
6
|
+
import { StepTitleBase } from '@digigov/form/Questions/Step/StepTitle';
|
|
7
|
+
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
7
8
|
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
8
9
|
export var ReviewStep = function ReviewStep() {
|
|
9
10
|
var _useTranslation = useTranslation(),
|
|
@@ -48,4 +49,5 @@ export var ReviewStep = function ReviewStep() {
|
|
|
48
49
|
return submitStep && submitStep();
|
|
49
50
|
}
|
|
50
51
|
}, t('button.submit')));
|
|
51
|
-
};
|
|
52
|
+
};
|
|
53
|
+
export default ReviewStep;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import React, { useContext, useState } from 'react';
|
|
5
|
+
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
6
|
+
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
7
|
+
import { StepArrayReview } from '@digigov/form/Questions/Step/StepArrayReview';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The Step component accepts Step data as props
|
|
11
|
+
* uses composable components to provide a wholesome UX
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export var Step = function Step(props) {
|
|
15
|
+
// or return all Questions and currentStepName
|
|
16
|
+
// or return a specific Step object
|
|
17
|
+
var _useContext = useContext(QuestionsContext),
|
|
18
|
+
currentStep = _useContext.currentStep,
|
|
19
|
+
submitStep = _useContext.submitStep,
|
|
20
|
+
data = _useContext.data;
|
|
21
|
+
|
|
22
|
+
var _useState = useState([]),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
stepData = _useState2[0],
|
|
25
|
+
setStepData = _useState2[1];
|
|
26
|
+
|
|
27
|
+
var _useState3 = useState(false),
|
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
+
reviewActive = _useState4[0],
|
|
30
|
+
setReviewActive = _useState4[1];
|
|
31
|
+
|
|
32
|
+
var handleArraySubmit = function handleArraySubmit(_name, data) {
|
|
33
|
+
setStepData([].concat(_toConsumableArray(stepData), [data]));
|
|
34
|
+
setReviewActive(true);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var handleArrayDeleteItem = function handleArrayDeleteItem(deleteIndex) {
|
|
38
|
+
var nextStepData = stepData.filter(function (_item, stepIndex) {
|
|
39
|
+
return stepIndex !== deleteIndex;
|
|
40
|
+
});
|
|
41
|
+
setStepData(nextStepData);
|
|
42
|
+
|
|
43
|
+
if (nextStepData.length === 0) {
|
|
44
|
+
setReviewActive(false);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var handleArrayReviewStep = function handleArrayReviewStep(data) {
|
|
49
|
+
if (data.addMore === 'yes') {
|
|
50
|
+
setReviewActive(false);
|
|
51
|
+
} else if (data.addMore === 'no') {
|
|
52
|
+
submitStep(currentStep.name, stepData);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
if (!currentStep || props.name !== currentStep.name) return null; // then provide the currentStep object
|
|
57
|
+
|
|
58
|
+
return /*#__PURE__*/React.createElement(StepContext.Provider, {
|
|
59
|
+
value: _extends({}, currentStep, {
|
|
60
|
+
submitStep: currentStep.type === 'array' ? handleArraySubmit : submitStep,
|
|
61
|
+
initial: data[props.name]
|
|
62
|
+
})
|
|
63
|
+
}, reviewActive ? /*#__PURE__*/React.createElement(StepArrayReview, {
|
|
64
|
+
array: stepData,
|
|
65
|
+
handleSubmit: handleArrayReviewStep,
|
|
66
|
+
handleDelete: handleArrayDeleteItem
|
|
67
|
+
}) : props.children);
|
|
68
|
+
};
|
|
69
|
+
export default Step;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
3
|
+
import PageTitle, { PageTitleHeading } from '@digigov/ui/app/PageTitle';
|
|
4
|
+
import Button from '@digigov/ui/core/Button';
|
|
5
|
+
import { FormBuilder } from '@digigov/form/FormBuilder';
|
|
6
|
+
import { Field } from '@digigov/form/Field';
|
|
7
|
+
import { Fieldset } from '@digigov/form/Fieldset';
|
|
8
|
+
import Label from '@digigov/form/inputs/Label';
|
|
9
|
+
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from '@digigov/ui/core/SummaryList';
|
|
10
|
+
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
11
|
+
import { getAddMoreFields } from '@digigov/form/Questions/Step/getAddMoreFields';
|
|
12
|
+
export var StepArrayReview = function StepArrayReview(props) {
|
|
13
|
+
var _currentStep$review2, _currentStep$review3, _currentStep$review4;
|
|
14
|
+
|
|
15
|
+
var _useTranslation = useTranslation(),
|
|
16
|
+
t = _useTranslation.t;
|
|
17
|
+
|
|
18
|
+
var _useContext = useContext(QuestionsContext),
|
|
19
|
+
currentStep = _useContext.currentStep;
|
|
20
|
+
|
|
21
|
+
var fields = getAddMoreFields(currentStep);
|
|
22
|
+
var primaryField = currentStep.fields.find(function (field) {
|
|
23
|
+
var _currentStep$review;
|
|
24
|
+
|
|
25
|
+
return field.key === ((_currentStep$review = currentStep.review) === null || _currentStep$review === void 0 ? void 0 : _currentStep$review.primaryFieldKey);
|
|
26
|
+
}) || {};
|
|
27
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitle, null, /*#__PURE__*/React.createElement(PageTitleHeading, null, ((_currentStep$review2 = currentStep.review) === null || _currentStep$review2 === void 0 ? void 0 : _currentStep$review2.title) && t((_currentStep$review3 = currentStep.review) === null || _currentStep$review3 === void 0 ? void 0 : _currentStep$review3.title))), /*#__PURE__*/React.createElement(SummaryList, null, props.array.map(function (item, idx) {
|
|
28
|
+
return /*#__PURE__*/React.createElement(SummaryListItem, {
|
|
29
|
+
key: idx
|
|
30
|
+
}, /*#__PURE__*/React.createElement(SummaryListItemKey, null, t(primaryField.label.primary)), /*#__PURE__*/React.createElement(SummaryListItemValue, null, item[primaryField.key]), /*#__PURE__*/React.createElement(SummaryListItemAction, {
|
|
31
|
+
onClick: function onClick() {
|
|
32
|
+
return props.handleDelete(idx);
|
|
33
|
+
}
|
|
34
|
+
}, t('button.delete')));
|
|
35
|
+
})), /*#__PURE__*/React.createElement(FormBuilder, {
|
|
36
|
+
key: "addmore",
|
|
37
|
+
fields: fields,
|
|
38
|
+
onSubmit: props.handleSubmit
|
|
39
|
+
}, /*#__PURE__*/React.createElement(Fieldset, null, /*#__PURE__*/React.createElement(Label, {
|
|
40
|
+
label: (_currentStep$review4 = currentStep.review) === null || _currentStep$review4 === void 0 ? void 0 : _currentStep$review4.addMore.title
|
|
41
|
+
}), fields.map(function (field) {
|
|
42
|
+
return /*#__PURE__*/React.createElement(Field, {
|
|
43
|
+
key: field.key,
|
|
44
|
+
name: field.key
|
|
45
|
+
});
|
|
46
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
47
|
+
type: "submit"
|
|
48
|
+
}, t('button.submit'))));
|
|
49
|
+
};
|
|
50
|
+
export default StepArrayReview;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
export var StepContext = /*#__PURE__*/createContext({
|
|
3
|
+
name: '',
|
|
4
|
+
fields: [],
|
|
5
|
+
initial: [],
|
|
6
|
+
errorLabels: [],
|
|
7
|
+
submitStep: '',
|
|
8
|
+
review: {
|
|
9
|
+
title: '',
|
|
10
|
+
primaryFieldKey: '',
|
|
11
|
+
addMore: {
|
|
12
|
+
title: {
|
|
13
|
+
primary: ''
|
|
14
|
+
},
|
|
15
|
+
answers: {
|
|
16
|
+
positive: {
|
|
17
|
+
primary: 'Yes'
|
|
18
|
+
},
|
|
19
|
+
negative: {
|
|
20
|
+
primary: 'No'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
type: 'object'
|
|
26
|
+
});
|
|
27
|
+
export default StepContext;
|
|
@@ -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 '@digigov/form/Questions/Step';
|
|
5
|
+
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
6
6
|
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
7
7
|
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
8
8
|
export var StepDescriptionBase = function StepDescriptionBase(_ref) {
|
|
@@ -2,8 +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 { StepContext } from '@digigov/form/Questions/Step';
|
|
6
|
-
import FormBuilder
|
|
5
|
+
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
6
|
+
import FormBuilder from '@digigov/form/FormBuilder';
|
|
7
|
+
import Fieldset from '@digigov/form/Fieldset';
|
|
8
|
+
import Field from '@digigov/form/Field';
|
|
7
9
|
import Button from '@digigov/ui/core/Button';
|
|
8
10
|
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
9
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { StepContext } from '@digigov/form/Questions/Step';
|
|
2
|
+
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
3
3
|
import PageTitle, { PageTitleHeading, PageTitleSection, PageTitleCaption } from '@digigov/ui/app/PageTitle';
|
|
4
4
|
import BackButton from '@digigov/ui/core/Button/BackButton';
|
|
5
5
|
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export var getAddMoreFields = function getAddMoreFields(currentStep) {
|
|
2
|
+
var _currentStep$review, _currentStep$review2;
|
|
3
|
+
|
|
4
|
+
return [{
|
|
5
|
+
key: 'addMore',
|
|
6
|
+
type: 'choice:single',
|
|
7
|
+
required: true,
|
|
8
|
+
extra: {
|
|
9
|
+
options: [{
|
|
10
|
+
label: ((_currentStep$review = currentStep.review) === null || _currentStep$review === void 0 ? void 0 : _currentStep$review.addMore.answers.positive) || {
|
|
11
|
+
primary: 'Yes'
|
|
12
|
+
},
|
|
13
|
+
value: 'yes'
|
|
14
|
+
}, {
|
|
15
|
+
label: ((_currentStep$review2 = currentStep.review) === null || _currentStep$review2 === void 0 ? void 0 : _currentStep$review2.addMore.answers.negative) || {
|
|
16
|
+
primary: 'No'
|
|
17
|
+
},
|
|
18
|
+
value: 'no'
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}];
|
|
22
|
+
};
|
|
@@ -1,165 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
export var StepContext = /*#__PURE__*/createContext({
|
|
15
|
-
name: '',
|
|
16
|
-
fields: [],
|
|
17
|
-
initial: [],
|
|
18
|
-
errorLabels: [],
|
|
19
|
-
submitStep: '',
|
|
20
|
-
review: {
|
|
21
|
-
title: '',
|
|
22
|
-
primaryFieldKey: '',
|
|
23
|
-
addMore: {
|
|
24
|
-
title: {
|
|
25
|
-
primary: ''
|
|
26
|
-
},
|
|
27
|
-
answers: {
|
|
28
|
-
positive: {
|
|
29
|
-
primary: 'Yes'
|
|
30
|
-
},
|
|
31
|
-
negative: {
|
|
32
|
-
primary: 'No'
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
type: 'object'
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* The Step component accepts Step data as props
|
|
41
|
-
* uses composable components to provide a wholesome UX
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
export var Step = function Step(props) {
|
|
46
|
-
// or return all Questions and currentStepName
|
|
47
|
-
// or return a specific Step object
|
|
48
|
-
var _useContext = useContext(QuestionsContext),
|
|
49
|
-
currentStep = _useContext.currentStep,
|
|
50
|
-
submitStep = _useContext.submitStep,
|
|
51
|
-
data = _useContext.data;
|
|
52
|
-
|
|
53
|
-
var _useState = useState([]),
|
|
54
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
55
|
-
stepData = _useState2[0],
|
|
56
|
-
setStepData = _useState2[1];
|
|
57
|
-
|
|
58
|
-
var _useState3 = useState(false),
|
|
59
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
|
-
reviewActive = _useState4[0],
|
|
61
|
-
setReviewActive = _useState4[1];
|
|
62
|
-
|
|
63
|
-
var handleArraySubmit = function handleArraySubmit(_name, data) {
|
|
64
|
-
setStepData([].concat(_toConsumableArray(stepData), [data]));
|
|
65
|
-
setReviewActive(true);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
var handleArrayDeleteItem = function handleArrayDeleteItem(deleteIndex) {
|
|
69
|
-
var nextStepData = stepData.filter(function (_item, stepIndex) {
|
|
70
|
-
return stepIndex !== deleteIndex;
|
|
71
|
-
});
|
|
72
|
-
setStepData(nextStepData);
|
|
73
|
-
|
|
74
|
-
if (nextStepData.length === 0) {
|
|
75
|
-
setReviewActive(false);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
var handleArrayReviewStep = function handleArrayReviewStep(data) {
|
|
80
|
-
if (data.addMore === 'yes') {
|
|
81
|
-
setReviewActive(false);
|
|
82
|
-
} else if (data.addMore === 'no') {
|
|
83
|
-
submitStep(currentStep.name, stepData);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
if (!currentStep || props.name !== currentStep.name) return null; // then provide the currentStep object
|
|
88
|
-
|
|
89
|
-
return /*#__PURE__*/React.createElement(StepContext.Provider, {
|
|
90
|
-
value: _extends({}, currentStep, {
|
|
91
|
-
submitStep: currentStep.type === 'array' ? handleArraySubmit : submitStep,
|
|
92
|
-
initial: data[props.name]
|
|
93
|
-
})
|
|
94
|
-
}, reviewActive ? /*#__PURE__*/React.createElement(StepArrayReview, {
|
|
95
|
-
array: stepData,
|
|
96
|
-
handleSubmit: handleArrayReviewStep,
|
|
97
|
-
handleDelete: handleArrayDeleteItem
|
|
98
|
-
}) : props.children);
|
|
99
|
-
};
|
|
100
|
-
export var getAddMoreFields = function getAddMoreFields(currentStep) {
|
|
101
|
-
var _currentStep$review, _currentStep$review2;
|
|
102
|
-
|
|
103
|
-
return [{
|
|
104
|
-
key: 'addMore',
|
|
105
|
-
type: 'choice:single',
|
|
106
|
-
required: true,
|
|
107
|
-
extra: {
|
|
108
|
-
options: [{
|
|
109
|
-
label: ((_currentStep$review = currentStep.review) === null || _currentStep$review === void 0 ? void 0 : _currentStep$review.addMore.answers.positive) || {
|
|
110
|
-
primary: 'Yes'
|
|
111
|
-
},
|
|
112
|
-
value: 'yes'
|
|
113
|
-
}, {
|
|
114
|
-
label: ((_currentStep$review2 = currentStep.review) === null || _currentStep$review2 === void 0 ? void 0 : _currentStep$review2.addMore.answers.negative) || {
|
|
115
|
-
primary: 'No'
|
|
116
|
-
},
|
|
117
|
-
value: 'no'
|
|
118
|
-
}]
|
|
119
|
-
}
|
|
120
|
-
}];
|
|
121
|
-
};
|
|
122
|
-
export var StepArrayReview = function StepArrayReview(props) {
|
|
123
|
-
var _currentStep$review4, _currentStep$review5, _currentStep$review6;
|
|
124
|
-
|
|
125
|
-
var _useTranslation = useTranslation(),
|
|
126
|
-
t = _useTranslation.t;
|
|
127
|
-
|
|
128
|
-
var _useContext2 = useContext(QuestionsContext),
|
|
129
|
-
currentStep = _useContext2.currentStep;
|
|
130
|
-
|
|
131
|
-
var fields = getAddMoreFields(currentStep);
|
|
132
|
-
var primaryField = currentStep.fields.find(function (field) {
|
|
133
|
-
var _currentStep$review3;
|
|
134
|
-
|
|
135
|
-
return field.key === ((_currentStep$review3 = currentStep.review) === null || _currentStep$review3 === void 0 ? void 0 : _currentStep$review3.primaryFieldKey);
|
|
136
|
-
}) || {};
|
|
137
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitle, null, /*#__PURE__*/React.createElement(PageTitleHeading, null, ((_currentStep$review4 = currentStep.review) === null || _currentStep$review4 === void 0 ? void 0 : _currentStep$review4.title) && t((_currentStep$review5 = currentStep.review) === null || _currentStep$review5 === void 0 ? void 0 : _currentStep$review5.title))), /*#__PURE__*/React.createElement(SummaryList, null, props.array.map(function (item, idx) {
|
|
138
|
-
return /*#__PURE__*/React.createElement(SummaryListItem, {
|
|
139
|
-
key: idx
|
|
140
|
-
}, /*#__PURE__*/React.createElement(SummaryListItemKey, null, t(primaryField.label.primary)), /*#__PURE__*/React.createElement(SummaryListItemValue, null, item[primaryField.key]), /*#__PURE__*/React.createElement(SummaryListItemAction, {
|
|
141
|
-
onClick: function onClick() {
|
|
142
|
-
return props.handleDelete(idx);
|
|
143
|
-
}
|
|
144
|
-
}, t('button.delete')));
|
|
145
|
-
})), /*#__PURE__*/React.createElement(FormBuilder, {
|
|
146
|
-
key: "addmore",
|
|
147
|
-
fields: fields,
|
|
148
|
-
onSubmit: props.handleSubmit
|
|
149
|
-
}, /*#__PURE__*/React.createElement(Fieldset, null, /*#__PURE__*/React.createElement(Label, {
|
|
150
|
-
label: (_currentStep$review6 = currentStep.review) === null || _currentStep$review6 === void 0 ? void 0 : _currentStep$review6.addMore.title
|
|
151
|
-
}), fields.map(function (field) {
|
|
152
|
-
return /*#__PURE__*/React.createElement(Field, {
|
|
153
|
-
key: field.key,
|
|
154
|
-
name: field.key
|
|
155
|
-
});
|
|
156
|
-
})), /*#__PURE__*/React.createElement(Button, {
|
|
157
|
-
type: "submit"
|
|
158
|
-
}, t('button.submit'))));
|
|
159
|
-
};
|
|
160
|
-
export default Step;
|
|
161
|
-
export * from '@digigov/form/Questions/Step/StepDescription';
|
|
162
|
-
export * from '@digigov/form/Questions/Step/StepForm';
|
|
163
|
-
export * from '@digigov/form/Questions/Step/StepQuote';
|
|
164
|
-
export * from '@digigov/form/Questions/Step/StepTitle';
|
|
165
|
-
export * from '@digigov/form/Questions/Step/ReviewStep';
|
|
1
|
+
export * from '@digigov/form/Questions/Step/ReviewStep';
|
|
2
|
+
export * from '@digigov/form/Questions/Step/Step';
|
|
3
|
+
export * from '@digigov/form/Questions/Step/StepArrayReview';
|
|
4
|
+
export * from '@digigov/form/Questions/Step/StepContext';
|
|
5
|
+
export { default as StepDescription } from '@digigov/form/Questions/Step/StepDescription';
|
|
6
|
+
export { default as StepForm } from '@digigov/form/Questions/Step/StepForm';
|
|
7
|
+
export { default as StepQuote } from '@digigov/form/Questions/Step/StepQuote';
|
|
8
|
+
export { default as StepTitle } from '@digigov/form/Questions/Step/StepTitle';
|
|
9
|
+
export * from '@digigov/form/Questions/Step/getAddMoreFields';
|
|
10
|
+
export * from '@digigov/form/Questions/Step/';
|
|
11
|
+
export * from '@digigov/form/Questions/Step/types';
|
|
12
|
+
import Step from '@digigov/form/Questions/Step/Step';
|
|
13
|
+
export default Step;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|