@gusto/embedded-react-sdk 0.36.0 → 0.37.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 (448) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +6 -0
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  4. package/dist/UNSTABLE_Hooks.js +50 -6
  5. package/dist/UNSTABLE_Hooks.js.map +1 -1
  6. package/dist/components/Base/Base.d.ts +8 -9
  7. package/dist/components/Base/Base.js +123 -101
  8. package/dist/components/Base/Base.js.map +1 -1
  9. package/dist/components/Base/index.d.ts +1 -1
  10. package/dist/components/Base/useBase.d.ts +3 -7
  11. package/dist/components/Base/useBase.js.map +1 -1
  12. package/dist/components/Base/useBaseSubmit.d.ts +3 -5
  13. package/dist/components/Base/useBaseSubmit.js +27 -50
  14. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  15. package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
  16. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +17 -16
  17. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  18. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
  19. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +46 -36
  20. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  21. package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
  22. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +21 -20
  23. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  24. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
  25. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +20 -19
  26. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  27. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
  28. package/dist/components/Common/Fields/SelectField/SelectField.js +19 -18
  29. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  30. package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
  31. package/dist/components/Common/Fields/SwitchField/SwitchField.js +19 -18
  32. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  33. package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
  34. package/dist/components/Common/Fields/TextInputField/TextInputField.js +10 -9
  35. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  36. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  37. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +2 -2
  38. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  39. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  40. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -7
  41. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  42. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -7
  43. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  44. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -9
  45. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  46. package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -7
  47. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  48. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -7
  49. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  50. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +8 -7
  51. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  52. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +13 -12
  53. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  54. package/dist/components/Company/Industry/Context.js +11 -10
  55. package/dist/components/Company/Industry/Context.js.map +1 -1
  56. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -7
  57. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  58. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -7
  59. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  60. package/dist/components/Company/OnboardingOverview/context.js +8 -7
  61. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  62. package/dist/components/Company/PaySchedule/PaySchedule.js +60 -60
  63. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  64. package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -9
  65. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  66. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -7
  67. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  68. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -7
  69. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  70. package/dist/components/Contractor/Address/useAddress.js +10 -9
  71. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  72. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  73. package/dist/components/Contractor/Profile/useContractorProfile.js +41 -38
  74. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  75. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +7 -6
  76. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  77. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +14 -13
  78. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  79. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +7 -6
  80. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  81. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +8 -7
  82. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  83. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +8 -7
  84. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  85. package/dist/components/Employee/EmployeeList/useEmployeeList.js +8 -7
  86. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  87. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +42 -42
  88. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
  89. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +8 -7
  90. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  91. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +10 -9
  92. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  93. package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
  94. package/dist/components/Employee/Profile/HomeAddress.js +38 -36
  95. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  96. package/dist/components/Employee/Profile/Profile.js +30 -29
  97. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  98. package/dist/components/Employee/Profile/useProfile.js +8 -7
  99. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  100. package/dist/components/Employee/StateTaxes/StateTaxes.js +50 -50
  101. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
  102. package/dist/components/Employee/StateTaxes/useStateTaxes.js +8 -7
  103. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  104. package/dist/components/Employee/Taxes/Taxes.js +53 -53
  105. package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
  106. package/dist/components/Employee/Taxes/useTaxes.js +8 -7
  107. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  108. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +11 -0
  109. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +123 -0
  110. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -0
  111. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +11 -0
  112. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +92 -0
  113. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -0
  114. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +2 -0
  115. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +30 -0
  116. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -0
  117. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +23 -0
  118. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +72 -0
  119. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -0
  120. package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +3 -0
  121. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +7 -0
  122. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +165 -0
  123. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -0
  124. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.test.d.ts +1 -0
  125. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +9 -0
  126. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +86 -0
  127. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -0
  128. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +20 -0
  129. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +103 -0
  130. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -0
  131. package/dist/components/Employee/Terminations/TerminationsData.d.ts +6 -0
  132. package/dist/components/Employee/Terminations/index.d.ts +8 -0
  133. package/dist/components/Employee/Terminations/types.d.ts +1 -0
  134. package/dist/components/Employee/index.d.ts +7 -0
  135. package/dist/components/Employee/index.js +34 -28
  136. package/dist/components/Employee/index.js.map +1 -1
  137. package/dist/components/InformationRequests/InformationRequests.js +31 -31
  138. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  139. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +41 -41
  140. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  141. package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +2 -0
  142. package/dist/components/Payroll/Dismissal/DismissalFlow.js +32 -0
  143. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -0
  144. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +16 -0
  145. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +52 -0
  146. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -0
  147. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +6 -0
  148. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +69 -0
  149. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -0
  150. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +9 -0
  151. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +53 -0
  152. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -0
  153. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +3 -0
  154. package/dist/components/Payroll/Dismissal/dismissalStateMachine.d.ts +6 -0
  155. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +51 -0
  156. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -0
  157. package/dist/components/Payroll/Dismissal/dismissalStateMachine.test.d.ts +1 -0
  158. package/dist/components/Payroll/Dismissal/index.d.ts +3 -0
  159. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +18 -15
  160. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  161. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  162. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +19 -18
  163. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  164. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +3 -0
  165. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +32 -24
  166. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  167. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +45 -45
  168. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  169. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
  170. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +75 -66
  171. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  172. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js +8 -0
  173. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js.map +1 -0
  174. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +0 -1
  175. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +4 -4
  176. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +2 -2
  177. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  178. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +1 -0
  179. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +1 -0
  180. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  181. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +186 -159
  182. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  183. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -3
  184. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +69 -69
  185. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  186. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +3 -2
  187. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +8 -8
  188. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -1
  189. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +5 -3
  190. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +76 -70
  191. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  192. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +47 -42
  193. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  194. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +4 -2
  195. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +235 -196
  196. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  197. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
  198. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +12 -0
  199. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -0
  200. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
  201. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  202. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -0
  203. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +21 -0
  204. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -0
  205. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  206. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +95 -64
  207. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  208. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +53 -47
  209. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  210. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +8 -8
  211. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  212. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +25 -23
  213. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  214. package/dist/components/Payroll/PayrollList/PayrollList.js +40 -32
  215. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  216. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
  217. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +110 -93
  218. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  219. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +12 -8
  220. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  221. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +2 -0
  222. package/dist/components/Payroll/Transition/TransitionFlow.js +38 -0
  223. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -0
  224. package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +19 -0
  225. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +54 -0
  226. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -0
  227. package/dist/components/Payroll/Transition/index.d.ts +3 -0
  228. package/dist/components/Payroll/Transition/transitionStateMachine.d.ts +6 -0
  229. package/dist/components/Payroll/Transition/transitionStateMachine.js +58 -0
  230. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -0
  231. package/dist/components/Payroll/Transition/transitionStateMachine.test.d.ts +1 -0
  232. package/dist/components/Payroll/TransitionCreation/TransitionCreation.d.ts +2 -0
  233. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +92 -0
  234. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -0
  235. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +2 -0
  236. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +111 -0
  237. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -0
  238. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js +8 -0
  239. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +1 -0
  240. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +28 -0
  241. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +21 -0
  242. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -0
  243. package/dist/components/Payroll/TransitionCreation/index.d.ts +3 -0
  244. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +8 -0
  245. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +83 -0
  246. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -0
  247. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +16 -0
  248. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +100 -0
  249. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -0
  250. package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +2 -0
  251. package/dist/components/Payroll/helpers.d.ts +2 -1
  252. package/dist/components/Payroll/helpers.js +98 -87
  253. package/dist/components/Payroll/helpers.js.map +1 -1
  254. package/dist/components/Payroll/index.d.ts +6 -0
  255. package/dist/components/Payroll/index.js +32 -26
  256. package/dist/components/Payroll/index.js.map +1 -1
  257. package/dist/components/Payroll/payrollTypes.d.ts +21 -0
  258. package/dist/components/Payroll/payrollTypes.js +27 -0
  259. package/dist/components/Payroll/payrollTypes.js.map +1 -0
  260. package/dist/components/Payroll/usePreparedPayrollData.js +4 -4
  261. package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
  262. package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
  263. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
  264. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +8 -0
  265. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +13 -0
  266. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -0
  267. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +10 -0
  268. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
  269. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
  270. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +23 -0
  271. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
  272. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
  273. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
  274. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
  275. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
  276. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
  277. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
  278. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
  279. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
  280. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +3 -0
  281. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
  282. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
  283. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts +1 -0
  284. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +9 -0
  285. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +34 -0
  286. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
  287. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +9 -0
  288. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +29 -0
  289. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
  290. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +12 -0
  291. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +40 -0
  292. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
  293. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +10 -0
  294. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +40 -0
  295. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
  296. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +10 -0
  297. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +40 -0
  298. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
  299. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +9 -0
  300. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +34 -0
  301. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
  302. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +11 -0
  303. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +38 -0
  304. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
  305. package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
  306. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
  307. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
  308. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
  309. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
  310. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
  311. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
  312. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
  313. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +14 -0
  314. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
  315. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
  316. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
  317. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +27 -0
  318. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -0
  319. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +17 -0
  320. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -0
  321. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +4 -0
  322. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +9 -0
  323. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -0
  324. package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +5 -0
  325. package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
  326. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
  327. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
  328. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +151 -0
  329. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
  330. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
  331. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +121 -0
  332. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
  333. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
  334. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
  335. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
  336. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +7 -0
  337. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +104 -0
  338. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +259 -0
  339. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -0
  340. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
  341. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +114 -0
  342. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
  343. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
  344. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
  345. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
  346. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
  347. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
  348. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
  349. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
  350. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
  351. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
  352. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
  353. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
  354. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +71 -0
  355. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
  356. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
  357. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
  358. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
  359. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
  360. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
  361. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
  362. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
  363. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
  364. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
  365. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
  366. package/dist/components/UNSTABLE_Hooks/index.d.ts +9 -0
  367. package/dist/components/UNSTABLE_Hooks/types.d.ts +49 -0
  368. package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
  369. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
  370. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
  371. package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
  372. package/dist/contexts/ApiProvider/ApiProvider.js +11 -11
  373. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  374. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +43 -47
  375. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  376. package/dist/contexts/ObservabilityProvider/index.d.ts +1 -1
  377. package/dist/contexts/ObservabilityProvider/sanitization.d.ts +0 -14
  378. package/dist/contexts/ObservabilityProvider/sanitization.js +51 -51
  379. package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -1
  380. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +0 -3
  381. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -1
  382. package/dist/helpers/requiredIf.d.ts +13 -0
  383. package/dist/helpers/requiredIf.js +8 -0
  384. package/dist/helpers/requiredIf.js.map +1 -0
  385. package/dist/i18n/I18n.js +13 -13
  386. package/dist/i18n/I18n.js.map +1 -1
  387. package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js +18 -0
  388. package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js.map +1 -0
  389. package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js +12 -0
  390. package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js.map +1 -0
  391. package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js +20 -0
  392. package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js.map +1 -0
  393. package/dist/i18n/en/Payroll.Dismissal.json.js +22 -0
  394. package/dist/i18n/en/Payroll.Dismissal.json.js.map +1 -0
  395. package/dist/i18n/en/Payroll.OffCycleCreation.json.js +15 -11
  396. package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -1
  397. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +1 -1
  398. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +20 -18
  399. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  400. package/dist/i18n/en/Payroll.PayrollList.json.js +20 -18
  401. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  402. package/dist/i18n/en/Payroll.Transition.json.js +8 -0
  403. package/dist/i18n/en/Payroll.Transition.json.js.map +1 -0
  404. package/dist/i18n/en/Payroll.TransitionCreation.json.js +26 -0
  405. package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +1 -0
  406. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +18 -0
  407. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -0
  408. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
  409. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
  410. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
  411. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
  412. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
  413. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
  414. package/dist/i18n/en/common.json.d.ts +2 -1
  415. package/dist/i18n/en/common.json.js +9 -9
  416. package/dist/index.d.ts +3 -2
  417. package/dist/index.js +14 -13
  418. package/dist/models/WA_RISK_CODES.d.ts +5 -2866
  419. package/dist/models/WA_RISK_CODES.js.map +1 -1
  420. package/dist/shared/constants.d.ts +32 -0
  421. package/dist/shared/constants.js +83 -65
  422. package/dist/shared/constants.js.map +1 -1
  423. package/dist/style.css +1 -1
  424. package/dist/types/i18next.d.ts +279 -1
  425. package/dist/types/observability.d.ts +31 -65
  426. package/dist/types/sdkError.d.ts +97 -0
  427. package/dist/types/sdkError.js +95 -0
  428. package/dist/types/sdkError.js.map +1 -0
  429. package/dist/types/sdkError.test.d.ts +1 -0
  430. package/docs/reference/endpoint-inventory.json +212 -14
  431. package/package.json +16 -16
  432. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +0 -6
  433. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +0 -70
  434. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +0 -1
  435. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +0 -7
  436. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +0 -6
  437. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +0 -1
  438. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +0 -9
  439. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +0 -40
  440. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +0 -1
  441. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +0 -5
  442. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +0 -2
  443. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +0 -12
  444. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +0 -1
  445. package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +0 -2
  446. package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +0 -5
  447. package/dist/contexts/ObservabilityProvider/observabilityUtils.js +0 -45
  448. package/dist/contexts/ObservabilityProvider/observabilityUtils.js.map +0 -1
