@digigov/form 0.10.7 → 0.10.8

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 (672) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/{dist/Field → Field}/FieldBase.d.ts +0 -0
  3. package/{dist/Field → Field}/FieldBase.js +0 -0
  4. package/{dist/Field → Field}/FieldBaseContainer.d.ts +0 -0
  5. package/{dist/Field → Field}/FieldBaseContainer.js +0 -0
  6. package/{dist/Field → Field}/FieldConditional.d.ts +0 -0
  7. package/{dist/Field → Field}/FieldConditional.js +0 -0
  8. package/{dist/Field → Field}/index.d.ts +0 -0
  9. package/{dist/Field → Field}/index.js +0 -0
  10. package/{dist/Field → Field}/index.mdx +0 -0
  11. package/{dist/Field → Field}/types.d.ts +0 -0
  12. package/{dist/Field → Field}/types.js +0 -0
  13. package/{dist/Field → Field}/utils.d.ts +0 -0
  14. package/{dist/Field → Field}/utils.js +0 -0
  15. package/{dist/FieldArray → FieldArray}/FieldArray.stories.d.ts +1 -0
  16. package/{dist/FieldArray → FieldArray}/FieldArray.stories.js +2 -1
  17. package/{dist/FieldArray → FieldArray}/FieldArray.stories.playwright.json +0 -0
  18. package/{dist/FieldArray → FieldArray}/__stories__/Default.d.ts +0 -0
  19. package/{dist/FieldArray → FieldArray}/__stories__/Default.js +0 -0
  20. package/{dist/FieldArray → FieldArray}/__stories__/WithExactLength.d.ts +0 -0
  21. package/{dist/FieldArray → FieldArray}/__stories__/WithExactLength.js +0 -0
  22. package/{dist/FieldArray → FieldArray}/index.d.ts +0 -0
  23. package/{dist/FieldArray → FieldArray}/index.js +0 -0
  24. package/{dist/FieldObject → FieldObject}/index.d.ts +0 -0
  25. package/{dist/FieldObject → FieldObject}/index.js +0 -0
  26. package/{dist/Fieldset → Fieldset}/FieldsetWithContext.d.ts +0 -0
  27. package/{dist/Fieldset → Fieldset}/FieldsetWithContext.js +0 -0
  28. package/{dist/Fieldset → Fieldset}/index.d.ts +0 -0
  29. package/{dist/Fieldset → Fieldset}/index.js +0 -0
  30. package/{dist/Fieldset → Fieldset}/types.d.ts +0 -0
  31. package/{dist/Fieldset → Fieldset}/types.js +0 -0
  32. package/{dist/Form.stories.d.ts → Form.stories.d.ts} +0 -0
  33. package/{dist/Form.stories.js → Form.stories.js} +0 -0
  34. package/{dist/Form.stories.playwright.json → Form.stories.playwright.json} +0 -0
  35. package/{dist/FormBuilder → FormBuilder}/FormBuilder.d.ts +0 -0
  36. package/{dist/FormBuilder → FormBuilder}/FormBuilder.js +0 -0
  37. package/{dist/FormBuilder → FormBuilder}/FormBuilder.mdx +0 -0
  38. package/{dist/FormBuilder → FormBuilder}/FormBuilder.stories.d.ts +1 -0
  39. package/{dist/FormBuilder → FormBuilder}/FormBuilder.stories.js +2 -1
  40. package/{dist/FormBuilder → FormBuilder}/FormBuilder.stories.playwright.json +0 -0
  41. package/{dist/FormBuilder → FormBuilder}/__stories__/Default.d.ts +0 -0
  42. package/{dist/FormBuilder → FormBuilder}/__stories__/Default.js +0 -0
  43. package/{dist/FormBuilder → FormBuilder}/index.d.ts +0 -0
  44. package/{dist/FormBuilder → FormBuilder}/index.js +0 -0
  45. package/{dist/FormContext.d.ts → FormContext.d.ts} +0 -0
  46. package/{dist/FormContext.js → FormContext.js} +0 -0
  47. package/{dist/LICENSE → LICENSE} +0 -0
  48. package/{dist/MultiplicityField → MultiplicityField}/MultiplicityField.mdx +0 -0
  49. package/{dist/MultiplicityField → MultiplicityField}/MultiplicityField.stories.d.ts +1 -0
  50. package/{dist/MultiplicityField → MultiplicityField}/MultiplicityField.stories.js +2 -1
  51. package/{dist/MultiplicityField → MultiplicityField}/MultiplicityField.stories.playwright.json +0 -0
  52. package/{dist/MultiplicityField → MultiplicityField}/__stories__/Default.d.ts +0 -0
  53. package/{dist/MultiplicityField → MultiplicityField}/__stories__/Default.js +0 -0
  54. package/{dist/MultiplicityField → MultiplicityField}/__stories__/PreviewDisplay.d.ts +0 -0
  55. package/{dist/MultiplicityField → MultiplicityField}/__stories__/PreviewDisplay.js +0 -0
  56. package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithExactLength.d.ts +0 -0
  57. package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithExactLength.js +0 -0
  58. package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMaxLength.d.ts +0 -0
  59. package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMaxLength.js +0 -0
  60. package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMinAndMaxLength.d.ts +0 -0
  61. package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMinAndMaxLength.js +0 -0
  62. package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMinLength.d.ts +0 -0
  63. package/{dist/MultiplicityField → MultiplicityField}/__stories__/WithMinLength.js +0 -0
  64. package/{dist/MultiplicityField → MultiplicityField}/add-objects.d.ts +0 -0
  65. package/{dist/MultiplicityField → MultiplicityField}/add-objects.js +0 -0
  66. package/{dist/MultiplicityField → MultiplicityField}/index.d.ts +0 -0
  67. package/{dist/MultiplicityField → MultiplicityField}/index.js +0 -0
  68. package/{dist/Questions → Questions}/Questions.d.ts +0 -0
  69. package/{dist/Questions → Questions}/Questions.js +0 -0
  70. package/Questions/Questions.stories.d.ts +8 -0
  71. package/Questions/Questions.stories.js +31 -0
  72. package/{dist/Questions → Questions}/QuestionsContext.d.ts +0 -0
  73. package/{dist/Questions → Questions}/QuestionsContext.js +0 -0
  74. package/{dist/Questions → Questions}/Step/ReviewStep.d.ts +0 -0
  75. package/{dist/Questions → Questions}/Step/ReviewStep.js +0 -0
  76. package/{dist/Questions → Questions}/Step/Step.d.ts +0 -0
  77. package/{dist/Questions → Questions}/Step/Step.js +0 -0
  78. package/{dist/Questions → Questions}/Step/StepArrayReview.d.ts +0 -0
  79. package/{dist/Questions → Questions}/Step/StepArrayReview.js +0 -0
  80. package/{dist/Questions → Questions}/Step/StepContext.d.ts +0 -0
  81. package/{dist/Questions → Questions}/Step/StepContext.js +0 -0
  82. package/{dist/Questions → Questions}/Step/StepDescription.d.ts +0 -0
  83. package/{dist/Questions → Questions}/Step/StepDescription.js +0 -0
  84. package/{dist/Questions → Questions}/Step/StepForm.d.ts +0 -0
  85. package/{dist/Questions → Questions}/Step/StepForm.js +0 -0
  86. package/{dist/Questions → Questions}/Step/StepQuote.d.ts +0 -0
  87. package/{dist/Questions → Questions}/Step/StepQuote.js +0 -0
  88. package/{dist/Questions → Questions}/Step/StepTitle.d.ts +0 -0
  89. package/{dist/Questions → Questions}/Step/StepTitle.js +0 -0
  90. package/{dist/Questions → Questions}/Step/getAddMoreFields.d.ts +0 -0
  91. package/{dist/Questions → Questions}/Step/getAddMoreFields.js +0 -0
  92. package/{dist/Questions → Questions}/Step/index.d.ts +0 -0
  93. package/{dist/Questions → Questions}/Step/index.js +0 -0
  94. package/{dist/Questions → Questions}/Step/types.d.ts +0 -0
  95. package/{dist/Questions → Questions}/Step/types.js +0 -0
  96. package/{dist/Questions → Questions}/__snapshots__/index.spec.tsx.snap +0 -0
  97. package/Questions/__stories__/Default.d.ts +2 -0
  98. package/Questions/__stories__/Default.js +130 -0
  99. package/{dist/Questions → Questions}/getNextStep.d.ts +0 -0
  100. package/{dist/Questions → Questions}/getNextStep.js +0 -0
  101. package/{dist/Questions → Questions}/index.d.ts +0 -0
  102. package/{dist/Questions → Questions}/index.js +0 -0
  103. package/Questions/index.mdx +418 -0
  104. package/{dist/Questions → Questions}/index.spec.d.ts +0 -0
  105. package/{dist/Questions → Questions}/index.spec.js +0 -0
  106. package/{dist/Questions → Questions}/types.d.ts +0 -0
  107. package/{dist/Questions → Questions}/types.js +0 -0
  108. package/{dist/__stories__ → __stories__}/AutoCompleteField.d.ts +0 -0
  109. package/{dist/__stories__ → __stories__}/AutoCompleteField.js +0 -0
  110. package/{dist/__stories__ → __stories__}/IntField.d.ts +0 -0
  111. package/{dist/__stories__ → __stories__}/IntField.js +0 -0
  112. package/{dist/create-simple-form.mdx → create-simple-form.mdx} +0 -0
  113. package/{dist/es → es}/Field/FieldBase.js +0 -0
  114. package/{dist/es → es}/Field/FieldBaseContainer.js +0 -0
  115. package/{dist/es → es}/Field/FieldConditional.js +0 -0
  116. package/{dist/es → es}/Field/index.js +0 -0
  117. package/{dist/es → es}/Field/index.mdx +0 -0
  118. package/{dist/es → es}/Field/types.js +0 -0
  119. package/{dist/es → es}/Field/utils.js +0 -0
  120. package/{src → es}/FieldArray/FieldArray.stories.js +2 -1
  121. package/{dist/es → es}/FieldArray/FieldArray.stories.playwright.json +0 -0
  122. package/{dist/es → es}/FieldArray/__stories__/Default.js +0 -0
  123. package/{dist/es → es}/FieldArray/__stories__/WithExactLength.js +0 -0
  124. package/{dist/es → es}/FieldArray/index.js +0 -0
  125. package/{dist/es → es}/FieldObject/index.js +0 -0
  126. package/{dist/es → es}/Fieldset/FieldsetWithContext.js +0 -0
  127. package/{dist/es → es}/Fieldset/index.js +0 -0
  128. package/{dist/es → es}/Fieldset/types.js +0 -0
  129. package/{dist/es → es}/Form.stories.js +0 -0
  130. package/{dist/es → es}/Form.stories.playwright.json +0 -0
  131. package/{dist/es → es}/FormBuilder/FormBuilder.js +0 -0
  132. package/{dist/es → es}/FormBuilder/FormBuilder.mdx +0 -0
  133. package/{src → es}/FormBuilder/FormBuilder.stories.js +2 -1
  134. package/{dist/es → es}/FormBuilder/FormBuilder.stories.playwright.json +0 -0
  135. package/{dist/es → es}/FormBuilder/__stories__/Default.js +0 -0
  136. package/{dist/es → es}/FormBuilder/index.js +0 -0
  137. package/{dist/es → es}/FormContext.js +0 -0
  138. package/{dist/es → es}/MultiplicityField/MultiplicityField.mdx +0 -0
  139. package/{src → es}/MultiplicityField/MultiplicityField.stories.js +2 -1
  140. package/{dist/es → es}/MultiplicityField/MultiplicityField.stories.playwright.json +0 -0
  141. package/{dist/es → es}/MultiplicityField/__stories__/Default.js +0 -0
  142. package/{dist/es → es}/MultiplicityField/__stories__/PreviewDisplay.js +0 -0
  143. package/{dist/es → es}/MultiplicityField/__stories__/WithExactLength.js +0 -0
  144. package/{dist/es → es}/MultiplicityField/__stories__/WithMaxLength.js +0 -0
  145. package/{dist/es → es}/MultiplicityField/__stories__/WithMinAndMaxLength.js +0 -0
  146. package/{dist/es → es}/MultiplicityField/__stories__/WithMinLength.js +0 -0
  147. package/{dist/es → es}/MultiplicityField/add-objects.js +0 -0
  148. package/{dist/es → es}/MultiplicityField/index.js +0 -0
  149. package/{dist/es → es}/Questions/Questions.js +0 -0
  150. package/es/Questions/Questions.stories.js +7 -0
  151. package/{dist/es → es}/Questions/QuestionsContext.js +0 -0
  152. package/{dist/es → es}/Questions/Step/ReviewStep.js +0 -0
  153. package/{dist/es → es}/Questions/Step/Step.js +0 -0
  154. package/{dist/es → es}/Questions/Step/StepArrayReview.js +0 -0
  155. package/{dist/es → es}/Questions/Step/StepContext.js +0 -0
  156. package/{dist/es → es}/Questions/Step/StepDescription.js +0 -0
  157. package/{dist/es → es}/Questions/Step/StepForm.js +0 -0
  158. package/{dist/es → es}/Questions/Step/StepQuote.js +0 -0
  159. package/{dist/es → es}/Questions/Step/StepTitle.js +0 -0
  160. package/{dist/es → es}/Questions/Step/getAddMoreFields.js +0 -0
  161. package/{dist/es → es}/Questions/Step/index.js +0 -0
  162. package/{dist/es → es}/Questions/Step/types.js +0 -0
  163. package/{dist/es → es}/Questions/__snapshots__/index.spec.tsx.snap +0 -0
  164. package/es/Questions/__stories__/Default.js +103 -0
  165. package/{dist/es → es}/Questions/getNextStep.js +0 -0
  166. package/{dist/es → es}/Questions/index.js +0 -0
  167. package/es/Questions/index.mdx +418 -0
  168. package/{dist/es → es}/Questions/index.spec.js +0 -0
  169. package/{dist/es → es}/Questions/types.js +0 -0
  170. package/{dist/es → es}/__stories__/AutoCompleteField.js +0 -0
  171. package/{dist/es → es}/__stories__/IntField.js +0 -0
  172. package/{dist/es → es}/create-simple-form.mdx +0 -0
  173. package/{dist/es → es}/index.js +0 -0
  174. package/{dist/es → es}/index.mdx +0 -0
  175. package/{dist/es → es}/inputs/AutoComplete/index.js +0 -0
  176. package/{src → es}/inputs/Checkboxes/Checkboxes.stories.js +2 -1
  177. package/{dist/es → es}/inputs/Checkboxes/Checkboxes.stories.playwright.json +0 -0
  178. package/{dist/es → es}/inputs/Checkboxes/__stories__/Default.js +0 -0
  179. package/{dist/es → es}/inputs/Checkboxes/index.js +0 -0
  180. package/{dist/es → es}/inputs/Checkboxes/index.mdx +0 -0
  181. package/{src → es}/inputs/DateInput/DateInput.stories.js +2 -1
  182. package/{dist/es → es}/inputs/DateInput/DateInput.stories.playwright.json +0 -0
  183. package/{dist/es → es}/inputs/DateInput/__stories__/Default.js +0 -0
  184. package/{dist/es → es}/inputs/DateInput/index.js +0 -0
  185. package/{src → es}/inputs/FileInput/FileInput.stories.js +2 -1
  186. package/{dist/es → es}/inputs/FileInput/FileInput.stories.playwright.json +0 -0
  187. package/{dist/es → es}/inputs/FileInput/__stories__/Default.js +0 -0
  188. package/{dist/es → es}/inputs/FileInput/index.js +0 -0
  189. package/{src → es}/inputs/Input/Input.stories.js +2 -1
  190. package/{dist/es → es}/inputs/Input/Input.stories.playwright.json +0 -0
  191. package/{dist/es → es}/inputs/Input/__stories__/AFM.js +0 -0
  192. package/{dist/es → es}/inputs/Input/__stories__/Boolean.js +0 -0
  193. package/{dist/es → es}/inputs/Input/__stories__/Default.js +0 -0
  194. package/{dist/es → es}/inputs/Input/__stories__/IBAN.js +0 -0
  195. package/{dist/es → es}/inputs/Input/__stories__/Integer.js +0 -0
  196. package/{dist/es → es}/inputs/Input/__stories__/MobilePhone.js +0 -0
  197. package/{dist/es → es}/inputs/Input/__stories__/PhoneNumber.js +0 -0
  198. package/{dist/es → es}/inputs/Input/__stories__/PostalCode.js +0 -0
  199. package/{dist/es → es}/inputs/Input/index.js +0 -0
  200. package/{dist/es → es}/inputs/Input/index.mdx +0 -0
  201. package/{src → es}/inputs/Label/Label.stories.js +2 -1
  202. package/{dist/es → es}/inputs/Label/Label.stories.playwright.json +0 -0
  203. package/{dist/es → es}/inputs/Label/__stories__/Default.js +0 -0
  204. package/{dist/es → es}/inputs/Label/index.js +0 -0
  205. package/{dist/es → es}/inputs/Label/index.mdx +0 -0
  206. package/{src → es}/inputs/Radio/Radio.stories.js +2 -1
  207. package/{dist/es → es}/inputs/Radio/Radio.stories.playwright.json +0 -0
  208. package/{dist/es → es}/inputs/Radio/__stories__/Default.js +0 -0
  209. package/{dist/es → es}/inputs/Radio/index.js +0 -0
  210. package/{dist/es → es}/inputs/Radio/index.mdx +0 -0
  211. package/{src → es}/inputs/Select/Select.stories.js +2 -1
  212. package/{dist/es → es}/inputs/Select/Select.stories.playwright.json +0 -0
  213. package/{dist/es → es}/inputs/Select/__stories__/Default.js +0 -0
  214. package/{dist/es → es}/inputs/Select/index.js +0 -0
  215. package/{dist/es → es}/inputs/index.js +0 -0
  216. package/{dist/es → es}/installation.mdx +0 -0
  217. package/{dist/es → es}/internal.js +0 -0
  218. package/{dist/es → es}/registry.js +0 -0
  219. package/{dist/es → es}/types.js +0 -0
  220. package/{dist/es → es}/utils.js +0 -0
  221. package/{dist/es → es}/validators/index.js +0 -0
  222. package/{dist/es → es}/validators/types.js +0 -0
  223. package/{dist/es → es}/validators/utils/afm.js +0 -0
  224. package/{dist/es → es}/validators/utils/file.js +0 -0
  225. package/{dist/es → es}/validators/utils/iban.js +0 -0
  226. package/{dist/es → es}/validators/utils/index.js +0 -0
  227. package/{dist/es → es}/validators/utils/int.js +0 -0
  228. package/{dist/es → es}/validators/utils/number.js +0 -0
  229. package/{dist/es → es}/validators/utils/phone.js +0 -0
  230. package/{dist/es → es}/validators/utils/postal_code.js +0 -0
  231. package/{dist/es → es}/validators/utils/uuid4.js +0 -0
  232. package/{dist/es → es}/validators/validators.spec.js +0 -0
  233. package/{dist/esm → esm}/Field/FieldBase.js +0 -0
  234. package/{dist/esm → esm}/Field/FieldBaseContainer.js +0 -0
  235. package/{dist/esm → esm}/Field/FieldConditional.js +0 -0
  236. package/{dist/esm → esm}/Field/index.js +0 -0
  237. package/{dist/esm → esm}/Field/index.mdx +0 -0
  238. package/{dist/esm → esm}/Field/types.js +0 -0
  239. package/{dist/esm → esm}/Field/utils.js +0 -0
  240. package/{dist/esm → esm}/FieldArray/FieldArray.stories.js +2 -1
  241. package/{dist/esm → esm}/FieldArray/FieldArray.stories.playwright.json +0 -0
  242. package/{dist/esm → esm}/FieldArray/__stories__/Default.js +0 -0
  243. package/{dist/esm → esm}/FieldArray/__stories__/WithExactLength.js +0 -0
  244. package/{dist/esm → esm}/FieldArray/index.js +0 -0
  245. package/{dist/esm → esm}/FieldObject/index.js +0 -0
  246. package/{dist/esm → esm}/Fieldset/FieldsetWithContext.js +0 -0
  247. package/{dist/esm → esm}/Fieldset/index.js +0 -0
  248. package/{dist/esm → esm}/Fieldset/types.js +0 -0
  249. package/{dist/esm → esm}/Form.stories.js +0 -0
  250. package/{dist/esm → esm}/Form.stories.playwright.json +0 -0
  251. package/{dist/esm → esm}/FormBuilder/FormBuilder.js +0 -0
  252. package/{dist/esm → esm}/FormBuilder/FormBuilder.mdx +0 -0
  253. package/esm/FormBuilder/FormBuilder.stories.js +7 -0
  254. package/{dist/esm → esm}/FormBuilder/FormBuilder.stories.playwright.json +0 -0
  255. package/{dist/esm → esm}/FormBuilder/__stories__/Default.js +0 -0
  256. package/{dist/esm → esm}/FormBuilder/index.js +0 -0
  257. package/{dist/esm → esm}/FormContext.js +0 -0
  258. package/{dist/esm → esm}/MultiplicityField/MultiplicityField.mdx +0 -0
  259. package/{dist/es → esm}/MultiplicityField/MultiplicityField.stories.js +2 -1
  260. package/{dist/esm → esm}/MultiplicityField/MultiplicityField.stories.playwright.json +0 -0
  261. package/{dist/esm → esm}/MultiplicityField/__stories__/Default.js +0 -0
  262. package/{dist/esm → esm}/MultiplicityField/__stories__/PreviewDisplay.js +0 -0
  263. package/{dist/esm → esm}/MultiplicityField/__stories__/WithExactLength.js +0 -0
  264. package/{dist/esm → esm}/MultiplicityField/__stories__/WithMaxLength.js +0 -0
  265. package/{dist/esm → esm}/MultiplicityField/__stories__/WithMinAndMaxLength.js +0 -0
  266. package/{dist/esm → esm}/MultiplicityField/__stories__/WithMinLength.js +0 -0
  267. package/{dist/esm → esm}/MultiplicityField/add-objects.js +0 -0
  268. package/{dist/esm → esm}/MultiplicityField/index.js +0 -0
  269. package/{dist/esm → esm}/Questions/Questions.js +0 -0
  270. package/esm/Questions/Questions.stories.js +7 -0
  271. package/{dist/esm → esm}/Questions/QuestionsContext.js +0 -0
  272. package/{dist/esm → esm}/Questions/Step/ReviewStep.js +0 -0
  273. package/{dist/esm → esm}/Questions/Step/Step.js +0 -0
  274. package/{dist/esm → esm}/Questions/Step/StepArrayReview.js +0 -0
  275. package/{dist/esm → esm}/Questions/Step/StepContext.js +0 -0
  276. package/{dist/esm → esm}/Questions/Step/StepDescription.js +0 -0
  277. package/{dist/esm → esm}/Questions/Step/StepForm.js +0 -0
  278. package/{dist/esm → esm}/Questions/Step/StepQuote.js +0 -0
  279. package/{dist/esm → esm}/Questions/Step/StepTitle.js +0 -0
  280. package/{dist/esm → esm}/Questions/Step/getAddMoreFields.js +0 -0
  281. package/{dist/esm → esm}/Questions/Step/index.js +0 -0
  282. package/{dist/esm → esm}/Questions/Step/types.js +0 -0
  283. package/{dist/esm → esm}/Questions/__snapshots__/index.spec.tsx.snap +0 -0
  284. package/esm/Questions/__stories__/Default.js +103 -0
  285. package/{dist/esm → esm}/Questions/getNextStep.js +0 -0
  286. package/{dist/esm → esm}/Questions/index.js +0 -0
  287. package/esm/Questions/index.mdx +418 -0
  288. package/{dist/esm → esm}/Questions/index.spec.js +0 -0
  289. package/{dist/esm → esm}/Questions/types.js +0 -0
  290. package/{dist/esm → esm}/__stories__/AutoCompleteField.js +0 -0
  291. package/{dist/esm → esm}/__stories__/IntField.js +0 -0
  292. package/{dist/esm → esm}/create-simple-form.mdx +0 -0
  293. package/{dist/esm → esm}/index.js +1 -1
  294. package/{dist/esm → esm}/index.mdx +0 -0
  295. package/{dist/esm → esm}/inputs/AutoComplete/index.js +0 -0
  296. package/{dist/es → esm}/inputs/Checkboxes/Checkboxes.stories.js +2 -1
  297. package/{dist/esm → esm}/inputs/Checkboxes/Checkboxes.stories.playwright.json +0 -0
  298. package/{dist/esm → esm}/inputs/Checkboxes/__stories__/Default.js +0 -0
  299. package/{dist/esm → esm}/inputs/Checkboxes/index.js +0 -0
  300. package/{dist/esm → esm}/inputs/Checkboxes/index.mdx +0 -0
  301. package/{dist/esm → esm}/inputs/DateInput/DateInput.stories.js +2 -1
  302. package/{dist/esm → esm}/inputs/DateInput/DateInput.stories.playwright.json +0 -0
  303. package/{dist/esm → esm}/inputs/DateInput/__stories__/Default.js +0 -0
  304. package/{dist/esm → esm}/inputs/DateInput/index.js +0 -0
  305. package/{dist/es → esm}/inputs/FileInput/FileInput.stories.js +2 -1
  306. package/{dist/esm → esm}/inputs/FileInput/FileInput.stories.playwright.json +0 -0
  307. package/{dist/esm → esm}/inputs/FileInput/__stories__/Default.js +0 -0
  308. package/{dist/esm → esm}/inputs/FileInput/index.js +0 -0
  309. package/{dist/es → esm}/inputs/Input/Input.stories.js +2 -1
  310. package/{dist/esm → esm}/inputs/Input/Input.stories.playwright.json +0 -0
  311. package/{dist/esm → esm}/inputs/Input/__stories__/AFM.js +0 -0
  312. package/{dist/esm → esm}/inputs/Input/__stories__/Boolean.js +0 -0
  313. package/{dist/esm → esm}/inputs/Input/__stories__/Default.js +0 -0
  314. package/{dist/esm → esm}/inputs/Input/__stories__/IBAN.js +0 -0
  315. package/{dist/esm → esm}/inputs/Input/__stories__/Integer.js +0 -0
  316. package/{dist/esm → esm}/inputs/Input/__stories__/MobilePhone.js +0 -0
  317. package/{dist/esm → esm}/inputs/Input/__stories__/PhoneNumber.js +0 -0
  318. package/{dist/esm → esm}/inputs/Input/__stories__/PostalCode.js +0 -0
  319. package/{dist/esm → esm}/inputs/Input/index.js +0 -0
  320. package/{dist/esm → esm}/inputs/Input/index.mdx +0 -0
  321. package/{dist/es → esm}/inputs/Label/Label.stories.js +2 -1
  322. package/{dist/esm → esm}/inputs/Label/Label.stories.playwright.json +0 -0
  323. package/{dist/esm → esm}/inputs/Label/__stories__/Default.js +0 -0
  324. package/{dist/esm → esm}/inputs/Label/index.js +0 -0
  325. package/{dist/esm → esm}/inputs/Label/index.mdx +0 -0
  326. package/{dist/es → esm}/inputs/Radio/Radio.stories.js +2 -1
  327. package/{dist/esm → esm}/inputs/Radio/Radio.stories.playwright.json +0 -0
  328. package/{dist/esm → esm}/inputs/Radio/__stories__/Default.js +0 -0
  329. package/{dist/esm → esm}/inputs/Radio/index.js +0 -0
  330. package/{dist/esm → esm}/inputs/Radio/index.mdx +0 -0
  331. package/{dist/es → esm}/inputs/Select/Select.stories.js +2 -1
  332. package/{dist/esm → esm}/inputs/Select/Select.stories.playwright.json +0 -0
  333. package/{dist/esm → esm}/inputs/Select/__stories__/Default.js +0 -0
  334. package/{dist/esm → esm}/inputs/Select/index.js +0 -0
  335. package/{dist/esm → esm}/inputs/index.js +0 -0
  336. package/{dist/esm → esm}/installation.mdx +0 -0
  337. package/{dist/esm → esm}/internal.js +0 -0
  338. package/{dist/esm → esm}/registry.js +0 -0
  339. package/{dist/esm → esm}/types.js +0 -0
  340. package/{dist/esm → esm}/utils.js +0 -0
  341. package/{dist/esm → esm}/validators/index.js +0 -0
  342. package/{dist/esm → esm}/validators/types.js +0 -0
  343. package/{dist/esm → esm}/validators/utils/afm.js +0 -0
  344. package/{dist/esm → esm}/validators/utils/file.js +0 -0
  345. package/{dist/esm → esm}/validators/utils/iban.js +0 -0
  346. package/{dist/esm → esm}/validators/utils/index.js +0 -0
  347. package/{dist/esm → esm}/validators/utils/int.js +0 -0
  348. package/{dist/esm → esm}/validators/utils/number.js +0 -0
  349. package/{dist/esm → esm}/validators/utils/phone.js +0 -0
  350. package/{dist/esm → esm}/validators/utils/postal_code.js +0 -0
  351. package/{dist/esm → esm}/validators/utils/uuid4.js +0 -0
  352. package/{dist/esm → esm}/validators/validators.spec.js +0 -0
  353. package/{dist/index.d.ts → index.d.ts} +0 -0
  354. package/{dist/index.js → index.js} +0 -0
  355. package/{dist/index.mdx → index.mdx} +0 -0
  356. package/{dist/inputs → inputs}/AutoComplete/index.d.ts +0 -0
  357. package/{dist/inputs → inputs}/AutoComplete/index.js +0 -0
  358. package/{dist/inputs → inputs}/Checkboxes/Checkboxes.stories.d.ts +1 -0
  359. package/{dist/inputs → inputs}/Checkboxes/Checkboxes.stories.js +2 -1
  360. package/{dist/inputs → inputs}/Checkboxes/Checkboxes.stories.playwright.json +0 -0
  361. package/{dist/inputs → inputs}/Checkboxes/__stories__/Default.d.ts +0 -0
  362. package/{dist/inputs → inputs}/Checkboxes/__stories__/Default.js +0 -0
  363. package/{dist/inputs → inputs}/Checkboxes/index.d.ts +0 -0
  364. package/{dist/inputs → inputs}/Checkboxes/index.js +0 -0
  365. package/{dist/inputs → inputs}/Checkboxes/index.mdx +0 -0
  366. package/{dist/inputs → inputs}/DateInput/DateInput.stories.d.ts +1 -0
  367. package/{dist/inputs → inputs}/DateInput/DateInput.stories.js +2 -1
  368. package/{dist/inputs → inputs}/DateInput/DateInput.stories.playwright.json +0 -0
  369. package/{dist/inputs → inputs}/DateInput/__stories__/Default.d.ts +0 -0
  370. package/{dist/inputs → inputs}/DateInput/__stories__/Default.js +0 -0
  371. package/{dist/inputs → inputs}/DateInput/index.d.ts +0 -0
  372. package/{dist/inputs → inputs}/DateInput/index.js +0 -0
  373. package/{dist/inputs → inputs}/FileInput/FileInput.stories.d.ts +1 -0
  374. package/{dist/inputs → inputs}/FileInput/FileInput.stories.js +2 -1
  375. package/{dist/inputs → inputs}/FileInput/FileInput.stories.playwright.json +0 -0
  376. package/{dist/inputs → inputs}/FileInput/__stories__/Default.d.ts +0 -0
  377. package/{dist/inputs → inputs}/FileInput/__stories__/Default.js +0 -0
  378. package/{dist/inputs → inputs}/FileInput/index.d.ts +0 -0
  379. package/{dist/inputs → inputs}/FileInput/index.js +0 -0
  380. package/{dist/inputs → inputs}/Input/Input.stories.d.ts +1 -0
  381. package/{dist/inputs → inputs}/Input/Input.stories.js +2 -1
  382. package/{dist/inputs → inputs}/Input/Input.stories.playwright.json +0 -0
  383. package/{dist/inputs → inputs}/Input/__stories__/AFM.d.ts +0 -0
  384. package/{dist/inputs → inputs}/Input/__stories__/AFM.js +0 -0
  385. package/{dist/inputs → inputs}/Input/__stories__/Boolean.d.ts +0 -0
  386. package/{dist/inputs → inputs}/Input/__stories__/Boolean.js +0 -0
  387. package/{dist/inputs → inputs}/Input/__stories__/Default.d.ts +0 -0
  388. package/{dist/inputs → inputs}/Input/__stories__/Default.js +0 -0
  389. package/{dist/inputs → inputs}/Input/__stories__/IBAN.d.ts +0 -0
  390. package/{dist/inputs → inputs}/Input/__stories__/IBAN.js +0 -0
  391. package/{dist/inputs → inputs}/Input/__stories__/Integer.d.ts +0 -0
  392. package/{dist/inputs → inputs}/Input/__stories__/Integer.js +0 -0
  393. package/{dist/inputs → inputs}/Input/__stories__/MobilePhone.d.ts +0 -0
  394. package/{dist/inputs → inputs}/Input/__stories__/MobilePhone.js +0 -0
  395. package/{dist/inputs → inputs}/Input/__stories__/PhoneNumber.d.ts +0 -0
  396. package/{dist/inputs → inputs}/Input/__stories__/PhoneNumber.js +0 -0
  397. package/{dist/inputs → inputs}/Input/__stories__/PostalCode.d.ts +0 -0
  398. package/{dist/inputs → inputs}/Input/__stories__/PostalCode.js +0 -0
  399. package/{dist/inputs → inputs}/Input/index.d.ts +0 -0
  400. package/{dist/inputs → inputs}/Input/index.js +0 -0
  401. package/{dist/inputs → inputs}/Input/index.mdx +0 -0
  402. package/{dist/inputs → inputs}/Label/Label.stories.d.ts +1 -0
  403. package/{dist/inputs → inputs}/Label/Label.stories.js +2 -1
  404. package/{dist/inputs → inputs}/Label/Label.stories.playwright.json +0 -0
  405. package/{dist/inputs → inputs}/Label/__stories__/Default.d.ts +0 -0
  406. package/{dist/inputs → inputs}/Label/__stories__/Default.js +0 -0
  407. package/{dist/inputs → inputs}/Label/index.d.ts +0 -0
  408. package/{dist/inputs → inputs}/Label/index.js +0 -0
  409. package/{dist/inputs → inputs}/Label/index.mdx +0 -0
  410. package/{dist/inputs → inputs}/Radio/Radio.stories.d.ts +1 -0
  411. package/{dist/inputs → inputs}/Radio/Radio.stories.js +2 -1
  412. package/{dist/inputs → inputs}/Radio/Radio.stories.playwright.json +0 -0
  413. package/{dist/inputs → inputs}/Radio/__stories__/Default.d.ts +0 -0
  414. package/{dist/inputs → inputs}/Radio/__stories__/Default.js +0 -0
  415. package/{dist/inputs → inputs}/Radio/index.d.ts +0 -0
  416. package/{dist/inputs → inputs}/Radio/index.js +0 -0
  417. package/{dist/inputs → inputs}/Radio/index.mdx +0 -0
  418. package/{dist/inputs → inputs}/Select/Select.stories.d.ts +1 -0
  419. package/{dist/inputs → inputs}/Select/Select.stories.js +2 -1
  420. package/{dist/inputs → inputs}/Select/Select.stories.playwright.json +0 -0
  421. package/{dist/inputs → inputs}/Select/__stories__/Default.d.ts +0 -0
  422. package/{dist/inputs → inputs}/Select/__stories__/Default.js +0 -0
  423. package/{dist/inputs → inputs}/Select/index.d.ts +0 -0
  424. package/{dist/inputs → inputs}/Select/index.js +0 -0
  425. package/{dist/inputs → inputs}/index.d.ts +0 -0
  426. package/{dist/inputs → inputs}/index.js +0 -0
  427. package/{dist/installation.mdx → installation.mdx} +0 -0
  428. package/{dist/internal.d.ts → internal.d.ts} +0 -0
  429. package/{dist/internal.js → internal.js} +0 -0
  430. package/package.json +10 -31
  431. package/{dist/registry.d.ts → registry.d.ts} +0 -0
  432. package/{dist/registry.js → registry.js} +0 -0
  433. package/{dist/types.d.ts → types.d.ts} +0 -0
  434. package/{dist/types.js → types.js} +0 -0
  435. package/{dist/utils.d.ts → utils.d.ts} +0 -0
  436. package/{dist/utils.js → utils.js} +0 -0
  437. package/{dist/validators → validators}/index.d.ts +0 -0
  438. package/{dist/validators → validators}/index.js +0 -0
  439. package/{dist/validators → validators}/types.d.ts +0 -0
  440. package/{dist/validators → validators}/types.js +0 -0
  441. package/{dist/validators → validators}/utils/afm.d.ts +0 -0
  442. package/{dist/validators → validators}/utils/afm.js +0 -0
  443. package/{dist/validators → validators}/utils/file.d.ts +0 -0
  444. package/{dist/validators → validators}/utils/file.js +0 -0
  445. package/{dist/validators → validators}/utils/iban.d.ts +0 -0
  446. package/{dist/validators → validators}/utils/iban.js +0 -0
  447. package/{dist/validators → validators}/utils/index.d.ts +0 -0
  448. package/{dist/validators → validators}/utils/index.js +0 -0
  449. package/{dist/validators → validators}/utils/int.d.ts +0 -0
  450. package/{dist/validators → validators}/utils/int.js +0 -0
  451. package/{dist/validators → validators}/utils/number.d.ts +0 -0
  452. package/{dist/validators → validators}/utils/number.js +0 -0
  453. package/{dist/validators → validators}/utils/phone.d.ts +0 -0
  454. package/{dist/validators → validators}/utils/phone.js +0 -0
  455. package/{dist/validators → validators}/utils/postal_code.d.ts +0 -0
  456. package/{dist/validators → validators}/utils/postal_code.js +0 -0
  457. package/{dist/validators → validators}/utils/uuid4.d.ts +0 -0
  458. package/{dist/validators → validators}/utils/uuid4.js +0 -0
  459. package/{dist/validators → validators}/validators.spec.d.ts +0 -0
  460. package/{dist/validators → validators}/validators.spec.js +0 -0
  461. package/.eslintrc.js +0 -3
  462. package/.prettierrc.js +0 -3
  463. package/CHANGELOG.json +0 -1392
  464. package/coverage/clover.xml +0 -859
  465. package/coverage/coverage-final.json +0 -51
  466. package/coverage/lcov-report/base.css +0 -224
  467. package/coverage/lcov-report/block-navigation.js +0 -87
  468. package/coverage/lcov-report/favicon.png +0 -0
  469. package/coverage/lcov-report/index.html +0 -386
  470. package/coverage/lcov-report/prettify.css +0 -1
  471. package/coverage/lcov-report/prettify.js +0 -2
  472. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  473. package/coverage/lcov-report/sorter.js +0 -196
  474. package/coverage/lcov-report/src/Field/FieldBase.tsx.html +0 -379
  475. package/coverage/lcov-report/src/Field/FieldConditional.tsx.html +0 -310
  476. package/coverage/lcov-report/src/Field/FieldContainer.tsx.html +0 -256
  477. package/coverage/lcov-report/src/Field/index.html +0 -176
  478. package/coverage/lcov-report/src/Field/index.tsx.html +0 -352
  479. package/coverage/lcov-report/src/Field/utils.ts.html +0 -559
  480. package/coverage/lcov-report/src/FieldArray/index.html +0 -116
  481. package/coverage/lcov-report/src/FieldArray/index.tsx.html +0 -319
  482. package/coverage/lcov-report/src/FieldObject/index.html +0 -116
  483. package/coverage/lcov-report/src/FieldObject/index.tsx.html +0 -364
  484. package/coverage/lcov-report/src/Fieldset/index.html +0 -116
  485. package/coverage/lcov-report/src/Fieldset/index.tsx.html +0 -202
  486. package/coverage/lcov-report/src/FormBuilder/FormBuilder.tsx.html +0 -580
  487. package/coverage/lcov-report/src/FormBuilder/index.html +0 -131
  488. package/coverage/lcov-report/src/FormBuilder/index.tsx.html +0 -94
  489. package/coverage/lcov-report/src/FormContext.tsx.html +0 -109
  490. package/coverage/lcov-report/src/MultiplicityField/add-objects.tsx.html +0 -637
  491. package/coverage/lcov-report/src/MultiplicityField/index.html +0 -131
  492. package/coverage/lcov-report/src/MultiplicityField/index.tsx.html +0 -580
  493. package/coverage/lcov-report/src/Questions/Questions.tsx.html +0 -307
  494. package/coverage/lcov-report/src/Questions/QuestionsContext.tsx.html +0 -112
  495. package/coverage/lcov-report/src/Questions/Step/ReviewStep.tsx.html +0 -274
  496. package/coverage/lcov-report/src/Questions/Step/Step.tsx.html +0 -286
  497. package/coverage/lcov-report/src/Questions/Step/StepArrayReview.tsx.html +0 -289
  498. package/coverage/lcov-report/src/Questions/Step/StepContext.tsx.html +0 -148
  499. package/coverage/lcov-report/src/Questions/Step/StepDescription.tsx.html +0 -184
  500. package/coverage/lcov-report/src/Questions/Step/StepForm.tsx.html +0 -265
  501. package/coverage/lcov-report/src/Questions/Step/StepQuote.tsx.html +0 -109
  502. package/coverage/lcov-report/src/Questions/Step/StepTitle.tsx.html +0 -265
  503. package/coverage/lcov-report/src/Questions/Step/getAddMoreFields.tsx.html +0 -169
  504. package/coverage/lcov-report/src/Questions/Step/index.html +0 -266
  505. package/coverage/lcov-report/src/Questions/Step/index.ts.html +0 -124
  506. package/coverage/lcov-report/src/Questions/Step/types.tsx.html +0 -181
  507. package/coverage/lcov-report/src/Questions/getNextStep.tsx.html +0 -157
  508. package/coverage/lcov-report/src/Questions/index.html +0 -161
  509. package/coverage/lcov-report/src/Questions/index.tsx.html +0 -100
  510. package/coverage/lcov-report/src/index.html +0 -176
  511. package/coverage/lcov-report/src/index.ts.html +0 -94
  512. package/coverage/lcov-report/src/inputs/Checkboxes/index.html +0 -116
  513. package/coverage/lcov-report/src/inputs/Checkboxes/index.tsx.html +0 -307
  514. package/coverage/lcov-report/src/inputs/DateInput/index.html +0 -116
  515. package/coverage/lcov-report/src/inputs/DateInput/index.tsx.html +0 -475
  516. package/coverage/lcov-report/src/inputs/FileInput/index.html +0 -116
  517. package/coverage/lcov-report/src/inputs/FileInput/index.tsx.html +0 -313
  518. package/coverage/lcov-report/src/inputs/Input/index.html +0 -116
  519. package/coverage/lcov-report/src/inputs/Input/index.tsx.html +0 -271
  520. package/coverage/lcov-report/src/inputs/Label/index.html +0 -116
  521. package/coverage/lcov-report/src/inputs/Label/index.tsx.html +0 -217
  522. package/coverage/lcov-report/src/inputs/Radio/index.html +0 -116
  523. package/coverage/lcov-report/src/inputs/Radio/index.tsx.html +0 -256
  524. package/coverage/lcov-report/src/inputs/Select/index.html +0 -116
  525. package/coverage/lcov-report/src/inputs/Select/index.tsx.html +0 -196
  526. package/coverage/lcov-report/src/inputs/index.html +0 -116
  527. package/coverage/lcov-report/src/inputs/index.ts.html +0 -106
  528. package/coverage/lcov-report/src/internal.ts.html +0 -184
  529. package/coverage/lcov-report/src/types.tsx.html +0 -406
  530. package/coverage/lcov-report/src/utils.ts.html +0 -319
  531. package/coverage/lcov-report/src/validators/index.html +0 -116
  532. package/coverage/lcov-report/src/validators/index.ts.html +0 -694
  533. package/coverage/lcov-report/src/validators/utils/afm.ts.html +0 -196
  534. package/coverage/lcov-report/src/validators/utils/file.ts.html +0 -160
  535. package/coverage/lcov-report/src/validators/utils/iban.ts.html +0 -442
  536. package/coverage/lcov-report/src/validators/utils/index.html +0 -236
  537. package/coverage/lcov-report/src/validators/utils/index.ts.html +0 -367
  538. package/coverage/lcov-report/src/validators/utils/int.ts.html +0 -151
  539. package/coverage/lcov-report/src/validators/utils/number.ts.html +0 -139
  540. package/coverage/lcov-report/src/validators/utils/phone.ts.html +0 -445
  541. package/coverage/lcov-report/src/validators/utils/postal_code.ts.html +0 -184
  542. package/coverage/lcov-report/src/validators/utils/uuid4.ts.html +0 -148
  543. package/coverage/lcov.info +0 -1969
  544. package/dist/CHANGELOG.md +0 -432
  545. package/dist/Questions/index.mdx +0 -13
  546. package/dist/README.md +0 -0
  547. package/dist/es/FieldArray/FieldArray.stories.js +0 -7
  548. package/dist/es/FormBuilder/FormBuilder.stories.js +0 -6
  549. package/dist/es/Questions/index.mdx +0 -13
  550. package/dist/es/inputs/DateInput/DateInput.stories.js +0 -6
  551. package/dist/esm/FormBuilder/FormBuilder.stories.js +0 -6
  552. package/dist/esm/MultiplicityField/MultiplicityField.stories.js +0 -11
  553. package/dist/esm/Questions/index.mdx +0 -13
  554. package/dist/esm/inputs/Checkboxes/Checkboxes.stories.js +0 -6
  555. package/dist/esm/inputs/FileInput/FileInput.stories.js +0 -6
  556. package/dist/esm/inputs/Input/Input.stories.js +0 -13
  557. package/dist/esm/inputs/Label/Label.stories.js +0 -6
  558. package/dist/esm/inputs/Radio/Radio.stories.js +0 -6
  559. package/dist/esm/inputs/Select/Select.stories.js +0 -6
  560. package/dist/package.json +0 -31
  561. package/docs/index.mdx +0 -6
  562. package/form.build.log +0 -16
  563. package/src/Field/FieldBase.tsx +0 -99
  564. package/src/Field/FieldBaseContainer.tsx +0 -57
  565. package/src/Field/FieldConditional.tsx +0 -75
  566. package/src/Field/index.mdx +0 -6
  567. package/src/Field/index.tsx +0 -92
  568. package/src/Field/types.tsx +0 -102
  569. package/src/Field/utils.ts +0 -164
  570. package/src/FieldArray/FieldArray.stories.playwright.json +0 -353
  571. package/src/FieldArray/__stories__/Default.tsx +0 -95
  572. package/src/FieldArray/__stories__/WithExactLength.tsx +0 -95
  573. package/src/FieldArray/index.tsx +0 -83
  574. package/src/FieldObject/index.tsx +0 -92
  575. package/src/Fieldset/FieldsetWithContext.tsx +0 -41
  576. package/src/Fieldset/index.tsx +0 -40
  577. package/src/Fieldset/types.tsx +0 -6
  578. package/src/Form.stories.js +0 -5
  579. package/src/Form.stories.playwright.json +0 -143
  580. package/src/FormBuilder/FormBuilder.mdx +0 -271
  581. package/src/FormBuilder/FormBuilder.stories.playwright.json +0 -52
  582. package/src/FormBuilder/FormBuilder.tsx +0 -165
  583. package/src/FormBuilder/__stories__/Default.tsx +0 -23
  584. package/src/FormBuilder/index.tsx +0 -3
  585. package/src/FormContext.tsx +0 -8
  586. package/src/MultiplicityField/MultiplicityField.mdx +0 -580
  587. package/src/MultiplicityField/MultiplicityField.stories.playwright.json +0 -1370
  588. package/src/MultiplicityField/__stories__/Default.tsx +0 -100
  589. package/src/MultiplicityField/__stories__/PreviewDisplay.tsx +0 -160
  590. package/src/MultiplicityField/__stories__/WithExactLength.tsx +0 -99
  591. package/src/MultiplicityField/__stories__/WithMaxLength.tsx +0 -102
  592. package/src/MultiplicityField/__stories__/WithMinAndMaxLength.tsx +0 -103
  593. package/src/MultiplicityField/__stories__/WithMinLength.tsx +0 -102
  594. package/src/MultiplicityField/add-objects.tsx +0 -186
  595. package/src/MultiplicityField/index.tsx +0 -166
  596. package/src/Questions/Questions.tsx +0 -74
  597. package/src/Questions/QuestionsContext.tsx +0 -9
  598. package/src/Questions/Step/ReviewStep.tsx +0 -63
  599. package/src/Questions/Step/Step.tsx +0 -67
  600. package/src/Questions/Step/StepArrayReview.tsx +0 -68
  601. package/src/Questions/Step/StepContext.tsx +0 -21
  602. package/src/Questions/Step/StepDescription.tsx +0 -33
  603. package/src/Questions/Step/StepForm.tsx +0 -60
  604. package/src/Questions/Step/StepQuote.tsx +0 -8
  605. package/src/Questions/Step/StepTitle.tsx +0 -60
  606. package/src/Questions/Step/getAddMoreFields.tsx +0 -28
  607. package/src/Questions/Step/index.ts +0 -13
  608. package/src/Questions/Step/types.tsx +0 -32
  609. package/src/Questions/__snapshots__/index.spec.tsx.snap +0 -887
  610. package/src/Questions/getNextStep.tsx +0 -24
  611. package/src/Questions/index.mdx +0 -13
  612. package/src/Questions/index.spec.tsx +0 -72
  613. package/src/Questions/index.tsx +0 -5
  614. package/src/Questions/types.tsx +0 -25
  615. package/src/__stories__/AutoCompleteField.tsx +0 -45
  616. package/src/__stories__/IntField.tsx +0 -38
  617. package/src/create-simple-form.mdx +0 -518
  618. package/src/index.mdx +0 -44
  619. package/src/index.ts +0 -3
  620. package/src/inputs/AutoComplete/index.tsx +0 -85
  621. package/src/inputs/Checkboxes/Checkboxes.stories.playwright.json +0 -69
  622. package/src/inputs/Checkboxes/__stories__/Default.tsx +0 -39
  623. package/src/inputs/Checkboxes/index.mdx +0 -0
  624. package/src/inputs/Checkboxes/index.tsx +0 -77
  625. package/src/inputs/DateInput/DateInput.stories.playwright.json +0 -72
  626. package/src/inputs/DateInput/__stories__/Default.tsx +0 -41
  627. package/src/inputs/DateInput/index.tsx +0 -130
  628. package/src/inputs/FileInput/FileInput.stories.playwright.json +0 -75
  629. package/src/inputs/FileInput/__stories__/Default.tsx +0 -23
  630. package/src/inputs/FileInput/index.tsx +0 -76
  631. package/src/inputs/Input/Input.stories.playwright.json +0 -376
  632. package/src/inputs/Input/__stories__/AFM.tsx +0 -24
  633. package/src/inputs/Input/__stories__/Boolean.tsx +0 -26
  634. package/src/inputs/Input/__stories__/Default.tsx +0 -25
  635. package/src/inputs/Input/__stories__/IBAN.tsx +0 -26
  636. package/src/inputs/Input/__stories__/Integer.tsx +0 -25
  637. package/src/inputs/Input/__stories__/MobilePhone.tsx +0 -24
  638. package/src/inputs/Input/__stories__/PhoneNumber.tsx +0 -24
  639. package/src/inputs/Input/__stories__/PostalCode.tsx +0 -25
  640. package/src/inputs/Input/index.mdx +0 -8
  641. package/src/inputs/Input/index.tsx +0 -62
  642. package/src/inputs/Label/Label.stories.playwright.json +0 -40
  643. package/src/inputs/Label/__stories__/Default.tsx +0 -28
  644. package/src/inputs/Label/index.mdx +0 -0
  645. package/src/inputs/Label/index.tsx +0 -44
  646. package/src/inputs/Radio/Radio.stories.playwright.json +0 -57
  647. package/src/inputs/Radio/__stories__/Default.tsx +0 -42
  648. package/src/inputs/Radio/index.mdx +0 -0
  649. package/src/inputs/Radio/index.tsx +0 -57
  650. package/src/inputs/Select/Select.stories.playwright.json +0 -22
  651. package/src/inputs/Select/__stories__/Default.tsx +0 -47
  652. package/src/inputs/Select/index.tsx +0 -37
  653. package/src/inputs/index.ts +0 -7
  654. package/src/installation.mdx +0 -72
  655. package/src/internal.ts +0 -34
  656. package/src/registry.js +0 -134
  657. package/src/types.tsx +0 -110
  658. package/src/utils.ts +0 -78
  659. package/src/validators/index.ts +0 -203
  660. package/src/validators/types.ts +0 -2
  661. package/src/validators/utils/afm.ts +0 -37
  662. package/src/validators/utils/file.ts +0 -25
  663. package/src/validators/utils/iban.ts +0 -119
  664. package/src/validators/utils/index.ts +0 -94
  665. package/src/validators/utils/int.ts +0 -22
  666. package/src/validators/utils/number.ts +0 -18
  667. package/src/validators/utils/phone.ts +0 -120
  668. package/src/validators/utils/postal_code.ts +0 -33
  669. package/src/validators/utils/uuid4.ts +0 -21
  670. package/src/validators/validators.spec.ts +0 -122
  671. package/tsconfig.json +0 -14
  672. package/tsconfig.production.json +0 -49
