kitunga-web 0.1.78

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 (402) hide show
  1. package/dist/features/buttons/components/Btns/Button.d.ts +32 -0
  2. package/dist/features/buttons/components/Btns/Button.d.ts.map +1 -0
  3. package/dist/features/buttons/components/Btns/Button.js +50 -0
  4. package/dist/features/buttons/components/Btns/Button.js.map +1 -0
  5. package/dist/features/buttons/components/Btns/Button.module.css +205 -0
  6. package/dist/features/data-display/components/Cards/ChartCard.d.ts +9 -0
  7. package/dist/features/data-display/components/Cards/ChartCard.d.ts.map +1 -0
  8. package/dist/features/data-display/components/Cards/ChartCard.js +7 -0
  9. package/dist/features/data-display/components/Cards/ChartCard.js.map +1 -0
  10. package/dist/features/data-display/components/Cards/ChartCard.module.css +27 -0
  11. package/dist/features/data-display/components/Cards/MetricCard.d.ts +11 -0
  12. package/dist/features/data-display/components/Cards/MetricCard.d.ts.map +1 -0
  13. package/dist/features/data-display/components/Cards/MetricCard.js +10 -0
  14. package/dist/features/data-display/components/Cards/MetricCard.js.map +1 -0
  15. package/dist/features/data-display/components/Cards/MetricCard.module.css +86 -0
  16. package/dist/features/data-display/components/Cards/StatCard.d.ts +15 -0
  17. package/dist/features/data-display/components/Cards/StatCard.d.ts.map +1 -0
  18. package/dist/features/data-display/components/Cards/StatCard.js +23 -0
  19. package/dist/features/data-display/components/Cards/StatCard.js.map +1 -0
  20. package/dist/features/data-display/components/Cards/StatCard.module.css +98 -0
  21. package/dist/features/data-display/components/Table/LineItemsTable.d.ts +4 -0
  22. package/dist/features/data-display/components/Table/LineItemsTable.d.ts.map +1 -0
  23. package/dist/features/data-display/components/Table/LineItemsTable.js +216 -0
  24. package/dist/features/data-display/components/Table/LineItemsTable.js.map +1 -0
  25. package/dist/features/data-display/components/Table/LineItemsTable.module.css +223 -0
  26. package/dist/features/data-display/components/Table/Table.d.ts +4 -0
  27. package/dist/features/data-display/components/Table/Table.d.ts.map +1 -0
  28. package/dist/features/data-display/components/Table/Table.js +181 -0
  29. package/dist/features/data-display/components/Table/Table.js.map +1 -0
  30. package/dist/features/data-display/components/Table/Table.module.css +305 -0
  31. package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts +83 -0
  32. package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts.map +1 -0
  33. package/dist/features/data-display/components/Table/types/LineItemsTable.js +2 -0
  34. package/dist/features/data-display/components/Table/types/LineItemsTable.js.map +1 -0
  35. package/dist/features/data-display/components/Table/types/Table.d.ts +78 -0
  36. package/dist/features/data-display/components/Table/types/Table.d.ts.map +1 -0
  37. package/dist/features/data-display/components/Table/types/Table.js +2 -0
  38. package/dist/features/data-display/components/Table/types/Table.js.map +1 -0
  39. package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.d.ts +12 -0
  40. package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.d.ts.map +1 -0
  41. package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.js +7 -0
  42. package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.js.map +1 -0
  43. package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.module.css +36 -0
  44. package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.d.ts +18 -0
  45. package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.d.ts.map +1 -0
  46. package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js +52 -0
  47. package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js.map +1 -0
  48. package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.module.css +90 -0
  49. package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.d.ts +21 -0
  50. package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.d.ts.map +1 -0
  51. package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.js +37 -0
  52. package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.js.map +1 -0
  53. package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.d.ts +15 -0
  54. package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.d.ts.map +1 -0
  55. package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js +56 -0
  56. package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js.map +1 -0
  57. package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.module.css +90 -0
  58. package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.d.ts +9 -0
  59. package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.d.ts.map +1 -0
  60. package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js +9 -0
  61. package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js.map +1 -0
  62. package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.module.css +36 -0
  63. package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts +8 -0
  64. package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts.map +1 -0
  65. package/dist/features/feedback/components/FlowNotice/FlowNotice.js +52 -0
  66. package/dist/features/feedback/components/FlowNotice/FlowNotice.js.map +1 -0
  67. package/dist/features/feedback/components/FlowNotice/FlowNotice.module.css +122 -0
  68. package/dist/features/feedback/components/Loading/AppLoading.d.ts +14 -0
  69. package/dist/features/feedback/components/Loading/AppLoading.d.ts.map +1 -0
  70. package/dist/features/feedback/components/Loading/AppLoading.js +17 -0
  71. package/dist/features/feedback/components/Loading/AppLoading.js.map +1 -0
  72. package/dist/features/feedback/components/Loading/AppLoading.module.css +95 -0
  73. package/dist/features/feedback/components/SuccesModal/ModalSuccess.d.ts +24 -0
  74. package/dist/features/feedback/components/SuccesModal/ModalSuccess.d.ts.map +1 -0
  75. package/dist/features/feedback/components/SuccesModal/ModalSuccess.js +11 -0
  76. package/dist/features/feedback/components/SuccesModal/ModalSuccess.js.map +1 -0
  77. package/dist/features/feedback/components/SuccesModal/ModalSuccess.module.css +141 -0
  78. package/dist/features/feedback/components/Tooltips/InfoTooltip.d.ts +10 -0
  79. package/dist/features/feedback/components/Tooltips/InfoTooltip.d.ts.map +1 -0
  80. package/dist/features/feedback/components/Tooltips/InfoTooltip.js +48 -0
  81. package/dist/features/feedback/components/Tooltips/InfoTooltip.js.map +1 -0
  82. package/dist/features/feedback/components/Tooltips/InfoTooltip.module.css +123 -0
  83. package/dist/features/feedback/components/Tooltips/InfoTooltipContent.d.ts +11 -0
  84. package/dist/features/feedback/components/Tooltips/InfoTooltipContent.d.ts.map +1 -0
  85. package/dist/features/feedback/components/Tooltips/InfoTooltipContent.js +8 -0
  86. package/dist/features/feedback/components/Tooltips/InfoTooltipContent.js.map +1 -0
  87. package/dist/features/feedback/components/Tooltips/InfoTooltipContent.module.css +58 -0
  88. package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.d.ts +27 -0
  89. package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.d.ts.map +1 -0
  90. package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.js +56 -0
  91. package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.js.map +1 -0
  92. package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.module.css +200 -0
  93. package/dist/features/inputs/components/DatePicker/DatePicker.d.ts +13 -0
  94. package/dist/features/inputs/components/DatePicker/DatePicker.d.ts.map +1 -0
  95. package/dist/features/inputs/components/DatePicker/DatePicker.js +97 -0
  96. package/dist/features/inputs/components/DatePicker/DatePicker.js.map +1 -0
  97. package/dist/features/inputs/components/DatePicker/DatePicker.module.css +186 -0
  98. package/dist/features/inputs/components/Inputs/DateInput.d.ts +27 -0
  99. package/dist/features/inputs/components/Inputs/DateInput.d.ts.map +1 -0
  100. package/dist/features/inputs/components/Inputs/DateInput.js +236 -0
  101. package/dist/features/inputs/components/Inputs/DateInput.js.map +1 -0
  102. package/dist/features/inputs/components/Inputs/DateInput.module.css +301 -0
  103. package/dist/features/inputs/components/Inputs/DateRangeInput.d.ts +24 -0
  104. package/dist/features/inputs/components/Inputs/DateRangeInput.d.ts.map +1 -0
  105. package/dist/features/inputs/components/Inputs/DateRangeInput.js +10 -0
  106. package/dist/features/inputs/components/Inputs/DateRangeInput.js.map +1 -0
  107. package/dist/features/inputs/components/Inputs/DateRangeInput.module.css +24 -0
  108. package/dist/features/inputs/components/Inputs/NumberInput.d.ts +21 -0
  109. package/dist/features/inputs/components/Inputs/NumberInput.d.ts.map +1 -0
  110. package/dist/features/inputs/components/Inputs/NumberInput.js +82 -0
  111. package/dist/features/inputs/components/Inputs/NumberInput.js.map +1 -0
  112. package/dist/features/inputs/components/Inputs/NumberInput.module.css +148 -0
  113. package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.d.ts +9 -0
  114. package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.d.ts.map +1 -0
  115. package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.js +187 -0
  116. package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.js.map +1 -0
  117. package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.module.css +259 -0
  118. package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.d.ts +3 -0
  119. package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.d.ts.map +1 -0
  120. package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.js +20 -0
  121. package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.js.map +1 -0
  122. package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.d.ts +3 -0
  123. package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.d.ts.map +1 -0
  124. package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.js +9 -0
  125. package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.js.map +1 -0
  126. package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.d.ts +5 -0
  127. package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.d.ts.map +1 -0
  128. package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.js +48 -0
  129. package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.js.map +1 -0
  130. package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.d.ts +3 -0
  131. package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.d.ts.map +1 -0
  132. package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.js +9 -0
  133. package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.js.map +1 -0
  134. package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.d.ts +3 -0
  135. package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.d.ts.map +1 -0
  136. package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.js +17 -0
  137. package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.js.map +1 -0
  138. package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.d.ts +10 -0
  139. package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.d.ts.map +1 -0
  140. package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.js +2 -0
  141. package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.js.map +1 -0
  142. package/dist/features/inputs/components/Inputs/SearchInput.d.ts +13 -0
  143. package/dist/features/inputs/components/Inputs/SearchInput.d.ts.map +1 -0
  144. package/dist/features/inputs/components/Inputs/SearchInput.js +12 -0
  145. package/dist/features/inputs/components/Inputs/SearchInput.js.map +1 -0
  146. package/dist/features/inputs/components/Inputs/SearchInput.module.css +107 -0
  147. package/dist/features/inputs/components/Inputs/StepperInput.d.ts +14 -0
  148. package/dist/features/inputs/components/Inputs/StepperInput.d.ts.map +1 -0
  149. package/dist/features/inputs/components/Inputs/StepperInput.js +44 -0
  150. package/dist/features/inputs/components/Inputs/StepperInput.js.map +1 -0
  151. package/dist/features/inputs/components/Inputs/StepperInput.module.css +96 -0
  152. package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts +15 -0
  153. package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts.map +1 -0
  154. package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js +102 -0
  155. package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js.map +1 -0
  156. package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.module.css +259 -0
  157. package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts +5 -0
  158. package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts.map +1 -0
  159. package/dist/features/inputs/components/Inputs/TaxIdInput/index.js +3 -0
  160. package/dist/features/inputs/components/Inputs/TaxIdInput/index.js.map +1 -0
  161. package/dist/features/inputs/components/Inputs/TextInput.d.ts +4 -0
  162. package/dist/features/inputs/components/Inputs/TextInput.d.ts.map +1 -0
  163. package/dist/features/inputs/components/Inputs/TextInput.js +61 -0
  164. package/dist/features/inputs/components/Inputs/TextInput.js.map +1 -0
  165. package/dist/features/inputs/components/Inputs/TextInput.module.css +174 -0
  166. package/dist/features/inputs/components/Inputs/TextareaInput.d.ts +4 -0
  167. package/dist/features/inputs/components/Inputs/TextareaInput.d.ts.map +1 -0
  168. package/dist/features/inputs/components/Inputs/TextareaInput.js +45 -0
  169. package/dist/features/inputs/components/Inputs/TextareaInput.js.map +1 -0
  170. package/dist/features/inputs/components/Inputs/TextareaInput.module.css +144 -0
  171. package/dist/features/inputs/components/Inputs/types/input.types.d.ts +28 -0
  172. package/dist/features/inputs/components/Inputs/types/input.types.d.ts.map +1 -0
  173. package/dist/features/inputs/components/Inputs/types/input.types.js +2 -0
  174. package/dist/features/inputs/components/Inputs/types/input.types.js.map +1 -0
  175. package/dist/features/navigation/components/Menu/SharedMenuItem.d.ts +25 -0
  176. package/dist/features/navigation/components/Menu/SharedMenuItem.d.ts.map +1 -0
  177. package/dist/features/navigation/components/Menu/SharedMenuItem.js +40 -0
  178. package/dist/features/navigation/components/Menu/SharedMenuItem.js.map +1 -0
  179. package/dist/features/navigation/components/Menu/SharedMenuItem.module.css +219 -0
  180. package/dist/features/navigation/components/PageFooter/PageFooter.d.ts +13 -0
  181. package/dist/features/navigation/components/PageFooter/PageFooter.d.ts.map +1 -0
  182. package/dist/features/navigation/components/PageFooter/PageFooter.js +52 -0
  183. package/dist/features/navigation/components/PageFooter/PageFooter.js.map +1 -0
  184. package/dist/features/navigation/components/PageFooter/PageFooter.module.css +24 -0
  185. package/dist/features/navigation/components/PageHeader/PageHeader.d.ts +14 -0
  186. package/dist/features/navigation/components/PageHeader/PageHeader.d.ts.map +1 -0
  187. package/dist/features/navigation/components/PageHeader/PageHeader.js +22 -0
  188. package/dist/features/navigation/components/PageHeader/PageHeader.js.map +1 -0
  189. package/dist/features/navigation/components/PageHeader/PageHeader.module.css +41 -0
  190. package/dist/features/navigation/components/Sidebar/Sidebar.d.ts +24 -0
  191. package/dist/features/navigation/components/Sidebar/Sidebar.d.ts.map +1 -0
  192. package/dist/features/navigation/components/Sidebar/Sidebar.js +131 -0
  193. package/dist/features/navigation/components/Sidebar/Sidebar.js.map +1 -0
  194. package/dist/features/navigation/components/Sidebar/Sidebar.module.css +139 -0
  195. package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts +66 -0
  196. package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts.map +1 -0
  197. package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js +89 -0
  198. package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js.map +1 -0
  199. package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.module.css +269 -0
  200. package/dist/features/overlays/components/Popup/Popup.d.ts +8 -0
  201. package/dist/features/overlays/components/Popup/Popup.d.ts.map +1 -0
  202. package/dist/features/overlays/components/Popup/Popup.js +23 -0
  203. package/dist/features/overlays/components/Popup/Popup.js.map +1 -0
  204. package/dist/features/overlays/components/Popup/Popup.module.css +64 -0
  205. package/dist/features/overlays/components/Popup/index.d.ts +3 -0
  206. package/dist/features/overlays/components/Popup/index.d.ts.map +1 -0
  207. package/dist/features/overlays/components/Popup/index.js +2 -0
  208. package/dist/features/overlays/components/Popup/index.js.map +1 -0
  209. package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts +36 -0
  210. package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts.map +1 -0
  211. package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js +38 -0
  212. package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js.map +1 -0
  213. package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.module.css +339 -0
  214. package/dist/features/overlays/components/dropdowns/DropdownMenu.d.ts +18 -0
  215. package/dist/features/overlays/components/dropdowns/DropdownMenu.d.ts.map +1 -0
  216. package/dist/features/overlays/components/dropdowns/DropdownMenu.js +34 -0
  217. package/dist/features/overlays/components/dropdowns/DropdownMenu.js.map +1 -0
  218. package/dist/features/overlays/components/dropdowns/DropdownMenu.module.css +23 -0
  219. package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.d.ts +36 -0
  220. package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.d.ts.map +1 -0
  221. package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js +19 -0
  222. package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js.map +1 -0
  223. package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.module.css +88 -0
  224. package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.d.ts +14 -0
  225. package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.d.ts.map +1 -0
  226. package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js +119 -0
  227. package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js.map +1 -0
  228. package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.module.css +76 -0
  229. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.d.ts +3 -0
  230. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.d.ts.map +1 -0
  231. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js +486 -0
  232. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js.map +1 -0
  233. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.module.css +55 -0
  234. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.d.ts +16 -0
  235. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.d.ts.map +1 -0
  236. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.js +8 -0
  237. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.js.map +1 -0
  238. package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.module.css +77 -0
  239. package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts +10 -0
  240. package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts.map +1 -0
  241. package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.js +9 -0
  242. package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.js.map +1 -0
  243. package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.module.css +86 -0
  244. package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts +13 -0
  245. package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts.map +1 -0
  246. package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.js +9 -0
  247. package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.js.map +1 -0
  248. package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.module.css +8 -0
  249. package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts +20 -0
  250. package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts.map +1 -0
  251. package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js +7 -0
  252. package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js.map +1 -0
  253. package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.module.css +13 -0
  254. package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts +216 -0
  255. package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts.map +1 -0
  256. package/dist/features/patterns/components/Form/MultiStepForm/types/types.js +2 -0
  257. package/dist/features/patterns/components/Form/MultiStepForm/types/types.js.map +1 -0
  258. package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.d.ts +6 -0
  259. package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.d.ts.map +1 -0
  260. package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.js +22 -0
  261. package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.js.map +1 -0
  262. package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.d.ts +10 -0
  263. package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.d.ts.map +1 -0
  264. package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.js +31 -0
  265. package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.js.map +1 -0
  266. package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.d.ts +19 -0
  267. package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.d.ts.map +1 -0
  268. package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js +104 -0
  269. package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js.map +1 -0
  270. package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.module.css +55 -0
  271. package/dist/features/selects/components/Selects/CustomSelect.d.ts +27 -0
  272. package/dist/features/selects/components/Selects/CustomSelect.d.ts.map +1 -0
  273. package/dist/features/selects/components/Selects/CustomSelect.js +53 -0
  274. package/dist/features/selects/components/Selects/CustomSelect.js.map +1 -0
  275. package/dist/features/selects/components/Selects/CustomSelect.module.css +307 -0
  276. package/dist/features/uploads/components/ImageUpload/ImageUpload.d.ts +12 -0
  277. package/dist/features/uploads/components/ImageUpload/ImageUpload.d.ts.map +1 -0
  278. package/dist/features/uploads/components/ImageUpload/ImageUpload.js +178 -0
  279. package/dist/features/uploads/components/ImageUpload/ImageUpload.js.map +1 -0
  280. package/dist/features/uploads/components/ImageUpload/ImageUpload.module.css +254 -0
  281. package/dist/features/uploads/components/VideoUpload/VideoUpload.d.ts +12 -0
  282. package/dist/features/uploads/components/VideoUpload/VideoUpload.d.ts.map +1 -0
  283. package/dist/features/uploads/components/VideoUpload/VideoUpload.js +183 -0
  284. package/dist/features/uploads/components/VideoUpload/VideoUpload.js.map +1 -0
  285. package/dist/features/uploads/components/VideoUpload/VideoUpload.module.css +277 -0
  286. package/dist/features/uploads/components/VideoUpload/index.d.ts +2 -0
  287. package/dist/features/uploads/components/VideoUpload/index.d.ts.map +1 -0
  288. package/dist/features/uploads/components/VideoUpload/index.js +2 -0
  289. package/dist/features/uploads/components/VideoUpload/index.js.map +1 -0
  290. package/dist/index.d.ts +5 -0
  291. package/dist/index.d.ts.map +1 -0
  292. package/dist/index.js +5 -0
  293. package/dist/index.js.map +1 -0
  294. package/dist/shared/styles/globals.css +80 -0
  295. package/dist/shared/styles/tokens.css +138 -0
  296. package/dist/shared/utils/devDelay.d.ts +8 -0
  297. package/dist/shared/utils/devDelay.d.ts.map +1 -0
  298. package/dist/shared/utils/devDelay.js +11 -0
  299. package/dist/shared/utils/devDelay.js.map +1 -0
  300. package/dist/shared/utils/files.d.ts +9 -0
  301. package/dist/shared/utils/files.d.ts.map +1 -0
  302. package/dist/shared/utils/files.js +26 -0
  303. package/dist/shared/utils/files.js.map +1 -0
  304. package/dist/shared/utils/formatCurrency.d.ts +24 -0
  305. package/dist/shared/utils/formatCurrency.d.ts.map +1 -0
  306. package/dist/shared/utils/formatCurrency.js +96 -0
  307. package/dist/shared/utils/formatCurrency.js.map +1 -0
  308. package/dist/shared/utils/location/countries/ao.d.ts +3 -0
  309. package/dist/shared/utils/location/countries/ao.d.ts.map +1 -0
  310. package/dist/shared/utils/location/countries/ao.js +52 -0
  311. package/dist/shared/utils/location/countries/ao.js.map +1 -0
  312. package/dist/shared/utils/location/countries/ao.json +254 -0
  313. package/dist/shared/utils/location/countries/ao.official-2026.json +254 -0
  314. package/dist/shared/utils/location/countries/br.d.ts +3 -0
  315. package/dist/shared/utils/location/countries/br.d.ts.map +1 -0
  316. package/dist/shared/utils/location/countries/br.js +33 -0
  317. package/dist/shared/utils/location/countries/br.js.map +1 -0
  318. package/dist/shared/utils/location/countries/mz.d.ts +3 -0
  319. package/dist/shared/utils/location/countries/mz.d.ts.map +1 -0
  320. package/dist/shared/utils/location/countries/mz.js +17 -0
  321. package/dist/shared/utils/location/countries/mz.js.map +1 -0
  322. package/dist/shared/utils/location/countries/ng.d.ts +3 -0
  323. package/dist/shared/utils/location/countries/ng.d.ts.map +1 -0
  324. package/dist/shared/utils/location/countries/ng.js +43 -0
  325. package/dist/shared/utils/location/countries/ng.js.map +1 -0
  326. package/dist/shared/utils/location/countries/pt.d.ts +3 -0
  327. package/dist/shared/utils/location/countries/pt.d.ts.map +1 -0
  328. package/dist/shared/utils/location/countries/pt.js +26 -0
  329. package/dist/shared/utils/location/countries/pt.js.map +1 -0
  330. package/dist/shared/utils/location/countries/us.d.ts +3 -0
  331. package/dist/shared/utils/location/countries/us.d.ts.map +1 -0
  332. package/dist/shared/utils/location/countries/us.js +57 -0
  333. package/dist/shared/utils/location/countries/us.js.map +1 -0
  334. package/dist/shared/utils/location/countries/za.d.ts +3 -0
  335. package/dist/shared/utils/location/countries/za.d.ts.map +1 -0
  336. package/dist/shared/utils/location/countries/za.js +15 -0
  337. package/dist/shared/utils/location/countries/za.js.map +1 -0
  338. package/dist/shared/utils/location/index.d.ts +14 -0
  339. package/dist/shared/utils/location/index.d.ts.map +1 -0
  340. package/dist/shared/utils/location/index.js +131 -0
  341. package/dist/shared/utils/location/index.js.map +1 -0
  342. package/dist/shared/utils/location/types.d.ts +24 -0
  343. package/dist/shared/utils/location/types.d.ts.map +1 -0
  344. package/dist/shared/utils/location/types.js +2 -0
  345. package/dist/shared/utils/location/types.js.map +1 -0
  346. package/dist/shared/utils/logger.d.ts +43 -0
  347. package/dist/shared/utils/logger.d.ts.map +1 -0
  348. package/dist/shared/utils/logger.js +139 -0
  349. package/dist/shared/utils/logger.js.map +1 -0
  350. package/dist/shared/utils/maskedDecimal.d.ts +8 -0
  351. package/dist/shared/utils/maskedDecimal.d.ts.map +1 -0
  352. package/dist/shared/utils/maskedDecimal.js +42 -0
  353. package/dist/shared/utils/maskedDecimal.js.map +1 -0
  354. package/dist/shared/utils/slug.d.ts +12 -0
  355. package/dist/shared/utils/slug.d.ts.map +1 -0
  356. package/dist/shared/utils/slug.js +31 -0
  357. package/dist/shared/utils/slug.js.map +1 -0
  358. package/dist/shared/utils/tax-id/countries/ao.d.ts +11 -0
  359. package/dist/shared/utils/tax-id/countries/ao.d.ts.map +1 -0
  360. package/dist/shared/utils/tax-id/countries/ao.js +115 -0
  361. package/dist/shared/utils/tax-id/countries/ao.js.map +1 -0
  362. package/dist/shared/utils/tax-id/countries/br.d.ts +3 -0
  363. package/dist/shared/utils/tax-id/countries/br.d.ts.map +1 -0
  364. package/dist/shared/utils/tax-id/countries/br.js +24 -0
  365. package/dist/shared/utils/tax-id/countries/br.js.map +1 -0
  366. package/dist/shared/utils/tax-id/countries/index.d.ts +8 -0
  367. package/dist/shared/utils/tax-id/countries/index.d.ts.map +1 -0
  368. package/dist/shared/utils/tax-id/countries/index.js +12 -0
  369. package/dist/shared/utils/tax-id/countries/index.js.map +1 -0
  370. package/dist/shared/utils/tax-id/countries/pt.d.ts +3 -0
  371. package/dist/shared/utils/tax-id/countries/pt.d.ts.map +1 -0
  372. package/dist/shared/utils/tax-id/countries/pt.js +24 -0
  373. package/dist/shared/utils/tax-id/countries/pt.js.map +1 -0
  374. package/dist/shared/utils/tax-id/countries/us.d.ts +3 -0
  375. package/dist/shared/utils/tax-id/countries/us.d.ts.map +1 -0
  376. package/dist/shared/utils/tax-id/countries/us.js +24 -0
  377. package/dist/shared/utils/tax-id/countries/us.js.map +1 -0
  378. package/dist/shared/utils/tax-id/index.d.ts +14 -0
  379. package/dist/shared/utils/tax-id/index.d.ts.map +1 -0
  380. package/dist/shared/utils/tax-id/index.js +140 -0
  381. package/dist/shared/utils/tax-id/index.js.map +1 -0
  382. package/dist/shared/utils/tax-id/types.d.ts +21 -0
  383. package/dist/shared/utils/tax-id/types.d.ts.map +1 -0
  384. package/dist/shared/utils/tax-id/types.js +2 -0
  385. package/dist/shared/utils/tax-id/types.js.map +1 -0
  386. package/dist/styles.d.ts +2 -0
  387. package/dist/styles.d.ts.map +1 -0
  388. package/dist/styles.js +2 -0
  389. package/dist/styles.js.map +1 -0
  390. package/dist/tokens.d.ts +2 -0
  391. package/dist/tokens.d.ts.map +1 -0
  392. package/dist/tokens.js +2 -0
  393. package/dist/tokens.js.map +1 -0
  394. package/dist/ui.d.ts +67 -0
  395. package/dist/ui.d.ts.map +1 -0
  396. package/dist/ui.js +39 -0
  397. package/dist/ui.js.map +1 -0
  398. package/dist/utils.d.ts +7 -0
  399. package/dist/utils.d.ts.map +1 -0
  400. package/dist/utils.js +4 -0
  401. package/dist/utils.js.map +1 -0
  402. package/package.json +80 -0
