@digigov/form 0.13.2 → 1.0.0-7c9716da
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 +2 -2
- package/Field/FieldBaseContainer.js +8 -8
- package/Field/FieldConditional.js +2 -2
- package/Field/utils.js +6 -6
- package/FieldArray/__stories__/Default.js +2 -2
- package/FieldArray/__stories__/WithExactLength.js +2 -2
- package/FieldArray/index.js +3 -3
- package/FieldObject/index.d.ts +1 -1
- package/FieldObject/index.js +5 -5
- package/Fieldset/FieldsetWithContext.js +4 -4
- package/Fieldset/index.d.ts +1 -1
- package/Fieldset/index.js +2 -2
- package/Fieldset/types.d.ts +2 -2
- package/FormBuilder/FormBuilder.js +5 -5
- package/FormBuilder/FormBuilder.mdx +25 -37
- package/FormBuilder/__stories__/Default.js +2 -2
- package/MultiplicityField/MultiplicityField.mdx +277 -267
- package/MultiplicityField/__stories__/Default.js +2 -2
- package/MultiplicityField/__stories__/PreviewDisplay.js +8 -8
- package/MultiplicityField/__stories__/WithExactLength.js +2 -2
- package/MultiplicityField/__stories__/WithMaxLength.js +2 -2
- package/MultiplicityField/__stories__/WithMinAndMaxLength.js +2 -2
- package/MultiplicityField/__stories__/WithMinLength.js +2 -2
- package/MultiplicityField/add-objects.js +6 -6
- package/MultiplicityField/index.d.ts +2 -2
- package/MultiplicityField/index.js +7 -7
- package/Questions/Questions.js +2 -2
- package/Questions/Step/ReviewStep.js +8 -8
- package/Questions/Step/Step.js +2 -2
- package/Questions/Step/StepArrayReview.js +10 -10
- package/Questions/Step/StepDescription.js +2 -2
- package/Questions/Step/StepForm.d.ts +1 -1
- package/Questions/Step/StepForm.js +6 -6
- package/Questions/Step/StepTitle.js +2 -2
- package/Questions/Step/getAddMoreFields.d.ts +1 -1
- package/Questions/__snapshots__/index.spec.tsx.snap +5 -5
- package/Questions/__stories__/Default.js +6 -6
- package/Questions/index.mdx +41 -44
- package/Questions/index.spec.js +2 -2
- package/create-simple-form.mdx +258 -237
- package/es/Field/FieldBase.js +1 -1
- package/es/Field/FieldBaseContainer.js +6 -6
- package/es/Field/FieldConditional.js +1 -1
- package/es/Field/utils.js +5 -5
- package/es/FieldArray/__stories__/Default.js +1 -1
- package/es/FieldArray/__stories__/WithExactLength.js +1 -1
- package/es/FieldArray/index.js +2 -2
- package/es/FieldObject/index.js +3 -3
- package/es/Fieldset/FieldsetWithContext.js +2 -2
- package/es/Fieldset/index.js +1 -1
- package/es/FormBuilder/FormBuilder.js +3 -3
- package/es/FormBuilder/FormBuilder.mdx +25 -37
- package/es/FormBuilder/__stories__/Default.js +1 -1
- package/es/MultiplicityField/MultiplicityField.mdx +277 -267
- package/es/MultiplicityField/__stories__/Default.js +1 -1
- package/es/MultiplicityField/__stories__/PreviewDisplay.js +7 -7
- 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 +5 -5
- package/es/Questions/Questions.js +1 -1
- package/es/Questions/Step/ReviewStep.js +5 -5
- package/es/Questions/Step/Step.js +1 -1
- package/es/Questions/Step/StepArrayReview.js +6 -6
- package/es/Questions/Step/StepDescription.js +1 -1
- package/es/Questions/Step/StepForm.js +5 -5
- package/es/Questions/Step/StepTitle.js +2 -2
- package/es/Questions/__snapshots__/index.spec.tsx.snap +5 -5
- package/es/Questions/__stories__/Default.js +4 -4
- package/es/Questions/index.mdx +41 -44
- package/es/Questions/index.spec.js +1 -1
- package/es/create-simple-form.mdx +258 -237
- package/es/index.mdx +13 -6
- package/es/inputs/AutoComplete/__stories__/Default.js +3 -3
- package/es/inputs/AutoComplete/index.js +1 -1
- 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 +3 -3
- package/es/inputs/DateInput/__stories__/Default.js +1 -1
- package/es/inputs/DateInput/index.js +1 -1
- package/es/inputs/FileInput/__stories__/Default.js +1 -1
- package/es/inputs/FileInput/index.js +5 -5
- 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/Input/index.js +1 -1
- package/es/inputs/Label/__stories__/Default.js +1 -1
- package/es/inputs/Label/index.js +3 -3
- package/es/inputs/OtpInput/__stories__/Default.js +1 -1
- package/es/inputs/OtpInput/index.js +1 -1
- 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 +4 -4
- package/es/inputs/Select/__stories__/Default.js +1 -1
- package/es/installation.mdx +12 -16
- package/es/utils.js +1 -1
- package/es/validators/index.js +2 -2
- package/esm/Field/FieldBase.js +1 -1
- package/esm/Field/FieldBaseContainer.js +6 -6
- package/esm/Field/FieldConditional.js +1 -1
- package/esm/Field/utils.js +5 -5
- package/esm/FieldArray/__stories__/Default.js +1 -1
- package/esm/FieldArray/__stories__/WithExactLength.js +1 -1
- package/esm/FieldArray/index.js +2 -2
- package/esm/FieldObject/index.js +3 -3
- package/esm/Fieldset/FieldsetWithContext.js +2 -2
- package/esm/Fieldset/index.js +1 -1
- package/esm/FormBuilder/FormBuilder.js +3 -3
- package/esm/FormBuilder/FormBuilder.mdx +25 -37
- package/esm/FormBuilder/__stories__/Default.js +1 -1
- package/esm/MultiplicityField/MultiplicityField.mdx +277 -267
- package/esm/MultiplicityField/__stories__/Default.js +1 -1
- package/esm/MultiplicityField/__stories__/PreviewDisplay.js +7 -7
- package/esm/MultiplicityField/__stories__/WithExactLength.js +1 -1
- package/esm/MultiplicityField/__stories__/WithMaxLength.js +1 -1
- package/esm/MultiplicityField/__stories__/WithMinAndMaxLength.js +1 -1
- package/esm/MultiplicityField/__stories__/WithMinLength.js +1 -1
- package/esm/MultiplicityField/add-objects.js +3 -3
- package/esm/MultiplicityField/index.js +5 -5
- package/esm/Questions/Questions.js +1 -1
- package/esm/Questions/Step/ReviewStep.js +5 -5
- package/esm/Questions/Step/Step.js +1 -1
- package/esm/Questions/Step/StepArrayReview.js +6 -6
- package/esm/Questions/Step/StepDescription.js +1 -1
- package/esm/Questions/Step/StepForm.js +5 -5
- package/esm/Questions/Step/StepTitle.js +2 -2
- package/esm/Questions/__snapshots__/index.spec.tsx.snap +5 -5
- package/esm/Questions/__stories__/Default.js +4 -4
- package/esm/Questions/index.mdx +41 -44
- package/esm/Questions/index.spec.js +1 -1
- package/esm/create-simple-form.mdx +258 -237
- package/esm/index.js +1 -1
- package/esm/index.mdx +13 -6
- package/esm/inputs/AutoComplete/__stories__/Default.js +3 -3
- package/esm/inputs/AutoComplete/index.js +1 -1
- package/esm/inputs/Checkboxes/__stories__/Conditional.js +1 -1
- package/esm/inputs/Checkboxes/__stories__/Default.js +1 -1
- package/esm/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
- package/esm/inputs/Checkboxes/index.js +3 -3
- package/esm/inputs/DateInput/__stories__/Default.js +1 -1
- package/esm/inputs/DateInput/index.js +1 -1
- package/esm/inputs/FileInput/__stories__/Default.js +1 -1
- package/esm/inputs/FileInput/index.js +5 -5
- package/esm/inputs/Input/__stories__/AFM.js +1 -1
- package/esm/inputs/Input/__stories__/Boolean.js +1 -1
- package/esm/inputs/Input/__stories__/Default.js +1 -1
- package/esm/inputs/Input/__stories__/IBAN.js +1 -1
- package/esm/inputs/Input/__stories__/Integer.js +1 -1
- package/esm/inputs/Input/__stories__/MobilePhone.js +1 -1
- package/esm/inputs/Input/__stories__/PhoneNumber.js +1 -1
- package/esm/inputs/Input/__stories__/PostalCode.js +1 -1
- package/esm/inputs/Input/__stories__/TextWithCharacterLimit.js +1 -1
- package/esm/inputs/Input/index.js +1 -1
- package/esm/inputs/Label/__stories__/Default.js +1 -1
- package/esm/inputs/Label/index.js +3 -3
- package/esm/inputs/OtpInput/__stories__/Default.js +1 -1
- package/esm/inputs/OtpInput/index.js +1 -1
- package/esm/inputs/Radio/__stories__/Conditional.js +1 -1
- package/esm/inputs/Radio/__stories__/Default.js +1 -1
- package/esm/inputs/Radio/__stories__/WithDivider.js +1 -1
- package/esm/inputs/Radio/index.js +4 -4
- package/esm/inputs/Select/__stories__/Default.js +1 -1
- package/esm/installation.mdx +12 -16
- package/esm/utils.js +1 -1
- package/esm/validators/index.js +2 -2
- package/index.mdx +13 -6
- package/inputs/AutoComplete/__stories__/Default.js +4 -4
- package/inputs/AutoComplete/index.d.ts +2 -2
- package/inputs/AutoComplete/index.js +2 -2
- package/inputs/Checkboxes/__stories__/Conditional.js +2 -2
- package/inputs/Checkboxes/__stories__/Default.js +2 -2
- package/inputs/Checkboxes/__stories__/WithDivider.js +2 -2
- package/inputs/Checkboxes/index.d.ts +1 -1
- package/inputs/Checkboxes/index.js +4 -4
- package/inputs/DateInput/__stories__/Default.js +2 -2
- package/inputs/DateInput/index.js +2 -2
- package/inputs/FileInput/__stories__/Default.js +2 -2
- package/inputs/FileInput/index.js +5 -5
- package/inputs/Input/__stories__/AFM.js +2 -2
- package/inputs/Input/__stories__/Boolean.js +2 -2
- package/inputs/Input/__stories__/Default.js +2 -2
- package/inputs/Input/__stories__/IBAN.js +2 -2
- package/inputs/Input/__stories__/Integer.js +2 -2
- package/inputs/Input/__stories__/MobilePhone.js +2 -2
- package/inputs/Input/__stories__/PhoneNumber.js +2 -2
- package/inputs/Input/__stories__/PostalCode.js +2 -2
- package/inputs/Input/__stories__/TextWithCharacterLimit.js +2 -2
- package/inputs/Input/index.js +1 -1
- package/inputs/Label/__stories__/Default.js +2 -2
- package/inputs/Label/index.js +4 -4
- package/inputs/OtpInput/__stories__/Default.js +2 -2
- package/inputs/OtpInput/index.js +1 -1
- package/inputs/Radio/__stories__/Conditional.js +2 -2
- package/inputs/Radio/__stories__/Default.js +2 -2
- package/inputs/Radio/__stories__/WithDivider.js +2 -2
- package/inputs/Radio/index.d.ts +1 -1
- package/inputs/Radio/index.js +7 -7
- package/inputs/Select/__stories__/Default.js +2 -2
- package/inputs/Select/index.d.ts +1 -1
- package/installation.mdx +12 -16
- package/package.json +5 -5
- package/src/Field/FieldBase.tsx +1 -1
- package/src/Field/FieldBaseContainer.tsx +7 -7
- package/src/Field/FieldConditional.tsx +1 -1
- package/src/Field/index.tsx +1 -1
- package/src/Field/utils.ts +7 -7
- package/src/FieldArray/FieldArray.stories.js +1 -1
- package/src/FieldArray/__stories__/Default.tsx +1 -1
- package/src/FieldArray/__stories__/WithExactLength.tsx +1 -1
- package/src/FieldArray/index.tsx +3 -3
- package/src/FieldObject/index.tsx +6 -6
- package/src/Fieldset/FieldsetWithContext.tsx +3 -3
- package/src/Fieldset/index.tsx +5 -5
- package/src/Fieldset/types.tsx +3 -3
- package/src/FormBuilder/FormBuilder.mdx +25 -37
- package/src/FormBuilder/FormBuilder.stories.js +1 -1
- package/src/FormBuilder/FormBuilder.tsx +4 -4
- package/src/FormBuilder/__stories__/Default.tsx +1 -1
- package/src/MultiplicityField/MultiplicityField.mdx +277 -267
- package/src/MultiplicityField/MultiplicityField.stories.js +1 -1
- package/src/MultiplicityField/__stories__/Default.tsx +1 -1
- package/src/MultiplicityField/__stories__/PreviewDisplay.tsx +14 -14
- package/src/MultiplicityField/__stories__/WithExactLength.tsx +1 -1
- package/src/MultiplicityField/__stories__/WithMaxLength.tsx +1 -1
- package/src/MultiplicityField/__stories__/WithMinAndMaxLength.tsx +1 -1
- package/src/MultiplicityField/__stories__/WithMinLength.tsx +1 -1
- package/src/MultiplicityField/add-objects.tsx +3 -3
- package/src/MultiplicityField/index.tsx +9 -9
- package/src/Questions/Questions.stories.js +1 -1
- package/src/Questions/Questions.tsx +2 -2
- package/src/Questions/Step/ReviewStep.tsx +6 -6
- package/src/Questions/Step/Step.tsx +1 -1
- package/src/Questions/Step/StepArrayReview.tsx +9 -9
- package/src/Questions/Step/StepDescription.tsx +1 -1
- package/src/Questions/Step/StepForm.tsx +6 -6
- package/src/Questions/Step/StepTitle.tsx +8 -3
- package/src/Questions/Step/getAddMoreFields.tsx +1 -1
- package/src/Questions/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/Questions/__stories__/Default.tsx +4 -4
- package/src/Questions/index.mdx +41 -44
- package/src/Questions/index.spec.tsx +1 -1
- package/src/create-simple-form.mdx +258 -237
- package/src/index.mdx +13 -6
- package/src/inputs/AutoComplete/__stories__/Default.tsx +3 -3
- package/src/inputs/AutoComplete/index.tsx +4 -4
- package/src/inputs/Checkboxes/Checkboxes.stories.js +1 -1
- package/src/inputs/Checkboxes/__stories__/Conditional.tsx +2 -2
- package/src/inputs/Checkboxes/__stories__/Default.tsx +1 -1
- package/src/inputs/Checkboxes/__stories__/WithDivider.tsx +2 -2
- package/src/inputs/Checkboxes/index.tsx +4 -4
- package/src/inputs/DateInput/DateInput.stories.js +1 -1
- package/src/inputs/DateInput/__stories__/Default.tsx +1 -1
- package/src/inputs/DateInput/index.tsx +2 -2
- package/src/inputs/FileInput/FileInput.stories.js +1 -1
- package/src/inputs/FileInput/__stories__/Default.tsx +1 -1
- package/src/inputs/FileInput/index.tsx +5 -5
- package/src/inputs/Input/__stories__/AFM.tsx +1 -1
- package/src/inputs/Input/__stories__/Boolean.tsx +1 -1
- package/src/inputs/Input/__stories__/Default.tsx +1 -1
- package/src/inputs/Input/__stories__/IBAN.tsx +1 -1
- package/src/inputs/Input/__stories__/Integer.tsx +1 -1
- package/src/inputs/Input/__stories__/MobilePhone.tsx +1 -1
- package/src/inputs/Input/__stories__/PhoneNumber.tsx +1 -1
- package/src/inputs/Input/__stories__/PostalCode.tsx +1 -1
- package/src/inputs/Input/__stories__/TextWithCharacterLimit.tsx +1 -1
- package/src/inputs/Input/index.tsx +3 -3
- package/src/inputs/Label/Label.stories.js +1 -1
- package/src/inputs/Label/__stories__/Default.tsx +1 -1
- package/src/inputs/Label/index.tsx +4 -4
- package/src/inputs/OtpInput/__stories__/Default.tsx +1 -1
- package/src/inputs/OtpInput/index.tsx +7 -3
- package/src/inputs/Radio/Radio.stories.js +1 -2
- package/src/inputs/Radio/__stories__/Conditional.tsx +3 -3
- package/src/inputs/Radio/__stories__/Default.tsx +1 -1
- package/src/inputs/Radio/__stories__/WithDivider.tsx +2 -2
- package/src/inputs/Radio/index.tsx +6 -6
- package/src/inputs/Select/Select.stories.js +1 -1
- package/src/inputs/Select/__stories__/Default.tsx +1 -1
- package/src/inputs/Select/index.tsx +2 -2
- package/src/installation.mdx +12 -16
- package/src/types.tsx +4 -2
- package/src/utils.ts +1 -1
- package/src/validators/index.ts +10 -10
- package/src/validators/utils/file.ts +1 -1
- package/src/validators/utils/phone.ts +1 -1
- package/src/validators/utils/postal_code.ts +1 -1
- package/types.d.ts +4 -2
- package/validators/index.d.ts +3 -3
- package/validators/index.js +4 -4
- package/validators/utils/file.d.ts +1 -1
- package/validators/utils/phone.d.ts +1 -1
- package/validators/utils/postal_code.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import FormBuilder, { Field } from '@digigov/form';
|
|
4
|
-
import { Button } from '@digigov/ui/
|
|
4
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
7
7
|
type: 'string',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import SummaryList, { SummaryListItem, SummaryListItemKey, SummaryListItemValue } from '@digigov/ui/
|
|
4
|
-
import { Header, HeaderSection, HeaderContent, HeaderTitle, HeadingCaption, Heading, Paragraph, Card, CardHeading, CardText, List, ListItem } from '@digigov/ui';
|
|
2
|
+
import { Header, HeaderSection, HeaderContent, HeaderTitle, HeadingCaption, Heading, Paragraph, Card, CardHeading, CardContent, List, ListItem } from '@digigov/ui';
|
|
3
|
+
import SummaryList, { SummaryListItem, SummaryListItemKey, SummaryListItemValue } from '@digigov/ui/content/SummaryList';
|
|
5
4
|
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
6
5
|
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
6
|
+
import Layout, { Content, Main } from '@digigov/ui/layouts/Basic/';
|
|
7
7
|
var fields = [{
|
|
8
8
|
name: 'Όνομα',
|
|
9
9
|
value: 'ΜΑΡΙΟΣ'
|
|
@@ -50,10 +50,10 @@ var _ref6 = /*#__PURE__*/React.createElement(CardHeading, null, "\u03A3\u03C5\u0
|
|
|
50
50
|
var _ref7 = /*#__PURE__*/React.createElement(Card, {
|
|
51
51
|
variant: "border",
|
|
52
52
|
borderColor: "dark"
|
|
53
|
-
}, /*#__PURE__*/React.createElement(CardHeading, null, "\u03A3\u03C5\u03BD\u03C5\u03C0\u03BF\u03B3\u03C1\u03AC\u03C6\u03BF\u03BD\u03C4\u03B1\u03C2 3"), /*#__PURE__*/React.createElement(
|
|
53
|
+
}, /*#__PURE__*/React.createElement(CardHeading, null, "\u03A3\u03C5\u03BD\u03C5\u03C0\u03BF\u03B3\u03C1\u03AC\u03C6\u03BF\u03BD\u03C4\u03B1\u03C2 3"), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u039C\u03AC\u03C1\u03B9\u03BF\u03C2")))));
|
|
54
54
|
|
|
55
55
|
var _ref8 = /*#__PURE__*/React.createElement(Heading, {
|
|
56
|
-
size: "
|
|
56
|
+
size: "md"
|
|
57
57
|
}, "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u0394\u03AE\u03BB\u03C9\u03C3\u03B7\u03C2");
|
|
58
58
|
|
|
59
59
|
var _ref9 = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u039C\u0391\u03A1\u0399\u039F\u03A3")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0395\u03C0\u03CE\u03BD\u03C5\u03BC\u03BF"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u039C\u0395\u039D\u0395\u039E\u0395\u03A3")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u0393\u03AD\u03BD\u03BD\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "15/12/1988")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A3\u03C7\u03BF\u03BB\u03B5\u03AF\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, /*#__PURE__*/React.createElement(List, {
|
|
@@ -68,14 +68,14 @@ export var PreviewDisplay = function PreviewDisplay() {
|
|
|
68
68
|
return /*#__PURE__*/React.createElement(Layout, null, _ref, /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(Main, null, _ref2, _ref3, _ref4, /*#__PURE__*/React.createElement(Card, {
|
|
69
69
|
variant: "border",
|
|
70
70
|
borderColor: "dark"
|
|
71
|
-
}, _ref5, /*#__PURE__*/React.createElement(
|
|
71
|
+
}, _ref5, /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(SummaryList, null, fields && fields.map(function (field, index) {
|
|
72
72
|
return /*#__PURE__*/React.createElement(SummaryListItem, {
|
|
73
73
|
key: index
|
|
74
74
|
}, /*#__PURE__*/React.createElement(SummaryListItemKey, null, field.name), /*#__PURE__*/React.createElement(SummaryListItemValue, null, field.value));
|
|
75
75
|
})))), /*#__PURE__*/React.createElement(Card, {
|
|
76
76
|
variant: "border",
|
|
77
77
|
borderColor: "dark"
|
|
78
|
-
}, _ref6, /*#__PURE__*/React.createElement(
|
|
78
|
+
}, _ref6, /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(SummaryList, null, fields && fields.map(function (field, index) {
|
|
79
79
|
return /*#__PURE__*/React.createElement(SummaryListItem, {
|
|
80
80
|
key: index
|
|
81
81
|
}, /*#__PURE__*/React.createElement(SummaryListItemKey, null, field.name), /*#__PURE__*/React.createElement(SummaryListItemValue, null, field.value));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import FormBuilder, { Field } from '@digigov/form';
|
|
4
|
-
import { Button } from '@digigov/ui/
|
|
4
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
7
7
|
type: 'string',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import FormBuilder, { Field } from '@digigov/form';
|
|
4
|
-
import { Button } from '@digigov/ui/
|
|
4
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
7
7
|
type: 'string',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import FormBuilder, { Field } from '@digigov/form';
|
|
4
|
-
import { Button } from '@digigov/ui/
|
|
4
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
7
7
|
type: 'string',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import FormBuilder, { Field } from '@digigov/form';
|
|
4
|
-
import { Button } from '@digigov/ui/
|
|
4
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
5
5
|
var fields = [{
|
|
6
6
|
key: 'string',
|
|
7
7
|
type: 'string',
|
|
@@ -7,13 +7,13 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
7
7
|
/* eslint-disable react/prop-types */
|
|
8
8
|
import React, { useEffect, useMemo } from 'react'; // import { FormBuilderProps } from '@digigov/form';
|
|
9
9
|
|
|
10
|
-
import Button from '@digigov/ui/core/Button';
|
|
11
|
-
import Fieldset from '@digigov/react-core/Fieldset';
|
|
12
|
-
import RadioConditional from '@digigov/react-core/RadioConditional';
|
|
13
10
|
import { useWatch } from 'react-hook-form';
|
|
14
11
|
import { FieldBase } from '@digigov/form/Field/FieldBase';
|
|
15
12
|
import { calculateField, useField } from '@digigov/form/Field/utils';
|
|
16
13
|
import FieldObject from '@digigov/form/FieldObject';
|
|
14
|
+
import Fieldset from '@digigov/react-core/Fieldset';
|
|
15
|
+
import RadioConditional from '@digigov/react-core/RadioConditional';
|
|
16
|
+
import Button from '@digigov/ui/form/Button';
|
|
17
17
|
export var AddObjects = function AddObjects(_ref) {
|
|
18
18
|
var name = _ref.name,
|
|
19
19
|
fields = _ref.fields,
|
|
@@ -2,11 +2,11 @@ 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, { useState } from 'react';
|
|
5
|
-
import { Card, CardText, CardAction, Button, Heading, CardHeading } from '@digigov/react-core';
|
|
6
|
-
import AddObjects from '@digigov/form/MultiplicityField/add-objects';
|
|
7
5
|
import { useFieldArray } from 'react-hook-form';
|
|
8
|
-
import FieldObject from '@digigov/form/FieldObject';
|
|
9
6
|
import FieldContainer from '@digigov/form/Field/FieldBaseContainer';
|
|
7
|
+
import FieldObject from '@digigov/form/FieldObject';
|
|
8
|
+
import AddObjects from '@digigov/form/MultiplicityField/add-objects';
|
|
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) {
|
|
12
12
|
var extra = _ref.extra,
|
|
@@ -56,7 +56,7 @@ export var Multiplicity = function Multiplicity(_ref) {
|
|
|
56
56
|
wrapper: "fieldset",
|
|
57
57
|
name: name
|
|
58
58
|
}, stashedObjects.length > 0 ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Heading, {
|
|
59
|
-
size: "
|
|
59
|
+
size: "md"
|
|
60
60
|
}, extra === null || extra === void 0 ? void 0 : extra.label.object.title_added), stashedObjects.map(function (_Object, index) {
|
|
61
61
|
return /*#__PURE__*/React.createElement(ListObject, {
|
|
62
62
|
key: "".concat(name, ".").concat(index),
|
|
@@ -99,7 +99,7 @@ export var ListObject = function ListObject(_ref2) {
|
|
|
99
99
|
var currentName = "".concat(name, ".").concat(index);
|
|
100
100
|
return /*#__PURE__*/React.createElement(Card, {
|
|
101
101
|
variant: (extra === null || extra === void 0 ? void 0 : extra.border) && 'border'
|
|
102
|
-
}, /*#__PURE__*/React.createElement(CardHeading, null, extra === null || extra === void 0 ? void 0 : extra.label.object.title, " #", index + 1), /*#__PURE__*/React.createElement(
|
|
102
|
+
}, /*#__PURE__*/React.createElement(CardHeading, null, extra === null || extra === void 0 ? void 0 : extra.label.object.title, " #", index + 1), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(FieldObject, _extends({
|
|
103
103
|
name: currentName,
|
|
104
104
|
formState: formState,
|
|
105
105
|
register: register,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
|
-
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
4
3
|
import { getNextStep } from '@digigov/form/Questions/getNextStep';
|
|
4
|
+
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
5
5
|
var isBrowser = typeof window !== 'undefined';
|
|
6
6
|
/**
|
|
7
7
|
* The Question component accepts question data as props
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from '@digigov/ui/core/SummaryList';
|
|
3
|
-
import Title from '@digigov/ui/typography/Title';
|
|
4
|
-
import { Button } from '@digigov/ui/core';
|
|
5
2
|
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
6
|
-
import { StepTitleBase } from '@digigov/form/Questions/Step/StepTitle';
|
|
7
3
|
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
8
|
-
import {
|
|
4
|
+
import { StepTitleBase } from '@digigov/form/Questions/Step/StepTitle';
|
|
5
|
+
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from '@digigov/ui/content/SummaryList';
|
|
6
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
7
|
+
import { useTranslation } from '@digigov/ui/i18n';
|
|
8
|
+
import Title from '@digigov/ui/typography/Title';
|
|
9
9
|
export var ReviewStep = function ReviewStep() {
|
|
10
10
|
var _useTranslation = useTranslation(),
|
|
11
11
|
t = _useTranslation.t;
|
|
@@ -3,8 +3,8 @@ 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
5
|
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
6
|
-
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
7
6
|
import { StepArrayReview } from '@digigov/form/Questions/Step/StepArrayReview';
|
|
7
|
+
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* The Step component accepts Step data as props
|
|
@@ -1,14 +1,14 @@
|
|
|
1
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
2
|
import { Field } from '@digigov/form/Field';
|
|
7
3
|
import { Fieldset } from '@digigov/form/Fieldset';
|
|
4
|
+
import FormBuilder from '@digigov/form/FormBuilder';
|
|
8
5
|
import Label from '@digigov/form/inputs/Label';
|
|
9
|
-
import {
|
|
10
|
-
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
6
|
+
import { QuestionsContext } from '@digigov/form/Questions/QuestionsContext';
|
|
11
7
|
import { getAddMoreFields } from '@digigov/form/Questions/Step/getAddMoreFields';
|
|
8
|
+
import PageTitle, { PageTitleHeading } from '@digigov/ui/app/PageTitle';
|
|
9
|
+
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from '@digigov/ui/content/SummaryList';
|
|
10
|
+
import Button from '@digigov/ui/form/Button';
|
|
11
|
+
import { useTranslation } from '@digigov/ui/i18n';
|
|
12
12
|
export var StepArrayReview = function StepArrayReview(props) {
|
|
13
13
|
var _currentStep$review2, _currentStep$review3, _currentStep$review4;
|
|
14
14
|
|
|
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["children", "description"];
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
5
|
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
6
|
+
import { useTranslation } from '@digigov/ui/i18n';
|
|
6
7
|
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
7
|
-
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
8
8
|
export var StepDescriptionBase = function StepDescriptionBase(_ref) {
|
|
9
9
|
var children = _ref.children,
|
|
10
10
|
description = _ref.description,
|
|
@@ -2,12 +2,12 @@ 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/StepContext';
|
|
6
|
-
import FormBuilder from '@digigov/form/FormBuilder';
|
|
7
|
-
import Fieldset from '@digigov/form/Fieldset';
|
|
8
5
|
import Field from '@digigov/form/Field';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
6
|
+
import Fieldset from '@digigov/form/Fieldset';
|
|
7
|
+
import FormBuilder from '@digigov/form/FormBuilder';
|
|
8
|
+
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
9
|
+
import Button from '@digigov/ui/form/Button';
|
|
10
|
+
import { useTranslation } from '@digigov/ui/i18n';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The StepForm component accepts a title, a caption and a
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
3
3
|
import PageTitle, { PageTitleHeading, PageTitleSection, PageTitleCaption } from '@digigov/ui/app/PageTitle';
|
|
4
|
-
import BackButton from '@digigov/ui/
|
|
5
|
-
import { useTranslation } from '@digigov/ui/
|
|
4
|
+
import BackButton from '@digigov/ui/form/Button/BackButton';
|
|
5
|
+
import { useTranslation } from '@digigov/ui/i18n';
|
|
6
6
|
export var StepTitleHeading = function StepTitleHeading(props) {
|
|
7
7
|
return /*#__PURE__*/React.createElement(PageTitleHeading, null, props.children);
|
|
8
8
|
};
|
|
@@ -113,10 +113,10 @@ exports[`renders the Questions 1`] = `
|
|
|
113
113
|
<ForwardRef(PageTitleCaption)>
|
|
114
114
|
<ForwardRef(Base)
|
|
115
115
|
as="span"
|
|
116
|
-
className="govgr-caption-
|
|
116
|
+
className="govgr-caption-lg"
|
|
117
117
|
>
|
|
118
118
|
<span
|
|
119
|
-
className="govgr-caption-
|
|
119
|
+
className="govgr-caption-lg"
|
|
120
120
|
>
|
|
121
121
|
intro.caption
|
|
122
122
|
</span>
|
|
@@ -381,14 +381,14 @@ exports[`renders the Questions 1`] = `
|
|
|
381
381
|
}
|
|
382
382
|
>
|
|
383
383
|
<ForwardRef(LabelTitle)
|
|
384
|
-
size="
|
|
384
|
+
size="sm"
|
|
385
385
|
>
|
|
386
386
|
<ForwardRef(Base)
|
|
387
387
|
as="span"
|
|
388
|
-
className="govgr-heading-
|
|
388
|
+
className="govgr-heading-sm"
|
|
389
389
|
>
|
|
390
390
|
<span
|
|
391
|
-
className="govgr-heading-
|
|
391
|
+
className="govgr-heading-sm"
|
|
392
392
|
>
|
|
393
393
|
name.field.primary
|
|
394
394
|
</span>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { Field } from '@digigov/form';
|
|
3
|
+
import Questions, { Step, StepForm, StepTitle } from '@digigov/form/Questions';
|
|
3
4
|
import Header from '@digigov/ui/app/Header';
|
|
4
|
-
import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
|
5
5
|
import HeaderContent from '@digigov/ui/app/Header/HeaderContent';
|
|
6
|
+
import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
|
7
|
+
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
6
8
|
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
7
9
|
import BasicLayout, { Top, Content, Main, Bottom } from '@digigov/ui/layouts/Basic';
|
|
8
|
-
import Questions, { Step, StepForm, StepTitle } from '@digigov/form/Questions';
|
|
9
|
-
import { Field } from '@digigov/form';
|
|
10
10
|
var steps = [{
|
|
11
11
|
name: 'age',
|
|
12
12
|
title: 'What is your age?',
|
package/es/Questions/index.mdx
CHANGED
|
@@ -14,12 +14,14 @@ import {
|
|
|
14
14
|
TableDataCell,
|
|
15
15
|
} from '@digigov/react-core';
|
|
16
16
|
|
|
17
|
-
import LeadText from
|
|
17
|
+
import LeadText from '@site/src/components/LeadText';
|
|
18
18
|
|
|
19
|
-
<LeadText>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
easier to fill
|
|
19
|
+
<LeadText>
|
|
20
|
+
Question pages are used to ask users meaningful questions needed by your
|
|
21
|
+
GOV.GR service, or even gather data about their persona or their application
|
|
22
|
+
status. Use step questions to make bigger forms less scary and easier to fill
|
|
23
|
+
out.
|
|
24
|
+
</LeadText>
|
|
23
25
|
|
|
24
26
|
## Introduction to Question pages
|
|
25
27
|
|
|
@@ -94,10 +96,10 @@ const steps = [
|
|
|
94
96
|
primary: 'Birthday',
|
|
95
97
|
},
|
|
96
98
|
type: 'date',
|
|
97
|
-
required: true
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
99
|
+
required: true,
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
101
103
|
];
|
|
102
104
|
|
|
103
105
|
export default function Index() {
|
|
@@ -152,18 +154,13 @@ Each step can be defined using a `Step` React component and all steps should be
|
|
|
152
154
|
place inside a `Questions` component, that will provide the steps subcomponents
|
|
153
155
|
the required state.
|
|
154
156
|
|
|
155
|
-
First, you declare an array called `steps` and then you pass it to `<Questions
|
|
156
|
-
/>` as a prop. Then for each step you can declare a `<Step />` component and
|
|
157
|
+
First, you declare an array called `steps` and then you pass it to `<Questions />` as a prop. Then for each step you can declare a `<Step />` component and
|
|
157
158
|
its subsequent subcomponents that you customise as needed, like the step title,
|
|
158
159
|
description or form. You can also add components that are not form-specific,
|
|
159
160
|
adding paragraphs or other custom components.
|
|
160
161
|
|
|
161
162
|
```jsx
|
|
162
|
-
<Questions
|
|
163
|
-
name="example"
|
|
164
|
-
steps={steps}
|
|
165
|
-
onSubmit={(data) => doSomething(data)}
|
|
166
|
-
>
|
|
163
|
+
<Questions name="example" steps={steps} onSubmit={(data) => doSomething(data)}>
|
|
167
164
|
{/* more steps could be rendered here ... */}
|
|
168
165
|
<Step name="age">
|
|
169
166
|
<StepTitle />
|
|
@@ -181,21 +178,21 @@ adding paragraphs or other custom components.
|
|
|
181
178
|
Steps can be described using `StepInterface` interface declared as a JSON
|
|
182
179
|
object. The most basic properties are the following:
|
|
183
180
|
|
|
184
|
-
|
|
185
|
-
|
|
181
|
+
- `name` - a unique identifier, must be different for each step
|
|
182
|
+
- `title` - the main questions title that communicates to the users what this
|
|
186
183
|
question page is about, rendered by `StepTitle`
|
|
187
|
-
|
|
184
|
+
- `fields` - an array that describes each input field that will be rendered in
|
|
188
185
|
the `StepForm`. Each fields implements the `FieldSpec` interface as a JSON object.
|
|
189
186
|
|
|
190
187
|
```json title="step-name.json"
|
|
191
188
|
{
|
|
192
|
-
name:
|
|
193
|
-
title:
|
|
194
|
-
fields: [
|
|
189
|
+
"name": "name",
|
|
190
|
+
"title": "What is your name?",
|
|
191
|
+
"fields": [
|
|
195
192
|
{
|
|
196
|
-
key:
|
|
197
|
-
type:
|
|
198
|
-
required: true
|
|
193
|
+
"key": "name",
|
|
194
|
+
"type": "string",
|
|
195
|
+
"required": true
|
|
199
196
|
}
|
|
200
197
|
]
|
|
201
198
|
}
|
|
@@ -264,7 +261,7 @@ const steps = [
|
|
|
264
261
|
|
|
265
262
|
For example, you may use a form to determine if citizens are adults or not, and
|
|
266
263
|
we want to ask users different questions according to their persona. We can use
|
|
267
|
-
a branch between the `age` step and the other two steps.
|
|
264
|
+
a branch between the `age` step and the other two steps.
|
|
268
265
|
|
|
269
266
|
```jsx live
|
|
270
267
|
import React from 'react';
|
|
@@ -292,11 +289,11 @@ const steps = [
|
|
|
292
289
|
key: 'age',
|
|
293
290
|
type: 'int',
|
|
294
291
|
required: true,
|
|
295
|
-
}
|
|
292
|
+
},
|
|
296
293
|
],
|
|
297
294
|
nextStep: (data) => {
|
|
298
295
|
return data.age < 18 ? 'citizen-adult' : 'citizen-underage';
|
|
299
|
-
}
|
|
296
|
+
},
|
|
300
297
|
},
|
|
301
298
|
{
|
|
302
299
|
name: 'citizen-underage',
|
|
@@ -309,17 +306,17 @@ const steps = [
|
|
|
309
306
|
extra: {
|
|
310
307
|
options: [
|
|
311
308
|
{
|
|
312
|
-
label: {primary:
|
|
309
|
+
label: { primary: 'Yes' },
|
|
313
310
|
value: 'yes',
|
|
314
311
|
},
|
|
315
312
|
{
|
|
316
|
-
label: {primary:
|
|
313
|
+
label: { primary: 'No' },
|
|
317
314
|
value: 'no',
|
|
318
|
-
}
|
|
319
|
-
]
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
]
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
],
|
|
323
320
|
},
|
|
324
321
|
{
|
|
325
322
|
name: 'citizen-adult',
|
|
@@ -332,17 +329,17 @@ const steps = [
|
|
|
332
329
|
extra: {
|
|
333
330
|
options: [
|
|
334
331
|
{
|
|
335
|
-
label: {primary:
|
|
332
|
+
label: { primary: 'Yes' },
|
|
336
333
|
value: 'yes',
|
|
337
334
|
},
|
|
338
335
|
{
|
|
339
|
-
label: {primary:
|
|
336
|
+
label: { primary: 'No' },
|
|
340
337
|
value: 'no',
|
|
341
|
-
}
|
|
342
|
-
]
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
]
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
],
|
|
346
343
|
},
|
|
347
344
|
];
|
|
348
345
|
|
|
@@ -396,7 +393,7 @@ export default function Index() {
|
|
|
396
393
|
}
|
|
397
394
|
```
|
|
398
395
|
|
|
399
|
-
## Prop types
|
|
396
|
+
## Prop types
|
|
400
397
|
|
|
401
398
|
<TableContainer>
|
|
402
399
|
<Table>
|
|
@@ -409,7 +406,7 @@ export default function Index() {
|
|
|
409
406
|
</TableHead>
|
|
410
407
|
<TableBody>
|
|
411
408
|
<TableRow>
|
|
412
|
-
<TableDataCell>Πρώτες 6 εβδομάδες
|
|
409
|
+
<TableDataCell>Πρώτες 6 εβδομάδες </TableDataCell>
|
|
413
410
|
<TableDataCell> €109.80 / εβδομάδα</TableDataCell>
|
|
414
411
|
<TableDataCell> €69.80 / εβδομάδα</TableDataCell>
|
|
415
412
|
</TableRow>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
|
+
import { Field } from '@digigov/form';
|
|
3
4
|
import { Step, StepForm, StepQuote, StepTitle } from '@digigov/form/Questions';
|
|
4
5
|
import Questions from '@digigov/form/Questions';
|
|
5
|
-
import { Field } from '@digigov/form';
|
|
6
6
|
var steps = [{
|
|
7
7
|
name: 'intro',
|
|
8
8
|
caption: 'intro.caption',
|