@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
package/internal.js
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
var _exportNames = {
|
|
9
|
+
Field: true,
|
|
10
|
+
FieldConditional: true,
|
|
11
|
+
Fieldset: true,
|
|
12
|
+
FormBuilder: true,
|
|
13
|
+
Step: true,
|
|
14
|
+
Questions: true,
|
|
15
|
+
Checkboxes: true,
|
|
16
|
+
DateInput: true,
|
|
17
|
+
FileInput: true,
|
|
18
|
+
Input: true,
|
|
19
|
+
Label: true,
|
|
20
|
+
Radio: true,
|
|
21
|
+
Select: true
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "Checkboxes", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function get() {
|
|
26
|
+
return _Checkboxes["default"];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "DateInput", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function get() {
|
|
32
|
+
return _DateInput["default"];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "Field", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function get() {
|
|
38
|
+
return _Field["default"];
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "FieldConditional", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function get() {
|
|
44
|
+
return _FieldConditional["default"];
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "Fieldset", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function get() {
|
|
50
|
+
return _Fieldset["default"];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, "FileInput", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function get() {
|
|
56
|
+
return _FileInput["default"];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "FormBuilder", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function get() {
|
|
62
|
+
return _FormBuilder["default"];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "Input", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function get() {
|
|
68
|
+
return _Input["default"];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "Label", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function get() {
|
|
74
|
+
return _Label["default"];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, "Questions", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function get() {
|
|
80
|
+
return _Questions["default"];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "Radio", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function get() {
|
|
86
|
+
return _Radio["default"];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, "Select", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function get() {
|
|
92
|
+
return _Select["default"];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, "Step", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function get() {
|
|
98
|
+
return _Step.Step;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
var _Field = _interopRequireWildcard(require("@digigov/form/Field"));
|
|
103
|
+
|
|
104
|
+
Object.keys(_Field).forEach(function (key) {
|
|
105
|
+
if (key === "default" || key === "__esModule") return;
|
|
106
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
107
|
+
if (key in exports && exports[key] === _Field[key]) return;
|
|
108
|
+
Object.defineProperty(exports, key, {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _Field[key];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
var _FieldConditional = _interopRequireWildcard(require("@digigov/form/Field/FieldConditional"));
|
|
117
|
+
|
|
118
|
+
Object.keys(_FieldConditional).forEach(function (key) {
|
|
119
|
+
if (key === "default" || key === "__esModule") return;
|
|
120
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
121
|
+
if (key in exports && exports[key] === _FieldConditional[key]) return;
|
|
122
|
+
Object.defineProperty(exports, key, {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function get() {
|
|
125
|
+
return _FieldConditional[key];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
var _Fieldset = _interopRequireWildcard(require("@digigov/form/Fieldset"));
|
|
131
|
+
|
|
132
|
+
Object.keys(_Fieldset).forEach(function (key) {
|
|
133
|
+
if (key === "default" || key === "__esModule") return;
|
|
134
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
135
|
+
if (key in exports && exports[key] === _Fieldset[key]) return;
|
|
136
|
+
Object.defineProperty(exports, key, {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function get() {
|
|
139
|
+
return _Fieldset[key];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
var _FormBuilder = _interopRequireWildcard(require("@digigov/form/FormBuilder"));
|
|
145
|
+
|
|
146
|
+
Object.keys(_FormBuilder).forEach(function (key) {
|
|
147
|
+
if (key === "default" || key === "__esModule") return;
|
|
148
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
149
|
+
if (key in exports && exports[key] === _FormBuilder[key]) return;
|
|
150
|
+
Object.defineProperty(exports, key, {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _FormBuilder[key];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
var _Step = require("@digigov/form/Questions/Step");
|
|
159
|
+
|
|
160
|
+
Object.keys(_Step).forEach(function (key) {
|
|
161
|
+
if (key === "default" || key === "__esModule") return;
|
|
162
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
163
|
+
if (key in exports && exports[key] === _Step[key]) return;
|
|
164
|
+
Object.defineProperty(exports, key, {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function get() {
|
|
167
|
+
return _Step[key];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
var _Questions = _interopRequireWildcard(require("@digigov/form/Questions"));
|
|
173
|
+
|
|
174
|
+
Object.keys(_Questions).forEach(function (key) {
|
|
175
|
+
if (key === "default" || key === "__esModule") return;
|
|
176
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
177
|
+
if (key in exports && exports[key] === _Questions[key]) return;
|
|
178
|
+
Object.defineProperty(exports, key, {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function get() {
|
|
181
|
+
return _Questions[key];
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
var _Checkboxes = _interopRequireWildcard(require("@digigov/form/inputs/Checkboxes"));
|
|
187
|
+
|
|
188
|
+
Object.keys(_Checkboxes).forEach(function (key) {
|
|
189
|
+
if (key === "default" || key === "__esModule") return;
|
|
190
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
191
|
+
if (key in exports && exports[key] === _Checkboxes[key]) return;
|
|
192
|
+
Object.defineProperty(exports, key, {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function get() {
|
|
195
|
+
return _Checkboxes[key];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
var _DateInput = _interopRequireWildcard(require("@digigov/form/inputs/DateInput"));
|
|
201
|
+
|
|
202
|
+
Object.keys(_DateInput).forEach(function (key) {
|
|
203
|
+
if (key === "default" || key === "__esModule") return;
|
|
204
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
205
|
+
if (key in exports && exports[key] === _DateInput[key]) return;
|
|
206
|
+
Object.defineProperty(exports, key, {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function get() {
|
|
209
|
+
return _DateInput[key];
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
var _FileInput = _interopRequireWildcard(require("@digigov/form/inputs/FileInput"));
|
|
215
|
+
|
|
216
|
+
Object.keys(_FileInput).forEach(function (key) {
|
|
217
|
+
if (key === "default" || key === "__esModule") return;
|
|
218
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
219
|
+
if (key in exports && exports[key] === _FileInput[key]) return;
|
|
220
|
+
Object.defineProperty(exports, key, {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function get() {
|
|
223
|
+
return _FileInput[key];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
var _Input = _interopRequireWildcard(require("@digigov/form/inputs/Input"));
|
|
229
|
+
|
|
230
|
+
Object.keys(_Input).forEach(function (key) {
|
|
231
|
+
if (key === "default" || key === "__esModule") return;
|
|
232
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
233
|
+
if (key in exports && exports[key] === _Input[key]) return;
|
|
234
|
+
Object.defineProperty(exports, key, {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function get() {
|
|
237
|
+
return _Input[key];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
var _Label = _interopRequireWildcard(require("@digigov/form/inputs/Label"));
|
|
243
|
+
|
|
244
|
+
Object.keys(_Label).forEach(function (key) {
|
|
245
|
+
if (key === "default" || key === "__esModule") return;
|
|
246
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
247
|
+
if (key in exports && exports[key] === _Label[key]) return;
|
|
248
|
+
Object.defineProperty(exports, key, {
|
|
249
|
+
enumerable: true,
|
|
250
|
+
get: function get() {
|
|
251
|
+
return _Label[key];
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
var _Radio = _interopRequireWildcard(require("@digigov/form/inputs/Radio"));
|
|
257
|
+
|
|
258
|
+
Object.keys(_Radio).forEach(function (key) {
|
|
259
|
+
if (key === "default" || key === "__esModule") return;
|
|
260
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
261
|
+
if (key in exports && exports[key] === _Radio[key]) return;
|
|
262
|
+
Object.defineProperty(exports, key, {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function get() {
|
|
265
|
+
return _Radio[key];
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
var _Select = _interopRequireWildcard(require("@digigov/form/inputs/Select"));
|
|
271
|
+
|
|
272
|
+
Object.keys(_Select).forEach(function (key) {
|
|
273
|
+
if (key === "default" || key === "__esModule") return;
|
|
274
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
275
|
+
if (key in exports && exports[key] === _Select[key]) return;
|
|
276
|
+
Object.defineProperty(exports, key, {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _Select[key];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
var _inputs = require("@digigov/form/inputs");
|
|
285
|
+
|
|
286
|
+
Object.keys(_inputs).forEach(function (key) {
|
|
287
|
+
if (key === "default" || key === "__esModule") return;
|
|
288
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
289
|
+
if (key in exports && exports[key] === _inputs[key]) return;
|
|
290
|
+
Object.defineProperty(exports, key, {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function get() {
|
|
293
|
+
return _inputs[key];
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
var _internal = require("@digigov/form/internal");
|
|
299
|
+
|
|
300
|
+
Object.keys(_internal).forEach(function (key) {
|
|
301
|
+
if (key === "default" || key === "__esModule") return;
|
|
302
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
303
|
+
if (key in exports && exports[key] === _internal[key]) return;
|
|
304
|
+
Object.defineProperty(exports, key, {
|
|
305
|
+
enumerable: true,
|
|
306
|
+
get: function get() {
|
|
307
|
+
return _internal[key];
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
var _types = require("@digigov/form/types");
|
|
313
|
+
|
|
314
|
+
Object.keys(_types).forEach(function (key) {
|
|
315
|
+
if (key === "default" || key === "__esModule") return;
|
|
316
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
317
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
318
|
+
Object.defineProperty(exports, key, {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function get() {
|
|
321
|
+
return _types[key];
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
var _utils = require("@digigov/form/utils");
|
|
327
|
+
|
|
328
|
+
Object.keys(_utils).forEach(function (key) {
|
|
329
|
+
if (key === "default" || key === "__esModule") return;
|
|
330
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
331
|
+
if (key in exports && exports[key] === _utils[key]) return;
|
|
332
|
+
Object.defineProperty(exports, key, {
|
|
333
|
+
enumerable: true,
|
|
334
|
+
get: function get() {
|
|
335
|
+
return _utils[key];
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
var _validators = require("@digigov/form/validators");
|
|
341
|
+
|
|
342
|
+
Object.keys(_validators).forEach(function (key) {
|
|
343
|
+
if (key === "default" || key === "__esModule") return;
|
|
344
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
345
|
+
if (key in exports && exports[key] === _validators[key]) return;
|
|
346
|
+
Object.defineProperty(exports, key, {
|
|
347
|
+
enumerable: true,
|
|
348
|
+
get: function get() {
|
|
349
|
+
return _validators[key];
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
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); }
|
|
355
|
+
|
|
356
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -1,65 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { FieldSpec, FieldError } from '@digigov/form';
|
|
4
|
-
export declare type FieldComponentItem = {
|
|
5
|
-
component: any;
|
|
6
|
-
controlled?: boolean;
|
|
7
|
-
wrapper?: FieldSpec['wrapper'];
|
|
8
|
-
};
|
|
9
|
-
export declare type FieldComponentRegistry = Record<string, FieldComponentItem>;
|
|
10
|
-
export interface FieldContainerProps {
|
|
11
|
-
name?: FieldSpec['key'];
|
|
12
|
-
layout?: FieldSpec['layout'];
|
|
13
|
-
label?: FieldSpec['label'];
|
|
14
|
-
error?: FieldError;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
wrapper?: FieldSpec['wrapper'];
|
|
17
|
-
}
|
|
18
|
-
export declare type OmittedFieldSpec = Omit<FieldSpec, 'component'>;
|
|
19
|
-
export declare type UnknownValue = never | never[];
|
|
20
|
-
export interface ControlledFieldProps {
|
|
21
|
-
type?: string;
|
|
22
|
-
value: UnknownValue;
|
|
23
|
-
onChange: (v: UnknownValue) => void;
|
|
24
|
-
defaultValue?: UnknownValue;
|
|
25
|
-
onBlur?: (e: Event) => void;
|
|
26
|
-
extra?: never;
|
|
27
|
-
error?: boolean;
|
|
28
|
-
name?: string;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export interface UncontrolledFieldProps {
|
|
32
|
-
name: string;
|
|
33
|
-
register?: FieldBaseProps['register'];
|
|
34
|
-
ref?: FieldBaseProps['register'];
|
|
35
|
-
control?: FieldBaseProps['control'];
|
|
36
|
-
error?: boolean;
|
|
37
|
-
extra?: Record<string, never>;
|
|
38
|
-
type?: string;
|
|
39
|
-
disabled?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface CalculatedField extends OmittedFieldSpec {
|
|
42
|
-
name: string;
|
|
43
|
-
component: any;
|
|
44
|
-
defaultValue?: never;
|
|
45
|
-
error?: FieldError;
|
|
46
|
-
wrapper?: FieldComponentItem['wrapper'];
|
|
47
|
-
}
|
|
48
|
-
export interface FieldBaseProps extends CalculatedField {
|
|
49
|
-
control: UseFormMethods['control'];
|
|
50
|
-
register: UseFormMethods['register'];
|
|
51
|
-
}
|
|
52
|
-
export declare const FieldBase: React.FC<FieldBaseProps>;
|
|
53
|
-
export interface UseFieldProps {
|
|
54
|
-
field: FieldSpec;
|
|
55
|
-
control: FieldBaseProps['control'];
|
|
56
|
-
register: FieldBaseProps['register'];
|
|
57
|
-
error: FieldError;
|
|
58
|
-
componentRegistry?: FieldComponentRegistry;
|
|
59
|
-
}
|
|
60
|
-
export interface FieldProps extends FieldSpec {
|
|
61
|
-
name: string;
|
|
62
|
-
children?: React.ElementType;
|
|
63
|
-
}
|
|
2
|
+
import { FieldProps } from '@digigov/form/Field/types';
|
|
64
3
|
export declare const Field: React.FC<FieldProps>;
|
|
65
4
|
export default Field;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UseFormMethods } from 'react-hook-form';
|
|
3
|
+
import { FieldSpec, FieldError } from '@digigov/form/types';
|
|
4
|
+
import { FieldCondition, FormData } from '@digigov/form/types';
|
|
5
|
+
export interface ChildFieldMemoProps extends FieldConditionalProps {
|
|
6
|
+
dependencies: FormData;
|
|
7
|
+
}
|
|
8
|
+
export interface FieldWithCondition extends Omit<CalculatedField, 'condition'> {
|
|
9
|
+
condition: Record<string, FieldCondition>;
|
|
10
|
+
}
|
|
11
|
+
export interface FieldConditionalProps {
|
|
12
|
+
field: FieldWithCondition;
|
|
13
|
+
control: UseFormMethods['control'];
|
|
14
|
+
register: UseFormMethods['register'];
|
|
15
|
+
error?: FieldError;
|
|
16
|
+
}
|
|
17
|
+
export declare type FieldComponentItem = {
|
|
18
|
+
component: any;
|
|
19
|
+
controlled?: boolean;
|
|
20
|
+
wrapper?: FieldSpec['wrapper'];
|
|
21
|
+
};
|
|
22
|
+
export interface FieldContainerProps {
|
|
23
|
+
name?: FieldSpec['key'];
|
|
24
|
+
layout?: FieldSpec['layout'];
|
|
25
|
+
label?: FieldSpec['label'];
|
|
26
|
+
error?: FieldError;
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
wrapper?: FieldSpec['wrapper'];
|
|
29
|
+
}
|
|
30
|
+
export declare type FieldComponentRegistry = Record<string, FieldComponentItem>;
|
|
31
|
+
export declare type OmittedFieldSpec = Omit<FieldSpec, 'component'>;
|
|
32
|
+
export declare type UnknownValue = never | never[];
|
|
33
|
+
export interface ControlledFieldProps {
|
|
34
|
+
type?: string;
|
|
35
|
+
value: UnknownValue;
|
|
36
|
+
onChange: (v: UnknownValue) => void;
|
|
37
|
+
defaultValue?: UnknownValue;
|
|
38
|
+
onBlur?: (e: Event) => void;
|
|
39
|
+
extra?: never;
|
|
40
|
+
error?: boolean;
|
|
41
|
+
name?: string;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface UncontrolledFieldProps {
|
|
45
|
+
name: string;
|
|
46
|
+
register?: FieldBaseProps['register'];
|
|
47
|
+
ref?: FieldBaseProps['register'];
|
|
48
|
+
control?: FieldBaseProps['control'];
|
|
49
|
+
error?: boolean;
|
|
50
|
+
extra?: Record<string, never>;
|
|
51
|
+
type?: string;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface CalculatedField extends OmittedFieldSpec {
|
|
55
|
+
name: string;
|
|
56
|
+
component: any;
|
|
57
|
+
defaultValue?: never;
|
|
58
|
+
error?: FieldError;
|
|
59
|
+
wrapper?: FieldComponentItem['wrapper'];
|
|
60
|
+
}
|
|
61
|
+
export interface FieldBaseProps extends CalculatedField {
|
|
62
|
+
control: UseFormMethods['control'];
|
|
63
|
+
register: UseFormMethods['register'];
|
|
64
|
+
}
|
|
65
|
+
export interface FieldProps extends FieldSpec {
|
|
66
|
+
name: string;
|
|
67
|
+
children?: React.ElementType;
|
|
68
|
+
}
|
|
69
|
+
export interface UseFieldProps {
|
|
70
|
+
field: FieldSpec;
|
|
71
|
+
control: FieldBaseProps['control'];
|
|
72
|
+
register: FieldBaseProps['register'];
|
|
73
|
+
error: FieldError;
|
|
74
|
+
componentRegistry?: FieldComponentRegistry;
|
|
75
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CalculatedField, FieldComponentRegistry, FieldProps, FieldWithCondition, UseFieldProps } from '@digigov/form/Field/types';
|
|
2
|
+
import { FieldSpec } from '@digigov/form/types';
|
|
3
|
+
export declare function calculateField(children: FieldProps['children'], field: FieldSpec, componentRegistry?: FieldComponentRegistry): CalculatedField;
|
|
4
|
+
export declare const useField: (name: string, customField: FieldSpec | null) => UseFieldProps;
|
|
5
|
+
export declare function evaluateFieldWithConditions(field: FieldWithCondition, variables: FormData): CalculatedField;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export interface FieldsetCaptionProps {
|
|
5
|
-
}
|
|
6
|
-
export interface FieldsetBodyProps {
|
|
7
|
-
}
|
|
2
|
+
import { FieldsetLabelProps, FieldsetCaptionProps, FieldsetBodyProps } from '@digigov/form/Fieldset/types';
|
|
8
3
|
export declare const FieldsetLabel: React.FC<FieldsetLabelProps>;
|
|
9
4
|
export declare const FieldsetCaption: React.FC<FieldsetCaptionProps>;
|
|
10
5
|
export declare const FieldsetBody: React.FC<FieldsetBodyProps>;
|
|
11
|
-
export declare const
|
|
12
|
-
name: string;
|
|
13
|
-
}>;
|
|
14
|
-
export declare const Fieldset: React.FC<{
|
|
15
|
-
name?: string;
|
|
16
|
-
}>;
|
|
6
|
+
export declare const Fieldset: React.FC;
|
|
17
7
|
export default Fieldset;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormBaseProps, FormBuilderProps } from '@digigov/form/types';
|
|
3
|
+
export declare const FormBase: React.ForwardRefExoticComponent<FormBaseProps & React.RefAttributes<HTMLFormElement>>;
|
|
4
|
+
export declare const FormBuilder: React.ForwardRefExoticComponent<FormBuilderProps & React.RefAttributes<HTMLFormElement>>;
|
|
5
|
+
export default FormBuilder;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QuestionsInterface } from '@digigov/form/Questions/types';
|
|
3
|
+
/**
|
|
4
|
+
* The Question component accepts question data as props
|
|
5
|
+
* uses composable components to provide a wholesome UX
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const Questions: React.FC<QuestionsInterface>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StepInterface } from '@digigov/form/Questions/Step/types';
|
|
3
|
+
/**
|
|
4
|
+
* The Step component accepts Step data as props
|
|
5
|
+
* uses composable components to provide a wholesome UX
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const Step: React.FC<StepInterface>;
|
|
9
|
+
export default Step;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FormBuilderProps } from '@digigov/form/types';
|
|
3
|
+
import { FieldProps } from '@digigov/form/Field/types';
|
|
3
4
|
export interface StepFormProps {
|
|
4
5
|
submitButton: boolean;
|
|
5
6
|
children: React.ReactNode;
|