@digigov/form 0.13.2 → 1.0.0-00643e1d
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 +29 -44
- 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 +9 -9
- 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 +11 -11
- 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.d.ts +2 -2
- package/Questions/Step/StepTitle.js +11 -5
- package/Questions/Step/getAddMoreFields.d.ts +1 -1
- package/Questions/Step/index.d.ts +4 -4
- package/Questions/Step/index.js +53 -36
- package/Questions/__snapshots__/index.spec.tsx.snap +72 -359
- package/Questions/__stories__/Default.js +7 -7
- package/Questions/index.mdx +45 -48
- 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 +29 -44
- 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 +8 -8
- 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 +7 -7
- package/es/Questions/Step/StepDescription.js +1 -1
- package/es/Questions/Step/StepForm.js +5 -5
- package/es/Questions/Step/StepTitle.js +9 -5
- package/es/Questions/Step/index.js +4 -4
- package/es/Questions/__snapshots__/index.spec.tsx.snap +72 -359
- package/es/Questions/__stories__/Default.js +5 -5
- package/es/Questions/index.mdx +45 -48
- 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 +2 -2
- package/es/inputs/Checkboxes/index.js +3 -3
- package/es/inputs/DateInput/__stories__/Default.js +1 -19
- package/es/inputs/DateInput/index.js +1 -1
- package/es/inputs/FileInput/__stories__/Default.js +1 -1
- package/es/inputs/FileInput/index.js +6 -6
- 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 +5 -5
- package/es/inputs/Radio/__stories__/Conditional.js +1 -1
- package/es/inputs/Radio/__stories__/Default.js +2 -2
- package/es/inputs/Radio/__stories__/WithDivider.js +3 -3
- package/es/inputs/Radio/index.js +4 -4
- package/es/inputs/Select/__stories__/Default.js +2 -2
- 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 +29 -44
- 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 +8 -8
- 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 +7 -7
- package/esm/Questions/Step/StepDescription.js +1 -1
- package/esm/Questions/Step/StepForm.js +5 -5
- package/esm/Questions/Step/StepTitle.js +9 -5
- package/esm/Questions/Step/index.js +4 -4
- package/esm/Questions/__snapshots__/index.spec.tsx.snap +72 -359
- package/esm/Questions/__stories__/Default.js +5 -5
- package/esm/Questions/index.mdx +45 -48
- 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 +2 -2
- package/esm/inputs/Checkboxes/index.js +3 -3
- package/esm/inputs/DateInput/__stories__/Default.js +1 -19
- package/esm/inputs/DateInput/index.js +1 -1
- package/esm/inputs/FileInput/__stories__/Default.js +1 -1
- package/esm/inputs/FileInput/index.js +6 -6
- 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 +5 -5
- package/esm/inputs/Radio/__stories__/Conditional.js +1 -1
- package/esm/inputs/Radio/__stories__/Default.js +2 -2
- package/esm/inputs/Radio/__stories__/WithDivider.js +3 -3
- package/esm/inputs/Radio/index.js +4 -4
- package/esm/inputs/Select/__stories__/Default.js +2 -2
- 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 +3 -3
- package/inputs/Checkboxes/index.d.ts +1 -1
- package/inputs/Checkboxes/index.js +4 -4
- package/inputs/DateInput/__stories__/Default.js +2 -20
- package/inputs/DateInput/index.js +2 -2
- package/inputs/FileInput/__stories__/Default.js +2 -2
- package/inputs/FileInput/index.js +6 -6
- 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 +5 -5
- package/inputs/Radio/__stories__/Conditional.js +2 -2
- package/inputs/Radio/__stories__/Default.js +3 -3
- package/inputs/Radio/__stories__/WithDivider.js +4 -4
- package/inputs/Radio/index.d.ts +1 -1
- package/inputs/Radio/index.js +7 -7
- package/inputs/Select/__stories__/Default.js +3 -3
- 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 +29 -44
- 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 +18 -18
- 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 +11 -11
- package/src/Questions/Step/StepDescription.tsx +1 -1
- package/src/Questions/Step/StepForm.tsx +6 -6
- package/src/Questions/Step/StepTitle.tsx +19 -17
- package/src/Questions/Step/getAddMoreFields.tsx +1 -1
- package/src/Questions/Step/index.ts +4 -4
- package/src/Questions/__snapshots__/index.spec.tsx.snap +72 -359
- package/src/Questions/__stories__/Default.tsx +8 -8
- package/src/Questions/index.mdx +45 -48
- 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 -17
- 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 +6 -6
- 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 +14 -10
- 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 +2 -2
- package/src/inputs/Radio/__stories__/WithDivider.tsx +3 -3
- package/src/inputs/Radio/index.tsx +6 -6
- package/src/inputs/Select/Select.stories.js +1 -1
- package/src/inputs/Select/__stories__/Default.tsx +2 -2
- 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: 'ΜΑΡΙΟΣ'
|
|
@@ -33,7 +33,7 @@ var fields = [{
|
|
|
33
33
|
value: 'ΚΑΡΤΑ'
|
|
34
34
|
}];
|
|
35
35
|
|
|
36
|
-
var _ref = /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(
|
|
36
|
+
var _ref = /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(GovGRLogo, {
|
|
37
37
|
href: "#"
|
|
38
38
|
}), /*#__PURE__*/React.createElement(HeaderTitle, null, "\u03A0\u03C1\u03CC\u03C4\u03C5\u03C0\u03BF-\u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2"))));
|
|
39
39
|
|
|
@@ -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 PageTitleContainer, { PageTitleHeading } from '@digigov/ui/app/PageTitleContainer';
|
|
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
|
|
|
@@ -24,7 +24,7 @@ export var StepArrayReview = function StepArrayReview(props) {
|
|
|
24
24
|
|
|
25
25
|
return field.key === ((_currentStep$review = currentStep.review) === null || _currentStep$review === void 0 ? void 0 : _currentStep$review.primaryFieldKey);
|
|
26
26
|
}) || {};
|
|
27
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
27
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitleContainer, 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
28
|
return /*#__PURE__*/React.createElement(SummaryListItem, {
|
|
29
29
|
key: idx
|
|
30
30
|
}, /*#__PURE__*/React.createElement(SummaryListItemKey, null, t(primaryField.label.primary)), /*#__PURE__*/React.createElement(SummaryListItemValue, null, item[primaryField.key]), /*#__PURE__*/React.createElement(SummaryListItemAction, {
|
|
@@ -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,10 +1,12 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { StepContext } from '@digigov/form/Questions/Step/StepContext';
|
|
3
|
-
import
|
|
4
|
-
import BackButton from '@digigov/ui/
|
|
5
|
-
import { useTranslation } from '@digigov/ui/
|
|
3
|
+
import PageTitleContainer, { PageTitleCaption } from '@digigov/ui/app/PageTitleContainer';
|
|
4
|
+
import BackButton from '@digigov/ui/form/Button/BackButton';
|
|
5
|
+
import { useTranslation } from '@digigov/ui/i18n';
|
|
6
|
+
import HeadingCaption from '@digigov/react-core/HeadingCaption';
|
|
7
|
+
import Heading from '@digigov/react-core/Heading';
|
|
6
8
|
export var StepTitleHeading = function StepTitleHeading(props) {
|
|
7
|
-
return /*#__PURE__*/React.createElement(
|
|
9
|
+
return /*#__PURE__*/React.createElement(Heading, null, props.children);
|
|
8
10
|
};
|
|
9
11
|
export var StepTitleBase = function StepTitleBase(_ref) {
|
|
10
12
|
var caption = _ref.caption,
|
|
@@ -16,7 +18,9 @@ export var StepTitleBase = function StepTitleBase(_ref) {
|
|
|
16
18
|
var _useTranslation = useTranslation(),
|
|
17
19
|
t = _useTranslation.t;
|
|
18
20
|
|
|
19
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BackButton, null, backButton || t('back
|
|
21
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BackButton, null, backButton || t('button.back')), /*#__PURE__*/React.createElement(PageTitleContainer, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HeadingCaption, {
|
|
22
|
+
size: "xl"
|
|
23
|
+
}, caption && t(caption)), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
|
|
20
24
|
};
|
|
21
25
|
/**
|
|
22
26
|
* The StepTitle component accepts a title, a caption and a step indicator
|
|
@@ -2,10 +2,10 @@ export * from '@digigov/form/Questions/Step/ReviewStep';
|
|
|
2
2
|
export * from '@digigov/form/Questions/Step/Step';
|
|
3
3
|
export * from '@digigov/form/Questions/Step/StepArrayReview';
|
|
4
4
|
export * from '@digigov/form/Questions/Step/StepContext';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export * from '@digigov/form/Questions/Step/StepDescription';
|
|
6
|
+
export * from '@digigov/form/Questions/Step/StepForm';
|
|
7
|
+
export * from '@digigov/form/Questions/Step/StepQuote';
|
|
8
|
+
export * from '@digigov/form/Questions/Step/StepTitle';
|
|
9
9
|
export * from '@digigov/form/Questions/Step/getAddMoreFields';
|
|
10
10
|
export * from '@digigov/form/Questions/Step/';
|
|
11
11
|
export * from '@digigov/form/Questions/Step/types';
|