@digigov/form 2.0.0-2445d5cb → 2.0.0-254f7786

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 (524) hide show
  1. package/Field/FieldBase/index.js +1 -0
  2. package/Field/FieldBase.js.map +2 -2
  3. package/Field/FieldBaseContainer/index.js +2 -2
  4. package/Field/FieldBaseContainer.js.map +2 -2
  5. package/Field/FieldConditional/index.js +7 -3
  6. package/Field/FieldConditional.js.map +2 -2
  7. package/Field/index.js +5 -2
  8. package/Field/index.js.map +2 -2
  9. package/Field/types.d.ts +10 -8
  10. package/Field/utils/index.d.ts +1 -0
  11. package/Field/utils/index.js +18 -1
  12. package/Field/utils/index.js.map +2 -2
  13. package/FieldArray/index.d.ts +1 -0
  14. package/FieldArray/index.js +7 -6
  15. package/FieldArray/index.js.map +2 -2
  16. package/FieldObject/index.d.ts +2 -0
  17. package/FieldObject/index.js +9 -5
  18. package/FieldObject/index.js.map +2 -2
  19. package/Fieldset/index.d.ts +1 -1
  20. package/Fieldset/index.js +5 -5
  21. package/Fieldset/index.js.map +2 -2
  22. package/Fieldset/types.d.ts +2 -3
  23. package/FormBuilder/index.d.ts +8 -2
  24. package/FormBuilder/index.js +150 -6
  25. package/FormBuilder/index.js.map +3 -3
  26. package/FormContext.js.map +2 -2
  27. package/MultiplicityField/add-objects/index.js +11 -7
  28. package/MultiplicityField/add-objects.js.map +2 -2
  29. package/MultiplicityField/index.js +16 -12
  30. package/MultiplicityField/index.js.map +2 -2
  31. package/MultiplicityField/types.d.ts +1 -2
  32. package/Questions/Questions/index.js +5 -4
  33. package/Questions/Questions.js.map +2 -2
  34. package/Questions/QuestionsContext.d.ts +0 -1
  35. package/Questions/Step/StepArrayReview.js.map +2 -2
  36. package/Questions/Step/StepContext.d.ts +0 -1
  37. package/Questions/Step/StepTitle/index.js +4 -3
  38. package/Questions/Step/StepTitle.d.ts +1 -1
  39. package/Questions/Step/StepTitle.js.map +2 -2
  40. package/Questions/Step/types.d.ts +0 -1
  41. package/Questions/types.d.ts +0 -1
  42. package/cjs/Field/FieldBase/index.js +1 -0
  43. package/cjs/Field/FieldBase.js.map +2 -2
  44. package/cjs/Field/FieldBaseContainer/index.js +4 -4
  45. package/cjs/Field/FieldBaseContainer.js.map +3 -3
  46. package/cjs/Field/FieldConditional/index.js +7 -3
  47. package/cjs/Field/FieldConditional.js.map +2 -2
  48. package/cjs/Field/index.js +5 -2
  49. package/cjs/Field/index.js.map +2 -2
  50. package/cjs/Field/types.js.map +1 -1
  51. package/cjs/Field/utils/index.js +18 -0
  52. package/cjs/Field/utils/index.js.map +2 -2
  53. package/cjs/FieldArray/index.js +8 -7
  54. package/cjs/FieldArray/index.js.map +3 -3
  55. package/cjs/FieldObject/index.js +10 -6
  56. package/cjs/FieldObject/index.js.map +3 -3
  57. package/cjs/Fieldset/index.js +10 -10
  58. package/cjs/Fieldset/index.js.map +3 -3
  59. package/cjs/Fieldset/types.js.map +1 -1
  60. package/cjs/FormBuilder/index.js +165 -5
  61. package/cjs/FormBuilder/index.js.map +3 -3
  62. package/cjs/FormContext/index.js +2 -2
  63. package/cjs/FormContext.js.map +3 -3
  64. package/cjs/MultiplicityField/add-objects/index.js +15 -11
  65. package/cjs/MultiplicityField/add-objects.js.map +3 -3
  66. package/cjs/MultiplicityField/index.js +15 -16
  67. package/cjs/MultiplicityField/index.js.map +3 -3
  68. package/cjs/MultiplicityField/types.js.map +1 -1
  69. package/cjs/Questions/Questions/index.js +5 -4
  70. package/cjs/Questions/Questions.js.map +2 -2
  71. package/cjs/Questions/Step/StepArrayReview.js.map +2 -2
  72. package/cjs/Questions/Step/StepTitle/index.js +5 -5
  73. package/cjs/Questions/Step/StepTitle.js.map +3 -3
  74. package/cjs/index.js +11 -155
  75. package/cjs/index.js.map +4 -4
  76. package/cjs/inputs/AutoCompleteInput/index.js +10 -8
  77. package/cjs/inputs/AutoCompleteInput/index.js.map +3 -3
  78. package/cjs/inputs/Checkboxes/index.js +7 -9
  79. package/cjs/inputs/Checkboxes/index.js.map +3 -3
  80. package/cjs/inputs/DateInput/index.js +4 -5
  81. package/cjs/inputs/DateInput/index.js.map +3 -3
  82. package/cjs/inputs/FileInput/index.js +8 -9
  83. package/cjs/inputs/FileInput/index.js.map +3 -3
  84. package/cjs/inputs/ImageInput/index.js +9 -9
  85. package/cjs/inputs/ImageInput/index.js.map +3 -3
  86. package/cjs/inputs/Input/index.js +19 -6
  87. package/cjs/inputs/Input/index.js.map +3 -3
  88. package/cjs/inputs/Input/inputsInputScenarios.js.map +2 -2
  89. package/cjs/inputs/Label/index.js +3 -3
  90. package/cjs/inputs/Label/index.js.map +3 -3
  91. package/cjs/inputs/OtpInput/index.js.map +2 -2
  92. package/cjs/inputs/Radio/index.js +56 -10
  93. package/cjs/inputs/Radio/index.js.map +3 -3
  94. package/cjs/inputs/Select/index.js +3 -4
  95. package/cjs/inputs/Select/index.js.map +3 -3
  96. package/cjs/inputs/inputsScenarios/index.js +4 -11
  97. package/cjs/inputs/inputsScenarios.js.map +2 -2
  98. package/cjs/lazy/index.js +40 -35
  99. package/cjs/lazy.js.map +3 -3
  100. package/cjs/locales/el.js.map +1 -1
  101. package/cjs/registry/index.js +64 -62
  102. package/cjs/registry.js.map +3 -3
  103. package/cjs/types.js.map +1 -1
  104. package/cjs/utils/index.js +2 -1
  105. package/cjs/utils.js.map +2 -2
  106. package/cjs/validators/index.js +16 -66
  107. package/cjs/validators/index.js.map +3 -3
  108. package/cjs/validators/utils/date/index.js +138 -0
  109. package/cjs/validators/utils/date.js.map +7 -0
  110. package/cjs/validators/utils/file/index.js +1 -1
  111. package/cjs/validators/utils/file.js.map +2 -2
  112. package/cjs/validators/utils/index.js +3 -1
  113. package/cjs/validators/utils/index.js.map +2 -2
  114. package/cjs/validators/utils/phone.js.map +2 -2
  115. package/cjs/validators/utils/postal_code.js.map +1 -1
  116. package/cjs/validators/utils/uuid4.js.map +2 -2
  117. package/index.d.ts +5 -8
  118. package/index.js +9 -152
  119. package/index.js.map +4 -4
  120. package/inputs/AutoCompleteInput/index.d.ts +1 -1
  121. package/inputs/AutoCompleteInput/index.js +12 -8
  122. package/inputs/AutoCompleteInput/index.js.map +2 -2
  123. package/inputs/Checkboxes/index.d.ts +1 -1
  124. package/inputs/Checkboxes/index.js +8 -6
  125. package/inputs/Checkboxes/index.js.map +2 -2
  126. package/inputs/DateInput/index.d.ts +1 -2
  127. package/inputs/DateInput/index.js +6 -4
  128. package/inputs/DateInput/index.js.map +2 -2
  129. package/inputs/FileInput/index.js +6 -7
  130. package/inputs/FileInput/index.js.map +2 -2
  131. package/inputs/ImageInput/ImageInput.stories.d.ts +1 -1
  132. package/inputs/ImageInput/__stories__/MaxSize.d.ts +3 -0
  133. package/inputs/ImageInput/index.js +8 -8
  134. package/inputs/ImageInput/index.js.map +2 -2
  135. package/inputs/Input/index.js +17 -4
  136. package/inputs/Input/index.js.map +3 -3
  137. package/inputs/Input/inputsInputScenarios.js.map +2 -2
  138. package/inputs/Label/index.d.ts +0 -2
  139. package/inputs/Label/index.js +2 -2
  140. package/inputs/Label/index.js.map +2 -2
  141. package/inputs/OtpInput/index.js.map +2 -2
  142. package/inputs/Radio/index.d.ts +5 -1
  143. package/inputs/Radio/index.js +57 -8
  144. package/inputs/Radio/index.js.map +2 -2
  145. package/inputs/Select/index.d.ts +1 -1
  146. package/inputs/Select/index.js +4 -2
  147. package/inputs/Select/index.js.map +2 -2
  148. package/inputs/inputsScenarios/index.js +4 -11
  149. package/inputs/inputsScenarios.d.ts +0 -42
  150. package/inputs/inputsScenarios.js.map +2 -2
  151. package/lazy/index.js +66 -65
  152. package/locales/el.js.map +1 -1
  153. package/package.json +4 -4
  154. package/registry/index.js +108 -107
  155. package/src/Field/FieldBase.tsx +1 -0
  156. package/src/Field/FieldBaseContainer.tsx +2 -2
  157. package/src/Field/FieldConditional.tsx +4 -0
  158. package/src/Field/index.tsx +4 -1
  159. package/src/Field/types.tsx +10 -8
  160. package/src/Field/utils/index.ts +18 -1
  161. package/src/FieldArray/index.test.tsx +14 -13
  162. package/src/FieldArray/index.tsx +9 -6
  163. package/src/FieldObject/index.tsx +8 -2
  164. package/src/Fieldset/index.tsx +5 -5
  165. package/src/Fieldset/types.tsx +2 -2
  166. package/src/FormBuilder/{FormBuilder.mdx → doc.mdx} +20 -33
  167. package/src/FormBuilder/index.test.tsx +11 -10
  168. package/src/FormBuilder/index.tsx +178 -7
  169. package/src/FormBuilder/scenarios.test.tsx +2 -2
  170. package/src/FormContext.tsx +1 -2
  171. package/src/MultiplicityField/add-objects.tsx +10 -8
  172. package/src/MultiplicityField/{MultiplicityField.mdx → doc.mdx} +12 -16
  173. package/src/MultiplicityField/index.test.tsx +26 -25
  174. package/src/MultiplicityField/index.tsx +15 -12
  175. package/src/MultiplicityField/types.ts +1 -2
  176. package/src/Questions/Questions.tsx +4 -4
  177. package/src/Questions/Step/StepArrayReview.tsx +1 -1
  178. package/src/Questions/Step/StepTitle.tsx +4 -3
  179. package/src/Questions/__snapshots__/index.spec.tsx.snap +8 -4
  180. package/src/Questions/{index.mdx → doc.mdx} +9 -12
  181. package/src/Questions/index.spec.tsx +6 -2
  182. package/src/Questions/index.test.tsx +11 -10
  183. package/src/create-simple-form.mdx +2 -6
  184. package/src/{index.mdx → doc.mdx} +4 -8
  185. package/src/index.ts +6 -0
  186. package/src/inputs/AutoCompleteInput/__stories__/Default.tsx +2 -10
  187. package/src/inputs/AutoCompleteInput/__stories__/Multiple.tsx +1 -8
  188. package/src/inputs/AutoCompleteInput/{index.mdx → doc.mdx} +2 -13
  189. package/src/inputs/AutoCompleteInput/index.test.tsx +14 -13
  190. package/src/inputs/AutoCompleteInput/index.tsx +36 -31
  191. package/src/inputs/Checkboxes/{index.mdx → doc.mdx} +5 -15
  192. package/src/inputs/Checkboxes/index.tsx +10 -8
  193. package/src/inputs/DateInput/__stories__/Default.tsx +7 -12
  194. package/src/inputs/DateInput/{index.mdx → doc.mdx} +1 -8
  195. package/src/inputs/DateInput/index.test.tsx +11 -10
  196. package/src/inputs/DateInput/index.tsx +6 -4
  197. package/src/inputs/FileInput/{index.mdx → doc.mdx} +1 -5
  198. package/src/inputs/FileInput/index.test.tsx +11 -10
  199. package/src/inputs/FileInput/index.tsx +7 -8
  200. package/src/inputs/ImageInput/ImageInput.stories.js +1 -1
  201. package/src/inputs/ImageInput/__stories__/MaxSize.tsx +37 -0
  202. package/src/inputs/ImageInput/__stories__/WithInvalidImageDimension.tsx +2 -0
  203. package/src/inputs/ImageInput/doc.mdx +23 -0
  204. package/src/inputs/ImageInput/index.test.tsx +21 -16
  205. package/src/inputs/ImageInput/index.tsx +10 -15
  206. package/src/inputs/Input/__stories__/LandlineNumber.tsx +2 -1
  207. package/src/inputs/Input/__stories__/MobilePhone.tsx +1 -0
  208. package/src/inputs/Input/__stories__/PhoneNumber.tsx +1 -0
  209. package/src/inputs/Input/__stories__/PostalCode.tsx +1 -0
  210. package/src/inputs/Input/doc.mdx +56 -0
  211. package/src/inputs/Input/index.test.tsx +38 -37
  212. package/src/inputs/Input/index.tsx +32 -29
  213. package/src/inputs/Input/inputsInputScenarios.ts +244 -245
  214. package/src/inputs/Label/doc.mdx +14 -0
  215. package/src/inputs/Label/index.test.tsx +11 -10
  216. package/src/inputs/Label/index.tsx +2 -6
  217. package/src/inputs/OtpInput/{index.mdx → doc.mdx} +1 -8
  218. package/src/inputs/OtpInput/index.test.tsx +11 -10
  219. package/src/inputs/OtpInput/index.tsx +2 -1
  220. package/src/inputs/Radio/__stories__/Conditional.tsx +2 -1
  221. package/src/inputs/Radio/{index.mdx → doc.mdx} +5 -15
  222. package/src/inputs/Radio/index.test.tsx +17 -16
  223. package/src/inputs/Radio/index.tsx +76 -10
  224. package/src/inputs/Select/{index.mdx → doc.mdx} +1 -5
  225. package/src/inputs/Select/index.test.tsx +11 -10
  226. package/src/inputs/Select/index.tsx +5 -3
  227. package/src/inputs/inputsScenarios.ts +174 -181
  228. package/src/installation.mdx +2 -5
  229. package/src/locales/el.ts +1 -1
  230. package/src/types.tsx +3 -2
  231. package/src/utils.ts +2 -2
  232. package/src/validators/index.ts +33 -71
  233. package/src/validators/utils/date.ts +107 -0
  234. package/src/validators/utils/file.ts +5 -3
  235. package/src/validators/utils/index.ts +1 -0
  236. package/src/validators/utils/phone.ts +1 -1
  237. package/src/validators/utils/postal_code.ts +1 -1
  238. package/src/validators/utils/uuid4.ts +2 -1
  239. package/src/validators/validators.spec.ts +3 -3
  240. package/types.d.ts +3 -3
  241. package/types.js.map +1 -1
  242. package/utils/index.js +2 -1
  243. package/utils.js.map +2 -2
  244. package/validators/index.js +20 -67
  245. package/validators/index.js.map +2 -2
  246. package/validators/utils/date/index.js +103 -0
  247. package/{Form.stories → validators/utils/date}/package.json +1 -1
  248. package/validators/utils/date.d.ts +9 -0
  249. package/validators/utils/date.js.map +7 -0
  250. package/validators/utils/file/index.js +1 -1
  251. package/validators/utils/file.js.map +2 -2
  252. package/validators/utils/index.d.ts +1 -0
  253. package/validators/utils/index.js +1 -0
  254. package/validators/utils/index.js.map +2 -2
  255. package/validators/utils/phone.d.ts +1 -1
  256. package/validators/utils/phone.js.map +2 -2
  257. package/validators/utils/postal_code.d.ts +1 -1
  258. package/validators/utils/postal_code.js.map +1 -1
  259. package/validators/utils/uuid4.js.map +2 -2
  260. package/FieldArray/FieldArray.stories/index.js +0 -14
  261. package/FieldArray/FieldArray.stories/package.json +0 -6
  262. package/FieldArray/FieldArray.stories.js.map +0 -7
  263. package/FieldArray/__stories__/Default/index.js +0 -95
  264. package/FieldArray/__stories__/Default/package.json +0 -6
  265. package/FieldArray/__stories__/Default.js.map +0 -7
  266. package/FieldArray/__stories__/WithExactLength/index.js +0 -95
  267. package/FieldArray/__stories__/WithExactLength/package.json +0 -6
  268. package/FieldArray/__stories__/WithExactLength.js.map +0 -7
  269. package/Form.stories/index.js +0 -7
  270. package/Form.stories.js.map +0 -7
  271. package/FormBuilder/FormBuilder.stories/index.js +0 -12
  272. package/FormBuilder/FormBuilder.stories/package.json +0 -6
  273. package/FormBuilder/FormBuilder.stories.js.map +0 -7
  274. package/FormBuilder/__stories__/Default/index.js +0 -32
  275. package/FormBuilder/__stories__/Default/package.json +0 -6
  276. package/FormBuilder/__stories__/Default.js.map +0 -7
  277. package/MultiplicityField/MultiplicityField.stories/index.js +0 -22
  278. package/MultiplicityField/MultiplicityField.stories/package.json +0 -6
  279. package/MultiplicityField/MultiplicityField.stories.js.map +0 -7
  280. package/MultiplicityField/__stories__/Default/index.js +0 -100
  281. package/MultiplicityField/__stories__/Default/package.json +0 -6
  282. package/MultiplicityField/__stories__/Default.js.map +0 -7
  283. package/MultiplicityField/__stories__/PreviewDisplay/index.js +0 -70
  284. package/MultiplicityField/__stories__/PreviewDisplay/package.json +0 -6
  285. package/MultiplicityField/__stories__/PreviewDisplay.js.map +0 -7
  286. package/MultiplicityField/__stories__/WithExactLength/index.js +0 -97
  287. package/MultiplicityField/__stories__/WithExactLength/package.json +0 -6
  288. package/MultiplicityField/__stories__/WithExactLength.js.map +0 -7
  289. package/MultiplicityField/__stories__/WithMaxLength/index.js +0 -100
  290. package/MultiplicityField/__stories__/WithMaxLength/package.json +0 -6
  291. package/MultiplicityField/__stories__/WithMaxLength.js.map +0 -7
  292. package/MultiplicityField/__stories__/WithMinAndMaxLength/index.js +0 -101
  293. package/MultiplicityField/__stories__/WithMinAndMaxLength/package.json +0 -6
  294. package/MultiplicityField/__stories__/WithMinAndMaxLength.js.map +0 -7
  295. package/MultiplicityField/__stories__/WithMinLength/index.js +0 -100
  296. package/MultiplicityField/__stories__/WithMinLength/package.json +0 -6
  297. package/MultiplicityField/__stories__/WithMinLength.js.map +0 -7
  298. package/Questions/Questions.stories/index.js +0 -12
  299. package/Questions/Questions.stories/package.json +0 -6
  300. package/Questions/Questions.stories.js.map +0 -7
  301. package/Questions/__stories__/Default/index.js +0 -108
  302. package/Questions/__stories__/Default/package.json +0 -6
  303. package/Questions/__stories__/Default.js.map +0 -7
  304. package/cjs/FieldArray/FieldArray.stories/index.js +0 -48
  305. package/cjs/FieldArray/FieldArray.stories.js.map +0 -7
  306. package/cjs/FieldArray/__stories__/Default/index.js +0 -128
  307. package/cjs/FieldArray/__stories__/Default.js.map +0 -7
  308. package/cjs/FieldArray/__stories__/WithExactLength/index.js +0 -128
  309. package/cjs/FieldArray/__stories__/WithExactLength.js.map +0 -7
  310. package/cjs/Form.stories/index.js +0 -26
  311. package/cjs/Form.stories.js.map +0 -7
  312. package/cjs/FormBuilder/FormBuilder.stories/index.js +0 -45
  313. package/cjs/FormBuilder/FormBuilder.stories.js.map +0 -7
  314. package/cjs/FormBuilder/__stories__/Default/index.js +0 -65
  315. package/cjs/FormBuilder/__stories__/Default.js.map +0 -7
  316. package/cjs/MultiplicityField/MultiplicityField.stories/index.js +0 -60
  317. package/cjs/MultiplicityField/MultiplicityField.stories.js.map +0 -7
  318. package/cjs/MultiplicityField/__stories__/Default/index.js +0 -133
  319. package/cjs/MultiplicityField/__stories__/Default.js.map +0 -7
  320. package/cjs/MultiplicityField/__stories__/PreviewDisplay/index.js +0 -86
  321. package/cjs/MultiplicityField/__stories__/PreviewDisplay.js.map +0 -7
  322. package/cjs/MultiplicityField/__stories__/WithExactLength/index.js +0 -130
  323. package/cjs/MultiplicityField/__stories__/WithExactLength.js.map +0 -7
  324. package/cjs/MultiplicityField/__stories__/WithMaxLength/index.js +0 -133
  325. package/cjs/MultiplicityField/__stories__/WithMaxLength.js.map +0 -7
  326. package/cjs/MultiplicityField/__stories__/WithMinAndMaxLength/index.js +0 -134
  327. package/cjs/MultiplicityField/__stories__/WithMinAndMaxLength.js.map +0 -7
  328. package/cjs/MultiplicityField/__stories__/WithMinLength/index.js +0 -133
  329. package/cjs/MultiplicityField/__stories__/WithMinLength.js.map +0 -7
  330. package/cjs/Questions/Questions.stories/index.js +0 -45
  331. package/cjs/Questions/Questions.stories.js.map +0 -7
  332. package/cjs/Questions/__stories__/Default/index.js +0 -136
  333. package/cjs/Questions/__stories__/Default.js.map +0 -7
  334. package/cjs/inputs/AutoCompleteInput/AutoComplete.stories/index.js +0 -48
  335. package/cjs/inputs/AutoCompleteInput/AutoComplete.stories.js.map +0 -7
  336. package/cjs/inputs/AutoCompleteInput/__stories__/Default/index.js +0 -83
  337. package/cjs/inputs/AutoCompleteInput/__stories__/Default.js.map +0 -7
  338. package/cjs/inputs/AutoCompleteInput/__stories__/Multiple/index.js +0 -84
  339. package/cjs/inputs/AutoCompleteInput/__stories__/Multiple.js.map +0 -7
  340. package/cjs/inputs/Checkboxes/Checkboxes.stories/index.js +0 -51
  341. package/cjs/inputs/Checkboxes/Checkboxes.stories.js.map +0 -7
  342. package/cjs/inputs/Checkboxes/__stories__/Conditional/index.js +0 -133
  343. package/cjs/inputs/Checkboxes/__stories__/Conditional.js.map +0 -7
  344. package/cjs/inputs/Checkboxes/__stories__/Default/index.js +0 -77
  345. package/cjs/inputs/Checkboxes/__stories__/Default.js.map +0 -7
  346. package/cjs/inputs/Checkboxes/__stories__/WithDivider/index.js +0 -78
  347. package/cjs/inputs/Checkboxes/__stories__/WithDivider.js.map +0 -7
  348. package/cjs/inputs/DateInput/DateInput.stories/index.js +0 -45
  349. package/cjs/inputs/DateInput/DateInput.stories.js.map +0 -7
  350. package/cjs/inputs/DateInput/__stories__/Default/index.js +0 -61
  351. package/cjs/inputs/DateInput/__stories__/Default.js.map +0 -7
  352. package/cjs/inputs/FileInput/FileInput.stories/index.js +0 -45
  353. package/cjs/inputs/FileInput/FileInput.stories.js.map +0 -7
  354. package/cjs/inputs/FileInput/__stories__/Default/index.js +0 -61
  355. package/cjs/inputs/FileInput/__stories__/Default.js.map +0 -7
  356. package/cjs/inputs/ImageInput/ImageInput.stories/index.js +0 -51
  357. package/cjs/inputs/ImageInput/ImageInput.stories.js.map +0 -7
  358. package/cjs/inputs/ImageInput/__stories__/Default/index.js +0 -63
  359. package/cjs/inputs/ImageInput/__stories__/Default.js.map +0 -7
  360. package/cjs/inputs/ImageInput/__stories__/WithInvalidImageDimension/index.js +0 -71
  361. package/cjs/inputs/ImageInput/__stories__/WithInvalidImageDimension.js.map +0 -7
  362. package/cjs/inputs/ImageInput/__stories__/WithInvalidImageSize/index.js +0 -68
  363. package/cjs/inputs/ImageInput/__stories__/WithInvalidImageSize.js.map +0 -7
  364. package/cjs/inputs/Input/Input.stories/index.js +0 -72
  365. package/cjs/inputs/Input/Input.stories.js.map +0 -7
  366. package/cjs/inputs/Input/__stories__/AFM/index.js +0 -63
  367. package/cjs/inputs/Input/__stories__/AFM.js.map +0 -7
  368. package/cjs/inputs/Input/__stories__/Boolean/index.js +0 -64
  369. package/cjs/inputs/Input/__stories__/Boolean.js.map +0 -7
  370. package/cjs/inputs/Input/__stories__/IBAN/index.js +0 -64
  371. package/cjs/inputs/Input/__stories__/IBAN.js.map +0 -7
  372. package/cjs/inputs/Input/__stories__/Integer/index.js +0 -78
  373. package/cjs/inputs/Input/__stories__/Integer.js.map +0 -7
  374. package/cjs/inputs/Input/__stories__/LandlineNumber/index.js +0 -67
  375. package/cjs/inputs/Input/__stories__/LandlineNumber.js.map +0 -7
  376. package/cjs/inputs/Input/__stories__/MobilePhone/index.js +0 -67
  377. package/cjs/inputs/Input/__stories__/MobilePhone.js.map +0 -7
  378. package/cjs/inputs/Input/__stories__/PhoneNumber/index.js +0 -66
  379. package/cjs/inputs/Input/__stories__/PhoneNumber.js.map +0 -7
  380. package/cjs/inputs/Input/__stories__/PostalCode/index.js +0 -64
  381. package/cjs/inputs/Input/__stories__/PostalCode.js.map +0 -7
  382. package/cjs/inputs/Input/__stories__/String/index.js +0 -64
  383. package/cjs/inputs/Input/__stories__/String.js.map +0 -7
  384. package/cjs/inputs/Input/__stories__/TextWithLimit/index.js +0 -64
  385. package/cjs/inputs/Input/__stories__/TextWithLimit.js.map +0 -7
  386. package/cjs/inputs/Label/Label.stories/index.js +0 -45
  387. package/cjs/inputs/Label/Label.stories.js.map +0 -7
  388. package/cjs/inputs/Label/__stories__/Default/index.js +0 -72
  389. package/cjs/inputs/Label/__stories__/Default.js.map +0 -7
  390. package/cjs/inputs/OtpInput/OtpInput.stories/index.js +0 -45
  391. package/cjs/inputs/OtpInput/OtpInput.stories.js.map +0 -7
  392. package/cjs/inputs/OtpInput/__stories__/Default/index.js +0 -64
  393. package/cjs/inputs/OtpInput/__stories__/Default.js.map +0 -7
  394. package/cjs/inputs/Radio/Radio.stories/index.js +0 -51
  395. package/cjs/inputs/Radio/Radio.stories.js.map +0 -7
  396. package/cjs/inputs/Radio/__stories__/Conditional/index.js +0 -133
  397. package/cjs/inputs/Radio/__stories__/Conditional.js.map +0 -7
  398. package/cjs/inputs/Radio/__stories__/Default/index.js +0 -81
  399. package/cjs/inputs/Radio/__stories__/Default.js.map +0 -7
  400. package/cjs/inputs/Radio/__stories__/WithDivider/index.js +0 -82
  401. package/cjs/inputs/Radio/__stories__/WithDivider.js.map +0 -7
  402. package/cjs/inputs/Select/Select.stories/index.js +0 -45
  403. package/cjs/inputs/Select/Select.stories.js.map +0 -7
  404. package/cjs/inputs/Select/__stories__/Default/index.js +0 -86
  405. package/cjs/inputs/Select/__stories__/Default.js.map +0 -7
  406. package/inputs/AutoCompleteInput/AutoComplete.stories/index.js +0 -14
  407. package/inputs/AutoCompleteInput/AutoComplete.stories/package.json +0 -6
  408. package/inputs/AutoCompleteInput/AutoComplete.stories.js.map +0 -7
  409. package/inputs/AutoCompleteInput/__stories__/Default/index.js +0 -50
  410. package/inputs/AutoCompleteInput/__stories__/Default/package.json +0 -6
  411. package/inputs/AutoCompleteInput/__stories__/Default.js.map +0 -7
  412. package/inputs/AutoCompleteInput/__stories__/Multiple/index.js +0 -51
  413. package/inputs/AutoCompleteInput/__stories__/Multiple/package.json +0 -6
  414. package/inputs/AutoCompleteInput/__stories__/Multiple.js.map +0 -7
  415. package/inputs/Checkboxes/Checkboxes.stories/index.js +0 -16
  416. package/inputs/Checkboxes/Checkboxes.stories/package.json +0 -6
  417. package/inputs/Checkboxes/Checkboxes.stories.js.map +0 -7
  418. package/inputs/Checkboxes/__stories__/Conditional/index.js +0 -100
  419. package/inputs/Checkboxes/__stories__/Conditional/package.json +0 -6
  420. package/inputs/Checkboxes/__stories__/Conditional.js.map +0 -7
  421. package/inputs/Checkboxes/__stories__/Default/index.js +0 -44
  422. package/inputs/Checkboxes/__stories__/Default/package.json +0 -6
  423. package/inputs/Checkboxes/__stories__/Default.js.map +0 -7
  424. package/inputs/Checkboxes/__stories__/WithDivider/index.js +0 -45
  425. package/inputs/Checkboxes/__stories__/WithDivider/package.json +0 -6
  426. package/inputs/Checkboxes/__stories__/WithDivider.js.map +0 -7
  427. package/inputs/DateInput/DateInput.stories/index.js +0 -12
  428. package/inputs/DateInput/DateInput.stories/package.json +0 -6
  429. package/inputs/DateInput/DateInput.stories.js.map +0 -7
  430. package/inputs/DateInput/__stories__/Default/index.js +0 -28
  431. package/inputs/DateInput/__stories__/Default/package.json +0 -6
  432. package/inputs/DateInput/__stories__/Default.js.map +0 -7
  433. package/inputs/FileInput/FileInput.stories/index.js +0 -12
  434. package/inputs/FileInput/FileInput.stories/package.json +0 -6
  435. package/inputs/FileInput/FileInput.stories.js.map +0 -7
  436. package/inputs/FileInput/__stories__/Default/index.js +0 -28
  437. package/inputs/FileInput/__stories__/Default/package.json +0 -6
  438. package/inputs/FileInput/__stories__/Default.js.map +0 -7
  439. package/inputs/ImageInput/ImageInput.stories/index.js +0 -16
  440. package/inputs/ImageInput/ImageInput.stories/package.json +0 -6
  441. package/inputs/ImageInput/ImageInput.stories.js.map +0 -7
  442. package/inputs/ImageInput/__stories__/Default/index.js +0 -30
  443. package/inputs/ImageInput/__stories__/Default/package.json +0 -6
  444. package/inputs/ImageInput/__stories__/Default.js.map +0 -7
  445. package/inputs/ImageInput/__stories__/WithInvalidImageDimension/index.js +0 -38
  446. package/inputs/ImageInput/__stories__/WithInvalidImageDimension/package.json +0 -6
  447. package/inputs/ImageInput/__stories__/WithInvalidImageDimension.js.map +0 -7
  448. package/inputs/ImageInput/__stories__/WithInvalidImageSize/index.js +0 -35
  449. package/inputs/ImageInput/__stories__/WithInvalidImageSize/package.json +0 -6
  450. package/inputs/ImageInput/__stories__/WithInvalidImageSize.js.map +0 -7
  451. package/inputs/Input/Input.stories/index.js +0 -30
  452. package/inputs/Input/Input.stories/package.json +0 -6
  453. package/inputs/Input/Input.stories.js.map +0 -7
  454. package/inputs/Input/__stories__/AFM/index.js +0 -30
  455. package/inputs/Input/__stories__/AFM/package.json +0 -6
  456. package/inputs/Input/__stories__/AFM.js.map +0 -7
  457. package/inputs/Input/__stories__/Boolean/index.js +0 -31
  458. package/inputs/Input/__stories__/Boolean/package.json +0 -6
  459. package/inputs/Input/__stories__/Boolean.js.map +0 -7
  460. package/inputs/Input/__stories__/IBAN/index.js +0 -31
  461. package/inputs/Input/__stories__/IBAN/package.json +0 -6
  462. package/inputs/Input/__stories__/IBAN.js.map +0 -7
  463. package/inputs/Input/__stories__/Integer/index.js +0 -45
  464. package/inputs/Input/__stories__/Integer/package.json +0 -6
  465. package/inputs/Input/__stories__/Integer.js.map +0 -7
  466. package/inputs/Input/__stories__/LandlineNumber/index.js +0 -34
  467. package/inputs/Input/__stories__/LandlineNumber/package.json +0 -6
  468. package/inputs/Input/__stories__/LandlineNumber.js.map +0 -7
  469. package/inputs/Input/__stories__/MobilePhone/index.js +0 -34
  470. package/inputs/Input/__stories__/MobilePhone/package.json +0 -6
  471. package/inputs/Input/__stories__/MobilePhone.js.map +0 -7
  472. package/inputs/Input/__stories__/PhoneNumber/index.js +0 -33
  473. package/inputs/Input/__stories__/PhoneNumber/package.json +0 -6
  474. package/inputs/Input/__stories__/PhoneNumber.js.map +0 -7
  475. package/inputs/Input/__stories__/PostalCode/index.js +0 -31
  476. package/inputs/Input/__stories__/PostalCode/package.json +0 -6
  477. package/inputs/Input/__stories__/PostalCode.js.map +0 -7
  478. package/inputs/Input/__stories__/String/index.js +0 -31
  479. package/inputs/Input/__stories__/String/package.json +0 -6
  480. package/inputs/Input/__stories__/String.js.map +0 -7
  481. package/inputs/Input/__stories__/TextWithLimit/index.js +0 -31
  482. package/inputs/Input/__stories__/TextWithLimit/package.json +0 -6
  483. package/inputs/Input/__stories__/TextWithLimit.js.map +0 -7
  484. package/inputs/Label/Label.stories/index.js +0 -12
  485. package/inputs/Label/Label.stories/package.json +0 -6
  486. package/inputs/Label/Label.stories.js.map +0 -7
  487. package/inputs/Label/__stories__/Default/index.js +0 -39
  488. package/inputs/Label/__stories__/Default/package.json +0 -6
  489. package/inputs/Label/__stories__/Default.js.map +0 -7
  490. package/inputs/OtpInput/OtpInput.stories/index.js +0 -12
  491. package/inputs/OtpInput/OtpInput.stories/package.json +0 -6
  492. package/inputs/OtpInput/OtpInput.stories.js.map +0 -7
  493. package/inputs/OtpInput/__stories__/Default/index.js +0 -31
  494. package/inputs/OtpInput/__stories__/Default/package.json +0 -6
  495. package/inputs/OtpInput/__stories__/Default.js.map +0 -7
  496. package/inputs/Radio/Radio.stories/index.js +0 -16
  497. package/inputs/Radio/Radio.stories/package.json +0 -6
  498. package/inputs/Radio/Radio.stories.js.map +0 -7
  499. package/inputs/Radio/__stories__/Conditional/index.js +0 -100
  500. package/inputs/Radio/__stories__/Conditional/package.json +0 -6
  501. package/inputs/Radio/__stories__/Conditional.js.map +0 -7
  502. package/inputs/Radio/__stories__/Default/index.js +0 -48
  503. package/inputs/Radio/__stories__/Default/package.json +0 -6
  504. package/inputs/Radio/__stories__/Default.js.map +0 -7
  505. package/inputs/Radio/__stories__/WithDivider/index.js +0 -49
  506. package/inputs/Radio/__stories__/WithDivider/package.json +0 -6
  507. package/inputs/Radio/__stories__/WithDivider.js.map +0 -7
  508. package/inputs/Select/Select.stories/index.js +0 -12
  509. package/inputs/Select/Select.stories/package.json +0 -6
  510. package/inputs/Select/Select.stories.js.map +0 -7
  511. package/inputs/Select/__stories__/Default/index.js +0 -53
  512. package/inputs/Select/__stories__/Default/package.json +0 -6
  513. package/inputs/Select/__stories__/Default.js.map +0 -7
  514. package/lazy.d.ts +0 -72
  515. package/lazy.js.map +0 -7
  516. package/registry.d.ts +0 -70
  517. package/registry.js.map +0 -7
  518. package/src/index.tsx +0 -178
  519. package/src/inputs/ImageInput/index.mdx +0 -19
  520. package/src/inputs/Input/index.mdx +0 -95
  521. package/src/inputs/Label/index.mdx +0 -0
  522. package/src/lazy.js +0 -63
  523. package/src/registry.js +0 -157
  524. /package/src/Field/{index.mdx → doc.mdx} +0 -0
