@digigov/form 1.0.0-8bbf3ef2 → 1.0.0-a131264d

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 (298) hide show
  1. package/Field/FieldBase.js +1 -1
  2. package/{esm/Field/FieldBase.js → Field/FieldBase.mjs} +1 -1
  3. package/Field/FieldBaseContainer.js +1 -1
  4. package/{esm/Field/FieldBaseContainer.js → Field/FieldBaseContainer.mjs} +1 -1
  5. package/Field/FieldConditional.js +2 -2
  6. package/{esm/Field/FieldConditional.js → Field/FieldConditional.mjs} +2 -2
  7. package/Field/index.js +5 -5
  8. package/{esm/Field/index.js → Field/index.mjs} +5 -5
  9. package/Field/utils.js +9 -9
  10. package/{esm/Field/utils.js → Field/utils.mjs} +9 -9
  11. package/FieldArray/FieldArray.stories.js +4 -4
  12. package/FieldArray/FieldArray.stories.mjs +8 -0
  13. package/FieldArray/__stories__/Default.js +5 -5
  14. package/{esm/FieldArray/__stories__/Default.js → FieldArray/__stories__/Default.mjs} +1 -1
  15. package/FieldArray/__stories__/WithExactLength.js +5 -5
  16. package/{esm/FieldArray/__stories__/WithExactLength.js → FieldArray/__stories__/WithExactLength.mjs} +1 -1
  17. package/FieldArray/index.js +3 -3
  18. package/{esm/FieldArray/index.js → FieldArray/index.mjs} +3 -3
  19. package/FieldObject/index.js +3 -3
  20. package/{esm/FieldObject/index.js → FieldObject/index.mjs} +3 -3
  21. package/Fieldset/FieldsetWithContext.js +5 -5
  22. package/{esm/Fieldset/FieldsetWithContext.js → Fieldset/FieldsetWithContext.mjs} +3 -3
  23. package/FormBuilder/FormBuilder.js +5 -5
  24. package/{esm/FormBuilder/FormBuilder.js → FormBuilder/FormBuilder.mjs} +5 -5
  25. package/FormBuilder/FormBuilder.stories.js +3 -3
  26. package/FormBuilder/FormBuilder.stories.mjs +7 -0
  27. package/FormBuilder/__stories__/Default.js +3 -3
  28. package/{esm/FormBuilder/__stories__/Default.js → FormBuilder/__stories__/Default.mjs} +1 -1
  29. package/FormBuilder/index.js +1 -1
  30. package/FormBuilder/index.mjs +2 -0
  31. package/MultiplicityField/MultiplicityField.stories.js +8 -8
  32. package/MultiplicityField/MultiplicityField.stories.mjs +12 -0
  33. package/MultiplicityField/__stories__/Default.js +5 -5
  34. package/{esm/MultiplicityField/__stories__/Default.js → MultiplicityField/__stories__/Default.mjs} +1 -1
  35. package/MultiplicityField/__stories__/WithExactLength.js +5 -5
  36. package/{esm/MultiplicityField/__stories__/WithExactLength.js → MultiplicityField/__stories__/WithExactLength.mjs} +1 -1
  37. package/MultiplicityField/__stories__/WithMaxLength.js +5 -5
  38. package/{esm/MultiplicityField/__stories__/WithMaxLength.js → MultiplicityField/__stories__/WithMaxLength.mjs} +1 -1
  39. package/MultiplicityField/__stories__/WithMinAndMaxLength.js +5 -5
  40. package/{esm/MultiplicityField/__stories__/WithMinAndMaxLength.js → MultiplicityField/__stories__/WithMinAndMaxLength.mjs} +1 -1
  41. package/MultiplicityField/__stories__/WithMinLength.js +5 -5
  42. package/{esm/MultiplicityField/__stories__/WithMinLength.js → MultiplicityField/__stories__/WithMinLength.mjs} +1 -1
  43. package/MultiplicityField/add-objects.js +3 -3
  44. package/{esm/MultiplicityField/add-objects.js → MultiplicityField/add-objects.mjs} +3 -3
  45. package/MultiplicityField/index.js +3 -3
  46. package/{esm/MultiplicityField/index.js → MultiplicityField/index.mjs} +3 -3
  47. package/Questions/Questions.js +2 -2
  48. package/{esm/Questions/Questions.js → Questions/Questions.mjs} +2 -2
  49. package/Questions/Questions.stories.js +3 -3
  50. package/Questions/Questions.stories.mjs +7 -0
  51. package/Questions/Step/ReviewStep.js +3 -3
  52. package/{esm/Questions/Step/ReviewStep.js → Questions/Step/ReviewStep.mjs} +3 -3
  53. package/Questions/Step/Step.js +3 -3
  54. package/{esm/Questions/Step/Step.js → Questions/Step/Step.mjs} +3 -3
  55. package/Questions/Step/StepArrayReview.js +6 -6
  56. package/{esm/Questions/Step/StepArrayReview.js → Questions/Step/StepArrayReview.mjs} +6 -6
  57. package/Questions/Step/StepDescription.js +1 -1
  58. package/{esm/Questions/Step/StepDescription.js → Questions/Step/StepDescription.mjs} +1 -1
  59. package/Questions/Step/StepForm.js +4 -4
  60. package/{esm/Questions/Step/StepForm.js → Questions/Step/StepForm.mjs} +4 -4
  61. package/Questions/Step/StepTitle.js +1 -1
  62. package/{esm/Questions/Step/StepTitle.js → Questions/Step/StepTitle.mjs} +1 -1
  63. package/Questions/Step/index.js +14 -14
  64. package/Questions/Step/index.mjs +13 -0
  65. package/Questions/__stories__/Default.js +13 -13
  66. package/{esm/Questions/__stories__/Default.js → Questions/__stories__/Default.mjs} +2 -2
  67. package/Questions/index.js +2 -2
  68. package/Questions/index.mjs +3 -0
  69. package/Questions/index.spec.js +9 -9
  70. package/{esm/Questions/index.spec.js → Questions/index.spec.mjs} +3 -3
  71. package/es/Field/FieldBase.js +1 -1
  72. package/es/Field/FieldBaseContainer.js +1 -1
  73. package/es/Field/FieldConditional.js +2 -2
  74. package/es/Field/index.js +5 -5
  75. package/es/Field/utils.js +9 -9
  76. package/es/FieldArray/FieldArray.stories.js +3 -3
  77. package/es/FieldArray/__stories__/Default.js +1 -1
  78. package/es/FieldArray/__stories__/WithExactLength.js +1 -1
  79. package/es/FieldArray/index.js +3 -3
  80. package/es/FieldObject/index.js +3 -3
  81. package/es/Fieldset/FieldsetWithContext.js +3 -3
  82. package/es/FormBuilder/FormBuilder.js +5 -5
  83. package/es/FormBuilder/FormBuilder.stories.js +2 -2
  84. package/es/FormBuilder/__stories__/Default.js +1 -1
  85. package/es/FormBuilder/index.js +1 -1
  86. package/es/MultiplicityField/MultiplicityField.stories.js +7 -7
  87. package/es/MultiplicityField/__stories__/Default.js +1 -1
  88. package/es/MultiplicityField/__stories__/WithExactLength.js +1 -1
  89. package/es/MultiplicityField/__stories__/WithMaxLength.js +1 -1
  90. package/es/MultiplicityField/__stories__/WithMinAndMaxLength.js +1 -1
  91. package/es/MultiplicityField/__stories__/WithMinLength.js +1 -1
  92. package/es/MultiplicityField/add-objects.js +3 -3
  93. package/es/MultiplicityField/index.js +3 -3
  94. package/es/Questions/Questions.js +2 -2
  95. package/es/Questions/Questions.stories.js +2 -2
  96. package/es/Questions/Step/ReviewStep.js +3 -3
  97. package/es/Questions/Step/Step.js +3 -3
  98. package/es/Questions/Step/StepArrayReview.js +6 -6
  99. package/es/Questions/Step/StepDescription.js +1 -1
  100. package/es/Questions/Step/StepForm.js +4 -4
  101. package/es/Questions/Step/StepTitle.js +1 -1
  102. package/es/Questions/Step/index.js +12 -12
  103. package/es/Questions/__stories__/Default.js +2 -2
  104. package/es/Questions/index.js +2 -2
  105. package/es/Questions/index.spec.js +3 -3
  106. package/es/index.js +2 -2
  107. package/es/inputs/AutoComplete/AutoComplete.stories.js +2 -2
  108. package/es/inputs/AutoComplete/__stories__/Default.js +2 -2
  109. package/es/inputs/Checkboxes/Checkboxes.stories.js +4 -4
  110. package/es/inputs/Checkboxes/__stories__/Conditional.js +1 -1
  111. package/es/inputs/Checkboxes/__stories__/Default.js +1 -1
  112. package/es/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
  113. package/es/inputs/Checkboxes/index.js +1 -1
  114. package/es/inputs/DateInput/DateInput.stories.js +2 -2
  115. package/es/inputs/DateInput/__stories__/Default.js +1 -1
  116. package/es/inputs/FileInput/FileInput.stories.js +2 -2
  117. package/es/inputs/FileInput/__stories__/Default.js +1 -1
  118. package/es/inputs/Input/Input.stories.js +10 -10
  119. package/es/inputs/Input/__stories__/AFM.js +1 -1
  120. package/es/inputs/Input/__stories__/Boolean.js +1 -1
  121. package/es/inputs/Input/__stories__/Default.js +1 -1
  122. package/es/inputs/Input/__stories__/IBAN.js +1 -1
  123. package/es/inputs/Input/__stories__/Integer.js +1 -1
  124. package/es/inputs/Input/__stories__/MobilePhone.js +1 -1
  125. package/es/inputs/Input/__stories__/PhoneNumber.js +1 -1
  126. package/es/inputs/Input/__stories__/PostalCode.js +1 -1
  127. package/es/inputs/Input/__stories__/TextWithCharacterLimit.js +1 -1
  128. package/es/inputs/Label/Label.stories.js +2 -2
  129. package/es/inputs/Label/__stories__/Default.js +1 -1
  130. package/es/inputs/OtpInput/OtpInput.stories.js +2 -2
  131. package/es/inputs/OtpInput/__stories__/Default.js +1 -1
  132. package/es/inputs/Radio/Radio.stories.js +4 -4
  133. package/es/inputs/Radio/__stories__/Conditional.js +1 -1
  134. package/es/inputs/Radio/__stories__/Default.js +1 -1
  135. package/es/inputs/Radio/__stories__/WithDivider.js +1 -1
  136. package/es/inputs/Radio/index.js +1 -1
  137. package/es/inputs/Select/Select.stories.js +2 -2
  138. package/es/inputs/Select/__stories__/Default.js +1 -1
  139. package/es/inputs/index.js +8 -8
  140. package/es/internal.js +34 -34
  141. package/es/registry.js +59 -59
  142. package/es/validators/index.js +3 -3
  143. package/es/validators/utils/index.js +8 -8
  144. package/es/validators/validators.spec.js +1 -1
  145. package/index.js +2 -2
  146. package/index.mjs +8 -0
  147. package/inputs/AutoComplete/AutoComplete.stories.js +3 -3
  148. package/inputs/AutoComplete/AutoComplete.stories.mjs +7 -0
  149. package/inputs/AutoComplete/__stories__/Default.js +2 -2
  150. package/{esm/inputs/AutoComplete/__stories__/Default.js → inputs/AutoComplete/__stories__/Default.mjs} +2 -2
  151. package/inputs/Checkboxes/Checkboxes.stories.js +5 -5
  152. package/inputs/Checkboxes/Checkboxes.stories.mjs +9 -0
  153. package/inputs/Checkboxes/__stories__/Conditional.js +3 -3
  154. package/{esm/inputs/Checkboxes/__stories__/Conditional.js → inputs/Checkboxes/__stories__/Conditional.mjs} +1 -1
  155. package/inputs/Checkboxes/__stories__/Default.js +3 -3
  156. package/{esm/inputs/Checkboxes/__stories__/Default.js → inputs/Checkboxes/__stories__/Default.mjs} +1 -1
  157. package/inputs/Checkboxes/__stories__/WithDivider.js +3 -3
  158. package/{esm/inputs/Checkboxes/__stories__/WithDivider.js → inputs/Checkboxes/__stories__/WithDivider.mjs} +1 -1
  159. package/inputs/Checkboxes/index.js +2 -2
  160. package/{esm/inputs/Checkboxes/index.js → inputs/Checkboxes/index.mjs} +1 -1
  161. package/inputs/DateInput/DateInput.stories.js +3 -3
  162. package/inputs/DateInput/DateInput.stories.mjs +7 -0
  163. package/inputs/DateInput/__stories__/Default.js +3 -3
  164. package/{esm/inputs/DateInput/__stories__/Default.js → inputs/DateInput/__stories__/Default.mjs} +1 -1
  165. package/inputs/FileInput/FileInput.stories.js +3 -3
  166. package/inputs/FileInput/FileInput.stories.mjs +7 -0
  167. package/inputs/FileInput/__stories__/Default.js +3 -3
  168. package/{esm/inputs/FileInput/__stories__/Default.js → inputs/FileInput/__stories__/Default.mjs} +1 -1
  169. package/inputs/Input/Input.stories.js +11 -11
  170. package/inputs/Input/Input.stories.mjs +15 -0
  171. package/inputs/Input/__stories__/AFM.js +3 -3
  172. package/{esm/inputs/Input/__stories__/AFM.js → inputs/Input/__stories__/AFM.mjs} +1 -1
  173. package/inputs/Input/__stories__/Boolean.js +3 -3
  174. package/{esm/inputs/Input/__stories__/Boolean.js → inputs/Input/__stories__/Boolean.mjs} +1 -1
  175. package/inputs/Input/__stories__/Default.js +3 -3
  176. package/{esm/inputs/Input/__stories__/Default.js → inputs/Input/__stories__/Default.mjs} +1 -1
  177. package/inputs/Input/__stories__/IBAN.js +3 -3
  178. package/{esm/inputs/Input/__stories__/IBAN.js → inputs/Input/__stories__/IBAN.mjs} +1 -1
  179. package/inputs/Input/__stories__/Integer.js +4 -4
  180. package/{esm/inputs/Input/__stories__/Integer.js → inputs/Input/__stories__/Integer.mjs} +1 -1
  181. package/inputs/Input/__stories__/MobilePhone.js +3 -3
  182. package/{esm/inputs/Input/__stories__/MobilePhone.js → inputs/Input/__stories__/MobilePhone.mjs} +1 -1
  183. package/inputs/Input/__stories__/PhoneNumber.js +3 -3
  184. package/{esm/inputs/Input/__stories__/PhoneNumber.js → inputs/Input/__stories__/PhoneNumber.mjs} +1 -1
  185. package/inputs/Input/__stories__/PostalCode.js +3 -3
  186. package/{esm/inputs/Input/__stories__/PostalCode.js → inputs/Input/__stories__/PostalCode.mjs} +1 -1
  187. package/inputs/Input/__stories__/TextWithCharacterLimit.js +5 -5
  188. package/{esm/inputs/Input/__stories__/TextWithCharacterLimit.js → inputs/Input/__stories__/TextWithCharacterLimit.mjs} +1 -1
  189. package/inputs/Label/Label.stories.js +3 -3
  190. package/inputs/Label/Label.stories.mjs +7 -0
  191. package/inputs/Label/__stories__/Default.js +4 -4
  192. package/{esm/inputs/Label/__stories__/Default.js → inputs/Label/__stories__/Default.mjs} +1 -1
  193. package/inputs/OtpInput/OtpInput.stories.js +3 -3
  194. package/inputs/OtpInput/OtpInput.stories.mjs +7 -0
  195. package/inputs/OtpInput/__stories__/Default.js +4 -4
  196. package/{esm/inputs/OtpInput/__stories__/Default.js → inputs/OtpInput/__stories__/Default.mjs} +1 -1
  197. package/inputs/Radio/Radio.stories.js +5 -5
  198. package/inputs/Radio/Radio.stories.mjs +9 -0
  199. package/inputs/Radio/__stories__/Conditional.js +3 -3
  200. package/{esm/inputs/Radio/__stories__/Conditional.js → inputs/Radio/__stories__/Conditional.mjs} +1 -1
  201. package/inputs/Radio/__stories__/Default.js +3 -3
  202. package/{esm/inputs/Radio/__stories__/Default.js → inputs/Radio/__stories__/Default.mjs} +1 -1
  203. package/inputs/Radio/__stories__/WithDivider.js +3 -3
  204. package/{esm/inputs/Radio/__stories__/WithDivider.js → inputs/Radio/__stories__/WithDivider.mjs} +1 -1
  205. package/inputs/Radio/index.js +2 -2
  206. package/{esm/inputs/Radio/index.js → inputs/Radio/index.mjs} +1 -1
  207. package/inputs/Select/Select.stories.js +3 -3
  208. package/inputs/Select/Select.stories.mjs +7 -0
  209. package/inputs/Select/__stories__/Default.js +3 -3
  210. package/{esm/inputs/Select/__stories__/Default.js → inputs/Select/__stories__/Default.mjs} +1 -1
  211. package/inputs/index.js +8 -8
  212. package/inputs/index.mjs +8 -0
  213. package/internal.js +20 -20
  214. package/internal.mjs +34 -0
  215. package/package.json +5 -5
  216. package/registry.d.ts +1 -1
  217. package/registry.js +59 -59
  218. package/{esm/registry.js → registry.mjs} +59 -59
  219. package/validators/index.js +3 -3
  220. package/{esm/validators/index.js → validators/index.mjs} +3 -3
  221. package/validators/utils/index.js +8 -8
  222. package/{esm/validators/utils/index.js → validators/utils/index.mjs} +8 -8
  223. package/validators/validators.spec.js +1 -1
  224. package/{esm/validators/validators.spec.js → validators/validators.spec.mjs} +1 -1
  225. package/esm/Field/index.mdx +0 -6
  226. package/esm/FieldArray/FieldArray.stories.js +0 -8
  227. package/esm/FieldArray/FieldArray.stories.playwright.json +0 -353
  228. package/esm/FormBuilder/FormBuilder.mdx +0 -256
  229. package/esm/FormBuilder/FormBuilder.stories.js +0 -7
  230. package/esm/FormBuilder/FormBuilder.stories.playwright.json +0 -52
  231. package/esm/FormBuilder/index.js +0 -2
  232. package/esm/MultiplicityField/MultiplicityField.mdx +0 -590
  233. package/esm/MultiplicityField/MultiplicityField.stories.js +0 -12
  234. package/esm/MultiplicityField/MultiplicityField.stories.playwright.json +0 -1370
  235. package/esm/Questions/Questions.stories.js +0 -7
  236. package/esm/Questions/Step/index.js +0 -13
  237. package/esm/Questions/__snapshots__/index.spec.tsx.snap +0 -596
  238. package/esm/Questions/index.js +0 -3
  239. package/esm/Questions/index.mdx +0 -415
  240. package/esm/create-simple-form.mdx +0 -539
  241. package/esm/index.js +0 -8
  242. package/esm/index.mdx +0 -51
  243. package/esm/inputs/AutoComplete/AutoComplete.stories.js +0 -7
  244. package/esm/inputs/Checkboxes/Checkboxes.stories.js +0 -9
  245. package/esm/inputs/Checkboxes/Checkboxes.stories.playwright.json +0 -85
  246. package/esm/inputs/Checkboxes/index.mdx +0 -0
  247. package/esm/inputs/DateInput/DateInput.stories.js +0 -7
  248. package/esm/inputs/DateInput/DateInput.stories.playwright.json +0 -72
  249. package/esm/inputs/FileInput/FileInput.stories.js +0 -7
  250. package/esm/inputs/FileInput/FileInput.stories.playwright.json +0 -75
  251. package/esm/inputs/Input/Input.stories.js +0 -15
  252. package/esm/inputs/Input/Input.stories.playwright.json +0 -376
  253. package/esm/inputs/Input/index.mdx +0 -8
  254. package/esm/inputs/Label/Label.stories.js +0 -7
  255. package/esm/inputs/Label/Label.stories.playwright.json +0 -40
  256. package/esm/inputs/Label/index.mdx +0 -0
  257. package/esm/inputs/OtpInput/OtpInput.stories.js +0 -7
  258. package/esm/inputs/Radio/Radio.stories.js +0 -9
  259. package/esm/inputs/Radio/Radio.stories.playwright.json +0 -73
  260. package/esm/inputs/Radio/index.mdx +0 -0
  261. package/esm/inputs/Select/Select.stories.js +0 -7
  262. package/esm/inputs/Select/Select.stories.playwright.json +0 -22
  263. package/esm/inputs/index.js +0 -8
  264. package/esm/installation.mdx +0 -68
  265. package/esm/internal.js +0 -34
  266. /package/{esm/Field/types.js → Field/types.mjs} +0 -0
  267. /package/{esm/Fieldset/index.js → Fieldset/index.mjs} +0 -0
  268. /package/{esm/Fieldset/types.js → Fieldset/types.mjs} +0 -0
  269. /package/{esm/Form.stories.js → Form.stories.mjs} +0 -0
  270. /package/{esm/FormContext.js → FormContext.mjs} +0 -0
  271. /package/{esm/MultiplicityField/__stories__/PreviewDisplay.js → MultiplicityField/__stories__/PreviewDisplay.mjs} +0 -0
  272. /package/{esm/Questions/QuestionsContext.js → Questions/QuestionsContext.mjs} +0 -0
  273. /package/{esm/Questions/Step/StepContext.js → Questions/Step/StepContext.mjs} +0 -0
  274. /package/{esm/Questions/Step/StepQuote.js → Questions/Step/StepQuote.mjs} +0 -0
  275. /package/{esm/Questions/Step/getAddMoreFields.js → Questions/Step/getAddMoreFields.mjs} +0 -0
  276. /package/{esm/Questions/Step/types.js → Questions/Step/types.mjs} +0 -0
  277. /package/{esm/Questions/getNextStep.js → Questions/getNextStep.mjs} +0 -0
  278. /package/{esm/Questions/types.js → Questions/types.mjs} +0 -0
  279. /package/{esm/inputs/AutoComplete/index.js → inputs/AutoComplete/index.mjs} +0 -0
  280. /package/{esm/inputs/DateInput/index.js → inputs/DateInput/index.mjs} +0 -0
  281. /package/{esm/inputs/FileInput/index.js → inputs/FileInput/index.mjs} +0 -0
  282. /package/{esm/inputs/Input/index.js → inputs/Input/index.mjs} +0 -0
  283. /package/{esm/inputs/Label/index.js → inputs/Label/index.mjs} +0 -0
  284. /package/{esm/inputs/OtpInput/index.js → inputs/OtpInput/index.mjs} +0 -0
  285. /package/{esm/inputs/Select/index.js → inputs/Select/index.mjs} +0 -0
  286. /package/{esm/types.js → types.mjs} +0 -0
  287. /package/{esm/utils.js → utils.mjs} +0 -0
  288. /package/{esm/validators/types.js → validators/types.mjs} +0 -0
  289. /package/{esm/validators/utils/afm.js → validators/utils/afm.mjs} +0 -0
  290. /package/{esm/validators/utils/file.js → validators/utils/file.mjs} +0 -0
  291. /package/{esm/validators/utils/iban.js → validators/utils/iban.mjs} +0 -0
  292. /package/{esm/validators/utils/int.js → validators/utils/int.mjs} +0 -0
  293. /package/{esm/validators/utils/number.js → validators/utils/number.mjs} +0 -0
  294. /package/{esm/validators/utils/otp.js → validators/utils/otp.mjs} +0 -0
  295. /package/{esm/validators/utils/phone.js → validators/utils/phone.mjs} +0 -0
  296. /package/{esm/validators/utils/postal_code.js → validators/utils/postal_code.mjs} +0 -0
  297. /package/{esm/validators/utils/text_limit.js → validators/utils/text_limit.mjs} +0 -0
  298. /package/{esm/validators/utils/uuid4.js → validators/utils/uuid4.mjs} +0 -0
