@gusto/embedded-react-sdk 0.31.0-rc.5 → 0.31.1-rc.1

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 (375) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/assets/icons/icon-arrow-right.svg.js +10 -0
  3. package/dist/assets/icons/icon-arrow-right.svg.js.map +1 -0
  4. package/dist/components/Base/Base.js +12 -13
  5. package/dist/components/Base/Base.js.map +1 -1
  6. package/dist/components/Common/DataView/DataView.js +1 -1
  7. package/dist/components/Common/DocumentList/DocumentList.js +1 -1
  8. package/dist/components/Common/DocumentViewer/DocumentViewer.js +1 -1
  9. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +1 -1
  10. package/dist/components/Common/RequirementsList/RequirementsList.js +1 -1
  11. package/dist/components/Common/RequirementsList/RequirementsList.js.map +1 -1
  12. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  13. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -12
  14. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  15. package/dist/components/Common/SignatureForm/SignatureFormActions.js +2 -3
  16. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  17. package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -7
  18. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  19. package/dist/components/Common/UI/Box/Box.d.ts +2 -0
  20. package/dist/components/Common/UI/Box/Box.js +13 -0
  21. package/dist/components/Common/UI/Box/Box.js.map +1 -0
  22. package/dist/components/Common/UI/Box/Box.module.scss.js +12 -0
  23. package/dist/components/Common/UI/Box/Box.module.scss.js.map +1 -0
  24. package/dist/components/Common/UI/Box/BoxTypes.d.ts +15 -0
  25. package/dist/components/Common/UI/Box/index.d.ts +2 -0
  26. package/dist/components/Common/UI/Dialog/Dialog.js +1 -1
  27. package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
  28. package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
  29. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  30. package/dist/components/Common/UI/Modal/Modal.js +1 -1
  31. package/dist/components/Common/UI/Tabs/Tabs.js +1 -1
  32. package/dist/components/Common/UI/TextInput/TextInput.js +30 -28
  33. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  34. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  35. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/AssignSignatory.js +2 -3
  37. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  38. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
  39. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  40. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
  41. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  42. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
  43. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  44. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  45. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
  46. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  47. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
  48. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  49. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  50. package/dist/components/Company/AssignSignatory/TitleSelect.js +4 -6
  51. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  52. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  53. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  54. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
  55. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  56. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +4 -6
  57. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  58. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  59. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  60. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +2 -3
  61. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  62. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +6 -7
  63. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  64. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -6
  65. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  66. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
  67. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  68. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +8 -9
  69. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  70. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  71. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  72. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +3 -4
  73. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  74. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  75. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  76. package/dist/components/Company/FederalTaxes/Actions.js +6 -7
  77. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  78. package/dist/components/Company/FederalTaxes/FederalTaxes.js +3 -4
  79. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  80. package/dist/components/Company/FederalTaxes/Form.js +2 -4
  81. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  82. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
  83. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  84. package/dist/components/Company/Industry/Actions.js +7 -8
  85. package/dist/components/Company/Industry/Actions.js.map +1 -1
  86. package/dist/components/Company/Industry/Context.js +6 -7
  87. package/dist/components/Company/Industry/Context.js.map +1 -1
  88. package/dist/components/Company/Industry/Edit.js +2 -3
  89. package/dist/components/Company/Industry/Edit.js.map +1 -1
  90. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
  91. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  92. package/dist/components/Company/Locations/LocationForm/LocationForm.js +3 -4
  93. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  94. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  95. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  96. package/dist/components/Company/Locations/LocationsList/Actions.js +2 -3
  97. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  98. package/dist/components/Company/Locations/LocationsList/List.js +6 -7
  99. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  100. package/dist/components/Company/Locations/LocationsList/LocationsList.js +3 -4
  101. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  102. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  103. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  104. package/dist/components/Company/OnboardingOverview/Completed.js +10 -12
  105. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  106. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +37 -28
  107. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  108. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +7 -8
  109. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  110. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  111. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  112. package/dist/components/Company/PaySchedule/PaySchedule.js +3 -4
  113. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  114. package/dist/components/Company/PaySchedule/_parts/Actions.js +2 -3
  115. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  116. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -13
  117. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  118. package/dist/components/Company/PaySchedule/_parts/List.js +13 -15
  119. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  120. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
  121. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  122. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
  123. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  124. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  125. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  126. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
  127. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  128. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +2 -3
  129. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  130. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  131. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  132. package/dist/components/Company/index.js +20 -20
  133. package/dist/components/Contractor/Address/Address.js +6 -8
  134. package/dist/components/Contractor/Address/Address.js.map +1 -1
  135. package/dist/components/Contractor/Address/useAddress.js +5 -6
  136. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  137. package/dist/components/Contractor/ContractorList/index.js +31 -32
  138. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  139. package/dist/components/Contractor/NewHireReport/NewHireReport.js +13 -14
  140. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  141. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -11
  142. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  143. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  144. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  145. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
  146. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  147. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +2 -4
  148. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  149. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +7 -9
  150. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  151. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
  152. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  153. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +0 -1
  154. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  155. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +2 -4
  156. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  157. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
  158. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  159. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
  160. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  161. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -4
  162. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  163. package/dist/components/Contractor/Profile/useContractorProfile.js +2 -3
  164. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  165. package/dist/components/Contractor/Submit/Submit.js +20 -21
  166. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  167. package/dist/components/Employee/Compensation/Actions.js +12 -13
  168. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  169. package/dist/components/Employee/Compensation/Edit.js +2 -3
  170. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  171. package/dist/components/Employee/Compensation/List.js +22 -23
  172. package/dist/components/Employee/Compensation/List.js.map +1 -1
  173. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +3 -4
  174. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  175. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +3 -4
  176. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  177. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +3 -4
  178. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  179. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +7 -8
  180. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  181. package/dist/components/Employee/Deductions/stateMachine.js +1 -1
  182. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +5 -6
  183. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  184. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +2 -3
  185. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  186. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -4
  187. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  188. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  189. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  190. package/dist/components/Employee/DocumentSigner/DocumentSigner.js +9 -9
  191. package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
  192. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +45 -43
  193. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  194. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +147 -110
  195. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  196. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  197. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  198. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  199. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  200. package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.d.ts +1 -0
  201. package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  202. package/dist/components/Employee/DocumentSigner/stateMachine.js +34 -22
  203. package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -1
  204. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +2 -4
  205. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  206. package/dist/components/Employee/EmployeeList/Actions.js +6 -7
  207. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  208. package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -4
  209. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  210. package/dist/components/Employee/EmployeeList/Head.js +5 -7
  211. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  212. package/dist/components/Employee/EmployeeList/List.js +2 -3
  213. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  214. package/dist/components/Employee/EmployeeList/useEmployeeList.js +3 -4
  215. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  216. package/dist/components/Employee/FederalTaxes/Actions.js +5 -6
  217. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  218. package/dist/components/Employee/FederalTaxes/FederalForm.js +4 -5
  219. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  220. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
  221. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  222. package/dist/components/Employee/Landing/Landing.js +49 -45
  223. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  224. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  225. package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
  226. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  227. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -3
  228. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  229. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +2 -3
  230. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  231. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +5 -6
  232. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  233. package/dist/components/Employee/PaymentMethod/Split.js +2 -3
  234. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  235. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
  236. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  237. package/dist/components/Employee/Profile/Actions.js +5 -6
  238. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  239. package/dist/components/Employee/Profile/AdminPersonalDetails.js +7 -8
  240. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  241. package/dist/components/Employee/Profile/useProfile.js +3 -4
  242. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  243. package/dist/components/Employee/StateTaxes/Actions.js +5 -6
  244. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  245. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
  246. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  247. package/dist/components/Employee/Taxes/Actions.js +6 -7
  248. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  249. package/dist/components/Employee/Taxes/FederalForm.js +6 -7
  250. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  251. package/dist/components/Employee/Taxes/useTaxes.js +3 -4
  252. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  253. package/dist/components/Employee/index.js +22 -22
  254. package/dist/components/Flow/Flow.js +7 -9
  255. package/dist/components/Flow/Flow.js.map +1 -1
  256. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +9 -10
  257. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  258. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.d.ts +0 -1
  259. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +36 -43
  260. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  261. package/dist/components/InformationRequests/InformationRequests.d.ts +1 -2
  262. package/dist/components/InformationRequests/InformationRequests.js +37 -46
  263. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  264. package/dist/components/InformationRequests/index.js +4 -4
  265. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +0 -1
  266. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  267. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +23 -21
  268. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  269. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.d.ts +2 -0
  270. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +70 -0
  271. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -0
  272. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +2 -0
  273. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +25 -0
  274. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -0
  275. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +13 -0
  276. package/dist/components/Payroll/OffCycleCreation/index.d.ts +3 -0
  277. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.d.ts +2 -0
  278. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js +50 -0
  279. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js.map +1 -0
  280. package/dist/components/Payroll/OffCycleDeductionsSetting/index.d.ts +3 -0
  281. package/dist/components/Payroll/OffCycleDeductionsSetting/types.d.ts +11 -0
  282. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.d.ts +1 -2
  283. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +36 -0
  284. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -0
  285. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +12 -0
  286. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js.map +1 -0
  287. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +0 -4
  288. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +48 -0
  289. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -0
  290. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +18 -0
  291. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -0
  292. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +26 -27
  293. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -1
  294. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +3 -3
  295. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +18 -18
  296. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  297. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.d.ts +2 -0
  298. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModalTypes.d.ts +8 -0
  299. package/dist/components/Payroll/OffCycleTaxWithholdingModal/index.d.ts +3 -0
  300. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.d.ts +2 -0
  301. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +17 -0
  302. package/dist/components/Payroll/OffCycleTaxWithholdingTable/index.d.ts +3 -0
  303. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.d.ts +3 -8
  304. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +38 -39
  305. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  306. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +25 -33
  307. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  308. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +1 -0
  309. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +22 -19
  310. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  311. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +26 -26
  312. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  313. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +1 -1
  314. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +14 -16
  315. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  316. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +15 -17
  317. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  318. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +32 -32
  319. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  320. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +18 -20
  321. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  322. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +2 -3
  323. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  324. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +1 -1
  325. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +2 -4
  326. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  327. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -4
  328. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  329. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +3 -4
  330. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  331. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -12
  332. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  333. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -5
  334. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  335. package/dist/components/Payroll/index.d.ts +4 -0
  336. package/dist/components/Payroll/index.js +22 -18
  337. package/dist/components/Payroll/index.js.map +1 -1
  338. package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
  339. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  340. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +48 -46
  341. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  342. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  343. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  344. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  345. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +2 -3
  346. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  347. package/dist/contexts/ThemeProvider/theme.d.ts +1 -0
  348. package/dist/contexts/ThemeProvider/theme.js +1 -0
  349. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  350. package/dist/helpers/dateFormatting.js +61 -45
  351. package/dist/helpers/dateFormatting.js.map +1 -1
  352. package/dist/hooks/useOverflowDetection/useOverflowDetection.js +5 -6
  353. package/dist/i18n/I18n.js +7 -7
  354. package/dist/i18n/I18n.js.map +1 -1
  355. package/dist/i18n/en/Employee.EmployeeDocuments.json.js +1 -1
  356. package/dist/i18n/en/Employee.I9SignatureForm.json.js +83 -65
  357. package/dist/i18n/en/Employee.I9SignatureForm.json.js.map +1 -1
  358. package/dist/i18n/en/Employee.Landing.json.js +7 -9
  359. package/dist/i18n/en/Employee.Landing.json.js.map +1 -1
  360. package/dist/i18n/en/Payroll.OffCycleCreation.json.js +14 -0
  361. package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -0
  362. package/dist/i18n/en/Payroll.OffCycleDeductionsSetting.json.js +12 -0
  363. package/dist/i18n/en/Payroll.OffCycleDeductionsSetting.json.js.map +1 -0
  364. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +18 -0
  365. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js.map +1 -0
  366. package/dist/i18n/en/Payroll.PayrollBlocker.json.js +21 -19
  367. package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -1
  368. package/dist/shared/constants.d.ts +4 -0
  369. package/dist/shared/constants.js +6 -4
  370. package/dist/shared/constants.js.map +1 -1
  371. package/dist/style.css +1 -1
  372. package/dist/types/i18next.d.ts +72 -2
  373. package/package.json +19 -7
  374. package/dist/components/Employee/Landing/Landing.module.scss.js +0 -8
  375. package/dist/components/Employee/Landing/Landing.module.scss.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.31.1