@@ -38,9 +38,8 @@ const INPUTS_INPUT_FIELDS = [
38
38
  type: 'int',
39
39
  required: true,
40
40
  label: {
41
- primary: 'Ποιά είναι η ηλικία σας;',
42
- secondary:
43
- 'Καταχωρίστε την ηλικία σας',
41
+ primary: 'Ποιά είναι η ηλικία σας;',
42
+ secondary: 'Καταχωρίστε την ηλικία σας',
44
43
  },
45
44
  },
46
45
  {
@@ -73,9 +72,9 @@ const INPUTS_INPUT_FIELDS = [
73
72
  },
74
73
  required: true,
75
74
  extra: {
76
- countries: ['gr'],
75
+ countries: ['gr'],
77
76
  phoneType: 'mobile',
78
- }
77
+ },
79
78
  },
80
79
  {
81
80
  key: 'phone-number',
@@ -86,7 +85,7 @@ const INPUTS_INPUT_FIELDS = [
86
85
  required: true,
87
86
  extra: {
88
87
  countries: ['gr'],
89
- }
88
+ },
90
89
  },
91
90
  {
92
91
  key: 'phone-number-landline',
@@ -98,7 +97,7 @@ const INPUTS_INPUT_FIELDS = [
98
97
  extra: {
99
98
  countries: ['gr'],
100
99
  phoneType: 'landline',
101
- }
100
+ },
102
101
  },
