@digigov/form 0.10.8 → 0.10.9

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.
Files changed (138) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/Form.stories.playwright.json +0 -72
  3. package/FormBuilder/FormBuilder.mdx +1 -1
  4. package/MultiplicityField/__stories__/PreviewDisplay.js +6 -6
  5. package/Questions/__stories__/Default.js +2 -2
  6. package/Questions/index.mdx +1 -1
  7. package/es/Form.stories.playwright.json +0 -72
  8. package/es/FormBuilder/FormBuilder.mdx +1 -1
  9. package/es/MultiplicityField/__stories__/PreviewDisplay.js +6 -6
  10. package/es/Questions/__stories__/Default.js +1 -1
  11. package/es/Questions/index.mdx +1 -1
  12. package/esm/Form.stories.playwright.json +0 -72
  13. package/esm/FormBuilder/FormBuilder.mdx +1 -1
  14. package/esm/MultiplicityField/__stories__/PreviewDisplay.js +6 -6
  15. package/esm/Questions/__stories__/Default.js +1 -1
  16. package/esm/Questions/index.mdx +1 -1
  17. package/esm/index.js +1 -1
  18. package/package.json +4 -4
  19. package/src/Field/FieldBase.tsx +99 -0
  20. package/src/Field/FieldBaseContainer.tsx +57 -0
  21. package/src/Field/FieldConditional.tsx +75 -0
  22. package/src/Field/index.mdx +6 -0
  23. package/src/Field/index.tsx +92 -0
  24. package/src/Field/types.tsx +102 -0
  25. package/src/Field/utils.ts +164 -0
  26. package/src/FieldArray/FieldArray.stories.js +8 -0
  27. package/src/FieldArray/FieldArray.stories.playwright.json +353 -0
  28. package/src/FieldArray/__stories__/Default.tsx +95 -0
  29. package/src/FieldArray/__stories__/WithExactLength.tsx +95 -0
  30. package/src/FieldArray/index.tsx +83 -0
  31. package/src/FieldObject/index.tsx +92 -0
  32. package/src/Fieldset/FieldsetWithContext.tsx +41 -0
  33. package/src/Fieldset/index.tsx +40 -0
  34. package/src/Fieldset/types.tsx +6 -0
  35. package/src/Form.stories.js +5 -0
  36. package/src/Form.stories.playwright.json +71 -0
  37. package/src/FormBuilder/FormBuilder.mdx +271 -0
  38. package/src/FormBuilder/FormBuilder.stories.js +7 -0
  39. package/src/FormBuilder/FormBuilder.stories.playwright.json +52 -0
  40. package/src/FormBuilder/FormBuilder.tsx +165 -0
  41. package/src/FormBuilder/__stories__/Default.tsx +23 -0
  42. package/src/FormBuilder/index.tsx +3 -0
  43. package/src/FormContext.tsx +8 -0
  44. package/src/MultiplicityField/MultiplicityField.mdx +580 -0
  45. package/src/MultiplicityField/MultiplicityField.stories.js +12 -0
  46. package/src/MultiplicityField/MultiplicityField.stories.playwright.json +1370 -0
  47. package/src/MultiplicityField/__stories__/Default.tsx +100 -0
  48. package/src/MultiplicityField/__stories__/PreviewDisplay.tsx +160 -0
  49. package/src/MultiplicityField/__stories__/WithExactLength.tsx +99 -0
  50. package/src/MultiplicityField/__stories__/WithMaxLength.tsx +102 -0
  51. package/src/MultiplicityField/__stories__/WithMinAndMaxLength.tsx +103 -0
  52. package/src/MultiplicityField/__stories__/WithMinLength.tsx +102 -0
  53. package/src/MultiplicityField/add-objects.tsx +186 -0
  54. package/src/MultiplicityField/index.tsx +166 -0
  55. package/src/Questions/Questions.stories.js +7 -0
  56. package/src/Questions/Questions.tsx +74 -0
  57. package/src/Questions/QuestionsContext.tsx +9 -0
  58. package/src/Questions/Step/ReviewStep.tsx +63 -0
  59. package/src/Questions/Step/Step.tsx +67 -0
  60. package/src/Questions/Step/StepArrayReview.tsx +68 -0
  61. package/src/Questions/Step/StepContext.tsx +21 -0
  62. package/src/Questions/Step/StepDescription.tsx +33 -0
  63. package/src/Questions/Step/StepForm.tsx +60 -0
  64. package/src/Questions/Step/StepQuote.tsx +8 -0
  65. package/src/Questions/Step/StepTitle.tsx +60 -0
  66. package/src/Questions/Step/getAddMoreFields.tsx +28 -0
  67. package/src/Questions/Step/index.ts +13 -0
  68. package/src/Questions/Step/types.tsx +32 -0
  69. package/src/Questions/__snapshots__/index.spec.tsx.snap +887 -0
  70. package/src/Questions/__stories__/Default.tsx +130 -0
  71. package/src/Questions/getNextStep.tsx +24 -0
  72. package/src/Questions/index.mdx +418 -0
  73. package/src/Questions/index.spec.tsx +72 -0
  74. package/src/Questions/index.tsx +5 -0
  75. package/src/Questions/types.tsx +25 -0
  76. package/src/__stories__/AutoCompleteField.tsx +45 -0
  77. package/src/__stories__/IntField.tsx +38 -0
  78. package/src/create-simple-form.mdx +518 -0
  79. package/src/index.mdx +44 -0
  80. package/src/index.ts +3 -0
  81. package/src/inputs/AutoComplete/index.tsx +85 -0
  82. package/src/inputs/Checkboxes/Checkboxes.stories.js +7 -0
  83. package/src/inputs/Checkboxes/Checkboxes.stories.playwright.json +69 -0
  84. package/src/inputs/Checkboxes/__stories__/Default.tsx +39 -0
  85. package/src/inputs/Checkboxes/index.mdx +0 -0
  86. package/src/inputs/Checkboxes/index.tsx +77 -0
  87. package/src/inputs/DateInput/DateInput.stories.js +7 -0
  88. package/src/inputs/DateInput/DateInput.stories.playwright.json +72 -0
  89. package/src/inputs/DateInput/__stories__/Default.tsx +41 -0
  90. package/src/inputs/DateInput/index.tsx +130 -0
  91. package/src/inputs/FileInput/FileInput.stories.js +7 -0
  92. package/src/inputs/FileInput/FileInput.stories.playwright.json +75 -0
  93. package/src/inputs/FileInput/__stories__/Default.tsx +23 -0
  94. package/src/inputs/FileInput/index.tsx +76 -0
  95. package/src/inputs/Input/Input.stories.js +14 -0
  96. package/src/inputs/Input/Input.stories.playwright.json +376 -0
  97. package/src/inputs/Input/__stories__/AFM.tsx +24 -0
  98. package/src/inputs/Input/__stories__/Boolean.tsx +26 -0
  99. package/src/inputs/Input/__stories__/Default.tsx +25 -0
  100. package/src/inputs/Input/__stories__/IBAN.tsx +26 -0
  101. package/src/inputs/Input/__stories__/Integer.tsx +25 -0
  102. package/src/inputs/Input/__stories__/MobilePhone.tsx +24 -0
  103. package/src/inputs/Input/__stories__/PhoneNumber.tsx +24 -0
  104. package/src/inputs/Input/__stories__/PostalCode.tsx +25 -0
  105. package/src/inputs/Input/index.mdx +8 -0
  106. package/src/inputs/Input/index.tsx +62 -0
  107. package/src/inputs/Label/Label.stories.js +7 -0
  108. package/src/inputs/Label/Label.stories.playwright.json +40 -0
  109. package/src/inputs/Label/__stories__/Default.tsx +28 -0
  110. package/src/inputs/Label/index.mdx +0 -0
  111. package/src/inputs/Label/index.tsx +44 -0
  112. package/src/inputs/Radio/Radio.stories.js +7 -0
  113. package/src/inputs/Radio/Radio.stories.playwright.json +57 -0
  114. package/src/inputs/Radio/__stories__/Default.tsx +42 -0
  115. package/src/inputs/Radio/index.mdx +0 -0
  116. package/src/inputs/Radio/index.tsx +57 -0
  117. package/src/inputs/Select/Select.stories.js +7 -0
  118. package/src/inputs/Select/Select.stories.playwright.json +22 -0
  119. package/src/inputs/Select/__stories__/Default.tsx +47 -0
  120. package/src/inputs/Select/index.tsx +37 -0
  121. package/src/inputs/index.ts +7 -0
  122. package/src/installation.mdx +72 -0
  123. package/src/internal.ts +34 -0
  124. package/src/registry.js +134 -0
  125. package/src/types.tsx +110 -0
  126. package/src/utils.ts +78 -0
  127. package/src/validators/index.ts +203 -0
  128. package/src/validators/types.ts +2 -0
  129. package/src/validators/utils/afm.ts +37 -0
  130. package/src/validators/utils/file.ts +25 -0
  131. package/src/validators/utils/iban.ts +119 -0
  132. package/src/validators/utils/index.ts +94 -0
  133. package/src/validators/utils/int.ts +22 -0
  134. package/src/validators/utils/number.ts +18 -0
  135. package/src/validators/utils/phone.ts +120 -0
  136. package/src/validators/utils/postal_code.ts +33 -0
  137. package/src/validators/utils/uuid4.ts +21 -0
  138. package/src/validators/validators.spec.ts +122 -0