4
+
5
+ ### Fixes
6
+
7
+ - Replace I9 auth query with forms list check in DocumentSigner to fix error boundary retry loop in published builds
8
+ - Updated dev setup to include react-dom
9
+
3
10
  ## 0.31.0
4
11
 
5
12
  ### Features & Enhancements
@@ -0,0 +1,10 @@
1
+ import * as e from "react";
2
+ const n = ({
3
+ title: t,
4
+ titleId: o,
5
+ ...r
6
+ }) => /* @__PURE__ */ e.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": o, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: o }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M4.16666 9.99999H15.8333M15.8333 9.99999L9.99999 4.16666M15.8333 9.99999L9.99999 15.8333", stroke: "#A4A7AE", strokeWidth: 1.66667, strokeLinecap: "round", strokeLinejoin: "round" }));
7
+ export {
8
+ n as default
9
+ };
10
+ //# sourceMappingURL=icon-arrow-right.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-arrow-right.svg.js","sources":["../../../src/assets/icons/icon-arrow-right.svg?react"],"sourcesContent":["import * as React from \"react\";\nconst SvgIconArrowRight = ({\n title,\n titleId,\n ...props\n}) => /* @__PURE__ */ React.createElement(\"svg\", { width: 20, height: 20, viewBox: \"0 0 20 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-labelledby\": titleId, ...props }, title ? /* @__PURE__ */ React.createElement(\"title\", { id: titleId }, title) : null, /* @__PURE__ */ React.createElement(\"path\", { d: \"M4.16666 9.99999H15.8333M15.8333 9.99999L9.99999 4.16666M15.8333 9.99999L9.99999 15.8333\", stroke: \"#A4A7AE\", strokeWidth: 1.66667, strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgIconArrowRight;\n"],"names":["SvgIconArrowRight","title","titleId","props","React"],"mappings":";AACK,MAACA,IAAoB,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,MAAsB,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,mBAAmBF,GAAS,GAAGC,EAAK,GAAIF,IAAwB,gBAAAG,EAAM,cAAc,SAAS,EAAE,IAAIF,KAAWD,CAAK,IAAI,MAAsB,gBAAAG,EAAM,cAAc,QAAQ,EAAE,GAAG,4FAA4F,QAAQ,WAAW,aAAa,SAAS,eAAe,SAAS,gBAAgB,SAAS,CAAC;"}
@@ -9,18 +9,17 @@ import { FadeIn as g } from "../Common/FadeIn/FadeIn.js";
9
9
  import { BaseContext as y } from "./useBase.js";
10
10
  import { useBaseSubmit as b } from "./useBaseSubmit.js";
11
11
  import { componentEvents as R } from "../../shared/constants.js";
12
- import "classnames";
13
12
  import { InternalError as c } from "../Common/InternalError/InternalError.js";
14
13
  import { useComponentContext as S } from "../../contexts/ComponentAdapter/useComponentContext.js";
15
14
  import { useLoadingIndicator as p } from "../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
16
15
  import { renderErrorList as F } from "../../helpers/apiErrorToList.js";
