@gusto/embedded-react-sdk 0.37.0-rc.1 → 0.37.0-rc.3

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 (563) hide show
  1. package/CHANGELOG.md +44 -8
  2. package/README.md +9 -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 +2 -1
  7. package/dist/components/Base/Base.js +76 -76
  8. package/dist/components/Base/Base.js.map +1 -1
  9. package/dist/components/Base/createCompoundContext.js.map +1 -1
  10. package/dist/components/Common/DataView/DataCards/DataCards.js +42 -36
  11. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  12. package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
  13. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +22 -19
  14. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  15. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  16. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
  17. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  18. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
  19. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
  20. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  21. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
  22. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +52 -40
  23. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  24. package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
  25. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
  26. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
  27. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
  28. package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
  29. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +31 -28
  30. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  31. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
  32. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +30 -27
  33. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  34. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
  35. package/dist/components/Common/Fields/SelectField/SelectField.js +31 -28
  36. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  37. package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
  38. package/dist/components/Common/Fields/SwitchField/SwitchField.js +24 -21
  39. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  40. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
  41. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
  42. package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
  43. package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -23
  44. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  45. package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
  46. package/dist/components/Common/Fields/hooks/useField.js +37 -33
  47. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  48. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  49. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
  50. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  51. package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -14
  52. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  53. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -19
  54. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  55. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  56. package/dist/components/Common/UI/Button/Button.js +33 -29
  57. package/dist/components/Common/UI/Button/Button.js.map +1 -1
  58. package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
  59. package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
  60. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
  61. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  62. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +2 -2
  63. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  64. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
  65. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  66. package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
  67. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  68. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  69. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
  70. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  71. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -10
  72. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  73. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -11
  74. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  75. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
  76. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  77. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +14 -16
  78. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  79. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -7
  80. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  81. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -9
  82. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  83. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
  84. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  85. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -15
  86. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  87. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -7
  88. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  89. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
  90. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  91. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -9
  92. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  93. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -11
  94. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  95. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
  96. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  97. package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -7
  98. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  99. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -13
  100. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  101. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +12 -15
  102. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  103. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
  104. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  105. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -8
  106. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  107. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
  108. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  109. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -7
  110. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  111. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  112. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  113. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +8 -7
  114. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  115. package/dist/components/Company/FederalTaxes/Actions.js +8 -11
  116. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  117. package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -19
  118. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  119. package/dist/components/Company/FederalTaxes/Form.js +6 -8
  120. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  121. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +13 -12
  122. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  123. package/dist/components/Company/Industry/Actions.js +8 -11
  124. package/dist/components/Company/Industry/Actions.js.map +1 -1
  125. package/dist/components/Company/Industry/Context.js +11 -10
  126. package/dist/components/Company/Industry/Context.js.map +1 -1
  127. package/dist/components/Company/Industry/Edit.js +10 -14
  128. package/dist/components/Company/Industry/Edit.js.map +1 -1
  129. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -11
  130. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  131. package/dist/components/Company/Locations/LocationForm/Form.js +5 -8
  132. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  133. package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
  134. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  135. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -7
  136. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  137. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -9
  138. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  139. package/dist/components/Company/Locations/LocationsList/List.js +17 -19
  140. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  141. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
  142. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  143. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -7
  144. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  145. package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
  146. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  147. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
  148. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  149. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
  150. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  151. package/dist/components/Company/OnboardingOverview/context.js +8 -7
  152. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  153. package/dist/components/Company/PaySchedule/PaySchedule.js +3 -6
  154. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  155. package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -13
  156. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  157. package/dist/components/Company/PaySchedule/_parts/Edit.js +17 -18
  158. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  159. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
  160. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  161. package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
  162. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  163. package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -9
  164. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  165. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -8
  166. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  167. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  168. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -7
  169. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  170. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -9
  171. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  172. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -8
  173. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  174. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -7
  175. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  176. package/dist/components/Contractor/Address/Address.js +3 -7
  177. package/dist/components/Contractor/Address/Address.js.map +1 -1
  178. package/dist/components/Contractor/Address/Form.js +9 -12
  179. package/dist/components/Contractor/Address/Form.js.map +1 -1
  180. package/dist/components/Contractor/Address/useAddress.js +10 -9
  181. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  182. package/dist/components/Contractor/ContractorList/index.js +29 -30
  183. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  184. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  185. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  186. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -14
  187. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  188. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  189. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  190. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
  191. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  192. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  193. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +12 -14
  194. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  195. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +12 -13
  196. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  197. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
  198. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  199. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
  200. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  201. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
  202. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  203. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
  204. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  205. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
  206. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  207. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -5
  208. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  209. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  210. package/dist/components/Contractor/Profile/useContractorProfile.js +11 -8
  211. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  212. package/dist/components/Contractor/Submit/Submit.js +20 -22
  213. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  214. package/dist/components/Employee/Compensation/Actions.js +12 -14
  215. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  216. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  217. package/dist/components/Employee/Compensation/Edit.js +27 -28
  218. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  219. package/dist/components/Employee/Compensation/List.js +23 -25
  220. package/dist/components/Employee/Compensation/List.js.map +1 -1
  221. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +55 -49
  222. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  223. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +14 -13
  224. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  225. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  226. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +14 -13
  227. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  228. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
  229. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  230. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -8
  231. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  232. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -9
  233. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  234. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
  235. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  236. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
  237. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  238. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +8 -7
  239. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  240. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +23 -25
  241. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  242. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -11
  243. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  244. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  245. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  246. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +8 -7
  247. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  248. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
  249. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  250. package/dist/components/Employee/EmployeeList/Actions.js +6 -9
  251. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  252. package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -7
  253. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  254. package/dist/components/Employee/EmployeeList/Head.js +5 -8
  255. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  256. package/dist/components/Employee/EmployeeList/List.js +16 -17
  257. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  258. package/dist/components/Employee/EmployeeList/useEmployeeList.js +8 -7
  259. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  260. package/dist/components/Employee/FederalTaxes/Actions.js +7 -10
  261. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  262. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -13
  263. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  264. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +8 -7
  265. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  266. package/dist/components/Employee/Landing/Landing.js +14 -15
  267. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  268. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  269. package/dist/components/Employee/PaymentMethod/Actions.js +8 -11
  270. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  271. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
  272. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  273. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -10
  274. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  275. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
  276. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  277. package/dist/components/Employee/PaymentMethod/Split.js +9 -10
  278. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  279. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +10 -9
  280. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  281. package/dist/components/Employee/Profile/Actions.js +8 -11
  282. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  283. package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -17
  284. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  285. package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
  286. package/dist/components/Employee/Profile/HomeAddress.js +45 -45
  287. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  288. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +15 -19
  289. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  290. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  291. package/dist/components/Employee/Profile/useProfile.js +8 -7
  292. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  293. package/dist/components/Employee/StateTaxes/Actions.js +8 -11
  294. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  295. package/dist/components/Employee/StateTaxes/useStateTaxes.js +8 -7
  296. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  297. package/dist/components/Employee/Taxes/Actions.js +8 -11
  298. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  299. package/dist/components/Employee/Taxes/FederalForm.js +10 -13
  300. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  301. package/dist/components/Employee/Taxes/useTaxes.js +8 -7
  302. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  303. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +12 -15
  304. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  305. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +1 -0
  306. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +37 -33
  307. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  308. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +1 -0
  309. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +57 -45
  310. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  311. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +8 -11
  312. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  313. package/dist/components/Flow/Flow.js +20 -23
  314. package/dist/components/Flow/Flow.js.map +1 -1
  315. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
  316. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  317. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
  318. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  319. package/dist/components/InformationRequests/InformationRequests.js +3 -4
  320. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  321. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  322. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +10 -12
  323. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  324. package/dist/components/Payroll/Dismissal/DismissalFlow.js +14 -14
  325. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  326. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +2 -2
  327. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +8 -8
  328. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  329. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +2 -1
  330. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +57 -55
  331. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  332. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +8 -11
  333. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  334. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
  335. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +88 -75
  336. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  337. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +6 -6
  338. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
  339. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  340. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +24 -18
  341. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  342. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +2 -0
  343. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +25 -24
  344. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  345. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +56 -53
  346. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  347. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +30 -32
  348. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  349. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +18 -26
  350. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  351. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +2 -2
  352. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  353. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -9
  354. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  355. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
  356. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  357. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
  358. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  359. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  360. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +85 -87
  361. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  362. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +71 -72
  363. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  364. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  365. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +222 -216
  366. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  367. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +19 -21
  368. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  369. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +2 -1
  370. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +29 -27
  371. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  372. package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +1 -1
  373. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +1 -1
  374. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +60 -60
  375. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  376. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +13 -6
  377. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -1
  378. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +22 -20
  379. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
  380. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +31 -33
  381. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  382. package/dist/components/Payroll/PayrollList/PayrollList.js +44 -40
  383. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  384. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +15 -17
  385. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  386. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +15 -15
  387. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  388. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +127 -128
  389. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  390. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
  391. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  392. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
  393. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  394. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
  395. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  396. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
  397. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  398. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
  399. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  400. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +8 -10
  401. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  402. package/dist/components/Payroll/helpers.d.ts +5 -0
  403. package/dist/components/Payroll/helpers.js +81 -74
  404. package/dist/components/Payroll/helpers.js.map +1 -1
  405. package/dist/components/Payroll/usePreparedPayrollData.js +4 -4
  406. package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
  407. package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
  408. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
  409. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +2 -2
  410. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +6 -9
  411. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -1
  412. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +2 -2
  413. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
  414. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
  415. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +11 -6
  416. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
  417. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
  418. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
  419. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
  420. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
  421. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
  422. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
  423. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
  424. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
  425. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +1 -1
  426. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
  427. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
  428. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +11 -0
  429. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +34 -0
  430. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
  431. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +11 -0
  432. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +34 -0
  433. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
  434. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +14 -0
  435. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +40 -0
  436. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
  437. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +12 -0
  438. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +40 -0
  439. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
  440. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +12 -0
  441. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +40 -0
  442. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
  443. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +11 -0
  444. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +34 -0
  445. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
  446. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +13 -0
  447. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +38 -0
  448. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
  449. package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
  450. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
  451. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
  452. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
  453. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
  454. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
  455. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
  456. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
  457. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +8 -1
  458. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
  459. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +13 -0
  460. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
  461. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
  462. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
  463. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
  464. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +12 -0
  465. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -1
  466. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +11 -9
  467. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
  468. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +2 -2
  469. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +2 -3
  470. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -1
  471. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +23 -0
  472. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
  473. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
  474. package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
  475. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
  476. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
  477. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +149 -0
  478. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
  479. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
  480. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +118 -0
  481. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
  482. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
  483. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
  484. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
  485. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +5 -1
  486. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +97 -9
  487. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +255 -3
  488. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
  489. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
  490. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +112 -0
  491. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
  492. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
  493. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
  494. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
  495. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
  496. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
  497. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
  498. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
  499. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
  500. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
  501. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
  502. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
  503. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +69 -0
  504. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
  505. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
  506. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
  507. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
  508. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
  509. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
  510. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
  511. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
  512. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
  513. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
  514. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
  515. package/dist/components/UNSTABLE_Hooks/index.d.ts +8 -4
  516. package/dist/components/UNSTABLE_Hooks/types.d.ts +9 -6
  517. package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
  518. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
  519. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
  520. package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
  521. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +10 -13
  522. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  523. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
  524. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  525. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  526. package/dist/helpers/requiredIf.d.ts +13 -0
  527. package/dist/helpers/requiredIf.js +8 -0
  528. package/dist/helpers/requiredIf.js.map +1 -0
  529. package/dist/i18n/I18n.js +12 -12
  530. package/dist/i18n/I18n.js.map +1 -1
  531. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +26 -0
  532. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
  533. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +24 -0
  534. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
  535. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +32 -0
  536. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
  537. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
  538. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
  539. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
  540. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
  541. package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
  542. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  543. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
  544. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +38 -34
  545. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  546. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -25
  547. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  548. package/dist/i18n/en/Payroll.PayrollOverview.json.js +62 -58
  549. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  550. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
  551. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
  552. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
  553. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
  554. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
  555. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
  556. package/dist/models/WA_RISK_CODES.d.ts +5 -2866
  557. package/dist/models/WA_RISK_CODES.js.map +1 -1
  558. package/dist/style.css +1 -1
  559. package/dist/types/i18next.d.ts +549 -1
  560. package/dist/types/sdkError.d.ts +7 -1
  561. package/dist/types/sdkError.js.map +1 -1
  562. package/docs/reference/endpoint-inventory.json +92 -0
  563. package/package.json +13 -13