@@ -0,0 +1,887 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the Questions 1`] = `
4
+ <Questions
5
+ name="example"
6
+ onSubmit={[Function]}
7
+ steps={
8
+ Array [
9
+ Object {
10
+ "caption": "intro.caption",
11
+ "description": "intro.description",
12
+ "fields": Array [
13
+ Object {
14
+ "key": "name",
15
+ "label": Object {
16
+ "primary": "name.field.primary",
17
+ "secondary": "name.field.secondary",
18
+ },
19
+ "required": true,
20
+ "type": "string",
21
+ },
22
+ ],
23
+ "name": "intro",
24
+ "title": "intro.title",
25
+ },
26
+ Object {
27
+ "caption": "age.caption",
28
+ "description": "age.description",
29
+ "fields": Array [
30
+ Object {
31
+ "key": "dateOfBirth",
32
+ "label": Object {
33
+ "primary": "age.field.primary",
34
+ "secondary": "age.field.secondary",
35
+ },
36
+ "required": true,
37
+ "type": "number",
38
+ },
39
+ ],
40
+ "name": "age",
41
+ "title": "age.title",
42
+ },
43
+ ]
44
+ }
45
+ >
46
+ <Step
47
+ name="intro"
48
+ >
49
+ <StepTitle>
50
+ <StepTitleBase
51
+ caption="intro.caption"
52
+ title="intro.title"
53
+ >
54
+ <withDeprecationComponent>
55
+ <ForwardRef(BackLink)>
56
+ <ForwardRef(Base)
57
+ as="a"
58
+ className="govgr-back-link"
59
+ onClick={[Function]}
60
+ tabIndex={0}
61
+ >
62
+ <a
63
+ className="govgr-back-link"
64
+ onClick={[Function]}
65
+ tabIndex={0}
66
+ >
67
+ <ForwardRef(CaretIcon)>
68
+ <ForwardRef(SvgIcon)
69
+ className="govgr-caret--left"
70
+ >
71
+ <ForwardRef(Base)
72
+ aria-hidden="true"
73
+ as="svg"
74
+ className="govgr-caret--left govgr-svg-icon"
75
+ focusable="false"
76
+ viewBox="0 0 24 24"
77
+ >
78
+ <svg
79
+ aria-hidden="true"
80
+ className="govgr-caret--left govgr-svg-icon"
81
+ focusable="false"
82
+ viewBox="0 0 24 24"
83
+ >
84
+ <path
85
+ d="M18,22V2L6,12L18,22z"
86
+ />
87
+ </svg>
88
+ </ForwardRef(Base)>
89
+ </ForwardRef(SvgIcon)>
90
+ </ForwardRef(CaretIcon)>
91
+ Πίσω
92
+ </a>
93
+ </ForwardRef(Base)>
94
+ </ForwardRef(BackLink)>
95
+ </withDeprecationComponent>
96
+ <withDeprecationComponent>
97
+ <Component>
98
+ <withDeprecationComponent>
99
+ <Component>
100
+ <withDeprecationComponent>
101
+ <withDeprecationComponent>
102
+ <ForwardRef(HeadingCaption)>
103
+ <ForwardRef(Base)
104
+ as="span"
105
+ className="govgr-caption-l"
106
+ >
107
+ <span
108
+ className="govgr-caption-l"
109
+ >
110
+ intro.caption
111
+ </span>
112
+ </ForwardRef(Base)>
113
+ </ForwardRef(HeadingCaption)>
114
+ </withDeprecationComponent>
115
+ </withDeprecationComponent>
116
+ </Component>
117
+ </withDeprecationComponent>
118
+ <StepTitleHeading>
119
+ <withDeprecationComponent>
120
+ <Component>
121
+ <withDeprecationComponent
122
+ size="xl"
123
+ >
124
+ <Component
125
+ size="xl"
126
+ >
127
+ <ForwardRef(Heading)
128
+ size="xl"
129
+ >
130
+ <ForwardRef(Base)
131
+ as="h1"
132
+ className="govgr-heading-xl"
133
+ >
134
+ <h1
135
+ className="govgr-heading-xl"
136
+ >
137
+ intro.title
138
+ </h1>
139
+ </ForwardRef(Base)>
140
+ </ForwardRef(Heading)>
141
+ </Component>
142
+ </withDeprecationComponent>
143
+ </Component>
144
+ </withDeprecationComponent>
145
+ </StepTitleHeading>
146
+ </Component>
147
+ </withDeprecationComponent>
148
+ </StepTitleBase>
149
+ </StepTitle>
150
+ <StepQuote>
151
+ <ForwardRef(Paragraph)>
152
+ <ForwardRef(Base)
153
+ as="p"
154
+ className="govgr-body"
155
+ >
156
+ <p
157
+ className="govgr-body"
158
+ >
159
+ This is the intro
160
+ </p>
161
+ </ForwardRef(Base)>
162
+ </ForwardRef(Paragraph)>
163
+ </StepQuote>
164
+ <StepForm
165
+ submitButton={true}
166
+ >
167
+ <ForwardRef(FormBuilder)
168
+ fields={
169
+ Array [
170
+ Object {
171
+ "key": "name",
172
+ "label": Object {
173
+ "primary": "name.field.primary",
174
+ "secondary": "name.field.secondary",
175
+ },
176
+ "required": true,
177
+ "type": "string",
178
+ },
179
+ ]
180
+ }
181
+ onSubmit={[Function]}
182
+ >
183
+ <ForwardRef(FormBase)
184
+ criteriaMode="all"
185
+ fieldsMap={
186
+ Object {
187
+ "name": Object {
188
+ "key": "name",
189
+ "label": Object {
190
+ "primary": "name.field.primary",
191
+ "secondary": "name.field.secondary",
192
+ },
193
+ "required": true,
194
+ "type": "string",
195
+ },
196
+ }
197
+ }
198
+ grid={false}
199
+ initial={Object {}}
200
+ mode="onSubmit"
201
+ onSubmit={[Function]}
202
+ reValidateMode="onSubmit"
203
+ registerField={[Function]}
204
+ resolver={[Function]}
205
+ shouldFocusError={true}
206
+ >
207
+ <ForwardRef(Form)
208
+ grid={false}
209
+ onSubmit={[Function]}
210
+ >
211
+ <ForwardRef(Base)
212
+ as="form"
213
+ className="govgr-form"
214
+ onSubmit={[Function]}
215
+ >
216
+ <form
217
+ className="govgr-form"
218
+ onSubmit={[Function]}
219
+ >
220
+ <Field
221
+ key="name"
222
+ name="name"
223
+ >
224
+ <FieldBase
225
+ component={
226
+ Object {
227
+ "$$typeof": Symbol(react.forward_ref),
228
+ "render": [Function],
229
+ }
230
+ }
231
+ control={
232
+ Object {
233
+ "_defaultValues": Object {},
234
+ "_executeSchema": [Function],
235
+ "_fields": Object {
236
+ "name": Object {
237
+ "_f": Object {
238
+ "mount": true,
239
+ "name": "name",
240
+ "ref": <input
241
+ aria-required="true"
242
+ class="govgr-input"
243
+ control="[object Object]"
244
+ name="name"
245
+ type="text"
246
+ />,
247
+ },
248
+ },
249
+ },
250
+ "_formState": Object {
251
+ "dirtyFields": Object {},
252
+ "errors": Object {},
253
+ "isDirty": false,
254
+ "isSubmitSuccessful": false,
255
+ "isSubmitted": false,
256
+ "isSubmitting": false,
257
+ "isValid": false,
258
+ "isValidating": false,
259
+ "submitCount": 0,
260
+ "touchedFields": Object {},
261
+ },
262
+ "_formValues": Object {
263
+ "name": "",
264
+ },
265
+ "_getDirty": [Function],
266
+ "_getFieldArray": [Function],
267
+ "_getWatch": [Function],
268
+ "_names": Object {
269
+ "array": Set {},
270
+ "mount": Set {
271
+ "name",
272
+ },
273
+ "unMount": Set {},
274
+ "watch": Set {},
275
+ },
276
+ "_options": Object {
277
+ "criteriaMode": "all",
278
+ "defaultValues": Object {},
279
+ "mode": "onSubmit",
280
+ "reValidateMode": "onSubmit",
281
+ "resolver": [Function],
282
+ "shouldFocusError": true,
283
+ },
284
+ "_proxyFormState": Object {
285
+ "dirtyFields": false,
286
+ "errors": "all",
287
+ "isDirty": false,
288
+ "isValid": false,
289
+ "isValidating": false,
290
+ "touchedFields": false,
291
+ },
292
+ "_removeUnmounted": [Function],
293
+ "_stateFlags": Object {
294
+ "action": false,
295
+ "mount": true,
296
+ "watch": false,
297
+ },
298
+ "_subjects": Object {
299
+ "array": Object {
300
+ "next": [Function],
301
+ "observers": Array [],
302
+ "subscribe": [Function],
303
+ "unsubscribe": [Function],
304
+ },
305
+ "state": Object {
306
+ "next": [Function],
307
+ "observers": Array [
308
+ Object {
309
+ "next": [Function],
310
+ },
311
+ ],
312
+ "subscribe": [Function],
313
+ "unsubscribe": [Function],
314
+ },
315
+ "watch": Object {
316
+ "next": [Function],
317
+ "observers": Array [],
318
+ "subscribe": [Function],
319
+ "unsubscribe": [Function],
320
+ },
321
+ },
322
+ "_updateFieldArray": [Function],
323
+ "_updateValid": [Function],
324
+ "getFieldState": [Function],
325
+ "register": [Function],
326
+ "unregister": [Function],
327
+ }
328
+ }
329
+ controlled={false}
330
+ key="name"
331
+ label={
332
+ Object {
333
+ "primary": "name.field.primary",
334
+ "secondary": "name.field.secondary",
335
+ }
336
+ }
337
+ name="name"
338
+ register={[Function]}
339
+ required={true}
340
+ type="string"
341
+ >
342
+ <FieldContainer
343
+ label={
344
+ Object {
345
+ "primary": "name.field.primary",
346
+ "secondary": "name.field.secondary",
347
+ }
348
+ }
349
+ name="name"
350
+ >
351
+ <ForwardRef(Field)
352
+ error={false}
353
+ >
354
+ <ForwardRef(Grid)
355
+ className="govgr-field"
356
+ item={true}
357
+ lg={12}
358
+ md={12}
359
+ xl={12}
360
+ xs={12}
361
+ >
362
+ <ForwardRef(Base)
363
+ as="div"
364
+ className="govgr-field xs:govgr-grid__col-span-12 md:govgr-grid__col-span-12 lg:govgr-grid__col-span-12 xl:govgr-grid__col-span-12"
365
+ >
366
+ <div
367
+ className="govgr-field xs:govgr-grid__col-span-12 md:govgr-grid__col-span-12 lg:govgr-grid__col-span-12 xl:govgr-grid__col-span-12"
368
+ >
369
+ <ForwardRef(Label)>
370
+ <ForwardRef(Base)
371
+ as="label"
372
+ className="govgr-label"
373
+ >
374
+ <label
375
+ className="govgr-label"
376
+ >
377
+ <Label
378
+ label={
379
+ Object {
380
+ "primary": "name.field.primary",
381
+ "secondary": "name.field.secondary",
382
+ }
383
+ }
384
+ >
385
+ <ForwardRef(LabelTitle)
386
+ size="s"
387
+ >
388
+ <ForwardRef(Base)
389
+ as="span"
390
+ className="govgr-heading-s"
391
+ >
392
+ <span
393
+ className="govgr-heading-s"
394
+ >
395
+ name.field.primary
396
+ </span>
397
+ </ForwardRef(Base)>
398
+ </ForwardRef(LabelTitle)>
399
+ <ForwardRef(Hint)>
400
+ <ForwardRef(Base)
401
+ as="p"
402
+ className="govgr-hint"
403
+ >
404
+ <p
405
+ className="govgr-hint"
406
+ >
407
+ name.field.secondary
408
+ </p>
409
+ </ForwardRef(Base)>
410
+ </ForwardRef(Hint)>
411
+ </Label>
412
+ <ForwardRef(WrappedInput)
413
+ aria-required={true}
414
+ control={
415
+ Object {
416
+ "_defaultValues": Object {},
417
+ "_executeSchema": [Function],
418
+ "_fields": Object {
419
+ "name": Object {
420
+ "_f": Object {
421
+ "mount": true,
422
+ "name": "name",
423
+ "ref": <input
424
+ aria-required="true"
425
+ class="govgr-input"
426
+ control="[object Object]"
427
+ name="name"
428
+ type="text"
429
+ />,
430
+ },
431
+ },
432
+ },
433
+ "_formState": Object {
434
+ "dirtyFields": Object {},
435
+ "errors": Object {},
436
+ "isDirty": false,
437
+ "isSubmitSuccessful": false,
438
+ "isSubmitted": false,
439
+ "isSubmitting": false,
440
+ "isValid": false,
441
+ "isValidating": false,
442
+ "submitCount": 0,
443
+ "touchedFields": Object {},
444
+ },
445
+ "_formValues": Object {
446
+ "name": "",
447
+ },
448
+ "_getDirty": [Function],
449
+ "_getFieldArray": [Function],
450
+ "_getWatch": [Function],
451
+ "_names": Object {
452
+ "array": Set {},
453
+ "mount": Set {
454
+ "name",
455
+ },
456
+ "unMount": Set {},
457
+ "watch": Set {},
458
+ },
459
+ "_options": Object {
460
+ "criteriaMode": "all",
461
+ "defaultValues": Object {},
462
+ "mode": "onSubmit",
463
+ "reValidateMode": "onSubmit",
464
+ "resolver": [Function],
465
+ "shouldFocusError": true,
466
+ },
467
+ "_proxyFormState": Object {
468
+ "dirtyFields": false,
469
+ "errors": "all",
470
+ "isDirty": false,
471
+ "isValid": false,
472
+ "isValidating": false,
473
+ "touchedFields": false,
474
+ },
475
+ "_removeUnmounted": [Function],
476
+ "_stateFlags": Object {
477
+ "action": false,
478
+ "mount": true,
479
+ "watch": false,
480
+ },
481
+ "_subjects": Object {
482
+ "array": Object {
483
+ "next": [Function],
484
+ "observers": Array [],
485
+ "subscribe": [Function],
486
+ "unsubscribe": [Function],
487
+ },
488
+ "state": Object {
489
+ "next": [Function],
490
+ "observers": Array [
491
+ Object {
492
+ "next": [Function],
493
+ },
494
+ ],
495
+ "subscribe": [Function],
496
+ "unsubscribe": [Function],
497
+ },
498
+ "watch": Object {
499
+ "next": [Function],
500
+ "observers": Array [],
501
+ "subscribe": [Function],
502
+ "unsubscribe": [Function],
503
+ },
504
+ },
505
+ "_updateFieldArray": [Function],
506
+ "_updateValid": [Function],
507
+ "getFieldState": [Function],
508
+ "register": [Function],
509
+ "unregister": [Function],
510
+ }
511
+ }
512
+ disabled={false}
513
+ error={false}
514
+ extra={Object {}}
515
+ name="name"
516
+ onBlur={[Function]}
517
+ onChange={[Function]}
518
+ required={true}
519
+ type="string"
520
+ >
521
+ <ForwardRef(TextInput)
522
+ aria-required={true}
523
+ control={
524
+ Object {
525
+ "_defaultValues": Object {},
526
+ "_executeSchema": [Function],
527
+ "_fields": Object {
528
+ "name": Object {
529
+ "_f": Object {
530
+ "mount": true,
531
+ "name": "name",
532
+ "ref": <input
533
+ aria-required="true"
534
+ class="govgr-input"
535
+ control="[object Object]"
536
+ name="name"
537
+ type="text"
538
+ />,
539
+ },
540
+ },
541
+ },
542
+ "_formState": Object {
543
+ "dirtyFields": Object {},
544
+ "errors": Object {},
545
+ "isDirty": false,
546
+ "isSubmitSuccessful": false,
547
+ "isSubmitted": false,
548
+ "isSubmitting": false,
549
+ "isValid": false,
550
+ "isValidating": false,
551
+ "submitCount": 0,
552
+ "touchedFields": Object {},
553
+ },
554
+ "_formValues": Object {
555
+ "name": "",
556
+ },
557
+ "_getDirty": [Function],
558
+ "_getFieldArray": [Function],
559
+ "_getWatch": [Function],
560
+ "_names": Object {
561
+ "array": Set {},
562
+ "mount": Set {
563
+ "name",
564
+ },
565
+ "unMount": Set {},
566
+ "watch": Set {},
567
+ },
568
+ "_options": Object {
569
+ "criteriaMode": "all",
570
+ "defaultValues": Object {},
571
+ "mode": "onSubmit",
572
+ "reValidateMode": "onSubmit",
573
+ "resolver": [Function],
574
+ "shouldFocusError": true,
575
+ },
576
+ "_proxyFormState": Object {
577
+ "dirtyFields": false,
578
+ "errors": "all",
579
+ "isDirty": false,
580
+ "isValid": false,
581
+ "isValidating": false,
582
+ "touchedFields": false,
583
+ },
584
+ "_removeUnmounted": [Function],
585
+ "_stateFlags": Object {
586
+ "action": false,
587
+ "mount": true,
588
+ "watch": false,
589
+ },
590
+ "_subjects": Object {
591
+ "array": Object {
592
+ "next": [Function],
593
+ "observers": Array [],
594
+ "subscribe": [Function],
595
+ "unsubscribe": [Function],
596
+ },
597
+ "state": Object {
598
+ "next": [Function],
599
+ "observers": Array [
600
+ Object {
601
+ "next": [Function],
602
+ },
603
+ ],
604
+ "subscribe": [Function],
605
+ "unsubscribe": [Function],
606
+ },
607
+ "watch": Object {
608
+ "next": [Function],
609
+ "observers": Array [],
610
+ "subscribe": [Function],
611
+ "unsubscribe": [Function],
612
+ },
613
+ },
614
+ "_updateFieldArray": [Function],
615
+ "_updateValid": [Function],
616
+ "getFieldState": [Function],
617
+ "register": [Function],
618
+ "unregister": [Function],
619
+ }
620
+ }
621
+ disabled={false}
622
+ error={false}
623
+ name="name"
624
+ onBlur={[Function]}
625
+ onChange={[Function]}
626
+ type="text"
627
+ >
628
+ <ForwardRef(Base)
629
+ aria-required={true}
630
+ as="input"
631
+ className="govgr-input"
632
+ control={
633
+ Object {
634
+ "_defaultValues": Object {},
635
+ "_executeSchema": [Function],
636
+ "_fields": Object {
637
+ "name": Object {
638
+ "_f": Object {
639
+ "mount": true,
640
+ "name": "name",
641
+ "ref": <input
642
+ aria-required="true"
643
+ class="govgr-input"
644
+ control="[object Object]"
645
+ name="name"
646
+ type="text"
647
+ />,
648
+ },
649
+ },
650
+ },
651
+ "_formState": Object {
652
+ "dirtyFields": Object {},
653
+ "errors": Object {},
654
+ "isDirty": false,
655
+ "isSubmitSuccessful": false,
656
+ "isSubmitted": false,
657
+ "isSubmitting": false,
658
+ "isValid": false,
659
+ "isValidating": false,
660
+ "submitCount": 0,
661
+ "touchedFields": Object {},
662
+ },
663
+ "_formValues": Object {
664
+ "name": "",
665
+ },
666
+ "_getDirty": [Function],
667
+ "_getFieldArray": [Function],
668
+ "_getWatch": [Function],
669
+ "_names": Object {
670
+ "array": Set {},
671
+ "mount": Set {
672
+ "name",
673
+ },
674
+ "unMount": Set {},
675
+ "watch": Set {},
676
+ },
677
+ "_options": Object {
678
+ "criteriaMode": "all",
679
+ "defaultValues": Object {},
680
+ "mode": "onSubmit",
681
+ "reValidateMode": "onSubmit",
682
+ "resolver": [Function],
683
+ "shouldFocusError": true,
684
+ },
685
+ "_proxyFormState": Object {
686
+ "dirtyFields": false,
687
+ "errors": "all",
688
+ "isDirty": false,
689
+ "isValid": false,
690
+ "isValidating": false,
691
+ "touchedFields": false,
692
+ },
693
+ "_removeUnmounted": [Function],
694
+ "_stateFlags": Object {
695
+ "action": false,
696
+ "mount": true,
697
+ "watch": false,
698
+ },
699
+ "_subjects": Object {
700
+ "array": Object {
701
+ "next": [Function],
702
+ "observers": Array [],
703
+ "subscribe": [Function],
704
+ "unsubscribe": [Function],
705
+ },
706
+ "state": Object {
707
+ "next": [Function],
708
+ "observers": Array [
709
+ Object {
710
+ "next": [Function],
711
+ },
712
+ ],
713
+ "subscribe": [Function],
714
+ "unsubscribe": [Function],
715
+ },
716
+ "watch": Object {
717
+ "next": [Function],
718
+ "observers": Array [],
719
+ "subscribe": [Function],
720
+ "unsubscribe": [Function],
721
+ },
722
+ },
723
+ "_updateFieldArray": [Function],
724
+ "_updateValid": [Function],
725
+ "getFieldState": [Function],
726
+ "register": [Function],
727
+ "unregister": [Function],
728
+ }
729
+ }
730
+ disabled={false}
731
+ name="name"
732
+ onBlur={[Function]}
733
+ onChange={[Function]}
734
+ type="text"
735
+ >
736
+ <input
737
+ aria-required={true}
738
+ className="govgr-input"
739
+ control={
740
+ Object {
741
+ "_defaultValues": Object {},
742
+ "_executeSchema": [Function],
743
+ "_fields": Object {
744
+ "name": Object {
745
+ "_f": Object {
746
+ "mount": true,
747
+ "name": "name",
748
+ "ref": <input
749
+ aria-required="true"
750
+ class="govgr-input"
751
+ control="[object Object]"
752
+ name="name"
753
+ type="text"
754
+ />,
755
+ },
756
+ },
757
+ },
758
+ "_formState": Object {
759
+ "dirtyFields": Object {},
760
+ "errors": Object {},
761
+ "isDirty": false,
762
+ "isSubmitSuccessful": false,
763
+ "isSubmitted": false,
764
+ "isSubmitting": false,
765
+ "isValid": false,
766
+ "isValidating": false,
767
+ "submitCount": 0,
768
+ "touchedFields": Object {},
769
+ },
770
+ "_formValues": Object {
771
+ "name": "",
772
+ },
773
+ "_getDirty": [Function],
774
+ "_getFieldArray": [Function],
775
+ "_getWatch": [Function],
776
+ "_names": Object {
777
+ "array": Set {},
778
+ "mount": Set {
779
+ "name",
780
+ },
781
+ "unMount": Set {},
782
+ "watch": Set {},
783
+ },
784
+ "_options": Object {
785
+ "criteriaMode": "all",
786
+ "defaultValues": Object {},
787
+ "mode": "onSubmit",
788
+ "reValidateMode": "onSubmit",
789
+ "resolver": [Function],
790
+ "shouldFocusError": true,
791
+ },
792
+ "_proxyFormState": Object {
793
+ "dirtyFields": false,
794
+ "errors": "all",
795
+ "isDirty": false,
796
+ "isValid": false,
797
+ "isValidating": false,
798
+ "touchedFields": false,
799
+ },
800
+ "_removeUnmounted": [Function],
801
+ "_stateFlags": Object {
802
+ "action": false,
803
+ "mount": true,
804
+ "watch": false,
805
+ },
806
+ "_subjects": Object {
807
+ "array": Object {
808
+ "next": [Function],
809
+ "observers": Array [],
810
+ "subscribe": [Function],
811
+ "unsubscribe": [Function],
812
+ },
813
+ "state": Object {
814
+ "next": [Function],
815
+ "observers": Array [
816
+ Object {
817
+ "next": [Function],
818
+ },
819
+ ],
820
+ "subscribe": [Function],
821
+ "unsubscribe": [Function],
822
+ },
823
+ "watch": Object {
824
+ "next": [Function],
825
+ "observers": Array [],
826
+ "subscribe": [Function],
827
+ "unsubscribe": [Function],
828
+ },
829
+ },
830
+ "_updateFieldArray": [Function],
831
+ "_updateValid": [Function],
832
+ "getFieldState": [Function],
833
+ "register": [Function],
834
+ "unregister": [Function],
835
+ }
836
+ }
837
+ disabled={false}
838
+ name="name"
839
+ onBlur={[Function]}
840
+ onChange={[Function]}
841
+ type="text"
842
+ />
843
+ </ForwardRef(Base)>
844
+ </ForwardRef(TextInput)>
845
+ </ForwardRef(WrappedInput)>
846
+ </label>
847
+ </ForwardRef(Base)>
848
+ </ForwardRef(Label)>
849
+ </div>
850
+ </ForwardRef(Base)>
851
+ </ForwardRef(Grid)>
852
+ </ForwardRef(Field)>
853
+ </FieldContainer>
854
+ </FieldBase>
855
+ </Field>
856
+ <withDeprecationComponent
857
+ type="submit"
858
+ >
859
+ <ForwardRef(Button)
860
+ type="submit"
861
+ >
862
+ <ForwardRef(Base)
863
+ as="button"
864
+ className="govgr-btn-primary govgr-btn"
865
+ type="submit"
866
+ >
867
+ <button
868
+ className="govgr-btn-primary govgr-btn"
869
+ type="submit"
870
+ >
871
+ Συνέχεια
872
+ </button>
873
+ </ForwardRef(Base)>
874
+ </ForwardRef(Button)>
875
+ </withDeprecationComponent>
876
+ </form>
877
+ </ForwardRef(Base)>
878
+ </ForwardRef(Form)>
879
+ </ForwardRef(FormBase)>
880
+ </ForwardRef(FormBuilder)>
881
+ </StepForm>
882
+ </Step>
883
+ <Step
884
+ name="age"
885
+ />
886
+ </Questions>
887
+ `;