@@ -16,7 +16,7 @@ exports.getYupObjectShape = getYupObjectShape;
16
16
 
17
17
  var yup = _interopRequireWildcard(require("yup"));
18
18
 
19
- var _afm = require("@digigov/form/validators/utils/afm");
19
+ var _afm = require("./afm");
20
20
 
21
21
  Object.keys(_afm).forEach(function (key) {
22
22
  if (key === "default" || key === "__esModule") return;
@@ -30,7 +30,7 @@ Object.keys(_afm).forEach(function (key) {
30
30
  });
31
31
  });
32
32
 
33
- var _file = require("@digigov/form/validators/utils/file");
33
+ var _file = require("./file");
34
34
 
35
35
  Object.keys(_file).forEach(function (key) {
36
36
  if (key === "default" || key === "__esModule") return;
@@ -44,7 +44,7 @@ Object.keys(_file).forEach(function (key) {
44
44
  });
45
45
  });
46
46
 
47
- var _iban = require("@digigov/form/validators/utils/iban");
47
+ var _iban = require("./iban");
48
48
 
49
49
  Object.keys(_iban).forEach(function (key) {
50
50
  if (key === "default" || key === "__esModule") return;
@@ -58,7 +58,7 @@ Object.keys(_iban).forEach(function (key) {
58
58
  });
59
59
  });