103
102
  {
104
103
  key: 'postal-code',
@@ -106,300 +105,300 @@ const INPUTS_INPUT_FIELDS = [
106
105
  label: {
107
106
  primary: 'Συμπληρώστε τον ταχυδρομικό σας κώδικα',
108
107
  },
109
- extra:{ countries: ['GR'] },
108
+ extra: { countries: ['GR'] },
110
109
  required: true,
111
110
  },
112
- ]
113
-
111
+ ];
112
+
114
113
  export const scenarios = [
115
- {
116
- title: 'success fill for inputs Input',
117
- describe: 'inputs Input scenario',
118
- fields: INPUTS_INPUT_FIELDS,
119
- fill: [
120
- {
121
- fieldKey: 'text',
122
- value: 'aaaaaaa',
123
- },
124
- {
114
+ {
115
+ title: 'success fill for inputs Input',
116
+ describe: 'inputs Input scenario',
117
+ fields: INPUTS_INPUT_FIELDS,
118
+ fill: [
119
+ {
120
+ fieldKey: 'text',
121
+ value: 'aaaaaaa',
122
+ },
123
+ {
125
124
  fieldKey: 'age',
126
125
  value: '12',
127
- },
128
- {
126
+ },
127
+ {
129
128
  fieldKey: 'email',
130
129
  value: 'example@mail.com',
131
- },
132
- {
130
+ },
131
+ {
133
132
  fieldKey: 'location',
134
133
  value: 'Location1',
135
- },
136
- {
134
+ },
135
+ {
137
136
  fieldKey: 'postal-code',
138
137
  value: '42100',
139
- },
140
- {
138
+ },
139
+ {
141
140
  fieldKey: 'afm',
142
141
  value: '094536469',
143
- },
144
- {
142
+ },
143
+ {
145
144
  fieldKey: 'desired-mount',
146
- value: '12.5'
147
- },
148
- {
145
+ value: '12.5',
146
+ },
147
+ {
149
148
  fieldKey: 'mobile-phone',
150
- value: '+306900000000'
151
- },
152
- {
149
+ value: '+306900000000',
150
+ },
151
+ {
153
152
  fieldKey: 'phone-number',
154
- value: '6900000000'
155
- },
156
- {
153
+ value: '6900000000',
154
+ },
155
+ {
157
156
  fieldKey: 'phone-number-landline',
158
- value: '2100000000'
159
- },
160
- {
157
+ value: '2100000000',
158
+ },
159
+ {
161
160
  fieldKey: 'iban',
162
- value: 'GR3201122267115323218375195'
163
- },
164
- {
161
+ value: 'GR3201122267115323218375195',
162
+ },
163
+ {
165
164
  fieldKey: 'uuid4',
166
165
  value: '1e805d00-ea67-478a-ab8b-d13ff8b38fa3',
167
- }
168
- ],
169
- expect: [
170
- {
166
+ },
167
+ ],
168
+ expect: [
169
+ {
171
170
  type: 'success',
172
171
  fieldKey: 'age',
173
172
  text: el.form.error.required,
174
- },
175
- {
176
- type: 'success',
177
- fieldKey: 'text',
178
- text: el.form.error.required,
179
- },
180
- {
173
+ },
174
+ {
175
+ type: 'success',
176
+ fieldKey: 'text',
177
+ text: el.form.error.required,
178
+ },
179
+ {
181
180
  type: 'success',
182
181
  fieldKey: 'email',
183
182
  text: el.form.error.required,
184
- },
185
- {
183
+ },
184
+ {
186
185
  type: 'success',
187
186
  fieldKey: 'location',
188
187
  text: el.form.error.required,
189
- },
190
- {
188
+ },
189
+ {
191
190
  type: 'success',
192
191
  fieldKey: 'postal-code',
193
192
  text: el.form.error.required,
194
- },
195
- {
193
+ },
194
+ {
196
195
  type: 'success',
197
196
  fieldKey: 'afm',
198
197
  text: el.form.error.required,
199
- },
200
- {
198
+ },
199
+ {
201
200
  type: 'success',
202
201
  fieldKey: 'desired-mount',
203
202
  text: el.form.error.required,
204
- },
205
- {
203
+ },
204
+ {
206
205
  type: 'success',
207
206
  fieldKey: 'mobile-phone',
208
207
  text: el.form.error.required,
209
- },
210
- {
208
+ },
209
+ {
211
210
  type: 'success',
212
211
  fieldKey: 'phone-number',
213
212
  text: el.form.error.required,
214
- },
215
- {
213
+ },
214
+ {
216
215
  type: 'success',
217
216
  fieldKey: 'phone-number-landline',
218
217
  text: el.form.error.required,
219
- },
220
- {
218
+ },
219
+ {
221
220
  type: 'success',
222
221
  fieldKey: 'iban',
223
222
  text: el.form.error.required,
224
- },
225
- {
223
+ },
224
+ {
226
225
  type: 'success',
227
226
  fieldKey: 'uuid4',
228
227
  text: el.form.error.required,
229
- },
230
- ]
231
- },
232
- {
233
- title: 'empty fill for inputs Input',
234
- describe: 'inputs Input scenario',
235
- fields: INPUTS_INPUT_FIELDS,
236
- fill: [],
237
- expect: [
238
- {
239
- type: 'error',
240
- fieldKey: 'age',
241
- text: el.form.error.required,
242
- },
243
- {
244
- type: 'error',
245
- fieldKey: 'email',
246
- text: el.form.error.required,
247
- },
248
- {
249
- type: 'error',
250
- fieldKey: 'location',
251
- text: el.form.error.required,
252
- },
253
- {
254
- type: 'error',
255
- fieldKey: 'postal-code',
256
- text: el.form.error.required,
257
- },
258
- {
259
- type: 'error',
260
- fieldKey: 'afm',
261
- text: el.form.error.required,
262
- },
263
- {
264
- type: 'error',
265
- fieldKey: 'desired-mount',
266
- text: el.form.error.required,
267
- },
268
- {
269
- type: 'error',
270
- fieldKey: 'mobile-phone',
271
- text: el.form.error.required,
272
- },
273
- {
274
- type: 'error',
275
- fieldKey: 'phone-number',
276
- text: el.form.error.required,
277
- },
278
- {
279
- type: 'error',
280
- fieldKey: 'phone-number-landline',
281
- text: el.form.error.required,
282
- },
283
- {
284
- type: 'error',
285
- fieldKey: 'iban',
286
- text: el.form.error.required,
287
- },
288
- {
289
- type: 'error',
290
- fieldKey: 'uuid4',
291
- text: el.form.error.required,
292
- },
293
- ]
294
- },
295
- {
296
- title: 'incorrect types for inputs Input',
297
- describe: 'inputs Input scenario',
298
- fields: INPUTS_INPUT_FIELDS,
299
- fill: [
300
- {
301
- fieldKey: 'age',
302
- value: 'aa',
303
- },
304
- {
305
- fieldKey: 'email',
306
- value: '23232',
307
- },
308
- {
309
- fieldKey: 'location',
310
- value: '23232',
311
- },
312
- {
313
- fieldKey: 'postal-code',
314
- value: 'aaaaa',
315
- },
316
- {
317
- fieldKey: 'afm',
318
- value: 'aaaaaaaaa',
319
- },
320
- {
321
- fieldKey: 'desired-mount',
322
- value: 'aaa'
323
- },
324
- {
325
- fieldKey: 'mobile-phone',
326
- value: '+33690000000'
327
- },
328
- {
329
- fieldKey: 'phone-number',
330
- value: '000000000'
228
+ },
229
+ ],
331
230
  },
332
231
  {
333
- fieldKey: 'phone-number-landline',
334
- value: '000000000'
335
- },
336
- {
337
- fieldKey: 'iban',
338
- value: 'aaaaaa'
339
- },
340
- {
341
- fieldKey: 'uuid4',
342
- value: 'aaaaaa',
343
- }
344
- ],
345
- expect: [
346
- {
347
- type: 'error',
348
- fieldKey: 'age',
349
- text: el.form.error.number,
350
- },
351
- {
352
- type: 'error',
353
- fieldKey: 'email',
354
- text: el.form.error.email,
355
- },
356
- {
357
- type: 'success',
358
- fieldKey: 'location',
359
- text: el.form.error.string,
360
- },
361
- {
362
- type: 'error',
363
- fieldKey: 'postal-code',
364
- text: el.form.error.postalCode,
365
- },
366
- {
367
- type: 'error',
368
- fieldKey: 'afm',
369
- text: el.form.error.afm,
370
- },
371
- {
372
- type: 'error',
373
- fieldKey: 'desired-mount',
374
- text: el.form.error.number,
375
- },
376
- {
377
- type: 'error',
378
- fieldKey: 'mobile-phone',
379
- text: el.form.error.mobile_phone,
380
- },
381
- {
382
- type: 'error',
383
- fieldKey: 'phone-number',
384
- text: el.form.error.phone_number,
385
- },
386
- {
387
- type: 'error',
388
- fieldKey: 'phone-number-landline',
389
- text: el.form.error.landline,
390
- },
391
- {
392
- type: 'error',
393
- fieldKey: 'iban',
394
- text: el.form.error.iban,
232
+ title: 'empty fill for inputs Input',
233
+ describe: 'inputs Input scenario',
234
+ fields: INPUTS_INPUT_FIELDS,
235
+ fill: [],
236
+ expect: [
237
+ {
238
+ type: 'error',
239
+ fieldKey: 'age',
240
+ text: el.form.error.required,
241
+ },
242
+ {
243
+ type: 'error',
244
+ fieldKey: 'email',
245
+ text: el.form.error.required,
246
+ },
247
+ {
248
+ type: 'error',
249
+ fieldKey: 'location',
250
+ text: el.form.error.required,
251
+ },
252
+ {
253
+ type: 'error',
254
+ fieldKey: 'postal-code',
255
+ text: el.form.error.required,
256
+ },
257
+ {
258
+ type: 'error',
259
+ fieldKey: 'afm',
260
+ text: el.form.error.required,
261
+ },
262
+ {
263
+ type: 'error',
264
+ fieldKey: 'desired-mount',
265
+ text: el.form.error.required,
266
+ },
267
+ {
268
+ type: 'error',
269
+ fieldKey: 'mobile-phone',
270
+ text: el.form.error.required,
271
+ },
272
+ {
273
+ type: 'error',
274
+ fieldKey: 'phone-number',
275
+ text: el.form.error.required,
276
+ },
277
+ {
278
+ type: 'error',
279
+ fieldKey: 'phone-number-landline',
280
+ text: el.form.error.required,
281
+ },
282
+ {
283
+ type: 'error',
284
+ fieldKey: 'iban',
285
+ text: el.form.error.required,
286
+ },
287
+ {
288
+ type: 'error',
289
+ fieldKey: 'uuid4',
290
+ text: el.form.error.required,
291
+ },
292
+ ],
395
293
  },
396
294
  {
397
- type: 'error',
398
- fieldKey: 'uuid4',
399
- text: el.form.error.uuid4,
295
+ title: 'incorrect types for inputs Input',
296
+ describe: 'inputs Input scenario',
297
+ fields: INPUTS_INPUT_FIELDS,
298
+ fill: [
299
+ {
300
+ fieldKey: 'age',
301
+ value: 'aa',
302
+ },
303
+ {
304
+ fieldKey: 'email',
305
+ value: '23232',
306
+ },
307
+ {
308
+ fieldKey: 'location',
309
+ value: '23232',
310
+ },
311
+ {
312
+ fieldKey: 'postal-code',
313
+ value: 'aaaaa',
314
+ },
315
+ {
316
+ fieldKey: 'afm',
317
+ value: 'aaaaaaaaa',
318
+ },
319
+ {
320
+ fieldKey: 'desired-mount',
321
+ value: 'aaa',
322
+ },
323
+ {
324
+ fieldKey: 'mobile-phone',
325
+ value: '+33690000000',
326
+ },
327
+ {
328
+ fieldKey: 'phone-number',
329
+ value: '000000000',
330
+ },
331
+ {
332
+ fieldKey: 'phone-number-landline',
333
+ value: '000000000',
334
+ },
335
+ {
336
+ fieldKey: 'iban',
337
+ value: 'aaaaaa',
338
+ },
339
+ {
340
+ fieldKey: 'uuid4',
341
+ value: 'aaaaaa',
342
+ },
343
+ ],
344
+ expect: [
345
+ {
346
+ type: 'error',
347
+ fieldKey: 'age',
348
+ text: el.form.error.number,
349
+ },
350
+ {
351
+ type: 'error',
352
+ fieldKey: 'email',
353
+ text: el.form.error.email,
354
+ },
355
+ {
356
+ type: 'success',
357
+ fieldKey: 'location',
358
+ text: el.form.error.string,
359
+ },
360
+ {
361
+ type: 'error',
362
+ fieldKey: 'postal-code',
363
+ text: el.form.error.postalCode,
364
+ },
365
+ {
366
+ type: 'error',
367
+ fieldKey: 'afm',
368
+ text: el.form.error.afm,
369
+ },
370
+ {
371
+ type: 'error',
372
+ fieldKey: 'desired-mount',
373
+ text: el.form.error.number,
374
+ },
375
+ {
376
+ type: 'error',
377
+ fieldKey: 'mobile-phone',
378
+ text: el.form.error.mobile_phone,
379
+ },
380
+ {
381
+ type: 'error',
382
+ fieldKey: 'phone-number',
383
+ text: el.form.error.phone_number,
384
+ },
385
+ {
386
+ type: 'error',
387
+ fieldKey: 'phone-number-landline',
388
+ text: el.form.error.landline,
389
+ },
390
+ {
391
+ type: 'error',
392
+ fieldKey: 'iban',
393
+ text: el.form.error.iban,
394
+ },
395
+ {
396
+ type: 'error',
397
+ fieldKey: 'uuid4',
398
+ text: el.form.error.uuid4,
399
+ },
400
+ ],
400
401
  },
401
- ]
402
- },
403
- ]
402
+ ];
404
403
 
