@digigov/form 0.13.2 → 1.0.0-079f34f3d
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/__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/__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 -1
- 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 +1 -1
- package/es/inputs/Radio/__stories__/WithDivider.js +2 -2
- 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 +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/__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 -1
- 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 +1 -1
- package/esm/inputs/Radio/__stories__/WithDivider.js +2 -2
- 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 +3 -3
- 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 +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 +2 -2
- package/inputs/Radio/__stories__/WithDivider.js +3 -3
- 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 +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/__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 -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 +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 +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
|
@@ -65,83 +65,87 @@ exports[`renders the Questions 1`] = `
|
|
|
65
65
|
onClick={[Function]}
|
|
66
66
|
tabIndex={0}
|
|
67
67
|
>
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
<CaretIcon
|
|
69
|
+
direction="left"
|
|
70
|
+
>
|
|
71
|
+
<ForwardRef(Icon)
|
|
72
|
+
direction="left"
|
|
73
|
+
icon="caret"
|
|
71
74
|
>
|
|
72
|
-
<ForwardRef(
|
|
73
|
-
|
|
74
|
-
as="svg"
|
|
75
|
-
className="govgr-caret--left govgr-svg-icon"
|
|
76
|
-
focusable="false"
|
|
77
|
-
viewBox="0 0 24 24"
|
|
75
|
+
<ForwardRef(SvgIcon)
|
|
76
|
+
className="govgr-svg-icon--caret"
|
|
78
77
|
>
|
|
79
|
-
<
|
|
78
|
+
<ForwardRef(Base)
|
|
80
79
|
aria-hidden="true"
|
|
81
|
-
|
|
80
|
+
as="svg"
|
|
81
|
+
className="govgr-svg-icon--caret govgr-svg-icon"
|
|
82
82
|
focusable="false"
|
|
83
83
|
viewBox="0 0 24 24"
|
|
84
84
|
>
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
<svg
|
|
86
|
+
aria-hidden="true"
|
|
87
|
+
className="govgr-svg-icon--caret govgr-svg-icon"
|
|
88
|
+
focusable="false"
|
|
89
|
+
viewBox="0 0 24 24"
|
|
90
|
+
>
|
|
91
|
+
<caret
|
|
92
|
+
direction="left"
|
|
93
|
+
>
|
|
94
|
+
<path
|
|
95
|
+
d="M18,22V2L6,12L18,22z"
|
|
96
|
+
/>
|
|
97
|
+
</caret>
|
|
98
|
+
</svg>
|
|
99
|
+
</ForwardRef(Base)>
|
|
100
|
+
</ForwardRef(SvgIcon)>
|
|
101
|
+
</ForwardRef(Icon)>
|
|
102
|
+
</CaretIcon>
|
|
103
|
+
back.button
|
|
93
104
|
</a>
|
|
94
105
|
</ForwardRef(Base)>
|
|
95
106
|
</ForwardRef(BackLink)>
|
|
96
107
|
</withDeprecationComponent>
|
|
97
|
-
<ForwardRef(
|
|
108
|
+
<ForwardRef(PageTitleContainer)>
|
|
98
109
|
<ForwardRef(Base)
|
|
99
110
|
as="div"
|
|
100
|
-
className=""
|
|
111
|
+
className="govgr-page-title"
|
|
101
112
|
>
|
|
102
113
|
<div
|
|
103
|
-
className=""
|
|
114
|
+
className="govgr-page-title"
|
|
104
115
|
>
|
|
105
|
-
<ForwardRef(
|
|
106
|
-
<ForwardRef(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<div
|
|
111
|
-
className=""
|
|
116
|
+
<ForwardRef(PageTitleCaption)>
|
|
117
|
+
<ForwardRef(HeadingCaption)>
|
|
118
|
+
<ForwardRef(Base)
|
|
119
|
+
as="span"
|
|
120
|
+
className="govgr-caption-lg"
|
|
112
121
|
>
|
|
113
|
-
<
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
intro.caption
|
|
122
|
-
</span>
|
|
123
|
-
</ForwardRef(Base)>
|
|
124
|
-
</ForwardRef(PageTitleCaption)>
|
|
125
|
-
</div>
|
|
126
|
-
</ForwardRef(Base)>
|
|
127
|
-
</ForwardRef(PageTitleSection)>
|
|
122
|
+
<span
|
|
123
|
+
className="govgr-caption-lg"
|
|
124
|
+
>
|
|
125
|
+
intro.caption
|
|
126
|
+
</span>
|
|
127
|
+
</ForwardRef(Base)>
|
|
128
|
+
</ForwardRef(HeadingCaption)>
|
|
129
|
+
</ForwardRef(PageTitleCaption)>
|
|
128
130
|
<StepTitleHeading>
|
|
129
131
|
<ForwardRef(PageTitleHeading)>
|
|
130
|
-
<ForwardRef(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
>
|
|
134
|
-
<h1
|
|
132
|
+
<ForwardRef(Heading)>
|
|
133
|
+
<ForwardRef(Base)
|
|
134
|
+
as="h1"
|
|
135
135
|
className="govgr-heading-xl"
|
|
136
136
|
>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
<h1
|
|
138
|
+
className="govgr-heading-xl"
|
|
139
|
+
>
|
|
140
|
+
intro.title
|
|
141
|
+
</h1>
|
|
142
|
+
</ForwardRef(Base)>
|
|
143
|
+
</ForwardRef(Heading)>
|
|
140
144
|
</ForwardRef(PageTitleHeading)>
|
|
141
145
|
</StepTitleHeading>
|
|
142
146
|
</div>
|
|
143
147
|
</ForwardRef(Base)>
|
|
144
|
-
</ForwardRef(
|
|
148
|
+
</ForwardRef(PageTitleContainer)>
|
|
145
149
|
</StepTitleBase>
|
|
146
150
|
</StepTitle>
|
|
147
151
|
<StepQuote>
|
|
@@ -237,7 +241,6 @@ exports[`renders the Questions 1`] = `
|
|
|
237
241
|
"ref": <input
|
|
238
242
|
aria-required="true"
|
|
239
243
|
class="govgr-input"
|
|
240
|
-
control="[object Object]"
|
|
241
244
|
name="name"
|
|
242
245
|
type="text"
|
|
243
246
|
/>,
|
|
@@ -311,7 +314,11 @@ exports[`renders the Questions 1`] = `
|
|
|
311
314
|
},
|
|
312
315
|
"watch": Object {
|
|
313
316
|
"next": [Function],
|
|
314
|
-
"observers": Array [
|
|
317
|
+
"observers": Array [
|
|
318
|
+
Object {
|
|
319
|
+
"next": [Function],
|
|
320
|
+
},
|
|
321
|
+
],
|
|
315
322
|
"subscribe": [Function],
|
|
316
323
|
"unsubscribe": [Function],
|
|
317
324
|
},
|
|
@@ -352,17 +359,14 @@ exports[`renders the Questions 1`] = `
|
|
|
352
359
|
<ForwardRef(Grid)
|
|
353
360
|
className="govgr-field"
|
|
354
361
|
item={true}
|
|
355
|
-
lg={12}
|
|
356
|
-
md={12}
|
|
357
|
-
xl={12}
|
|
358
362
|
xs={12}
|
|
359
363
|
>
|
|
360
364
|
<ForwardRef(Base)
|
|
361
365
|
as="div"
|
|
362
|
-
className="govgr-field xs:govgr-grid__col-span-12
|
|
366
|
+
className="govgr-field xs:govgr-grid__col-span-12"
|
|
363
367
|
>
|
|
364
368
|
<div
|
|
365
|
-
className="govgr-field xs:govgr-grid__col-span-12
|
|
369
|
+
className="govgr-field xs:govgr-grid__col-span-12"
|
|
366
370
|
>
|
|
367
371
|
<ForwardRef(LabelContainer)>
|
|
368
372
|
<ForwardRef(Base)
|
|
@@ -381,14 +385,14 @@ exports[`renders the Questions 1`] = `
|
|
|
381
385
|
}
|
|
382
386
|
>
|
|
383
387
|
<ForwardRef(LabelTitle)
|
|
384
|
-
size="
|
|
388
|
+
size="sm"
|
|
385
389
|
>
|
|
386
390
|
<ForwardRef(Base)
|
|
387
391
|
as="span"
|
|
388
|
-
className="govgr-heading-
|
|
392
|
+
className="govgr-heading-sm"
|
|
389
393
|
>
|
|
390
394
|
<span
|
|
391
|
-
className="govgr-heading-
|
|
395
|
+
className="govgr-heading-sm"
|
|
392
396
|
>
|
|
393
397
|
name.field.primary
|
|
394
398
|
</span>
|
|
@@ -421,7 +425,6 @@ exports[`renders the Questions 1`] = `
|
|
|
421
425
|
"ref": <input
|
|
422
426
|
aria-required="true"
|
|
423
427
|
class="govgr-input"
|
|
424
|
-
control="[object Object]"
|
|
425
428
|
name="name"
|
|
426
429
|
type="text"
|
|
427
430
|
/>,
|
|
@@ -495,7 +498,11 @@ exports[`renders the Questions 1`] = `
|
|
|
495
498
|
},
|
|
496
499
|
"watch": Object {
|
|
497
500
|
"next": [Function],
|
|
498
|
-
"observers": Array [
|
|
501
|
+
"observers": Array [
|
|
502
|
+
Object {
|
|
503
|
+
"next": [Function],
|
|
504
|
+
},
|
|
505
|
+
],
|
|
499
506
|
"subscribe": [Function],
|
|
500
507
|
"unsubscribe": [Function],
|
|
501
508
|
},
|
|
@@ -519,104 +526,6 @@ exports[`renders the Questions 1`] = `
|
|
|
519
526
|
>
|
|
520
527
|
<ForwardRef(TextInput)
|
|
521
528
|
aria-required={true}
|
|
522
|
-
control={
|
|
523
|
-
Object {
|
|
524
|
-
"_defaultValues": Object {},
|
|
525
|
-
"_executeSchema": [Function],
|
|
526
|
-
"_fields": Object {
|
|
527
|
-
"name": Object {
|
|
528
|
-
"_f": Object {
|
|
529
|
-
"mount": true,
|
|
530
|
-
"name": "name",
|
|
531
|
-
"ref": <input
|
|
532
|
-
aria-required="true"
|
|
533
|
-
class="govgr-input"
|
|
534
|
-
control="[object Object]"
|
|
535
|
-
name="name"
|
|
536
|
-
type="text"
|
|
537
|
-
/>,
|
|
538
|
-
},
|
|
539
|
-
},
|
|
540
|
-
},
|
|
541
|
-
"_formState": Object {
|
|
542
|
-
"dirtyFields": Object {},
|
|
543
|
-
"errors": Object {},
|
|
544
|
-
"isDirty": false,
|
|
545
|
-
"isSubmitSuccessful": false,
|
|
546
|
-
"isSubmitted": false,
|
|
547
|
-
"isSubmitting": false,
|
|
548
|
-
"isValid": false,
|
|
549
|
-
"isValidating": false,
|
|
550
|
-
"submitCount": 0,
|
|
551
|
-
"touchedFields": Object {},
|
|
552
|
-
},
|
|
553
|
-
"_formValues": Object {
|
|
554
|
-
"name": "",
|
|
555
|
-
},
|
|
556
|
-
"_getDirty": [Function],
|
|
557
|
-
"_getFieldArray": [Function],
|
|
558
|
-
"_getWatch": [Function],
|
|
559
|
-
"_names": Object {
|
|
560
|
-
"array": Set {},
|
|
561
|
-
"mount": Set {
|
|
562
|
-
"name",
|
|
563
|
-
},
|
|
564
|
-
"unMount": Set {},
|
|
565
|
-
"watch": Set {},
|
|
566
|
-
},
|
|
567
|
-
"_options": Object {
|
|
568
|
-
"criteriaMode": "all",
|
|
569
|
-
"defaultValues": Object {},
|
|
570
|
-
"mode": "onSubmit",
|
|
571
|
-
"reValidateMode": "onSubmit",
|
|
572
|
-
"resolver": [Function],
|
|
573
|
-
"shouldFocusError": true,
|
|
574
|
-
},
|
|
575
|
-
"_proxyFormState": Object {
|
|
576
|
-
"dirtyFields": false,
|
|
577
|
-
"errors": "all",
|
|
578
|
-
"isDirty": false,
|
|
579
|
-
"isValid": false,
|
|
580
|
-
"isValidating": false,
|
|
581
|
-
"touchedFields": false,
|
|
582
|
-
},
|
|
583
|
-
"_removeUnmounted": [Function],
|
|
584
|
-
"_stateFlags": Object {
|
|
585
|
-
"action": false,
|
|
586
|
-
"mount": true,
|
|
587
|
-
"watch": false,
|
|
588
|
-
},
|
|
589
|
-
"_subjects": Object {
|
|
590
|
-
"array": Object {
|
|
591
|
-
"next": [Function],
|
|
592
|
-
"observers": Array [],
|
|
593
|
-
"subscribe": [Function],
|
|
594
|
-
"unsubscribe": [Function],
|
|
595
|
-
},
|
|
596
|
-
"state": Object {
|
|
597
|
-
"next": [Function],
|
|
598
|
-
"observers": Array [
|
|
599
|
-
Object {
|
|
600
|
-
"next": [Function],
|
|
601
|
-
},
|
|
602
|
-
],
|
|
603
|
-
"subscribe": [Function],
|
|
604
|
-
"unsubscribe": [Function],
|
|
605
|
-
},
|
|
606
|
-
"watch": Object {
|
|
607
|
-
"next": [Function],
|
|
608
|
-
"observers": Array [],
|
|
609
|
-
"subscribe": [Function],
|
|
610
|
-
"unsubscribe": [Function],
|
|
611
|
-
},
|
|
612
|
-
},
|
|
613
|
-
"_updateFieldArray": [Function],
|
|
614
|
-
"_updateValid": [Function],
|
|
615
|
-
"getFieldState": [Function],
|
|
616
|
-
"register": [Function],
|
|
617
|
-
"unregister": [Function],
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
529
|
disabled={false}
|
|
621
530
|
error={false}
|
|
622
531
|
name="name"
|
|
@@ -628,104 +537,6 @@ exports[`renders the Questions 1`] = `
|
|
|
628
537
|
aria-required={true}
|
|
629
538
|
as="input"
|
|
630
539
|
className="govgr-input"
|
|
631
|
-
control={
|
|
632
|
-
Object {
|
|
633
|
-
"_defaultValues": Object {},
|
|
634
|
-
"_executeSchema": [Function],
|
|
635
|
-
"_fields": Object {
|
|
636
|
-
"name": Object {
|
|
637
|
-
"_f": Object {
|
|
638
|
-
"mount": true,
|
|
639
|
-
"name": "name",
|
|
640
|
-
"ref": <input
|
|
641
|
-
aria-required="true"
|
|
642
|
-
class="govgr-input"
|
|
643
|
-
control="[object Object]"
|
|
644
|
-
name="name"
|
|
645
|
-
type="text"
|
|
646
|
-
/>,
|
|
647
|
-
},
|
|
648
|
-
},
|
|
649
|
-
},
|
|
650
|
-
"_formState": Object {
|
|
651
|
-
"dirtyFields": Object {},
|
|
652
|
-
"errors": Object {},
|
|
653
|
-
"isDirty": false,
|
|
654
|
-
"isSubmitSuccessful": false,
|
|
655
|
-
"isSubmitted": false,
|
|
656
|
-
"isSubmitting": false,
|
|
657
|
-
"isValid": false,
|
|
658
|
-
"isValidating": false,
|
|
659
|
-
"submitCount": 0,
|
|
660
|
-
"touchedFields": Object {},
|
|
661
|
-
},
|
|
662
|
-
"_formValues": Object {
|
|
663
|
-
"name": "",
|
|
664
|
-
},
|
|
665
|
-
"_getDirty": [Function],
|
|
666
|
-
"_getFieldArray": [Function],
|
|
667
|
-
"_getWatch": [Function],
|
|
668
|
-
"_names": Object {
|
|
669
|
-
"array": Set {},
|
|
670
|
-
"mount": Set {
|
|
671
|
-
"name",
|
|
672
|
-
},
|
|
673
|
-
"unMount": Set {},
|
|
674
|
-
"watch": Set {},
|
|
675
|
-
},
|
|
676
|
-
"_options": Object {
|
|
677
|
-
"criteriaMode": "all",
|
|
678
|
-
"defaultValues": Object {},
|
|
679
|
-
"mode": "onSubmit",
|
|
680
|
-
"reValidateMode": "onSubmit",
|
|
681
|
-
"resolver": [Function],
|
|
682
|
-
"shouldFocusError": true,
|
|
683
|
-
},
|
|
684
|
-
"_proxyFormState": Object {
|
|
685
|
-
"dirtyFields": false,
|
|
686
|
-
"errors": "all",
|
|
687
|
-
"isDirty": false,
|
|
688
|
-
"isValid": false,
|
|
689
|
-
"isValidating": false,
|
|
690
|
-
"touchedFields": false,
|
|
691
|
-
},
|
|
692
|
-
"_removeUnmounted": [Function],
|
|
693
|
-
"_stateFlags": Object {
|
|
694
|
-
"action": false,
|
|
695
|
-
"mount": true,
|
|
696
|
-
"watch": false,
|
|
697
|
-
},
|
|
698
|
-
"_subjects": Object {
|
|
699
|
-
"array": Object {
|
|
700
|
-
"next": [Function],
|
|
701
|
-
"observers": Array [],
|
|
702
|
-
"subscribe": [Function],
|
|
703
|
-
"unsubscribe": [Function],
|
|
704
|
-
},
|
|
705
|
-
"state": Object {
|
|
706
|
-
"next": [Function],
|
|
707
|
-
"observers": Array [
|
|
708
|
-
Object {
|
|
709
|
-
"next": [Function],
|
|
710
|
-
},
|
|
711
|
-
],
|
|
712
|
-
"subscribe": [Function],
|
|
713
|
-
"unsubscribe": [Function],
|
|
714
|
-
},
|
|
715
|
-
"watch": Object {
|
|
716
|
-
"next": [Function],
|
|
717
|
-
"observers": Array [],
|
|
718
|
-
"subscribe": [Function],
|
|
719
|
-
"unsubscribe": [Function],
|
|
720
|
-
},
|
|
721
|
-
},
|
|
722
|
-
"_updateFieldArray": [Function],
|
|
723
|
-
"_updateValid": [Function],
|
|
724
|
-
"getFieldState": [Function],
|
|
725
|
-
"register": [Function],
|
|
726
|
-
"unregister": [Function],
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
540
|
disabled={false}
|
|
730
541
|
name="name"
|
|
731
542
|
onBlur={[Function]}
|
|
@@ -735,104 +546,6 @@ exports[`renders the Questions 1`] = `
|
|
|
735
546
|
<input
|
|
736
547
|
aria-required={true}
|
|
737
548
|
className="govgr-input"
|
|
738
|
-
control={
|
|
739
|
-
Object {
|
|
740
|
-
"_defaultValues": Object {},
|
|
741
|
-
"_executeSchema": [Function],
|
|
742
|
-
"_fields": Object {
|
|
743
|
-
"name": Object {
|
|
744
|
-
"_f": Object {
|
|
745
|
-
"mount": true,
|
|
746
|
-
"name": "name",
|
|
747
|
-
"ref": <input
|
|
748
|
-
aria-required="true"
|
|
749
|
-
class="govgr-input"
|
|
750
|
-
control="[object Object]"
|
|
751
|
-
name="name"
|
|
752
|
-
type="text"
|
|
753
|
-
/>,
|
|
754
|
-
},
|
|
755
|
-
},
|
|
756
|
-
},
|
|
757
|
-
"_formState": Object {
|
|
758
|
-
"dirtyFields": Object {},
|
|
759
|
-
"errors": Object {},
|
|
760
|
-
"isDirty": false,
|
|
761
|
-
"isSubmitSuccessful": false,
|
|
762
|
-
"isSubmitted": false,
|
|
763
|
-
"isSubmitting": false,
|
|
764
|
-
"isValid": false,
|
|
765
|
-
"isValidating": false,
|
|
766
|
-
"submitCount": 0,
|
|
767
|
-
"touchedFields": Object {},
|
|
768
|
-
},
|
|
769
|
-
"_formValues": Object {
|
|
770
|
-
"name": "",
|
|
771
|
-
},
|
|
772
|
-
"_getDirty": [Function],
|
|
773
|
-
"_getFieldArray": [Function],
|
|
774
|
-
"_getWatch": [Function],
|
|
775
|
-
"_names": Object {
|
|
776
|
-
"array": Set {},
|
|
777
|
-
"mount": Set {
|
|
778
|
-
"name",
|
|
779
|
-
},
|
|
780
|
-
"unMount": Set {},
|
|
781
|
-
"watch": Set {},
|
|
782
|
-
},
|
|
783
|
-
"_options": Object {
|
|
784
|
-
"criteriaMode": "all",
|
|
785
|
-
"defaultValues": Object {},
|
|
786
|
-
"mode": "onSubmit",
|
|
787
|
-
"reValidateMode": "onSubmit",
|
|
788
|
-
"resolver": [Function],
|
|
789
|
-
"shouldFocusError": true,
|
|
790
|
-
},
|
|
791
|
-
"_proxyFormState": Object {
|
|
792
|
-
"dirtyFields": false,
|
|
793
|
-
"errors": "all",
|
|
794
|
-
"isDirty": false,
|
|
795
|
-
"isValid": false,
|
|
796
|
-
"isValidating": false,
|
|
797
|
-
"touchedFields": false,
|
|
798
|
-
},
|
|
799
|
-
"_removeUnmounted": [Function],
|
|
800
|
-
"_stateFlags": Object {
|
|
801
|
-
"action": false,
|
|
802
|
-
"mount": true,
|
|
803
|
-
"watch": false,
|
|
804
|
-
},
|
|
805
|
-
"_subjects": Object {
|
|
806
|
-
"array": Object {
|
|
807
|
-
"next": [Function],
|
|
808
|
-
"observers": Array [],
|
|
809
|
-
"subscribe": [Function],
|
|
810
|
-
"unsubscribe": [Function],
|
|
811
|
-
},
|
|
812
|
-
"state": Object {
|
|
813
|
-
"next": [Function],
|
|
814
|
-
"observers": Array [
|
|
815
|
-
Object {
|
|
816
|
-
"next": [Function],
|
|
817
|
-
},
|
|
818
|
-
],
|
|
819
|
-
"subscribe": [Function],
|
|
820
|
-
"unsubscribe": [Function],
|
|
821
|
-
},
|
|
822
|
-
"watch": Object {
|
|
823
|
-
"next": [Function],
|
|
824
|
-
"observers": Array [],
|
|
825
|
-
"subscribe": [Function],
|
|
826
|
-
"unsubscribe": [Function],
|
|
827
|
-
},
|
|
828
|
-
},
|
|
829
|
-
"_updateFieldArray": [Function],
|
|
830
|
-
"_updateValid": [Function],
|
|
831
|
-
"getFieldState": [Function],
|
|
832
|
-
"register": [Function],
|
|
833
|
-
"unregister": [Function],
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
549
|
disabled={false}
|
|
837
550
|
name="name"
|
|
838
551
|
onBlur={[Function]}
|
|
@@ -12,22 +12,22 @@ exports["default"] = void 0;
|
|
|
12
12
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _form = require("@digigov/form");
|
|
16
|
+
|
|
17
|
+
var _Questions = _interopRequireWildcard(require("@digigov/form/Questions"));
|
|
16
18
|
|
|
17
19
|
var _Header = _interopRequireDefault(require("@digigov/ui/app/Header"));
|
|
18
20
|
|
|
21
|
+
var _HeaderContent = _interopRequireDefault(require("@digigov/ui/app/Header/HeaderContent"));
|
|
22
|
+
|
|
19
23
|
var _HeaderSection = _interopRequireDefault(require("@digigov/ui/app/Header/HeaderSection"));
|
|
20
24
|
|
|
21
|
-
var
|
|
25
|
+
var _Footer = _interopRequireDefault(require("@digigov/ui/govgr/Footer"));
|
|
22
26
|
|
|
23
27
|
var _GovGRLogo = _interopRequireDefault(require("@digigov/ui/govgr/GovGRLogo"));
|
|
24
28
|
|
|
25
29
|
var _Basic = _interopRequireWildcard(require("@digigov/ui/layouts/Basic"));
|
|
26
30
|
|
|
27
|
-
var _Questions = _interopRequireWildcard(require("@digigov/form/Questions"));
|
|
28
|
-
|
|
29
|
-
var _form = require("@digigov/form");
|
|
30
|
-
|
|
31
31
|
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); }
|
|
32
32
|
|
|
33
33
|
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; }
|
|
@@ -86,7 +86,7 @@ var steps = [{
|
|
|
86
86
|
}]
|
|
87
87
|
}];
|
|
88
88
|
|
|
89
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, /*#__PURE__*/_react["default"].createElement(_Header["default"], null, /*#__PURE__*/_react["default"].createElement(
|
|
89
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, /*#__PURE__*/_react["default"].createElement(_Header["default"], null, /*#__PURE__*/_react["default"].createElement(_HeaderContent["default"], null, /*#__PURE__*/_react["default"].createElement(_HeaderSection["default"], null, /*#__PURE__*/_react["default"].createElement(_GovGRLogo["default"], {
|
|
90
90
|
href: "#"
|
|
91
91
|
})))));
|
|
92
92
|
|