60
60
 
61
- var _otp = require("@digigov/form/validators/utils/otp");
61
+ var _otp = require("./otp");
62
62
 
63
63
  Object.keys(_otp).forEach(function (key) {
64
64
  if (key === "default" || key === "__esModule") return;
@@ -72,7 +72,7 @@ Object.keys(_otp).forEach(function (key) {
72
72
  });
73
73
  });
74
74
 
75
- var _phone = require("@digigov/form/validators/utils/phone");
75
+ var _phone = require("./phone");
76
76
 
77
77
  Object.keys(_phone).forEach(function (key) {
78
78
  if (key === "default" || key === "__esModule") return;
@@ -86,7 +86,7 @@ Object.keys(_phone).forEach(function (key) {
86
86
  });
87
87
  });
88
88
 
89
- var _postal_code = require("@digigov/form/validators/utils/postal_code");
89
+ var _postal_code = require("./postal_code");
90
90
 
91
91
  Object.keys(_postal_code).forEach(function (key) {
92
92
  if (key === "default" || key === "__esModule") return;
@@ -100,7 +100,7 @@ Object.keys(_postal_code).forEach(function (key) {
100
100
  });
101
101
  });
102
102
 
103
- var _uuid = require("@digigov/form/validators/utils/uuid4");
103
+ var _uuid = require("./uuid4");
104
104
 