17
- const M = ({
16
+ const J = ({
18
17
  children: i,
19
18
  FallbackComponent: o = c,
20
19
  LoaderComponent: n,
21
20
  onEvent: t
22
21
  }) => {
23
- const { error: e, fieldErrors: m, baseSubmitHandler: s, setError: u } = b(), { LoadingIndicator: f } = p(), a = n ?? f, l = (L) => {
22
+ const { error: e, fieldErrors: s, baseSubmitHandler: a, setError: u } = b(), { LoadingIndicator: f } = p(), m = n ?? f, l = (L) => {
24
23
  t(R.ERROR, L);
25
24
  };
26
25
  return /* @__PURE__ */ r(
@@ -28,19 +27,19 @@ const M = ({
28
27
  {
29
28
  value: {
30
29
  error: e,
31
- fieldErrors: m,
30
+ fieldErrors: s,
32
31
  setError: u,
33
32
  onEvent: t,
34
- baseSubmitHandler: s,
35
- LoadingIndicator: a
33
+ baseSubmitHandler: a,
34
+ LoadingIndicator: m
36
35
  },
37
36
  children: /* @__PURE__ */ r(
38
37
  j,
39
38
  {
40
39
  FallbackComponent: o,
41
- LoaderComponent: a,
40
+ LoaderComponent: m,
42
41
  onErrorBoundaryError: l,
43
- children: /* @__PURE__ */ r(T, { error: e, fieldErrors: m, children: i })
42
+ children: /* @__PURE__ */ r(T, { error: e, fieldErrors: s, children: i })
44
43
  }
45
44
  )
46
45
  }
@@ -61,20 +60,20 @@ const M = ({
61
60
  LoaderComponent: n,
62
61
  onErrorBoundaryError: t
63
62
  }) => {
64
- const { LoadingIndicator: e } = p(), m = n ?? e;
65
- return /* @__PURE__ */ r(h, { children: ({ reset: s }) => /* @__PURE__ */ r(
63
+ const { LoadingIndicator: e } = p(), s = n ?? e;
64
+ return /* @__PURE__ */ r(h, { children: ({ reset: a }) => /* @__PURE__ */ r(
66
65
  E,
67
66
  {
68
67
  FallbackComponent: o,
69
- onReset: s,
68
+ onReset: a,
70
69
  onError: t,
71
- children: /* @__PURE__ */ r(C, { fallback: /* @__PURE__ */ r(m, {}), children: i })
70
+ children: /* @__PURE__ */ r(C, { fallback: /* @__PURE__ */ r(s, {}), children: i })
72
71
  }
73
72
  ) });
74
73
  };
75
74
  export {
76
75
  j as BaseBoundaries,
77
- M as BaseComponent,
76
+ J as BaseComponent,
78
77
  T as BaseLayout
79
78
  };
80
79
  //# sourceMappingURL=Base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Base.js","sources":["../../../src/components/Base/Base.tsx"],"sourcesContent":["import type { ReactNode, JSX, ErrorInfo } from 'react'\nimport { Suspense } from 'react'\nimport type { FallbackProps } from 'react-error-boundary'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport { useTranslation } from 'react-i18next'\nimport { APIError } from '@gusto/embedded-api/models/errors/apierror'\nimport { SDKValidationError } from '@gusto/embedded-api/models/errors/sdkvalidationerror'\nimport { QueryErrorResetBoundary } from '@tanstack/react-query'\nimport type { EntityErrorObject } from '@gusto/embedded-api/models/components/entityerrorobject'\nimport { FadeIn } from '../Common/FadeIn/FadeIn'\nimport { BaseContext, type KnownErrors, type OnEventType } from './useBase'\nimport { useBaseSubmit } from './useBaseSubmit'\nimport { componentEvents, type EventType } from '@/shared/constants'\nimport { InternalError } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\nimport { useLoadingIndicator } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\nimport type { LoadingIndicatorContextProps } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\nimport { renderErrorList } from '@/helpers/apiErrorToList'\n\nexport interface CommonComponentInterface<TResourceKey extends keyof Resources = keyof Resources> {\n children?: ReactNode\n className?: string\n defaultValues?: unknown\n dictionary?: ResourceDictionary<TResourceKey>\n}\n\n// Base component wrapper with error and suspense handling\nexport interface BaseComponentInterface<\n TResourceKey extends keyof Resources = keyof Resources,\n> extends CommonComponentInterface<TResourceKey> {\n FallbackComponent?: BaseBoundariesProps['FallbackComponent']\n LoaderComponent?: BaseBoundariesProps['LoaderComponent']\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport const BaseComponent = <TResourceKey extends keyof Resources = keyof Resources>({\n children,\n FallbackComponent = InternalError,\n LoaderComponent: LoadingIndicatorFromProps,\n onEvent,\n}: BaseComponentInterface<TResourceKey>) => {\n const { error, fieldErrors, baseSubmitHandler, setError } = useBaseSubmit()\n\n const { LoadingIndicator: LoadingIndicatorFromContext } = useLoadingIndicator()\n const LoaderComponent = LoadingIndicatorFromProps ?? LoadingIndicatorFromContext\n\n const onErrorBoundaryError = (error: unknown) => {\n onEvent(componentEvents.ERROR, error)\n }\n\n return (\n <BaseContext.Provider\n value={{\n error,\n fieldErrors,\n setError,\n onEvent,\n baseSubmitHandler,\n LoadingIndicator: LoaderComponent,\n }}\n >\n <BaseBoundaries\n FallbackComponent={FallbackComponent}\n LoaderComponent={LoaderComponent}\n onErrorBoundaryError={onErrorBoundaryError}\n >\n <BaseLayout error={error} fieldErrors={fieldErrors}>\n {children}\n </BaseLayout>\n </BaseBoundaries>\n </BaseContext.Provider>\n )\n}\n\ninterface BaseLayoutProps {\n children?: ReactNode\n error: KnownErrors | null\n fieldErrors: Array<EntityErrorObject> | null\n}\n\nexport const BaseLayout = ({ children, error, fieldErrors }: BaseLayoutProps) => {\n const Components = useComponentContext()\n const { t } = useTranslation()\n\n return (\n <FadeIn>\n {(error || fieldErrors) && (\n <Components.Alert label={t('status.errorEncountered')} status=\"error\">\n {fieldErrors && <Components.UnorderedList items={renderErrorList(fieldErrors)} />}\n {error && error instanceof APIError && <Components.Text>{error.message}</Components.Text>}\n {error && error instanceof SDKValidationError && (\n <Components.Text as=\"pre\">{error.pretty()}</Components.Text>\n )}\n </Components.Alert>\n )}\n {children}\n </FadeIn>\n )\n}\n\nexport interface BaseBoundariesProps {\n children?: ReactNode\n FallbackComponent?: (props: FallbackProps) => JSX.Element\n LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']\n onErrorBoundaryError?: (error: unknown, info: ErrorInfo) => void\n}\n\nexport const BaseBoundaries = ({\n children,\n FallbackComponent = InternalError,\n LoaderComponent: LoadingIndicatorFromProps,\n onErrorBoundaryError,\n}: BaseBoundariesProps) => {\n const { LoadingIndicator: LoadingIndicatorFromContext } = useLoadingIndicator()\n const LoaderComponent = LoadingIndicatorFromProps ?? LoadingIndicatorFromContext\n\n return (\n <QueryErrorResetBoundary>\n {({ reset: resetQueries }) => (\n <ErrorBoundary\n FallbackComponent={FallbackComponent}\n onReset={resetQueries}\n onError={onErrorBoundaryError}\n >\n <Suspense fallback={<LoaderComponent />}>{children}</Suspense>\n </ErrorBoundary>\n )}\n </QueryErrorResetBoundary>\n )\n}\n"],"names":["BaseComponent","children","FallbackComponent","InternalError","LoadingIndicatorFromProps","onEvent","error","fieldErrors","baseSubmitHandler","setError","useBaseSubmit","LoadingIndicatorFromContext","useLoadingIndicator","LoaderComponent","onErrorBoundaryError","componentEvents","jsx","BaseContext","BaseBoundaries","BaseLayout","Components","useComponentContext","t","useTranslation","FadeIn","jsxs","renderErrorList","APIError","SDKValidationError","QueryErrorResetBoundary","resetQueries","ErrorBoundary","Suspense"],"mappings":";;;;;;;;;;;;;;;;AAoCO,MAAMA,IAAgB,CAAyD;AAAA,EACpF,UAAAC;AAAA,EACA,mBAAAC,IAAoBC;AAAA,EACpB,iBAAiBC;AAAA,EACjB,SAAAC;AACF,MAA4C;AAC1C,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,mBAAAC,GAAmB,UAAAC,EAAA,IAAaC,EAAA,GAEtD,EAAE,kBAAkBC,EAAA,IAAgCC,EAAA,GACpDC,IAAkBT,KAA6BO,GAE/CG,IAAuB,CAACR,MAAmB;AAC/C,IAAAD,EAAQU,EAAgB,OAAOT,CAAK;AAAA,EACtC;AAEA,SACE,gBAAAU;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,OAAO;AAAA,QACL,OAAAX;AAAA,QACA,aAAAC;AAAA,QACA,UAAAE;AAAA,QACA,SAAAJ;AAAA,QACA,mBAAAG;AAAA,QACA,kBAAkBK;AAAA,MAAA;AAAA,MAGpB,UAAA,gBAAAG;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,mBAAAhB;AAAA,UACA,iBAAAW;AAAA,UACA,sBAAAC;AAAA,UAEA,UAAA,gBAAAE,EAACG,GAAA,EAAW,OAAAb,GAAc,aAAAC,GACvB,UAAAN,EAAA,CACH;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN,GAQakB,IAAa,CAAC,EAAE,UAAAlB,GAAU,OAAAK,GAAO,aAAAC,QAAmC;AAC/E,QAAMa,IAAaC,EAAA,GACb,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,2BACGC,GAAA,EACG,UAAA;AAAA,KAAAlB,KAASC,MACT,gBAAAkB,EAACL,EAAW,OAAX,EAAiB,OAAOE,EAAE,yBAAyB,GAAG,QAAO,SAC3D,UAAA;AAAA,MAAAf,uBAAgBa,EAAW,eAAX,EAAyB,OAAOM,EAAgBnB,CAAW,GAAG;AAAA,MAC9ED,KAASA,aAAiBqB,KAAY,gBAAAX,EAACI,EAAW,MAAX,EAAiB,YAAM,SAAQ;AAAA,MACtEd,KAASA,aAAiBsB,KACzB,gBAAAZ,EAACI,EAAW,MAAX,EAAgB,IAAG,OAAO,UAAAd,EAAM,OAAA,EAAO,CAAE;AAAA,IAAA,GAE9C;AAAA,IAEDL;AAAA,EAAA,GACH;AAEJ,GASaiB,IAAiB,CAAC;AAAA,EAC7B,UAAAjB;AAAA,EACA,mBAAAC,IAAoBC;AAAA,EACpB,iBAAiBC;AAAA,EACjB,sBAAAU;AACF,MAA2B;AACzB,QAAM,EAAE,kBAAkBH,EAAA,IAAgCC,EAAA,GACpDC,IAAkBT,KAA6BO;AAErD,2BACGkB,GAAA,EACE,UAAA,CAAC,EAAE,OAAOC,QACT,gBAAAd;AAAA,IAACe;AAAA,IAAA;AAAA,MACC,mBAAA7B;AAAA,MACA,SAAS4B;AAAA,MACT,SAAShB;AAAA,MAET,4BAACkB,GAAA,EAAS,UAAU,gBAAAhB,EAACH,GAAA,EAAgB,GAAK,UAAAZ,EAAA,CAAS;AAAA,IAAA;AAAA,EAAA,GAGzD;AAEJ;"}
1
+ {"version":3,"file":"Base.js","sources":["../../../src/components/Base/Base.tsx"],"sourcesContent":["import type { ReactNode, JSX, ErrorInfo } from 'react'\nimport { Suspense } from 'react'\nimport type { FallbackProps } from 'react-error-boundary'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport { useTranslation } from 'react-i18next'\nimport { APIError } from '@gusto/embedded-api/models/errors/apierror'\nimport { SDKValidationError } from '@gusto/embedded-api/models/errors/sdkvalidationerror'\nimport { QueryErrorResetBoundary } from '@tanstack/react-query'\nimport type { EntityErrorObject } from '@gusto/embedded-api/models/components/entityerrorobject'\nimport { FadeIn } from '../Common/FadeIn/FadeIn'\nimport { BaseContext, type KnownErrors, type OnEventType } from './useBase'\nimport { useBaseSubmit } from './useBaseSubmit'\nimport { componentEvents, type EventType } from '@/shared/constants'\nimport { InternalError } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\nimport { useLoadingIndicator } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\nimport type { LoadingIndicatorContextProps } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\nimport { renderErrorList } from '@/helpers/apiErrorToList'\n\nexport interface CommonComponentInterface<TResourceKey extends keyof Resources = keyof Resources> {\n children?: ReactNode\n className?: string\n defaultValues?: unknown\n dictionary?: ResourceDictionary<TResourceKey>\n}\n\n// Base component wrapper with error and suspense handling\nexport interface BaseComponentInterface<\n TResourceKey extends keyof Resources = keyof Resources,\n> extends CommonComponentInterface<TResourceKey> {\n FallbackComponent?: BaseBoundariesProps['FallbackComponent']\n LoaderComponent?: BaseBoundariesProps['LoaderComponent']\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport const BaseComponent = <TResourceKey extends keyof Resources = keyof Resources>({\n children,\n FallbackComponent = InternalError,\n LoaderComponent: LoadingIndicatorFromProps,\n onEvent,\n}: BaseComponentInterface<TResourceKey>) => {\n const { error, fieldErrors, baseSubmitHandler, setError } = useBaseSubmit()\n\n const { LoadingIndicator: LoadingIndicatorFromContext } = useLoadingIndicator()\n const LoaderComponent = LoadingIndicatorFromProps ?? LoadingIndicatorFromContext\n\n const onErrorBoundaryError = (error: unknown) => {\n onEvent(componentEvents.ERROR, error)\n }\n\n return (\n <BaseContext.Provider\n value={{\n error,\n fieldErrors,\n setError,\n onEvent,\n baseSubmitHandler,\n LoadingIndicator: LoaderComponent,\n }}\n >\n <BaseBoundaries\n FallbackComponent={FallbackComponent}\n LoaderComponent={LoaderComponent}\n onErrorBoundaryError={onErrorBoundaryError}\n >\n <BaseLayout error={error} fieldErrors={fieldErrors}>\n {children}\n </BaseLayout>\n </BaseBoundaries>\n </BaseContext.Provider>\n )\n}\n\ninterface BaseLayoutProps {\n children?: ReactNode\n error: KnownErrors | null\n fieldErrors: Array<EntityErrorObject> | null\n}\n\nexport const BaseLayout = ({ children, error, fieldErrors }: BaseLayoutProps) => {\n const Components = useComponentContext()\n const { t } = useTranslation()\n\n return (\n <FadeIn>\n {(error || fieldErrors) && (\n <Components.Alert label={t('status.errorEncountered')} status=\"error\">\n {fieldErrors && <Components.UnorderedList items={renderErrorList(fieldErrors)} />}\n {error && error instanceof APIError && <Components.Text>{error.message}</Components.Text>}\n {error && error instanceof SDKValidationError && (\n <Components.Text as=\"pre\">{error.pretty()}</Components.Text>\n )}\n </Components.Alert>\n )}\n {children}\n </FadeIn>\n )\n}\n\nexport interface BaseBoundariesProps {\n children?: ReactNode\n FallbackComponent?: (props: FallbackProps) => JSX.Element\n LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']\n onErrorBoundaryError?: (error: unknown, info: ErrorInfo) => void\n}\n\nexport const BaseBoundaries = ({\n children,\n FallbackComponent = InternalError,\n LoaderComponent: LoadingIndicatorFromProps,\n onErrorBoundaryError,\n}: BaseBoundariesProps) => {\n const { LoadingIndicator: LoadingIndicatorFromContext } = useLoadingIndicator()\n const LoaderComponent = LoadingIndicatorFromProps ?? LoadingIndicatorFromContext\n\n return (\n <QueryErrorResetBoundary>\n {({ reset: resetQueries }) => (\n <ErrorBoundary\n FallbackComponent={FallbackComponent}\n onReset={resetQueries}\n onError={onErrorBoundaryError}\n >\n <Suspense fallback={<LoaderComponent />}>{children}</Suspense>\n </ErrorBoundary>\n )}\n </QueryErrorResetBoundary>\n )\n}\n"],"names":["BaseComponent","children","FallbackComponent","InternalError","LoadingIndicatorFromProps","onEvent","error","fieldErrors","baseSubmitHandler","setError","useBaseSubmit","LoadingIndicatorFromContext","useLoadingIndicator","LoaderComponent","onErrorBoundaryError","componentEvents","jsx","BaseContext","BaseBoundaries","BaseLayout","Components","useComponentContext","t","useTranslation","FadeIn","jsxs","renderErrorList","APIError","SDKValidationError","QueryErrorResetBoundary","resetQueries","ErrorBoundary","Suspense"],"mappings":";;;;;;;;;;;;;;;AAoCO,MAAMA,IAAgB,CAAyD;AAAA,EACpF,UAAAC;AAAA,EACA,mBAAAC,IAAoBC;AAAA,EACpB,iBAAiBC;AAAA,EACjB,SAAAC;AACF,MAA4C;AAC1C,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,mBAAAC,GAAmB,UAAAC,EAAA,IAAaC,EAAA,GAEtD,EAAE,kBAAkBC,EAAA,IAAgCC,EAAA,GACpDC,IAAkBT,KAA6BO,GAE/CG,IAAuB,CAACR,MAAmB;AAC/C,IAAAD,EAAQU,EAAgB,OAAOT,CAAK;AAAA,EACtC;AAEA,SACE,gBAAAU;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,OAAO;AAAA,QACL,OAAAX;AAAA,QACA,aAAAC;AAAA,QACA,UAAAE;AAAA,QACA,SAAAJ;AAAA,QACA,mBAAAG;AAAA,QACA,kBAAkBK;AAAA,MAAA;AAAA,MAGpB,UAAA,gBAAAG;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,mBAAAhB;AAAA,UACA,iBAAAW;AAAA,UACA,sBAAAC;AAAA,UAEA,UAAA,gBAAAE,EAACG,GAAA,EAAW,OAAAb,GAAc,aAAAC,GACvB,UAAAN,EAAA,CACH;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN,GAQakB,IAAa,CAAC,EAAE,UAAAlB,GAAU,OAAAK,GAAO,aAAAC,QAAmC;AAC/E,QAAMa,IAAaC,EAAA,GACb,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,2BACGC,GAAA,EACG,UAAA;AAAA,KAAAlB,KAASC,MACT,gBAAAkB,EAACL,EAAW,OAAX,EAAiB,OAAOE,EAAE,yBAAyB,GAAG,QAAO,SAC3D,UAAA;AAAA,MAAAf,uBAAgBa,EAAW,eAAX,EAAyB,OAAOM,EAAgBnB,CAAW,GAAG;AAAA,MAC9ED,KAASA,aAAiBqB,KAAY,gBAAAX,EAACI,EAAW,MAAX,EAAiB,YAAM,SAAQ;AAAA,MACtEd,KAASA,aAAiBsB,KACzB,gBAAAZ,EAACI,EAAW,MAAX,EAAgB,IAAG,OAAO,UAAAd,EAAM,OAAA,EAAO,CAAE;AAAA,IAAA,GAE9C;AAAA,IAEDL;AAAA,EAAA,GACH;AAEJ,GASaiB,IAAiB,CAAC;AAAA,EAC7B,UAAAjB;AAAA,EACA,mBAAAC,IAAoBC;AAAA,EACpB,iBAAiBC;AAAA,EACjB,sBAAAU;AACF,MAA2B;AACzB,QAAM,EAAE,kBAAkBH,EAAA,IAAgCC,EAAA,GACpDC,IAAkBT,KAA6BO;AAErD,2BACGkB,GAAA,EACE,UAAA,CAAC,EAAE,OAAOC,QACT,gBAAAd;AAAA,IAACe;AAAA,IAAA;AAAA,MACC,mBAAA7B;AAAA,MACA,SAAS4B;AAAA,MACT,SAAShB;AAAA,MAET,4BAACkB,GAAA,EAAS,UAAU,gBAAAhB,EAACH,GAAA,EAAgB,GAAK,UAAAZ,EAAA,CAAS;AAAA,IAAA;AAAA,EAAA,GAGzD;AAEJ;"}
@@ -4,7 +4,7 @@ import { PaginationControl as w } from "../PaginationControl/PaginationControl.j
4
4
  import x from "./DataView.module.scss.js";
5
5
  import { DataTable as h } from "./DataTable/DataTable.js";
6
6
  import { DataCards as j } from "./DataCards/DataCards.js";
7
- import { useContainerBreakpoints as v } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
7
+ import v from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
8
8
  const P = ({
9
9
  pagination: t,
10
10
  isFetching: s,
@@ -1,4 +1,4 @@
1
- import { jsxs as g, jsx as t, Fragment as h } from "react/jsx-runtime";
1
+ import { jsxs as g, Fragment as h, jsx as t } from "react/jsx-runtime";
2
2
  import { EmptyData as f } from "../EmptyData/EmptyData.js";
3
3
  import n from "./DocumentList.module.scss.js";
4
4
  import { useComponentContext as x } from "../../../contexts/ComponentAdapter/useComponentContext.js";
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
2
  import { useRef as p } from "react";
3
3
  import { Flex as i } from "../Flex/Flex.js";
4
4
  import n from "./DocumentViewer.module.scss.js";
5
- import { useContainerBreakpoints as h } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
5
+ import h from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
6
6
  import { useComponentContext as u } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
7
  function k({
8
8
  url: a,
@@ -5,7 +5,7 @@ import { useComponentContext as u } from "../../../contexts/ComponentAdapter/use
5
5
  import { componentEvents as B } from "../../../shared/constants.js";
6
6
  import { useI18n as k } from "../../../i18n/I18n.js";
7
7
  import { useLocale as g } from "../../../contexts/LocaleProvider/useLocale.js";
8
- import { useContainerBreakpoints as R } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
8
+ import R from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
9
9
  import { useDateFormatter as V } from "../../../hooks/useDateFormatter.js";
10
10
  function Y({
11
11
  breadcrumbs: a,
@@ -14,7 +14,7 @@ const N = ({ requirements: n }) => {
14
14
  items: n.sort((t, r) => t.completed ? -1 : 1).map((t, r) => /* @__PURE__ */ s("div", { className: i.listItem, children: [
15
15
  t.completed ? /* @__PURE__ */ e("div", { className: l(i.listItemIcon, i.success), children: /* @__PURE__ */ e(p, { width: 16, height: 16 }) }) : /* @__PURE__ */ e("div", { className: i.listItemIcon, children: r + 1 }),
16
16
  /* @__PURE__ */ s(m, { flexDirection: "column", gap: 0, children: [
17
- /* @__PURE__ */ e(o.Heading, { as: "h4", children: t.title }),
17
+ /* @__PURE__ */ e(o.Text, { size: "md", weight: "medium", children: t.title }),
18
18
  /* @__PURE__ */ e(o.Text, { variant: "supporting", children: t.description })
19
19
  ] })
20
20
  ] }, `${c}-${r}-${t.description}`))
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementsList.js","sources":["../../../../src/components/Common/RequirementsList/RequirementsList.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { useId } from 'react'\nimport { Flex } from '../Flex/Flex'\nimport styles from './RequirementsList.module.scss'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport SuccessCheck from '@/assets/icons/checkbox.svg?react'\n\ninterface RequirementsListProps {\n requirements: {\n title: string\n description: string\n completed: boolean\n }[]\n}\nexport const RequirementsList = ({ requirements }: RequirementsListProps) => {\n const Components = useComponentContext()\n const id = useId()\n\n return (\n <Flex flexDirection=\"column\" alignItems=\"flex-start\" gap={8}>\n <Components.UnorderedList\n className={styles.list}\n items={requirements\n .sort((a, b) => (a.completed ? -1 : 1))\n .map((step, i) => {\n return (\n <div key={`${id}-${i}-${step.description}`} className={styles.listItem}>\n {step.completed ? (\n <div className={classNames(styles.listItemIcon, styles.success)}>\n <SuccessCheck width={16} height={16} />\n </div>\n ) : (\n <div className={styles.listItemIcon}>{i + 1}</div>\n )}\n <Flex flexDirection=\"column\" gap={0}>\n <Components.Heading as=\"h4\">{step.title}</Components.Heading>\n <Components.Text variant=\"supporting\">{step.description}</Components.Text>\n </Flex>\n </div>\n )\n })}\n />\n </Flex>\n )\n}\n"],"names":["RequirementsList","requirements","Components","useComponentContext","id","useId","Flex","jsx","styles","a","b","step","i","jsxs","classNames","SuccessCheck"],"mappings":";;;;;;;AAcO,MAAMA,IAAmB,CAAC,EAAE,cAAAC,QAA0C;AAC3E,QAAMC,IAAaC,EAAA,GACbC,IAAKC,EAAA;AAEX,2BACGC,GAAA,EAAK,eAAc,UAAS,YAAW,cAAa,KAAK,GACxD,UAAA,gBAAAC;AAAA,IAACL,EAAW;AAAA,IAAX;AAAA,MACC,WAAWM,EAAO;AAAA,MAClB,OAAOP,EACJ,KAAK,CAACQ,GAAGC,MAAOD,EAAE,YAAY,KAAK,CAAE,EACrC,IAAI,CAACE,GAAMC,MAER,gBAAAC,EAAC,OAAA,EAA2C,WAAWL,EAAO,UAC3D,UAAA;AAAA,QAAAG,EAAK,YACJ,gBAAAJ,EAAC,OAAA,EAAI,WAAWO,EAAWN,EAAO,cAAcA,EAAO,OAAO,GAC5D,UAAA,gBAAAD,EAACQ,GAAA,EAAa,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACvC,IAEA,gBAAAR,EAAC,SAAI,WAAWC,EAAO,cAAe,UAAAI,IAAI,EAAA,CAAE;AAAA,QAE9C,gBAAAC,EAACP,GAAA,EAAK,eAAc,UAAS,KAAK,GAChC,UAAA;AAAA,UAAA,gBAAAC,EAACL,EAAW,SAAX,EAAmB,IAAG,MAAM,YAAK,OAAM;AAAA,4BACvCA,EAAW,MAAX,EAAgB,SAAQ,cAAc,YAAK,YAAA,CAAY;AAAA,QAAA,EAAA,CAC1D;AAAA,MAAA,KAXQ,GAAGE,CAAE,IAAIQ,CAAC,IAAID,EAAK,WAAW,EAYxC,CAEH;AAAA,IAAA;AAAA,EAAA,GAEP;AAEJ;"}
1
+ {"version":3,"file":"RequirementsList.js","sources":["../../../../src/components/Common/RequirementsList/RequirementsList.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { useId } from 'react'\nimport { Flex } from '../Flex/Flex'\nimport styles from './RequirementsList.module.scss'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport SuccessCheck from '@/assets/icons/checkbox.svg?react'\n\ninterface RequirementsListProps {\n requirements: {\n title: string\n description: string\n completed: boolean\n }[]\n}\nexport const RequirementsList = ({ requirements }: RequirementsListProps) => {\n const Components = useComponentContext()\n const id = useId()\n\n return (\n <Flex flexDirection=\"column\" alignItems=\"flex-start\" gap={8}>\n <Components.UnorderedList\n className={styles.list}\n items={requirements\n .sort((a, b) => (a.completed ? -1 : 1))\n .map((step, i) => {\n return (\n <div key={`${id}-${i}-${step.description}`} className={styles.listItem}>\n {step.completed ? (\n <div className={classNames(styles.listItemIcon, styles.success)}>\n <SuccessCheck width={16} height={16} />\n </div>\n ) : (\n <div className={styles.listItemIcon}>{i + 1}</div>\n )}\n <Flex flexDirection=\"column\" gap={0}>\n <Components.Text size=\"md\" weight=\"medium\">\n {step.title}\n </Components.Text>\n <Components.Text variant=\"supporting\">{step.description}</Components.Text>\n </Flex>\n </div>\n )\n })}\n />\n </Flex>\n )\n}\n"],"names":["RequirementsList","requirements","Components","useComponentContext","id","useId","Flex","jsx","styles","a","b","step","i","jsxs","classNames","SuccessCheck"],"mappings":";;;;;;;AAcO,MAAMA,IAAmB,CAAC,EAAE,cAAAC,QAA0C;AAC3E,QAAMC,IAAaC,EAAA,GACbC,IAAKC,EAAA;AAEX,2BACGC,GAAA,EAAK,eAAc,UAAS,YAAW,cAAa,KAAK,GACxD,UAAA,gBAAAC;AAAA,IAACL,EAAW;AAAA,IAAX;AAAA,MACC,WAAWM,EAAO;AAAA,MAClB,OAAOP,EACJ,KAAK,CAACQ,GAAGC,MAAOD,EAAE,YAAY,KAAK,CAAE,EACrC,IAAI,CAACE,GAAMC,MAER,gBAAAC,EAAC,OAAA,EAA2C,WAAWL,EAAO,UAC3D,UAAA;AAAA,QAAAG,EAAK,YACJ,gBAAAJ,EAAC,OAAA,EAAI,WAAWO,EAAWN,EAAO,cAAcA,EAAO,OAAO,GAC5D,UAAA,gBAAAD,EAACQ,GAAA,EAAa,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACvC,IAEA,gBAAAR,EAAC,SAAI,WAAWC,EAAO,cAAe,UAAAI,IAAI,EAAA,CAAE;AAAA,QAE9C,gBAAAC,EAACP,GAAA,EAAK,eAAc,UAAS,KAAK,GAChC,UAAA;AAAA,UAAA,gBAAAC,EAACL,EAAW,MAAX,EAAgB,MAAK,MAAK,QAAO,UAC/B,YAAK,MAAA,CACR;AAAA,4BACCA,EAAW,MAAX,EAAgB,SAAQ,cAAc,YAAK,YAAA,CAAY;AAAA,QAAA,EAAA,CAC1D;AAAA,MAAA,KAbQ,GAAGE,CAAE,IAAIQ,CAAC,IAAID,EAAK,WAAW,EAcxC,CAEH;AAAA,IAAA;AAAA,EAAA,GAEP;AAEJ;"}
@@ -1,4 +1,4 @@
1
- const s = "_list_1bks2_1", t = "_listItem_1bks2_12", c = "_listItemIcon_1bks2_29", e = "_success_1bks2_42", _ = {
1
+ const s = "_list_1jkqq_1", t = "_listItem_1jkqq_12", c = "_listItemIcon_1jkqq_29", e = "_success_1jkqq_43", _ = {
2
2
  list: s,
3
3
  listItem: t,
4
4
  listItemIcon: c,
@@ -2,30 +2,28 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { z as o } from "zod";
3
3
  import { useForm as s, FormProvider as a } from "react-hook-form";
4
4
  import { zodResolver as l } from "@hookform/resolvers/zod";
5
- import e from "./SignatureForm.module.scss.js";
5
+ import t from "./SignatureForm.module.scss.js";
6
6
  import { Form as u } from "../Form/Form.js";
7
7
  import { Flex as c } from "../Flex/Flex.js";
8
- import "classnames";
9
- import "../../../shared/constants.js";
10
8
  import "react-i18next";
11
9
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
12
10
  import "react";
13
- const p = o.object({
11
+ const f = o.object({
14
12
  signature: o.string().min(1),
15
13
  confirmSignature: o.literal(!0)
16
- }), f = {
14
+ }), p = {
17
15
  signature: ""
18
16
  };
19
- function V({ onSubmit: m, children: i, formProps: n }) {
20
- const t = s({
21
- resolver: l(p),
22
- defaultValues: f,
17
+ function D({ onSubmit: m, children: i, formProps: n }) {
18
+ const e = s({
19
+ resolver: l(f),
20
+ defaultValues: p,
23
21
  ...n
24
22
  });
25
- return /* @__PURE__ */ r(a, { ...t, children: /* @__PURE__ */ r(u, { onSubmit: t.handleSubmit(m), className: e.container, children: /* @__PURE__ */ r("div", { className: e.formFields, children: /* @__PURE__ */ r(c, { flexDirection: "column", gap: 20, children: i }) }) }) });
23
+ 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 }) }) }) });
26
24
  }
27
25
  export {
28
- V as SignatureForm,
29
- p as SignatureFormSchema
26
+ D as SignatureForm,
27
+ f as SignatureFormSchema
30
28
  };
31
29
  //# 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,11 +1,10 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
2
  import "../../../shared/constants.js";
3
- import "classnames";
4
3
  import { ActionsLayout as p } from "../ActionsLayout/ActionsLayout.js";
5
4
  import "react-i18next";
6
5
  import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
6
  import "react";
8
- function y({
7
+ function x({
9
8
  onBack: t,
10
9
  backLabel: r,
11
10
  submitLabel: i,
@@ -18,6 +17,6 @@ function y({
18
17
  ] });
19
18
  }
20
19
  export {
21
- y as SignatureFormActions
20
+ x as SignatureFormActions
22
21
  };
23
22
  //# 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,12 +1,11 @@
1
1
  import { jsxs as n, Fragment as s, jsx as r } from "react/jsx-runtime";
2
2
  import "../../../shared/constants.js";
3
- import "classnames";
4
3
  import "react-i18next";
5
4
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
6
5
  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({
6
+ import { TextInputField as a } from "../Fields/TextInputField/TextInputField.js";
7
+ import { CheckboxField as p } from "../Fields/CheckboxField/CheckboxField.js";
8
+ function F({
10
9
  signatureLabel: e,
11
10
  signatureDescription: i = "",
12
11
  signatureError: t = "",
@@ -15,7 +14,7 @@ function b({
15
14
  }) {
16
15
  return /* @__PURE__ */ n(s, { children: [
17
16
  /* @__PURE__ */ r(
18
- p,
17
+ a,
19
18
  {
20
19
  name: "signature",
21
20
  label: e,
@@ -25,7 +24,7 @@ function b({
25
24
  }
26
25
  ),
27
26
  /* @__PURE__ */ r(
28
- a,
27
+ p,
29
28
  {
30
29
  name: "confirmSignature",
31
30
  isRequired: !0,
@@ -36,6 +35,6 @@ function b({
36
35
  ] });
37
36
  }
38
37
  export {
39
- b as SignatureFormFields
38
+ F as SignatureFormFields
40
39
  };
41
40
  //# 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;"}
@@ -0,0 +1,2 @@
1
+ import { BoxProps } from './BoxTypes';
2
+ export declare function Box({ children, footer, className }: BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
+ import i from "classnames";
3
+ import o from "./Box.module.scss.js";
4
+ function c({ children: r, footer: s, className: t }) {
5
+ return /* @__PURE__ */ e("div", { className: i(o.boxContainer, t), "data-testid": "data-box", children: [
6
+ /* @__PURE__ */ a("div", { className: o.boxBody, children: r }),
7
+ s && /* @__PURE__ */ a("div", { className: o.boxFooter, children: s })
8
+ ] });
9
+ }
10
+ export {
11
+ c as Box
12
+ };
13
+ //# sourceMappingURL=Box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.js","sources":["../../../../../src/components/Common/UI/Box/Box.tsx"],"sourcesContent":["import cn from 'classnames'\nimport styles from './Box.module.scss'\nimport { type BoxProps } from '@/components/Common/UI/Box/BoxTypes'\n\nexport function Box({ children, footer, className }: BoxProps) {\n return (\n <div className={cn(styles.boxContainer, className)} data-testid=\"data-box\">\n <div className={styles.boxBody}>{children}</div>\n {footer && <div className={styles.boxFooter}>{footer}</div>}\n </div>\n )\n}\n"],"names":["Box","children","footer","className","jsxs","cn","styles","jsx"],"mappings":";;;AAIO,SAASA,EAAI,EAAE,UAAAC,GAAU,QAAAC,GAAQ,WAAAC,KAAuB;AAC7D,SACE,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,cAAcH,CAAS,GAAG,eAAY,YAC9D,UAAA;AAAA,IAAA,gBAAAI,EAAC,OAAA,EAAI,WAAWD,EAAO,SAAU,UAAAL,GAAS;AAAA,IACzCC,KAAU,gBAAAK,EAAC,OAAA,EAAI,WAAWD,EAAO,WAAY,UAAAJ,EAAA,CAAO;AAAA,EAAA,GACvD;AAEJ;"}
@@ -0,0 +1,12 @@
1
+ const o = "_boxContainer_147eq_1", t = "_boxBody_147eq_9", e = "_boxFooter_147eq_13", n = {
2
+ boxContainer: o,
3
+ boxBody: t,
4
+ boxFooter: e
5
+ };
6
+ export {
7
+ t as boxBody,
8
+ o as boxContainer,
9
+ e as boxFooter,
10
+ n as default
11
+ };
12
+ //# sourceMappingURL=Box.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export interface BoxProps {
3
+ /**
4
+ * Content to be displayed inside the box
5
+ */
6
+ children: ReactNode;
7
+ /**
8
+ * Content rendered at the bottom of the box with an edge-to-edge top border
9
+ */
10
+ footer?: ReactNode;
11
+ /**
12
+ * CSS className to be applied
13
+ */
14
+ className?: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ import "./types/i18next.d.ts"
2
+ export { Box } from './Box';
@@ -5,7 +5,7 @@ import { Grid as L } from "../../Grid/Grid.js";
5
5
  import { DialogDefaults as P } from "./DialogTypes.js";
6
6
  import i from "./Dialog.module.scss.js";
7
7
  import { applyMissingDefaults as B } from "../../../../helpers/applyMissingDefaults.js";
8
- import { useContainerBreakpoints as N } from "../../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
8
+ import N from "../../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
9
9
  import { useComponentContext as R } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
10
  function H(c) {
11
11
  const m = B(c, P), {
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes, ReactNode, Ref } from 'react';
2
- export interface InputProps extends Pick<InputHTMLAttributes<HTMLInputElement>, 'className' | 'id' | 'name' | 'placeholder' | 'type' | 'value' | 'onChange' | 'onBlur' | 'aria-describedby' | 'aria-invalid' | 'min' | 'max'> {
2
+ export interface InputProps extends Pick<InputHTMLAttributes<HTMLInputElement>, 'className' | 'id' | 'name' | 'placeholder' | 'type' | 'value' | 'onChange' | 'onBlur' | 'aria-describedby' | 'aria-invalid' | 'min' | 'max' | 'maxLength'> {
3
3
  /**
4
4
  * Ref for the input element
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"InputTypes.js","sources":["../../../../../src/components/Common/UI/Input/InputTypes.ts"],"sourcesContent":["import type { InputHTMLAttributes, ReactNode, Ref } from 'react'\n\nexport interface InputProps extends Pick<\n InputHTMLAttributes<HTMLInputElement>,\n | 'className'\n | 'id'\n | 'name'\n | 'placeholder'\n | 'type'\n | 'value'\n | 'onChange'\n | 'onBlur'\n | 'aria-describedby'\n | 'aria-invalid'\n | 'min'\n | 'max'\n> {\n /**\n * Ref for the input element\n */\n inputRef?: Ref<HTMLInputElement>\n\n /**\n * Content to display at the start of the input\n */\n adornmentStart?: ReactNode\n\n /**\n * Content to display at the end of the input\n */\n adornmentEnd?: ReactNode\n\n /**\n * Whether the input is disabled\n */\n isDisabled?: boolean\n}\n\n/**\n * Default prop values for Input component.\n * These are used by the component adapter to automatically provide defaults.\n */\nexport const InputDefaults = {\n isDisabled: false,\n} as const satisfies Partial<InputProps>\n"],"names":["InputDefaults"],"mappings":"AA0CO,MAAMA,IAAgB;AAAA,EAC3B,YAAY;AACd;"}
1
+ {"version":3,"file":"InputTypes.js","sources":["../../../../../src/components/Common/UI/Input/InputTypes.ts"],"sourcesContent":["import type { InputHTMLAttributes, ReactNode, Ref } from 'react'\n\nexport interface InputProps extends Pick<\n InputHTMLAttributes<HTMLInputElement>,\n | 'className'\n | 'id'\n | 'name'\n | 'placeholder'\n | 'type'\n | 'value'\n | 'onChange'\n | 'onBlur'\n | 'aria-describedby'\n | 'aria-invalid'\n | 'min'\n | 'max'\n | 'maxLength'\n> {\n /**\n * Ref for the input element\n */\n inputRef?: Ref<HTMLInputElement>\n\n /**\n * Content to display at the start of the input\n */\n adornmentStart?: ReactNode\n\n /**\n * Content to display at the end of the input\n */\n adornmentEnd?: ReactNode\n\n /**\n * Whether the input is disabled\n */\n isDisabled?: boolean\n}\n\n/**\n * Default prop values for Input component.\n * These are used by the component adapter to automatically provide defaults.\n */\nexport const InputDefaults = {\n isDisabled: false,\n} as const satisfies Partial<InputProps>\n"],"names":["InputDefaults"],"mappings":"AA2CO,MAAMA,IAAgB;AAAA,EAC3B,YAAY;AACd;"}
@@ -1,4 +1,4 @@
1
- const t = "_list_b105q_1", s = "_item_b105q_10", e = {
1
+ const t = "_list_1xurs_1", s = "_item_1xurs_10", e = {
2
2
  list: t,
3
3
  item: s
4
4
  };
@@ -4,7 +4,7 @@ import l from "classnames";
4
4
  import { ModalDefaults as B } from "./ModalTypes.js";
5
5
  import o from "./Modal.module.scss.js";
6
6
  import { applyMissingDefaults as E } from "../../../../helpers/applyMissingDefaults.js";
7
- import { useContainerBreakpoints as M } from "../../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
7
+ import M from "../../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
8
8
  import { useOverflowDetection as A } from "../../../../hooks/useOverflowDetection/useOverflowDetection.js";
9
9
  import { useForkRef as F } from "../../../../hooks/useForkRef/useForkRef.js";
10
10
  import { transitionDuration as j } from "../../../../contexts/ThemeProvider/theme.js";
@@ -4,7 +4,7 @@ import { Tabs as T, TabList as v, Tab as g, TabPanel as C } from "react-aria-com
4
4
  import N from "classnames";
5
5
  import { useTranslation as x } from "react-i18next";
6
6
  import s from "./Tabs.module.scss.js";
7
- import { useContainerBreakpoints as y } from "../../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
7
+ import y from "../../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
8
8
  import { useComponentContext as D } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
9
9
  function H({ tabs: n, selectedId: l, onSelectionChange: r, className: m, ...a }) {
10
10
  const { t: c } = x("common"), { Select: p } = D(), t = h(null), f = !y({ ref: t }).includes("small"), o = n.find((e) => e.id === l), u = n.map((e) => ({
@@ -1,11 +1,11 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { useFieldIds as R } from "../hooks/useFieldIds.js";
3
- import { TextInputDefaults as T } from "./TextInputTypes.js";
4
- import { applyMissingDefaults as j } from "../../../../helpers/applyMissingDefaults.js";
5
- import { FieldLayout as q } from "../../FieldLayout/FieldLayout.js";
6
- import { Input as w } from "../Input/Input.js";
7
- function G(o) {
8
- const n = j(o, T), {
2
+ import { useFieldIds as T } from "../hooks/useFieldIds.js";
3
+ import { TextInputDefaults as j } from "./TextInputTypes.js";
4
+ import { applyMissingDefaults as q } from "../../../../helpers/applyMissingDefaults.js";
5
+ import { FieldLayout as w } from "../../FieldLayout/FieldLayout.js";
6
+ import { Input as H } from "../Input/Input.js";
7
+ function J(o) {
8
+ const n = q(o, j), {
9
9
  name: t,
10
10
  label: s,
11
11
  description: e,
@@ -20,22 +20,23 @@ function G(o) {
20
20
  placeholder: f,
21
21
  onChange: b,
22
22
  onBlur: I,
23
- className: y,
24
- shouldVisuallyHideLabel: g,
25
- adornmentEnd: D,
26
- adornmentStart: v,
27
- min: x,
23
+ className: g,
24
+ shouldVisuallyHideLabel: y,
25
+ adornmentEnd: x,
26
+ adornmentStart: D,
27
+ min: v,
28
28
  max: B,
29
- "aria-describedby": C,
30
- ...F
31
- } = n, { inputId: i, errorMessageId: M, descriptionId: P, ariaDescribedBy: E } = R({
29
+ maxLength: C,
30
+ "aria-describedby": F,
31
+ ...L
32
+ } = n, { inputId: i, errorMessageId: M, descriptionId: P, ariaDescribedBy: E } = T({
32
33
  inputId: c,
33
34
  errorMessage: r,
34
35
  description: e,
35
- ariaDescribedBy: C
36
+ ariaDescribedBy: F
36
37
  });
37
38
  return /* @__PURE__ */ a(
38
- q,
39
+ w,
39
40
  {
40
41
  label: s,
41
42
  description: e,
@@ -44,12 +45,12 @@ function G(o) {
44
45
  htmlFor: i,
45
46
  errorMessageId: M,
46
47
  descriptionId: P,
47
- className: y,
48
- shouldVisuallyHideLabel: g,
48
+ className: g,
49
+ shouldVisuallyHideLabel: y,
49
50
  withErrorIcon: !1,
50
- ...F,
51
+ ...L,
51
52
  children: /* @__PURE__ */ a(
52
- w,
53
+ H,
53
54
  {
54
55
  id: i,
55
56
  inputRef: p,
@@ -57,23 +58,24 @@ function G(o) {
57
58
  type: l,
58
59
  value: h,
59
60
  placeholder: f,
60
- onChange: (L) => {
61
- b?.(L.target.value);
61
+ onChange: (R) => {
62
+ b?.(R.target.value);
62
63
  },
63
64
  onBlur: I,
64
65
  "aria-describedby": E,
65
66
  "aria-invalid": m,
66
67
  isDisabled: u,
67
- adornmentStart: v,
68
- adornmentEnd: D,
69
- min: x,
70
- max: B
68
+ adornmentStart: D,
69
+ adornmentEnd: x,
70
+ min: v,
71
+ max: B,
72
+ maxLength: C
71
73
  }
72
74
  )
73
75
  }
74
76
  );
75
77
  }
76
78
  export {
77
- G as TextInput
79
+ J as TextInput
78
80
  };
79
81
  //# sourceMappingURL=TextInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.js","sources":["../../../../../src/components/Common/UI/TextInput/TextInput.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react'\nimport { Input } from '../Input'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport type { TextInputProps } from './TextInputTypes'\nimport { TextInputDefaults } from './TextInputTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\n\nexport function TextInput(rawProps: TextInputProps) {\n const resolvedProps = applyMissingDefaults(rawProps, TextInputDefaults)\n const {\n name,\n label,\n description,\n errorMessage,\n isRequired,\n type,\n inputRef,\n isInvalid,\n isDisabled,\n id,\n value,\n placeholder,\n onChange,\n onBlur,\n className,\n shouldVisuallyHideLabel,\n adornmentEnd,\n adornmentStart,\n min,\n max,\n 'aria-describedby': ariaDescribedByFromProps,\n ...otherProps\n } = resolvedProps\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n ariaDescribedBy: ariaDescribedByFromProps,\n })\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n onChange?.(event.target.value)\n }\n\n return (\n <FieldLayout\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n className={className}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n withErrorIcon={false}\n {...otherProps}\n >\n <Input\n id={inputId}\n inputRef={inputRef}\n name={name}\n type={type}\n value={value}\n placeholder={placeholder}\n onChange={handleChange}\n onBlur={onBlur}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isInvalid}\n isDisabled={isDisabled}\n adornmentStart={adornmentStart}\n adornmentEnd={adornmentEnd}\n min={min}\n max={max}\n />\n </FieldLayout>\n )\n}\n"],"names":["TextInput","rawProps","resolvedProps","applyMissingDefaults","TextInputDefaults","name","label","description","errorMessage","isRequired","type","inputRef","isInvalid","isDisabled","id","value","placeholder","onChange","onBlur","className","shouldVisuallyHideLabel","adornmentEnd","adornmentStart","min","max","ariaDescribedByFromProps","otherProps","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","jsx","FieldLayout","Input","event"],"mappings":";;;;;;AAQO,SAASA,EAAUC,GAA0B;AAClD,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAiB,GAChE;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,MAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,IAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,yBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,KAAAC;AAAA,IACA,KAAAC;AAAA,IACA,oBAAoBC;AAAA,IACpB,GAAGC;AAAA,EAAA,IACDxB,GACE,EAAE,SAAAyB,GAAS,gBAAAC,GAAgB,eAAAC,GAAe,iBAAAC,EAAA,IAAoBC,EAAY;AAAA,IAC9E,SAASjB;AAAA,IACT,cAAAN;AAAA,IACA,aAAAD;AAAA,IACA,iBAAiBkB;AAAA,EAAA,CAClB;AAMD,SACE,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAA3B;AAAA,MACA,aAAAC;AAAA,MACA,cAAAC;AAAA,MACA,YAAAC;AAAA,MACA,SAASkB;AAAA,MACT,gBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,WAAAV;AAAA,MACA,yBAAAC;AAAA,MACA,eAAe;AAAA,MACd,GAAGM;AAAA,MAEJ,UAAA,gBAAAM;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAIP;AAAA,UACJ,UAAAhB;AAAA,UACA,MAAAN;AAAA,UACA,MAAAK;AAAA,UACA,OAAAK;AAAA,UACA,aAAAC;AAAA,UACA,UAzBe,CAACmB,MAAyC;AAC7D,YAAAlB,IAAWkB,EAAM,OAAO,KAAK;AAAA,UAC/B;AAAA,UAwBM,QAAAjB;AAAA,UACA,oBAAkBY;AAAA,UAClB,gBAAclB;AAAA,UACd,YAAAC;AAAA,UACA,gBAAAS;AAAA,UACA,cAAAD;AAAA,UACA,KAAAE;AAAA,UACA,KAAAC;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"TextInput.js","sources":["../../../../../src/components/Common/UI/TextInput/TextInput.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react'\nimport { Input } from '../Input'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport type { TextInputProps } from './TextInputTypes'\nimport { TextInputDefaults } from './TextInputTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\n\nexport function TextInput(rawProps: TextInputProps) {\n const resolvedProps = applyMissingDefaults(rawProps, TextInputDefaults)\n const {\n name,\n label,\n description,\n errorMessage,\n isRequired,\n type,\n inputRef,\n isInvalid,\n isDisabled,\n id,\n value,\n placeholder,\n onChange,\n onBlur,\n className,\n shouldVisuallyHideLabel,\n adornmentEnd,\n adornmentStart,\n min,\n max,\n maxLength,\n 'aria-describedby': ariaDescribedByFromProps,\n ...otherProps\n } = resolvedProps\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n ariaDescribedBy: ariaDescribedByFromProps,\n })\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n onChange?.(event.target.value)\n }\n\n return (\n <FieldLayout\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n className={className}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n withErrorIcon={false}\n {...otherProps}\n >\n <Input\n id={inputId}\n inputRef={inputRef}\n name={name}\n type={type}\n value={value}\n placeholder={placeholder}\n onChange={handleChange}\n onBlur={onBlur}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isInvalid}\n isDisabled={isDisabled}\n adornmentStart={adornmentStart}\n adornmentEnd={adornmentEnd}\n min={min}\n max={max}\n maxLength={maxLength}\n />\n </FieldLayout>\n )\n}\n"],"names":["TextInput","rawProps","resolvedProps","applyMissingDefaults","TextInputDefaults","name","label","description","errorMessage","isRequired","type","inputRef","isInvalid","isDisabled","id","value","placeholder","onChange","onBlur","className","shouldVisuallyHideLabel","adornmentEnd","adornmentStart","min","max","maxLength","ariaDescribedByFromProps","otherProps","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","jsx","FieldLayout","Input","event"],"mappings":";;;;;;AAQO,SAASA,EAAUC,GAA0B;AAClD,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAiB,GAChE;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,MAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,IAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,yBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,KAAAC;AAAA,IACA,KAAAC;AAAA,IACA,WAAAC;AAAA,IACA,oBAAoBC;AAAA,IACpB,GAAGC;AAAA,EAAA,IACDzB,GACE,EAAE,SAAA0B,GAAS,gBAAAC,GAAgB,eAAAC,GAAe,iBAAAC,EAAA,IAAoBC,EAAY;AAAA,IAC9E,SAASlB;AAAA,IACT,cAAAN;AAAA,IACA,aAAAD;AAAA,IACA,iBAAiBmB;AAAA,EAAA,CAClB;AAMD,SACE,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAA5B;AAAA,MACA,aAAAC;AAAA,MACA,cAAAC;AAAA,MACA,YAAAC;AAAA,MACA,SAASmB;AAAA,MACT,gBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,WAAAX;AAAA,MACA,yBAAAC;AAAA,MACA,eAAe;AAAA,MACd,GAAGO;AAAA,MAEJ,UAAA,gBAAAM;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAIP;AAAA,UACJ,UAAAjB;AAAA,UACA,MAAAN;AAAA,UACA,MAAAK;AAAA,UACA,OAAAK;AAAA,UACA,aAAAC;AAAA,UACA,UAzBe,CAACoB,MAAyC;AAC7D,YAAAnB,IAAWmB,EAAM,OAAO,KAAK;AAAA,UAC/B;AAAA,UAwBM,QAAAlB;AAAA,UACA,oBAAkBa;AAAA,UAClB,gBAAcnB;AAAA,UACd,YAAAC;AAAA,UACA,gBAAAS;AAAA,UACA,cAAAD;AAAA,UACA,KAAAE;AAAA,UACA,KAAAC;AAAA,UACA,WAAAC;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}