405
- export default scenarios
404
+ export default scenarios;
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: Label
3
+ ---
4
+
5
+ # Label
6
+
7
+
8
+ The Label component is used to display descriptive text for form sections or fields. It supports both primary and secondary text, allowing for a title and optional subtitle.
9
+
10
+ ## How to use
11
+
12
+ ### Default
13
+
14
+ <code src="@digigov/form/inputs/Label/__stories__/Default.tsx" />
@@ -1,20 +1,21 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Default } from '@digigov/form/inputs/Label/__stories__/Default';
4
+ import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All Label variants', async ({ mount, page }) => {
7
7
  await mount(
8
-
9
- <div>
10
- <TestVariant title="Default">
11
- <Default />
12
- </TestVariant>
13
- </div>
14
- )
8
+ <div>
9
+ <TestVariant title="Default">
10
+ <Default />
11
+ </TestVariant>
12
+ </div>
13
+ );
15
14
  await page.evaluate(() => document.fonts.ready);
16
15
 
17
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
16
+ const screenshot = await page.screenshot({
17
+ fullPage: true,
18
+ animations: 'disabled',
19
+ });
18
20
  expect(screenshot).toMatchSnapshot();
19
21
  });
20
-
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { FieldLabelProps } from '@digigov/form/types';
3
- import Hint from '@digigov/react-core/Hint';
4
- import LabelTitle from '@digigov/react-core/LabelTitle';
3
+ import { LabelTitle } from '@digigov/ui/form/LabelContainer';
5
4
  import { useTranslation } from '@digigov/ui/i18n';
