@tsed/react-formio 2.3.6 → 3.0.0-alpha.10

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 (554) hide show
  1. package/dist/atoms/icon/Icon.d.ts +6 -0
  2. package/dist/atoms/icon/Icon.js +12 -0
  3. package/dist/atoms/icon/Icon.js.map +1 -0
  4. package/dist/chunks/_commonjsHelpers.js +7 -0
  5. package/dist/chunks/_commonjsHelpers.js.map +1 -0
  6. package/dist/chunks/index.js +43 -0
  7. package/dist/chunks/index.js.map +1 -0
  8. package/dist/chunks/index.module.js +56 -0
  9. package/dist/chunks/index.module.js.map +1 -0
  10. package/dist/chunks/react-select-animated.esm.js +3513 -0
  11. package/dist/chunks/react-select-animated.esm.js.map +1 -0
  12. package/dist/hooks/useTooltip.d.ts +2 -3
  13. package/dist/hooks/useTooltip.js +12 -0
  14. package/dist/hooks/useTooltip.js.map +1 -0
  15. package/dist/index.d.ts +7 -13
  16. package/dist/index.js +14 -7653
  17. package/dist/index.js.map +1 -1
  18. package/dist/interfaces/ActionType.d.ts +23 -0
  19. package/dist/interfaces/ActionType.js +2 -0
  20. package/dist/interfaces/ActionType.js.map +1 -0
  21. package/dist/interfaces/ColumnIdentifier.d.ts +14 -14
  22. package/dist/interfaces/ColumnIdentifier.js +2 -0
  23. package/dist/interfaces/ColumnIdentifier.js.map +1 -0
  24. package/dist/interfaces/ComponentType.d.ts +2 -0
  25. package/dist/interfaces/ComponentType.js +2 -0
  26. package/dist/interfaces/ComponentType.js.map +1 -0
  27. package/dist/interfaces/FormOptions.d.ts +13 -10
  28. package/dist/interfaces/FormOptions.js +2 -0
  29. package/dist/interfaces/FormOptions.js.map +1 -0
  30. package/dist/interfaces/{FormSchema.d.ts → FormType.d.ts} +12 -12
  31. package/dist/interfaces/FormType.js +2 -0
  32. package/dist/interfaces/FormType.js.map +1 -0
  33. package/dist/interfaces/Operation.d.ts +28 -29
  34. package/dist/interfaces/Operation.js +2 -0
  35. package/dist/interfaces/Operation.js.map +1 -0
  36. package/dist/interfaces/QueryOptions.d.ts +23 -23
  37. package/dist/interfaces/QueryOptions.js +2 -0
  38. package/dist/interfaces/QueryOptions.js.map +1 -0
  39. package/dist/interfaces/{RoleSchema.d.ts → RoleType.d.ts} +6 -6
  40. package/dist/interfaces/RoleType.js +2 -0
  41. package/dist/interfaces/RoleType.js.map +1 -0
  42. package/dist/interfaces/SubmissionType.d.ts +29 -0
  43. package/dist/interfaces/SubmissionType.js +2 -0
  44. package/dist/interfaces/SubmissionType.js.map +1 -0
  45. package/dist/interfaces/index.d.ts +9 -8
  46. package/dist/interfaces/index.js +2 -0
  47. package/dist/interfaces/index.js.map +1 -0
  48. package/dist/molecules/alert/Alert.d.ts +6 -0
  49. package/dist/molecules/alert/Alert.js +27 -0
  50. package/dist/molecules/alert/Alert.js.map +1 -0
  51. package/dist/molecules/button/Button.d.ts +8 -0
  52. package/dist/molecules/button/Button.js +52 -0
  53. package/dist/molecules/button/Button.js.map +1 -0
  54. package/dist/{components/card/card.component.d.ts → molecules/card/Card.d.ts} +6 -7
  55. package/dist/molecules/card/Card.js +12 -0
  56. package/dist/molecules/card/Card.js.map +1 -0
  57. package/dist/molecules/forms/form-control/FormControl.d.ts +17 -0
  58. package/dist/molecules/forms/form-control/FormControl.js +51 -0
  59. package/dist/molecules/forms/form-control/FormControl.js.map +1 -0
  60. package/dist/molecules/forms/input-tags/InputTags.d.ts +2 -0
  61. package/dist/molecules/forms/input-tags/InputTags.interface.d.ts +7 -0
  62. package/dist/molecules/forms/input-tags/InputTags.interface.js +2 -0
  63. package/dist/molecules/forms/input-tags/InputTags.interface.js.map +1 -0
  64. package/dist/molecules/forms/input-tags/InputTags.js +25 -0
  65. package/dist/molecules/forms/input-tags/InputTags.js.map +1 -0
  66. package/dist/molecules/forms/input-tags/all.d.ts +2 -0
  67. package/dist/molecules/forms/input-tags/all.js +9 -0
  68. package/dist/molecules/forms/input-tags/all.js.map +1 -0
  69. package/dist/molecules/forms/input-tags/components/ChoicesTags.d.ts +307 -0
  70. package/dist/molecules/forms/input-tags/components/ChoicesTags.js +51 -0
  71. package/dist/molecules/forms/input-tags/components/ChoicesTags.js.map +1 -0
  72. package/dist/molecules/forms/input-tags/components/ReactTags.d.ts +2 -0
  73. package/dist/molecules/forms/input-tags/components/ReactTags.js +1937 -0
  74. package/dist/molecules/forms/input-tags/components/ReactTags.js.map +1 -0
  75. package/dist/molecules/forms/input-text/InputText.d.ts +2 -0
  76. package/dist/molecules/forms/input-text/InputText.interface.d.ts +4 -0
  77. package/dist/molecules/forms/input-text/InputText.interface.js +2 -0
  78. package/dist/molecules/forms/input-text/InputText.interface.js.map +1 -0
  79. package/dist/molecules/forms/input-text/InputText.js +54 -0
  80. package/dist/molecules/forms/input-text/InputText.js.map +1 -0
  81. package/dist/molecules/forms/select/Select.d.ts +2 -0
  82. package/dist/molecules/forms/select/Select.interface.d.ts +38 -0
  83. package/dist/molecules/forms/select/Select.interface.js +2 -0
  84. package/dist/molecules/forms/select/Select.interface.js.map +1 -0
  85. package/dist/molecules/forms/select/Select.js +16 -0
  86. package/dist/molecules/forms/select/Select.js.map +1 -0
  87. package/dist/molecules/forms/select/all.d.ts +2 -0
  88. package/dist/molecules/forms/select/all.js +9 -0
  89. package/dist/molecules/forms/select/all.js.map +1 -0
  90. package/dist/molecules/forms/select/components/ChoicesSelect.d.ts +7 -0
  91. package/dist/molecules/forms/select/components/ChoicesSelect.js +115 -0
  92. package/dist/molecules/forms/select/components/ChoicesSelect.js.map +1 -0
  93. package/dist/molecules/forms/select/components/HtmlSelect.d.ts +2 -0
  94. package/dist/molecules/forms/select/components/HtmlSelect.js +35 -0
  95. package/dist/molecules/forms/select/components/HtmlSelect.js.map +1 -0
  96. package/dist/molecules/forms/select/components/ReactSelect.d.ts +2 -0
  97. package/dist/molecules/forms/select/components/ReactSelect.js +46 -0
  98. package/dist/molecules/forms/select/components/ReactSelect.js.map +1 -0
  99. package/dist/molecules/forms/select/components/choices.template.d.ts +7 -0
  100. package/dist/molecules/forms/select/components/choices.template.js +9654 -0
  101. package/dist/molecules/forms/select/components/choices.template.js.map +1 -0
  102. package/dist/molecules/forms/select/hooks/useOptions.d.ts +9 -0
  103. package/dist/molecules/forms/select/hooks/useOptions.js +35 -0
  104. package/dist/molecules/forms/select/hooks/useOptions.js.map +1 -0
  105. package/dist/molecules/loader/Loader.d.ts +8 -0
  106. package/dist/molecules/loader/Loader.js +19 -0
  107. package/dist/molecules/loader/Loader.js.map +1 -0
  108. package/dist/{components/modal/modal.component.d.ts → molecules/modal/Modal.d.ts} +15 -15
  109. package/dist/molecules/modal/Modal.js +62 -0
  110. package/dist/molecules/modal/Modal.js.map +1 -0
  111. package/dist/molecules/pagination/Pagination.d.ts +18 -0
  112. package/dist/molecules/pagination/Pagination.js +77 -0
  113. package/dist/molecules/pagination/Pagination.js.map +1 -0
  114. package/dist/molecules/pagination/PaginationButton.d.ts +7 -0
  115. package/dist/molecules/pagination/PaginationButton.js +21 -0
  116. package/dist/molecules/pagination/PaginationButton.js.map +1 -0
  117. package/dist/molecules/pagination/all.d.ts +2 -0
  118. package/dist/molecules/pagination/all.js +12 -0
  119. package/dist/molecules/pagination/all.js.map +1 -0
  120. package/dist/{components/table → molecules/pagination}/utils/getPageNumbers.d.ts +3 -3
  121. package/dist/molecules/pagination/utils/getPageNumbers.js +25 -0
  122. package/dist/molecules/pagination/utils/getPageNumbers.js.map +1 -0
  123. package/dist/molecules/table/Table.d.ts +9 -0
  124. package/dist/molecules/table/Table.js +58 -0
  125. package/dist/molecules/table/Table.js.map +1 -0
  126. package/dist/molecules/table/all.d.ts +0 -0
  127. package/dist/molecules/table/all.js +19 -0
  128. package/dist/molecules/table/all.js.map +1 -0
  129. package/dist/molecules/table/components/DefaultArrowSort.d.ts +5 -0
  130. package/dist/molecules/table/components/DefaultArrowSort.js +22 -0
  131. package/dist/molecules/table/components/DefaultArrowSort.js.map +1 -0
  132. package/dist/molecules/table/components/DefaultCell.d.ts +5 -0
  133. package/dist/molecules/table/components/DefaultCell.js +13 -0
  134. package/dist/molecules/table/components/DefaultCell.js.map +1 -0
  135. package/dist/molecules/table/components/DefaultCellFooter.d.ts +6 -0
  136. package/dist/molecules/table/components/DefaultCellFooter.js +12 -0
  137. package/dist/molecules/table/components/DefaultCellFooter.js.map +1 -0
  138. package/dist/molecules/table/components/DefaultCellHeader.d.ts +6 -0
  139. package/dist/molecules/table/components/DefaultCellHeader.js +30 -0
  140. package/dist/molecules/table/components/DefaultCellHeader.js.map +1 -0
  141. package/dist/molecules/table/components/DefaultCellOperations.d.ts +10 -0
  142. package/dist/molecules/table/components/DefaultCellOperations.js +24 -0
  143. package/dist/molecules/table/components/DefaultCellOperations.js.map +1 -0
  144. package/dist/molecules/table/components/DefaultFilter.d.ts +11 -0
  145. package/dist/molecules/table/components/DefaultFilter.js +15 -0
  146. package/dist/molecules/table/components/DefaultFilter.js.map +1 -0
  147. package/dist/molecules/table/components/DefaultOperationButton.d.ts +11 -0
  148. package/dist/molecules/table/components/DefaultOperationButton.js +30 -0
  149. package/dist/molecules/table/components/DefaultOperationButton.js.map +1 -0
  150. package/dist/molecules/table/filters/Filters.d.js +2 -0
  151. package/dist/molecules/table/filters/Filters.d.js.map +1 -0
  152. package/dist/molecules/table/filters/RangeFilter.d.ts +3 -0
  153. package/dist/molecules/table/filters/RangeFilter.js +42 -0
  154. package/dist/molecules/table/filters/RangeFilter.js.map +1 -0
  155. package/dist/molecules/table/filters/SelectFilter.d.ts +3 -0
  156. package/dist/molecules/table/filters/SelectFilter.js +35 -0
  157. package/dist/molecules/table/filters/SelectFilter.js.map +1 -0
  158. package/dist/molecules/table/filters/TextFieldFilter.d.ts +3 -0
  159. package/dist/molecules/table/filters/TextFieldFilter.js +27 -0
  160. package/dist/molecules/table/filters/TextFieldFilter.js.map +1 -0
  161. package/dist/molecules/table/hooks/useTable.d.ts +15 -0
  162. package/dist/molecules/table/hooks/useTable.js +34 -0
  163. package/dist/molecules/table/hooks/useTable.js.map +1 -0
  164. package/dist/molecules/table/hooks/useUniqValues.d.ts +5 -0
  165. package/dist/molecules/table/hooks/useUniqValues.js +11 -0
  166. package/dist/molecules/table/hooks/useUniqValues.js.map +1 -0
  167. package/dist/molecules/table/interfaces/extends.d.ts +14 -0
  168. package/dist/molecules/table/interfaces/extends.js +2 -0
  169. package/dist/molecules/table/interfaces/extends.js.map +1 -0
  170. package/dist/molecules/table/utils/mapFormToColumns.d.ts +3 -0
  171. package/dist/molecules/table/utils/mapFormToColumns.js +39 -0
  172. package/dist/molecules/table/utils/mapFormToColumns.js.map +1 -0
  173. package/dist/{components/tabs/tabs.component.d.ts → molecules/tabs/Tabs.d.ts} +19 -19
  174. package/dist/molecules/tabs/Tabs.js +72 -0
  175. package/dist/molecules/tabs/Tabs.js.map +1 -0
  176. package/dist/organisms/form/Form.d.ts +22 -0
  177. package/dist/organisms/form/Form.js +15 -0
  178. package/dist/organisms/form/Form.js.map +1 -0
  179. package/dist/organisms/form/access/FormAccess.d.ts +9 -0
  180. package/dist/organisms/form/access/FormAccess.js +94 -0
  181. package/dist/organisms/form/access/FormAccess.js.map +1 -0
  182. package/dist/organisms/form/access/FormAccess.schema.d.ts +4 -0
  183. package/dist/organisms/form/access/FormAccess.schema.js +164 -0
  184. package/dist/organisms/form/access/FormAccess.schema.js.map +1 -0
  185. package/dist/organisms/form/access/FormAccess.utils.d.ts +23 -0
  186. package/dist/organisms/form/access/FormAccess.utils.js +68 -0
  187. package/dist/organisms/form/access/FormAccess.utils.js.map +1 -0
  188. package/dist/organisms/form/action/FormAction.d.ts +9 -0
  189. package/dist/organisms/form/action/FormAction.js +32 -0
  190. package/dist/organisms/form/action/FormAction.js.map +1 -0
  191. package/dist/organisms/form/builder/FormBuilder.d.ts +7 -0
  192. package/dist/organisms/form/builder/FormBuilder.js +17 -0
  193. package/dist/organisms/form/builder/FormBuilder.js.map +1 -0
  194. package/dist/organisms/form/builder/FormEdit.d.ts +8 -0
  195. package/dist/organisms/form/builder/FormEdit.js +70 -0
  196. package/dist/organisms/form/builder/FormEdit.js.map +1 -0
  197. package/dist/organisms/form/builder/FormEdit.reducer.d.ts +10 -0
  198. package/dist/organisms/form/builder/FormEdit.reducer.js +65 -0
  199. package/dist/organisms/form/builder/FormEdit.reducer.js.map +1 -0
  200. package/dist/organisms/form/builder/FormEditCtas.d.ts +15 -0
  201. package/dist/organisms/form/builder/FormEditCtas.js +52 -0
  202. package/dist/organisms/form/builder/FormEditCtas.js.map +1 -0
  203. package/dist/organisms/form/builder/FormParameters.d.ts +24 -0
  204. package/dist/organisms/form/builder/FormParameters.js +84 -0
  205. package/dist/organisms/form/builder/FormParameters.js.map +1 -0
  206. package/dist/organisms/form/builder/all.d.ts +6 -0
  207. package/dist/organisms/form/builder/all.js +26 -0
  208. package/dist/organisms/form/builder/all.js.map +1 -0
  209. package/dist/organisms/form/builder/useFormBuilder.d.ts +28 -0
  210. package/dist/organisms/form/builder/useFormBuilder.js +71 -0
  211. package/dist/organisms/form/builder/useFormBuilder.js.map +1 -0
  212. package/dist/{components/form-edit/useFormEdit.hook.d.ts → organisms/form/builder/useFormEdit.d.ts} +29 -29
  213. package/dist/organisms/form/builder/useFormEdit.js +36 -0
  214. package/dist/organisms/form/builder/useFormEdit.js.map +1 -0
  215. package/dist/{components/form-settings/formSettings.component.d.ts → organisms/form/settings/FormSettings.d.ts} +7 -8
  216. package/dist/organisms/form/settings/FormSettings.js +38 -0
  217. package/dist/organisms/form/settings/FormSettings.js.map +1 -0
  218. package/dist/organisms/form/settings/FormSettings.schema.d.ts +2 -0
  219. package/dist/organisms/form/settings/FormSettings.schema.js +60 -0
  220. package/dist/organisms/form/settings/FormSettings.schema.js.map +1 -0
  221. package/dist/organisms/form/settings/FormSettings.utils.d.ts +8 -0
  222. package/dist/organisms/form/settings/FormSettings.utils.js +23 -0
  223. package/dist/organisms/form/settings/FormSettings.utils.js.map +1 -0
  224. package/dist/organisms/form/types.d.ts +15 -0
  225. package/dist/organisms/form/types.js +2 -0
  226. package/dist/organisms/form/types.js.map +1 -0
  227. package/dist/organisms/form/useForm.d.ts +65 -0
  228. package/dist/organisms/form/useForm.js +776 -0
  229. package/dist/organisms/form/useForm.js.map +1 -0
  230. package/dist/{components/modal/removeModal.component.d.ts → organisms/modal/RemoveModal.d.ts} +9 -9
  231. package/dist/organisms/modal/RemoveModal.js +71 -0
  232. package/dist/organisms/modal/RemoveModal.js.map +1 -0
  233. package/dist/organisms/table/actions/ActionsTable.d.ts +10 -0
  234. package/dist/organisms/table/actions/ActionsTable.js +46 -0
  235. package/dist/organisms/table/actions/ActionsTable.js.map +1 -0
  236. package/dist/organisms/table/forms/FormsTable.d.ts +9 -0
  237. package/dist/organisms/table/forms/FormsTable.js +57 -0
  238. package/dist/organisms/table/forms/FormsTable.js.map +1 -0
  239. package/dist/organisms/table/forms/components/FormsCell.d.ts +5 -0
  240. package/dist/organisms/table/forms/components/FormsCell.js +50 -0
  241. package/dist/organisms/table/forms/components/FormsCell.js.map +1 -0
  242. package/dist/organisms/table/submissions/SubmissionsTable.d.ts +6 -0
  243. package/dist/organisms/table/submissions/SubmissionsTable.js +11 -0
  244. package/dist/organisms/table/submissions/SubmissionsTable.js.map +1 -0
  245. package/dist/react-app-env.d.js +2 -0
  246. package/dist/react-app-env.d.js.map +1 -0
  247. package/dist/react-table.d.js +2 -0
  248. package/dist/react-table.d.js.map +1 -0
  249. package/dist/registries/components.d.ts +3 -0
  250. package/dist/registries/components.js +19 -0
  251. package/dist/registries/components.js.map +1 -0
  252. package/dist/typings.d.js +2 -0
  253. package/dist/typings.d.js.map +1 -0
  254. package/dist/utils/getEventValue.d.ts +1 -1
  255. package/dist/utils/getEventValue.js +8 -0
  256. package/dist/utils/getEventValue.js.map +1 -0
  257. package/dist/utils/iconClass.d.ts +1 -1
  258. package/dist/utils/iconClass.js +9 -0
  259. package/dist/utils/iconClass.js.map +1 -0
  260. package/dist/utils/mapPagination.d.ts +1 -1
  261. package/dist/utils/mapPagination.js +11 -0
  262. package/dist/utils/mapPagination.js.map +1 -0
  263. package/dist/utils/stopPropagationWrapper.d.ts +1 -1
  264. package/dist/utils/stopPropagationWrapper.js +7 -0
  265. package/dist/utils/stopPropagationWrapper.js.map +1 -0
  266. package/package.json +29 -18
  267. package/readme.md +33 -20
  268. package/src/atoms/icon/Icon.stories.tsx +124 -0
  269. package/src/atoms/icon/Icon.tsx +16 -0
  270. package/src/index.ts +1 -6
  271. package/src/interfaces/ActionType.ts +26 -0
  272. package/src/interfaces/ComponentType.ts +3 -0
  273. package/src/interfaces/FormOptions.ts +4 -1
  274. package/src/interfaces/{FormSchema.ts → FormType.ts} +3 -3
  275. package/src/interfaces/Operation.ts +2 -2
  276. package/src/interfaces/{RoleSchema.ts → RoleType.ts} +1 -1
  277. package/src/interfaces/SubmissionType.ts +20 -0
  278. package/src/interfaces/index.ts +5 -4
  279. package/src/molecules/__fixtures__/build.js +28 -0
  280. package/src/molecules/__fixtures__/form-firstname.fixture.json +256 -0
  281. package/src/molecules/__fixtures__/form-schema.json +350 -0
  282. package/src/molecules/__fixtures__/form-submissions.json +11942 -0
  283. package/src/molecules/__fixtures__/form-wizard.fixture.json +2042 -0
  284. package/src/molecules/__fixtures__/products.json +81539 -0
  285. package/src/molecules/__fixtures__/useValue.hook.ts +14 -0
  286. package/src/{components/alert/alert.component.spec.tsx → molecules/alert/Alert.spec.tsx} +12 -15
  287. package/src/molecules/alert/Alert.stories.tsx +39 -0
  288. package/src/{components/alert/alert.component.tsx → molecules/alert/Alert.tsx} +9 -8
  289. package/src/molecules/button/Button.stories.tsx +106 -0
  290. package/src/molecules/button/Button.tsx +54 -0
  291. package/src/{components/card/card.component.spec.tsx → molecules/card/Card.spec.tsx} +3 -3
  292. package/src/{components/card/card.stories.tsx → molecules/card/Card.stories.tsx} +9 -4
  293. package/src/{components/card/card.component.tsx → molecules/card/Card.tsx} +1 -2
  294. package/src/{components/form-control/formControl.component.spec.tsx → molecules/forms/form-control/FormControl.spec.tsx} +9 -9
  295. package/src/molecules/forms/form-control/FormControl.stories.tsx +58 -0
  296. package/src/molecules/forms/form-control/FormControl.tsx +86 -0
  297. package/src/molecules/forms/input-tags/InputTags.interface.ts +9 -0
  298. package/src/molecules/forms/input-tags/InputTags.tsx +30 -0
  299. package/src/molecules/forms/input-tags/all.ts +6 -0
  300. package/src/molecules/forms/input-tags/components/ChoicesTags.stories.tsx +110 -0
  301. package/src/molecules/forms/input-tags/components/ChoicesTags.tsx +72 -0
  302. package/src/molecules/forms/input-tags/components/ReactTags.stories.tsx +140 -0
  303. package/src/molecules/forms/input-tags/components/ReactTags.tsx +38 -0
  304. package/src/molecules/forms/input-text/InputText.interface.ts +5 -0
  305. package/src/{components/input-text/inputText.component.spec.tsx → molecules/forms/input-text/InputText.spec.tsx} +8 -8
  306. package/src/molecules/forms/input-text/InputText.stories.tsx +179 -0
  307. package/src/molecules/forms/input-text/InputText.tsx +63 -0
  308. package/src/molecules/forms/select/Select.interface.ts +45 -0
  309. package/src/molecules/forms/select/Select.tsx +28 -0
  310. package/src/molecules/forms/select/all.ts +7 -0
  311. package/src/molecules/forms/select/components/ChoicesSelect.stories.tsx +332 -0
  312. package/src/molecules/forms/select/components/ChoicesSelect.tsx +159 -0
  313. package/src/molecules/forms/select/components/HtmlSelect.stories.tsx +305 -0
  314. package/src/molecules/forms/select/components/HtmlSelect.tsx +54 -0
  315. package/src/molecules/forms/select/components/ReactSelect.stories.tsx +287 -0
  316. package/src/molecules/forms/select/components/ReactSelect.tsx +60 -0
  317. package/src/molecules/forms/select/components/choices.template.tsx +38 -0
  318. package/src/molecules/forms/select/hooks/useOptions.spec.ts +154 -0
  319. package/src/molecules/forms/select/hooks/useOptions.ts +53 -0
  320. package/src/{components/loader/loader.component.spec.tsx → molecules/loader/Loader.spec.tsx} +4 -4
  321. package/src/molecules/loader/Loader.stories.tsx +43 -0
  322. package/src/{components/loader/loader.component.tsx → molecules/loader/Loader.tsx} +3 -11
  323. package/src/molecules/modal/Modal.spec.tsx +203 -0
  324. package/src/molecules/modal/Modal.stories.tsx +178 -0
  325. package/src/{components/modal/modal.component.tsx → molecules/modal/Modal.tsx} +1 -1
  326. package/src/{components/pagination/pagination.component.spec.tsx → molecules/pagination/Pagination.spec.tsx} +27 -22
  327. package/src/molecules/pagination/Pagination.stories.tsx +99 -0
  328. package/src/{components/pagination/pagination.component.tsx → molecules/pagination/Pagination.tsx} +34 -47
  329. package/src/molecules/pagination/PaginationButton.tsx +30 -0
  330. package/src/molecules/pagination/all.ts +3 -0
  331. package/src/molecules/table/Table.stories.tsx +272 -0
  332. package/src/molecules/table/Table.tsx +100 -0
  333. package/src/molecules/table/all.ts +16 -0
  334. package/src/molecules/table/components/DefaultArrowSort.tsx +26 -0
  335. package/src/molecules/table/components/DefaultCell.tsx +22 -0
  336. package/src/molecules/table/components/DefaultCellFooter.tsx +16 -0
  337. package/src/molecules/table/components/DefaultCellHeader.tsx +42 -0
  338. package/src/molecules/table/components/DefaultCellOperations.tsx +42 -0
  339. package/src/molecules/table/components/DefaultFilter.tsx +42 -0
  340. package/src/molecules/table/components/DefaultOperationButton.tsx +40 -0
  341. package/src/molecules/table/filters/Filters.d.ts +31 -0
  342. package/src/molecules/table/filters/RangeFilter.tsx +43 -0
  343. package/src/molecules/table/filters/SelectFilter.tsx +47 -0
  344. package/src/molecules/table/filters/TextFieldFilter.tsx +36 -0
  345. package/src/molecules/table/hooks/useTable.tsx +75 -0
  346. package/src/molecules/table/hooks/useUniqValues.tsx +10 -0
  347. package/src/molecules/table/interfaces/extends.ts +18 -0
  348. package/src/molecules/table/utils/mapFormToColumns.tsx +74 -0
  349. package/src/{components/tabs/tabs.component.spec.tsx → molecules/tabs/Tabs.spec.tsx} +6 -6
  350. package/src/molecules/tabs/Tabs.stories.tsx +141 -0
  351. package/src/{components/tabs/tabs.component.tsx → molecules/tabs/Tabs.tsx} +1 -1
  352. package/src/organisms/__fixtures__/WrapComponent.tsx +11 -0
  353. package/src/organisms/__fixtures__/form-actions.json +240 -0
  354. package/src/organisms/__fixtures__/form-firstname.fixture.json +256 -0
  355. package/src/organisms/__fixtures__/form-wizard.fixture.json +2042 -0
  356. package/src/organisms/__fixtures__/form.fixture.json +2067 -0
  357. package/src/organisms/__fixtures__/useEditForm.tsx +84 -0
  358. package/src/organisms/__fixtures__/utils.ts +74 -0
  359. package/src/{components/form/form.component.spec.tsx → organisms/form/Form.spec.tsx} +6 -7
  360. package/src/organisms/form/Form.stories.tsx +698 -0
  361. package/src/organisms/form/Form.tsx +29 -0
  362. package/src/{components/form-access/formAccess.schema.ts → organisms/form/access/FormAccess.schema.ts} +4 -6
  363. package/src/{components/form-access/formAccess.stories.tsx → organisms/form/access/FormAccess.stories.tsx} +8 -2
  364. package/src/{components/form-access/formAccess.component.tsx → organisms/form/access/FormAccess.tsx} +16 -18
  365. package/src/{components/form-access/formAccess.utils.spec.ts → organisms/form/access/FormAccess.utils.spec.ts} +13 -7
  366. package/src/{components/form-access/formAccess.utils.ts → organisms/form/access/FormAccess.utils.ts} +23 -20
  367. package/src/{components/form-action/formAction.stories.tsx → organisms/form/action/FormAction.stories.tsx} +11 -13
  368. package/src/{components/form-action/formAction.component.tsx → organisms/form/action/FormAction.tsx} +8 -8
  369. package/src/organisms/form/builder/FormBuilder.stories.tsx +97 -0
  370. package/src/organisms/form/builder/FormBuilder.tsx +28 -0
  371. package/src/{components/form-edit/formEdit.reducer.ts → organisms/form/builder/FormEdit.reducer.ts} +6 -6
  372. package/src/{components/form-edit/formEdit.stories.tsx → organisms/form/builder/FormEdit.stories.tsx} +88 -44
  373. package/src/organisms/form/builder/FormEdit.tsx +75 -0
  374. package/src/organisms/form/builder/FormEditCtas.tsx +97 -0
  375. package/src/{components/form-edit/formParameters.component.tsx → organisms/form/builder/FormParameters.tsx} +29 -29
  376. package/src/organisms/form/builder/all.ts +17 -0
  377. package/src/organisms/form/builder/useFormBuilder.ts +143 -0
  378. package/src/{components/form-edit/useFormEdit.hook.ts → organisms/form/builder/useFormEdit.ts} +8 -8
  379. package/src/{components/form-settings/formSettings.component.spec.tsx → organisms/form/settings/FormSettings.component.spec.tsx} +3 -4
  380. package/src/{components/form-settings/formSettings.schema.ts → organisms/form/settings/FormSettings.schema.ts} +2 -2
  381. package/src/{components/form-settings/formSettings.stories.tsx → organisms/form/settings/FormSettings.stories.tsx} +10 -10
  382. package/src/{components/form-settings/formSettings.component.tsx → organisms/form/settings/FormSettings.tsx} +8 -9
  383. package/src/{components/form-settings/formSettings.utils.spec.ts → organisms/form/settings/FormSettings.utils.spec.ts} +1 -1
  384. package/src/{components/form-settings/formSettings.utils.ts → organisms/form/settings/FormSettings.utils.ts} +4 -4
  385. package/src/organisms/form/types.ts +8 -0
  386. package/src/organisms/form/useForm.ts +223 -0
  387. package/src/organisms/modal/RemoveModal.stories.tsx +59 -0
  388. package/src/{components/modal/removeModal.component.tsx → organisms/modal/RemoveModal.tsx} +3 -3
  389. package/src/{components/actions-table/actionsTable.component.spec.tsx → organisms/table/actions/ActionsTable.spec.tsx} +14 -11
  390. package/src/{components/actions-table/actionsTable.stories.tsx → organisms/table/actions/ActionsTable.stories.tsx} +22 -24
  391. package/src/{components/actions-table/actionsTable.component.tsx → organisms/table/actions/ActionsTable.tsx} +14 -21
  392. package/src/{components/forms-table/formsTable.stories.tsx → organisms/table/forms/FormsTable.stories.tsx} +24 -28
  393. package/src/organisms/table/forms/FormsTable.tsx +66 -0
  394. package/src/organisms/table/forms/components/FormsCell.tsx +53 -0
  395. package/src/{components/submissions-table/submissionsTable.stories.tsx → organisms/table/submissions/SubmissionsTable.stories.tsx} +28 -31
  396. package/src/organisms/table/submissions/SubmissionsTable.tsx +13 -0
  397. package/src/registries/components.ts +23 -0
  398. package/src/utils/iconClass.ts +3 -1
  399. package/tsconfig.app.json +11 -0
  400. package/tsconfig.json +10 -5
  401. package/tsconfig.node.json +9 -4
  402. package/tsconfig.spec.json +14 -0
  403. package/vite.config.mts +69 -0
  404. package/vitest.config.mts +21 -0
  405. package/.eslintignore +0 -13
  406. package/.eslintrc.js +0 -7
  407. package/coverage.json +0 -6
  408. package/dist/components/actions-table/actionsTable.component.d.ts +0 -11
  409. package/dist/components/actions-table/actionsTable.component.spec.d.ts +0 -1
  410. package/dist/components/actions-table/actionsTable.stories.d.ts +0 -40
  411. package/dist/components/alert/alert.component.d.ts +0 -6
  412. package/dist/components/alert/alert.component.spec.d.ts +0 -1
  413. package/dist/components/alert/alert.stories.d.ts +0 -15
  414. package/dist/components/card/card.component.spec.d.ts +0 -1
  415. package/dist/components/card/card.stories.d.ts +0 -16
  416. package/dist/components/form/form.component.d.ts +0 -63
  417. package/dist/components/form/form.component.spec.d.ts +0 -1
  418. package/dist/components/form/form.stories.d.ts +0 -6445
  419. package/dist/components/form/useForm.hook.d.ts +0 -60
  420. package/dist/components/form-access/formAccess.component.d.ts +0 -9
  421. package/dist/components/form-access/formAccess.schema.d.ts +0 -5
  422. package/dist/components/form-access/formAccess.stories.d.ts +0 -21
  423. package/dist/components/form-access/formAccess.utils.d.ts +0 -24
  424. package/dist/components/form-access/formAccess.utils.spec.d.ts +0 -1
  425. package/dist/components/form-action/formAction.component.d.ts +0 -9
  426. package/dist/components/form-action/formAction.stories.d.ts +0 -409
  427. package/dist/components/form-builder/formBuilder.component.d.ts +0 -53
  428. package/dist/components/form-builder/formBuilder.stories.d.ts +0 -5989
  429. package/dist/components/form-control/formControl.component.d.ts +0 -14
  430. package/dist/components/form-control/formControl.component.spec.d.ts +0 -1
  431. package/dist/components/form-control/formControl.stories.d.ts +0 -58
  432. package/dist/components/form-edit/formCtas.component.d.ts +0 -28
  433. package/dist/components/form-edit/formEdit.component.d.ts +0 -19
  434. package/dist/components/form-edit/formEdit.reducer.d.ts +0 -10
  435. package/dist/components/form-edit/formEdit.stories.d.ts +0 -396
  436. package/dist/components/form-edit/formParameters.component.d.ts +0 -34
  437. package/dist/components/form-settings/formSettings.component.spec.d.ts +0 -1
  438. package/dist/components/form-settings/formSettings.schema.d.ts +0 -2
  439. package/dist/components/form-settings/formSettings.stories.d.ts +0 -58
  440. package/dist/components/form-settings/formSettings.utils.d.ts +0 -8
  441. package/dist/components/form-settings/formSettings.utils.spec.d.ts +0 -1
  442. package/dist/components/forms-table/components/formCell.component.d.ts +0 -7
  443. package/dist/components/forms-table/formsTable.component.d.ts +0 -11
  444. package/dist/components/forms-table/formsTable.stories.d.ts +0 -117
  445. package/dist/components/index.d.ts +0 -26
  446. package/dist/components/input-tags/inputTags.component.d.ts +0 -19
  447. package/dist/components/input-tags/inputTags.stories.d.ts +0 -76
  448. package/dist/components/input-text/inputText.component.d.ts +0 -28
  449. package/dist/components/input-text/inputText.component.spec.d.ts +0 -1
  450. package/dist/components/input-text/inputText.stories.d.ts +0 -101
  451. package/dist/components/loader/loader.component.d.ts +0 -17
  452. package/dist/components/loader/loader.component.spec.d.ts +0 -1
  453. package/dist/components/loader/loader.stories.d.ts +0 -15
  454. package/dist/components/modal/modal.component.spec.d.ts +0 -1
  455. package/dist/components/modal/modal.stories.d.ts +0 -44
  456. package/dist/components/pagination/pagination.component.d.ts +0 -18
  457. package/dist/components/pagination/pagination.component.spec.d.ts +0 -1
  458. package/dist/components/pagination/pagination.stories.d.ts +0 -16
  459. package/dist/components/react-component/reactComponent.component.d.ts +0 -90
  460. package/dist/components/select/select.component.d.ts +0 -14
  461. package/dist/components/select/select.component.spec.d.ts +0 -1
  462. package/dist/components/select/select.stories.d.ts +0 -164
  463. package/dist/components/submissions-table/submissionsTable.component.d.ts +0 -7
  464. package/dist/components/submissions-table/submissionsTable.stories.d.ts +0 -649
  465. package/dist/components/table/components/defaultArrowSort.component.d.ts +0 -2
  466. package/dist/components/table/components/defaultCell.component.d.ts +0 -2
  467. package/dist/components/table/components/defaultCellHeader.component.d.ts +0 -6
  468. package/dist/components/table/components/defaultCellOperations.component.d.ts +0 -13
  469. package/dist/components/table/components/defaultCells.component.d.ts +0 -5
  470. package/dist/components/table/components/defaultOperationButton.component.d.ts +0 -14
  471. package/dist/components/table/components/defaultRow.component.d.ts +0 -12
  472. package/dist/components/table/components/dragNDropContainer.d.ts +0 -4
  473. package/dist/components/table/filters/defaultColumnFilter.component.d.ts +0 -6
  474. package/dist/components/table/filters/defaultColumnFilter.component.spec.d.ts +0 -1
  475. package/dist/components/table/filters/selectColumnFilter.component.d.ts +0 -11
  476. package/dist/components/table/filters/selectColumnFilter.component.spec.d.ts +0 -1
  477. package/dist/components/table/filters/sliderColumnFilter.component.d.ts +0 -3
  478. package/dist/components/table/hooks/useCustomTable.hook.d.ts +0 -128
  479. package/dist/components/table/hooks/useDragnDropRow.hook.d.ts +0 -274
  480. package/dist/components/table/hooks/useOperations.hook.d.ts +0 -11
  481. package/dist/components/table/index.d.ts +0 -15
  482. package/dist/components/table/table.component.d.ts +0 -3
  483. package/dist/components/table/table.stories.d.ts +0 -71
  484. package/dist/components/table/utils/mapFormToColumns.d.ts +0 -3
  485. package/dist/components/table/utils/swapElements.d.ts +0 -1
  486. package/dist/components/table/utils/swapElements.spec.d.ts +0 -1
  487. package/dist/components/tabs/tabs.component.spec.d.ts +0 -1
  488. package/dist/components/tabs/tabs.component.stories.d.ts +0 -47
  489. package/dist/index.modern.js +0 -7437
  490. package/dist/index.modern.js.map +0 -1
  491. package/dist/interfaces/ActionSchema.d.ts +0 -23
  492. package/dist/interfaces/Submission.d.ts +0 -5
  493. package/dist/setupTests.d.ts +0 -1
  494. package/dist/utils/callLast.d.ts +0 -1
  495. package/jest.config.js +0 -6
  496. package/src/components/alert/alert.stories.tsx +0 -18
  497. package/src/components/form/form.component.tsx +0 -73
  498. package/src/components/form/form.stories.tsx +0 -253
  499. package/src/components/form/useForm.hook.ts +0 -216
  500. package/src/components/form-builder/formBuilder.component.tsx +0 -195
  501. package/src/components/form-builder/formBuilder.stories.tsx +0 -3667
  502. package/src/components/form-control/formControl.component.tsx +0 -58
  503. package/src/components/form-control/formControl.stories.tsx +0 -65
  504. package/src/components/form-edit/formCtas.component.tsx +0 -106
  505. package/src/components/form-edit/formEdit.component.tsx +0 -60
  506. package/src/components/forms-table/components/formCell.component.tsx +0 -48
  507. package/src/components/forms-table/formsTable.component.tsx +0 -42
  508. package/src/components/index.ts +0 -26
  509. package/src/components/input-tags/inputTags.component.tsx +0 -58
  510. package/src/components/input-tags/inputTags.stories.tsx +0 -97
  511. package/src/components/input-text/inputText.component.tsx +0 -85
  512. package/src/components/input-text/inputText.stories.tsx +0 -126
  513. package/src/components/loader/loader.stories.tsx +0 -18
  514. package/src/components/modal/modal.component.spec.tsx +0 -79
  515. package/src/components/modal/modal.stories.tsx +0 -192
  516. package/src/components/pagination/pagination.stories.tsx +0 -40
  517. package/src/components/react-component/reactComponent.component.tsx +0 -197
  518. package/src/components/select/select.component.spec.tsx +0 -85
  519. package/src/components/select/select.component.tsx +0 -88
  520. package/src/components/select/select.stories.tsx +0 -173
  521. package/src/components/submissions-table/submissionsTable.component.tsx +0 -16
  522. package/src/components/table/components/defaultArrowSort.component.tsx +0 -12
  523. package/src/components/table/components/defaultCell.component.tsx +0 -15
  524. package/src/components/table/components/defaultCellHeader.component.tsx +0 -19
  525. package/src/components/table/components/defaultCellOperations.component.tsx +0 -39
  526. package/src/components/table/components/defaultCells.component.tsx +0 -31
  527. package/src/components/table/components/defaultOperationButton.component.tsx +0 -53
  528. package/src/components/table/components/defaultRow.component.tsx +0 -51
  529. package/src/components/table/components/dragNDropContainer.tsx +0 -7
  530. package/src/components/table/filters/defaultColumnFilter.component.spec.tsx +0 -34
  531. package/src/components/table/filters/defaultColumnFilter.component.tsx +0 -39
  532. package/src/components/table/filters/selectColumnFilter.component.spec.tsx +0 -69
  533. package/src/components/table/filters/selectColumnFilter.component.tsx +0 -52
  534. package/src/components/table/filters/sliderColumnFilter.component.tsx +0 -31
  535. package/src/components/table/hooks/useCustomTable.hook.tsx +0 -272
  536. package/src/components/table/hooks/useDragnDropRow.hook.ts +0 -80
  537. package/src/components/table/hooks/useOperations.hook.tsx +0 -39
  538. package/src/components/table/index.ts +0 -15
  539. package/src/components/table/table.component.tsx +0 -100
  540. package/src/components/table/table.stories.tsx +0 -120
  541. package/src/components/table/utils/mapFormToColumns.tsx +0 -34
  542. package/src/components/table/utils/swapElements.spec.ts +0 -7
  543. package/src/components/table/utils/swapElements.ts +0 -7
  544. package/src/components/tabs/tabs.component.stories.tsx +0 -127
  545. package/src/interfaces/ActionSchema.ts +0 -26
  546. package/src/interfaces/Submission.ts +0 -5
  547. package/src/setupTests.tsx +0 -5
  548. package/src/utils/callLast.ts +0 -12
  549. /package/src/{components → molecules}/__fixtures__/form-actions.json +0 -0
  550. /package/src/{components → molecules}/__fixtures__/form.fixture.json +0 -0
  551. /package/src/{components/table → molecules/pagination}/utils/getPageNumbers.ts +0 -0
  552. /package/src/{components → organisms}/__fixtures__/form-schema.json +0 -0
  553. /package/src/{components → organisms}/__fixtures__/form-submissions.json +0 -0
  554. /package/src/{components/actions-table → organisms/table/actions}/__fixtures__/data.json +0 -0