105
105
  Object.keys(_uuid).forEach(function (key) {
106
106
  if (key === "default" || key === "__esModule") return;
@@ -114,7 +114,7 @@ Object.keys(_uuid).forEach(function (key) {
114
114
  });
115
115
  });
116
116
 
117
- var _text_limit = require("@digigov/form/validators/utils/text_limit");
117
+ var _text_limit = require("./text_limit");
118
118
 
119
119
  Object.keys(_text_limit).forEach(function (key) {
120
120
  if (key === "default" || key === "__esModule") return;
@@ -1,12 +1,12 @@
1
1
  import * as yup from 'yup';
2
- export * from '@digigov/form/validators/utils/afm';
3
- export * from '@digigov/form/validators/utils/file';
4
- export * from '@digigov/form/validators/utils/iban';
5
- export * from '@digigov/form/validators/utils/otp';
6
- export * from '@digigov/form/validators/utils/phone';
7
- export * from '@digigov/form/validators/utils/postal_code';
8
- export * from '@digigov/form/validators/utils/uuid4';
9
- export * from '@digigov/form/validators/utils/text_limit';
2
+ export * from "./afm";
3
+ export * from "./file";
4
+ export * from "./iban";
5
+ export * from "./otp";
6
+ export * from "./phone";
7
+ export * from "./postal_code";
8
+ export * from "./uuid4";
9
+ export * from "./text_limit";
10
10
  export function getYupField(field, yupTypeMap) {
11
11
  var yupField = yupTypeMap[(field === null || field === void 0 ? void 0 : field.type) || 'string'] || yupTypeMap['string'];
12
12
  return yupField(field);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _utils = require("@digigov/form/validators/utils");
3
+ var _utils = require("./utils");
4
4
 
5
5
  it('validates wrong uuid4 for empty value', function () {
6
6
  expect((0, _utils.validateUUID4)('')).toBe(false);
@@ -1,4 +1,4 @@
1
- import { validateUUID4, validateIban, validatePostalCode, validatePhoneNumber } from '@digigov/form/validators/utils';
1
+ import { validateUUID4, validateIban, validatePostalCode, validatePhoneNumber } from "./utils";
2
2
  it('validates wrong uuid4 for empty value', function () {
3
3
  expect(validateUUID4('')).toBe(false);
4
4
  });
@@ -1,6 +0,0 @@
1
- ---
2
- title: Form
3
- parent: docs/form/components
4
- ---
5
-
6
- hello md
@@ -1,8 +0,0 @@
1
- import FieldArray from '@digigov/form/FieldArray';
2
- export default {
3
- title: 'Digigov Form/FieldArray',
4
- component: FieldArray,
5
- displayName: 'FieldArray'
6
- };
7
- export * from '@digigov/form/FieldArray/__stories__/Default';
8
- export * from '@digigov/form/FieldArray/__stories__/WithExactLength';
@@ -1,353 +0,0 @@
1
- {
2
- "version": "4",
3
- "stories": {
4
- "digigov-form-fieldarray--default": {
5
- "actionSets": [
6
- {
7
- "actions": [
8
- {
9
- "name": "click",
10
- "args": {
11
- "selector": "text=Προσθήκη συνυπογράφοντα"
12
- }
13
- },
14
- {
15
- "name": "click",
16
- "args": {
17
- "selector": "text=Συνέχεια"
18
- }
19
- },
20
- {
21
- "name": "waitForSelector",
22
- "args": {
23
- "selector": "text=Το πεδίο πρέπει να έχει τουλάχιστον 2 εγγραφές. Προσθέστε μια ακόμα επιλέγοντας την απάντηση «Ναι» στην επόμενη ερώτηση.",
24
- "options": {
25
- "state": "visible"
26
- }
27
- }
28
- },
29
- {
30
- "name": "click",
31
- "args": {
32
- "selector": "text=Προσθήκη συνυπογράφοντα",
33
- "options": {
34
- "clickCount": 2
35
- }
36
- }
37
- },
38
- {
39
- "name": "click",
40
- "args": {
41
- "selector": "text=Συνέχεια"
42
- }
43
- },
44
- {
45
- "name": "waitForSelector",
46
- "args": {
47
- "selector": "text=Το πεδίο είναι υποχρεωτικό.",
48
- "options": {
49
- "state": "visible"
50
- }
51
- }
52
- },
53
- {
54
- "name": "type",
55
- "args": {
56
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(3)>label>input",
57
- "text": "2107474274"
58
- }
59
- },
60
- {
61
- "name": "click",
62
- "args": {
63
- "selector": "html>body>div:nth-child(5)>form>button"
64
- }
65
- }
66
- ],
67
- "id": "iMmV-vvS4iNn",
68
- "title": "Add new items to FieldArray"
69
- },
70
- {
71
- "actions": [
72
- {
73
- "name": "click",
74
- "args": {
75
- "selector": "html>body>div:nth-child(5)>form>button"
76
- }
77
- }
78
- ],
79
- "id": "Lhj8o_MByws7",
80
- "title": "Validation errors"
81
- },
82
- {
83
- "actions": [
84
- {
85
- "name": "type",
86
- "args": {
87
- "selector": "html>body",
88
- "text": "hello"
89
- }
90
- },
91
- {
92
- "name": "click",
93
- "args": {
94
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
95
- }
96
- },
97
- {
98
- "name": "type",
99
- "args": {
100
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(1)>label>input",
101
- "text": "150000496"
102
- }
103
- },
104
- {
105
- "name": "type",
106
- "args": {
107
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(2)>label>input",
108
- "text": "Jon"
109
- }
110
- },
111
- {
112
- "name": "type",
113
- "args": {
114
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(3)>label>input",
115
- "text": "Doe"
116
- }
117
- },
118
- {
119
- "name": "click",
120
- "args": {
121
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
122
- }
123
- },
124
- {
125
- "name": "type",
126
- "args": {
127
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(1)>label>input",
128
- "text": "150000496"
129
- }
130
- },
131
- {
132
- "name": "type",
133
- "args": {
134
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(2)>label>input",
135
- "text": "Mar"
136
- }
137
- },
138
- {
139
- "name": "type",
140
- "args": {
141
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(3)>label>input",
142
- "text": "P"
143
- }
144
- },
145
- {
146
- "name": "type",
147
- "args": {
148
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(3)>label>input",
149
- "text": "6977777777"
150
- }
151
- },
152
- {
153
- "name": "click",
154
- "args": {
155
- "selector": "html>body>div:nth-child(5)>form>button"
156
- }
157
- }
158
- ],
159
- "id": "OCWrR7oFA3YV",
160
- "title": "add 2 items"
161
- },
162
- {
163
- "actions": [
164
- {
165
- "name": "type",
166
- "args": {
167
- "selector": "html>body",
168
- "text": "hello"
169
- }
170
- },
171
- {
172
- "name": "click",
173
- "args": {
174
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
175
- }
176
- },
177
- {
178
- "name": "type",
179
- "args": {
180
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(1)>label>input",
181
- "text": "150000496"
182
- }
183
- },
184
- {
185
- "name": "type",
186
- "args": {
187
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(2)>label>input",
188
- "text": "Jon"
189
- }
190
- },
191
- {
192
- "name": "type",
193
- "args": {
194
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(3)>label>input",
195
- "text": "Doe"
196
- }
197
- },
198
- {
199
- "name": "click",
200
- "args": {
201
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
202
- }
203
- },
204
- {
205
- "name": "type",
206
- "args": {
207
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(1)>label>input",
208
- "text": "150000496"
209
- }
210
- },
211
- {
212
- "name": "type",
213
- "args": {
214
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(2)>label>input",
215
- "text": "Mar"
216
- }
217
- },
218
- {
219
- "name": "type",
220
- "args": {
221
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(3)>label>input",
222
- "text": "P"
223
- }
224
- },
225
- {
226
- "name": "click",
227
- "args": {
228
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(3)>div>fieldset>button"
229
- }
230
- },
231
- {
232
- "name": "type",
233
- "args": {
234
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(3)>label>input",
235
- "text": "6977777777"
236
- }
237
- },
238
- {
239
- "name": "click",
240
- "args": {
241
- "selector": "html>body>div:nth-child(5)>form>button"
242
- }
243
- }
244
- ],
245
- "id": "8ZxUUjo0Yxnr",
246
- "title": "add 2 items and remove 1"
247
- }
248
- ]
249
- },
250
- "digigov-form-fieldarray--with-exact-length": {
251
- "actionSets": [
252
- {
253
- "actions": [
254
- {
255
- "name": "click",
256
- "args": {
257
- "selector": "html>body>div:nth-child(5)>form>button"
258
- }
259
- },
260
- {
261
- "name": "click",
262
- "args": {
263
- "selector": "html>body>div:nth-child(5)>form>button"
264
- }
265
- }
266
- ],
267
- "id": "WG3dAbfXa-Sn",
268
- "title": "validation errors"
269
- },
270
- {
271
- "actions": [
272
- {
273
- "name": "type",
274
- "args": {
275
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(1)>label>input",
276
- "text": "Hello"
277
- }
278
- },
279
- {
280
- "name": "click",
281
- "args": {
282
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
283
- }
284
- },
285
- {
286
- "name": "type",
287
- "args": {
288
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(1)>label>input",
289
- "text": "150000496"
290
- }
291
- },
292
- {
293
- "name": "type",
294
- "args": {
295
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(2)>label>input",
296
- "text": "Μάρω"
297
- }
298
- },
299
- {
300
- "name": "type",
301
- "args": {
302
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(3)>label>input",
303
- "text": "Μενεξέ"
304
- }
305
- },
306
- {
307
- "name": "click",
308
- "args": {
309
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
310
- }
311
- },
312
- {
313
- "name": "type",
314
- "args": {
315
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(1)>label>input",
316
- "text": "150000496"
317
- }
318
- },
319
- {
320
- "name": "type",
321
- "args": {
322
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(2)>label>input",
323
- "text": "Ηλέκτρα"
324
- }
325
- },
326
- {
327
- "name": "type",
328
- "args": {
329
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(3)>label>input",
330
- "text": "Αποστόλου"
331
- }
332
- },
333
- {
334
- "name": "type",
335
- "args": {
336
- "selector": "html>body>div:nth-child(5)>form>div:nth-child(3)>label>input",
337
- "text": "6977654321"
338
- }
339
- },
340
- {
341
- "name": "click",
342
- "args": {
343
- "selector": "html>body>div:nth-child(5)>form>button"
344
- }
345
- }
346
- ],
347
- "id": "-U0EryxXC-g7",
348
- "title": "add exact length of items"
349
- }
350
- ]
351
- }
352
- }
353
- }