@@ -4,16 +4,17 @@ import "react-error-boundary";
4
4
  import "react-i18next";
5
5
  import "@tanstack/react-query";
6
6
  import "../../Base/useBase.js";
7
- import "../../../shared/constants.js";
8
- import "classnames";
9
- import "../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
10
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
11
- import "@gusto/embedded-api/models/errors/httpclienterrors";
12
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "../../../shared/constants.js";
13
+ import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
14
  import { createCompoundContext as o } from "../../Base/createCompoundContext.js";
14
- const [d, s] = o("ProfileContext");
15
+ const [s, u] = o("ProfileContext");
15
16
  export {
16
- s as ProfileProvider,
17
- d as useProfile
17
+ u as ProfileProvider,
18
+ s as useProfile
18
19
  };
19
20
  //# sourceMappingURL=useProfile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useProfile.js","sources":["../../../../src/components/Employee/Profile/useProfile.ts"],"sourcesContent":["import type { Employee } from '@gusto/embedded-api/models/components/employee'\nimport type { EmployeeWorkAddress } from '@gusto/embedded-api/models/components/employeeworkaddress'\nimport { type Location } from '@gusto/embedded-api/models/components/location'\nimport { createCompoundContext } from '@/components/Base'\n\n//Interface for context passed down to component slots\ntype ProfileContextType = {\n companyLocations: Location[]\n workAddresses?: EmployeeWorkAddress[]\n employee?: Employee\n isSelfOnboardingIntended?: boolean\n isPending: boolean\n isAdmin: boolean\n handleCancel: () => void\n isSelfOnboardingEnabled: boolean\n hasCompletedSelfOnboarding: boolean\n}\n\nconst [useProfile, ProfileProvider] = createCompoundContext<ProfileContextType>('ProfileContext')\nexport { useProfile, ProfileProvider }\n"],"names":["useProfile","ProfileProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAkBA,MAAM,CAACA,GAAYC,CAAe,IAAIC,EAA0C,gBAAgB;"}
1
+ {"version":3,"file":"useProfile.js","sources":["../../../../src/components/Employee/Profile/useProfile.ts"],"sourcesContent":["import type { Employee } from '@gusto/embedded-api/models/components/employee'\nimport type { EmployeeWorkAddress } from '@gusto/embedded-api/models/components/employeeworkaddress'\nimport { type Location } from '@gusto/embedded-api/models/components/location'\nimport { createCompoundContext } from '@/components/Base'\n\n//Interface for context passed down to component slots\ntype ProfileContextType = {\n companyLocations: Location[]\n workAddresses?: EmployeeWorkAddress[]\n employee?: Employee\n isSelfOnboardingIntended?: boolean\n isPending: boolean\n isAdmin: boolean\n handleCancel: () => void\n isSelfOnboardingEnabled: boolean\n hasCompletedSelfOnboarding: boolean\n}\n\nconst [useProfile, ProfileProvider] = createCompoundContext<ProfileContextType>('ProfileContext')\nexport { useProfile, ProfileProvider }\n"],"names":["useProfile","ProfileProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAkBA,MAAM,CAACA,GAAYC,CAAe,IAAIC,EAA0C,gBAAgB;"}
@@ -1,16 +1,13 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { useTranslation as r } from "react-i18next";
3
- import { useStateTaxes as e } from "./useStateTaxes.js";
4
- import "../../../shared/constants.js";
5
- import "classnames";
6
- import { ActionsLayout as m } from "../../Common/ActionsLayout/ActionsLayout.js";
7
- import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
- import "react";
9
- function C() {
10
- const { t: o } = r("Employee.StateTaxes"), { isPending: n } = e(), i = s();
11
- return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(i.Button, { type: "submit", isLoading: n, children: o("submitCta") }) });
2
+ import { useTranslation as i } from "react-i18next";
3
+ import { useStateTaxes as s } from "./useStateTaxes.js";
4
+ import { ActionsLayout as r } from "../../Common/ActionsLayout/ActionsLayout.js";
5
+ import { useComponentContext as m } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
+ function x() {
7
+ const { t: o } = i("Employee.StateTaxes"), { isPending: n } = s(), e = m();
8
+ return /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(e.Button, { type: "submit", isLoading: n, children: o("submitCta") }) });
12
9
  }
13
10
  export {
14
- C as Actions
11
+ x as Actions
15
12
  };
16
13
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../src/components/Employee/StateTaxes/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useStateTaxes } from './useStateTaxes'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Employee.StateTaxes')\n const { isPending } = useStateTaxes()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","isPending","useStateTaxes","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAAF,EAAE,WAAW,GAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../src/components/Employee/StateTaxes/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useStateTaxes } from './useStateTaxes'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Employee.StateTaxes')\n const { isPending } = useStateTaxes()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","isPending","useStateTaxes","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAAF,EAAE,WAAW,GAChB,GACF;AAEJ;"}
@@ -4,16 +4,17 @@ import "react-error-boundary";
4
4
  import "react-i18next";