@@ -1,580 +0,0 @@
1
- ---
2
- id: ask-users-recursive
3
- title: Ask users for recursive data
4
- ---
5
-
6
- import LeadText from "@site/src/components/LeadText";
7
-
8
- <LeadText>Multiplicity & FieldArray fields allow users to input data described
9
- by a particular schema for an arbitrary number of times until they are
10
- done. It can be used to input a fixed, a minimum, and a maximum
11
- length of instances.</LeadText>
12
-
13
- ## What we are trying to achieve
14
-
15
- First off, a bit of history. This field was developed to meet the needs of several
16
- GOV.GR services. They needed an easy way to add multiple objects in an array of
17
- data while they could still keep the usability of a web form, submitting data and
18
- validating the fields as well. As part of the prototype phase, an initial
19
- implementation was designed and used in Dilosi for several document templates.
20
- It used a single button to add new items in the array and opened a modal,
21
- blocking the rest of the user interface and prompting users to input data.
22
- During this process, the `FieldArray` component was conceived.
23
-
24
- Meanwhile, Digigov SDK got these requirements and started working on a more
25
- versatile version of this feature. The new field was developed from scratch as
26
- an accessible and guided way to fill arrays with objects. Also, we wanted to
27
- provide an easy-to-use component for developers. The input fields that will
28
- collect data for each item in the array are described by a JSON schema, then
29
- provided to `@digigov/form` to manage internally. These fields describe
30
- properties for a data entity like a citizen and their personal details, and it
31
- can be reused internally multiple times by `@digigov/form` to generate data
32
- objects based on this schema.
33
-
34
- ## Accessibility & usability
35
-
36
- We aim to have semantically correct and valid forms, and as a result we cannot
37
- mix form-related HTML elements, like `form`, `input`, `label` with generic ones,
38
- eg. `div`, cards or other custom components. For example, if we try to add a
39
- paragraph element inside a form, React will throw warnings in our console.
40
- Instead of creating complex interfaces that try to do too much too fast, Digigov
41
- Form recommends using forms in their original way, filling and validating
42
- inputs, then submitting the form as a whole.
43
-
44
- Adding another dimension to this problem, we should make sure our interfaces
45
- are entirely accessible to screen readers and other accessibility tools. This is
46
- the reason we decided to design the flow to be as guided and recoverable as
47
- possible. Forms and fields should read like well-written pieces of text and
48
- make sense to the users. While validation fails, the system provides users with
49
- meaningful error messages and instructs them on how to fix the validation errors to
50
- proceed. Once the validation is successful, the flow can proceed with
51
- submmitting data. In any case, it is imperative to provide meaningful
52
- information to the users at each step. Thus, we should avoid the use of 🌈
53
- “magic“ ✨ UX solutions that presume users have developed digital skills and
54
- most of the time are used for expert use cases.
55
-
56
- Initially, we used an add button that users clicked to explicitly create with
57
- their action a new item in the array, but in this way we cannot programmatically
58
- ensure that users still have stuff to enter to the system. What we decided to do
59
- is to turn this state check into a direct question that will be a part of the final
60
- form. We created a question that will make sure that users always provide the
61
- form with their intention.
62
-
63
- Both FieldArray and MultiplicityField will result in the same data output when
64
- users submit the form, which is an `array` that contains `objects` described by
65
- the `extra.fields` key. The component internally uses the
66
- [useFieldArray](https://www.react-hook-form.com/api/usefieldarray) hook from
67
- react-hook-form.
68
-
69
- :::caution
70
-
71
- We strongly recommend that services concerning citizens use `Multiplicity`, instead
72
- of `FieldArray`.
73
-
74
- Please be careful when and how you use a `FieldArray` component. Many users are not
75
- familiar with modern user interface design practices, and it is likely they will
76
- be confused. If you choose to use it, please provide meaningful hints in the
77
- `extra.label.object.nothing_added` and `extra.label.object.title_added` keys.
78
-
79
- :::
80
-
81
-
82
- Users should fill in data as this schema dictates, and every time
83
- they add something, we should ask them if they want to continue adding or escape
84
- the loop. We could also add some limits to the number of items users create,
85
- resulting in an array with specific cardinality. By doing so, we can validate the
86
- form state at any time, regardless of whether a user is in the process of data input
87
- or reviewing what they've added. In any case, the form should guide users
88
- through steps and validation errors, and avoid giving too much freedom of
89
- action that could lead to estranged users losing the intended path or their
90
- focus.
91
-
92
- Those are a lot of things to keep in mind, but luckily we've got you covered. How
93
- can we code this feature as part of a Digigov form, you ask?
94
-
95
- ## Introducing the Multiplicity field
96
-
97
- To deal with these features, we have decided to create a composite field that uses
98
- custom object schema for the input fields alongside some internal helpers to
99
- make sure that the flow is usable from beginning to end. In reality, this
100
- field is in fact considered as a normal single key-value pair by the
101
- `@digigov/form`, same as every other input type. The only difference is that the
102
- type of the value will be an `Array` instead of any other primitive used for a
103
- field type, like `string`, `number`, etc. Inside the array, each one of the
104
- indexes will be an object with nested field values.
105
-
106
- This field is the most complex component we currently offer, and it uses the
107
- [useFieldArray](https://www.react-hook-form.com/api/usefieldarray) hook from
108
- react-hook-form under the hood. First, let's take a look at what it looks like, and then we can
109
- break down its functionality and how you can use it.
110
-
111
- ```jsx live
112
- import React from 'react';
113
- import Form, { Field } from '@digigov/form';
114
- import Button from '@digigov/ui/core/Button';
115
-
116
- export default function SimpleForm() {
117
- return <Form>
118
- <Field
119
- key="vehicles"
120
- name="vehicles"
121
- label={{ primary: "Vehicles" }}
122
- type="array"
123
- extra={{
124
- border: true,
125
- label: {
126
- object: {
127
- title: 'Vehicle',
128
- title_added: 'The vehicles you have already added',
129
- add: 'Add',
130
- delete: 'Remove',
131
- },
132
- question: {
133
- title: 'Do you want to add more vehicles?',
134
- objectLabel: {
135
- primary: 'Add one more of your vehicles',
136
- secondary: 'Fill in the details below and then click “Add“.',
137
- },
138
- yes: 'Yes',
139
- no: 'No',
140
- },
141
- },
142
- of: {
143
- type: 'object',
144
- label: {
145
- primary: 'Vehicle details',
146
- secondary: 'See and change the details of a vehicle',
147
- },
148
- extra: {
149
- fields: [
150
- {
151
- key: 'registration_date',
152
- type: 'date',
153
- required: true,
154
- label: { primary: 'Registration date' },
155
- },
156
- {
157
- key: 'make',
158
- type: 'string',
159
- required: true,
160
- label: {
161
- primary: 'Make',
162
- },
163
- },
164
- {
165
- key: 'model',
166
- type: 'string',
167
- required: true,
168
- label: {
169
- primary: 'Model',
170
- },
171
- },
172
- ],
173
- },
174
- },
175
- }}
176
- required
177
- />
178
- <Button type="submit">Submit</Button>
179
- </Form>
180
- }
181
- ```
182
-
183
- ### How to use it
184
-
185
- Before we begin, we should setup an empty form. We are going to need a main `Form`
186
- and a submit `Button` that will trigger the `onSubmit` events in our React form.
187
-
188
- ```jsx
189
- import React from 'react';
190
- import Form from '@digigov/form';
191
- import Button from '@digigov/ui/core/Button';
192
-
193
- export default function MultiplicityForm() {
194
- return <Form>
195
- {/* this is where all fields will eventually be rendered */}
196
- <Button type="submit">Submit</Button>
197
- </Form>
198
- }
199
- ```
200
-
201
- As you may have already assumed, this boilerplate code will not get us very far.
202
- We need an actual `Field` component that will be of `type: 'array'` since we
203
- need a value that contains multiple instances of a single schema. Given that we
204
- are asking users for information about their vehicles, we can also fill in the `key`,
205
- `label.primary`, as well as the `type` and `required`
206
- props.
207
-
208
- ```jsx
209
- <Field
210
- key="vehicles"
211
- name="vehicles"
212
- label={{ primary: "Vehicles" }}
213
- type="array"
214
- required
215
- />
216
- ```
217
-
218
- Although this code may seem enough at first glance, it will soon become clear
219
- that Multiplicity packs a lot of functionality. It needs context in the form of
220
- natural language, Greek, English, or any other language dictated by the user needs
221
- in order to carry meaning to the end users.
222
-
223
- It also needs the schema of the form fields to be filled for each iteration. To
224
- do so, inside the `extra` key we can add an `of` key. This `of` key will contain
225
- a key named `label` and a key name `type`, signifying the label text and the type of the
226
- inner form, respectively.
227
-
228
- Inside the `of` key you can add an `extra` key that will then contain a `fields`
229
- key describing the field props for all inputs needed.
230
-
231
- ```js
232
- // this will be used as value for the `extra` prop
233
- {
234
- of: {
235
- type: 'object',
236
- label: {
237
- primary: 'Vehicle details',
238
- secondary: 'See and change the details of a vehicle',
239
- },
240
- extra: {
241
- fields: [
242
- {
243
- key: 'registration_date',
244
- type: 'date',
245
- required: true,
246
- label: { primary: 'Registration date' },
247
- },
248
- {
249
- key: 'make',
250
- type: 'string',
251
- required: true,
252
- label: {
253
- primary: 'Make',
254
- },
255
- },
256
- {
257
- key: 'model',
258
- type: 'string',
259
- required: true,
260
- label: {
261
- primary: 'Model',
262
- },
263
- },
264
- ],
265
- },
266
- },
267
- }
268
- ```
269
-
270
- ## Introducing the FieldArray field
271
-
272
- As a simpler alternative to Multiplicity, we also offer the original
273
- implementation called `FieldArray` which may be used in dashboards or other apps
274
- used by expert users or administrators of any kind. FieldArray skips all the
275
- extra safety features and protections of the Multiplicity and offers more
276
- flexibility for the end user.
277
-
278
- ### How to use it
279
-
280
- We tried to maintain the differences in the API between the two implementations
281
- as little as possible. The only thing that is required for you to do to use the
282
- FieldArray instead of the Multiplicity, is to explicitly disable the
283
- multiplicity functionality, by using the `multiplicity={false}` prop.
284
-
285
- As a result, if you learn how to use one, you can easily use the other, and
286
- naturally, you can also change their behaviour by changing a single prop in your
287
- React code.
288
-
289
- ```jsx
290
- <Field
291
- key="vehicles"
292
- name="vehicles"
293
- label={{ primary: "Vehicles" }}
294
- type="array"
295
- // highlight-next-line
296
- multiplicity={false}
297
- required
298
- />
299
- ```
300
-
301
- The end result looks very different from Multiplicity at first glance, but you
302
- can achieve the same results with both of them.
303
-
304
- ```jsx live
305
- import React from 'react';
306
- import Form, { Field } from '@digigov/form';
307
- import Button from '@digigov/ui/core/Button';
308
-
309
- export default function SimpleForm() {
310
- return <Form>
311
- <Field
312
- key="vehicles"
313
- name="vehicles"
314
- label={{ primary: "Vehicles" }}
315
- type="array"
316
- multiplicity={false}
317
- extra={{
318
- border: true,
319
- label: {
320
- object: {
321
- title: 'Vehicle',
322
- title_added: 'The vehicles you have already added',
323
- nothing_added: 'You have not added any vehicles yet.',
324
- add: 'Add vehicle',
325
- delete: 'Remove',
326
- },
327
- question: {
328
- title: 'Do you want to add more vehicles?',
329
- objectLabel: {
330
- primary: 'Add one more of your vehicles',
331
- secondary: 'Fill in the details below and then click “Add“.',
332
- },
333
- yes: 'Yes',
334
- no: 'No',
335
- },
336
- },
337
- of: {
338
- type: 'object',
339
- label: {
340
- primary: 'Vehicle details',
341
- secondary: 'See and change the details of a vehicle',
342
- },
343
- extra: {
344
- fields: [
345
- {
346
- key: 'registration_date',
347
- type: 'date',
348
- required: true,
349
- label: { primary: 'Registration date' },
350
- },
351
- {
352
- key: 'make',
353
- type: 'string',
354
- required: true,
355
- label: {
356
- primary: 'Make',
357
- },
358
- },
359
- {
360
- key: 'model',
361
- type: 'string',
362
- required: true,
363
- label: {
364
- primary: 'Model',
365
- },
366
- },
367
- ],
368
- },
369
- },
370
- }}
371
- required
372
- />
373
- <Button type="submit">Submit</Button>
374
- </Form>
375
- }
376
- ```
377
-
378
- ## Validating form data
379
-
380
- Luckily, if you want to validate the values of the nested fields, for instance,
381
- the first name of a vehicle, you don't have to perform any further actions. The fields'
382
- validation will work right out of the box, same as any other form.
383
-
384
- There is another use case that is available as part of the
385
- MultiplicityField. Given that the value of this field type is an array, we
386
- should expect to need some length validation sooner than later.
387
-
388
- ### Exact length
389
-
390
- You can easily validate the exact length of the items added to the multipliticy
391
- array, simply by using the `extra.length` prop.
392
-
393
- ```jsx
394
- <Field
395
- extra={{
396
- length: 2,
397
- of: { ... },
398
- label: { ... },
399
- }}
400
- />
401
- ```
402
-
403
- The example below will validate this and show all the error messages necessary
404
- to make sure that the users understand what is going wrong with the process.
405
-
406
- ```jsx live
407
- import React from 'react';
408
- import Form, { Field } from '@digigov/form';
409
- import Button from '@digigov/ui/core/Button';
410
-
411
- export default function SimpleForm() {
412
- return <Form>
413
- <Field
414
- key="vehicles"
415
- name="vehicles"
416
- label={{ primary: "Vehicles" }}
417
- type="array"
418
- multiplicity={true}
419
- extra={{
420
- border: true,
421
- length: 3,
422
- label: {
423
- object: {
424
- title: 'Vehicle',
425
- title_added: 'The vehicles you have already added',
426
- add: 'Add',
427
- delete: 'Remove',
428
- },
429
- question: {
430
- title: 'Do you want to add more vehicles?',
431
- objectLabel: {
432
- primary: 'Add one more of your vehicles',
433
- secondary: 'Fill in the details below and then click “Add“.',
434
- },
435
- yes: 'Yes',
436
- no: 'No',
437
- },
438
- },
439
- of: {
440
- type: 'object',
441
- label: {
442
- primary: 'Vehicle details',
443
- secondary: 'See and change the details of a vehicle',
444
- },
445
- extra: {
446
- fields: [
447
- {
448
- key: 'registration_date',
449
- type: 'date',
450
- required: true,
451
- label: { primary: 'Registration date' },
452
- },
453
- {
454
- key: 'make',
455
- type: 'string',
456
- required: true,
457
- label: {
458
- primary: 'Make',
459
- },
460
- },
461
- {
462
- key: 'model',
463
- type: 'string',
464
- required: true,
465
- label: {
466
- primary: 'Model',
467
- },
468
- },
469
- ],
470
- },
471
- },
472
- }}
473
- required
474
- />
475
- <Button type="submit">Submit</Button>
476
- </Form>
477
- }
478
- ```
479
-
480
- ### Min or max length
481
-
482
- You can also use the min or max length validation to define the cardinality
483
- range for the array. You can use only the `min` key to add a minimum length of
484
- items or only the `max` key to limit them.
485
-
486
- :::caution
487
-
488
- Do not mix and match the exact `length` validation with the `min` or `max`.
489
-
490
- :::
491
-
492
- ```jsx
493
- <Field
494
- extra={{
495
- min: 2,
496
- max: 5,
497
- of: { ... },
498
- label: { ... },
499
- }}
500
- />
501
- ```
502
-
503
- The example below will validate this and show all the error messages necessary
504
- to make sure that the users understand what is going wrong with the process.
505
-
506
- ```jsx live
507
- import React from 'react';
508
- import Form, { Field } from '@digigov/form';
509
- import Button from '@digigov/ui/core/Button';
510
-
511
- export default function SimpleForm() {
512
- return <Form>
513
- <Field
514
- key="vehicles"
515
- name="vehicles"
516
- label={{ primary: "Vehicles" }}
517
- type="array"
518
- multiplicity={true}
519
- extra={{
520
- border: true,
521
- min: 2,
522
- max: 5,
523
- label: {
524
- object: {
525
- title: 'Vehicle',
526
- title_added: 'The vehicles you have already added',
527
- nothing_added: 'You have not added any vehicles yet.',
528
- add: 'Add',
529
- delete: 'Remove',
530
- },
531
- question: {
532
- title: 'Do you want to add more vehicles?',
533
- objectLabel: {
534
- primary: 'Add one more of your vehicles',
535
- secondary: 'Fill in the details below and then click “Add“.',
536
- },
537
- yes: 'Yes',
538
- no: 'No',
539
- },
540
- },
541
- of: {
542
- type: 'object',
543
- label: {
544
- primary: 'Vehicle details',
545
- secondary: 'See and change the details of a vehicle',
546
- },
547
- extra: {
548
- fields: [
549
- {
550
- key: 'registration_date',
551
- type: 'date',
552
- required: true,
553
- label: { primary: 'Registration date' },
554
- },
555
- {
556
- key: 'make',
557
- type: 'string',
558
- required: true,
559
- label: {
560
- primary: 'Make',
561
- },
562
- },
563
- {
564
- key: 'model',
565
- type: 'string',
566
- required: true,
567
- label: {
568
- primary: 'Model',
569
- },
570
- },
571
- ],
572
- },
573
- },
574
- }}
575
- required
576
- />
577
- <Button type="submit">Submit</Button>
578
- </Form>
579
- }
580
- ```