@gusto/embedded-react-sdk 0.20.0 → 0.22.0

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 (485) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +32 -17
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -0
  4. package/dist/UNSTABLE_Hooks.js +9 -0
  5. package/dist/UNSTABLE_Hooks.js.map +1 -0
  6. package/dist/assets/icons/coins-hand.svg.js +10 -0
  7. package/dist/assets/icons/coins-hand.svg.js.map +1 -0
  8. package/dist/assets/icons/icon-file-outline.svg.js +10 -0
  9. package/dist/assets/icons/icon-file-outline.svg.js.map +1 -0
  10. package/dist/assets/icons/icon-receipt-outline.svg.js +10 -0
  11. package/dist/assets/icons/icon-receipt-outline.svg.js.map +1 -0
  12. package/dist/components/Base/Base.d.ts +19 -4
  13. package/dist/components/Base/Base.js +67 -61
  14. package/dist/components/Base/Base.js.map +1 -1
  15. package/dist/components/Base/index.d.ts +1 -1
  16. package/dist/components/Base/useBase.d.ts +1 -1
  17. package/dist/components/Base/useBase.js.map +1 -1
  18. package/dist/components/Base/useBaseSubmit.d.ts +10 -0
  19. package/dist/components/Base/useBaseSubmit.js +33 -0
  20. package/dist/components/Base/useBaseSubmit.js.map +1 -0
  21. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  22. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  23. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  24. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  25. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  26. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  27. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  28. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  29. package/dist/components/Common/Fields/TextAreaField/TextAreaField.d.ts +5 -0
  30. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +34 -0
  31. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -0
  32. package/dist/components/Common/Fields/TextAreaField/index.d.ts +3 -0
  33. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  34. package/dist/components/Common/Fieldset/Fieldset.js.map +1 -1
  35. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +10 -10
  36. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
  37. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.d.ts +1 -0
  38. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js +14 -0
  39. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js.map +1 -0
  40. package/dist/components/Common/FlowBreadcrumbs/index.d.ts +1 -0
  41. package/dist/components/Common/SignatureForm/SignatureForm.js +4 -2
  42. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  43. package/dist/components/Common/SignatureForm/SignatureFormActions.js +8 -6
  44. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  45. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -11
  46. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  47. package/dist/components/Common/UI/Alert/Alert.js +23 -22
  48. package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
  49. package/dist/components/Common/UI/Alert/AlertTypes.d.ts +4 -0
  50. package/dist/components/Common/UI/Alert/AlertTypes.js.map +1 -1
  51. package/dist/components/Common/UI/Badge/BadgeTypes.js.map +1 -1
  52. package/dist/components/Common/UI/Banner/BannerTypes.js.map +1 -1
  53. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  54. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  55. package/dist/components/Common/UI/Checkbox/CheckboxTypes.js.map +1 -1
  56. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.js.map +1 -1
  57. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +1 -1
  58. package/dist/components/Common/UI/DatePicker/DatePicker.d.ts +1 -1
  59. package/dist/components/Common/UI/DatePicker/DatePicker.js +38 -37
  60. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  61. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +7 -7
  62. package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +4 -0
  63. package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
  64. package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.js.map +1 -1
  65. package/dist/components/Common/UI/Modal/Modal.module.scss.js +17 -17
  66. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  67. package/dist/components/Common/UI/Radio/RadioTypes.js.map +1 -1
  68. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  69. package/dist/components/Common/UI/Select/Select.d.ts +1 -1
  70. package/dist/components/Common/UI/Select/Select.js +27 -26
  71. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  72. package/dist/components/Common/UI/Select/Select.module.scss.js +6 -6
  73. package/dist/components/Common/UI/Select/SelectTypes.d.ts +4 -0
  74. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  75. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  76. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  77. package/dist/components/Common/UI/TextArea/TextArea.d.ts +2 -0
  78. package/dist/components/Common/UI/TextArea/TextArea.js +79 -0
  79. package/dist/components/Common/UI/TextArea/TextArea.js.map +1 -0
  80. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +12 -0
  81. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js.map +1 -0
  82. package/dist/components/Common/UI/TextArea/TextAreaTypes.d.ts +37 -0
  83. package/dist/components/Common/UI/TextArea/TextAreaTypes.js +9 -0
  84. package/dist/components/Common/UI/TextArea/TextAreaTypes.js.map +1 -0
  85. package/dist/components/Common/UI/TextArea/index.d.ts +4 -0
  86. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  87. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -5
  88. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  89. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +5 -2
  90. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  91. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +4 -2
  92. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  93. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +8 -6
  94. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  95. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +14 -13
  96. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  97. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  98. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  99. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +4 -2
  100. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  101. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +11 -9
  102. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  103. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +9 -8
  104. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  105. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  106. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  107. package/dist/components/Company/AssignSignatory/TitleSelect.js +6 -4
  108. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  109. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  110. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  111. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +10 -9
  112. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  113. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +10 -8
  114. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  115. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  116. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  117. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -8
  118. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  119. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +10 -8
  120. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  121. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -4
  122. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  123. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +4 -2
  124. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  125. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +10 -8
  126. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  127. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  128. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  129. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +9 -7
  130. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  131. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  132. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  133. package/dist/components/Company/FederalTaxes/Actions.js +9 -7
  134. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  135. package/dist/components/Company/FederalTaxes/FederalTaxes.js +4 -2
  136. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  137. package/dist/components/Company/FederalTaxes/Form.js +4 -4
  138. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -9
  139. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  140. package/dist/components/Company/Industry/Actions.js +9 -7
  141. package/dist/components/Company/Industry/Actions.js.map +1 -1
  142. package/dist/components/Company/Industry/Context.js +6 -7
  143. package/dist/components/Company/Industry/Context.js.map +1 -1
  144. package/dist/components/Company/Industry/Edit.js +7 -4
  145. package/dist/components/Company/Industry/Edit.js.map +1 -1
  146. package/dist/components/Company/Locations/LocationForm/Actions.js +10 -8
  147. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  148. package/dist/components/Company/Locations/LocationForm/Form.js +6 -4
  149. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  150. package/dist/components/Company/Locations/LocationForm/LocationForm.js +10 -8
  151. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  152. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  153. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  154. package/dist/components/Company/Locations/LocationsList/Actions.js +8 -6
  155. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  156. package/dist/components/Company/Locations/LocationsList/List.js +16 -15
  157. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  158. package/dist/components/Company/Locations/LocationsList/LocationsList.js +3 -2
  159. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  160. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  161. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  162. package/dist/components/Company/OnboardingOverview/Completed.js +11 -10
  163. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  164. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +10 -9
  165. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  166. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +8 -6
  167. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  168. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  169. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  170. package/dist/components/Company/PaySchedule/PaySchedule.js +3 -2
  171. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  172. package/dist/components/Company/PaySchedule/_parts/Actions.js +11 -9
  173. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  174. package/dist/components/Company/PaySchedule/_parts/Head.js +9 -8
  175. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  176. package/dist/components/Company/PaySchedule/_parts/List.js +8 -8
  177. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
  178. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  179. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +4 -2
  180. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  181. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  182. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  183. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +4 -2
  184. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  185. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +4 -2
  186. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  187. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  188. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  189. package/dist/components/Contractor/Address/Address.js +5 -3
  190. package/dist/components/Contractor/Address/Address.js.map +1 -1
  191. package/dist/components/Contractor/Address/Form.js +11 -9
  192. package/dist/components/Contractor/Address/Form.js.map +1 -1
  193. package/dist/components/Contractor/Address/useAddress.js +5 -6
  194. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  195. package/dist/components/Contractor/ContractorList/index.js +4 -4
  196. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +13 -10
  197. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  198. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +5 -3
  199. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  200. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.d.ts +7 -0
  201. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +48 -0
  202. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -0
  203. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +14 -0
  204. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +109 -0
  205. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -0
  206. package/dist/components/Contractor/Payments/Detail/DetailPresentation.d.ts +19 -0
  207. package/dist/components/Contractor/Payments/EditPayment/EditPayment.d.ts +7 -0
  208. package/dist/components/Contractor/Payments/EditPayment/EditPayment.js +34 -0
  209. package/dist/components/Contractor/Payments/EditPayment/EditPayment.js.map +1 -0
  210. package/dist/components/Contractor/Payments/EditPayment/EditPaymentPresentation.d.ts +6 -0
  211. package/dist/components/Contractor/Payments/EditPayment/EditPaymentPresentation.js +84 -0
  212. package/dist/components/Contractor/Payments/EditPayment/EditPaymentPresentation.js.map +1 -0
  213. package/dist/components/Contractor/Payments/Overview/Overview.d.ts +7 -0
  214. package/dist/components/Contractor/Payments/Overview/Overview.js +72 -0
  215. package/dist/components/Contractor/Payments/Overview/Overview.js.map +1 -0
  216. package/dist/components/Contractor/Payments/Overview/OverviewPresentation.d.ts +18 -0
  217. package/dist/components/Contractor/Payments/Overview/OverviewPresentation.js +131 -0
  218. package/dist/components/Contractor/Payments/Overview/OverviewPresentation.js.map +1 -0
  219. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.d.ts +2 -0
  220. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js +26 -0
  221. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js.map +1 -0
  222. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +15 -0
  223. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +30 -0
  224. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -0
  225. package/dist/components/Contractor/Payments/PaymentFlow/index.d.ts +3 -0
  226. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +8 -0
  227. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +158 -0
  228. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -0
  229. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.d.ts +7 -0
  230. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +29 -0
  231. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -0
  232. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +18 -0
  233. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +108 -0
  234. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -0
  235. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js +10 -0
  236. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js.map +1 -0
  237. package/dist/components/Contractor/Payments/types.d.ts +4 -0
  238. package/dist/components/Contractor/Profile/ContractorProfileForm.js +11 -11
  239. package/dist/components/Contractor/Profile/useContractorProfile.d.ts +26 -26
  240. package/dist/components/Contractor/Profile/useContractorProfile.js +2 -3
  241. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  242. package/dist/components/Contractor/Submit/Submit.js +20 -19
  243. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  244. package/dist/components/Contractor/index.d.ts +1 -0
  245. package/dist/components/Contractor/index.js +4 -2
  246. package/dist/components/Contractor/index.js.map +1 -1
  247. package/dist/components/Employee/Compensation/Actions.js +14 -13
  248. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  249. package/dist/components/Employee/Compensation/List.js +23 -22
  250. package/dist/components/Employee/Compensation/List.js.map +1 -1
  251. package/dist/components/Employee/Deductions/Deductions.d.ts +1 -1
  252. package/dist/components/Employee/Deductions/Deductions.js +10 -10
  253. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  254. package/dist/components/Employee/Deductions/DeductionsComponents.d.ts +2 -0
  255. package/dist/components/Employee/Deductions/DeductionsComponents.js +6 -6
  256. package/dist/components/Employee/Deductions/DeductionsComponents.js.map +1 -1
  257. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +220 -0
  258. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -0
  259. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js +8 -0
  260. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js.map +1 -0
  261. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.d.ts +2 -2
  262. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +163 -0
  263. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -0
  264. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.d.ts +0 -34
  265. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +121 -125
  266. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  267. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js +14 -0
  268. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js.map +1 -0
  269. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +56 -0
  270. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +158 -0
  271. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -0
  272. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +55 -55
  273. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  274. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.d.ts +6 -0
  275. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +54 -0
  276. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -0
  277. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js +14 -0
  278. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js.map +1 -0
  279. package/dist/components/Employee/Deductions/stateMachine.js +49 -29
  280. package/dist/components/Employee/Deductions/stateMachine.js.map +1 -1
  281. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +8 -6
  282. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  283. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +4 -2
  284. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  285. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
  286. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  287. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  288. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  289. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +4 -2
  290. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  291. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  292. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  293. package/dist/components/Employee/EmployeeList/Actions.js +8 -6
  294. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  295. package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -2
  296. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  297. package/dist/components/Employee/EmployeeList/Head.js +6 -5
  298. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  299. package/dist/components/Employee/EmployeeList/List.js +14 -14
  300. package/dist/components/Employee/EmployeeList/useEmployeeList.js +3 -4
  301. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  302. package/dist/components/Employee/FederalTaxes/Actions.js +9 -7
  303. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  304. package/dist/components/Employee/FederalTaxes/FederalForm.d.ts +22 -7
  305. package/dist/components/Employee/FederalTaxes/FederalForm.js +85 -29
  306. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  307. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +62 -46
  308. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
  309. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
  310. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  311. package/dist/components/Employee/Landing/Landing.js +3 -2
  312. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  313. package/dist/components/Employee/PaymentMethod/Actions.js +8 -6
  314. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  315. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -3
  316. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  317. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +12 -11
  318. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  319. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +8 -6
  320. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  321. package/dist/components/Employee/PaymentMethod/Split.js +5 -5
  322. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
  323. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  324. package/dist/components/Employee/Profile/Actions.js +9 -7
  325. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  326. package/dist/components/Employee/Profile/AdminPersonalDetails.d.ts +6 -6
  327. package/dist/components/Employee/Profile/AdminPersonalDetails.js +10 -8
  328. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  329. package/dist/components/Employee/Profile/HomeAddress.js +9 -8
  330. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  331. package/dist/components/Employee/Profile/PersonalDetailsInputs.d.ts +2 -2
  332. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +26 -23
  333. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  334. package/dist/components/Employee/Profile/useProfile.js +3 -4
  335. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  336. package/dist/components/Employee/StateTaxes/Actions.js +10 -8
  337. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  338. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
  339. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  340. package/dist/components/Employee/Taxes/Actions.js +10 -8
  341. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  342. package/dist/components/Employee/Taxes/FederalForm.d.ts +22 -7
  343. package/dist/components/Employee/Taxes/FederalForm.js +85 -29
  344. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  345. package/dist/components/Employee/Taxes/Taxes.js +97 -81
  346. package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
  347. package/dist/components/Employee/Taxes/useTaxes.js +3 -4
  348. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  349. package/dist/components/Flow/Flow.js +14 -13
  350. package/dist/components/Flow/Flow.js.map +1 -1
  351. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.d.ts +1 -1
  352. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +63 -34
  353. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  354. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.module.scss.js +8 -0
  355. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.module.scss.js.map +1 -0
  356. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.d.ts +2 -0
  357. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +71 -54
  358. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  359. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.d.ts +23 -0
  360. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.js +27 -15
  361. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.js.map +1 -1
  362. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.d.ts +25 -2
  363. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +152 -23
  364. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  365. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.module.scss.js +10 -0
  366. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.module.scss.js.map +1 -0
  367. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.d.ts +9 -1
  368. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +194 -22
  369. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  370. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.module.scss.js +18 -0
  371. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.module.scss.js.map +1 -0
  372. package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.d.ts +10 -2
  373. package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.js +44 -30
  374. package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.js.map +1 -1
  375. package/dist/components/Payroll/ConfirmWireDetails/index.d.ts +1 -0
  376. package/dist/components/Payroll/ConfirmWireDetails/types.d.ts +5 -0
  377. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +3 -2
  378. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  379. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +7 -6
  380. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  381. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +15 -15
  382. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  383. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
  384. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  385. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +32 -40
  386. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  387. package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +0 -12
  388. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +44 -52
  389. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  390. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +9 -6
  391. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +104 -101
  392. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  393. package/dist/components/Payroll/PayrollList/PayrollList.js +58 -59
  394. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  395. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +4 -6
  396. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +77 -69
  397. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  398. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +127 -103
  399. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  400. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +254 -185
  401. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  402. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchThresholdExceeded.js +3 -2
  403. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchThresholdExceeded.js.map +1 -1
  404. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +1 -1
  405. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.d.ts +7 -0
  406. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.js +19 -0
  407. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.js.map +1 -0
  408. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.module.scss.js +10 -0
  409. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.module.scss.js.map +1 -0
  410. package/dist/components/Payroll/PayrollStatusBadges/index.d.ts +4 -0
  411. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.d.ts +33 -0
  412. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js +161 -0
  413. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js.map +1 -0
  414. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.d.ts +3 -0
  415. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.js +17 -0
  416. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.js.map +1 -0
  417. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.test.d.ts +1 -0
  418. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +6 -0
  419. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +70 -0
  420. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +1 -0
  421. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +7 -0
  422. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +6 -0
  423. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +1 -0
  424. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +9 -0
  425. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +40 -0
  426. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +1 -0
  427. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +5 -0
  428. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +2 -0
  429. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +12 -0
  430. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +1 -0
  431. package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +2 -0
  432. package/dist/components/Payroll/helpers.d.ts +0 -5
  433. package/dist/components/Payroll/helpers.js +106 -112
  434. package/dist/components/Payroll/helpers.js.map +1 -1
  435. package/dist/components/Payroll/usePreparedPayrollData.js +5 -6
  436. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  437. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +48 -46
  438. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  439. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  440. package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
  441. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  442. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +7 -5
  443. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  444. package/dist/helpers/dateFormatting.d.ts +9 -0
  445. package/dist/helpers/dateFormatting.js +65 -52
  446. package/dist/helpers/dateFormatting.js.map +1 -1
  447. package/dist/i18n/I18n.js +3 -3
  448. package/dist/i18n/I18n.js.map +1 -1
  449. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +34 -0
  450. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -0
  451. package/dist/i18n/en/Contractor.Payments.EditPayment.json.js +36 -0
  452. package/dist/i18n/en/Contractor.Payments.EditPayment.json.js.map +1 -0
  453. package/dist/i18n/en/Contractor.Payments.Overview.json.js +34 -0
  454. package/dist/i18n/en/Contractor.Payments.Overview.json.js.map +1 -0
  455. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +34 -0
  456. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js.map +1 -0
  457. package/dist/i18n/en/ContractorPayment.ContractorPaymentDetail.json.js +24 -0
  458. package/dist/i18n/en/ContractorPayment.ContractorPaymentDetail.json.js.map +1 -0
  459. package/dist/i18n/en/Employee.Deductions.json.js +58 -46
  460. package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
  461. package/dist/i18n/en/Employee.FederalTaxes.json.js +49 -41
  462. package/dist/i18n/en/Employee.FederalTaxes.json.js.map +1 -1
  463. package/dist/i18n/en/Employee.Taxes.json.js +53 -45
  464. package/dist/i18n/en/Employee.Taxes.json.js.map +1 -1
  465. package/dist/i18n/en/Payroll.Common.json.js +8 -0
  466. package/dist/i18n/en/Payroll.Common.json.js.map +1 -0
  467. package/dist/i18n/en/Payroll.ConfirmWireDetailsForm.json.js +25 -5
  468. package/dist/i18n/en/Payroll.ConfirmWireDetailsForm.json.js.map +1 -1
  469. package/dist/i18n/en/Payroll.PayrollList.json.js +14 -16
  470. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  471. package/dist/i18n/en/Payroll.PayrollOverview.json.js +34 -30
  472. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  473. package/dist/i18n/en/Payroll.WireInstructions.json.js +22 -6
  474. package/dist/i18n/en/Payroll.WireInstructions.json.js.map +1 -1
  475. package/dist/shared/constants.d.ts +18 -0
  476. package/dist/shared/constants.js +66 -55
  477. package/dist/shared/constants.js.map +1 -1
  478. package/dist/style.css +1 -1
  479. package/dist/types/i18next.d.ts +236 -15
  480. package/package.json +19 -15
  481. package/dist/components/Employee/Deductions/DeductionsForm/UNSTABLE_DeductionsForm.d.ts +0 -7
  482. package/dist/components/Employee/Deductions/EmptyState/EmptyState.d.ts +0 -6
  483. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.d.ts +0 -15
  484. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +0 -49
  485. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInputField.js","sources":["../../../../../src/components/Common/Fields/NumberInputField/NumberInputField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport interface NumberInputFieldProps\n extends Omit<NumberInputProps, 'name' | 'value' | 'isInvalid'>,\n UseFieldProps<number> {}\n\nexport const NumberInputField: React.FC<NumberInputFieldProps> = ({\n rules: providedRules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n ...numberInputProps\n}: NumberInputFieldProps) => {\n const Components = useComponentContext()\n const rules = {\n validate: (value: number) => {\n if (isRequired && isNaN(value)) {\n return false\n }\n return true\n },\n ...providedRules,\n }\n\n const fieldProps = useField({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n return <Components.NumberInput {...numberInputProps} {...fieldProps} />\n}\n"],"names":["NumberInputField","providedRules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","numberInputProps","Components","useComponentContext","rules","value","fieldProps","useField"],"mappings":";;;AAQO,MAAMA,IAAoD,CAAC;AAAA,EAChE,OAAOC;AAAA,EACP,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAA6B;AAC3B,QAAMC,IAAaC,EAAA,GACbC,IAAQ;AAAA,IACZ,UAAU,CAACC,MACL,EAAAV,KAAc,MAAMU,CAAK;AAAA,IAK/B,GAAGd;AAAA,EAAA,GAGCe,IAAaC,EAAS;AAAA,IAC1B,MAAAd;AAAA,IACA,OAAAW;AAAA,IACA,cAAAZ;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD;AAED,2BAAQE,EAAW,aAAX,EAAwB,GAAGD,GAAmB,GAAGK,GAAY;AACvE;"}
1
+ {"version":3,"file":"NumberInputField.js","sources":["../../../../../src/components/Common/Fields/NumberInputField/NumberInputField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport interface NumberInputFieldProps\n extends Omit<NumberInputProps, 'name' | 'value' | 'isInvalid'>, UseFieldProps<number> {}\n\nexport const NumberInputField: React.FC<NumberInputFieldProps> = ({\n rules: providedRules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n ...numberInputProps\n}: NumberInputFieldProps) => {\n const Components = useComponentContext()\n const rules = {\n validate: (value: number) => {\n if (isRequired && isNaN(value)) {\n return false\n }\n return true\n },\n ...providedRules,\n }\n\n const fieldProps = useField({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n return <Components.NumberInput {...numberInputProps} {...fieldProps} />\n}\n"],"names":["NumberInputField","providedRules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","numberInputProps","Components","useComponentContext","rules","value","fieldProps","useField"],"mappings":";;;AAOO,MAAMA,IAAoD,CAAC;AAAA,EAChE,OAAOC;AAAA,EACP,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAA6B;AAC3B,QAAMC,IAAaC,EAAA,GACbC,IAAQ;AAAA,IACZ,UAAU,CAACC,MACL,EAAAV,KAAc,MAAMU,CAAK;AAAA,IAK/B,GAAGd;AAAA,EAAA,GAGCe,IAAaC,EAAS;AAAA,IAC1B,MAAAd;AAAA,IACA,OAAAW;AAAA,IACA,cAAAZ;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD;AAED,2BAAQE,EAAW,aAAX,EAAwB,GAAGD,GAAmB,GAAGK,GAAY;AACvE;"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroupField.js","sources":["../../../../../src/components/Common/Fields/RadioGroupField/RadioGroupField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type {\n RadioGroupProps,\n RadioGroupOption,\n} from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport {\n useStringifyGenericFieldValue,\n type OptionWithGenericValue,\n} from '@/components/Common/Fields/hooks/useStringifyGenericFieldValue'\n\ntype GenericRadioGroupOption<TValue> = OptionWithGenericValue<TValue, RadioGroupOption>\n\nexport interface RadioGroupFieldProps<TValue>\n extends Omit<RadioGroupProps, 'value' | 'onChange' | 'options' | 'isInvalid' | 'defaultValue'>,\n UseFieldProps<TValue> {\n options: GenericRadioGroupOption<TValue>[]\n convertValueToString?: (value: TValue) => string\n}\n\nexport const RadioGroupField = <TValue = string,>({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange: onChangeFromProps,\n transform,\n options,\n convertValueToString,\n description,\n onBlur,\n inputRef,\n ...radioGroupProps\n}: RadioGroupFieldProps<TValue>) => {\n const Components = useComponentContext()\n const { value, onChange, ...fieldProps } = useField<TValue>({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange: onChangeFromProps,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n const stringFieldProps = useStringifyGenericFieldValue<TValue, RadioGroupOption>({\n options,\n value,\n onChange,\n convertValueToString,\n })\n\n return <Components.RadioGroup {...radioGroupProps} {...fieldProps} {...stringFieldProps} />\n}\n"],"names":["RadioGroupField","rules","defaultValue","name","errorMessage","isRequired","onChangeFromProps","transform","options","convertValueToString","description","onBlur","inputRef","radioGroupProps","Components","useComponentContext","value","onChange","fieldProps","useField","stringFieldProps","useStringifyGenericFieldValue","jsx"],"mappings":";;;;AAoBO,MAAMA,IAAkB,CAAmB;AAAA,EAChD,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAUC;AAAA,EACV,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAoC;AAClC,QAAMC,IAAaC,EAAA,GACb,EAAE,OAAAC,GAAO,UAAAC,GAAU,GAAGC,EAAA,IAAeC,EAAiB;AAAA,IAC1D,MAAAhB;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAUC;AAAA,IACV,WAAAC;AAAA,IACA,aAAAG;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD,GAEKQ,IAAmBC,EAAwD;AAAA,IAC/E,SAAAb;AAAA,IACA,OAAAQ;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAR;AAAA,EAAA,CACD;AAED,SAAO,gBAAAa,EAACR,EAAW,YAAX,EAAuB,GAAGD,GAAkB,GAAGK,GAAa,GAAGE,GAAkB;AAC3F;"}
1
+ {"version":3,"file":"RadioGroupField.js","sources":["../../../../../src/components/Common/Fields/RadioGroupField/RadioGroupField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type {\n RadioGroupProps,\n RadioGroupOption,\n} from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport {\n useStringifyGenericFieldValue,\n type OptionWithGenericValue,\n} from '@/components/Common/Fields/hooks/useStringifyGenericFieldValue'\n\ntype GenericRadioGroupOption<TValue> = OptionWithGenericValue<TValue, RadioGroupOption>\n\nexport interface RadioGroupFieldProps<TValue>\n extends\n Omit<RadioGroupProps, 'value' | 'onChange' | 'options' | 'isInvalid' | 'defaultValue'>,\n UseFieldProps<TValue> {\n options: GenericRadioGroupOption<TValue>[]\n convertValueToString?: (value: TValue) => string\n}\n\nexport const RadioGroupField = <TValue = string,>({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange: onChangeFromProps,\n transform,\n options,\n convertValueToString,\n description,\n onBlur,\n inputRef,\n ...radioGroupProps\n}: RadioGroupFieldProps<TValue>) => {\n const Components = useComponentContext()\n const { value, onChange, ...fieldProps } = useField<TValue>({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange: onChangeFromProps,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n const stringFieldProps = useStringifyGenericFieldValue<TValue, RadioGroupOption>({\n options,\n value,\n onChange,\n convertValueToString,\n })\n\n return <Components.RadioGroup {...radioGroupProps} {...fieldProps} {...stringFieldProps} />\n}\n"],"names":["RadioGroupField","rules","defaultValue","name","errorMessage","isRequired","onChangeFromProps","transform","options","convertValueToString","description","onBlur","inputRef","radioGroupProps","Components","useComponentContext","value","onChange","fieldProps","useField","stringFieldProps","useStringifyGenericFieldValue","jsx"],"mappings":";;;;AAqBO,MAAMA,IAAkB,CAAmB;AAAA,EAChD,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAUC;AAAA,EACV,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAoC;AAClC,QAAMC,IAAaC,EAAA,GACb,EAAE,OAAAC,GAAO,UAAAC,GAAU,GAAGC,EAAA,IAAeC,EAAiB;AAAA,IAC1D,MAAAhB;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAUC;AAAA,IACV,WAAAC;AAAA,IACA,aAAAG;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD,GAEKQ,IAAmBC,EAAwD;AAAA,IAC/E,SAAAb;AAAA,IACA,OAAAQ;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAR;AAAA,EAAA,CACD;AAED,SAAO,gBAAAa,EAACR,EAAW,YAAX,EAAuB,GAAGD,GAAkB,GAAGK,GAAa,GAAGE,GAAkB;AAC3F;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectField.js","sources":["../../../../../src/components/Common/Fields/SelectField/SelectField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { SelectOption, SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport {\n useStringifyGenericFieldValue,\n type OptionWithGenericValue,\n} from '@/components/Common/Fields/hooks/useStringifyGenericFieldValue'\n\ntype GenericSelectOption<TValue> = OptionWithGenericValue<TValue, SelectOption>\n\nexport interface SelectFieldProps<TValue>\n extends Omit<SelectProps, 'name' | 'value' | 'onChange' | 'options' | 'isInvalid'>,\n UseFieldProps<TValue, HTMLButtonElement> {\n options: GenericSelectOption<TValue>[]\n convertValueToString?: (value: TValue) => string\n}\n\nexport const SelectField = <TValue = string,>({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange: onChangeFromProps,\n transform,\n options,\n convertValueToString,\n description,\n onBlur,\n inputRef,\n ...selectProps\n}: SelectFieldProps<TValue>) => {\n const Components = useComponentContext()\n const { value, onChange, ...fieldProps } = useField<TValue, HTMLButtonElement>({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange: onChangeFromProps,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n const stringFieldProps = useStringifyGenericFieldValue<TValue, SelectOption>({\n options,\n value,\n onChange,\n convertValueToString,\n })\n\n return <Components.Select {...selectProps} {...fieldProps} {...stringFieldProps} />\n}\n"],"names":["SelectField","rules","defaultValue","name","errorMessage","isRequired","onChangeFromProps","transform","options","convertValueToString","description","onBlur","inputRef","selectProps","Components","useComponentContext","value","onChange","fieldProps","useField","stringFieldProps","useStringifyGenericFieldValue","jsx"],"mappings":";;;;AAiBO,MAAMA,IAAc,CAAmB;AAAA,EAC5C,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAUC;AAAA,EACV,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAgC;AAC9B,QAAMC,IAAaC,EAAA,GACb,EAAE,OAAAC,GAAO,UAAAC,GAAU,GAAGC,EAAA,IAAeC,EAAoC;AAAA,IAC7E,MAAAhB;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAUC;AAAA,IACV,WAAAC;AAAA,IACA,aAAAG;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD,GAEKQ,IAAmBC,EAAoD;AAAA,IAC3E,SAAAb;AAAA,IACA,OAAAQ;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAR;AAAA,EAAA,CACD;AAED,SAAO,gBAAAa,EAACR,EAAW,QAAX,EAAmB,GAAGD,GAAc,GAAGK,GAAa,GAAGE,GAAkB;AACnF;"}
1
+ {"version":3,"file":"SelectField.js","sources":["../../../../../src/components/Common/Fields/SelectField/SelectField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { SelectOption, SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport {\n useStringifyGenericFieldValue,\n type OptionWithGenericValue,\n} from '@/components/Common/Fields/hooks/useStringifyGenericFieldValue'\n\ntype GenericSelectOption<TValue> = OptionWithGenericValue<TValue, SelectOption>\n\nexport interface SelectFieldProps<TValue>\n extends\n Omit<SelectProps, 'name' | 'value' | 'onChange' | 'options' | 'isInvalid'>,\n UseFieldProps<TValue, HTMLButtonElement> {\n options: GenericSelectOption<TValue>[]\n convertValueToString?: (value: TValue) => string\n}\n\nexport const SelectField = <TValue = string,>({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange: onChangeFromProps,\n transform,\n options,\n convertValueToString,\n description,\n onBlur,\n inputRef,\n ...selectProps\n}: SelectFieldProps<TValue>) => {\n const Components = useComponentContext()\n const { value, onChange, ...fieldProps } = useField<TValue, HTMLButtonElement>({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange: onChangeFromProps,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n const stringFieldProps = useStringifyGenericFieldValue<TValue, SelectOption>({\n options,\n value,\n onChange,\n convertValueToString,\n })\n\n return <Components.Select {...selectProps} {...fieldProps} {...stringFieldProps} />\n}\n"],"names":["SelectField","rules","defaultValue","name","errorMessage","isRequired","onChangeFromProps","transform","options","convertValueToString","description","onBlur","inputRef","selectProps","Components","useComponentContext","value","onChange","fieldProps","useField","stringFieldProps","useStringifyGenericFieldValue","jsx"],"mappings":";;;;AAkBO,MAAMA,IAAc,CAAmB;AAAA,EAC5C,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAUC;AAAA,EACV,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAgC;AAC9B,QAAMC,IAAaC,EAAA,GACb,EAAE,OAAAC,GAAO,UAAAC,GAAU,GAAGC,EAAA,IAAeC,EAAoC;AAAA,IAC7E,MAAAhB;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAUC;AAAA,IACV,WAAAC;AAAA,IACA,aAAAG;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD,GAEKQ,IAAmBC,EAAoD;AAAA,IAC3E,SAAAb;AAAA,IACA,OAAAQ;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAR;AAAA,EAAA,CACD;AAED,SAAO,gBAAAa,EAACR,EAAW,QAAX,EAAmB,GAAGD,GAAc,GAAGK,GAAa,GAAGE,GAAkB;AACnF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchField.js","sources":["../../../../../src/components/Common/Fields/SwitchField/SwitchField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nexport interface SwitchFieldProps\n extends Omit<SwitchProps, 'name' | 'checked' | 'onChange' | 'isInvalid'>,\n UseFieldProps<boolean> {}\n\nexport const SwitchField: React.FC<SwitchFieldProps> = ({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n ...switchProps\n}: SwitchFieldProps) => {\n const Components = useComponentContext()\n const fieldProps = useField({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n return <Components.Switch {...switchProps} {...fieldProps} />\n}\n"],"names":["SwitchField","rules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","switchProps","Components","useComponentContext","fieldProps","useField"],"mappings":";;;AAOO,MAAMA,IAA0C,CAAC;AAAA,EACtD,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAwB;AACtB,QAAMC,IAAaC,EAAA,GACbC,IAAaC,EAAS;AAAA,IAC1B,MAAAZ;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD;AAED,2BAAQE,EAAW,QAAX,EAAmB,GAAGD,GAAc,GAAGG,GAAY;AAC7D;"}
1
+ {"version":3,"file":"SwitchField.js","sources":["../../../../../src/components/Common/Fields/SwitchField/SwitchField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nexport interface SwitchFieldProps\n extends\n Omit<SwitchProps, 'name' | 'checked' | 'onChange' | 'isInvalid'>,\n UseFieldProps<boolean> {}\n\nexport const SwitchField: React.FC<SwitchFieldProps> = ({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n ...switchProps\n}: SwitchFieldProps) => {\n const Components = useComponentContext()\n const fieldProps = useField({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n return <Components.Switch {...switchProps} {...fieldProps} />\n}\n"],"names":["SwitchField","rules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","switchProps","Components","useComponentContext","fieldProps","useField"],"mappings":";;;AAQO,MAAMA,IAA0C,CAAC;AAAA,EACtD,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAwB;AACtB,QAAMC,IAAaC,EAAA,GACbC,IAAaC,EAAS;AAAA,IAC1B,MAAAZ;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD;AAED,2BAAQE,EAAW,QAAX,EAAmB,GAAGD,GAAc,GAAGG,GAAY;AAC7D;"}
@@ -0,0 +1,5 @@
1
+ import { UseFieldProps } from '../hooks/useField';
2
+ import { TextAreaProps } from '../../UI/TextArea/TextAreaTypes';
3
+ export interface TextAreaFieldProps extends Omit<TextAreaProps, 'name' | 'value' | 'isInvalid'>, UseFieldProps<string, HTMLTextAreaElement> {
4
+ }
5
+ export declare const TextAreaField: React.FC<TextAreaFieldProps>;
@@ -0,0 +1,34 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useField as u } from "../hooks/useField.js";
3
+ import { useComponentContext as C } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
4
+ const T = ({
5
+ rules: o,
6
+ defaultValue: e,
7
+ name: t,
8
+ errorMessage: r,
9
+ isRequired: n,
10
+ onChange: m,
11
+ transform: s,
12
+ description: p,
13
+ onBlur: i,
14
+ inputRef: x,
15
+ ...f
16
+ }) => {
17
+ const c = C(), d = u({
18
+ name: t,
19
+ rules: o,
20
+ defaultValue: e,
21
+ errorMessage: r,
22
+ isRequired: n,
23
+ onChange: m,
24
+ transform: s,
25
+ description: p,
26
+ onBlur: i,
27
+ inputRef: x
28
+ });
29
+ return /* @__PURE__ */ l(c.TextArea, { ...f, ...d });
30
+ };
31
+ export {
32
+ T as TextAreaField
33
+ };
34
+ //# sourceMappingURL=TextAreaField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextAreaField.js","sources":["../../../../../src/components/Common/Fields/TextAreaField/TextAreaField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { TextAreaProps } from '@/components/Common/UI/TextArea/TextAreaTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport interface TextAreaFieldProps\n extends\n Omit<TextAreaProps, 'name' | 'value' | 'isInvalid'>,\n UseFieldProps<string, HTMLTextAreaElement> {}\n\nexport const TextAreaField: React.FC<TextAreaFieldProps> = ({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n ...textAreaProps\n}: TextAreaFieldProps) => {\n const Components = useComponentContext()\n const fieldProps = useField({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n return <Components.TextArea {...textAreaProps} {...fieldProps} />\n}\n"],"names":["TextAreaField","rules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","textAreaProps","Components","useComponentContext","fieldProps","useField"],"mappings":";;;AASO,MAAMA,IAA8C,CAAC;AAAA,EAC1D,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAA0B;AACxB,QAAMC,IAAaC,EAAA,GACbC,IAAaC,EAAS;AAAA,IAC1B,MAAAZ;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD;AAED,2BAAQE,EAAW,UAAX,EAAqB,GAAGD,GAAgB,GAAGG,GAAY;AACjE;"}
@@ -0,0 +1,3 @@
1
+ import "./types/i18next.d.ts"
2
+ export { TextAreaField } from './TextAreaField';
3
+ export type { TextAreaFieldProps } from './TextAreaField';
@@ -1 +1 @@
1
- {"version":3,"file":"TextInputField.js","sources":["../../../../../src/components/Common/Fields/TextInputField/TextInputField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport interface TextInputFieldProps\n extends Omit<TextInputProps, 'name' | 'value' | 'isInvalid'>,\n UseFieldProps {}\n\nexport const TextInputField: React.FC<TextInputFieldProps> = ({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n ...textInputProps\n}: TextInputFieldProps) => {\n const Components = useComponentContext()\n const fieldProps = useField({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n return <Components.TextInput {...textInputProps} {...fieldProps} />\n}\n"],"names":["TextInputField","rules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","textInputProps","Components","useComponentContext","fieldProps","useField"],"mappings":";;;AAQO,MAAMA,IAAgD,CAAC;AAAA,EAC5D,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAA2B;AACzB,QAAMC,IAAaC,EAAA,GACbC,IAAaC,EAAS;AAAA,IAC1B,MAAAZ;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD;AAED,2BAAQE,EAAW,WAAX,EAAsB,GAAGD,GAAiB,GAAGG,GAAY;AACnE;"}
1
+ {"version":3,"file":"TextInputField.js","sources":["../../../../../src/components/Common/Fields/TextInputField/TextInputField.tsx"],"sourcesContent":["import { useField, type UseFieldProps } from '@/components/Common/Fields/hooks/useField'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport interface TextInputFieldProps\n extends Omit<TextInputProps, 'name' | 'value' | 'isInvalid'>, UseFieldProps {}\n\nexport const TextInputField: React.FC<TextInputFieldProps> = ({\n rules,\n defaultValue,\n name,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n ...textInputProps\n}: TextInputFieldProps) => {\n const Components = useComponentContext()\n const fieldProps = useField({\n name,\n rules,\n defaultValue,\n errorMessage,\n isRequired,\n onChange,\n transform,\n description,\n onBlur,\n inputRef,\n })\n\n return <Components.TextInput {...textInputProps} {...fieldProps} />\n}\n"],"names":["TextInputField","rules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","textInputProps","Components","useComponentContext","fieldProps","useField"],"mappings":";;;AAOO,MAAMA,IAAgD,CAAC;AAAA,EAC5D,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAA2B;AACzB,QAAMC,IAAaC,EAAA,GACbC,IAAaC,EAAS;AAAA,IAC1B,MAAAZ;AAAA,IACA,OAAAF;AAAA,IACA,cAAAC;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,CACD;AAED,2BAAQE,EAAW,WAAX,EAAsB,GAAGD,GAAiB,GAAGG,GAAY;AACnE;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Fieldset.js","sources":["../../../../src/components/Common/Fieldset/Fieldset.tsx"],"sourcesContent":["import { useId } from 'react'\nimport classNames from 'classnames'\nimport { FieldDescription } from '../FieldDescription'\nimport { FieldErrorMessage } from '../FieldErrorMessage'\nimport { FieldCaption } from '../FieldCaption'\nimport type { SharedFieldLayoutProps } from '../FieldLayout/FieldLayoutTypes'\nimport styles from './Fieldset.module.scss'\nimport { getDataProps } from '@/helpers/getDataProps'\n\nexport interface FieldsetProps\n extends Omit<SharedFieldLayoutProps, 'label' | 'shouldVisuallyHideLabel'> {\n children: React.ReactNode\n description?: React.ReactNode\n errorMessage?: string\n isRequired?: boolean\n legend: React.ReactNode\n shouldVisuallyHideLegend?: boolean\n className?: string\n}\n\nexport const Fieldset: React.FC<FieldsetProps> = ({\n children,\n description,\n errorMessage,\n isRequired = false,\n legend,\n shouldVisuallyHideLegend = false,\n className,\n ...props\n}: FieldsetProps) => {\n const generatedErrorMessageId = useId()\n const errorMessageId = `error-message-${generatedErrorMessageId}`\n\n return (\n <fieldset\n className={classNames(styles.root, className)}\n aria-describedby={errorMessage ? errorMessageId : undefined}\n {...getDataProps(props)}\n >\n <div\n className={classNames(styles.legendAndDescription, {\n [styles.withVisibleLegend as string]: !shouldVisuallyHideLegend,\n [styles.withDescription as string]: Boolean(description),\n })}\n >\n <FieldCaption\n as=\"legend\"\n isRequired={isRequired}\n isVisuallyHidden={shouldVisuallyHideLegend}\n >\n {legend}\n </FieldCaption>\n <FieldDescription>{description}</FieldDescription>\n </div>\n {children}\n <FieldErrorMessage\n id={errorMessageId}\n className={styles.errorMessage}\n aria-live=\"polite\"\n role=\"alert\"\n >\n {errorMessage}\n </FieldErrorMessage>\n </fieldset>\n )\n}\n"],"names":["Fieldset","children","description","errorMessage","isRequired","legend","shouldVisuallyHideLegend","className","props","errorMessageId","useId","jsxs","classNames","styles","getDataProps","jsx","FieldCaption","FieldDescription","FieldErrorMessage"],"mappings":";;;;;;;;AAoBO,MAAMA,IAAoC,CAAC;AAAA,EAChD,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,QAAAC;AAAA,EACA,0BAAAC,IAA2B;AAAA,EAC3B,WAAAC;AAAA,EACA,GAAGC;AACL,MAAqB;AAEnB,QAAMC,IAAiB,iBADSC,EAAA,CAC+B;AAE/D,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,MAAMN,CAAS;AAAA,MAC5C,oBAAkBJ,IAAeM,IAAiB;AAAA,MACjD,GAAGK,EAAaN,CAAK;AAAA,MAEtB,UAAA;AAAA,QAAA,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC,EAAWC,EAAO,sBAAsB;AAAA,cACjD,CAACA,EAAO,iBAA2B,GAAG,CAACP;AAAA,cACvC,CAACO,EAAO,eAAyB,GAAG,EAAQX;AAAA,YAAW,CACxD;AAAA,YAED,UAAA;AAAA,cAAA,gBAAAa;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,YAAAZ;AAAA,kBACA,kBAAkBE;AAAA,kBAEjB,UAAAD;AAAA,gBAAA;AAAA,cAAA;AAAA,cAEH,gBAAAU,EAACE,KAAkB,UAAAf,EAAA,CAAY;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAEhCD;AAAA,QACD,gBAAAc;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,IAAIT;AAAA,YACJ,WAAWI,EAAO;AAAA,YAClB,aAAU;AAAA,YACV,MAAK;AAAA,YAEJ,UAAAV;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"Fieldset.js","sources":["../../../../src/components/Common/Fieldset/Fieldset.tsx"],"sourcesContent":["import { useId } from 'react'\nimport classNames from 'classnames'\nimport { FieldDescription } from '../FieldDescription'\nimport { FieldErrorMessage } from '../FieldErrorMessage'\nimport { FieldCaption } from '../FieldCaption'\nimport type { SharedFieldLayoutProps } from '../FieldLayout/FieldLayoutTypes'\nimport styles from './Fieldset.module.scss'\nimport { getDataProps } from '@/helpers/getDataProps'\n\nexport interface FieldsetProps extends Omit<\n SharedFieldLayoutProps,\n 'label' | 'shouldVisuallyHideLabel'\n> {\n children: React.ReactNode\n description?: React.ReactNode\n errorMessage?: string\n isRequired?: boolean\n legend: React.ReactNode\n shouldVisuallyHideLegend?: boolean\n className?: string\n}\n\nexport const Fieldset: React.FC<FieldsetProps> = ({\n children,\n description,\n errorMessage,\n isRequired = false,\n legend,\n shouldVisuallyHideLegend = false,\n className,\n ...props\n}: FieldsetProps) => {\n const generatedErrorMessageId = useId()\n const errorMessageId = `error-message-${generatedErrorMessageId}`\n\n return (\n <fieldset\n className={classNames(styles.root, className)}\n aria-describedby={errorMessage ? errorMessageId : undefined}\n {...getDataProps(props)}\n >\n <div\n className={classNames(styles.legendAndDescription, {\n [styles.withVisibleLegend as string]: !shouldVisuallyHideLegend,\n [styles.withDescription as string]: Boolean(description),\n })}\n >\n <FieldCaption\n as=\"legend\"\n isRequired={isRequired}\n isVisuallyHidden={shouldVisuallyHideLegend}\n >\n {legend}\n </FieldCaption>\n <FieldDescription>{description}</FieldDescription>\n </div>\n {children}\n <FieldErrorMessage\n id={errorMessageId}\n className={styles.errorMessage}\n aria-live=\"polite\"\n role=\"alert\"\n >\n {errorMessage}\n </FieldErrorMessage>\n </fieldset>\n )\n}\n"],"names":["Fieldset","children","description","errorMessage","isRequired","legend","shouldVisuallyHideLegend","className","props","errorMessageId","useId","jsxs","classNames","styles","getDataProps","jsx","FieldCaption","FieldDescription","FieldErrorMessage"],"mappings":";;;;;;;;AAsBO,MAAMA,IAAoC,CAAC;AAAA,EAChD,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,QAAAC;AAAA,EACA,0BAAAC,IAA2B;AAAA,EAC3B,WAAAC;AAAA,EACA,GAAGC;AACL,MAAqB;AAEnB,QAAMC,IAAiB,iBADSC,EAAA,CAC+B;AAE/D,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,MAAMN,CAAS;AAAA,MAC5C,oBAAkBJ,IAAeM,IAAiB;AAAA,MACjD,GAAGK,EAAaN,CAAK;AAAA,MAEtB,UAAA;AAAA,QAAA,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC,EAAWC,EAAO,sBAAsB;AAAA,cACjD,CAACA,EAAO,iBAA2B,GAAG,CAACP;AAAA,cACvC,CAACO,EAAO,eAAyB,GAAG,EAAQX;AAAA,YAAW,CACxD;AAAA,YAED,UAAA;AAAA,cAAA,gBAAAa;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,YAAAZ;AAAA,kBACA,kBAAkBE;AAAA,kBAEjB,UAAAD;AAAA,gBAAA;AAAA,cAAA;AAAA,cAEH,gBAAAU,EAACE,KAAkB,UAAAf,EAAA,CAAY;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAEhCD;AAAA,QACD,gBAAAc;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,IAAIT;AAAA,YACJ,WAAWI,EAAO;AAAA,YAClB,aAAU;AAAA,YACV,MAAK;AAAA,YAEJ,UAAAV;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,4 +1,4 @@
1
- import { jsx as p } from "react/jsx-runtime";
1
+ import { jsx as l } from "react/jsx-runtime";
2
2
  import { useTranslation as h } from "react-i18next";
3
3
  import { useRef as C, useMemo as d } from "react";
4
4
  import { useComponentContext as u } from "../../../contexts/ComponentAdapter/useComponentContext.js";
@@ -9,15 +9,15 @@ import { useContainerBreakpoints as R } from "../../../hooks/useContainerBreakpo
9
9
  import { useDateFormatter as V } from "../../../hooks/useDateFormatter.js";
10
10
  function Y({
11
11
  breadcrumbs: a,
12
- currentBreadcrumbId: f,
12
+ currentBreadcrumbId: p,
13
13
  onEvent: s
14
14
  }) {
15
- const i = C(null), m = R({ ref: i }).length === 1, { Breadcrumbs: c } = u(), { locale: v } = g(), r = V(), l = a.reduce(
15
+ const i = C(null), f = R({ ref: i }).length === 1, { Breadcrumbs: m } = u(), { locale: c } = g(), r = V(), v = a.reduce(
16
16
  (t, e) => (e.namespace && t.push(e.namespace), t),
17
17
  []
18
18
  );
19
- k(l);
20
- const { t: o } = h(l), D = d(
19
+ k(v);
20
+ const { t: o } = h(), D = d(
21
21
  () => a.map((t) => {
22
22
  const e = t.variables ? {
23
23
  ...t.variables,
@@ -36,14 +36,14 @@ function Y({
36
36
  label: n
37
37
  };
38
38
  }),
39
- [a, o, v]
39
+ [a, o, c]
40
40
  );
41
- return /* @__PURE__ */ p("div", { ref: i, children: /* @__PURE__ */ p(
42
- c,
41
+ return /* @__PURE__ */ l("div", { ref: i, children: /* @__PURE__ */ l(
42
+ m,
43
43
  {
44
- isSmallContainer: m,
44
+ isSmallContainer: f,
45
45
  breadcrumbs: D,
46
- currentBreadcrumbId: f,
46
+ currentBreadcrumbId: p,
47
47
  onClick: (t) => {
48
48
  const e = a.find((n) => n.id === t);
49
49
  s && e && s(B.BREADCRUMB_NAVIGATE, {
@@ -1 +1 @@
1
- {"version":3,"file":"FlowBreadcrumbs.js","sources":["../../../../src/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.tsx"],"sourcesContent":["import type { CustomTypeOptions } from 'i18next'\nimport { useTranslation } from 'react-i18next'\nimport { useMemo, useRef } from 'react'\nimport type { FlowBreadcrumbsProps } from './FlowBreadcrumbsTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { componentEvents } from '@/shared/constants'\nimport { useI18n } from '@/i18n/I18n'\nimport { useLocale } from '@/contexts/LocaleProvider/useLocale'\nimport { useContainerBreakpoints } from '@/hooks/useContainerBreakpoints/useContainerBreakpoints'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\n\nexport function FlowBreadcrumbs({\n breadcrumbs,\n currentBreadcrumbId,\n onEvent,\n}: FlowBreadcrumbsProps) {\n const breadcrumbContainerRef = useRef<HTMLDivElement | null>(null)\n const breakpoints = useContainerBreakpoints({ ref: breadcrumbContainerRef })\n // Small if we only contain the base breakpoint\n const isSmallContainer = breakpoints.length === 1\n\n const { Breadcrumbs } = useComponentContext()\n const { locale } = useLocale()\n const dateFormatter = useDateFormatter()\n const namespaces = breadcrumbs.reduce<Array<keyof CustomTypeOptions['resources']>>(\n (acc, breadcrumb) => {\n if (breadcrumb.namespace) {\n acc.push(breadcrumb.namespace as keyof CustomTypeOptions['resources'])\n }\n return acc\n },\n [],\n )\n useI18n(namespaces)\n const { t } = useTranslation(namespaces)\n const parsedBreadcrumbs = useMemo(\n () =>\n breadcrumbs.map(breadcrumb => {\n const formattedVariables = breadcrumb.variables\n ? {\n ...breadcrumb.variables,\n startDate:\n typeof breadcrumb.variables.startDate === 'string'\n ? dateFormatter.formatShortWithYear(breadcrumb.variables.startDate)\n : breadcrumb.variables.startDate,\n endDate:\n typeof breadcrumb.variables.endDate === 'string'\n ? dateFormatter.formatShortWithYear(breadcrumb.variables.endDate)\n : breadcrumb.variables.endDate,\n }\n : undefined\n\n const translatedLabel = breadcrumb.namespace\n ? (t(breadcrumb.label, {\n ns: breadcrumb.namespace,\n defaultValue: breadcrumb.label,\n ...formattedVariables,\n } as never) as unknown as string)\n : (t(breadcrumb.label, {\n defaultValue: breadcrumb.label,\n ...formattedVariables,\n } as never) as unknown as string)\n return {\n id: breadcrumb.id,\n label: translatedLabel,\n }\n }),\n [breadcrumbs, t, locale],\n )\n\n const handleBreadcrumbClick = (breadcrumbId: string) => {\n const breadcrumb = breadcrumbs.find(breadcrumb => breadcrumb.id === breadcrumbId)\n if (onEvent && breadcrumb) {\n onEvent(componentEvents.BREADCRUMB_NAVIGATE, {\n key: breadcrumbId,\n onNavigate: breadcrumb.onNavigate,\n })\n }\n }\n return (\n <div ref={breadcrumbContainerRef}>\n <Breadcrumbs\n isSmallContainer={isSmallContainer}\n breadcrumbs={parsedBreadcrumbs}\n currentBreadcrumbId={currentBreadcrumbId}\n onClick={handleBreadcrumbClick}\n />\n </div>\n )\n}\n"],"names":["FlowBreadcrumbs","breadcrumbs","currentBreadcrumbId","onEvent","breadcrumbContainerRef","useRef","isSmallContainer","useContainerBreakpoints","Breadcrumbs","useComponentContext","locale","useLocale","dateFormatter","useDateFormatter","namespaces","acc","breadcrumb","useI18n","t","useTranslation","parsedBreadcrumbs","useMemo","formattedVariables","translatedLabel","jsx","breadcrumbId","componentEvents"],"mappings":";;;;;;;;;AAWO,SAASA,EAAgB;AAAA,EAC9B,aAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,SAAAC;AACF,GAAyB;AACvB,QAAMC,IAAyBC,EAA8B,IAAI,GAG3DC,IAFcC,EAAwB,EAAE,KAAKH,GAAwB,EAEtC,WAAW,GAE1C,EAAE,aAAAI,EAAA,IAAgBC,EAAA,GAClB,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAgBC,EAAA,GAChBC,IAAab,EAAY;AAAA,IAC7B,CAACc,GAAKC,OACAA,EAAW,aACbD,EAAI,KAAKC,EAAW,SAAiD,GAEhED;AAAA,IAET,CAAA;AAAA,EAAC;AAEH,EAAAE,EAAQH,CAAU;AAClB,QAAM,EAAE,GAAAI,EAAA,IAAMC,EAAeL,CAAU,GACjCM,IAAoBC;AAAA,IACxB,MACEpB,EAAY,IAAI,CAAAe,MAAc;AAC5B,YAAMM,IAAqBN,EAAW,YAClC;AAAA,QACE,GAAGA,EAAW;AAAA,QACd,WACE,OAAOA,EAAW,UAAU,aAAc,WACtCJ,EAAc,oBAAoBI,EAAW,UAAU,SAAS,IAChEA,EAAW,UAAU;AAAA,QAC3B,SACE,OAAOA,EAAW,UAAU,WAAY,WACpCJ,EAAc,oBAAoBI,EAAW,UAAU,OAAO,IAC9DA,EAAW,UAAU;AAAA,MAAA,IAE7B,QAEEO,IAAkBP,EAAW,YAC9BE,EAAEF,EAAW,OAAO;AAAA,QACnB,IAAIA,EAAW;AAAA,QACf,cAAcA,EAAW;AAAA,QACzB,GAAGM;AAAA,MAAA,CACK,IACTJ,EAAEF,EAAW,OAAO;AAAA,QACnB,cAAcA,EAAW;AAAA,QACzB,GAAGM;AAAA,MAAA,CACK;AACd,aAAO;AAAA,QACL,IAAIN,EAAW;AAAA,QACf,OAAOO;AAAA,MAAA;AAAA,IAEX,CAAC;AAAA,IACH,CAACtB,GAAaiB,GAAGR,CAAM;AAAA,EAAA;AAYzB,SACE,gBAAAc,EAAC,OAAA,EAAI,KAAKpB,GACR,UAAA,gBAAAoB;AAAA,IAAChB;AAAA,IAAA;AAAA,MACC,kBAAAF;AAAA,MACA,aAAac;AAAA,MACb,qBAAAlB;AAAA,MACA,SAfwB,CAACuB,MAAyB;AACtD,cAAMT,IAAaf,EAAY,KAAK,CAAAe,MAAcA,EAAW,OAAOS,CAAY;AAChF,QAAItB,KAAWa,KACbb,EAAQuB,EAAgB,qBAAqB;AAAA,UAC3C,KAAKD;AAAA,UACL,YAAYT,EAAW;AAAA,QAAA,CACxB;AAAA,MAEL;AAAA,IAOe;AAAA,EAAA,GAEb;AAEJ;"}
1
+ {"version":3,"file":"FlowBreadcrumbs.js","sources":["../../../../src/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.tsx"],"sourcesContent":["import type { CustomTypeOptions } from 'i18next'\nimport { useTranslation } from 'react-i18next'\nimport { useMemo, useRef } from 'react'\nimport type { FlowBreadcrumbsProps } from './FlowBreadcrumbsTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { componentEvents } from '@/shared/constants'\nimport { useI18n } from '@/i18n/I18n'\nimport { useLocale } from '@/contexts/LocaleProvider/useLocale'\nimport { useContainerBreakpoints } from '@/hooks/useContainerBreakpoints/useContainerBreakpoints'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\n\nexport function FlowBreadcrumbs({\n breadcrumbs,\n currentBreadcrumbId,\n onEvent,\n}: FlowBreadcrumbsProps) {\n const breadcrumbContainerRef = useRef<HTMLDivElement | null>(null)\n const breakpoints = useContainerBreakpoints({ ref: breadcrumbContainerRef })\n // Small if we only contain the base breakpoint\n const isSmallContainer = breakpoints.length === 1\n\n const { Breadcrumbs } = useComponentContext()\n const { locale } = useLocale()\n const dateFormatter = useDateFormatter()\n const namespaces = breadcrumbs.reduce<Array<keyof CustomTypeOptions['resources']>>(\n (acc, breadcrumb) => {\n if (breadcrumb.namespace) {\n acc.push(breadcrumb.namespace as keyof CustomTypeOptions['resources'])\n }\n return acc\n },\n [],\n )\n useI18n(namespaces)\n const { t } = useTranslation()\n const parsedBreadcrumbs = useMemo(\n () =>\n breadcrumbs.map(breadcrumb => {\n const formattedVariables = breadcrumb.variables\n ? {\n ...breadcrumb.variables,\n startDate:\n typeof breadcrumb.variables.startDate === 'string'\n ? dateFormatter.formatShortWithYear(breadcrumb.variables.startDate)\n : breadcrumb.variables.startDate,\n endDate:\n typeof breadcrumb.variables.endDate === 'string'\n ? dateFormatter.formatShortWithYear(breadcrumb.variables.endDate)\n : breadcrumb.variables.endDate,\n }\n : undefined\n\n const translatedLabel = breadcrumb.namespace\n ? (t(breadcrumb.label, {\n ns: breadcrumb.namespace,\n defaultValue: breadcrumb.label,\n ...formattedVariables,\n } as never) as unknown as string)\n : (t(breadcrumb.label, {\n defaultValue: breadcrumb.label,\n ...formattedVariables,\n } as never) as unknown as string)\n return {\n id: breadcrumb.id,\n label: translatedLabel,\n }\n }),\n [breadcrumbs, t, locale],\n )\n\n const handleBreadcrumbClick = (breadcrumbId: string) => {\n const breadcrumb = breadcrumbs.find(breadcrumb => breadcrumb.id === breadcrumbId)\n if (onEvent && breadcrumb) {\n onEvent(componentEvents.BREADCRUMB_NAVIGATE, {\n key: breadcrumbId,\n onNavigate: breadcrumb.onNavigate,\n })\n }\n }\n return (\n <div ref={breadcrumbContainerRef}>\n <Breadcrumbs\n isSmallContainer={isSmallContainer}\n breadcrumbs={parsedBreadcrumbs}\n currentBreadcrumbId={currentBreadcrumbId}\n onClick={handleBreadcrumbClick}\n />\n </div>\n )\n}\n"],"names":["FlowBreadcrumbs","breadcrumbs","currentBreadcrumbId","onEvent","breadcrumbContainerRef","useRef","isSmallContainer","useContainerBreakpoints","Breadcrumbs","useComponentContext","locale","useLocale","dateFormatter","useDateFormatter","namespaces","acc","breadcrumb","useI18n","t","useTranslation","parsedBreadcrumbs","useMemo","formattedVariables","translatedLabel","jsx","breadcrumbId","componentEvents"],"mappings":";;;;;;;;;AAWO,SAASA,EAAgB;AAAA,EAC9B,aAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,SAAAC;AACF,GAAyB;AACvB,QAAMC,IAAyBC,EAA8B,IAAI,GAG3DC,IAFcC,EAAwB,EAAE,KAAKH,GAAwB,EAEtC,WAAW,GAE1C,EAAE,aAAAI,EAAA,IAAgBC,EAAA,GAClB,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAgBC,EAAA,GAChBC,IAAab,EAAY;AAAA,IAC7B,CAACc,GAAKC,OACAA,EAAW,aACbD,EAAI,KAAKC,EAAW,SAAiD,GAEhED;AAAA,IAET,CAAA;AAAA,EAAC;AAEH,EAAAE,EAAQH,CAAU;AAClB,QAAM,EAAE,GAAAI,EAAA,IAAMC,EAAA,GACRC,IAAoBC;AAAA,IACxB,MACEpB,EAAY,IAAI,CAAAe,MAAc;AAC5B,YAAMM,IAAqBN,EAAW,YAClC;AAAA,QACE,GAAGA,EAAW;AAAA,QACd,WACE,OAAOA,EAAW,UAAU,aAAc,WACtCJ,EAAc,oBAAoBI,EAAW,UAAU,SAAS,IAChEA,EAAW,UAAU;AAAA,QAC3B,SACE,OAAOA,EAAW,UAAU,WAAY,WACpCJ,EAAc,oBAAoBI,EAAW,UAAU,OAAO,IAC9DA,EAAW,UAAU;AAAA,MAAA,IAE7B,QAEEO,IAAkBP,EAAW,YAC9BE,EAAEF,EAAW,OAAO;AAAA,QACnB,IAAIA,EAAW;AAAA,QACf,cAAcA,EAAW;AAAA,QACzB,GAAGM;AAAA,MAAA,CACK,IACTJ,EAAEF,EAAW,OAAO;AAAA,QACnB,cAAcA,EAAW;AAAA,QACzB,GAAGM;AAAA,MAAA,CACK;AACd,aAAO;AAAA,QACL,IAAIN,EAAW;AAAA,QACf,OAAOO;AAAA,MAAA;AAAA,IAEX,CAAC;AAAA,IACH,CAACtB,GAAaiB,GAAGR,CAAM;AAAA,EAAA;AAYzB,SACE,gBAAAc,EAAC,OAAA,EAAI,KAAKpB,GACR,UAAA,gBAAAoB;AAAA,IAAChB;AAAA,IAAA;AAAA,MACC,kBAAAF;AAAA,MACA,aAAac;AAAA,MACb,qBAAAlB;AAAA,MACA,SAfwB,CAACuB,MAAyB;AACtD,cAAMT,IAAaf,EAAY,KAAK,CAAAe,MAAcA,EAAW,OAAOS,CAAY;AAChF,QAAItB,KAAWa,KACbb,EAAQuB,EAAgB,qBAAqB;AAAA,UAC3C,KAAKD;AAAA,UACL,YAAYT,EAAW;AAAA,QAAA,CACxB;AAAA,MAEL;AAAA,IAOe;AAAA,EAAA,GAEb;AAEJ;"}
@@ -0,0 +1 @@
1
+ export declare const createBreadcrumbNavigateTransition: <TContext>() => (targetState: string) => import('robot3').Transition<"breadcrumb/navigate">;
@@ -0,0 +1,14 @@
1
+ import { transition as e, guard as n, reduce as t } from "robot3";
2
+ import { componentEvents as i } from "../../../shared/constants.js";
3
+ const p = () => (r) => e(
4
+ i.BREADCRUMB_NAVIGATE,
5
+ r,
6
+ n((a, o) => o.payload.key === r),
7
+ t(
8
+ (a, o) => o.payload.onNavigate(a)
9
+ )
10
+ );
11
+ export {
12
+ p as createBreadcrumbNavigateTransition
13
+ };
14
+ //# sourceMappingURL=breadcrumbTransitionHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumbTransitionHelpers.js","sources":["../../../../src/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.ts"],"sourcesContent":["import { guard, reduce, transition } from 'robot3'\nimport { componentEvents } from '@/shared/constants'\n\ntype BreadcrumbNavigateEvent<TContext> = {\n payload: {\n key: string\n onNavigate: (ctx: TContext) => TContext\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters\nexport const createBreadcrumbNavigateTransition = <TContext>() => {\n return (targetState: string) =>\n transition(\n componentEvents.BREADCRUMB_NAVIGATE,\n targetState,\n guard((ctx: TContext, ev: { payload: { key: string } }) => ev.payload.key === targetState),\n reduce(\n (ctx: TContext, ev: BreadcrumbNavigateEvent<TContext>): TContext =>\n ev.payload.onNavigate(ctx),\n ),\n )\n}\n"],"names":["createBreadcrumbNavigateTransition","targetState","transition","componentEvents","guard","ctx","ev","reduce"],"mappings":";;AAWO,MAAMA,IAAqC,MACzC,CAACC,MACNC;AAAA,EACEC,EAAgB;AAAA,EAChBF;AAAA,EACAG,EAAM,CAACC,GAAeC,MAAqCA,EAAG,QAAQ,QAAQL,CAAW;AAAA,EACzFM;AAAA,IACE,CAACF,GAAeC,MACdA,EAAG,QAAQ,WAAWD,CAAG;AAAA,EAAA;AAC7B;"}
@@ -1,3 +1,4 @@
1
1
  import "./types/i18next.d.ts"
2
2
  export { FlowBreadcrumbs } from './FlowBreadcrumbs';
3
3
  export type { FlowBreadcrumbsProps } from './FlowBreadcrumbsTypes';
4
+ export { createBreadcrumbNavigateTransition } from './breadcrumbTransitionHelpers';
@@ -7,13 +7,15 @@ import { Form as u } from "../Form/Form.js";
7
7
  import { Flex as c } from "../Flex/Flex.js";
8
8
  import "react-i18next";
9
9
  import "classnames";
10
+ import "../../../contexts/ComponentAdapter/useComponentContext.js";
11
+ import "react";
10
12
  const f = o.object({
11
13
  signature: o.string().min(1),
12
14
  confirmSignature: o.literal(!0)
13
15
  }), p = {
14
16
  signature: ""
15
17
  };
16
- function z({ onSubmit: m, children: i, formProps: n }) {
18
+ function N({ onSubmit: m, children: i, formProps: n }) {
17
19
  const e = s({
18
20
  resolver: l(f),
19
21
  defaultValues: p,
@@ -22,7 +24,7 @@ function z({ onSubmit: m, children: i, formProps: n }) {
22
24
  return /* @__PURE__ */ r(a, { ...e, children: /* @__PURE__ */ r(u, { onSubmit: e.handleSubmit(m), className: t.container, children: /* @__PURE__ */ r("div", { className: t.formFields, children: /* @__PURE__ */ r(c, { flexDirection: "column", gap: 20, children: i }) }) }) });
23
25
  }
24
26
  export {
25
- z as SignatureForm,
27
+ N as SignatureForm,
26
28
  f as SignatureFormSchema
27
29
  };
28
30
  //# sourceMappingURL=SignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureForm.js","sources":["../../../../src/components/Common/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { FormProvider, useForm, type UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport styles from './SignatureForm.module.scss'\nimport { Form } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\n\nexport const SignatureFormSchema = z.object({\n signature: z.string().min(1),\n confirmSignature: z.literal(true),\n})\n\nconst signatureFormDefaultValues = {\n signature: '',\n}\n\nexport type SignatureFormInputs = z.infer<typeof SignatureFormSchema>\n\ninterface SignatureFormProps {\n onSubmit: (data: SignatureFormInputs) => void | Promise<void>\n children?: React.ReactNode\n formProps?: Partial<UseFormProps<SignatureFormInputs>>\n}\n\nexport function SignatureForm({ onSubmit, children, formProps }: SignatureFormProps) {\n const methods = useForm<SignatureFormInputs>({\n resolver: zodResolver(SignatureFormSchema),\n defaultValues: signatureFormDefaultValues,\n ...formProps,\n })\n\n return (\n <FormProvider {...methods}>\n <Form onSubmit={methods.handleSubmit(onSubmit)} className={styles.container}>\n <div className={styles.formFields}>\n <Flex flexDirection=\"column\" gap={20}>\n {children}\n </Flex>\n </div>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["SignatureFormSchema","z","signatureFormDefaultValues","SignatureForm","onSubmit","children","formProps","methods","useForm","zodResolver","jsx","FormProvider","Form","styles","Flex"],"mappings":";;;;;;;;;AAOO,MAAMA,IAAsBC,EAAE,OAAO;AAAA,EAC1C,WAAWA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC3B,kBAAkBA,EAAE,QAAQ,EAAI;AAClC,CAAC,GAEKC,IAA6B;AAAA,EACjC,WAAW;AACb;AAUO,SAASC,EAAc,EAAE,UAAAC,GAAU,UAAAC,GAAU,WAAAC,KAAiC;AACnF,QAAMC,IAAUC,EAA6B;AAAA,IAC3C,UAAUC,EAAYT,CAAmB;AAAA,IACzC,eAAeE;AAAA,IACf,GAAGI;AAAA,EAAA,CACJ;AAED,SACE,gBAAAI,EAACC,GAAA,EAAc,GAAGJ,GAChB,UAAA,gBAAAG,EAACE,GAAA,EAAK,UAAUL,EAAQ,aAAaH,CAAQ,GAAG,WAAWS,EAAO,WAChE,UAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWG,EAAO,YACrB,UAAA,gBAAAH,EAACI,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,EAAA,CACH,EAAA,CACF,EAAA,CACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureForm.js","sources":["../../../../src/components/Common/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { FormProvider, useForm, type UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport styles from './SignatureForm.module.scss'\nimport { Form } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\n\nexport const SignatureFormSchema = z.object({\n signature: z.string().min(1),\n confirmSignature: z.literal(true),\n})\n\nconst signatureFormDefaultValues = {\n signature: '',\n}\n\nexport type SignatureFormInputs = z.infer<typeof SignatureFormSchema>\n\ninterface SignatureFormProps {\n onSubmit: (data: SignatureFormInputs) => void | Promise<void>\n children?: React.ReactNode\n formProps?: Partial<UseFormProps<SignatureFormInputs>>\n}\n\nexport function SignatureForm({ onSubmit, children, formProps }: SignatureFormProps) {\n const methods = useForm<SignatureFormInputs>({\n resolver: zodResolver(SignatureFormSchema),\n defaultValues: signatureFormDefaultValues,\n ...formProps,\n })\n\n return (\n <FormProvider {...methods}>\n <Form onSubmit={methods.handleSubmit(onSubmit)} className={styles.container}>\n <div className={styles.formFields}>\n <Flex flexDirection=\"column\" gap={20}>\n {children}\n </Flex>\n </div>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["SignatureFormSchema","z","signatureFormDefaultValues","SignatureForm","onSubmit","children","formProps","methods","useForm","zodResolver","jsx","FormProvider","Form","styles","Flex"],"mappings":";;;;;;;;;;;AAOO,MAAMA,IAAsBC,EAAE,OAAO;AAAA,EAC1C,WAAWA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC3B,kBAAkBA,EAAE,QAAQ,EAAI;AAClC,CAAC,GAEKC,IAA6B;AAAA,EACjC,WAAW;AACb;AAUO,SAASC,EAAc,EAAE,UAAAC,GAAU,UAAAC,GAAU,WAAAC,KAAiC;AACnF,QAAMC,IAAUC,EAA6B;AAAA,IAC3C,UAAUC,EAAYT,CAAmB;AAAA,IACzC,eAAeE;AAAA,IACf,GAAGI;AAAA,EAAA,CACJ;AAED,SACE,gBAAAI,EAACC,GAAA,EAAc,GAAGJ,GAChB,UAAA,gBAAAG,EAACE,GAAA,EAAK,UAAUL,EAAQ,aAAaH,CAAQ,GAAG,WAAWS,EAAO,WAChE,UAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWG,EAAO,YACrB,UAAA,gBAAAH,EAACI,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,EAAA,CACH,EAAA,CACF,EAAA,CACF,GACF;AAEJ;"}
@@ -1,21 +1,23 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
+ import "../../../shared/constants.js";
2
3
  import "react-i18next";
3
4
  import "classnames";
4
- import { ActionsLayout as s } from "../ActionsLayout/ActionsLayout.js";
5
- import { useComponentContext as p } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
- function d({
5
+ import { ActionsLayout as p } from "../ActionsLayout/ActionsLayout.js";
6
+ import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "react";
8
+ function y({
7
9
  onBack: t,
8
10
  backLabel: r,
9
11
  submitLabel: i,
10
12
  isLoading: e = !1
11
13
  }) {
12
- const o = p();
13
- return /* @__PURE__ */ m(s, { children: [
14
+ const o = s();
15
+ return /* @__PURE__ */ m(p, { children: [
14
16
  t && /* @__PURE__ */ n(o.Button, { variant: "secondary", type: "button", onClick: t, children: r }),
15
17
  /* @__PURE__ */ n(o.Button, { type: "submit", isLoading: e, children: i })
16
18
  ] });
17
19
  }
18
20
  export {
19
- d as SignatureFormActions
21
+ y as SignatureFormActions
20
22
  };
21
23
  //# sourceMappingURL=SignatureFormActions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureFormActions.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormActions.tsx"],"sourcesContent":["import { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormActionsProps {\n onBack?: () => void\n backLabel: string\n submitLabel: string\n isLoading?: boolean\n}\n\nexport function SignatureFormActions({\n onBack,\n backLabel,\n submitLabel,\n isLoading = false,\n}: SignatureFormActionsProps) {\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {onBack && (\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onBack}>\n {backLabel}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isLoading}>\n {submitLabel}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["SignatureFormActions","onBack","backLabel","submitLabel","isLoading","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAUO,SAASA,EAAqB;AAAA,EACnC,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC,IAAY;AACd,GAA8B;AAC5B,QAAMC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACE,UAAA;AAAA,IAAAN,KACC,gBAAAO,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASJ,GAC3D,UAAAC,EAAA,CACH;AAAA,sBAEDG,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAAD,GAC9B,UAAAD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureFormActions.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormActions.tsx"],"sourcesContent":["import { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormActionsProps {\n onBack?: () => void\n backLabel: string\n submitLabel: string\n isLoading?: boolean\n}\n\nexport function SignatureFormActions({\n onBack,\n backLabel,\n submitLabel,\n isLoading = false,\n}: SignatureFormActionsProps) {\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {onBack && (\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onBack}>\n {backLabel}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isLoading}>\n {submitLabel}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["SignatureFormActions","onBack","backLabel","submitLabel","isLoading","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAUO,SAASA,EAAqB;AAAA,EACnC,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC,IAAY;AACd,GAA8B;AAC5B,QAAMC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACE,UAAA;AAAA,IAAAN,KACC,gBAAAO,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASJ,GAC3D,UAAAC,EAAA,CACH;AAAA,sBAEDG,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAAD,GAC9B,UAAAD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,28 +1,31 @@
1
- import { jsxs as n, Fragment as s, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as n, Fragment as s, jsx as r } from "react/jsx-runtime";
2
+ import "../../../shared/constants.js";
2
3
  import "react-i18next";
3
4
  import "classnames";
4
- import { TextInputField as a } from "../Fields/TextInputField/TextInputField.js";
5
- import { CheckboxField as u } from "../Fields/CheckboxField/CheckboxField.js";
6
- function f({
7
- signatureLabel: r,
5
+ import "../../../contexts/ComponentAdapter/useComponentContext.js";
6
+ import "react";
7
+ import { TextInputField as p } from "../Fields/TextInputField/TextInputField.js";
8
+ import { CheckboxField as a } from "../Fields/CheckboxField/CheckboxField.js";
9
+ function b({
10
+ signatureLabel: e,
8
11
  signatureDescription: i = "",
9
12
  signatureError: t = "",
10
13
  confirmationLabel: o,
11
14
  confirmationError: m = ""
12
15
  }) {
13
16
  return /* @__PURE__ */ n(s, { children: [
14
- /* @__PURE__ */ e(
15
- a,
17
+ /* @__PURE__ */ r(
18
+ p,
16
19
  {
17
20
  name: "signature",
18
- label: r,
21
+ label: e,
19
22
  description: i,
20
23
  errorMessage: t,
21
24
  isRequired: !0
22
25
  }
23
26
  ),
24
- /* @__PURE__ */ e(
25
- u,
27
+ /* @__PURE__ */ r(
28
+ a,
26
29
  {
27
30
  name: "confirmSignature",
28
31
  isRequired: !0,
@@ -33,6 +36,6 @@ function f({
33
36
  ] });
34
37
  }
35
38
  export {
36
- f as SignatureFormFields
39
+ b as SignatureFormFields
37
40
  };
38
41
  //# sourceMappingURL=SignatureFormFields.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureFormFields.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormFields.tsx"],"sourcesContent":["import { TextInputField, CheckboxField } from '@/components/Common'\n\ninterface SignatureFormFieldsProps {\n signatureLabel: string\n signatureDescription?: string\n signatureError?: string\n confirmationLabel: string\n confirmationError?: string\n}\n\nexport function SignatureFormFields({\n signatureLabel,\n signatureDescription = '',\n signatureError = '',\n confirmationLabel,\n confirmationError = '',\n}: SignatureFormFieldsProps) {\n return (\n <>\n <TextInputField\n name=\"signature\"\n label={signatureLabel}\n description={signatureDescription}\n errorMessage={signatureError}\n isRequired\n />\n <CheckboxField\n name=\"confirmSignature\"\n isRequired\n label={confirmationLabel}\n errorMessage={confirmationError}\n />\n </>\n )\n}\n"],"names":["SignatureFormFields","signatureLabel","signatureDescription","signatureError","confirmationLabel","confirmationError","jsxs","Fragment","jsx","TextInputField","CheckboxField"],"mappings":";;;;;AAUO,SAASA,EAAoB;AAAA,EAClC,gBAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,EACvB,gBAAAC,IAAiB;AAAA,EACjB,mBAAAC;AAAA,EACA,mBAAAC,IAAoB;AACtB,GAA6B;AAC3B,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOR;AAAA,QACP,aAAaC;AAAA,QACb,cAAcC;AAAA,QACd,YAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAK;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAON;AAAA,QACP,cAAcC;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureFormFields.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormFields.tsx"],"sourcesContent":["import { TextInputField, CheckboxField } from '@/components/Common'\n\ninterface SignatureFormFieldsProps {\n signatureLabel: string\n signatureDescription?: string\n signatureError?: string\n confirmationLabel: string\n confirmationError?: string\n}\n\nexport function SignatureFormFields({\n signatureLabel,\n signatureDescription = '',\n signatureError = '',\n confirmationLabel,\n confirmationError = '',\n}: SignatureFormFieldsProps) {\n return (\n <>\n <TextInputField\n name=\"signature\"\n label={signatureLabel}\n description={signatureDescription}\n errorMessage={signatureError}\n isRequired\n />\n <CheckboxField\n name=\"confirmSignature\"\n isRequired\n label={confirmationLabel}\n errorMessage={confirmationError}\n />\n </>\n )\n}\n"],"names":["SignatureFormFields","signatureLabel","signatureDescription","signatureError","confirmationLabel","confirmationError","jsxs","Fragment","jsx","TextInputField","CheckboxField"],"mappings":";;;;;;;;AAUO,SAASA,EAAoB;AAAA,EAClC,gBAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,EACvB,gBAAAC,IAAiB;AAAA,EACjB,mBAAAC;AAAA,EACA,mBAAAC,IAAoB;AACtB,GAA6B;AAC3B,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOR;AAAA,QACP,aAAaC;AAAA,QACb,cAAcC;AAAA,QACd,YAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAK;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAON;AAAA,QACP,cAAcC;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
@@ -1,39 +1,40 @@
1
- import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
- import { useId as u, useRef as p, useEffect as v } from "react";
3
- import g from "classnames";
4
- import { ButtonIcon as N } from "../Button/ButtonIcon.js";
5
- import { AlertDefaults as b } from "./AlertTypes.js";
1
+ import { jsx as r, jsxs as n } from "react/jsx-runtime";
2
+ import { useId as p, useRef as v, useEffect as g } from "react";
3
+ import N from "classnames";
4
+ import { ButtonIcon as b } from "../Button/ButtonIcon.js";
5
+ import { AlertDefaults as I } from "./AlertTypes.js";
6
6
  import e from "./Alert.module.scss.js";
7
7
  import { applyMissingDefaults as S } from "../../../../helpers/applyMissingDefaults.js";
8
- import I from "../../../../assets/icons/info.svg.js";
9
- import y from "../../../../assets/icons/success_check.svg.js";
10
- import C from "../../../../assets/icons/warning.svg.js";
11
- import D from "../../../../assets/icons/error.svg.js";
12
- import w from "../../../../assets/icons/close.svg.js";
13
- function q(n) {
14
- const l = S(n, b), { label: c, children: m, status: i, icon: d, className: f, onDismiss: a } = l, o = u(), s = p(null), h = i === "info" ? /* @__PURE__ */ r(I, { "aria-hidden": !0 }) : i === "success" ? /* @__PURE__ */ r(y, { "aria-hidden": !0 }) : i === "warning" ? /* @__PURE__ */ r(C, { "aria-hidden": !0 }) : /* @__PURE__ */ r(D, { "aria-hidden": !0 });
15
- return v(() => {
16
- s.current && s.current.scrollIntoView({ behavior: "smooth" });
17
- }, []), /* @__PURE__ */ r("div", { className: g(e.root, f), children: /* @__PURE__ */ t(
8
+ import w from "../../../../assets/icons/info.svg.js";
9
+ import x from "../../../../assets/icons/success_check.svg.js";
10
+ import y from "../../../../assets/icons/warning.svg.js";
11
+ import C from "../../../../assets/icons/error.svg.js";
12
+ import D from "../../../../assets/icons/close.svg.js";
13
+ function z(l) {
14
+ const c = S(l, I), { label: m, children: d, status: i, icon: f, className: h, onDismiss: o, disableScrollIntoView: a } = c, t = p(), s = v(null), u = i === "info" ? /* @__PURE__ */ r(w, { "aria-hidden": !0 }) : i === "success" ? /* @__PURE__ */ r(x, { "aria-hidden": !0 }) : i === "warning" ? /* @__PURE__ */ r(y, { "aria-hidden": !0 }) : /* @__PURE__ */ r(C, { "aria-hidden": !0 });
15
+ return g(() => {
16
+ !a && s.current && (s.current.scrollIntoView({ behavior: "smooth" }), s.current.focus());
17
+ }, [a]), /* @__PURE__ */ r("div", { className: N(e.root, h), children: /* @__PURE__ */ n(
18
18
  "div",
19
19
  {
20
20
  className: e.alert,
21
21
  role: "alert",
22
- "aria-labelledby": o,
22
+ "aria-labelledby": t,
23
23
  "data-variant": i,
24
24
  ref: s,
25
+ tabIndex: -1,
25
26
  children: [
26
- /* @__PURE__ */ r("div", { className: e.header, children: /* @__PURE__ */ t("div", { className: e.iconLabelContainer, children: [
27
- /* @__PURE__ */ r("div", { className: e.icon, children: d || h }),
28
- /* @__PURE__ */ r("h6", { id: o, children: c }),
29
- a && /* @__PURE__ */ r("div", { className: e.dismiss, children: /* @__PURE__ */ r(N, { variant: "tertiary", onClick: a, "aria-label": "Dismiss alert", children: /* @__PURE__ */ r(w, { width: 36, height: 36 }) }) })
27
+ /* @__PURE__ */ r("div", { className: e.header, children: /* @__PURE__ */ n("div", { className: e.iconLabelContainer, children: [
28
+ /* @__PURE__ */ r("div", { className: e.icon, children: f || u }),
29
+ /* @__PURE__ */ r("h6", { id: t, children: m }),
30
+ o && /* @__PURE__ */ r("div", { className: e.dismiss, children: /* @__PURE__ */ r(b, { variant: "tertiary", onClick: o, "aria-label": "Dismiss alert", children: /* @__PURE__ */ r(D, { width: 36, height: 36 }) }) })
30
31
  ] }) }),
31
- /* @__PURE__ */ r("div", { className: e.content, children: m })
32
+ /* @__PURE__ */ r("div", { className: e.content, children: d })
32
33
  ]
33
34
  }
34
35
  ) });
35
36
  }
36
37
  export {
37
- q as Alert
38
+ z as Alert
38
39
  };
39
40
  //# sourceMappingURL=Alert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sources":["../../../../../src/components/Common/UI/Alert/Alert.tsx"],"sourcesContent":["import { useEffect, useId, useRef } from 'react'\nimport classNames from 'classnames'\nimport { ButtonIcon } from '../Button/ButtonIcon'\nimport { type AlertProps, AlertDefaults } from './AlertTypes'\nimport styles from './Alert.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport InfoIcon from '@/assets/icons/info.svg?react'\nimport SuccessIcon from '@/assets/icons/success_check.svg?react'\nimport WarningIcon from '@/assets/icons/warning.svg?react'\nimport ErrorIcon from '@/assets/icons/error.svg?react'\nimport CloseIcon from '@/assets/icons/close.svg?react'\n\nexport function Alert(rawProps: AlertProps) {\n const resolvedProps = applyMissingDefaults(rawProps, AlertDefaults)\n const { label, children, status, icon, className, onDismiss } = resolvedProps\n const id = useId()\n const alertRef = useRef<HTMLDivElement>(null)\n const defaultIcon =\n status === 'info' ? (\n <InfoIcon aria-hidden />\n ) : status === 'success' ? (\n <SuccessIcon aria-hidden />\n ) : status === 'warning' ? (\n <WarningIcon aria-hidden />\n ) : (\n <ErrorIcon aria-hidden />\n )\n\n useEffect(() => {\n if (alertRef.current) alertRef.current.scrollIntoView({ behavior: 'smooth' })\n }, [])\n\n return (\n <div className={classNames(styles.root, className)}>\n <div\n className={styles.alert}\n role=\"alert\"\n aria-labelledby={id}\n data-variant={status}\n ref={alertRef}\n >\n <div className={styles.header}>\n <div className={styles.iconLabelContainer}>\n <div className={styles.icon}>{icon || defaultIcon}</div>\n <h6 id={id}>{label}</h6>\n {onDismiss && (\n <div className={styles.dismiss}>\n <ButtonIcon variant=\"tertiary\" onClick={onDismiss} aria-label=\"Dismiss alert\">\n <CloseIcon width={36} height={36} />\n </ButtonIcon>\n </div>\n )}\n </div>\n </div>\n <div className={styles.content}>{children}</div>\n </div>\n </div>\n )\n}\n"],"names":["Alert","rawProps","resolvedProps","applyMissingDefaults","AlertDefaults","label","children","status","icon","className","onDismiss","id","useId","alertRef","useRef","defaultIcon","jsx","InfoIcon","SuccessIcon","WarningIcon","ErrorIcon","useEffect","classNames","styles","jsxs","ButtonIcon","CloseIcon"],"mappings":";;;;;;;;;;;;AAYO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D,EAAE,OAAAC,GAAO,UAAAC,GAAU,QAAAC,GAAQ,MAAAC,GAAM,WAAAC,GAAW,WAAAC,MAAcR,GAC1DS,IAAKC,EAAA,GACLC,IAAWC,EAAuB,IAAI,GACtCC,IACJR,MAAW,SACT,gBAAAS,EAACC,GAAA,EAAS,eAAW,GAAA,CAAC,IACpBV,MAAW,YACb,gBAAAS,EAACE,GAAA,EAAY,eAAW,GAAA,CAAC,IACvBX,MAAW,YACb,gBAAAS,EAACG,GAAA,EAAY,eAAW,GAAA,CAAC,IAEzB,gBAAAH,EAACI,GAAA,EAAU,eAAW,GAAA,CAAC;AAG3B,SAAAC,EAAU,MAAM;AACd,IAAIR,EAAS,WAASA,EAAS,QAAQ,eAAe,EAAE,UAAU,UAAU;AAAA,EAC9E,GAAG,CAAA,CAAE,qBAGF,OAAA,EAAI,WAAWS,EAAWC,EAAO,MAAMd,CAAS,GAC/C,UAAA,gBAAAe;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO;AAAA,MAClB,MAAK;AAAA,MACL,mBAAiBZ;AAAA,MACjB,gBAAcJ;AAAA,MACd,KAAKM;AAAA,MAEL,UAAA;AAAA,QAAA,gBAAAG,EAAC,OAAA,EAAI,WAAWO,EAAO,QACrB,4BAAC,OAAA,EAAI,WAAWA,EAAO,oBACrB,UAAA;AAAA,UAAA,gBAAAP,EAAC,OAAA,EAAI,WAAWO,EAAO,MAAO,eAAQR,GAAY;AAAA,UAClD,gBAAAC,EAAC,MAAA,EAAG,IAAAL,GAAS,UAAAN,EAAA,CAAM;AAAA,UAClBK,uBACE,OAAA,EAAI,WAAWa,EAAO,SACrB,UAAA,gBAAAP,EAACS,KAAW,SAAQ,YAAW,SAASf,GAAW,cAAW,iBAC5D,UAAA,gBAAAM,EAACU,GAAA,EAAU,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACpC,EAAA,CACF;AAAA,QAAA,EAAA,CAEJ,EAAA,CACF;AAAA,QACA,gBAAAV,EAAC,OAAA,EAAI,WAAWO,EAAO,SAAU,UAAAjB,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAE9C;AAEJ;"}
1
+ {"version":3,"file":"Alert.js","sources":["../../../../../src/components/Common/UI/Alert/Alert.tsx"],"sourcesContent":["import { useEffect, useId, useRef } from 'react'\nimport classNames from 'classnames'\nimport { ButtonIcon } from '../Button/ButtonIcon'\nimport { type AlertProps, AlertDefaults } from './AlertTypes'\nimport styles from './Alert.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport InfoIcon from '@/assets/icons/info.svg?react'\nimport SuccessIcon from '@/assets/icons/success_check.svg?react'\nimport WarningIcon from '@/assets/icons/warning.svg?react'\nimport ErrorIcon from '@/assets/icons/error.svg?react'\nimport CloseIcon from '@/assets/icons/close.svg?react'\n\nexport function Alert(rawProps: AlertProps) {\n const resolvedProps = applyMissingDefaults(rawProps, AlertDefaults)\n const { label, children, status, icon, className, onDismiss, disableScrollIntoView } =\n resolvedProps\n const id = useId()\n const alertRef = useRef<HTMLDivElement>(null)\n const defaultIcon =\n status === 'info' ? (\n <InfoIcon aria-hidden />\n ) : status === 'success' ? (\n <SuccessIcon aria-hidden />\n ) : status === 'warning' ? (\n <WarningIcon aria-hidden />\n ) : (\n <ErrorIcon aria-hidden />\n )\n\n useEffect(() => {\n if (!disableScrollIntoView && alertRef.current) {\n alertRef.current.scrollIntoView({ behavior: 'smooth' })\n alertRef.current.focus()\n }\n }, [disableScrollIntoView])\n\n return (\n <div className={classNames(styles.root, className)}>\n <div\n className={styles.alert}\n role=\"alert\"\n aria-labelledby={id}\n data-variant={status}\n ref={alertRef}\n tabIndex={-1}\n >\n <div className={styles.header}>\n <div className={styles.iconLabelContainer}>\n <div className={styles.icon}>{icon || defaultIcon}</div>\n <h6 id={id}>{label}</h6>\n {onDismiss && (\n <div className={styles.dismiss}>\n <ButtonIcon variant=\"tertiary\" onClick={onDismiss} aria-label=\"Dismiss alert\">\n <CloseIcon width={36} height={36} />\n </ButtonIcon>\n </div>\n )}\n </div>\n </div>\n <div className={styles.content}>{children}</div>\n </div>\n </div>\n )\n}\n"],"names":["Alert","rawProps","resolvedProps","applyMissingDefaults","AlertDefaults","label","children","status","icon","className","onDismiss","disableScrollIntoView","id","useId","alertRef","useRef","defaultIcon","jsx","InfoIcon","SuccessIcon","WarningIcon","ErrorIcon","useEffect","classNames","styles","jsxs","ButtonIcon","CloseIcon"],"mappings":";;;;;;;;;;;;AAYO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D,EAAE,OAAAC,GAAO,UAAAC,GAAU,QAAAC,GAAQ,MAAAC,GAAM,WAAAC,GAAW,WAAAC,GAAW,uBAAAC,MAC3DT,GACIU,IAAKC,EAAA,GACLC,IAAWC,EAAuB,IAAI,GACtCC,IACJT,MAAW,SACT,gBAAAU,EAACC,GAAA,EAAS,eAAW,GAAA,CAAC,IACpBX,MAAW,YACb,gBAAAU,EAACE,GAAA,EAAY,eAAW,GAAA,CAAC,IACvBZ,MAAW,YACb,gBAAAU,EAACG,GAAA,EAAY,eAAW,GAAA,CAAC,IAEzB,gBAAAH,EAACI,GAAA,EAAU,eAAW,GAAA,CAAC;AAG3B,SAAAC,EAAU,MAAM;AACd,IAAI,CAACX,KAAyBG,EAAS,YACrCA,EAAS,QAAQ,eAAe,EAAE,UAAU,UAAU,GACtDA,EAAS,QAAQ,MAAA;AAAA,EAErB,GAAG,CAACH,CAAqB,CAAC,qBAGvB,OAAA,EAAI,WAAWY,EAAWC,EAAO,MAAMf,CAAS,GAC/C,UAAA,gBAAAgB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO;AAAA,MAClB,MAAK;AAAA,MACL,mBAAiBZ;AAAA,MACjB,gBAAcL;AAAA,MACd,KAAKO;AAAA,MACL,UAAU;AAAA,MAEV,UAAA;AAAA,QAAA,gBAAAG,EAAC,OAAA,EAAI,WAAWO,EAAO,QACrB,4BAAC,OAAA,EAAI,WAAWA,EAAO,oBACrB,UAAA;AAAA,UAAA,gBAAAP,EAAC,OAAA,EAAI,WAAWO,EAAO,MAAO,eAAQR,GAAY;AAAA,UAClD,gBAAAC,EAAC,MAAA,EAAG,IAAAL,GAAS,UAAAP,EAAA,CAAM;AAAA,UAClBK,uBACE,OAAA,EAAI,WAAWc,EAAO,SACrB,UAAA,gBAAAP,EAACS,KAAW,SAAQ,YAAW,SAAShB,GAAW,cAAW,iBAC5D,UAAA,gBAAAO,EAACU,GAAA,EAAU,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACpC,EAAA,CACF;AAAA,QAAA,EAAA,CAEJ,EAAA,CACF;AAAA,QACA,gBAAAV,EAAC,OAAA,EAAI,WAAWO,EAAO,SAAU,UAAAlB,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAE9C;AAEJ;"}
@@ -24,6 +24,10 @@ export interface AlertProps {
24
24
  * Optional callback function called when the dismiss button is clicked
25
25
  */
26
26
  onDismiss?: () => void;
27
+ /**
28
+ * Whether to disable scrolling the alert into view and focusing it on mount. Set to true when using inside modals.
29
+ */
30
+ disableScrollIntoView?: boolean;
27
31
  }
28
32
  /**
29
33
  * Default prop values for Alert component.
@@ -1 +1 @@
1
- {"version":3,"file":"AlertTypes.js","sources":["../../../../../src/components/Common/UI/Alert/AlertTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\nexport interface AlertProps {\n /**\n * The visual status that the alert should convey\n */\n status?: 'info' | 'success' | 'warning' | 'error'\n /**\n * The label text for the alert\n */\n label: string\n /**\n * Optional children to be rendered inside the alert\n */\n children?: ReactNode\n /**\n * Optional custom icon component to override the default icon\n */\n icon?: ReactNode\n /**\n * CSS className to be applied\n */\n className?: string\n /**\n * Optional callback function called when the dismiss button is clicked\n */\n onDismiss?: () => void\n}\n\n/**\n * Default prop values for Alert component.\n */\nexport const AlertDefaults = {\n status: 'info',\n} as const satisfies Partial<AlertProps>\n"],"names":["AlertDefaults"],"mappings":"AAgCO,MAAMA,IAAgB;AAAA,EAC3B,QAAQ;AACV;"}
1
+ {"version":3,"file":"AlertTypes.js","sources":["../../../../../src/components/Common/UI/Alert/AlertTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\nexport interface AlertProps {\n /**\n * The visual status that the alert should convey\n */\n status?: 'info' | 'success' | 'warning' | 'error'\n /**\n * The label text for the alert\n */\n label: string\n /**\n * Optional children to be rendered inside the alert\n */\n children?: ReactNode\n /**\n * Optional custom icon component to override the default icon\n */\n icon?: ReactNode\n /**\n * CSS className to be applied\n */\n className?: string\n /**\n * Optional callback function called when the dismiss button is clicked\n */\n onDismiss?: () => void\n /**\n * Whether to disable scrolling the alert into view and focusing it on mount. Set to true when using inside modals.\n */\n disableScrollIntoView?: boolean\n}\n\n/**\n * Default prop values for Alert component.\n */\nexport const AlertDefaults = {\n status: 'info',\n} as const satisfies Partial<AlertProps>\n"],"names":["AlertDefaults"],"mappings":"AAoCO,MAAMA,IAAgB;AAAA,EAC3B,QAAQ;AACV;"}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeTypes.js","sources":["../../../../../src/components/Common/UI/Badge/BadgeTypes.ts"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react'\n\nexport interface BadgeProps\n extends Pick<HTMLAttributes<HTMLSpanElement>, 'className' | 'id' | 'aria-label'> {\n /**\n * Content to be displayed inside the badge\n */\n children: ReactNode\n /**\n * Visual style variant of the badge\n */\n status?: 'success' | 'warning' | 'error' | 'info'\n}\n\n/**\n * Default prop values for Badge component.\n */\nexport const BadgeDefaults = {\n status: 'info',\n} as const satisfies Partial<BadgeProps>\n"],"names":["BadgeDefaults"],"mappings":"AAiBO,MAAMA,IAAgB;AAAA,EAC3B,QAAQ;AACV;"}
1
+ {"version":3,"file":"BadgeTypes.js","sources":["../../../../../src/components/Common/UI/Badge/BadgeTypes.ts"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react'\n\nexport interface BadgeProps extends Pick<\n HTMLAttributes<HTMLSpanElement>,\n 'className' | 'id' | 'aria-label'\n> {\n /**\n * Content to be displayed inside the badge\n */\n children: ReactNode\n /**\n * Visual style variant of the badge\n */\n status?: 'success' | 'warning' | 'error' | 'info'\n}\n\n/**\n * Default prop values for Badge component.\n */\nexport const BadgeDefaults = {\n status: 'info',\n} as const satisfies Partial<BadgeProps>\n"],"names":["BadgeDefaults"],"mappings":"AAmBO,MAAMA,IAAgB;AAAA,EAC3B,QAAQ;AACV;"}
@@ -1 +1 @@
1
- {"version":3,"file":"BannerTypes.js","sources":["../../../../../src/components/Common/UI/Banner/BannerTypes.ts"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react'\n\nexport interface BannerProps\n extends Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'id' | 'aria-label'> {\n /**\n * Title content displayed in the colored header section\n */\n title: ReactNode\n /**\n * Content to be displayed in the main content area\n */\n children: ReactNode\n /**\n * Visual status variant of the banner\n */\n status?: 'warning' | 'error'\n}\n\n/**\n * Default prop values for Banner component.\n */\nexport const BannerDefaults = {\n status: 'warning',\n} as const satisfies Partial<BannerProps>\n"],"names":["BannerDefaults"],"mappings":"AAqBO,MAAMA,IAAiB;AAAA,EAC5B,QAAQ;AACV;"}
1
+ {"version":3,"file":"BannerTypes.js","sources":["../../../../../src/components/Common/UI/Banner/BannerTypes.ts"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react'\n\nexport interface BannerProps extends Pick<\n HTMLAttributes<HTMLDivElement>,\n 'className' | 'id' | 'aria-label'\n> {\n /**\n * Title content displayed in the colored header section\n */\n title: ReactNode\n /**\n * Content to be displayed in the main content area\n */\n children: ReactNode\n /**\n * Visual status variant of the banner\n */\n status?: 'warning' | 'error'\n}\n\n/**\n * Default prop values for Banner component.\n */\nexport const BannerDefaults = {\n status: 'warning',\n} as const satisfies Partial<BannerProps>\n"],"names":["BannerDefaults"],"mappings":"AAuBO,MAAMA,IAAiB;AAAA,EAC5B,QAAQ;AACV;"}
@@ -1,9 +1,9 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import h from "classnames";
3
- import { Flex as u } from "../../Flex/Flex.js";
4
3
  import { BreadcrumbsDefaults as k } from "./BreadcrumbsTypes.js";
5
4
  import r from "./Breadcrumbs.module.scss.js";
6
5
  import { applyMissingDefaults as x } from "../../../../helpers/applyMissingDefaults.js";
6
+ import { Flex as u } from "../../Flex/Flex.js";
7
7
  function I(p) {
8
8
  const f = x(p, k), {
9
9
  className: s,
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonTypes.js","sources":["../../../../../src/components/Common/UI/Button/ButtonTypes.ts"],"sourcesContent":["import type { Ref, ButtonHTMLAttributes, ReactNode, FocusEvent } from 'react'\n\nexport interface ButtonProps\n extends Pick<\n ButtonHTMLAttributes<HTMLButtonElement>,\n | 'name'\n | 'id'\n | 'className'\n | 'type'\n | 'onClick'\n | 'onKeyDown'\n | 'onKeyUp'\n | 'aria-label'\n | 'aria-labelledby'\n | 'aria-describedby'\n | 'form'\n | 'title'\n | 'tabIndex'\n > {\n /**\n * React ref for the button element\n */\n buttonRef?: Ref<HTMLButtonElement>\n /**\n * Visual style variant of the button\n */\n variant?: 'primary' | 'secondary' | 'tertiary' | 'error'\n /**\n * Shows a loading spinner and disables the button\n */\n isLoading?: boolean\n /**\n * Disables the button and prevents interaction\n */\n isDisabled?: boolean\n /**\n * Content to be rendered inside the button\n */\n children?: ReactNode\n /**\n * Handler for blur events\n */\n onBlur?: (e: FocusEvent) => void\n /**\n * Handler for focus events\n */\n onFocus?: (e: FocusEvent) => void\n}\n\nexport type ButtonIconProps = ButtonProps & {\n /**\n * Required aria-label for icon buttons to ensure accessibility\n */\n 'aria-label': string\n}\n\n/**\n * Default prop values for Button component.\n * These are used by the component adapter to automatically provide defaults.\n */\nexport const ButtonDefaults = {\n variant: 'primary',\n isLoading: false,\n isDisabled: false,\n} as const satisfies Partial<ButtonProps>\n\n/**\n * Default prop values for ButtonIcon component.\n */\nexport const ButtonIconDefaults = {\n variant: 'tertiary',\n isLoading: false,\n isDisabled: false,\n} as const satisfies Partial<ButtonIconProps>\n"],"names":["ButtonDefaults","ButtonIconDefaults"],"mappings":"AA4DO,MAAMA,IAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AACd,GAKaC,IAAqB;AAAA,EAChC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AACd;"}
1
+ {"version":3,"file":"ButtonTypes.js","sources":["../../../../../src/components/Common/UI/Button/ButtonTypes.ts"],"sourcesContent":["import type { Ref, ButtonHTMLAttributes, ReactNode, FocusEvent } from 'react'\n\nexport interface ButtonProps extends Pick<\n ButtonHTMLAttributes<HTMLButtonElement>,\n | 'name'\n | 'id'\n | 'className'\n | 'type'\n | 'onClick'\n | 'onKeyDown'\n | 'onKeyUp'\n | 'aria-label'\n | 'aria-labelledby'\n | 'aria-describedby'\n | 'form'\n | 'title'\n | 'tabIndex'\n> {\n /**\n * React ref for the button element\n */\n buttonRef?: Ref<HTMLButtonElement>\n /**\n * Visual style variant of the button\n */\n variant?: 'primary' | 'secondary' | 'tertiary' | 'error'\n /**\n * Shows a loading spinner and disables the button\n */\n isLoading?: boolean\n /**\n * Disables the button and prevents interaction\n */\n isDisabled?: boolean\n /**\n * Content to be rendered inside the button\n */\n children?: ReactNode\n /**\n * Handler for blur events\n */\n onBlur?: (e: FocusEvent) => void\n /**\n * Handler for focus events\n */\n onFocus?: (e: FocusEvent) => void\n}\n\nexport type ButtonIconProps = ButtonProps & {\n /**\n * Required aria-label for icon buttons to ensure accessibility\n */\n 'aria-label': string\n}\n\n/**\n * Default prop values for Button component.\n * These are used by the component adapter to automatically provide defaults.\n */\nexport const ButtonDefaults = {\n variant: 'primary',\n isLoading: false,\n isDisabled: false,\n} as const satisfies Partial<ButtonProps>\n\n/**\n * Default prop values for ButtonIcon component.\n */\nexport const ButtonIconDefaults = {\n variant: 'tertiary',\n isLoading: false,\n isDisabled: false,\n} as const satisfies Partial<ButtonIconProps>\n"],"names":["ButtonDefaults","ButtonIconDefaults"],"mappings":"AA2DO,MAAMA,IAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AACd,GAKaC,IAAqB;AAAA,EAChC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AACd;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxTypes.js","sources":["../../../../../src/components/Common/UI/Checkbox/CheckboxTypes.ts"],"sourcesContent":["import type { InputHTMLAttributes, Ref } from 'react'\nimport type { SharedHorizontalFieldLayoutProps } from '@/components/Common/HorizontalFieldLayout/HorizontalFieldLayoutTypes'\n\nexport interface CheckboxProps\n extends SharedHorizontalFieldLayoutProps,\n Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'id' | 'className'> {\n /**\n * Current checked state of the checkbox\n */\n value?: boolean\n /**\n * Callback when checkbox state changes\n */\n onChange?: (value: boolean) => void\n /**\n * React ref for the checkbox input element\n */\n inputRef?: Ref<HTMLInputElement>\n /**\n * Indicates if the checkbox is in an invalid state\n */\n isInvalid?: boolean\n /**\n * Disables the checkbox and prevents interaction\n */\n isDisabled?: boolean\n /**\n * Handler for blur events\n */\n onBlur?: () => void\n}\n\n/**\n * Default prop values for Checkbox component.\n */\nexport const CheckboxDefaults = {\n isInvalid: false,\n isDisabled: false,\n} as const satisfies Partial<CheckboxProps>\n"],"names":["CheckboxDefaults"],"mappings":"AAmCO,MAAMA,IAAmB;AAAA,EAC9B,WAAW;AAAA,EACX,YAAY;AACd;"}
1
+ {"version":3,"file":"CheckboxTypes.js","sources":["../../../../../src/components/Common/UI/Checkbox/CheckboxTypes.ts"],"sourcesContent":["import type { InputHTMLAttributes, Ref } from 'react'\nimport type { SharedHorizontalFieldLayoutProps } from '@/components/Common/HorizontalFieldLayout/HorizontalFieldLayoutTypes'\n\nexport interface CheckboxProps\n extends\n SharedHorizontalFieldLayoutProps,\n Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'id' | 'className'> {\n /**\n * Current checked state of the checkbox\n */\n value?: boolean\n /**\n * Callback when checkbox state changes\n */\n onChange?: (value: boolean) => void\n /**\n * React ref for the checkbox input element\n */\n inputRef?: Ref<HTMLInputElement>\n /**\n * Indicates if the checkbox is in an invalid state\n */\n isInvalid?: boolean\n /**\n * Disables the checkbox and prevents interaction\n */\n isDisabled?: boolean\n /**\n * Handler for blur events\n */\n onBlur?: () => void\n}\n\n/**\n * Default prop values for Checkbox component.\n */\nexport const CheckboxDefaults = {\n isInvalid: false,\n isDisabled: false,\n} as const satisfies Partial<CheckboxProps>\n"],"names":["CheckboxDefaults"],"mappings":"AAoCO,MAAMA,IAAmB;AAAA,EAC9B,WAAW;AAAA,EACX,YAAY;AACd;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroupTypes.js","sources":["../../../../../src/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.ts"],"sourcesContent":["import type { FieldsetHTMLAttributes, Ref } from 'react'\nimport type { SharedFieldLayoutProps } from '@/components/Common/FieldLayout/FieldLayoutTypes'\n\nexport interface CheckboxGroupOption {\n /**\n * Label text or content for the checkbox option\n */\n label: React.ReactNode\n /**\n * Value of the option that will be passed to onChange\n */\n value: string\n /**\n * Disables this specific checkbox option\n */\n isDisabled?: boolean\n /**\n * Optional description text for the checkbox option\n */\n description?: React.ReactNode\n}\n\nexport interface CheckboxGroupProps\n extends SharedFieldLayoutProps,\n Pick<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'className'> {\n /**\n * Indicates if the checkbox group is in an invalid state\n */\n isInvalid?: boolean\n /**\n * Disables all checkbox options in the group\n */\n isDisabled?: boolean\n /**\n * Array of checkbox options to display\n */\n options: Array<CheckboxGroupOption>\n /**\n * Array of currently selected values\n */\n value?: string[]\n /**\n * Callback when selection changes\n */\n onChange?: (value: string[]) => void\n /**\n * React ref for the first checkbox input element\n */\n inputRef?: Ref<HTMLInputElement>\n}\n\n/**\n * Default prop values for CheckboxGroup component.\n */\nexport const CheckboxGroupDefaults = {\n isRequired: false,\n isInvalid: false,\n isDisabled: false,\n shouldVisuallyHideLabel: false,\n} as const satisfies Partial<CheckboxGroupProps>\n"],"names":["CheckboxGroupDefaults"],"mappings":"AAsDO,MAAMA,IAAwB;AAAA,EACnC,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,yBAAyB;AAC3B;"}
1
+ {"version":3,"file":"CheckboxGroupTypes.js","sources":["../../../../../src/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.ts"],"sourcesContent":["import type { FieldsetHTMLAttributes, Ref } from 'react'\nimport type { SharedFieldLayoutProps } from '@/components/Common/FieldLayout/FieldLayoutTypes'\n\nexport interface CheckboxGroupOption {\n /**\n * Label text or content for the checkbox option\n */\n label: React.ReactNode\n /**\n * Value of the option that will be passed to onChange\n */\n value: string\n /**\n * Disables this specific checkbox option\n */\n isDisabled?: boolean\n /**\n * Optional description text for the checkbox option\n */\n description?: React.ReactNode\n}\n\nexport interface CheckboxGroupProps\n extends SharedFieldLayoutProps, Pick<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'className'> {\n /**\n * Indicates if the checkbox group is in an invalid state\n */\n isInvalid?: boolean\n /**\n * Disables all checkbox options in the group\n */\n isDisabled?: boolean\n /**\n * Array of checkbox options to display\n */\n options: Array<CheckboxGroupOption>\n /**\n * Array of currently selected values\n */\n value?: string[]\n /**\n * Callback when selection changes\n */\n onChange?: (value: string[]) => void\n /**\n * React ref for the first checkbox input element\n */\n inputRef?: Ref<HTMLInputElement>\n}\n\n/**\n * Default prop values for CheckboxGroup component.\n */\nexport const CheckboxGroupDefaults = {\n isRequired: false,\n isInvalid: false,\n isDisabled: false,\n shouldVisuallyHideLabel: false,\n} as const satisfies Partial<CheckboxGroupProps>\n"],"names":["CheckboxGroupDefaults"],"mappings":"AAqDO,MAAMA,IAAwB;AAAA,EACnC,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,yBAAyB;AAC3B;"}