5
5
  import "@tanstack/react-query";
6
6
  import "../../Base/useBase.js";
7
- import "../../../shared/constants.js";
8
- import "classnames";
9
- import "../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
10
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
11
- import "@gusto/embedded-api/models/errors/httpclienterrors";
12
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "../../../shared/constants.js";
13
+ import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
14
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
14
- const [c, d] = t("StateTaxesContext");
15
+ const [d, u] = t("StateTaxesContext");
15
16
  export {
16
- d as StateTaxesProvider,
17
- c as useStateTaxes
17
+ u as StateTaxesProvider,
18
+ d as useStateTaxes
18
19
  };
19
20
  //# sourceMappingURL=useStateTaxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useStateTaxes.js","sources":["../../../../src/components/Employee/StateTaxes/useStateTaxes.ts"],"sourcesContent":["import type { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist'\nimport { createCompoundContext } from '@/components/Base'\n\ntype StateTaxesContextType = {\n employeeStateTaxes: EmployeeStateTaxesList[]\n isPending: boolean\n isAdmin: boolean\n}\n\nconst [useStateTaxes, StateTaxesProvider] =\n createCompoundContext<StateTaxesContextType>('StateTaxesContext')\nexport { useStateTaxes, StateTaxesProvider }\n"],"names":["useStateTaxes","StateTaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AASA,MAAM,CAACA,GAAeC,CAAkB,IACtCC,EAA6C,mBAAmB;"}
1
+ {"version":3,"file":"useStateTaxes.js","sources":["../../../../src/components/Employee/StateTaxes/useStateTaxes.ts"],"sourcesContent":["import type { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist'\nimport { createCompoundContext } from '@/components/Base'\n\ntype StateTaxesContextType = {\n employeeStateTaxes: EmployeeStateTaxesList[]\n isPending: boolean\n isAdmin: boolean\n}\n\nconst [useStateTaxes, StateTaxesProvider] =\n createCompoundContext<StateTaxesContextType>('StateTaxesContext')\nexport { useStateTaxes, StateTaxesProvider }\n"],"names":["useStateTaxes","StateTaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AASA,MAAM,CAACA,GAAeC,CAAkB,IACtCC,EAA6C,mBAAmB;"}
@@ -1,16 +1,13 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as r } from "react-i18next";
3
- import { useTaxes as m } from "./useTaxes.js";
4
- import "../../../shared/constants.js";
5
- import "classnames";
6
- import { ActionsLayout as s } from "../../Common/ActionsLayout/ActionsLayout.js";
7
- import { useComponentContext as e } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
- import "react";
9
- const C = () => {
10
- const { t } = r("Employee.Taxes"), { isPending: n } = m(), i = e();
11
- return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(i.Button, { type: "submit", isLoading: n, children: t("submitCta") }) });
2
+ import { useTranslation as e } from "react-i18next";
3
+ import { useTaxes as i } from "./useTaxes.js";
4
+ import { ActionsLayout as r } from "../../Common/ActionsLayout/ActionsLayout.js";
5
+ import { useComponentContext as m } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
+ const x = () => {
7
+ const { t } = e("Employee.Taxes"), { isPending: n } = i(), s = m();
8
+ return /* @__PURE__ */ o(r, { children: /* @__PURE__ */ o(s.Button, { type: "submit", isLoading: n, children: t("submitCta") }) });
12
9
  };
13
10
  export {
14
- C as Actions
11
+ x as Actions
15
12
  };
16
13
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../src/components/Employee/Taxes/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useTaxes } from './useTaxes'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Employee.Taxes')\n const { isPending } = useTaxes()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useTaxes","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,gBAAgB,GACvC,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,WAAW,GAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../src/components/Employee/Taxes/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useTaxes } from './useTaxes'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Employee.Taxes')\n const { isPending } = useTaxes()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useTaxes","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,gBAAgB,GACvC,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,WAAW,GAChB,GACF;AAEJ;"}
@@ -1,13 +1,10 @@
1
1
  import { jsxs as l, Fragment as a, jsx as r } from "react/jsx-runtime";
2
2
  import { useTranslation as s, Trans as m } from "react-i18next";
3
3
  import { z as t } from "zod";
4
- import "../../../shared/constants.js";
5
- import "classnames";
6
- import { RadioGroupField as u } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
4
+ import { useComponentContext as u } from "../../../contexts/ComponentAdapter/useComponentContext.js";
5
+ import { SelectField as d } from "../../Common/Fields/SelectField/SelectField.js";
6
+ import { RadioGroupField as f } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
7
7
  import { NumberInputField as i } from "../../Common/Fields/NumberInputField/NumberInputField.js";
