@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
@@ -0,0 +1,24 @@
1
+ const e = "Add work address", t = "Edit work address", s = "Work address", a = "The primary location where the employee will be working.", o = "Effective date", d = "The date this work address takes effect.", i = "Save work address", r = "Save changes", c = { locationUuid: { REQUIRED: "Work address is required" }, effectiveDate: { REQUIRED: "Effective date is required" } }, n = {
2
+ addTitle: e,
3
+ editTitle: t,
4
+ locationLabel: s,
5
+ locationDescription: a,
6
+ effectiveDateLabel: o,
7
+ effectiveDateDescription: d,
8
+ createCta: i,
9
+ updateCta: r,
10
+ fieldValidations: c
11
+ };
12
+ export {
13
+ e as addTitle,
14
+ i as createCta,
15
+ n as default,
16
+ t as editTitle,
17
+ d as effectiveDateDescription,
18
+ o as effectiveDateLabel,
19
+ c as fieldValidations,
20
+ a as locationDescription,
21
+ s as locationLabel,
22
+ r as updateCta
23
+ };
24
+ //# sourceMappingURL=UNSTABLE.WorkAddressForm.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UNSTABLE.WorkAddressForm.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -3,7 +3,8 @@ declare const _default: {
3
3
  "loading": "Loading component...",
4
4
  "loadingOptions": "Loading options...",
5
5
  "requiredField": "is a required field",
6
- "errorEncountered": "There was a problem with your submission"
6
+ "errorEncountered": "There was a problem with your submission",
7
+ "multipleErrorsEncountered": "There were multiple problems with your submission"
7
8
  },
8
9
  "optionalLabel": "(optional)",
9
10
  "progressBarLabel": "You are on step {{currentStep}} of {{totalSteps}}",