@@ -1,117 +0,0 @@
1
- import React from "react";
2
- import { FormsTable } from "./formsTable.component";
3
- declare const _default: {
4
- title: string;
5
- component: typeof FormsTable;
6
- argTypes: {
7
- icon: {
8
- control: {
9
- type: string;
10
- options: string[];
11
- };
12
- };
13
- data: {
14
- control: {
15
- type: string;
16
- };
17
- };
18
- operations: {
19
- control: {
20
- type: string;
21
- };
22
- };
23
- isLoading: {
24
- control: {
25
- type: string;
26
- };
27
- };
28
- isEmpty: {
29
- control: {
30
- type: string;
31
- };
32
- };
33
- disableFilters: {
34
- control: {
35
- type: string;
36
- };
37
- };
38
- disablePagination: {
39
- control: {
40
- type: string;
41
- };
42
- };
43
- tags: {
44
- control: {
45
- type: string;
46
- };
47
- };
48
- };
49
- parameters: {};
50
- };
51
- export default _default;
52
- export declare const Sandbox: {
53
- (args: any): React.JSX.Element;
54
- args: {
55
- icon: string;
56
- data: {
57
- _id: string;
58
- type: string;
59
- tags: string[];
60
- title: string;
61
- name: string;
62
- path: string;
63
- modified: string;
64
- }[];
65
- operations: ({
66
- title: string;
67
- action: string;
68
- alias: string;
69
- path: string;
70
- icon: string;
71
- permissionsResolver(): boolean;
72
- buttonType?: undefined;
73
- } | {
74
- action: string;
75
- path: string;
76
- icon: string;
77
- buttonType: string;
78
- permissionsResolver(): boolean;
79
- title?: undefined;
80
- alias?: undefined;
81
- })[];
82
- };
83
- };
84
- export declare const ButtonsOutlined: {
85
- (args: any): React.JSX.Element;
86
- args: {
87
- icon: string;
88
- data: {
89
- _id: string;
90
- type: string;
91
- tags: string[];
92
- title: string;
93
- name: string;
94
- path: string;
95
- modified: string;
96
- }[];
97
- operations: ({
98
- title: string;
99
- action: string;
100
- alias: string;
101
- path: string;
102
- icon: string;
103
- buttonOutline: boolean;
104
- permissionsResolver(): boolean;
105
- buttonType?: undefined;
106
- } | {
107
- action: string;
108
- path: string;
109
- icon: string;
110
- buttonType: string;
111
- buttonOutline: boolean;
112
- permissionsResolver(): boolean;
113
- title?: undefined;
114
- alias?: undefined;
115
- })[];
116
- };
117
- };
@@ -1,26 +0,0 @@
1
- export * from "./actions-table/actionsTable.component";
2
- export * from "./alert/alert.component";
3
- export * from "./card/card.component";
4
- export * from "./form/form.component";
5
- export * from "./form/useForm.hook";
6
- export * from "./form-access/formAccess.component";
7
- export * from "./form-action/formAction.component";
8
- export * from "./form-builder/formBuilder.component";
9
- export * from "./form-control/formControl.component";
10
- export * from "./form-edit/formCtas.component";
11
- export * from "./form-edit/formEdit.component";
12
- export * from "./form-edit/formParameters.component";
13
- export * from "./form-edit/useFormEdit.hook";
14
- export * from "./form-settings/formSettings.component";
15
- export * from "./forms-table/formsTable.component";
16
- export * from "./input-tags/inputTags.component";
17
- export * from "./input-text/inputText.component";
18
- export * from "./loader/loader.component";
19
- export * from "./modal/modal.component";
20
- export * from "./modal/removeModal.component";
21
- export * from "./pagination/pagination.component";
22
- export * from "./react-component/reactComponent.component";
23
- export * from "./select/select.component";
24
- export * from "./submissions-table/submissionsTable.component";
25
- export * from "./table";
26
- export * from "./tabs/tabs.component";
@@ -1,19 +0,0 @@
1
- import PropTypes from "prop-types";
2
- import React from "react";
3
- import { FormControlProps } from "../form-control/formControl.component";
4
- export interface InputTagsProps<T = any> extends Omit<FormControlProps, "description" | "prefix" | "suffix"> {
5
- value?: T;
6
- onChange?: (name: string, value: T) => void;
7
- placeholder?: string;
8
- [key: string]: any;
9
- }
10
- export declare function InputTags({ name, value, label, onChange, required, description, prefix, suffix, ...props }: InputTagsProps): React.JSX.Element;
11
- export declare namespace InputTags {
12
- var propTypes: {
13
- label: PropTypes.Requireable<string>;
14
- name: PropTypes.Validator<string>;
15
- value: PropTypes.Requireable<any[]>;
16
- required: PropTypes.Requireable<boolean>;
17
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
18
- };
19
- }
@@ -1,76 +0,0 @@
1
- import React from "react";
2
- import { InputTags } from "./inputTags.component";
3
- declare const _default: {
4
- title: string;
5
- component: typeof InputTags;
6
- argTypes: {
7
- label: {
8
- control: {
9
- type: string;
10
- };
11
- };
12
- name: {
13
- control: {
14
- type: string;
15
- };
16
- };
17
- value: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- size: {
23
- control: {
24
- type: string;
25
- options: string[];
26
- };
27
- };
28
- placeholder: {
29
- control: {
30
- type: string;
31
- };
32
- };
33
- choices: {
34
- control: {
35
- type: string;
36
- };
37
- };
38
- description: {
39
- control: {
40
- type: string;
41
- };
42
- };
43
- };
44
- parameters: {};
45
- };
46
- export default _default;
47
- export declare const Sandbox: {
48
- (args: any): React.JSX.Element;
49
- args: {
50
- name: string;
51
- label: string;
52
- value: string[];
53
- size: string;
54
- placeholder: string;
55
- };
56
- };
57
- export declare const WithPrefix: {
58
- (args: any): React.JSX.Element;
59
- args: {
60
- label: string;
61
- value: never[];
62
- name: string;
63
- size: string;
64
- placeholder: string;
65
- };
66
- };
67
- export declare const WithSuffix: {
68
- (args: any): React.JSX.Element;
69
- args: {
70
- label: string;
71
- value: never[];
72
- name: string;
73
- size: string;
74
- placeholder: string;
75
- };
76
- };
@@ -1,28 +0,0 @@
1
- import PropTypes from "prop-types";
2
- import React from "react";
3
- import { FormControlProps } from "../form-control/formControl.component";
4
- export interface InputTextProps<T = any> extends FormControlProps {
5
- type?: string;
6
- value?: T;
7
- /**
8
- * The input size
9
- */
10
- size?: string;
11
- onChange?: (name: string, value: T) => void;
12
- placeholder?: string;
13
- [key: string]: any;
14
- }
15
- export declare function InputText<T = any>({ name, value, label, onChange, required, size, type, prefix, suffix, description, className, placeholder, ...props }: InputTextProps<T>): React.JSX.Element;
16
- export declare namespace InputText {
17
- var propTypes: {
18
- label: PropTypes.Requireable<string>;
19
- type: PropTypes.Requireable<string>;
20
- name: PropTypes.Validator<string>;
21
- value: PropTypes.Requireable<any>;
22
- size: PropTypes.Requireable<string>;
23
- required: PropTypes.Requireable<boolean>;
24
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
25
- prefix: PropTypes.Requireable<any>;
26
- suffix: PropTypes.Requireable<any>;
27
- };
28
- }
@@ -1,101 +0,0 @@
1
- import React from "react";
2
- import { InputText } from "./inputText.component";
3
- declare const _default: {
4
- title: string;
5
- component: typeof InputText;
6
- argTypes: {
7
- label: {
8
- control: {
9
- type: string;
10
- };
11
- };
12
- type: {
13
- control: {
14
- type: string;
15
- };
16
- };
17
- name: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- value: {
23
- control: {
24
- type: string;
25
- };
26
- };
27
- size: {
28
- control: {
29
- type: string;
30
- options: string[];
31
- };
32
- };
33
- placeholder: {
34
- control: {
35
- type: string;
36
- };
37
- };
38
- choices: {
39
- control: {
40
- type: string;
41
- };
42
- };
43
- description: {
44
- control: {
45
- type: string;
46
- };
47
- };
48
- };
49
- parameters: {};
50
- };
51
- export default _default;
52
- export declare const Sandbox: {
53
- (args: any): React.JSX.Element;
54
- args: {
55
- name: string;
56
- label: string;
57
- value: string;
58
- size: string;
59
- placeholder: string;
60
- };
61
- };
62
- export declare const WithPrefix: {
63
- (args: any): React.JSX.Element;
64
- args: {
65
- label: string;
66
- value: string;
67
- size: string;
68
- placeholder: string;
69
- };
70
- };
71
- export declare const WithSuffix: {
72
- (args: any): React.JSX.Element;
73
- args: {
74
- label: string;
75
- value: string;
76
- size: string;
77
- placeholder: string;
78
- };
79
- };
80
- export declare const TypeNumber: {
81
- (args: any): React.JSX.Element;
82
- args: {
83
- label: string;
84
- type: string;
85
- value: string;
86
- size: string;
87
- placeholder: string;
88
- description: string;
89
- };
90
- };
91
- export declare const Sizing: {
92
- (args: any): React.JSX.Element;
93
- args: {
94
- label: string;
95
- type: string;
96
- value: string;
97
- size: string;
98
- placeholder: string;
99
- description: string;
100
- };
101
- };
@@ -1,17 +0,0 @@
1
- import PropTypes from "prop-types";
2
- import React, { PropsWithChildren } from "react";
3
- export interface LoaderProps {
4
- isActive?: boolean;
5
- color?: string;
6
- icon?: string;
7
- className?: string;
8
- }
9
- export declare function Loader({ isActive, color, icon, className }: PropsWithChildren<LoaderProps>): React.JSX.Element | null;
10
- export declare namespace Loader {
11
- var propTypes: {
12
- isActive: PropTypes.Requireable<boolean>;
13
- icon: PropTypes.Requireable<string>;
14
- color: PropTypes.Requireable<string>;
15
- className: PropTypes.Requireable<string>;
16
- };
17
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { Loader } from "./loader.component";
3
- declare const _default: {
4
- title: string;
5
- component: typeof Loader;
6
- argTypes: {};
7
- parameters: {};
8
- };
9
- export default _default;
10
- export declare const Sandbox: {
11
- (args: any): React.JSX.Element;
12
- args: {
13
- isActive: boolean;
14
- };
15
- };
@@ -1 +0,0 @@
1
- import "@testing-library/jest-dom/extend-expect";
@@ -1,44 +0,0 @@
1
- import React from "react";
2
- import { Modal, ModalProps } from "./modal.component";
3
- import { RemoveModalProps } from "./removeModal.component";
4
- declare const _default: {
5
- title: string;
6
- component: typeof Modal;
7
- argTypes: {
8
- onSubmit: {
9
- title: {
10
- control: {
11
- type: string;
12
- };
13
- };
14
- control: {
15
- action: string;
16
- };
17
- };
18
- };
19
- parameters: {};
20
- };
21
- export default _default;
22
- export declare const Sandbox: {
23
- (args: ModalProps): React.JSX.Element;
24
- args: {};
25
- };
26
- export declare const WithTitle: {
27
- (args: ModalProps): React.JSX.Element;
28
- args: {
29
- title: string;
30
- };
31
- };
32
- export declare const WithFooter: {
33
- (args: ModalProps): React.JSX.Element;
34
- args: {
35
- title: string;
36
- };
37
- };
38
- export declare const WithRemoveModal: {
39
- (args: RemoveModalProps): React.JSX.Element;
40
- args: {
41
- valueToCompare: string;
42
- itemType: string;
43
- };
44
- };
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- export interface PaginationProps {
3
- className?: string;
4
- pageSizes?: number[];
5
- gotoPage: any;
6
- canPreviousPage: boolean;
7
- previousPage: any;
8
- nextPage: any;
9
- canNextPage: boolean;
10
- pageCount: number;
11
- pageIndex: number;
12
- pageOptions?: number[];
13
- pageSize: number;
14
- setPageSize: any;
15
- totalLength?: number;
16
- i18n?: (f: string) => string;
17
- }
18
- export declare function Pagination(props: PaginationProps): React.JSX.Element;
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { Pagination } from "./pagination.component";
3
- declare const _default: {
4
- title: string;
5
- component: typeof Pagination;
6
- parameters: {};
7
- };
8
- export default _default;
9
- export declare const Sandbox: {
10
- (args: any): React.JSX.Element;
11
- args: {
12
- pageSizes: number[];
13
- pageCount: number;
14
- pageIndex: number;
15
- };
16
- };
@@ -1,90 +0,0 @@
1
- import { Components, ComponentSchema } from "formiojs";
2
- import { Submission } from "../../interfaces/Submission";
3
- export declare class ReactComponent<Data = any> extends Components.components.field {
4
- reactInstance: any;
5
- shouldSetValue?: boolean;
6
- private dataForSetting?;
7
- /**
8
- * This is the first phase of component building where the component is instantiated.
9
- *
10
- * @param component - The component definition created from the settings form.
11
- * @param options - Any options passed into the renderer.
12
- * @param data - The submission data where this component's data exists.
13
- */
14
- constructor(component: ComponentSchema, options: any, data: Submission<Data>);
15
- get $reactNode(): any;
16
- /**
17
- * This method is called any time the component needs to be rebuilt. It is most frequently used to listen to other
18
- * components using the this.on() function.
19
- */
20
- init(): void;
21
- /**
22
- * This method is called before the component is going to be destroyed, which is when the component instance is
23
- * destroyed. This is different from detach which is when the component instance still exists but the dom instance is
24
- * removed.
25
- */
26
- destroy(): void;
27
- /**
28
- * The second phase of component building where the component is rendered as an HTML string.
29
- *
30
- * @returns {string} - The return is the full string of the component
31
- */
32
- render(): any;
33
- /**
34
- * The third phase of component building where the component has been attached to the DOM as 'element' and is ready
35
- * to have its javascript events attached.
36
- *
37
- * @param element
38
- * @returns {Promise<void>} - Return a promise that resolves when the attach is complete.
39
- */
40
- attach(element: any): Promise<void>;
41
- /**
42
- * The fourth phase of component building where the component is being removed from the page. This could be a redraw
43
- * or it is being removed from the form.
44
- */
45
- detach(): void;
46
- /**
47
- * Override this function to render a react component.
48
- */
49
- renderReact(): any;
50
- /**
51
- * Override this function to insert your custom component.
52
- *
53
- * @param element
54
- */
55
- attachReact(element?: any): Element;
56
- /**
57
- * Override this function.
58
- */
59
- detachReact(element?: any): void;
60
- /**
61
- * Something external has set a value and our component needs to be updated to reflect that. For example, loading a submission.
62
- *
63
- * @param value
64
- * @param flags
65
- */
66
- setValue(value: any): boolean;
67
- /**
68
- * The user has changed the value in the component and the value needs to be updated on the main submission object and other components notified of a change event.
69
- *
70
- * @param value
71
- * @param flags
72
- */
73
- updateValue: (value?: Data, flags?: Record<string, any>) => boolean;
74
- /**
75
- * Get the current value of the component. Should return the value set in the react component.
76
- *
77
- * @returns {*}
78
- */
79
- getValue(): Data;
80
- /**
81
- * Override normal validation check to insert custom validation in react component.
82
- *
83
- * @param data
84
- * @param dirty
85
- * @param rowData
86
- * @returns {boolean}
87
- */
88
- checkValidity(data: Data, dirty: boolean, rowData: any): boolean;
89
- validate(data: Data, dirty: boolean, rowData: any): boolean;
90
- }
@@ -1,14 +0,0 @@
1
- import { type HTMLAttributes, type ReactElement } from "react";
2
- import { FormControlProps } from "../form-control/formControl.component";
3
- export interface SelectProps<Data = any> extends FormControlProps, Omit<HTMLAttributes<HTMLSelectElement>, "onChange" | "prefix"> {
4
- size?: string;
5
- placeholder?: string;
6
- choices: {
7
- label: string;
8
- value: Data;
9
- }[];
10
- layout?: "html5" | "choicesjs";
11
- disabled?: boolean;
12
- multiple?: boolean;
13
- }
14
- export declare function Select<Data = any>({ name, label, size, onChange, required, value, choices, description, placeholder, prefix, suffix, multiple, layout, ...props }: SelectProps<Data>): ReactElement;
@@ -1 +0,0 @@
1
- export {};