8
- import { useComponentContext as d } from "../../../contexts/ComponentAdapter/useComponentContext.js";
9
- import "react";
10
- import { SelectField as f } from "../../Common/Fields/SelectField/SelectField.js";
11
8
  const c = t.object({
12
9
  filingStatus: t.string().min(1),
13
10
  twoJobs: t.string().min(1),
@@ -15,9 +12,9 @@ const c = t.object({
15
12
  otherIncome: t.number().transform(String),
16
13
  deductions: t.number().transform(String),
17
14
  extraWithholding: t.number().transform(String)
18
- }), v = c;
19
- function M() {
20
- const { t: e } = s("Employee.Taxes"), o = d(), n = [
15
+ }), R = c;
16
+ function q() {
17
+ const { t: e } = s("Employee.Taxes"), o = u(), n = [
21
18
  { value: "Single", label: e("filingStatusSingle") },
22
19
  { value: "Married", label: e("filingStatusMarried") },
23
20
  { value: "Head of Household", label: e("filingStatusHeadOfHousehold") },
@@ -25,7 +22,7 @@ function M() {
25
22
  ];
26
23
  return /* @__PURE__ */ l(a, { children: [
27
24
  /* @__PURE__ */ r(
28
- f,
25
+ d,
29
26
  {
30
27
  name: "filingStatus",
31
28
  label: e("federalFilingStatus1c"),
@@ -36,7 +33,7 @@ function M() {
36
33
  }
37
34
  ),
38
35
  /* @__PURE__ */ r(
39
- u,
36
+ f,
40
37
  {
41
38
  name: "twoJobs",
42
39
  isRequired: !0,
@@ -105,7 +102,7 @@ function M() {
105
102
  ] });
106
103
  }
107
104
  export {
108
- M as FederalForm,
109
- v as FederalFormSchema
105
+ q as FederalForm,
106
+ R as FederalFormSchema
110
107
  };
111
108
  //# sourceMappingURL=FederalForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FederalForm.js","sources":["../../../../src/components/Employee/Taxes/FederalForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { z } from 'zod'\nimport { NumberInputField, RadioGroupField, SelectField } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nconst Rev2020Schema = z.object({\n filingStatus: z.string().min(1),\n twoJobs: z.string().min(1),\n dependentsAmount: z.number().transform(String),\n otherIncome: z.number().transform(String),\n deductions: z.number().transform(String),\n extraWithholding: z.number().transform(String),\n})\n\nexport const FederalFormSchema = Rev2020Schema\n\nexport type FederalFormInputs = z.input<typeof FederalFormSchema>\nexport type FederalFormPayload = z.output<typeof FederalFormSchema>\n\nexport function FederalForm() {\n const { t } = useTranslation('Employee.Taxes')\n const Components = useComponentContext()\n\n const filingStatusOptions = [\n { value: 'Single', label: t('filingStatusSingle') },\n { value: 'Married', label: t('filingStatusMarried') },\n { value: 'Head of Household', label: t('filingStatusHeadOfHousehold') },\n { value: 'Exempt from withholding', label: t('filingStatusExemptFromWithholding') },\n ]\n\n return (\n <>\n <SelectField\n name=\"filingStatus\"\n label={t('federalFilingStatus1c')}\n placeholder={t('federalFilingStatusPlaceholder')}\n options={filingStatusOptions}\n isRequired\n errorMessage={t('validations.federalFilingStatus')}\n />\n <RadioGroupField\n name=\"twoJobs\"\n isRequired\n label={t('multipleJobs2c')}\n errorMessage={t('validations.federalTwoJobs')}\n description={\n <Components.Text>\n <Trans\n i18nKey={'includesSpouseExplanation'}\n t={t}\n components={{\n IrsLink: <Components.Link />,\n }}\n />\n </Components.Text>\n }\n options={[\n { value: 'true', label: t('twoJobYesLabel') },\n { value: 'false', label: t('twoJobNoLabel') },\n ]}\n />\n <NumberInputField\n name=\"dependentsAmount\"\n isRequired\n label={t('dependentsTotalIfApplicable')}\n format=\"currency\"\n min={0}\n errorMessage={t('fieldIsRequired')}\n />\n <NumberInputField\n name=\"otherIncome\"\n isRequired\n label={t('otherIncome')}\n format=\"currency\"\n min={0}\n errorMessage={t('fieldIsRequired')}\n />\n <NumberInputField\n name=\"deductions\"\n isRequired\n label={t('deductions')}\n format=\"currency\"\n min={0}\n errorMessage={t('fieldIsRequired')}\n />\n <NumberInputField\n name=\"extraWithholding\"\n isRequired\n label={t('extraWithholding')}\n format=\"currency\"\n min={0}\n errorMessage={t('fieldIsRequired')}\n />\n </>\n )\n}\n"],"names":["Rev2020Schema","z","FederalFormSchema","FederalForm","t","useTranslation","Components","useComponentContext","filingStatusOptions","jsxs","Fragment","jsx","SelectField","RadioGroupField","Trans","NumberInputField"],"mappings":"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"}
1
+ {"version":3,"file":"FederalForm.js","sources":["../../../../src/components/Employee/Taxes/FederalForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { z } from 'zod'\nimport { NumberInputField, RadioGroupField, SelectField } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nconst Rev2020Schema = z.object({\n filingStatus: z.string().min(1),\n twoJobs: z.string().min(1),\n dependentsAmount: z.number().transform(String),\n otherIncome: z.number().transform(String),\n deductions: z.number().transform(String),\n extraWithholding: z.number().transform(String),\n})\n\nexport const FederalFormSchema = Rev2020Schema\n\nexport type FederalFormInputs = z.input<typeof FederalFormSchema>\nexport type FederalFormPayload = z.output<typeof FederalFormSchema>\n\nexport function FederalForm() {\n const { t } = useTranslation('Employee.Taxes')\n const Components = useComponentContext()\n\n const filingStatusOptions = [\n { value: 'Single', label: t('filingStatusSingle') },\n { value: 'Married', label: t('filingStatusMarried') },\n { value: 'Head of Household', label: t('filingStatusHeadOfHousehold') },\n { value: 'Exempt from withholding', label: t('filingStatusExemptFromWithholding') },\n ]\n\n return (\n <>\n <SelectField\n name=\"filingStatus\"\n label={t('federalFilingStatus1c')}\n placeholder={t('federalFilingStatusPlaceholder')}\n options={filingStatusOptions}\n isRequired\n errorMessage={t('validations.federalFilingStatus')}\n />\n <RadioGroupField\n name=\"twoJobs\"\n isRequired\n label={t('multipleJobs2c')}\n errorMessage={t('validations.federalTwoJobs')}\n description={\n <Components.Text>\n <Trans\n i18nKey={'includesSpouseExplanation'}\n t={t}\n components={{\n IrsLink: <Components.Link />,\n }}\n />\n </Components.Text>\n }\n options={[\n { value: 'true', label: t('twoJobYesLabel') },\n { value: 'false', label: t('twoJobNoLabel') },\n ]}\n />\n <NumberInputField\n name=\"dependentsAmount\"\n isRequired\n label={t('dependentsTotalIfApplicable')}\n format=\"currency\"\n min={0}\n errorMessage={t('fieldIsRequired')}\n />\n <NumberInputField\n name=\"otherIncome\"\n isRequired\n label={t('otherIncome')}\n format=\"currency\"\n min={0}\n errorMessage={t('fieldIsRequired')}\n />\n <NumberInputField\n name=\"deductions\"\n isRequired\n label={t('deductions')}\n format=\"currency\"\n min={0}\n errorMessage={t('fieldIsRequired')}\n />\n <NumberInputField\n name=\"extraWithholding\"\n isRequired\n label={t('extraWithholding')}\n format=\"currency\"\n min={0}\n errorMessage={t('fieldIsRequired')}\n />\n </>\n )\n}\n"],"names":["Rev2020Schema","z","FederalFormSchema","FederalForm","t","useTranslation","Components","useComponentContext","filingStatusOptions","jsxs","Fragment","jsx","SelectField","RadioGroupField","Trans","NumberInputField"],"mappings":";;;;;;;AAKA,MAAMA,IAAgBC,EAAE,OAAO;AAAA,EAC7B,cAAcA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC9B,SAASA,EAAE,SAAS,IAAI,CAAC;AAAA,EACzB,kBAAkBA,EAAE,SAAS,UAAU,MAAM;AAAA,EAC7C,aAAaA,EAAE,SAAS,UAAU,MAAM;AAAA,EACxC,YAAYA,EAAE,SAAS,UAAU,MAAM;AAAA,EACvC,kBAAkBA,EAAE,OAAA,EAAS,UAAU,MAAM;AAC/C,CAAC,GAEYC,IAAoBF;AAK1B,SAASG,IAAc;AAC5B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,gBAAgB,GACvCC,IAAaC,EAAA,GAEbC,IAAsB;AAAA,IAC1B,EAAE,OAAO,UAAU,OAAOJ,EAAE,oBAAoB,EAAA;AAAA,IAChD,EAAE,OAAO,WAAW,OAAOA,EAAE,qBAAqB,EAAA;AAAA,IAClD,EAAE,OAAO,qBAAqB,OAAOA,EAAE,6BAA6B,EAAA;AAAA,IACpE,EAAE,OAAO,2BAA2B,OAAOA,EAAE,mCAAmC,EAAA;AAAA,EAAE;AAGpF,SACE,gBAAAK,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOR,EAAE,uBAAuB;AAAA,QAChC,aAAaA,EAAE,gCAAgC;AAAA,QAC/C,SAASI;AAAA,QACT,YAAU;AAAA,QACV,cAAcJ,EAAE,iCAAiC;AAAA,MAAA;AAAA,IAAA;AAAA,IAEnD,gBAAAO;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOT,EAAE,gBAAgB;AAAA,QACzB,cAAcA,EAAE,4BAA4B;AAAA,QAC5C,aACE,gBAAAO,EAACL,EAAW,MAAX,EACC,UAAA,gBAAAK;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,SAAS;AAAA,YACT,GAAAV;AAAA,YACA,YAAY;AAAA,cACV,SAAS,gBAAAO,EAACL,EAAW,MAAX,CAAA,CAAgB;AAAA,YAAA;AAAA,UAC5B;AAAA,QAAA,GAEJ;AAAA,QAEF,SAAS;AAAA,UACP,EAAE,OAAO,QAAQ,OAAOF,EAAE,gBAAgB,EAAA;AAAA,UAC1C,EAAE,OAAO,SAAS,OAAOA,EAAE,eAAe,EAAA;AAAA,QAAE;AAAA,MAC9C;AAAA,IAAA;AAAA,IAEF,gBAAAO;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOX,EAAE,6BAA6B;AAAA,QACtC,QAAO;AAAA,QACP,KAAK;AAAA,QACL,cAAcA,EAAE,iBAAiB;AAAA,MAAA;AAAA,IAAA;AAAA,IAEnC,gBAAAO;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOX,EAAE,aAAa;AAAA,QACtB,QAAO;AAAA,QACP,KAAK;AAAA,QACL,cAAcA,EAAE,iBAAiB;AAAA,MAAA;AAAA,IAAA;AAAA,IAEnC,gBAAAO;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOX,EAAE,YAAY;AAAA,QACrB,QAAO;AAAA,QACP,KAAK;AAAA,QACL,cAAcA,EAAE,iBAAiB;AAAA,MAAA;AAAA,IAAA;AAAA,IAEnC,gBAAAO;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOX,EAAE,kBAAkB;AAAA,QAC3B,QAAO;AAAA,QACP,KAAK;AAAA,QACL,cAAcA,EAAE,iBAAiB;AAAA,MAAA;AAAA,IAAA;AAAA,EACnC,GACF;AAEJ;"}
@@ -4,16 +4,17 @@ import "react-error-boundary";
4
4
  import "react-i18next";
5
5
  import "@tanstack/react-query";
6
6
  import "../../Base/useBase.js";
7
- import "../../../shared/constants.js";
8
- import "classnames";
9
- import "../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
10
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
11
- import "@gusto/embedded-api/models/errors/httpclienterrors";
12
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "../../../shared/constants.js";
13
+ import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
14
  import { createCompoundContext as o } from "../../Base/createCompoundContext.js";
14
- const [d, u] = o("TaxesContext");
15
+ const [u, f] = o("TaxesContext");
15
16
  export {
16
- u as TaxesProvider,
17
- d as useTaxes
17
+ f as TaxesProvider,
18
+ u as useTaxes
18
19
  };
19
20
  //# sourceMappingURL=useTaxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTaxes.js","sources":["../../../../src/components/Employee/Taxes/useTaxes.ts"],"sourcesContent":["import type { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist'\nimport { createCompoundContext } from '@/components/Base'\n\ntype TaxesContextType = {\n employeeStateTaxes: EmployeeStateTaxesList[]\n isPending: boolean\n isAdmin: boolean\n}\n\nconst [useTaxes, TaxesProvider] = createCompoundContext<TaxesContextType>('TaxesContext')\nexport { useTaxes, TaxesProvider }\n"],"names":["useTaxes","TaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AASA,MAAM,CAACA,GAAUC,CAAa,IAAIC,EAAwC,cAAc;"}
1
+ {"version":3,"file":"useTaxes.js","sources":["../../../../src/components/Employee/Taxes/useTaxes.ts"],"sourcesContent":["import type { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist'\nimport { createCompoundContext } from '@/components/Base'\n\ntype TaxesContextType = {\n employeeStateTaxes: EmployeeStateTaxesList[]\n isPending: boolean\n isAdmin: boolean\n}\n\nconst [useTaxes, TaxesProvider] = createCompoundContext<TaxesContextType>('TaxesContext')\nexport { useTaxes, TaxesProvider }\n"],"names":["useTaxes","TaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AASA,MAAM,CAACA,GAAUC,CAAa,IAAIC,EAAwC,cAAc;"}
@@ -4,22 +4,19 @@ import t from "zod";
4
4
  import { useForm as D, FormProvider as g } from "react-hook-form";
5
5
  import { zodResolver as E } from "@hookform/resolvers/zod";
6
6
  import { Flex as a } from "../../../Common/Flex/Flex.js";
7
- import "classnames";
8
- import "../../../../shared/constants.js";
9
- import { RadioGroupField as R } from "../../../Common/Fields/RadioGroupField/RadioGroupField.js";
10
- import { ActionsLayout as x } from "../../../Common/ActionsLayout/ActionsLayout.js";
11
- import { DatePickerField as F } from "../../../Common/Fields/DatePickerField/DatePickerField.js";
7
+ import { ActionsLayout as R } from "../../../Common/ActionsLayout/ActionsLayout.js";
8
+ import { DatePickerField as x } from "../../../Common/Fields/DatePickerField/DatePickerField.js";
9
+ import { Form as F } from "../../../Common/Form/Form.js";
12
10
  import { useComponentContext as W } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
- import "react";
14
- import { Form as q } from "../../../Common/Form/Form.js";
15
- import { useI18n as T } from "../../../../i18n/I18n.js";
11
+ import { useI18n as q } from "../../../../i18n/I18n.js";
12
+ import { RadioGroupField as T } from "../../../Common/Fields/RadioGroupField/RadioGroupField.js";
16
13
  const k = t.object({
17
14
  lastDayOfWork: t.date({ error: "validation.lastDayRequired" }),
18
15
  payrollOption: t.enum(["dismissalPayroll", "regularPayroll", "anotherWay"], {
19
16
  error: "validation.payrollOptionRequired"
20
17
  })
21
18
  });
22
- function L({
19
+ function I({
23
20
  employeeName: n,
24
21
  existingTermination: l,
25
22
  onSubmit: d,
@@ -27,7 +24,7 @@ function L({
27
24
  isLoading: s
28
25
  }) {
29
26
  const { Alert: u, Heading: f, Text: p, Button: m } = W();
30
- T("Employee.Terminations.TerminateEmployee");
27
+ q("Employee.Terminations.TerminateEmployee");
31
28
  const { t: o } = v("Employee.Terminations.TerminateEmployee"), O = (P) => P.runTerminationPayroll === !0 ? "dismissalPayroll" : "regularPayroll", h = {
32
29
  lastDayOfWork: l?.effectiveDate ? new Date(l.effectiveDate) : void 0,
33
30
  payrollOption: l ? O(l) : "dismissalPayroll"
@@ -51,14 +48,14 @@ function L({
51
48
  description: o("form.payrollOption.options.anotherWay.description")
52
49
  }
53
50
  ];
54
- return /* @__PURE__ */ r(g, { ...i, children: /* @__PURE__ */ r(q, { onSubmit: i.handleSubmit(d), children: /* @__PURE__ */ e(a, { flexDirection: "column", gap: 24, children: [
51
+ return /* @__PURE__ */ r(g, { ...i, children: /* @__PURE__ */ r(F, { onSubmit: i.handleSubmit(d), children: /* @__PURE__ */ e(a, { flexDirection: "column", gap: 24, children: [
55
52
  /* @__PURE__ */ e(a, { flexDirection: "column", gap: 4, children: [
56
53
  /* @__PURE__ */ r(f, { as: "h2", children: o("title", { employeeName: n }) }),
57
54
  /* @__PURE__ */ r(p, { variant: "supporting", children: o("subtitle") })
58
55
  ] }),
59
56
  /* @__PURE__ */ e(a, { flexDirection: "column", gap: 24, children: [
60
57
  /* @__PURE__ */ r(
61
- F,
58
+ x,
62
59
  {
63
60
  name: "lastDayOfWork",
64
61
  label: o("form.lastDayOfEmployment.label"),
@@ -68,7 +65,7 @@ function L({
68
65
  }
69
66
  ),
70
67
  /* @__PURE__ */ r(
71
- R,
68
+ T,
72
69
  {
73
70
  name: "payrollOption",
74
71
  label: o("form.payrollOption.label"),
@@ -80,13 +77,13 @@ function L({
80
77
  ),
81
78
  /* @__PURE__ */ r(u, { status: "warning", label: o(`alert.${c}.label`), children: /* @__PURE__ */ r(p, { children: o(`alert.${c}.text`, { employeeName: n }) }) })
82
79
  ] }),
83
- /* @__PURE__ */ e(x, { children: [
80
+ /* @__PURE__ */ e(R, { children: [
84
81
  /* @__PURE__ */ r(m, { variant: "secondary", onClick: y, isDisabled: s, children: o("actions.cancel") }),
85
82
  /* @__PURE__ */ r(m, { type: "submit", variant: "primary", isLoading: s, children: o("actions.submit") })
86
83
  ] })
87
84
  ] }) }) });
88
85
  }
89
86
  export {
90
- L as TerminateEmployeePresentation
87
+ I as TerminateEmployeePresentation
91
88
  };
92
89
  //# sourceMappingURL=TerminateEmployeePresentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TerminateEmployeePresentation.js","sources":["../../../../../src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport z from 'zod'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport type { Termination } from '@gusto/embedded-api/models/components/termination'\nimport type { PayrollOption } from '../types'\nimport type { TerminateEmployeeFormData } from './TerminateEmployee'\nimport { Flex, ActionsLayout, DatePickerField, RadioGroupField } from '@/components/Common'\nimport { Form as HtmlForm } from '@/components/Common/Form'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\n\ninterface TerminateEmployeePresentationProps {\n employeeName: string\n existingTermination?: Termination\n onSubmit: (data: TerminateEmployeeFormData) => void\n onCancel: () => void\n isLoading: boolean\n}\n\nconst terminateEmployeeSchema = z.object({\n lastDayOfWork: z.date({ error: 'validation.lastDayRequired' }),\n payrollOption: z.enum(['dismissalPayroll', 'regularPayroll', 'anotherWay'], {\n error: 'validation.payrollOptionRequired',\n }),\n})\n\nexport function TerminateEmployeePresentation({\n employeeName,\n existingTermination,\n onSubmit,\n onCancel,\n isLoading,\n}: TerminateEmployeePresentationProps) {\n const { Alert, Heading, Text, Button } = useComponentContext()\n useI18n('Employee.Terminations.TerminateEmployee')\n const { t } = useTranslation('Employee.Terminations.TerminateEmployee')\n\n const getPayrollOptionFromTermination = (termination: Termination): PayrollOption => {\n if (termination.runTerminationPayroll === true) {\n return 'dismissalPayroll'\n }\n return 'regularPayroll'\n }\n\n const initialValues: Partial<TerminateEmployeeFormData> = {\n lastDayOfWork: existingTermination?.effectiveDate\n ? new Date(existingTermination.effectiveDate)\n : undefined,\n payrollOption: existingTermination\n ? getPayrollOptionFromTermination(existingTermination)\n : 'dismissalPayroll',\n }\n const formMethods = useForm<TerminateEmployeeFormData>({\n resolver: zodResolver(terminateEmployeeSchema),\n defaultValues: initialValues,\n })\n\n const selectedPayrollOption = formMethods.watch('payrollOption')\n\n const payrollOptions = [\n {\n value: 'dismissalPayroll' as const,\n label: t('form.payrollOption.options.dismissalPayroll.label'),\n description: t('form.payrollOption.options.dismissalPayroll.description'),\n },\n {\n value: 'regularPayroll' as const,\n label: t('form.payrollOption.options.regularPayroll.label'),\n description: t('form.payrollOption.options.regularPayroll.description'),\n },\n {\n value: 'anotherWay' as const,\n label: t('form.payrollOption.options.anotherWay.label'),\n description: t('form.payrollOption.options.anotherWay.description'),\n },\n ]\n\n return (\n <FormProvider {...formMethods}>\n <HtmlForm onSubmit={formMethods.handleSubmit(onSubmit)}>\n <Flex flexDirection=\"column\" gap={24}>\n <Flex flexDirection=\"column\" gap={4}>\n <Heading as=\"h2\">{t('title', { employeeName })}</Heading>\n <Text variant=\"supporting\">{t('subtitle')}</Text>\n </Flex>\n\n <Flex flexDirection=\"column\" gap={24}>\n <DatePickerField\n name=\"lastDayOfWork\"\n label={t('form.lastDayOfEmployment.label')}\n description={t('form.lastDayOfEmployment.description')}\n isRequired\n errorMessage={t('validation.lastDayRequired')}\n />\n\n <RadioGroupField<PayrollOption>\n name=\"payrollOption\"\n label={t('form.payrollOption.label')}\n description={t('form.payrollOption.description')}\n options={payrollOptions}\n isRequired\n errorMessage={t('validation.payrollOptionRequired')}\n />\n <Alert status=\"warning\" label={t(`alert.${selectedPayrollOption}.label`)}>\n <Text>{t(`alert.${selectedPayrollOption}.text`, { employeeName })}</Text>\n </Alert>\n </Flex>\n\n <ActionsLayout>\n <Button variant=\"secondary\" onClick={onCancel} isDisabled={isLoading}>\n {t('actions.cancel')}\n </Button>\n <Button type=\"submit\" variant=\"primary\" isLoading={isLoading}>\n {t('actions.submit')}\n </Button>\n </ActionsLayout>\n </Flex>\n </HtmlForm>\n </FormProvider>\n )\n}\n"],"names":["terminateEmployeeSchema","z","TerminateEmployeePresentation","employeeName","existingTermination","onSubmit","onCancel","isLoading","Alert","Heading","Text","Button","useComponentContext","useI18n","t","useTranslation","getPayrollOptionFromTermination","termination","initialValues","formMethods","useForm","zodResolver","selectedPayrollOption","payrollOptions","FormProvider","jsx","HtmlForm","jsxs","Flex","DatePickerField","RadioGroupField","ActionsLayout"],"mappings":"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"}
1
+ {"version":3,"file":"TerminateEmployeePresentation.js","sources":["../../../../../src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport z from 'zod'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport type { Termination } from '@gusto/embedded-api/models/components/termination'\nimport type { PayrollOption } from '../types'\nimport type { TerminateEmployeeFormData } from './TerminateEmployee'\nimport { Flex, ActionsLayout, DatePickerField, RadioGroupField } from '@/components/Common'\nimport { Form as HtmlForm } from '@/components/Common/Form'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\n\ninterface TerminateEmployeePresentationProps {\n employeeName: string\n existingTermination?: Termination\n onSubmit: (data: TerminateEmployeeFormData) => void\n onCancel: () => void\n isLoading: boolean\n}\n\nconst terminateEmployeeSchema = z.object({\n lastDayOfWork: z.date({ error: 'validation.lastDayRequired' }),\n payrollOption: z.enum(['dismissalPayroll', 'regularPayroll', 'anotherWay'], {\n error: 'validation.payrollOptionRequired',\n }),\n})\n\nexport function TerminateEmployeePresentation({\n employeeName,\n existingTermination,\n onSubmit,\n onCancel,\n isLoading,\n}: TerminateEmployeePresentationProps) {\n const { Alert, Heading, Text, Button } = useComponentContext()\n useI18n('Employee.Terminations.TerminateEmployee')\n const { t } = useTranslation('Employee.Terminations.TerminateEmployee')\n\n const getPayrollOptionFromTermination = (termination: Termination): PayrollOption => {\n if (termination.runTerminationPayroll === true) {\n return 'dismissalPayroll'\n }\n return 'regularPayroll'\n }\n\n const initialValues: Partial<TerminateEmployeeFormData> = {\n lastDayOfWork: existingTermination?.effectiveDate\n ? new Date(existingTermination.effectiveDate)\n : undefined,\n payrollOption: existingTermination\n ? getPayrollOptionFromTermination(existingTermination)\n : 'dismissalPayroll',\n }\n const formMethods = useForm<TerminateEmployeeFormData>({\n resolver: zodResolver(terminateEmployeeSchema),\n defaultValues: initialValues,\n })\n\n const selectedPayrollOption = formMethods.watch('payrollOption')\n\n const payrollOptions = [\n {\n value: 'dismissalPayroll' as const,\n label: t('form.payrollOption.options.dismissalPayroll.label'),\n description: t('form.payrollOption.options.dismissalPayroll.description'),\n },\n {\n value: 'regularPayroll' as const,\n label: t('form.payrollOption.options.regularPayroll.label'),\n description: t('form.payrollOption.options.regularPayroll.description'),\n },\n {\n value: 'anotherWay' as const,\n label: t('form.payrollOption.options.anotherWay.label'),\n description: t('form.payrollOption.options.anotherWay.description'),\n },\n ]\n\n return (\n <FormProvider {...formMethods}>\n <HtmlForm onSubmit={formMethods.handleSubmit(onSubmit)}>\n <Flex flexDirection=\"column\" gap={24}>\n <Flex flexDirection=\"column\" gap={4}>\n <Heading as=\"h2\">{t('title', { employeeName })}</Heading>\n <Text variant=\"supporting\">{t('subtitle')}</Text>\n </Flex>\n\n <Flex flexDirection=\"column\" gap={24}>\n <DatePickerField\n name=\"lastDayOfWork\"\n label={t('form.lastDayOfEmployment.label')}\n description={t('form.lastDayOfEmployment.description')}\n isRequired\n errorMessage={t('validation.lastDayRequired')}\n />\n\n <RadioGroupField<PayrollOption>\n name=\"payrollOption\"\n label={t('form.payrollOption.label')}\n description={t('form.payrollOption.description')}\n options={payrollOptions}\n isRequired\n errorMessage={t('validation.payrollOptionRequired')}\n />\n <Alert status=\"warning\" label={t(`alert.${selectedPayrollOption}.label`)}>\n <Text>{t(`alert.${selectedPayrollOption}.text`, { employeeName })}</Text>\n </Alert>\n </Flex>\n\n <ActionsLayout>\n <Button variant=\"secondary\" onClick={onCancel} isDisabled={isLoading}>\n {t('actions.cancel')}\n </Button>\n <Button type=\"submit\" variant=\"primary\" isLoading={isLoading}>\n {t('actions.submit')}\n </Button>\n </ActionsLayout>\n </Flex>\n </HtmlForm>\n </FormProvider>\n )\n}\n"],"names":["terminateEmployeeSchema","z","TerminateEmployeePresentation","employeeName","existingTermination","onSubmit","onCancel","isLoading","Alert","Heading","Text","Button","useComponentContext","useI18n","t","useTranslation","getPayrollOptionFromTermination","termination","initialValues","formMethods","useForm","zodResolver","selectedPayrollOption","payrollOptions","FormProvider","jsx","HtmlForm","jsxs","Flex","DatePickerField","RadioGroupField","ActionsLayout"],"mappings":"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"}
@@ -21,3 +21,4 @@ export interface TerminationFlowContextInterface extends FlowContextInterface {
21
21
  export declare function TerminateEmployeeContextual(): import("react/jsx-runtime").JSX.Element;
22
22
  export declare function TerminationSummaryContextual(): import("react/jsx-runtime").JSX.Element;
23
23
  export declare function DismissalFlowContextual(): import("react/jsx-runtime").JSX.Element;
24
+ export declare function PayrollLandingContextual(): import("react/jsx-runtime").JSX.Element;
@@ -1,40 +1,39 @@
1
- import { jsxs as u, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as u, jsx as i } from "react/jsx-runtime";
2
2
  import { useTranslation as d } from "react-i18next";
3
3
  import { TerminateEmployee as E } from "../TerminateEmployee/TerminateEmployee.js";
4
4
  import { TerminationSummary as f } from "../TerminationSummary/TerminationSummary.js";
5
- import { useFlow as a } from "../../../Flow/useFlow.js";
6
- import { Flex as I } from "../../../Common/Flex/Flex.js";
7
- import "classnames";
8
- import { componentEvents as T } from "../../../../shared/constants.js";
5
+ import { PayrollLanding as I } from "../../../Payroll/PayrollLanding/PayrollLanding.js";
6
+ import { useFlow as p } from "../../../Flow/useFlow.js";
7
+ import { Flex as T } from "../../../Common/Flex/Flex.js";
8
+ import { ensureRequired as e } from "../../../../helpers/ensureRequired.js";
9
9
  import { useComponentContext as x } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
- import "react";
11
- import { ensureRequired as o } from "../../../../helpers/ensureRequired.js";
12
10
  import { useI18n as y } from "../../../../i18n/I18n.js";
13
- import { DismissalFlow as C } from "../../../Payroll/Dismissal/DismissalFlow.js";
14
- function U() {
15
- const { companyId: e, employeeId: n, onEvent: t, alerts: m } = a(), { Alert: i } = x();
16
- return y("Employee.Terminations.TerminationFlow"), /* @__PURE__ */ u(I, { flexDirection: "column", gap: 8, children: [
17
- m?.map((r, s) => /* @__PURE__ */ l(i, { status: r.type, label: r.title, children: r.content }, s)),
18
- /* @__PURE__ */ l(
11
+ import { componentEvents as C } from "../../../../shared/constants.js";
12
+ import { DismissalFlow as F } from "../../../Payroll/Dismissal/DismissalFlow.js";
13
+ function M() {
14
+ const { companyId: o, employeeId: n, onEvent: t, alerts: m } = p(), { Alert: l } = x();
15
+ return y("Employee.Terminations.TerminationFlow"), /* @__PURE__ */ u(T, { flexDirection: "column", gap: 8, children: [
16
+ m?.map((r, s) => /* @__PURE__ */ i(l, { status: r.type, label: r.title, children: r.content }, s)),
17
+ /* @__PURE__ */ i(
19
18
  E,
20
19
  {
21
20
  onEvent: t,
22
- companyId: o(e),
23
- employeeId: o(n)
21
+ companyId: e(o),
22
+ employeeId: e(n)
24
23
  }
25
24
  )
26
25
  ] });
27
26
  }
28
- function _() {
29
- const { companyId: e, employeeId: n, payrollOption: t, payrollUuid: m, onEvent: i } = a();
27
+ function R() {
28
+ const { companyId: o, employeeId: n, payrollOption: t, payrollUuid: m, onEvent: l } = p();
30
29
  y("Employee.Terminations.TerminationFlow");
31
30
  const { t: r } = d("Employee.Terminations.TerminationFlow");
32
- return /* @__PURE__ */ l(
31
+ return /* @__PURE__ */ i(
33
32
  f,
34
33
  {
35
- onEvent: (p, c) => {
36
- if (p === T.EMPLOYEE_TERMINATION_CANCELLED) {
37
- i(p, {
34
+ onEvent: (a, c) => {
35
+ if (a === C.EMPLOYEE_TERMINATION_CANCELLED) {
36
+ l(a, {
38
37
  ...c,
39
38
  alert: {
40
39
  type: "success",
@@ -43,30 +42,35 @@ function _() {
43
42
  });
44
43
  return;
45
44
  }
46
- i(p, c);
45
+ l(a, c);
47
46
  },
48
- companyId: o(e),
49
- employeeId: o(n),
47
+ companyId: e(o),
48
+ employeeId: e(n),
50
49
  payrollOption: t,
51
50
  payrollUuid: m
52
51
  }
53
52
  );
54
53
  }
55
- function b() {
56
- const { companyId: e, employeeId: n, payrollUuid: t, onEvent: m } = a();
57
- return /* @__PURE__ */ l(
58
- C,
54
+ function U() {
55
+ const { companyId: o, employeeId: n, payrollUuid: t, onEvent: m } = p();
56
+ return /* @__PURE__ */ i(
57
+ F,
59
58
  {
60
- companyId: o(e),
61
- employeeId: o(n),
59
+ companyId: e(o),
60
+ employeeId: e(n),
62
61
  payrollId: t,
63
62
  onEvent: m
64
63
  }
65
64
  );
66
65
  }
66
+ function _() {
67
+ const { companyId: o, onEvent: n } = p();
68
+ return /* @__PURE__ */ i(I, { onEvent: n, companyId: e(o) });
69
+ }
67
70
  export {
68
- b as DismissalFlowContextual,
69
- U as TerminateEmployeeContextual,
70
- _ as TerminationSummaryContextual
71
+ U as DismissalFlowContextual,
72
+ _ as PayrollLandingContextual,
73
+ M as TerminateEmployeeContextual,
74
+ R as TerminationSummaryContextual
71
75
  };
72
76
  //# sourceMappingURL=TerminationFlowComponents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TerminationFlowComponents.js","sources":["../../../../../src/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { TerminateEmployee } from '../TerminateEmployee/TerminateEmployee'\nimport { TerminationSummary } from '../TerminationSummary/TerminationSummary'\nimport type { PayrollOption } from '../types'\nimport { DismissalFlow } from '@/components/Payroll/Dismissal'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { Flex } from '@/components/Common'\nimport { ensureRequired } from '@/helpers/ensureRequired'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\nimport { componentEvents, type EventType } from '@/shared/constants'\n\nexport interface TerminationFlowProps extends BaseComponentInterface {\n companyId: string\n employeeId: string\n}\n\nexport type TerminationFlowAlert = {\n type: 'error' | 'info' | 'success'\n title: string\n content?: ReactNode\n}\n\nexport interface TerminationFlowContextInterface extends FlowContextInterface {\n companyId: string\n employeeId: string\n payrollOption?: PayrollOption\n payrollUuid?: string\n alerts?: TerminationFlowAlert[]\n}\n\nexport function TerminateEmployeeContextual() {\n const { companyId, employeeId, onEvent, alerts } = useFlow<TerminationFlowContextInterface>()\n const { Alert } = useComponentContext()\n useI18n('Employee.Terminations.TerminationFlow')\n\n return (\n <Flex flexDirection=\"column\" gap={8}>\n {alerts?.map((alert, index) => (\n <Alert key={index} status={alert.type} label={alert.title}>\n {alert.content}\n </Alert>\n ))}\n <TerminateEmployee\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n employeeId={ensureRequired(employeeId)}\n />\n </Flex>\n )\n}\n\nexport function TerminationSummaryContextual() {\n const { companyId, employeeId, payrollOption, payrollUuid, onEvent } =\n useFlow<TerminationFlowContextInterface>()\n useI18n('Employee.Terminations.TerminationFlow')\n const { t } = useTranslation('Employee.Terminations.TerminationFlow')\n\n const handleEvent = (event: EventType, data?: unknown) => {\n if (event === componentEvents.EMPLOYEE_TERMINATION_CANCELLED) {\n onEvent(event, {\n ...(data as object),\n alert: {\n type: 'success',\n title: t('cancelSuccess'),\n },\n })\n return\n }\n onEvent(event, data)\n }\n\n return (\n <TerminationSummary\n onEvent={handleEvent}\n companyId={ensureRequired(companyId)}\n employeeId={ensureRequired(employeeId)}\n payrollOption={payrollOption}\n payrollUuid={payrollUuid}\n />\n )\n}\n\nexport function DismissalFlowContextual() {\n const { companyId, employeeId, payrollUuid, onEvent } = useFlow<TerminationFlowContextInterface>()\n\n return (\n <DismissalFlow\n companyId={ensureRequired(companyId)}\n employeeId={ensureRequired(employeeId)}\n payrollId={payrollUuid}\n onEvent={onEvent}\n />\n )\n}\n"],"names":["TerminateEmployeeContextual","companyId","employeeId","onEvent","alerts","useFlow","Alert","useComponentContext","useI18n","jsxs","Flex","alert","index","jsx","TerminateEmployee","ensureRequired","TerminationSummaryContextual","payrollOption","payrollUuid","t","useTranslation","TerminationSummary","event","data","componentEvents","DismissalFlowContextual","DismissalFlow"],"mappings":";;;;;;;;;;;;;AAiCO,SAASA,IAA8B;AAC5C,QAAM,EAAE,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAA,IAAWC,EAAA,GAC7C,EAAE,OAAAC,EAAA,IAAUC,EAAA;AAClB,SAAAC,EAAQ,uCAAuC,GAG7C,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,GAC/B,UAAA;AAAA,IAAAN,GAAQ,IAAI,CAACO,GAAOC,wBAClBN,GAAA,EAAkB,QAAQK,EAAM,MAAM,OAAOA,EAAM,OACjD,UAAAA,EAAM,QAAA,GADGC,CAEZ,CACD;AAAA,IACD,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAAX;AAAA,QACA,WAAWY,EAAed,CAAS;AAAA,QACnC,YAAYc,EAAeb,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EACvC,GACF;AAEJ;AAEO,SAASc,IAA+B;AAC7C,QAAM,EAAE,WAAAf,GAAW,YAAAC,GAAY,eAAAe,GAAe,aAAAC,GAAa,SAAAf,EAAA,IACzDE,EAAA;AACF,EAAAG,EAAQ,uCAAuC;AAC/C,QAAM,EAAE,GAAAW,EAAA,IAAMC,EAAe,uCAAuC;AAgBpE,SACE,gBAAAP;AAAA,IAACQ;AAAA,IAAA;AAAA,MACC,SAhBgB,CAACC,GAAkBC,MAAmB;AACxD,YAAID,MAAUE,EAAgB,gCAAgC;AAC5D,UAAArB,EAAQmB,GAAO;AAAA,YACb,GAAIC;AAAA,YACJ,OAAO;AAAA,cACL,MAAM;AAAA,cACN,OAAOJ,EAAE,eAAe;AAAA,YAAA;AAAA,UAC1B,CACD;AACD;AAAA,QACF;AACA,QAAAhB,EAAQmB,GAAOC,CAAI;AAAA,MACrB;AAAA,MAKI,WAAWR,EAAed,CAAS;AAAA,MACnC,YAAYc,EAAeb,CAAU;AAAA,MACrC,eAAAe;AAAA,MACA,aAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;AAEO,SAASO,IAA0B;AACxC,QAAM,EAAE,WAAAxB,GAAW,YAAAC,GAAY,aAAAgB,GAAa,SAAAf,EAAA,IAAYE,EAAA;AAExD,SACE,gBAAAQ;AAAA,IAACa;AAAA,IAAA;AAAA,MACC,WAAWX,EAAed,CAAS;AAAA,MACnC,YAAYc,EAAeb,CAAU;AAAA,MACrC,WAAWgB;AAAA,MACX,SAAAf;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"TerminationFlowComponents.js","sources":["../../../../../src/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { TerminateEmployee } from '../TerminateEmployee/TerminateEmployee'\nimport { TerminationSummary } from '../TerminationSummary/TerminationSummary'\nimport type { PayrollOption } from '../types'\nimport { DismissalFlow } from '@/components/Payroll/Dismissal'\nimport { PayrollLanding } from '@/components/Payroll/PayrollLanding/PayrollLanding'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { Flex } from '@/components/Common'\nimport { ensureRequired } from '@/helpers/ensureRequired'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\nimport { componentEvents, type EventType } from '@/shared/constants'\n\nexport interface TerminationFlowProps extends BaseComponentInterface {\n companyId: string\n employeeId: string\n}\n\nexport type TerminationFlowAlert = {\n type: 'error' | 'info' | 'success'\n title: string\n content?: ReactNode\n}\n\nexport interface TerminationFlowContextInterface extends FlowContextInterface {\n companyId: string\n employeeId: string\n payrollOption?: PayrollOption\n payrollUuid?: string\n alerts?: TerminationFlowAlert[]\n}\n\nexport function TerminateEmployeeContextual() {\n const { companyId, employeeId, onEvent, alerts } = useFlow<TerminationFlowContextInterface>()\n const { Alert } = useComponentContext()\n useI18n('Employee.Terminations.TerminationFlow')\n\n return (\n <Flex flexDirection=\"column\" gap={8}>\n {alerts?.map((alert, index) => (\n <Alert key={index} status={alert.type} label={alert.title}>\n {alert.content}\n </Alert>\n ))}\n <TerminateEmployee\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n employeeId={ensureRequired(employeeId)}\n />\n </Flex>\n )\n}\n\nexport function TerminationSummaryContextual() {\n const { companyId, employeeId, payrollOption, payrollUuid, onEvent } =\n useFlow<TerminationFlowContextInterface>()\n useI18n('Employee.Terminations.TerminationFlow')\n const { t } = useTranslation('Employee.Terminations.TerminationFlow')\n\n const handleEvent = (event: EventType, data?: unknown) => {\n if (event === componentEvents.EMPLOYEE_TERMINATION_CANCELLED) {\n onEvent(event, {\n ...(data as object),\n alert: {\n type: 'success',\n title: t('cancelSuccess'),\n },\n })\n return\n }\n onEvent(event, data)\n }\n\n return (\n <TerminationSummary\n onEvent={handleEvent}\n companyId={ensureRequired(companyId)}\n employeeId={ensureRequired(employeeId)}\n payrollOption={payrollOption}\n payrollUuid={payrollUuid}\n />\n )\n}\n\nexport function DismissalFlowContextual() {\n const { companyId, employeeId, payrollUuid, onEvent } = useFlow<TerminationFlowContextInterface>()\n\n return (\n <DismissalFlow\n companyId={ensureRequired(companyId)}\n employeeId={ensureRequired(employeeId)}\n payrollId={payrollUuid}\n onEvent={onEvent}\n />\n )\n}\n\nexport function PayrollLandingContextual() {\n const { companyId, onEvent } = useFlow<TerminationFlowContextInterface>()\n\n return <PayrollLanding onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n"],"names":["TerminateEmployeeContextual","companyId","employeeId","onEvent","alerts","useFlow","Alert","useComponentContext","useI18n","jsxs","Flex","alert","index","jsx","TerminateEmployee","ensureRequired","TerminationSummaryContextual","payrollOption","payrollUuid","t","useTranslation","TerminationSummary","event","data","componentEvents","DismissalFlowContextual","DismissalFlow","PayrollLandingContextual","PayrollLanding"],"mappings":";;;;;;;;;;;;AAkCO,SAASA,IAA8B;AAC5C,QAAM,EAAE,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAA,IAAWC,EAAA,GAC7C,EAAE,OAAAC,EAAA,IAAUC,EAAA;AAClB,SAAAC,EAAQ,uCAAuC,GAG7C,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,GAC/B,UAAA;AAAA,IAAAN,GAAQ,IAAI,CAACO,GAAOC,wBAClBN,GAAA,EAAkB,QAAQK,EAAM,MAAM,OAAOA,EAAM,OACjD,UAAAA,EAAM,QAAA,GADGC,CAEZ,CACD;AAAA,IACD,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAAX;AAAA,QACA,WAAWY,EAAed,CAAS;AAAA,QACnC,YAAYc,EAAeb,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EACvC,GACF;AAEJ;AAEO,SAASc,IAA+B;AAC7C,QAAM,EAAE,WAAAf,GAAW,YAAAC,GAAY,eAAAe,GAAe,aAAAC,GAAa,SAAAf,EAAA,IACzDE,EAAA;AACF,EAAAG,EAAQ,uCAAuC;AAC/C,QAAM,EAAE,GAAAW,EAAA,IAAMC,EAAe,uCAAuC;AAgBpE,SACE,gBAAAP;AAAA,IAACQ;AAAA,IAAA;AAAA,MACC,SAhBgB,CAACC,GAAkBC,MAAmB;AACxD,YAAID,MAAUE,EAAgB,gCAAgC;AAC5D,UAAArB,EAAQmB,GAAO;AAAA,YACb,GAAIC;AAAA,YACJ,OAAO;AAAA,cACL,MAAM;AAAA,cACN,OAAOJ,EAAE,eAAe;AAAA,YAAA;AAAA,UAC1B,CACD;AACD;AAAA,QACF;AACA,QAAAhB,EAAQmB,GAAOC,CAAI;AAAA,MACrB;AAAA,MAKI,WAAWR,EAAed,CAAS;AAAA,MACnC,YAAYc,EAAeb,CAAU;AAAA,MACrC,eAAAe;AAAA,MACA,aAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;AAEO,SAASO,IAA0B;AACxC,QAAM,EAAE,WAAAxB,GAAW,YAAAC,GAAY,aAAAgB,GAAa,SAAAf,EAAA,IAAYE,EAAA;AAExD,SACE,gBAAAQ;AAAA,IAACa;AAAA,IAAA;AAAA,MACC,WAAWX,EAAed,CAAS;AAAA,MACnC,YAAYc,EAAeb,CAAU;AAAA,MACrC,WAAWgB;AAAA,MACX,SAAAf;AAAA,IAAA;AAAA,EAAA;AAGN;AAEO,SAASwB,IAA2B;AACzC,QAAM,EAAE,WAAA1B,GAAW,SAAAE,EAAA,IAAYE,EAAA;AAE/B,2BAAQuB,GAAA,EAAe,SAAAzB,GAAkB,WAAWY,EAAed,CAAS,GAAG;AACjF;"}
@@ -4,4 +4,5 @@ export declare const terminationMachine: {
4
4
  form: import('robot3').MachineState<any>;
5
5
  summary: import('robot3').MachineState<any>;
6
6
  dismissalPayroll: import('robot3').MachineState<any>;
7
+ payrollLanding: import('robot3').MachineState<any>;
7
8
  };