@@ -0,0 +1,77 @@
1
+ .headerRoot {
2
+ display: flex;
3
+ flex-direction: column;
4
+ }
5
+
6
+ .formHeader {
7
+ display: flex;
8
+ flex-direction: column;
9
+ padding: var(--spacing-md) var(--spacing-md) 0;
10
+ gap: 0.25rem;
11
+ }
12
+
13
+ .headerTop {
14
+ display: flex;
15
+ align-items: center;
16
+ width: 100%;
17
+ justify-content: space-between;
18
+ }
19
+
20
+ .headerContent {
21
+ display: flex;
22
+ flex-direction: column;
23
+ }
24
+
25
+ .title {
26
+ font-size: 1.2rem;
27
+ font-weight: 600;
28
+ color: #1f2937;
29
+ margin: 0;
30
+ }
31
+
32
+ .subtitle {
33
+ font-size: 0.875rem;
34
+ color: var(--text-secondary);
35
+ margin: 10px 0 10px;
36
+ background-color: rgba(77, 90, 121, 0.04);
37
+ width: 100%;
38
+ padding: var(--spacing-sm-large) var(--spacing-md);
39
+ border: 1px dashed var(--border-divider);
40
+ border-radius: var(--radius-sm);
41
+ }
42
+
43
+ .closeButton {
44
+ background: none;
45
+ border: none;
46
+ cursor: pointer;
47
+ color: var(--text-tertiary);
48
+ padding: var(--spacing-xs);
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ transition: color 0.2s;
53
+ border-radius: var(--radius-sm);
54
+ }
55
+
56
+ .closeButton:hover {
57
+ color: var(--text-primary);
58
+ background-color: var(--bg-hover);
59
+ }
60
+
61
+ .headerRight {
62
+ display: flex;
63
+ align-items: center;
64
+ gap: var(--spacing-sm);
65
+ }
66
+
67
+ .rightMeta {
68
+ display: inline-flex;
69
+ align-items: center;
70
+ padding: 4px 10px;
71
+ border-radius: 999px;
72
+ border: 1px solid var(--border-color, #d1d5db);
73
+ font-size: 12px;
74
+ color: var(--text-secondary);
75
+ background: var(--bg-secondary, #f8fafc);
76
+ white-space: nowrap;
77
+ }
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ import type { StepConfig } from "../types/types";
3
+ interface StepIndicatorProps {
4
+ currentStep: number;
5
+ steps: StepConfig[];
6
+ stepLabel?: ReactNode;
7
+ }
8
+ export declare function StepIndicator({ currentStep, steps, stepLabel }: StepIndicatorProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=StepIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepIndicator.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/StepIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,UAAU,kBAAkB;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CAsBlF"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CheckCircle } from "lucide-react";
3
+ import styles from "./StepIndicator.module.css";
4
+ export function StepIndicator({ currentStep, steps, stepLabel }) {
5
+ var _a, _b;
6
+ const fallbackLabel = `Etapa ${currentStep} de ${steps.length}: ${(_b = (_a = steps.find((step) => step.id === currentStep)) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : ""}`;
7
+ return (_jsxs("div", { className: styles.indicatorContainer, children: [_jsx("div", { className: styles.stepsIndicator, children: steps.map((step) => (_jsxs("div", { className: `${styles.stepContainer} ${step.hidden ? styles.stepHidden : ""}`, children: [_jsx("div", { className: `${styles.stepCircle} ${currentStep >= step.id ? styles.stepActive : ""}`, children: currentStep > step.id ? _jsx(CheckCircle, { size: 16 }) : step.id }), step.id < steps.length && (_jsx("div", { className: `${styles.stepLine} ${currentStep > step.id ? styles.stepLineActive : ""}` }))] }, step.id))) }), _jsx("p", { className: styles.stepLabel, children: stepLabel !== null && stepLabel !== void 0 ? stepLabel : fallbackLabel })] }));
8
+ }
9
+ //# sourceMappingURL=StepIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepIndicator.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/StepIndicator.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAShD,MAAM,UAAU,aAAa,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAsB;;IACjF,MAAM,aAAa,GAAG,SAAS,WAAW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md);
5
+ border-bottom: 1px solid var(--border-divider);
6
+ }
7
+
8
+ .stepsIndicator {
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ gap: 0.5rem;
13
+ margin-bottom: 0.75rem;
14
+ }
15
+
16
+ .stepContainer {
17
+ display: flex;
18
+ align-items: center;
19
+ gap: 0.5rem;
20
+ }
21
+
22
+ .stepContainer:last-child {
23
+ flex: 0;
24
+ }
25
+
26
+ .stepHidden {
27
+ opacity: 0.3;
28
+ }
29
+
30
+ .stepCircle {
31
+ width: 30px;
32
+ height: 30px;
33
+ border-radius: 50%;
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ background-color: var(--bg-secondary);
38
+ border: 2px solid var(--border-divider);
39
+ color: var(--text-secondary);
40
+ font-weight: 600;
41
+ font-size: 0.875rem;
42
+ flex-shrink: 0;
43
+ }
44
+
45
+ .stepCircle.stepActive {
46
+ background-color: var(--color-primary);
47
+ border-color: var(--color-primary);
48
+ color: white;
49
+ }
50
+
51
+ .stepLine {
52
+ width: 35px;
53
+ height: 2px;
54
+ background-color: var(--border-divider);
55
+ transition: all var(--transition-fast);
56
+ }
57
+
58
+ .stepLineActive {
59
+ background-color: var(--color-primary);
60
+ }
61
+
62
+ .stepLabel {
63
+ text-align: center;
64
+ color: var(--text-secondary);
65
+ font-size: 0.9rem;
66
+ margin: 0;
67
+ }
68
+
69
+ @media (max-width: 456px) and (max-height: 1000px) {
70
+
71
+
72
+ .stepsIndicator {
73
+ justify-content: flex-start;
74
+ overflow: scroll;
75
+ padding-left: var(--spacing-md);
76
+ padding-right: var(--spacing-md);
77
+ margin-left: calc(-1 * var(--spacing-md));
78
+ margin-right: calc(-1 * var(--spacing-md));
79
+ scrollbar-width: none;
80
+ -ms-overflow-style: none;
81
+ }
82
+
83
+ .stepsIndicator::-webkit-scrollbar {
84
+ display: none;
85
+ }
86
+ }
@@ -0,0 +1,13 @@
1
+ import { CSSProperties, ReactNode } from "react";
2
+ interface StepDefinition {
3
+ id: number;
4
+ component: ReactNode;
5
+ contentPadding?: CSSProperties['padding'];
6
+ }
7
+ interface StepsContainerProps {
8
+ currentStep: number;
9
+ steps: StepDefinition[];
10
+ }
11
+ export declare function StepsContainer({ currentStep, steps }: StepsContainerProps): import("react/jsx-runtime").JSX.Element | null;
12
+ export {};
13
+ //# sourceMappingURL=StepsContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepsContainer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/StepsContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjD,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,mBAAmB,kDAUzE"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from "./StepsContainer.module.css";
3
+ export function StepsContainer({ currentStep, steps }) {
4
+ const current = steps.find((step) => step.id === currentStep);
5
+ if (!current)
6
+ return null;
7
+ return (_jsx("div", { className: styles.stepContent, style: current.contentPadding !== undefined ? { padding: current.contentPadding } : undefined, children: current.component }));
8
+ }
9
+ //# sourceMappingURL=StepsContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepsContainer.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/StepsContainer.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,6BAA6B,CAAC;AAajD,MAAM,UAAU,cAAc,CAAC,EAAE,WAAW,EAAE,KAAK,EAAuB;IACxE,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,WAAW,CAAC,CAAC;IAE9D,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAE1B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,YAC9H,OAAO,CAAC,SAAS,GACd,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ .stepContent {
2
+ display: flex;
3
+ flex-direction: column;
4
+ flex: 1;
5
+ min-height: 0;
6
+ height: 100%;
7
+ width: 100%;
8
+ }
@@ -0,0 +1,20 @@
1
+ import { type ModalSuccessSection } from '@/features/feedback/components/SuccesModal/ModalSuccess';
2
+ import type { MultiStepMode } from "../types/types";
3
+ interface SuccessScreenProps {
4
+ mode: MultiStepMode;
5
+ sections: ModalSuccessSection[];
6
+ onClose: () => void;
7
+ className?: string;
8
+ style?: React.CSSProperties;
9
+ successTitle: React.ReactNode;
10
+ successMessage: React.ReactNode;
11
+ successContent?: React.ReactNode;
12
+ primaryActionLabel?: string;
13
+ secondaryActionLabel?: string;
14
+ onSecondaryAction?: () => void;
15
+ /** Quando false, botão(ões) do success ficam com largura natural à direita. Default true. */
16
+ fullWidthButtons?: boolean;
17
+ }
18
+ export declare function SuccessScreen({ mode, sections, onClose, className, style, successTitle, successMessage, successContent, primaryActionLabel, secondaryActionLabel, onSecondaryAction, fullWidthButtons, }: SuccessScreenProps): import("react/jsx-runtime").JSX.Element;
19
+ export {};
20
+ //# sourceMappingURL=SuccessScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuccessScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.tsx"],"names":[],"mappings":"AAAA,OAAqB,EAAE,KAAK,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAEjH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,kBAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,gBAAwB,GACzB,EAAE,kBAAkB,2CAmBpB"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import ModalSuccess from '@/features/feedback/components/SuccesModal/ModalSuccess';
3
+ import styles from "./SuccessScreen.module.css";
4
+ export function SuccessScreen({ mode, sections, onClose, className, style, successTitle, successMessage, successContent, primaryActionLabel = "Fechar", secondaryActionLabel, onSecondaryAction, fullWidthButtons = false, }) {
5
+ return (_jsx("div", { className: className !== null && className !== void 0 ? className : styles.formContainer, style: style, children: _jsx("div", { className: styles.successWrapper, children: _jsx(ModalSuccess, { title: successTitle, message: successMessage, sections: sections, primaryActionLabel: primaryActionLabel, onPrimaryAction: onClose, secondaryActionLabel: secondaryActionLabel, onSecondaryAction: onSecondaryAction, fullWidthButtons: fullWidthButtons, children: successContent }) }) }));
6
+ }
7
+ //# sourceMappingURL=SuccessScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuccessScreen.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.tsx"],"names":[],"mappings":";AAAA,OAAO,YAA0C,MAAM,yDAAyD,CAAC;AACjH,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAmBhD,MAAM,UAAU,aAAa,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,kBAAkB,GAAG,QAAQ,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,GAAG,KAAK,GACL;IACnB,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,MAAM,CAAC,aAAa,EAAE,KAAK,EAAE,KAAK,YAC7D,cAAK,SAAS,EAAE,MAAM,CAAC,cAAc,YACnC,KAAC,YAAY,IACX,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,kBAAkB,EACtC,eAAe,EAAE,OAAO,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,YAEjC,cAAc,GACF,GACX,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ .formContainer {
2
+ width: 100%;
3
+ height: 100%;
4
+ }
5
+
6
+ .successWrapper {
7
+ flex: 1;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ overflow: hidden;
12
+ height: 100%;
13
+ }
@@ -0,0 +1,216 @@
1
+ import { CSSProperties, InputHTMLAttributes, ReactNode } from "react";
2
+ import type { Option } from '@/features/selects/components/Selects/CustomSelect';
3
+ import type { TaxIdDocumentKind } from '@/shared/utils/tax-id';
4
+ export type MultiStepMode = "create" | "edit";
5
+ export interface StepConfig {
6
+ id: number;
7
+ title: string;
8
+ hidden?: boolean;
9
+ skip?: boolean;
10
+ }
11
+ export interface RequirementItem {
12
+ key: string;
13
+ label: string;
14
+ completed: boolean;
15
+ pendingMessage?: string;
16
+ optional?: boolean;
17
+ }
18
+ export interface ValidationErrors {
19
+ [key: string]: string;
20
+ }
21
+ export interface StepRenderProps<TValues> {
22
+ formData: TValues;
23
+ errors: ValidationErrors;
24
+ onFieldChange: (field: string, value: any) => void;
25
+ mode: MultiStepMode;
26
+ }
27
+ export interface StepContent<TValues> {
28
+ id: number;
29
+ render: (props: StepRenderProps<TValues>) => ReactNode;
30
+ contentPadding?: CSSProperties['padding'];
31
+ }
32
+ export type ValidationByStep<TValues> = Record<number, (values: TValues, mode: MultiStepMode) => ValidationErrors>;
33
+ export type StepFieldKeysResolver<TValues> = (values: TValues, mode: MultiStepMode) => string[];
34
+ export type RequiredFields<TValues> = Record<number, string[] | StepFieldKeysResolver<TValues>>;
35
+ export type StepCompletedRulesResolver<TValues> = (values: TValues, mode: MultiStepMode) => Array<(values: TValues, mode: MultiStepMode) => boolean>;
36
+ export type CompletedRules<TValues> = Record<number, Array<(values: TValues, mode: MultiStepMode) => boolean> | StepCompletedRulesResolver<TValues>>;
37
+ export type RequirementBuilders<TValues> = Record<number, (values: TValues, errors: ValidationErrors, mode: MultiStepMode) => RequirementItem[]>;
38
+ export type StepFieldDefinitionsResolver<TValues> = (values: TValues, mode: MultiStepMode) => FieldDefinition[];
39
+ export type StepFieldDefinitions<TValues> = Record<number, FieldDefinition[] | StepFieldDefinitionsResolver<TValues>>;
40
+ export interface ActionButtonIconConfig {
41
+ leftIcon?: ReactNode;
42
+ rightIcon?: ReactNode;
43
+ }
44
+ export interface MultiStepFormActionIcons {
45
+ cancel?: ActionButtonIconConfig;
46
+ previous?: ActionButtonIconConfig;
47
+ next?: ActionButtonIconConfig;
48
+ submitCreate?: ActionButtonIconConfig;
49
+ submitEdit?: ActionButtonIconConfig;
50
+ }
51
+ export type FieldType = "text" | "textarea" | "select" | "photo" | "phone" | "taxId" | "number" | "date";
52
+ export interface FieldDefinition {
53
+ key: string;
54
+ label: string;
55
+ type: FieldType;
56
+ placeholder?: string;
57
+ leftIcon?: ReactNode;
58
+ prefixText?: string;
59
+ required?: boolean;
60
+ readOnly?: boolean | ((values: any) => boolean);
61
+ options?: Option[];
62
+ hasError?: boolean;
63
+ inputType?: 'text' | 'email' | 'password';
64
+ autoComplete?: string;
65
+ inputMode?: InputHTMLAttributes<HTMLInputElement>['inputMode'];
66
+ maxLength?: number;
67
+ row?: number;
68
+ width?: "full" | "half";
69
+ assetKeyField?: string;
70
+ uploadUrl?: string;
71
+ tokenStorageKey?: string;
72
+ numberMode?: 'currency' | 'percent' | 'decimal';
73
+ decimals?: number;
74
+ taxIdCountryCode?: string;
75
+ taxIdDocumentKind?: TaxIdDocumentKind;
76
+ taxIdDocumentKindFieldKey?: string;
77
+ taxIdDocumentKindLocked?: boolean;
78
+ showTaxIdDocumentKindSelect?: boolean;
79
+ /** Quando true, limpa apenas o valor do input no DOM quando há erro, mantendo o erro visível */
80
+ resetOnValidationError?: boolean;
81
+ /** Chave do campo cujo valor (ISO date) será passado como `min` ao DateInput */
82
+ minFieldKey?: string;
83
+ /** Chave do campo cujo valor (ISO date) será passado como `max` ao DateInput */
84
+ maxFieldKey?: string;
85
+ /** Quando false, o DateInput seleciona a data no clique direto do dia sem botão Confirmar/Cancelar */
86
+ confirmOnClick?: boolean;
87
+ }
88
+ export interface StepsContent<TValues> {
89
+ steps: StepContent<TValues>[];
90
+ validationByStep?: ValidationByStep<TValues>;
91
+ requiredFields?: RequiredFields<TValues>;
92
+ completedRules?: CompletedRules<TValues>;
93
+ requirementBuilders?: RequirementBuilders<TValues>;
94
+ fieldDefinitions?: StepFieldDefinitions<TValues>;
95
+ onNavigateToStocks?: () => void;
96
+ onNavigateToPOS?: () => void;
97
+ }
98
+ export interface SuccessSection {
99
+ title: string;
100
+ rows: Array<{
101
+ label: string;
102
+ value: string;
103
+ }>;
104
+ }
105
+ export interface MultiStepFormLabels {
106
+ cancel: ReactNode;
107
+ previous: ReactNode;
108
+ closeAriaLabel: string;
109
+ stepLabelBuilder: (step: number, total: number, title?: string) => ReactNode;
110
+ submitCreate: ReactNode;
111
+ submitEdit: ReactNode;
112
+ submitLoadingCreate: ReactNode;
113
+ submitLoadingEdit: ReactNode;
114
+ defaultNextLabel: ReactNode;
115
+ defaultNextLoadingLabel: ReactNode;
116
+ requirementsDescription: string;
117
+ saveBlockedTitle: string;
118
+ saveBlockedDescription: string;
119
+ saveBlockedItems: string[];
120
+ successClose: string;
121
+ optionalField: ReactNode;
122
+ }
123
+ export interface StepAction<TValues> {
124
+ request?: (step: number, values: TValues) => Promise<boolean | StepRequestResult<TValues>> | boolean | StepRequestResult<TValues>;
125
+ nextLabel?: ReactNode;
126
+ nextLoadingLabel?: ReactNode;
127
+ nextLeftIcon?: ReactNode;
128
+ nextRightIcon?: ReactNode;
129
+ showLoading?: boolean;
130
+ }
131
+ export type StepActions<TValues> = Partial<Record<number, StepAction<TValues>>>;
132
+ export type FlowNoticeType = "success" | "error" | "info" | "warning";
133
+ export interface FlowNoticePayload {
134
+ type: FlowNoticeType;
135
+ title: string;
136
+ message?: ReactNode;
137
+ details?: ReactNode;
138
+ durationMs?: number;
139
+ autoDismiss?: boolean;
140
+ }
141
+ export interface MultiStepFormProps<TValues = Record<string, any>> {
142
+ mode: MultiStepMode;
143
+ stepsConfig: StepConfig[];
144
+ stepsContent: StepsContent<TValues>;
145
+ initialValues: TValues;
146
+ onSubmit: (values: TValues) => Promise<any> | any;
147
+ onCancel: () => void;
148
+ isLoading?: boolean;
149
+ showNextSteps?: boolean;
150
+ nextStepsMessage?: string;
151
+ showSuccessScreen?: boolean;
152
+ onSuccess?: (payload: any, values: TValues) => void;
153
+ onSuccessClose?: (payload: any, values: TValues) => void;
154
+ successSectionsBuilder?: (payload: any, mode: MultiStepMode) => SuccessSection[];
155
+ successTitleBuilder?: (mode: MultiStepMode) => ReactNode;
156
+ successMessageBuilder?: (mode: MultiStepMode) => ReactNode;
157
+ successCloseLabelBuilder?: (mode: MultiStepMode, payload: any) => string;
158
+ successContent?: ReactNode;
159
+ successContentBuilder?: (createdPayload: any, mode: MultiStepMode) => ReactNode;
160
+ tooltipTitleBuilder?: (step: number, total: number) => ReactNode;
161
+ subtitleBuilder?: (mode: MultiStepMode) => string;
162
+ tooltipStageLabelBuilder?: (step: number, total: number, title?: string) => string | undefined;
163
+ nextLabelBuilder?: (step: number, total: number) => ReactNode;
164
+ nextLoadingLabelBuilder?: (step: number, total: number) => ReactNode;
165
+ actionIcons?: MultiStepFormActionIcons;
166
+ labels?: Partial<MultiStepFormLabels>;
167
+ stepActions?: StepActions<TValues>;
168
+ showHeader?: boolean;
169
+ showCloseButton?: boolean;
170
+ showCancelButton?: boolean;
171
+ disableBackButton?: boolean;
172
+ formHeight?: number | string;
173
+ formWidth?: number | string;
174
+ bodyScrollable?: boolean;
175
+ bodyPadding?: CSSProperties['padding'];
176
+ noBorderRadius?: boolean;
177
+ fullWidthButtons?: boolean;
178
+ /** Botões do ecrã de sucesso: true = largura total (ex.: Register), false = largura natural à direita (ex.: UserCreate/UserEdit). Default true. */
179
+ successFullWidthButtons?: boolean;
180
+ inputSize?: 'md' | 'lg';
181
+ buttonSize?: 'md' | 'lg';
182
+ activeStep?: number;
183
+ onStepChange?: (step: number) => void;
184
+ persistenceKey?: string;
185
+ persistenceTTL?: number;
186
+ cookiePersistenceKey?: string;
187
+ /**
188
+ * @deprecated Use stepActions[step].request instead.
189
+ */
190
+ onStepRequest?: (step: number, values: TValues) => Promise<boolean | StepRequestResult<TValues>> | boolean | StepRequestResult<TValues>;
191
+ onBack?: (currentStep: number, targetStep: number, values: TValues) => Partial<TValues> | void;
192
+ initialIsSuccess?: boolean;
193
+ initialCreatedPayload?: any;
194
+ flowExpiresAtSelector?: (values: TValues) => string | null | undefined;
195
+ flowExpiresAtOverride?: string | null;
196
+ showFlowCountdown?: boolean;
197
+ onFlowExpired?: (values: TValues) => Partial<TValues> | void;
198
+ flowExpiredNoticeBuilder?: (values: TValues) => FlowNoticePayload | void;
199
+ onNotice?: (notice: FlowNoticePayload) => void;
200
+ /** Classe CSS para o tooltip de save bloqueado (edit mode sem alterações) */
201
+ saveBlockedTooltipClassName?: string;
202
+ /** Largura do tooltip de save bloqueado (ex: "300px"). Usa min-width: 200px por defeito. */
203
+ saveBlockedTooltipWidth?: string | number;
204
+ }
205
+ export interface MultiStepFormStep {
206
+ id: number;
207
+ component: ReactNode;
208
+ contentPadding?: CSSProperties['padding'];
209
+ }
210
+ export interface StepRequestResult<TValues> {
211
+ success: boolean;
212
+ errors?: ValidationErrors;
213
+ updatedValues?: Partial<TValues>;
214
+ notice?: FlowNoticePayload;
215
+ }
216
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE9C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC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,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC/F,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvE,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,iBAAiB,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC/C,6EAA6E;IAC7E,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,4FAA4F;IAC5F,uBAAuB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB,CAAC,OAAO;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/types/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { MultiStepFormLabels } from "../types/types";
2
+ export declare const TOOLTIP_DISABLE_DELAY = 2000;
3
+ export declare const TOOLTIP_DISABLE_DELAY_MAX = 3500;
4
+ export declare const SUBMIT_TRANSITION_DELAY = 1500;
5
+ export declare const LEGACY_DEFAULT_LABELS: MultiStepFormLabels;
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,eAAO,MAAM,qBAAqB,EAAE,mBAiBnC,CAAC"}
@@ -0,0 +1,22 @@
1
+ export const TOOLTIP_DISABLE_DELAY = 2000;
2
+ export const TOOLTIP_DISABLE_DELAY_MAX = 3500;
3
+ export const SUBMIT_TRANSITION_DELAY = 1500;
4
+ export const LEGACY_DEFAULT_LABELS = {
5
+ cancel: "Cancelar",
6
+ previous: "Anterior",
7
+ closeAriaLabel: "Fechar",
8
+ stepLabelBuilder: (step, total, title) => `Etapa ${step} de ${total}: ${title !== null && title !== void 0 ? title : ""}`,
9
+ submitCreate: "Criar",
10
+ submitEdit: "Salvar",
11
+ submitLoadingCreate: "Criando...",
12
+ submitLoadingEdit: "Salvando...",
13
+ defaultNextLabel: "Pr\u00f3ximo",
14
+ defaultNextLoadingLabel: "A processar...",
15
+ requirementsDescription: "Finalize os requisitos pendentes para continuar",
16
+ saveBlockedTitle: "A\u00e7\u00e3o indispon\u00edvel",
17
+ saveBlockedDescription: "Modifique algum campo para poder salvar.",
18
+ saveBlockedItems: ["Altere pelo menos um campo antes de salvar."],
19
+ successClose: "Fechar",
20
+ optionalField: "(Opcional)",
21
+ };
22
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/utils/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAC9C,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,MAAM,EAAE,UAAU;IAClB,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,QAAQ;IACxB,gBAAgB,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,SAAS,IAAI,OAAO,KAAK,KAAK,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,EAAE;IACrF,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,QAAQ;IACpB,mBAAmB,EAAE,YAAY;IACjC,iBAAiB,EAAE,aAAa;IAChC,gBAAgB,EAAE,cAAc;IAChC,uBAAuB,EAAE,gBAAgB;IACzC,uBAAuB,EAAE,iDAAiD;IAC1E,gBAAgB,EAAE,kCAAkC;IACpD,sBAAsB,EAAE,0CAA0C;IAClE,gBAAgB,EAAE,CAAC,6CAA6C,CAAC;IACjE,YAAY,EAAE,QAAQ;IACtB,aAAa,EAAE,YAAY;CAC5B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { CompletedRules, MultiStepMode, RequirementBuilders, RequirementItem, RequiredFields, ValidationByStep, ValidationErrors } from "../types/types";
2
+ export declare const getErrorKey: (field: string) => string;
3
+ export declare const getStepValidationErrors: <TValues>(step: number, values: TValues, mode: MultiStepMode, validationByStep?: ValidationByStep<TValues>) => ValidationErrors;
4
+ export declare const getUniqueRequirementMessages: (currentStepErrors: ValidationErrors) => string[];
5
+ export declare const resolveRequiredFields: <TValues>(step: number, values: TValues, mode: MultiStepMode, requiredFields?: RequiredFields<TValues>) => string[];
6
+ export declare const resolveCompletedRules: <TValues>(step: number, values: TValues, mode: MultiStepMode, completedRules?: CompletedRules<TValues>) => ((values: TValues, mode: MultiStepMode) => boolean)[];
7
+ export declare const countTotalRequiredFields: (step: number, values: unknown, mode: MultiStepMode, requiredFields?: RequiredFields<any>) => number;
8
+ export declare const countCompletedFields: <TValues>(step: number, values: TValues, mode: MultiStepMode, completedRules?: CompletedRules<TValues>) => number;
9
+ export declare const buildStepRequirements: <TValues>(step: number, values: TValues, mode: MultiStepMode, currentStepErrors: ValidationErrors, requirementBuilders?: RequirementBuilders<TValues>) => RequirementItem[];
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MACmB,CAAC;AAEhE,eAAO,MAAM,uBAAuB,GAAI,OAAO,EAC7C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,mBAAmB,gBAAgB,CAAC,OAAO,CAAC,KAC3C,gBAGF,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,mBAAmB,gBAAgB,aACzB,CAAC;AAExD,eAAO,MAAM,qBAAqB,GAAI,OAAO,EAC3C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,iBAAiB,cAAc,CAAC,OAAO,CAAC,aAKzC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,EAC3C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,iBAAiB,cAAc,CAAC,OAAO,CAAC,0DAKzC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,iBAAiB,cAAc,CAAC,GAAG,CAAC,WAIrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,OAAO,EAC1C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,iBAAiB,cAAc,CAAC,OAAO,CAAC,WAIzC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,EAC3C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,mBAAmB,gBAAgB,EACnC,sBAAsB,mBAAmB,CAAC,OAAO,CAAC,KACjD,eAAe,EAGjB,CAAC"}
@@ -0,0 +1,31 @@
1
+ export const getErrorKey = (field) => { var _a; return field.includes(".") ? (_a = field.split(".").pop()) !== null && _a !== void 0 ? _a : field : field; };
2
+ export const getStepValidationErrors = (step, values, mode, validationByStep) => {
3
+ const validator = validationByStep === null || validationByStep === void 0 ? void 0 : validationByStep[step];
4
+ return validator ? validator(values, mode) : {};
5
+ };
6
+ export const getUniqueRequirementMessages = (currentStepErrors) => Array.from(new Set(Object.values(currentStepErrors)));
7
+ export const resolveRequiredFields = (step, values, mode, requiredFields) => {
8
+ const fields = requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields[step];
9
+ if (!fields)
10
+ return [];
11
+ return typeof fields === 'function' ? fields(values, mode) : fields;
12
+ };
13
+ export const resolveCompletedRules = (step, values, mode, completedRules) => {
14
+ const rules = completedRules === null || completedRules === void 0 ? void 0 : completedRules[step];
15
+ if (!rules)
16
+ return [];
17
+ return typeof rules === 'function' ? rules(values, mode) : rules;
18
+ };
19
+ export const countTotalRequiredFields = (step, values, mode, requiredFields) => {
20
+ const fields = resolveRequiredFields(step, values, mode, requiredFields);
21
+ return fields.length;
22
+ };
23
+ export const countCompletedFields = (step, values, mode, completedRules) => {
24
+ const rules = resolveCompletedRules(step, values, mode, completedRules);
25
+ return rules.reduce((acc, rule) => acc + (rule(values, mode) ? 1 : 0), 0);
26
+ };
27
+ export const buildStepRequirements = (step, values, mode, currentStepErrors, requirementBuilders) => {
28
+ const builder = requirementBuilders === null || requirementBuilders === void 0 ? void 0 : requirementBuilders[step];
29
+ return builder ? builder(values, currentStepErrors, mode) : [];
30
+ };
31
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/utils/utils.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAa,EAAU,EAAE,WACnD,OAAA,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAA,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,mCAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAA,EAAA,CAAC;AAEhE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,IAAY,EACZ,MAAe,EACf,IAAmB,EACnB,gBAA4C,EAC1B,EAAE;IACpB,MAAM,SAAS,GAAG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,IAAI,CAAC,CAAC;IAC3C,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,iBAAmC,EAAE,EAAE,CAClF,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAY,EACZ,MAAe,EACf,IAAmB,EACnB,cAAwC,EACxC,EAAE;IACF,MAAM,MAAM,GAAG,c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