@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
@@ -1,7 +0,0 @@
1
- import DateInput from '@digigov/form/inputs/DateInput';
2
- export default {
3
- title: 'Digigov Form/inputs/DateInput',
4
- component: DateInput,
5
- displayName: 'DateInput'
6
- };
7
- export * from '@digigov/form/inputs/DateInput/__stories__/Default';
@@ -1,72 +0,0 @@
1
- {
2
- "version": "4",
3
- "stories": {
4
- "digigov-form-inputs-dateinput--default": {
5
- "actionSets": [
6
- {
7
- "actions": [
8
- {
9
- "name": "keyboard.press",
10
- "args": {
11
- "key": "Tab"
12
- }
13
- },
14
- {
15
- "name": "keyboard.press",
16
- "args": {
17
- "key": "Tab"
18
- }
19
- },
20
- {
21
- "name": "keyboard.press",
22
- "args": {
23
- "key": "Tab"
24
- }
25
- }
26
- ],
27
- "id": "n5PFnx7RcuJV",
28
- "title": "navigate with keyboard"
29
- },
30
- {
31
- "actions": [
32
- {
33
- "name": "click",
34
- "args": {
35
- "selector": "html>body>div:nth-child(5)>form>button"
36
- }
37
- },
38
- {
39
- "name": "type",
40
- "args": {
41
- "selector": "html>body>div:nth-child(5)>form>div>fieldset>div>div:nth-child(1)>label>input",
42
- "text": "33"
43
- }
44
- },
45
- {
46
- "name": "type",
47
- "args": {
48
- "selector": "html>body>div:nth-child(5)>form>div>fieldset>div>div:nth-child(2)>label>input",
49
- "text": "33"
50
- }
51
- },
52
- {
53
- "name": "type",
54
- "args": {
55
- "selector": "html>body>div:nth-child(5)>form>div>fieldset>div>div:nth-child(3)>label>input",
56
- "text": "3333"
57
- }
58
- },
59
- {
60
- "name": "click",
61
- "args": {
62
- "selector": "html>body>div:nth-child(5)>form>button"
63
- }
64
- }
65
- ],
66
- "id": "Ck7_BFdgITMe",
67
- "title": "show validation errors"
68
- }
69
- ]
70
- }
71
- }
72
- }
@@ -1,7 +0,0 @@
1
- import FileInput from '@digigov/form/inputs/FileInput';
2
- export default {
3
- title: 'Digigov Form/inputs/FileInput',
4
- component: FileInput,
5
- displayName: 'FileInput'
6
- };
7
- export * from '@digigov/form/inputs/FileInput/__stories__/Default';
@@ -1,75 +0,0 @@
1
- {
2
- "version": "4",
3
- "stories": {
4
- "digigov-form-inputs-fileinput--default": {
5
- "actionSets": [
6
- {
7
- "actions": [
8
- {
9
- "name": "click",
10
- "args": {
11
- "selector": "html>body>div:nth-child(5)>form>button"
12
- }
13
- }
14
- ],
15
- "id": "c4Jhtju9oCJZ",
16
- "title": "show validation error"
17
- },
18
- {
19
- "actions": [
20
- {
21
- "name": "setFiles",
22
- "args": {
23
- "selector": "html>body>div:nth-child(5)>form>div>fieldset>div>label",
24
- "file": {
25
- "name": "arxeio.txt",
26
- "size": 200
27
- }
28
- }
29
- },
30
- {
31
- "name": "click",
32
- "args": {
33
- "selector": "html>body>div:nth-child(5)>form>div>fieldset>div>button"
34
- }
35
- }
36
- ],
37
- "id": "WPIcVVWz-299",
38
- "title": "add file and remove"
39
- },
40
- {
41
- "actions": [
42
- {
43
- "name": "setFiles",
44
- "args": {
45
- "selector": "html>body>div:nth-child(5)>form>div>fieldset>div>label",
46
- "file": {
47
- "name": "arxeio.txt",
48
- "size": 200
49
- }
50
- }
51
- },
52
- {
53
- "name": "setFiles",
54
- "args": {
55
- "selector": "html>body>div:nth-child(5)>form>div>fieldset>div>label",
56
- "file": {
57
- "name": "neo_arxeio.txt",
58
- "size": 200
59
- }
60
- }
61
- },
62
- {
63
- "name": "click",
64
- "args": {
65
- "selector": "html>body>div:nth-child(5)>form>button"
66
- }
67
- }
68
- ],
69
- "id": "inSBFd25dzkC",
70
- "title": "add file, replace and remove"
71
- }
72
- ]
73
- }
74
- }
75
- }
@@ -1,15 +0,0 @@
1
- import Input from '@digigov/form/inputs/Input';
2
- export default {
3
- title: 'Digigov Form/inputs/Input',
4
- component: Input,
5
- displayName: 'Input'
6
- };
7
- export * from '@digigov/form/inputs/Input/__stories__/Default';
8
- export * from '@digigov/form/inputs/Input/__stories__/Integer';
9
- export * from '@digigov/form/inputs/Input/__stories__/Boolean';
10
- export * from '@digigov/form/inputs/Input/__stories__/PhoneNumber';
11
- export * from '@digigov/form/inputs/Input/__stories__/MobilePhone';
12
- export * from '@digigov/form/inputs/Input/__stories__/AFM';
13
- export * from '@digigov/form/inputs/Input/__stories__/IBAN';
14
- export * from '@digigov/form/inputs/Input/__stories__/PostalCode';
15
- export * from '@digigov/form/inputs/Input/__stories__/TextWithCharacterLimit';
@@ -1,376 +0,0 @@
1
- {
2
- "version": "4",
3
- "stories": {
4
- "digigov-form-inputs-input--integer": {
5
- "actionSets": [
6
- {
7
- "actions": [
8
- {
9
- "name": "keyboard.press",
10
- "args": {
11
- "key": "Tab"
12
- }
13
- },
14
- {
15
- "name": "keyboard.press",
16
- "args": {
17
- "key": "Tab"
18
- }
19
- },
20
- {
21
- "name": "keyboard.press",
22
- "args": {
23
- "key": "Enter"
24
- }
25
- }
26
- ],
27
- "id": "ppNIb7vjFntx",
28
- "title": "navigate with tab and submit"
29
- },
30
- {
31
- "actions": [
32
- {
33
- "name": "type",
34
- "args": {
35
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
36
- "text": "1.1"
37
- }
38
- },
39
- {
40
- "name": "click",
41
- "args": {
42
- "selector": "html>body>div:nth-child(5)>form>button"
43
- }
44
- }
45
- ],
46
- "id": "CWKxXNnOLhtt",
47
- "title": "add wrong number and submit"
48
- },
49
- {
50
- "actions": [
51
- {
52
- "name": "clearInput",
53
- "args": {
54
- "selector": "html>body>div:nth-child(5)>form>div>label>input"
55
- }
56
- },
57
- {
58
- "name": "type",
59
- "args": {
60
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
61
- "text": "2"
62
- }
63
- },
64
- {
65
- "name": "click",
66
- "args": {
67
- "selector": "html>body>div:nth-child(5)>form>button"
68
- }
69
- }
70
- ],
71
- "id": "d2XTmn_xZito",
72
- "title": "Add correct number and submit"
73
- }
74
- ]
75
- },
76
- "digigov-form-inputs-input--default": {
77
- "actionSets": [
78
- {
79
- "actions": [
80
- {
81
- "name": "click",
82
- "args": {
83
- "selector": "html>body>div:nth-child(5)>form>button"
84
- }
85
- }
86
- ],
87
- "id": "QHGdovoSxdA3",
88
- "title": "show validation error"
89
- },
90
- {
91
- "actions": [
92
- {
93
- "name": "type",
94
- "args": {
95
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
96
- "text": "aA1@"
97
- }
98
- },
99
- {
100
- "name": "click",
101
- "args": {
102
- "selector": "html>body>div:nth-child(5)>form>button"
103
- }
104
- }
105
- ],
106
- "id": "6-b0oP8dmS91",
107
- "title": "type and submit"
108
- },
109
- {
110
- "actions": [
111
- {
112
- "name": "keyboard.press",
113
- "args": {
114
- "key": "Tab"
115
- }
116
- }
117
- ],
118
- "id": "WWwt_BZdizHx",
119
- "title": "focus"
120
- }
121
- ]
122
- },
123
- "digigov-form-inputs-input--phone-number": {
124
- "actionSets": [
125
- {
126
- "actions": [
127
- {
128
- "name": "click",
129
- "args": {
130
- "selector": "html>body>div:nth-child(5)>form>button"
131
- }
132
- },
133
- {
134
- "name": "type",
135
- "args": {
136
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
137
- "text": "1234567890"
138
- }
139
- },
140
- {
141
- "name": "click",
142
- "args": {
143
- "selector": "html>body>div:nth-child(5)>form>button"
144
- }
145
- }
146
- ],
147
- "id": "iE8KCHv68Fb2",
148
- "title": "show validation errors"
149
- },
150
- {
151
- "actions": [
152
- {
153
- "name": "keyboard.press",
154
- "args": {
155
- "key": "Tab"
156
- }
157
- },
158
- {
159
- "name": "type",
160
- "args": {
161
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
162
- "text": "2105665434"
163
- }
164
- },
165
- {
166
- "name": "click",
167
- "args": {
168
- "selector": "html>body>div:nth-child(5)>form>button"
169
- }
170
- }
171
- ],
172
- "id": "5qMVj35xlepo",
173
- "title": "focus and add number"
174
- }
175
- ]
176
- },
177
- "digigov-form-inputs-input--mobile-phone": {
178
- "actionSets": [
179
- {
180
- "actions": [
181
- {
182
- "name": "click",
183
- "args": {
184
- "selector": "html>body>div:nth-child(5)>form>button"
185
- }
186
- },
187
- {
188
- "name": "type",
189
- "args": {
190
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
191
- "text": "1234567890"
192
- }
193
- },
194
- {
195
- "name": "click",
196
- "args": {
197
- "selector": "html>body>div:nth-child(5)>form>button"
198
- }
199
- }
200
- ],
201
- "id": "a-G51O6gqmv8",
202
- "title": "show validation errors"
203
- },
204
- {
205
- "actions": [
206
- {
207
- "name": "keyboard.press",
208
- "args": {
209
- "key": "Tab"
210
- }
211
- },
212
- {
213
- "name": "type",
214
- "args": {
215
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
216
- "text": "6976128341"
217
- }
218
- },
219
- {
220
- "name": "click",
221
- "args": {
222
- "selector": "html>body>div:nth-child(5)>form>button"
223
- }
224
- }
225
- ],
226
- "id": "i6t6alh2h82C",
227
- "title": "focus, type correct phone and submit"
228
- }
229
- ]
230
- },
231
- "digigov-form-inputs-input--afm": {
232
- "actionSets": [
233
- {
234
- "actions": [
235
- {
236
- "name": "click",
237
- "args": {
238
- "selector": "html>body>div:nth-child(5)>form>button"
239
- }
240
- },
241
- {
242
- "name": "type",
243
- "args": {
244
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
245
- "text": "1234567890"
246
- }
247
- },
248
- {
249
- "name": "click",
250
- "args": {
251
- "selector": "html>body>div:nth-child(5)>form>button"
252
- }
253
- }
254
- ],
255
- "id": "odbhZlBu8X2W",
256
- "title": "show validation errors"
257
- },
258
- {
259
- "actions": [
260
- {
261
- "name": "type",
262
- "args": {
263
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
264
- "text": "094536469"
265
- }
266
- },
267
- {
268
- "name": "click",
269
- "args": {
270
- "selector": "html>body>div:nth-child(5)>form>button"
271
- }
272
- }
273
- ],
274
- "id": "YmmCoFpuTt8c",
275
- "title": "add correct afm"
276
- }
277
- ]
278
- },
279
- "digigov-form-inputs-input--iban": {
280
- "actionSets": [
281
- {
282
- "actions": [
283
- {
284
- "name": "type",
285
- "args": {
286
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
287
- "text": "FR5814508000304268743732K61"
288
- }
289
- },
290
- {
291
- "name": "click",
292
- "args": {
293
- "selector": "html>body>div:nth-child(5)>form>button"
294
- }
295
- }
296
- ],
297
- "id": "q0W9XfvDT7hB",
298
- "title": "add iban"
299
- },
300
- {
301
- "actions": [
302
- {
303
- "name": "click",
304
- "args": {
305
- "selector": "html>body>div:nth-child(5)>form>button"
306
- }
307
- },
308
- {
309
- "name": "type",
310
- "args": {
311
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
312
- "text": "FR5814508000304268743732K6"
313
- }
314
- },
315
- {
316
- "name": "click",
317
- "args": {
318
- "selector": "html>body>div:nth-child(5)>form>button"
319
- }
320
- }
321
- ],
322
- "id": "uiMoCRDxz41F",
323
- "title": "show validation errors"
324
- }
325
- ]
326
- },
327
- "digigov-form-inputs-input--postal-code": {
328
- "actionSets": [
329
- {
330
- "actions": [
331
- {
332
- "name": "click",
333
- "args": {
334
- "selector": "html>body>div:nth-child(5)>form>button"
335
- }
336
- },
337
- {
338
- "name": "type",
339
- "args": {
340
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
341
- "text": "111111"
342
- }
343
- },
344
- {
345
- "name": "click",
346
- "args": {
347
- "selector": "html>body>div:nth-child(5)>form>button"
348
- }
349
- }
350
- ],
351
- "id": "M2R-kMnEQxdA",
352
- "title": "show validation errors"
353
- },
354
- {
355
- "actions": [
356
- {
357
- "name": "type",
358
- "args": {
359
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
360
- "text": "42100"
361
- }
362
- },
363
- {
364
- "name": "click",
365
- "args": {
366
- "selector": "html>body>div:nth-child(5)>form>button"
367
- }
368
- }
369
- ],
370
- "id": "IZKORVUoJzQt",
371
- "title": "add postal code"
372
- }
373
- ]
374
- }
375
- }
376
- }
@@ -1,8 +0,0 @@
1
- ---
2
- title: Input
3
- parent: docs/ui/components
4
- ---
5
-
6
- ## Example
7
-
8
- <Input type="text" />
@@ -1,7 +0,0 @@
1
- import Label from '@digigov/form/inputs/Label';
2
- export default {
3
- title: 'Digigov Form/inputs/Label',
4
- component: Label,
5
- displayName: 'Label'
6
- };
7
- export * from '@digigov/form/inputs/Label/__stories__/Default';
@@ -1,40 +0,0 @@
1
- {
2
- "version": "4",
3
- "stories": {
4
- "digigov-form-inputs-label--default": {
5
- "actionSets": [
6
- {
7
- "actions": [
8
- {
9
- "name": "click",
10
- "args": {
11
- "selector": "html>body>div:nth-child(5)>form>button"
12
- }
13
- }
14
- ],
15
- "id": "ooEeQHqEWAfT",
16
- "title": "Validation"
17
- },
18
- {
19
- "actions": [
20
- {
21
- "name": "type",
22
- "args": {
23
- "selector": "html>body>div:nth-child(5)>form>div>label>input",
24
- "text": "Hello"
25
- }
26
- },
27
- {
28
- "name": "click",
29
- "args": {
30
- "selector": "html>body>div:nth-child(5)>form>button"
31
- }
32
- }
33
- ],
34
- "id": "q4WekeUxbs0v",
35
- "title": "add text"
36
- }
37
- ]
38
- }
39
- }
40
- }
File without changes
@@ -1,7 +0,0 @@
1
- import OtpInput from '@digigov/form/inputs/OtpInput';
2
- export default {
3
- title: 'Digigov Form/inputs/OtpInput',
4
- component: OtpInput,
5
- displayName: 'OtpInput'
6
- };
7
- export * from '@digigov/form/inputs/OtpInput/__stories__/Default';
@@ -1,9 +0,0 @@
1
- import Radio from '@digigov/form/inputs/Radio';
2
- export default {
3
- title: 'Digigov Form/inputs/Radio',
4
- component: Radio,
5
- displayName: 'Radio'
6
- };
7
- export * from '@digigov/form/inputs/Radio/__stories__/Default';
8
- export * from '@digigov/form/inputs/Radio/__stories__/WithDivider';
9
- export * from '@digigov/form/inputs/Radio/__stories__/Conditional';