@@ -1,35 +1,35 @@
1
- const e = { loading: "Loading component...", loadingOptions: "Loading options...", requiredField: "is a required field", errorEncountered: "There was a problem with your submission" }, o = "(optional)", n = "You are on step {{currentStep}} of {{totalSteps}}", i = { errorHeading: "Error", globalReactError: "Error while rendering SDK component: {{error}}", resetGlobalError: "Try again", unknownError: "Unknown Error", missingParamsOrContext: "{{component}} is missing {{param}} parameter or is used outside {{provider}}", unhandledEvent: "Unhandled event type: {{event}}", unknownEventType: "Unprocessed event type", ensureRequired: "Required prop is missing" }, t = { selectArrow: "Show options", calendarArrow: "Show calendar", nextMonth: "Show next month", previousMonth: "Show previous month", magnifyingGlass: "Magnifying glass", paginationFirst: "Navigate to first page", paginationPrev: "Navigate to previous page", paginationNext: "Navigate to next page", paginationLast: "Navigate to last page" }, a = { paginationControlCountLabel: "Items per page", paginationFetchingLabel: "Fetching data...", openMenu: "Open menu", menuLabel: "Menu", tabNavigation: "Tab navigation", selectedItems: "Selected {{label}}", removeItem: "Remove {{label}}" }, r = { contractor: { undefined: "N/A", admin_onboarding_incomplete: "Admin-onboarding Incomplete", admin_onboarding_review: "Admin-onboarding review", onboarding_completed: "Completed", self_onboarding_not_invited: "Self-onboarding: Not Invited", self_onboarding_invited: "Self-onboarding: Invited", self_onboarding_started: "Self-onboarding started", self_onboarding_review: "Self-onboarding: Review" }, employee: { undefined: "N/A", admin_onboarding_incomplete: "Admin-onboarding Incomplete", onboarding_completed: "Completed", self_onboarding_pending_invite: "Self-onboarding: Pending Invite", self_onboarding_invited: "Self-onboarding: Invited", self_onboarding_invited_started: "Self-onboarding started", self_onboarding_invited_overdue: "Self-onboarding: Overdue", self_onboarding_completed_by_employee: "Self-onboarding: Completed", self_onboarding_awaiting_admin_review: "Self-onboarding: Admin review" } }, s = { ssn: { placeholder: "***-**-****" }, ein: { placeholder: "**-*******" }, workersCompensationRatePerHourAdornment: "/hr" }, d = { hourly: "{{amount}}/hr", weekly: "{{amount}}/yr", monthly: "{{amount}}/yr", yearly: "{{amount}}/yr", paycheck: "{{amount}}/paycheck" }, l = { accountName: "Account name is required", routingNumber: "Routing number should be a number (9 digits)", accountNumber: "Account number is a required field", ssn: "The SSN must be exactly 9 digits long, cannot contain all zeros in any group, and the first three digits cannot be '666' or in the range 900–999.", location: "Location is not valid", dob: "Date of birth is required", percentageMin: "Minimum value is {{min}}%", percentageMax: "Maximum value is {{max}}%" }, m = { AL: "Alabama", AK: "Alaska", AZ: "Arizona", AR: "Arkansas", CA: "California", CO: "Colorado", CT: "Connecticut", DE: "Delaware", DC: "District of Columbia", FL: "Florida", GA: "Georgia", HI: "Hawaii", ID: "Idaho", IL: "Illinois", IN: "Indiana", IA: "Iowa", KS: "Kansas", KY: "Kentucky", LA: "Louisiana", ME: "Maine", MD: "Maryland", MA: "Massachusetts", MI: "Michigan", MN: "Minnesota", MS: "Mississippi", MO: "Missouri", MT: "Montana", NE: "Nebraska", NV: "Nevada", NH: "New Hampshire", NJ: "New Jersey", NM: "New Mexico", NY: "New York", NC: "North Carolina", ND: "North Dakota", OH: "Ohio", OK: "Oklahoma", OR: "Oregon", PA: "Pennsylvania", RI: "Rhode Island", SC: "South Carolina", SD: "South Dakota", TN: "Tennessee", TX: "Texas", UT: "Utah", VT: "Vermont", VA: "Virginia", WA: "Washington", WV: "West Virginia", WI: "Wisconsin", WY: "Wyoming" }, g = { selectRowHeader: "Select row", selectRowLabel: "Select row", actionsColumnHeader: "Actions" }, c = { selectRowLabel: "Select row" }, p = { owner: "Owner", president: "President", vice_president: "Vice President", treasurer: "Treasurer", corporate_officer: "Corporate Officer", partner: "Partner", member: "Member" }, u = { uploadInstructions: "<clickToUpload>Click to upload</clickToUpload> or drag and drop", acceptedTypes: "Only {{types}} files are permitted", removeFile: "Remove file" }, b = { itemMovedDown: "Item {{item}} moved down to position {{position}} of {{total}}", itemMovedUp: "Item {{item}} moved up to position {{position}} of {{total}}", dragStarted: "Started dragging item {{item}}", dragEnded: "Finished dragging item {{item}}", movedUp: "Item {{item}} moved up to position {{position}} of {{total}}", movedDown: "Item {{item}} moved down to position {{position}} of {{total}}", reorderingCanceled: "Reordering mode canceled for item {{item}}", reorderingExited: "Exited reordering mode for item {{item}}", reorderingStarted: "Entered reordering mode for item {{item}}. Use arrow keys to move, Escape to cancel, or Space to finish.", reorderingComplete: "Reordering complete for item {{item}}", draggableLabel: "Press Space or Enter to start reordering item {{item}}", draggableLabelActive: "Press arrow keys to move item {{item}}, or press Space/Enter to finish reordering", draggablePosition: "Item {{item}} at position {{position}} of {{total}}", item: "Item {{position}}", dropItemHere: "Drop item here", draggableItem: "Draggable item" }, v = {
1
+ const e = { loading: "Loading component...", loadingOptions: "Loading options...", requiredField: "is a required field", errorEncountered: "There was a problem with your submission", multipleErrorsEncountered: "There were multiple problems with your submission" }, o = "(optional)", n = "You are on step {{currentStep}} of {{totalSteps}}", i = { errorHeading: "Error", globalReactError: "Error while rendering SDK component: {{error}}", resetGlobalError: "Try again", unknownError: "Unknown Error", missingParamsOrContext: "{{component}} is missing {{param}} parameter or is used outside {{provider}}", unhandledEvent: "Unhandled event type: {{event}}", unknownEventType: "Unprocessed event type", ensureRequired: "Required prop is missing" }, t = { selectArrow: "Show options", calendarArrow: "Show calendar", nextMonth: "Show next month", previousMonth: "Show previous month", magnifyingGlass: "Magnifying glass", paginationFirst: "Navigate to first page", paginationPrev: "Navigate to previous page", paginationNext: "Navigate to next page", paginationLast: "Navigate to last page" }, r = { paginationControlCountLabel: "Items per page", paginationFetchingLabel: "Fetching data...", openMenu: "Open menu", menuLabel: "Menu", tabNavigation: "Tab navigation", selectedItems: "Selected {{label}}", removeItem: "Remove {{label}}" }, a = { contractor: { undefined: "N/A", admin_onboarding_incomplete: "Admin-onboarding Incomplete", admin_onboarding_review: "Admin-onboarding review", onboarding_completed: "Completed", self_onboarding_not_invited: "Self-onboarding: Not Invited", self_onboarding_invited: "Self-onboarding: Invited", self_onboarding_started: "Self-onboarding started", self_onboarding_review: "Self-onboarding: Review" }, employee: { undefined: "N/A", admin_onboarding_incomplete: "Admin-onboarding Incomplete", onboarding_completed: "Completed", self_onboarding_pending_invite: "Self-onboarding: Pending Invite", self_onboarding_invited: "Self-onboarding: Invited", self_onboarding_invited_started: "Self-onboarding started", self_onboarding_invited_overdue: "Self-onboarding: Overdue", self_onboarding_completed_by_employee: "Self-onboarding: Completed", self_onboarding_awaiting_admin_review: "Self-onboarding: Admin review" } }, s = { ssn: { placeholder: "***-**-****" }, ein: { placeholder: "**-*******" }, workersCompensationRatePerHourAdornment: "/hr" }, d = { hourly: "{{amount}}/hr", weekly: "{{amount}}/yr", monthly: "{{amount}}/yr", yearly: "{{amount}}/yr", paycheck: "{{amount}}/paycheck" }, l = { accountName: "Account name is required", routingNumber: "Routing number should be a number (9 digits)", accountNumber: "Account number is a required field", ssn: "The SSN must be exactly 9 digits long, cannot contain all zeros in any group, and the first three digits cannot be '666' or in the range 900–999.", location: "Location is not valid", dob: "Date of birth is required", percentageMin: "Minimum value is {{min}}%", percentageMax: "Maximum value is {{max}}%" }, m = { AL: "Alabama", AK: "Alaska", AZ: "Arizona", AR: "Arkansas", CA: "California", CO: "Colorado", CT: "Connecticut", DE: "Delaware", DC: "District of Columbia", FL: "Florida", GA: "Georgia", HI: "Hawaii", ID: "Idaho", IL: "Illinois", IN: "Indiana", IA: "Iowa", KS: "Kansas", KY: "Kentucky", LA: "Louisiana", ME: "Maine", MD: "Maryland", MA: "Massachusetts", MI: "Michigan", MN: "Minnesota", MS: "Mississippi", MO: "Missouri", MT: "Montana", NE: "Nebraska", NV: "Nevada", NH: "New Hampshire", NJ: "New Jersey", NM: "New Mexico", NY: "New York", NC: "North Carolina", ND: "North Dakota", OH: "Ohio", OK: "Oklahoma", OR: "Oregon", PA: "Pennsylvania", RI: "Rhode Island", SC: "South Carolina", SD: "South Dakota", TN: "Tennessee", TX: "Texas", UT: "Utah", VT: "Vermont", VA: "Virginia", WA: "Washington", WV: "West Virginia", WI: "Wisconsin", WY: "Wyoming" }, g = { selectRowHeader: "Select row", selectRowLabel: "Select row", actionsColumnHeader: "Actions" }, p = { selectRowLabel: "Select row" }, c = { owner: "Owner", president: "President", vice_president: "Vice President", treasurer: "Treasurer", corporate_officer: "Corporate Officer", partner: "Partner", member: "Member" }, u = { uploadInstructions: "<clickToUpload>Click to upload</clickToUpload> or drag and drop", acceptedTypes: "Only {{types}} files are permitted", removeFile: "Remove file" }, b = { itemMovedDown: "Item {{item}} moved down to position {{position}} of {{total}}", itemMovedUp: "Item {{item}} moved up to position {{position}} of {{total}}", dragStarted: "Started dragging item {{item}}", dragEnded: "Finished dragging item {{item}}", movedUp: "Item {{item}} moved up to position {{position}} of {{total}}", movedDown: "Item {{item}} moved down to position {{position}} of {{total}}", reorderingCanceled: "Reordering mode canceled for item {{item}}", reorderingExited: "Exited reordering mode for item {{item}}", reorderingStarted: "Entered reordering mode for item {{item}}. Use arrow keys to move, Escape to cancel, or Space to finish.", reorderingComplete: "Reordering complete for item {{item}}", draggableLabel: "Press Space or Enter to start reordering item {{item}}", draggableLabelActive: "Press arrow keys to move item {{item}}, or press Space/Enter to finish reordering", draggablePosition: "Item {{item}} at position {{position}} of {{total}}", item: "Item {{position}}", dropItemHere: "Drop item here", draggableItem: "Draggable item" }, v = {
2
2
  status: e,
3
3
  optionalLabel: o,
4
4
  progressBarLabel: n,
5
5
  errors: i,
6
6
  icons: t,
7
- labels: a,
8
- onboardingStatus: r,
7
+ labels: r,
8
+ onboardingStatus: a,
9
9
  inputs: s,
10
10
  payRateFormats: d,
11
11
  validations: l,
12
12
  statesHash: m,
13
13
  table: g,
14
- card: c,
15
- signatoryTitles: p,
14
+ card: p,
15
+ signatoryTitles: c,
16
16
  fileInput: u,
17
17
  reorderableList: b
18
18
  };
19
19
  export {
20
- c as card,
20
+ p as card,
21
21
  v as default,
22
22
  i as errors,
23
23
  u as fileInput,
24
24
  t as icons,
25
25
  s as inputs,
26
- a as labels,
27
- r as onboardingStatus,
26
+ r as labels,
27
+ a as onboardingStatus,
28
28
  o as optionalLabel,
29
29
  d as payRateFormats,
30
30
  n as progressBarLabel,
31
31
  b as reorderableList,
32
- p as signatoryTitles,
32
+ c as signatoryTitles,
33
33
  m as statesHash,
34
34
  e as status,
35
35
  g as table,
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './components';
3
3
  export * from './contexts';
4
4
  export { componentEvents } from './shared/constants';
5
5
  export type { BeforeCreateRequestHook, BeforeRequestHook, AfterSuccessHook, AfterErrorHook, BeforeCreateRequestContext, BeforeRequestContext, AfterSuccessContext, AfterErrorContext, SDKHooks, } from './types/hooks';
6
- export type { ObservabilityHook, ObservabilityError, ObservabilityErrorType, ObservabilityErrorContext, ObservabilityMetric, ObservabilityMetricUnit, SanitizationConfig, } from './types/observability';
7
- export { createObservabilityError } from './contexts/ObservabilityProvider';
6
+ export type { SDKError, SDKErrorCategory, SDKFieldError } from './types/sdkError';
7
+ export { normalizeToSDKError, SDKInternalError } from './types/sdkError';
8
+ export type { ObservabilityHook, ObservabilityError, ObservabilityMetric, ObservabilityMetricUnit, SanitizationConfig, } from './types/observability';
8
9
  export type { ConfirmWireDetailsProps, ConfirmWireDetailsComponentType, } from './components/Payroll/ConfirmWireDetails';
package/dist/index.js CHANGED
@@ -4,25 +4,26 @@ import * as e from "./components/Employee/index.js";
4
4
  import * as t from "./components/InformationRequests/index.js";
5
5
  import * as i from "./components/Payroll/index.js";
6
6
  import { ApiProvider as s } from "./contexts/ApiProvider/ApiProvider.js";
7
- import { ObservabilityProvider as x } from "./contexts/ObservabilityProvider/ObservabilityProvider.js";
8
- import { useObservability as n } from "./contexts/ObservabilityProvider/useObservability.js";
9
- import { createObservabilityError as v } from "./contexts/ObservabilityProvider/observabilityUtils.js";
10
- import { componentEvents as l } from "./shared/constants.js";
11
- import { GustoApiProvider as y, GustoProvider as P } from "./contexts/GustoProvider/GustoProvider.js";
12
- import { GustoProviderCustomUIAdapter as c } from "./contexts/GustoProvider/GustoProviderCustomUIAdapter.js";
7
+ import { componentEvents as x } from "./shared/constants.js";
8
+ import { SDKInternalError as f, normalizeToSDKError as d } from "./types/sdkError.js";
9
+ import { GustoApiProvider as l, GustoProvider as u } from "./contexts/GustoProvider/GustoProvider.js";
10
+ import { GustoProviderCustomUIAdapter as y } from "./contexts/GustoProvider/GustoProviderCustomUIAdapter.js";
11
+ import { ObservabilityProvider as E } from "./contexts/ObservabilityProvider/ObservabilityProvider.js";
12
+ import { useObservability as A } from "./contexts/ObservabilityProvider/useObservability.js";
13
13
  export {
14
14
  s as ApiProvider,
15
15
  r as Company,
16
16
  o as Contractor,
17
17
  e as Employee,
18
- y as GustoApiProvider,
19
- P as GustoProvider,
20
- c as GustoProviderCustomUIAdapter,
18
+ l as GustoApiProvider,
19
+ u as GustoProvider,
20
+ y as GustoProviderCustomUIAdapter,
21
21
  t as InformationRequests,
22
- x as ObservabilityProvider,
22
+ E as ObservabilityProvider,
23
23
  i as Payroll,
24
- l as componentEvents,
25
- v as createObservabilityError,
26
- n as useObservability
24
+ f as SDKInternalError,
25
+ x as componentEvents,
26
+ d as normalizeToSDKError,
27
+ A as useObservability
27
28
  };
28
29
  //# sourceMappingURL=index.js.map