@@ -1,5 +1,7 @@
1
+ import { ComponentType } from 'react';
1
2
  import { UseFieldProps } from '../hooks/useField';
2
3
  import { SwitchProps } from '../../UI/Switch/SwitchTypes';
3
4
  export interface SwitchFieldProps extends Omit<SwitchProps, 'name' | 'checked' | 'onChange' | 'isInvalid'>, UseFieldProps<boolean> {
5
+ FieldComponent?: ComponentType<SwitchProps>;
4
6
  }
5
7
  export declare const SwitchField: React.FC<SwitchFieldProps>;
@@ -1,34 +1,35 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { useField as x } from "../hooks/useField.js";
3
- import { useComponentContext as C } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
4
- const S = ({
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import { useField as h } from "../hooks/useField.js";
3
+ import { useComponentContext as w } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
4
+ const P = ({
5
5
  rules: o,
6
6
  defaultValue: t,
7
7
  name: e,
8
- errorMessage: r,
9
- isRequired: n,
10
- onChange: i,
11
- transform: m,
12
- description: s,
8
+ errorMessage: n,
9
+ isRequired: r,
10
+ onChange: m,
11
+ transform: s,
12
+ description: i,
13
13
  onBlur: p,
14
14
  inputRef: c,
15
+ FieldComponent: d,
15
16
  ...f
16
17
  }) => {
17
- const d = C(), l = x({
18
+ const C = w(), l = h({
18
19
  name: e,
19
20
  rules: o,
20
21
  defaultValue: t,
21
- errorMessage: r,
22
- isRequired: n,
23
- onChange: i,
24
- transform: m,
25
- description: s,
22
+ errorMessage: n,
23
+ isRequired: r,
24
+ onChange: m,
25
+ transform: s,
26
+ description: i,
26
27
  onBlur: p,
27
28
  inputRef: c
28
- });
29
- return /* @__PURE__ */ u(d.Switch, { ...f, ...l });
29
+ }), u = d ?? C.Switch;
30
+ return /* @__PURE__ */ x(u, { ...f, ...l });
30
31
  };
31
32
  export {
32
- S as SwitchField
33
+ P as SwitchField
33
34
  };
34
35
  //# sourceMappingURL=SwitchField.js.map
@@ -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\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;"}
1
+ {"version":3,"file":"SwitchField.js","sources":["../../../../../src/components/Common/Fields/SwitchField/SwitchField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { 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'>, UseFieldProps<boolean> {\n FieldComponent?: ComponentType<SwitchProps>\n}\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 FieldComponent,\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 const RenderComponent = FieldComponent ?? Components.Switch\n return <RenderComponent {...switchProps} {...fieldProps} />\n}\n"],"names":["SwitchField","rules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","FieldComponent","switchProps","Components","useComponentContext","fieldProps","useField","RenderComponent","jsx"],"mappings":";;;AASO,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,gBAAAC;AAAA,EACA,GAAGC;AACL,MAAwB;AACtB,QAAMC,IAAaC,EAAA,GACbC,IAAaC,EAAS;AAAA,IAC1B,MAAAb;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,GAEKO,IAAkBN,KAAkBE,EAAW;AACrD,SAAO,gBAAAK,EAACD,GAAA,EAAiB,GAAGL,GAAc,GAAGG,EAAA,CAAY;AAC3D;"}
@@ -1,5 +1,7 @@
1
+ import { ComponentType } from 'react';
1
2
  import { UseFieldProps } from '../hooks/useField';
2
3
  import { TextInputProps } from '../../UI/TextInput/TextInputTypes';
3
4
  export interface TextInputFieldProps extends Omit<TextInputProps, 'name' | 'value' | 'isInvalid'>, UseFieldProps {
5
+ FieldComponent?: ComponentType<TextInputProps>;
4
6
  }
5
7
  export declare const TextInputField: React.FC<TextInputFieldProps>;
@@ -1,7 +1,7 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { useField as l } from "../hooks/useField.js";
3
- import { useComponentContext as C } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
4
- const j = ({
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useField as F } from "../hooks/useField.js";
3
+ import { useComponentContext as I } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
4
+ const R = ({
5
5
  rules: o,
6
6
  defaultValue: t,
7
7
  name: e,
@@ -12,9 +12,10 @@ const j = ({
12
12
  description: s,
13
13
  onBlur: i,
14
14
  inputRef: u,
15
- ...x
15
+ FieldComponent: x,
16
+ ...c
16
17
  }) => {
17
- const f = C(), c = l({
18
+ const d = I(), f = F({
18
19
  name: e,
19
20
  rules: o,
20
21
  defaultValue: t,
@@ -25,10 +26,10 @@ const j = ({
25
26
  description: s,
26
27
  onBlur: i,
27
28
  inputRef: u
28
- });
29
- return /* @__PURE__ */ d(f.TextInput, { ...x, ...c });
29
+ }), C = x ?? d.TextInput;
30
+ return /* @__PURE__ */ l(C, { ...c, ...f });
30
31
  };
31
32
  export {
32
- j as TextInputField
33
+ R as TextInputField
33
34
  };
34
35
  //# sourceMappingURL=TextInputField.js.map
@@ -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'>, 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
+ {"version":3,"file":"TextInputField.js","sources":["../../../../../src/components/Common/Fields/TextInputField/TextInputField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { 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 FieldComponent?: ComponentType<TextInputProps>\n}\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 FieldComponent,\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 const RenderComponent = FieldComponent ?? Components.TextInput\n return <RenderComponent {...textInputProps} {...fieldProps} />\n}\n"],"names":["TextInputField","rules","defaultValue","name","errorMessage","isRequired","onChange","transform","description","onBlur","inputRef","FieldComponent","textInputProps","Components","useComponentContext","fieldProps","useField","RenderComponent","jsx"],"mappings":";;;AAUO,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,gBAAAC;AAAA,EACA,GAAGC;AACL,MAA2B;AACzB,QAAMC,IAAaC,EAAA,GACbC,IAAaC,EAAS;AAAA,IAC1B,MAAAb;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,GAEKO,IAAkBN,KAAkBE,EAAW;AACrD,SAAO,gBAAAK,EAACD,GAAA,EAAiB,GAAGL,GAAiB,GAAGG,EAAA,CAAY;AAC9D;"}
@@ -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";
3
4
  import { BreadcrumbsDefaults as k } from "./BreadcrumbsTypes.js";
4
5
  import r from "./Breadcrumbs.module.scss.js";
5
6
  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,9 +1,9 @@
1
- const t = "_root_n8es0_1", o = "_item_n8es0_4", e = {
1
+ const t = "_root_1iaua_1", o = "_item_1iaua_12", a = {
2
2
  root: t,
3
3
  item: o
4
4
  };
5
5
  export {
6
- e as default,
6
+ a as default,
7
7
  o as item,
8
8
  t as root
9
9
  };
@@ -7,13 +7,13 @@ import { FileInputDefaults as K } from "./FileInputTypes.js";
7
7
  import n from "./FileInput.module.scss.js";
8
8
  import { applyMissingDefaults as L } from "../../../../helpers/applyMissingDefaults.js";
9
9
  import { FieldLayout as O } from "../../FieldLayout/FieldLayout.js";
10
+ import { Flex as y } from "../../Flex/Flex.js";
10
11
  import { ButtonIcon as R } from "../Button/ButtonIcon.js";
11
12
  import W from "../../../../assets/icons/icon-trashcan.svg.js";
12
13
  import Z from "../../../../assets/icons/icon-file-outline.svg.js";
13
14
  import $ from "../../../../assets/icons/icon-file-pdf.svg.js";
14
15
  import H from "../../../../assets/icons/icon-file-png.svg.js";
15
16
  import V from "../../../../assets/icons/icon-file-jpg.svg.js";
16
- import { Flex as y } from "../../Flex/Flex.js";
17
17
  function Q(i) {
18
18
  return i === "application/pdf" ? $ : i === "image/png" ? H : i === "image/jpeg" || i === "image/jpg" ? V : Z;
19
19
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import c from "classnames";
3
- import n from "./ProgressBar.module.scss.js";
4
- import { Flex as p } from "../../Flex/Flex.js";
3
+ import { Flex as n } from "../../Flex/Flex.js";
4
+ import p from "./ProgressBar.module.scss.js";
5
5
  import { VisuallyHidden as d } from "../../VisuallyHidden/VisuallyHidden.js";
6
6
  function y({
7
7
  className: i,
@@ -13,9 +13,9 @@ function y({
13
13
  const s = Math.max(1, Math.min(m, e)), l = {
14
14
  "--g-progress-bar-width": `${s * 100 / e}%`
15
15
  };
16
- return /* @__PURE__ */ t(p, { flexDirection: "column", children: [
16
+ return /* @__PURE__ */ t(n, { flexDirection: "column", children: [
17
17
  o && /* @__PURE__ */ r(o, {}),
18
- /* @__PURE__ */ r("div", { className: c(n.root, i), style: l, children: /* @__PURE__ */ r(d, { children: /* @__PURE__ */ r("progress", { "aria-label": a, value: s, max: e }) }) })
18
+ /* @__PURE__ */ r("div", { className: c(p.root, i), style: l, children: /* @__PURE__ */ r(d, { children: /* @__PURE__ */ r("progress", { "aria-label": a, value: s, max: e }) }) })
19
19
  ] });
20
20
  }
21
21
  export {
@@ -2,20 +2,21 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
5
  import "@tanstack/react-query";
8
6
  import "../../../Base/useBase.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
8
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
9
12
  import "../../../../shared/constants.js";
10
13
  import "classnames";
11
14
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
12
15
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
- import "dompurify";
14
- import "../../../../contexts/LocaleProvider/useLocale.js";
15
16
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
16
- const [s, u] = t("CreateSignatoryContext");
17
+ const [u, f] = t("CreateSignatoryContext");
17
18
  export {
18
- u as CreateSignatoryProvider,
19
- s as useCreateSignatory
19
+ f as CreateSignatoryProvider,
20
+ u as useCreateSignatory
20
21
  };
21
22
  //# sourceMappingURL=useCreateSignatory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport type CreateSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title' | 'phone' | 'birthday'> &\n Pick<\n NonNullable<Signatory['homeAddress']>,\n 'street1' | 'street2' | 'city' | 'state' | 'zip'\n > & {\n ssn?: string\n }\n>\ntype CreateSignatoryContextType = {\n isPending: boolean\n currentSignatory?: Signatory\n}\n\nconst [useCreateSignatory, CreateSignatoryProvider] =\n createCompoundContext<CreateSignatoryContextType>('CreateSignatoryContext')\n\nexport { useCreateSignatory, CreateSignatoryProvider }\n"],"names":["useCreateSignatory","CreateSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAkBA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
1
+ {"version":3,"file":"useCreateSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport type CreateSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title' | 'phone' | 'birthday'> &\n Pick<\n NonNullable<Signatory['homeAddress']>,\n 'street1' | 'street2' | 'city' | 'state' | 'zip'\n > & {\n ssn?: string\n }\n>\ntype CreateSignatoryContextType = {\n isPending: boolean\n currentSignatory?: Signatory\n}\n\nconst [useCreateSignatory, CreateSignatoryProvider] =\n createCompoundContext<CreateSignatoryContextType>('CreateSignatoryContext')\n\nexport { useCreateSignatory, CreateSignatoryProvider }\n"],"names":["useCreateSignatory","CreateSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AAkBA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
@@ -2,20 +2,21 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
5
  import "@tanstack/react-query";
8
6
  import "../../../Base/useBase.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
8
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
9
12
  import "../../../../shared/constants.js";
10
13
  import "classnames";
11
14
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
12
15
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
- import "dompurify";
14
- import "../../../../contexts/LocaleProvider/useLocale.js";
15
16
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
16
- const [c, d] = t("InviteSignatoryContext");
17
+ const [d, s] = t("InviteSignatoryContext");
17
18
  export {
18
- d as InviteSignatoryProvider,
19
- c as useInviteSignatory
19
+ s as InviteSignatoryProvider,
20
+ d as useInviteSignatory
20
21
  };
21
22
  //# sourceMappingURL=useInviteSignatory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInviteSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\ntype InviteSignatoryContextType = {\n isPending: boolean\n}\n\nexport type InviteSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title'> & {\n confirmEmail: string\n }\n>\n\nconst [useInviteSignatory, InviteSignatoryProvider] =\n createCompoundContext<InviteSignatoryContextType>('InviteSignatoryContext')\n\nexport { useInviteSignatory, InviteSignatoryProvider }\n"],"names":["useInviteSignatory","InviteSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
1
+ {"version":3,"file":"useInviteSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\ntype InviteSignatoryContextType = {\n isPending: boolean\n}\n\nexport type InviteSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title'> & {\n confirmEmail: string\n }\n>\n\nconst [useInviteSignatory, InviteSignatoryProvider] =\n createCompoundContext<InviteSignatoryContextType>('InviteSignatoryContext')\n\nexport { useInviteSignatory, InviteSignatoryProvider }\n"],"names":["useInviteSignatory","InviteSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
@@ -2,24 +2,25 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
5
  import "@tanstack/react-query";
8
6
  import "../../Base/useBase.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
8
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
9
12
  import "../../../shared/constants.js";
10
13
  import "classnames";
11
14
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
12
15
  import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
- import "dompurify";
14
- import "../../../contexts/LocaleProvider/useLocale.js";
15
16
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
16
- const v = {
17
+ const x = {
17
18
  createSignatory: "createSignatory",
18
19
  inviteSignatory: "inviteSignatory"
19
- }, [x, C] = t("AssignSignatoryContext");
20
+ }, [C, u] = t("AssignSignatoryContext");
20
21
  export {
21
- C as AssignSignatoryProvider,
22
- v as SignatoryAssignmentMode,
23
- x as useAssignSignatory
22
+ u as AssignSignatoryProvider,
23
+ x as SignatoryAssignmentMode,
24
+ C as useAssignSignatory
24
25
  };
25
26
  //# sourceMappingURL=useAssignSignatory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAssignSignatory.js","sources":["../../../../src/components/Company/AssignSignatory/useAssignSignatory.ts"],"sourcesContent":["import { type CreateSignatoryDefaultValues } from './CreateSignatory'\nimport { type InviteSignatoryDefaultValues } from './InviteSignatory'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const SignatoryAssignmentMode = {\n createSignatory: 'createSignatory',\n inviteSignatory: 'inviteSignatory',\n} as const\n\nexport type AssignSignatoryDefaultValues = RequireAtLeastOne<{\n create?: CreateSignatoryDefaultValues\n invite?: InviteSignatoryDefaultValues\n}>\n\ntype AssignSignatoryContextType = {\n companyId: string\n signatoryId?: string\n defaultValues?: AssignSignatoryDefaultValues\n onSignatoryAssignmentModeChange: (mode: string) => void\n onSignatoryFormEvent: BaseComponentInterface['onEvent']\n}\n\nconst [useAssignSignatory, AssignSignatoryProvider] =\n createCompoundContext<AssignSignatoryContextType>('AssignSignatoryContext')\n\nexport { useAssignSignatory, AssignSignatoryProvider }\n"],"names":["SignatoryAssignmentMode","useAssignSignatory","AssignSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAMO,MAAMA,IAA0B;AAAA,EACrC,iBAAiB;AAAA,EACjB,iBAAiB;AACnB,GAeM,CAACC,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
1
+ {"version":3,"file":"useAssignSignatory.js","sources":["../../../../src/components/Company/AssignSignatory/useAssignSignatory.ts"],"sourcesContent":["import { type CreateSignatoryDefaultValues } from './CreateSignatory'\nimport { type InviteSignatoryDefaultValues } from './InviteSignatory'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const SignatoryAssignmentMode = {\n createSignatory: 'createSignatory',\n inviteSignatory: 'inviteSignatory',\n} as const\n\nexport type AssignSignatoryDefaultValues = RequireAtLeastOne<{\n create?: CreateSignatoryDefaultValues\n invite?: InviteSignatoryDefaultValues\n}>\n\ntype AssignSignatoryContextType = {\n companyId: string\n signatoryId?: string\n defaultValues?: AssignSignatoryDefaultValues\n onSignatoryAssignmentModeChange: (mode: string) => void\n onSignatoryFormEvent: BaseComponentInterface['onEvent']\n}\n\nconst [useAssignSignatory, AssignSignatoryProvider] =\n createCompoundContext<AssignSignatoryContextType>('AssignSignatoryContext')\n\nexport { useAssignSignatory, AssignSignatoryProvider }\n"],"names":["SignatoryAssignmentMode","useAssignSignatory","AssignSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AAMO,MAAMA,IAA0B;AAAA,EACrC,iBAAiB;AAAA,EACjB,iBAAiB;AACnB,GAeM,CAACC,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
@@ -2,20 +2,21 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
5
  import "@tanstack/react-query";
8
6
  import "../../../Base/useBase.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
8
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
9
12
  import "../../../../shared/constants.js";
10
13
  import "classnames";
11
14
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
12
15
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
- import "dompurify";
14
- import "../../../../contexts/LocaleProvider/useLocale.js";
15
16
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
16
- const [d, s] = o("BankAccountContext");
17
+ const [s, F] = o("BankAccountContext");
17
18
  export {
18
- s as BankAccountFormProvider,
19
- d as useBankAccountForm
19
+ F as BankAccountFormProvider,
20
+ s as useBankAccountForm
20
21
  };
21
22
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
@@ -2,22 +2,23 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
5
  import "@tanstack/react-query";
8
6
  import "../../../Base/useBase.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
8
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
9
12
  import "../../../../shared/constants.js";
10
13
  import "classnames";
11
14
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
12
15
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
- import "dompurify";
14
- import "../../../../contexts/LocaleProvider/useLocale.js";
15
16
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
16
- const [d, f] = t(
17
+ const [f, v] = t(
17
18
  "CompanyDocumentListContext"
18
19
  );
19
20
  export {
20
- f as DocumentListProvider,
21
- d as useDocumentList
21
+ v as DocumentListProvider,
22
+ f as useDocumentList
22
23
  };
23
24
  //# sourceMappingURL=useDocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
1
+ {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -2,22 +2,23 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
5
  import "@tanstack/react-query";
8
6
  import "../../../Base/useBase.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
8
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
9
12
  import "../../../../shared/constants.js";
10
13
  import "classnames";
11
14
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
12
15
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
- import "dompurify";
14
- import "../../../../contexts/LocaleProvider/useLocale.js";
15
16
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
16
- const [d, s] = o(
17
+ const [s, f] = o(
17
18
  "CompanySignatureFormContext"
18
19
  );
19
20
  export {
20
- s as SignatureFormProvider,
21
- d as useSignatureForm
21
+ f as SignatureFormProvider,
22
+ s as useSignatureForm
22
23
  };
23
24
  //# sourceMappingURL=useSignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/useSignatureForm.ts"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype SignatureFormContextType = {\n form: FormSchema\n pdfUrl?: string | null\n isPending: boolean\n onBack: () => void\n}\n\nconst [useSignatureForm, SignatureFormProvider] = createCompoundContext<SignatureFormContextType>(\n 'CompanySignatureFormContext',\n)\n\nexport { useSignatureForm, SignatureFormProvider }\n"],"names":["useSignatureForm","SignatureFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useSignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/useSignatureForm.ts"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype SignatureFormContextType = {\n form: FormSchema\n pdfUrl?: string | null\n isPending: boolean\n onBack: () => void\n}\n\nconst [useSignatureForm, SignatureFormProvider] = createCompoundContext<SignatureFormContextType>(\n 'CompanySignatureFormContext',\n)\n\nexport { useSignatureForm, SignatureFormProvider }\n"],"names":["useSignatureForm","SignatureFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -1,31 +1,32 @@
1
1
  import { z as o } from "zod";
2
- import { FilingForm as r, TaxPayerType as e } from "@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails";
2
+ import { FilingForm as r, TaxPayerType as t } from "@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "react-error-boundary";
6
6
  import "react-i18next";
7
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
8
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
9
7
  import "@tanstack/react-query";
10
8
  import "../../Base/useBase.js";
9
+ import "@gusto/embedded-api/models/errors/apierror";
10
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
11
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
12
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
13
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
11
14
  import "../../../shared/constants.js";
12
15
  import "classnames";
13
16
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
14
17
  import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
15
- import "dompurify";
16
- import "../../../contexts/LocaleProvider/useLocale.js";
17
- import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
18
- const b = o.object({
18
+ import { createCompoundContext as e } from "../../Base/createCompoundContext.js";
19
+ const j = o.object({
19
20
  federalEin: o.string().optional(),
20
- taxPayerType: o.enum(Object.values(e)).optional(),
21
+ taxPayerType: o.enum(Object.values(t)).optional(),
21
22
  filingForm: o.enum(Object.values(r)).optional(),
22
23
  legalName: o.string().min(1)
23
- }), [j, v] = t(
24
+ }), [v, P] = e(
24
25
  "CompanyFederalTaxesContext"
25
26
  );
26
27
  export {
27
- b as FederalTaxFormSchema,
28
- v as FederalTaxesProvider,
29
- j as useFederalTaxes
28
+ j as FederalTaxFormSchema,
29
+ P as FederalTaxesProvider,
30
+ v as useFederalTaxes
30
31
  };
31
32
  //# sourceMappingURL=useFederalTaxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFederalTaxes.js","sources":["../../../../src/components/Company/FederalTaxes/useFederalTaxes.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { FederalTaxDetails } from '@gusto/embedded-api/models/components/federaltaxdetails'\nimport {\n FilingForm,\n TaxPayerType,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const FederalTaxFormSchema = z.object({\n federalEin: z.string().optional(),\n taxPayerType: z.enum(Object.values(TaxPayerType) as [string, ...string[]]).optional(),\n filingForm: z.enum(Object.values(FilingForm) as [string, ...string[]]).optional(),\n legalName: z.string().min(1),\n})\n\nexport type FederalTaxFormInputs = z.input<typeof FederalTaxFormSchema>\n\nexport type FederalTaxesDefaultValues = RequireAtLeastOne<{\n taxPayerType?: FederalTaxFormInputs['taxPayerType']\n filingForm?: FederalTaxFormInputs['filingForm']\n legalName?: FederalTaxFormInputs['legalName']\n}>\n\ntype FederalTaxesContextType = {\n isPending: boolean\n federalTaxDetails?: FederalTaxDetails\n}\n\nconst [useFederalTaxes, FederalTaxesProvider] = createCompoundContext<FederalTaxesContextType>(\n 'CompanyFederalTaxesContext',\n)\n\nexport { useFederalTaxes, FederalTaxesProvider }\n"],"names":["FederalTaxFormSchema","z","TaxPayerType","FilingForm","useFederalTaxes","FederalTaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;;AASO,MAAMA,IAAuBC,EAAE,OAAO;AAAA,EAC3C,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,cAAcA,EAAE,KAAK,OAAO,OAAOC,CAAY,CAA0B,EAAE,SAAA;AAAA,EAC3E,YAAYD,EAAE,KAAK,OAAO,OAAOE,CAAU,CAA0B,EAAE,SAAA;AAAA,EACvE,WAAWF,EAAE,OAAA,EAAS,IAAI,CAAC;AAC7B,CAAC,GAeK,CAACG,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
1
+ {"version":3,"file":"useFederalTaxes.js","sources":["../../../../src/components/Company/FederalTaxes/useFederalTaxes.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { FederalTaxDetails } from '@gusto/embedded-api/models/components/federaltaxdetails'\nimport {\n FilingForm,\n TaxPayerType,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const FederalTaxFormSchema = z.object({\n federalEin: z.string().optional(),\n taxPayerType: z.enum(Object.values(TaxPayerType) as [string, ...string[]]).optional(),\n filingForm: z.enum(Object.values(FilingForm) as [string, ...string[]]).optional(),\n legalName: z.string().min(1),\n})\n\nexport type FederalTaxFormInputs = z.input<typeof FederalTaxFormSchema>\n\nexport type FederalTaxesDefaultValues = RequireAtLeastOne<{\n taxPayerType?: FederalTaxFormInputs['taxPayerType']\n filingForm?: FederalTaxFormInputs['filingForm']\n legalName?: FederalTaxFormInputs['legalName']\n}>\n\ntype FederalTaxesContextType = {\n isPending: boolean\n federalTaxDetails?: FederalTaxDetails\n}\n\nconst [useFederalTaxes, FederalTaxesProvider] = createCompoundContext<FederalTaxesContextType>(\n 'CompanyFederalTaxesContext',\n)\n\nexport { useFederalTaxes, FederalTaxesProvider }\n"],"names":["FederalTaxFormSchema","z","TaxPayerType","FilingForm","useFederalTaxes","FederalTaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;;;AASO,MAAMA,IAAuBC,EAAE,OAAO;AAAA,EAC3C,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,cAAcA,EAAE,KAAK,OAAO,OAAOC,CAAY,CAA0B,EAAE,SAAA;AAAA,EAC3E,YAAYD,EAAE,KAAK,OAAO,OAAOE,CAAU,CAA0B,EAAE,SAAA;AAAA,EACvE,WAAWF,EAAE,OAAA,EAAS,IAAI,CAAC;AAC7B,CAAC,GAeK,CAACG,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -2,26 +2,27 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
5
  import "@tanstack/react-query";
8
6
  import "../../Base/useBase.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
8
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
9
12
  import "../../../shared/constants.js";
10
13
  import "classnames";
11
14
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
12
15
  import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
- import "dompurify";
14
- import "../../../contexts/LocaleProvider/useLocale.js";
15
16
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
16
- const [P, f] = t("IndustryItems", {
17
+ const [f, v] = t("IndustryItems", {
17
18
  items: []
18
- }), [v, x] = t("IndustryApi", {
19
+ }), [x, C] = t("IndustryApi", {
19
20
  isPending: !1
20
21
  });
21
22
  export {
22
- x as IndustryApiStateProvider,
23
- f as IndustryItemsProvider,
24
- v as useIndustryApiState,
25
- P as useIndustryItems
23
+ C as IndustryApiStateProvider,
24
+ v as IndustryItemsProvider,
25
+ x as useIndustryApiState,
26
+ f as useIndustryItems
26
27
  };
27
28
  //# sourceMappingURL=Context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Context.js","sources":["../../../../src/components/Company/Industry/Context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport type { ComboBoxOption } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\n\nconst [useIndustryItems, IndustryItemsProvider] = createCompoundContext('IndustryItems', {\n items: [] as ComboBoxOption[],\n})\n\nconst [useIndustryApiState, IndustryApiStateProvider] = createCompoundContext('IndustryApi', {\n isPending: false,\n})\n\nexport { IndustryApiStateProvider, IndustryItemsProvider, useIndustryItems, useIndustryApiState }\n"],"names":["useIndustryItems","IndustryItemsProvider","createCompoundContext","useIndustryApiState","IndustryApiStateProvider"],"mappings":";;;;;;;;;;;;;;;AAGA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC,EAAsB,iBAAiB;AAAA,EACvF,OAAO,CAAA;AACT,CAAC,GAEK,CAACC,GAAqBC,CAAwB,IAAIF,EAAsB,eAAe;AAAA,EAC3F,WAAW;AACb,CAAC;"}
1
+ {"version":3,"file":"Context.js","sources":["../../../../src/components/Company/Industry/Context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport type { ComboBoxOption } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\n\nconst [useIndustryItems, IndustryItemsProvider] = createCompoundContext('IndustryItems', {\n items: [] as ComboBoxOption[],\n})\n\nconst [useIndustryApiState, IndustryApiStateProvider] = createCompoundContext('IndustryApi', {\n isPending: false,\n})\n\nexport { IndustryApiStateProvider, IndustryItemsProvider, useIndustryItems, useIndustryApiState }\n"],"names":["useIndustryItems","IndustryItemsProvider","createCompoundContext","useIndustryApiState","IndustryApiStateProvider"],"mappings":";;;;;;;;;;;;;;;;AAGA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC,EAAsB,iBAAiB;AAAA,EACvF,OAAO,CAAA;AACT,CAAC,GAEK,CAACC,GAAqBC,CAAwB,IAAIF,EAAsB,eAAe;AAAA,EAC3F,WAAW;AACb,CAAC;"}
@@ -2,22 +2,23 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
5
  import "@tanstack/react-query";
8
6
  import "../../../Base/useBase.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
8
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
+ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
9
12
  import "../../../../shared/constants.js";
10
13
  import "classnames";
11
14
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
12
15
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
- import "dompurify";
14
- import "../../../../contexts/LocaleProvider/useLocale.js";
15
16
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
16
- const [L, f] = o(
17
+ const [f, v] = o(
17
18
  "CompanyDocumentFormContext"
18
19
  );
19
20
  export {
20
- f as LocationsFormProvider,
21
- L as useLocationsForm
21
+ v as LocationsFormProvider,
22
+ f as useLocationsForm
22
23
  };
23
24
  //# sourceMappingURL=useLocationForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocationForm.js","sources":["../../../../../src/components/Company/Locations/LocationForm/useLocationForm.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\n\ntype LocationsFormContextType = {\n isPending: boolean\n handleCancel: () => void\n}\n\nconst [useLocationsForm, LocationsFormProvider] = createCompoundContext<LocationsFormContextType>(\n 'CompanyDocumentFormContext',\n)\n\nexport { useLocationsForm, LocationsFormProvider }\n"],"names":["useLocationsForm","LocationsFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAOA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useLocationForm.js","sources":["../../../../../src/components/Company/Locations/LocationForm/useLocationForm.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\n\ntype LocationsFormContextType = {\n isPending: boolean\n handleCancel: () => void\n}\n\nconst [useLocationsForm, LocationsFormProvider] = createCompoundContext<LocationsFormContextType>(\n 'CompanyDocumentFormContext',\n)\n\nexport { useLocationsForm, LocationsFormProvider }\n"],"names":["useLocationsForm","LocationsFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AAOA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}