5
+ import { Hint } from '@digigov/ui/typography/Hint';
6
6
 
7
7
  export interface FieldOptionProps {
8
8
  label?: FieldLabelProps;
@@ -16,9 +16,6 @@ export interface FieldOptionProps {
16
16
  export interface LabelProps {
17
17
  primary?: string;
18
18
  secondary?: string;
19
- }
20
-
21
- export interface LabelProps {
22
19
  className?: string;
23
20
  value?: string;
24
21
  label?: FieldLabelProps;
@@ -39,5 +36,4 @@ export const Label: React.FC<LabelProps> = ({ className, label, value }) => {
39
36
  );
40
37
  };
41
38
 
42
-
43
39
  export default Label;
@@ -13,11 +13,4 @@ on a computer system or other digital device.
13
13
 
14
14
  ### Default
15
15
 
16
- <Story
17
- packageName="@digigov/form"
18
- component="inputs/OtpInput"
19
- story="Default.tsx"
20
- />
21
-
22
-
23
-
16
+ <code src="@digigov/form/inputs/OtpInput/__stories__/Default.tsx" />
@@ -1,20 +1,21 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Default } from '@digigov/form/inputs/OtpInput/__stories__/Default';
4
+ import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All OtpInput variants', async ({ mount, page }) => {
7
7
  await mount(
8
-
9
- <div>
10
- <TestVariant title="Default">
11
- <Default />
12
- </TestVariant>
13
- </div>
14
- )
8
+ <div>
9
+ <TestVariant title="Default">
10
+ <Default />
11
+ </TestVariant>
12
+ </div>
13
+ );
15
14
  await page.evaluate(() => document.fonts.ready);
16
15
 
17
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
16
+ const screenshot = await page.screenshot({
17
+ fullPage: true,
18
+ animations: 'disabled',
19
+ });
18
20
  expect(screenshot).toMatchSnapshot();
19
21
  });
20
-