@gusto/embedded-react-sdk 0.43.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (733) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/README.md +23 -5
  3. package/dist/assets/icons/edit-02.svg.js +10 -0
  4. package/dist/assets/icons/edit-02.svg.js.map +1 -0
  5. package/dist/components/Common/DataView/DataTable/DataTable.js +86 -64
  6. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  7. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js +52 -0
  8. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js.map +1 -0
  9. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js +18 -0
  10. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js.map +1 -0
  11. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.d.ts +13 -0
  12. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js +12 -0
  13. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js.map +1 -0
  14. package/dist/components/Common/Fields/hooks/fieldElementRegistry.d.ts +21 -0
  15. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js +29 -0
  16. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js.map +1 -0
  17. package/dist/components/Common/Fields/hooks/useField.js +43 -37
  18. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  19. package/dist/components/Common/Flex/Flex.d.ts +2 -1
  20. package/dist/components/Common/Flex/Flex.js +14 -12
  21. package/dist/components/Common/Flex/Flex.js.map +1 -1
  22. package/dist/components/Common/Flex/Flex.module.scss.js +4 -4
  23. package/dist/components/Common/TaxInputs/TaxInputs.js +1 -1
  24. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  25. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  26. package/dist/components/Common/UI/Dialog/Dialog.js +35 -36
  27. package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -1
  28. package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +2 -2
  29. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  30. package/dist/components/Company/AssignSignatory/AssignSignatory.js +6 -7
  31. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  32. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +3 -2
  33. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  34. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  35. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -7
  37. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  38. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +2 -3
  39. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  40. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +6 -3
  41. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  42. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  43. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  44. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -6
  45. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  46. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +9 -10
  47. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  48. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +6 -3
  49. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  50. package/dist/components/Company/AssignSignatory/TitleSelect.js +1 -1
  51. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +8 -5
  52. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  53. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  54. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -8
  55. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  56. package/dist/components/Company/BankAccount/BankAccountForm/context.js +6 -3
  57. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  58. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +9 -8
  59. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  60. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  61. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  62. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +5 -4
  63. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  64. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  65. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  66. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +2 -3
  67. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  68. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +6 -3
  69. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  70. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +1 -1
  71. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +26 -25
  72. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  73. package/dist/components/Company/FederalTaxes/Actions.js +6 -5
  74. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  75. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -3
  76. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  77. package/dist/components/Company/FederalTaxes/Form.js +3 -2
  78. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  79. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +11 -8
  80. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  81. package/dist/components/Company/Industry/Actions.js +3 -2
  82. package/dist/components/Company/Industry/Actions.js.map +1 -1
  83. package/dist/components/Company/Industry/Context.js +9 -6
  84. package/dist/components/Company/Industry/Context.js.map +1 -1
  85. package/dist/components/Company/Industry/Edit.js +5 -4
  86. package/dist/components/Company/Industry/Edit.js.map +1 -1
  87. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  88. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  89. package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
  90. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  91. package/dist/components/Company/Locations/LocationForm/LocationForm.js +12 -13
  92. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  93. package/dist/components/Company/Locations/LocationForm/index.d.ts +2 -0
  94. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +6 -3
  95. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  96. package/dist/components/Company/Locations/LocationsList/Actions.js +7 -6
  97. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  98. package/dist/components/Company/Locations/LocationsList/List.js +8 -7
  99. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  100. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -7
  101. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  102. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +6 -3
  103. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  104. package/dist/components/Company/OnboardingOverview/Completed.js +11 -10
  105. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  106. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +3 -2
  107. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  108. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -3
  109. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  110. package/dist/components/Company/OnboardingOverview/context.js +6 -3
  111. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  112. package/dist/components/Company/PaySchedule/PayScheduleForm.js +2 -3
  113. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  114. package/dist/components/Company/PaySchedule/PayScheduleList.js +1 -1
  115. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +53 -52
  116. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  117. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  118. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  119. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +12 -11
  120. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  121. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +67 -63
  122. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  123. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +6 -3
  124. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  125. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.d.ts +2 -0
  126. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js +6 -0
  127. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js.map +1 -0
  128. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  129. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  130. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +57 -26
  131. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  132. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +6 -3
  133. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  134. package/dist/components/Company/exports/companyOnboarding.d.ts +3 -0
  135. package/dist/components/Company/exports/companyOnboarding.js +21 -15
  136. package/dist/components/Company/exports/companyOnboarding.js.map +1 -1
  137. package/dist/components/Company/index.d.ts +1 -0
  138. package/dist/components/Company/index.js +14 -12
  139. package/dist/components/Company/index.js.map +1 -1
  140. package/dist/components/Contractor/Address/Address.js +3 -4
  141. package/dist/components/Contractor/Address/Address.js.map +1 -1
  142. package/dist/components/Contractor/Address/Form.js +6 -7
  143. package/dist/components/Contractor/Address/Form.js.map +1 -1
  144. package/dist/components/Contractor/Address/Head.js +7 -6
  145. package/dist/components/Contractor/Address/Head.js.map +1 -1
  146. package/dist/components/Contractor/Address/useAddress.js +8 -5
  147. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  148. package/dist/components/Contractor/ContractorList/index.js +17 -17
  149. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +3 -2
  150. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  151. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  152. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +3 -2
  153. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  154. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +2 -3
  155. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  156. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +6 -5
  157. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  158. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +1 -1
  159. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +3 -2
  160. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  161. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +3 -2
  162. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  163. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +3 -2
  164. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  165. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +8 -7
  166. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  167. package/dist/components/Contractor/Profile/useContractorProfile.js +34 -33
  168. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  169. package/dist/components/Contractor/Submit/Submit.js +1 -1
  170. package/dist/components/Employee/Compensation/Compensation.d.ts +7 -4
  171. package/dist/components/Employee/Compensation/Compensation.js +72 -179
  172. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  173. package/dist/components/Employee/Compensation/CompensationFlowComponents.d.ts +27 -0
  174. package/dist/components/Employee/Compensation/CompensationFlowComponents.js +61 -0
  175. package/dist/components/Employee/Compensation/CompensationFlowComponents.js.map +1 -0
  176. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.d.ts +14 -0
  177. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js +128 -0
  178. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js.map +1 -0
  179. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.d.ts +17 -0
  180. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js +224 -0
  181. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js.map +1 -0
  182. package/dist/components/Employee/Compensation/EditCompensation/index.d.ts +5 -0
  183. package/dist/components/Employee/Compensation/JobsList/JobsList.d.ts +5 -0
  184. package/dist/components/Employee/Compensation/JobsList/JobsList.js +47 -0
  185. package/dist/components/Employee/Compensation/JobsList/JobsList.js.map +1 -0
  186. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.d.ts +11 -0
  187. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js +98 -0
  188. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js.map +1 -0
  189. package/dist/components/Employee/Compensation/JobsList/index.d.ts +5 -0
  190. package/dist/components/Employee/Compensation/{useCompensation.d.ts → compensationSchema.d.ts} +0 -22
  191. package/dist/components/Employee/Compensation/{useCompensation.js → compensationSchema.js} +9 -12
  192. package/dist/components/Employee/Compensation/compensationSchema.js.map +1 -0
  193. package/dist/components/Employee/Compensation/compensationStateMachine.d.ts +6 -0
  194. package/dist/components/Employee/Compensation/compensationStateMachine.js +73 -0
  195. package/dist/components/Employee/Compensation/compensationStateMachine.js.map +1 -0
  196. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +62 -36
  197. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +81 -57
  198. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  199. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +5 -12
  200. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +22 -35
  201. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  202. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +5 -3
  203. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +55 -13
  204. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +216 -226
  205. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  206. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.d.ts +15 -0
  207. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js +27 -0
  208. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js.map +1 -0
  209. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +19 -0
  210. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +29 -0
  211. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -0
  212. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +7 -0
  213. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +43 -0
  214. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js +37 -0
  215. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -0
  216. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.d.ts +13 -0
  217. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js +26 -0
  218. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js.map +1 -0
  219. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +56 -0
  220. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +180 -0
  221. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -0
  222. package/dist/components/Employee/Dashboard/BasicDetailsView.js +15 -13
  223. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  224. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -0
  225. package/dist/components/Employee/Dashboard/DashboardComponents.js +33 -15
  226. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  227. package/dist/components/Employee/Dashboard/DocumentsView.js +13 -11
  228. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
  229. package/dist/components/Employee/Dashboard/JobAndPayView.js +11 -9
  230. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  231. package/dist/components/Employee/Dashboard/TaxesView.js +21 -19
  232. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  233. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  234. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +54 -33
  235. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  236. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +14 -11
  237. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  238. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +36 -33
  239. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  240. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +6 -3
  241. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  242. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +1 -1
  243. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
  244. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  245. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +7 -6
  246. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  247. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +7 -8
  248. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  249. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
  250. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  251. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +6 -3
  252. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  253. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +3 -2
  254. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  255. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +69 -68
  256. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  257. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +3 -2
  258. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  259. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +8 -7
  260. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  261. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +18 -17
  262. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  263. package/dist/components/Employee/FederalTaxes/index.d.ts +3 -1
  264. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +8 -0
  265. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +71 -0
  266. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -0
  267. package/dist/components/Employee/FederalTaxes/management/index.d.ts +2 -0
  268. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +8 -0
  269. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +55 -0
  270. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -0
  271. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +2 -0
  272. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +15 -0
  273. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +104 -0
  274. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -0
  275. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +3 -0
  276. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +41 -0
  277. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js +40 -0
  278. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -0
  279. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +18 -0
  280. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +31 -0
  281. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -0
  282. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +5 -0
  283. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +37 -0
  284. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js +140 -0
  285. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -0
  286. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +2 -3
  287. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  288. package/dist/components/Employee/Landing/Landing.js +8 -8
  289. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -1
  290. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +2 -2
  291. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  292. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +1 -1
  293. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  294. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  295. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  296. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  297. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
  298. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +4 -4
  299. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  300. package/dist/components/Employee/PaymentMethod/Split.js +1 -1
  301. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +8 -5
  302. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  303. package/dist/components/Employee/Profile/management/Profile.d.ts +6 -0
  304. package/dist/components/Employee/Profile/management/Profile.js +122 -0
  305. package/dist/components/Employee/Profile/management/Profile.js.map +1 -0
  306. package/dist/components/Employee/Profile/management/Profile.module.scss.js +8 -0
  307. package/dist/components/Employee/Profile/management/Profile.module.scss.js.map +1 -0
  308. package/dist/components/Employee/Profile/{AdminProfile.js → onboarding/AdminProfile.js} +15 -15
  309. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -0
  310. package/dist/components/Employee/Profile/{EmployeeProfile.js → onboarding/EmployeeProfile.js} +14 -14
  311. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -0
  312. package/dist/components/Employee/Profile/{Profile.d.ts → onboarding/Profile.d.ts} +2 -2
  313. package/dist/components/Employee/Profile/{Profile.js → onboarding/Profile.js} +4 -4
  314. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -0
  315. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +9 -4
  316. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +61 -58
  317. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  318. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +40 -39
  319. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  320. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +47 -46
  321. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  322. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +14 -14
  323. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  324. package/dist/components/Employee/StateTaxes/index.d.ts +2 -1
  325. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +6 -0
  326. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +59 -0
  327. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -0
  328. package/dist/components/Employee/StateTaxes/management/index.d.ts +2 -0
  329. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +8 -0
  330. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +49 -0
  331. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -0
  332. package/dist/components/Employee/StateTaxes/onboarding/index.d.ts +2 -0
  333. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +14 -0
  334. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +32 -0
  335. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -0
  336. package/dist/components/Employee/StateTaxes/shared/index.d.ts +3 -0
  337. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.d.ts +8 -0
  338. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.d.ts +36 -0
  339. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +56 -0
  340. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js +116 -0
  341. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -0
  342. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +12 -0
  343. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +76 -0
  344. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -0
  345. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +14 -0
  346. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js +23 -0
  347. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -0
  348. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +6 -0
  349. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +39 -0
  350. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +46 -0
  351. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js +93 -0
  352. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -0
  353. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/index.d.ts +6 -0
  354. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +36 -0
  355. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js +159 -0
  356. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -0
  357. package/dist/components/Employee/Taxes/Actions.js +9 -8
  358. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  359. package/dist/components/Employee/Taxes/FederalForm.js +5 -4
  360. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  361. package/dist/components/Employee/Taxes/useTaxes.js +6 -3
  362. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  363. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +3 -2
  364. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  365. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +4 -4
  366. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +3 -2
  367. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  368. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +2 -3
  369. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  370. package/dist/components/Employee/exports/employeeManagement.d.ts +3 -0
  371. package/dist/components/Employee/exports/employeeManagement.js +16 -10
  372. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  373. package/dist/components/Employee/exports/employeeOnboarding.d.ts +3 -3
  374. package/dist/components/Employee/exports/employeeOnboarding.js +19 -19
  375. package/dist/components/Employee/index.d.ts +2 -1
  376. package/dist/components/Employee/index.js +37 -37
  377. package/dist/components/Flow/FlowHeader.js +8 -8
  378. package/dist/components/Flow/FlowHeader.js.map +1 -1
  379. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +47 -46
  380. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  381. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +4 -4
  382. package/dist/components/InformationRequests/InformationRequests.js +1 -1
  383. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +3 -2
  384. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  385. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +22 -20
  386. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  387. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +3 -2
  388. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  389. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +1 -0
  390. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  391. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +7 -6
  392. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  393. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +3 -2
  394. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  395. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +9 -8
  396. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  397. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  398. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +2 -3
  399. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  400. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +2 -3
  401. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  402. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +17 -16
  403. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  404. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +3 -2
  405. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  406. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +3 -2
  407. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  408. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +2 -3
  409. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  410. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  411. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  412. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  413. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  414. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +4 -4
  415. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +6 -6
  416. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  417. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  418. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +3 -2
  419. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  420. package/dist/components/Payroll/usePreparedPayrollData.js +13 -10
  421. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  422. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  423. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +2 -0
  424. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.js +3 -2
  425. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  426. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.d.ts +6 -0
  427. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +149 -0
  428. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -0
  429. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +2 -0
  430. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +80 -0
  431. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -0
  432. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +21 -0
  433. package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +5 -0
  434. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionForm.d.ts +1 -0
  435. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +115 -0
  436. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  437. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.js +9 -7
  438. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  439. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
  440. package/dist/components/TimeOff/PolicyList/PolicyList.js +103 -0
  441. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -0
  442. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +135 -0
  443. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  444. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListTypes.d.ts +1 -1
  445. package/dist/components/TimeOff/PolicySettings/PolicySettings.js +70 -0
  446. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  447. package/dist/components/TimeOff/PolicySettings/PolicySettings.module.scss.js +16 -0
  448. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +164 -0
  449. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -0
  450. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsTypes.d.ts +1 -1
  451. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +31 -0
  452. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  453. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
  454. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +68 -0
  455. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  456. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +1 -0
  457. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  458. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlowComponents.d.ts +3 -3
  459. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +117 -0
  460. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  461. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +9 -0
  462. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js +25 -0
  463. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -0
  464. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/timeOffStateMachine.d.ts +4 -2
  465. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +487 -0
  466. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  467. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +1 -0
  468. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +158 -0
  469. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  470. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +85 -76
  471. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  472. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +6 -0
  473. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +143 -0
  474. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -0
  475. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +2 -0
  476. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +103 -0
  477. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -0
  478. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +41 -0
  479. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +9 -0
  480. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +216 -0
  481. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -0
  482. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +2 -1
  483. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +64 -0
  484. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -0
  485. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +9 -0
  486. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +56 -0
  487. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -0
  488. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +5 -0
  489. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +251 -0
  490. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -0
  491. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js +10 -0
  492. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js.map +1 -0
  493. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +2 -0
  494. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +143 -0
  495. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -0
  496. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +52 -0
  497. package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +7 -0
  498. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +9 -0
  499. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  500. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +6 -0
  501. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js +9 -0
  502. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js.map +1 -0
  503. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +9 -0
  504. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  505. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.d.ts +5 -4
  506. package/dist/components/TimeOff/index.js +27 -0
  507. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  508. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +95 -0
  509. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -0
  510. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  511. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +3 -0
  512. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +86 -0
  513. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -0
  514. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +27 -0
  515. package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +3 -0
  516. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.d.ts +1 -1
  517. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.js +8 -8
  518. package/dist/components/TimeOff/shared/holidayHelpers.js.map +1 -0
  519. package/dist/components/TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  520. package/dist/components/index.d.ts +1 -1
  521. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +11 -10
  522. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  523. package/dist/helpers/dateFormatting.d.ts +2 -0
  524. package/dist/helpers/dateFormatting.js +4 -0
  525. package/dist/helpers/dateFormatting.js.map +1 -1
  526. package/dist/i18n/I18n.js +11 -10
  527. package/dist/i18n/I18n.js.map +1 -1
  528. package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
  529. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +12 -14
  530. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -1
  531. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -16
  532. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  533. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js +14 -0
  534. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js.map +1 -0
  535. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +24 -16
  536. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -1
  537. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +14 -14
  538. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +46 -42
  539. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -1
  540. package/dist/i18n/en/Employee.FederalTaxes.json.js +16 -10
  541. package/dist/i18n/en/Employee.FederalTaxes.json.js.map +1 -1
  542. package/dist/i18n/en/Employee.Profile.json.js +24 -20
  543. package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
  544. package/dist/i18n/en/Employee.StateTaxes.json.js +14 -6
  545. package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
  546. package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
  547. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  548. package/dist/index.d.ts +8 -2
  549. package/dist/index.js +118 -93
  550. package/dist/index.js.map +1 -1
  551. package/dist/partner-hook-utils/form/SDKFormProvider.js +18 -14
  552. package/dist/partner-hook-utils/form/SDKFormProvider.js.map +1 -1
  553. package/dist/partner-hook-utils/form/buildFormSchema.js +41 -41
  554. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  555. package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +10 -6
  556. package/dist/partner-hook-utils/form/composeSubmitHandler.js +49 -26
  557. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  558. package/dist/partner-hook-utils/form/fields/CheckboxHookField.d.ts +1 -1
  559. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +27 -23
  560. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  561. package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +1 -1
  562. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -29
  563. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  564. package/dist/partner-hook-utils/form/fields/NumberInputHookField.d.ts +1 -1
  565. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +37 -33
  566. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  567. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +1 -1
  568. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +32 -28
  569. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  570. package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +1 -1
  571. package/dist/partner-hook-utils/form/fields/SelectHookField.js +34 -30
  572. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  573. package/dist/partner-hook-utils/form/fields/SwitchHookField.d.ts +1 -1
  574. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +23 -19
  575. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  576. package/dist/partner-hook-utils/form/fields/TextInputHookField.d.ts +1 -1
  577. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +31 -27
  578. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  579. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.d.ts +10 -0
  580. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js +9 -0
  581. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js.map +1 -0
  582. package/dist/partner-hook-utils/form/index.d.ts +3 -0
  583. package/dist/partner-hook-utils/form/resolveFieldError.js +10 -7
  584. package/dist/partner-hook-utils/form/resolveFieldError.js.map +1 -1
  585. package/dist/partner-hook-utils/form/useFieldErrorMessage.js +10 -7
  586. package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +1 -1
  587. package/dist/partner-hook-utils/form/useHookFieldResolution.d.ts +10 -3
  588. package/dist/partner-hook-utils/form/useHookFieldResolution.js +6 -6
  589. package/dist/partner-hook-utils/form/useHookFieldResolution.js.map +1 -1
  590. package/dist/partner-hook-utils/form/useHookFormInternals.d.ts +22 -0
  591. package/dist/partner-hook-utils/form/useHookFormInternals.js +12 -0
  592. package/dist/partner-hook-utils/form/useHookFormInternals.js.map +1 -0
  593. package/dist/partner-hook-utils/types.d.ts +15 -0
  594. package/dist/shared/constants.d.ts +22 -0
  595. package/dist/shared/constants.js +41 -30
  596. package/dist/shared/constants.js.map +1 -1
  597. package/dist/style.css +1 -1
  598. package/dist/types/i18next.d.ts +62 -14
  599. package/docs/reference/endpoint-inventory.json +313 -122
  600. package/package.json +18 -16
  601. package/dist/components/Employee/Compensation/Actions.d.ts +0 -1
  602. package/dist/components/Employee/Compensation/Actions.js +0 -39
  603. package/dist/components/Employee/Compensation/Actions.js.map +0 -1
  604. package/dist/components/Employee/Compensation/Edit.d.ts +0 -5
  605. package/dist/components/Employee/Compensation/Edit.js +0 -179
  606. package/dist/components/Employee/Compensation/Edit.js.map +0 -1
  607. package/dist/components/Employee/Compensation/Head.d.ts +0 -1
  608. package/dist/components/Employee/Compensation/Head.js +0 -22
  609. package/dist/components/Employee/Compensation/Head.js.map +0 -1
  610. package/dist/components/Employee/Compensation/List.d.ts +0 -1
  611. package/dist/components/Employee/Compensation/List.js +0 -72
  612. package/dist/components/Employee/Compensation/List.js.map +0 -1
  613. package/dist/components/Employee/Compensation/useCompensation.js.map +0 -1
  614. package/dist/components/Employee/FederalTaxes/Actions.d.ts +0 -1
  615. package/dist/components/Employee/FederalTaxes/Actions.js +0 -14
  616. package/dist/components/Employee/FederalTaxes/Actions.js.map +0 -1
  617. package/dist/components/Employee/FederalTaxes/FederalForm.d.ts +0 -12
  618. package/dist/components/Employee/FederalTaxes/FederalForm.js +0 -110
  619. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +0 -1
  620. package/dist/components/Employee/FederalTaxes/FederalTaxes.d.ts +0 -6
  621. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +0 -84
  622. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +0 -1
  623. package/dist/components/Employee/FederalTaxes/Head.d.ts +0 -1
  624. package/dist/components/Employee/FederalTaxes/Head.js +0 -24
  625. package/dist/components/Employee/FederalTaxes/Head.js.map +0 -1
  626. package/dist/components/Employee/FederalTaxes/useFederalTaxes.d.ts +0 -5
  627. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +0 -21
  628. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +0 -1
  629. package/dist/components/Employee/Profile/AdminProfile.js.map +0 -1
  630. package/dist/components/Employee/Profile/EmployeeProfile.js.map +0 -1
  631. package/dist/components/Employee/Profile/Profile.js.map +0 -1
  632. package/dist/components/Employee/Profile/index.d.ts +0 -2
  633. package/dist/components/Employee/StateTaxes/Actions.d.ts +0 -1
  634. package/dist/components/Employee/StateTaxes/Actions.js +0 -14
  635. package/dist/components/Employee/StateTaxes/Actions.js.map +0 -1
  636. package/dist/components/Employee/StateTaxes/StateForm.d.ts +0 -6
  637. package/dist/components/Employee/StateTaxes/StateForm.js +0 -34
  638. package/dist/components/Employee/StateTaxes/StateForm.js.map +0 -1
  639. package/dist/components/Employee/StateTaxes/StateTaxes.d.ts +0 -7
  640. package/dist/components/Employee/StateTaxes/StateTaxes.js +0 -98
  641. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +0 -1
  642. package/dist/components/Employee/StateTaxes/useStateTaxes.d.ts +0 -8
  643. package/dist/components/Employee/StateTaxes/useStateTaxes.js +0 -21
  644. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +0 -1
  645. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +0 -1
  646. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +0 -1
  647. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +0 -49
  648. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +0 -1
  649. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +0 -1
  650. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +0 -107
  651. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +0 -1
  652. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +0 -125
  653. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +0 -1
  654. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +0 -66
  655. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +0 -1
  656. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +0 -16
  657. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +0 -154
  658. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +0 -1
  659. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +0 -29
  660. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +0 -1
  661. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +0 -67
  662. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +0 -1
  663. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +0 -1
  664. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +0 -112
  665. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +0 -1
  666. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +0 -317
  667. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +0 -1
  668. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +0 -72
  669. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +0 -1
  670. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +0 -1
  671. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployees.d.ts +0 -2
  672. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +0 -6
  673. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +0 -66
  674. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +0 -1
  675. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +0 -2
  676. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +0 -82
  677. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +0 -1
  678. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +0 -24
  679. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +0 -7
  680. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +0 -70
  681. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +0 -1
  682. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTypes.d.ts +0 -24
  683. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +0 -56
  684. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +0 -1
  685. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +0 -35
  686. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +0 -1
  687. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +0 -35
  688. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +0 -1
  689. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +0 -5
  690. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +0 -35
  691. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +0 -1
  692. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +0 -5
  693. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +0 -35
  694. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +0 -1
  695. package/dist/components/UNSTABLE_TimeOff/index.js +0 -27
  696. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  697. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js +0 -90
  698. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js.map +0 -1
  699. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +0 -1
  700. /package/dist/components/Employee/{Compensation/shared/useCompensationForm/compensationSchemaParity.test.d.ts → FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.test.d.ts} +0 -0
  701. /package/dist/components/Employee/Profile/{AdminProfile.d.ts → onboarding/AdminProfile.d.ts} +0 -0
  702. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js → onboarding/AdminProfile.module.scss.js} +0 -0
  703. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js.map → onboarding/AdminProfile.module.scss.js.map} +0 -0
  704. /package/dist/components/Employee/Profile/{EmployeeProfile.d.ts → onboarding/EmployeeProfile.d.ts} +0 -0
  705. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js → onboarding/EmployeeProfile.module.scss.js} +0 -0
  706. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js.map → onboarding/EmployeeProfile.module.scss.js.map} +0 -0
  707. /package/dist/components/{UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts → Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.test.d.ts} +0 -0
  708. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +0 -0
  709. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.js +0 -0
  710. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +0 -0
  711. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyList.d.ts +0 -0
  712. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.d.ts +0 -0
  713. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js +0 -0
  714. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js.map +0 -0
  715. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.d.ts +0 -0
  716. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.module.scss.js.map +0 -0
  717. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsPresentation.d.ts +0 -0
  718. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelector.d.ts +0 -0
  719. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.d.ts +0 -0
  720. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.js +0 -0
  721. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/index.d.ts +0 -0
  722. /package/dist/components/{UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts → TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts} +0 -0
  723. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +0 -0
  724. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +0 -0
  725. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +0 -0
  726. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +0 -0
  727. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -0
  728. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +0 -0
  729. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +0 -0
  730. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.js.map +0 -0
  731. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTable.module.scss.js +0 -0
  732. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTable.module.scss.js.map +0 -0
  733. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/index.d.ts +0 -0
@@ -1,262 +1,252 @@
1
- import { useMemo as M, useEffect as Ee } from "react";
2
- import { useForm as Oe, useWatch as w } from "react-hook-form";
3
- import { zodResolver as Ue } from "@hookform/resolvers/zod";
4
- import { useJobsAndCompensationsGetJobs as he } from "@gusto/embedded-api/react-query/jobsAndCompensationsGetJobs";
5
- import { useJobsAndCompensationsCreateJobMutation as Fe } from "@gusto/embedded-api/react-query/jobsAndCompensationsCreateJob";
6
- import { useJobsAndCompensationsUpdateMutation as Pe } from "@gusto/embedded-api/react-query/jobsAndCompensationsUpdate";
7
- import { useJobsAndCompensationsUpdateCompensationMutation as De } from "@gusto/embedded-api/react-query/jobsAndCompensationsUpdateCompensation";
8
- import { useLocationsGetMinimumWages as Ae } from "@gusto/embedded-api/react-query/locationsGetMinimumWages";
9
- import { useEmployeeAddressesGetWorkAddresses as Te } from "@gusto/embedded-api/react-query/employeeAddressesGetWorkAddresses";
10
- import { useEmployeesGet as Ne } from "@gusto/embedded-api/react-query/employeesGet";
11
- import { useFederalTaxDetailsGet as we } from "@gusto/embedded-api/react-query/federalTaxDetailsGet";
12
- import { createCompensationSchema as je } from "./compensationSchema.js";
13
- import { StateWcClassCodeField as Ie, StateWcCoveredField as Le, TwoPercentShareholderField as Re, MinimumWageIdField as Je, AdjustForMinimumWageField as _e, PaymentUnitField as Ve, RateField as Ye, FlsaStatusField as qe, JobTitleField as He, StartDateField as ke } from "./fields.js";
14
- import { withOptions as S } from "../../../../../partner-hook-utils/form/withOptions.js";
15
- import { createGetFormSubmissionValues as Xe } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
16
- import { useDeriveFieldsMetadata as xe } from "../../../../../partner-hook-utils/form/useDeriveFieldsMetadata.js";
17
- import { composeErrorHandler as Ge } from "../../../../../partner-hook-utils/composeErrorHandler.js";
18
- import { PAY_PERIODS as u, FlsaStatus as a, TIP_CREDITS_UNSUPPORTED_STATES as Ke } from "../../../../../shared/constants.js";
19
- import { useBaseSubmit as Qe } from "../../../../Base/useBaseSubmit.js";
20
- import { SDKInternalError as Z } from "../../../../../types/sdkError.js";
21
- import { WA_RISK_CLASS_CODES as ee } from "../../../../../models/WA_RISK_CODES.js";
22
- function $e(e) {
23
- return e?.compensations?.find((d) => d.uuid === e.currentCompensationUuid);
1
+ import { useMemo as l, useEffect as X, useRef as se } from "react";
2
+ import { useForm as ye, useWatch as ie } from "react-hook-form";
3
+ import { zodResolver as Ce } from "@hookform/resolvers/zod";
4
+ import { useJobsAndCompensationsGetJobs as Pe } from "@gusto/embedded-api/react-query/jobsAndCompensationsGetJobs";
5
+ import { useJobsAndCompensationsCreateCompensationMutation as De } from "@gusto/embedded-api/react-query/jobsAndCompensationsCreateCompensation";
6
+ import { useJobsAndCompensationsUpdateCompensationMutation as Ie } from "@gusto/embedded-api/react-query/jobsAndCompensationsUpdateCompensation";
7
+ import { useLocationsGetMinimumWages as Ue } from "@gusto/embedded-api/react-query/locationsGetMinimumWages";
8
+ import { useEmployeeAddressesGetWorkAddresses as Ae } from "@gusto/embedded-api/react-query/employeeAddressesGetWorkAddresses";
9
+ import { useEmployeesGet as we } from "@gusto/embedded-api/react-query/employeesGet";
10
+ import { createCompensationSchema as Te } from "./compensationSchema.js";
11
+ import { EffectiveDateField as Re, MinimumWageIdField as je, AdjustForMinimumWageField as Le, PaymentUnitField as _e, RateField as Xe, FlsaStatusField as Ve, TitleField as Ye } from "./fields.js";
12
+ import { withOptions as V } from "../../../../../partner-hook-utils/form/withOptions.js";
13
+ import { createGetFormSubmissionValues as ke } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
14
+ import { useDeriveFieldsMetadata as qe } from "../../../../../partner-hook-utils/form/useDeriveFieldsMetadata.js";
15
+ import { useHookFormInternals as Je } from "../../../../../partner-hook-utils/form/useHookFormInternals.js";
16
+ import { composeErrorHandler as He } from "../../../../../partner-hook-utils/composeErrorHandler.js";
17
+ import { PAY_PERIODS as f, FlsaStatus as t, TIP_CREDITS_UNSUPPORTED_STATES as Be } from "../../../../../shared/constants.js";
18
+ import { useBaseSubmit as Ge } from "../../../../Base/useBaseSubmit.js";
19
+ import { SDKInternalError as g } from "../../../../../types/sdkError.js";
20
+ function Ke(s, p) {
21
+ return !s || !p ? null : s.compensations?.find((S) => S.uuid === p) ?? null;
24
22
  }
25
- function Be(e) {
26
- return e.reduce((d, l) => {
27
- const f = l.compensations?.find(
28
- (c) => c.uuid === l.currentCompensationUuid
29
- );
30
- return !l.primary || !f ? d : f.flsaStatus ?? d;
31
- }, void 0);
23
+ const oe = [
24
+ t.EXEMPT,
25
+ t.SALARIED_NONEXEMPT,
26
+ t.NONEXEMPT,
27
+ t.OWNER,
28
+ t.COMMISSION_ONLY_EXEMPT,
29
+ t.COMMISSION_ONLY_NONEXEMPT
30
+ ], Qe = oe.map((s) => ({ value: s, label: s })), ae = [
31
+ f.HOUR,
32
+ f.WEEK,
33
+ f.MONTH,
34
+ f.YEAR,
35
+ f.PAYCHECK
36
+ ], $e = ae.map((s) => ({ value: s, label: s }));
37
+ function ne() {
38
+ return (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
32
39
  }
33
- const te = Object.keys(a).map((e) => a[e]), ze = te.map((e) => ({
34
- value: e,
35
- label: e
36
- })), oe = [
37
- u.HOUR,
38
- u.WEEK,
39
- u.MONTH,
40
- u.YEAR,
41
- u.PAYCHECK
42
- ], Ze = oe.map((e) => ({
43
- value: e,
44
- label: e
45
- }));
46
- function Ot({
47
- employeeId: e,
48
- withStartDateField: d = !0,
49
- jobId: l,
50
- optionalFieldsToRequire: f,
51
- defaultValues: c,
52
- validationMode: se = "onSubmit",
53
- shouldFocusError: ae = !0
40
+ function vt({
41
+ employeeId: s,
42
+ jobId: p,
43
+ compensationId: S,
44
+ optionalFieldsToRequire: Y,
45
+ defaultValues: d,
46
+ validationMode: re = "onSubmit",
47
+ shouldFocusError: ue = !0
54
48
  }) {
55
- const E = he(
56
- { employeeId: e ?? "" },
57
- { enabled: !!e }
58
- ), O = Te(
59
- { employeeId: e ?? "" },
60
- { enabled: !!e }
61
- ), U = Ne({ employeeId: e ?? "" }, { enabled: !!e }), n = E.data?.jobs, j = O.data?.employeeWorkAddressesList?.find((t) => t.active), I = j?.locationUuid, L = U.data?.employee, h = L?.companyUuid, F = Ae(
62
- { locationUuid: I ?? "" },
63
- { enabled: !!I }
64
- ), P = we(
65
- { companyId: h ?? "" },
66
- { enabled: !!h }
67
- ), W = F.data?.minimumWageList ?? [], R = P.data?.federalTaxDetails, J = R?.taxableAsScorp === !0, o = M(() => n ? l ? n.find((t) => t.uuid === l) ?? null : n.length === 1 ? n[0] ?? null : null : null, [n, l]), C = M(() => $e(o), [o]), ne = M(() => {
68
- if (n)
69
- return Be(n);
70
- }, [n]), b = !o, _ = b ? "create" : "update", [V, ie] = M(
71
- () => je({ mode: _, optionalFieldsToRequire: f, withStartDateField: d }),
72
- [_, f, d]
73
- ), D = j?.state, re = o?.hireDate, y = {
74
- jobTitle: o?.title || c?.jobTitle || "",
75
- flsaStatus: C?.flsaStatus ?? ne ?? c?.flsaStatus ?? a.NONEXEMPT,
76
- rate: Number(C?.rate ?? c?.rate ?? 0),
77
- adjustForMinimumWage: C?.adjustForMinimumWage ?? !1,
78
- minimumWageId: C?.minimumWages?.[0]?.uuid ?? "",
79
- paymentUnit: C?.paymentUnit ?? c?.paymentUnit ?? u.HOUR,
80
- stateWcCovered: o?.stateWcCovered ?? !1,
81
- stateWcClassCode: o?.stateWcClassCode ?? "",
82
- twoPercentShareholder: o?.twoPercentShareholder ?? !1,
83
- startDate: re ?? c?.startDate ?? null
84
- }, s = Oe({
85
- resolver: Ue(V),
86
- mode: se,
87
- shouldFocusError: ae,
49
+ const P = Pe(
50
+ { employeeId: s ?? "" },
51
+ { enabled: !!s }
52
+ ), D = Ae(
53
+ { employeeId: s ?? "" },
54
+ { enabled: !!s }
55
+ ), I = we({ employeeId: s ?? "" }, { enabled: !!s }), r = P.data?.jobs, k = D.data?.employeeWorkAddressesList?.find((e) => e.active), q = k?.locationUuid, me = I.data?.employee, U = Ue(
56
+ { locationUuid: q ?? "" },
57
+ { enabled: !!q }
58
+ ), F = U.data?.minimumWageList ?? [], n = l(() => r && p ? r.find((e) => e.uuid === p) ?? null : null, [r, p]), o = l(
59
+ () => Ke(n, S),
60
+ [n, S]
61
+ ), A = l(() => !r || !n ? 0 : r.filter((e) => e.uuid !== n.uuid).length, [r, n]), W = l(() => {
62
+ if (!r) return null;
63
+ for (const e of r) {
64
+ if (!e.primary) continue;
65
+ const u = e.compensations?.find((c) => c.uuid === e.currentCompensationUuid);
66
+ if (u?.flsaStatus) return u.flsaStatus;
67
+ }
68
+ return null;
69
+ }, [r]), w = n?.hireDate ?? null, h = l(() => {
70
+ if (!n?.compensations) return [];
71
+ const e = ne();
72
+ return n.compensations.filter(
73
+ (u) => u.effectiveDate !== void 0 && u.effectiveDate > e
74
+ );
75
+ }, [n]), de = h.length > 0, ce = l(() => h.length === 0 ? null : h.reduce((e, u) => {
76
+ const c = u.effectiveDate;
77
+ return c && (!e || c < e) ? c : e;
78
+ }, null), [h]), E = !S, J = E ? "create" : "update", T = E && W === t.NONEXEMPT, [H, le] = l(
79
+ () => Te({ mode: J, optionalFieldsToRequire: Y, hireDate: w }),
80
+ [J, Y, w]
81
+ ), B = k?.state, y = l(
82
+ () => ({
83
+ title: o?.title ?? d?.title ?? "",
84
+ // When adding a secondary, the FLSA must match the primary's — force it
85
+ // here (overriding any partner default) so the form submits the right
86
+ // value even though `Fields.FlsaStatus` is hidden.
87
+ flsaStatus: T ? W : o?.flsaStatus ?? d?.flsaStatus ?? W ?? void 0,
88
+ rate: Number(o?.rate ?? d?.rate ?? 0),
89
+ adjustForMinimumWage: o?.adjustForMinimumWage ?? d?.adjustForMinimumWage ?? !1,
90
+ minimumWageId: o?.minimumWages?.[0]?.uuid ?? d?.minimumWageId ?? "",
91
+ paymentUnit: o?.paymentUnit ?? d?.paymentUnit ?? f.HOUR,
92
+ effectiveDate: o?.effectiveDate ?? d?.effectiveDate ?? null
93
+ }),
94
+ [o, d, W, T]
95
+ ), v = ye({
96
+ resolver: Ce(H),
97
+ mode: re,
98
+ shouldFocusError: ue,
88
99
  defaultValues: y,
89
100
  values: y,
90
101
  resetOptions: { keepDirtyValues: !0 }
91
- }), m = w({
92
- control: s.control,
93
- name: "flsaStatus"
94
- }), de = w({
95
- control: s.control,
102
+ }), { control: G, getValues: O, setValue: a } = v, i = ie({ control: G, name: "flsaStatus" }), fe = ie({
103
+ control: G,
96
104
  name: "adjustForMinimumWage"
97
- }), me = w({
98
- control: s.control,
99
- name: "stateWcCovered"
100
- }), ue = String(me) === "true";
101
- Ee(() => {
102
- m === a.OWNER ? s.setValue("paymentUnit", u.PAYCHECK) : m === a.COMMISSION_ONLY_NONEXEMPT || m === a.COMMISSION_ONLY_EXEMPT ? (s.setValue("paymentUnit", u.YEAR), s.setValue("rate", 0)) : s.setValue("paymentUnit", y.paymentUnit);
103
- }, [m, s.setValue, y.paymentUnit]);
104
- const Y = De(), q = Fe(), H = Pe(), le = Y.isPending || q.isPending || H.isPending, {
105
- baseSubmitHandler: ce,
106
- error: pe,
107
- setError: Ce
108
- } = Qe("CompensationForm"), k = Ge(e ? [E, O, U, F, P] : [], { submitError: pe, setSubmitError: Ce }), X = m === a.COMMISSION_ONLY_NONEXEMPT || m === a.COMMISSION_ONLY_EXEMPT, fe = m === a.OWNER, Se = m !== a.NONEXEMPT || o?.primary === !0 || b, A = m === a.NONEXEMPT && W.length > 0 && D !== void 0 && !Ke.includes(D), v = D === "WA", We = W.map((t) => ({
109
- value: t.uuid,
110
- label: `${t.wage} - ${t.authority}: ${t.notes ?? ""}`
111
- })), be = ee.map(({ code: t, description: g }) => ({
112
- value: t,
113
- label: `${t}: ${g}`
114
- })), i = xe(ie, s.control), ye = {
115
- startDate: i.startDate,
116
- jobTitle: i.jobTitle,
117
- flsaStatus: S(
118
- i.flsaStatus,
119
- ze,
120
- te
121
- ),
122
- rate: { ...i.rate, isDisabled: X },
123
- paymentUnit: S(
124
- { ...i.paymentUnit, isDisabled: fe || X },
125
- Ze,
105
+ });
106
+ X(() => {
107
+ i === t.OWNER ? a("paymentUnit", f.PAYCHECK) : i === t.COMMISSION_ONLY_NONEXEMPT || i === t.COMMISSION_ONLY_EXEMPT ? (a("paymentUnit", f.YEAR), a("rate", 0)) : a("paymentUnit", y.paymentUnit);
108
+ }, [i, a, y.paymentUnit]);
109
+ const R = o?.flsaStatus, C = se(!1), j = se(null);
110
+ X(() => {
111
+ const e = !E && R === t.NONEXEMPT && i !== void 0 && i !== t.NONEXEMPT && A > 0;
112
+ e && !C.current ? (j.current = O("effectiveDate") ?? null, a("effectiveDate", ne(), { shouldDirty: !0, shouldValidate: !1 }), C.current = !0) : !e && C.current && (a("effectiveDate", j.current ?? null, {
113
+ shouldDirty: !0,
114
+ shouldValidate: !1
115
+ }), j.current = null, C.current = !1);
116
+ }, [
117
+ E,
118
+ R,
119
+ i,
120
+ A,
121
+ O,
122
+ a
123
+ ]);
124
+ const K = Ie(), Q = De(), pe = K.isPending || Q.isPending, {
125
+ baseSubmitHandler: Ee,
126
+ error: Me,
127
+ setError: Se
128
+ } = Ge("CompensationForm"), $ = He(s ? [P, D, I, U] : [], { submitError: Me, setSubmitError: Se }), x = i === t.COMMISSION_ONLY_NONEXEMPT || i === t.COMMISSION_ONLY_EXEMPT, ge = i === t.OWNER, ve = !T && (i !== t.NONEXEMPT || n?.primary === !0 || E), N = i === t.NONEXEMPT && F.length > 0 && B !== void 0 && !Be.includes(B);
129
+ X(() => {
130
+ N || (O("adjustForMinimumWage") && a("adjustForMinimumWage", !1, { shouldDirty: !0, shouldValidate: !1 }), O("minimumWageId") && a("minimumWageId", "", { shouldDirty: !0, shouldValidate: !1 }));
131
+ }, [N, O, a]);
132
+ const Oe = F.map((e) => ({
133
+ value: e.uuid,
134
+ label: `${e.wage} - ${e.authority}: ${e.notes ?? ""}`
135
+ })), z = !E && R === t.NONEXEMPT && i !== void 0 && i !== t.NONEXEMPT && A > 0, M = qe(le, v.control), Ne = {
136
+ title: M.title,
137
+ effectiveDate: { ...M.effectiveDate, isDisabled: z },
138
+ flsaStatus: V(
139
+ M.flsaStatus,
140
+ Qe,
126
141
  oe
127
142
  ),
128
- adjustForMinimumWage: {
129
- ...i.adjustForMinimumWage,
130
- isDisabled: !A
131
- },
132
- minimumWageId: S(
133
- i.minimumWageId,
134
- We,
135
- W
143
+ rate: { ...M.rate, isDisabled: x },
144
+ paymentUnit: V(
145
+ { ...M.paymentUnit, isDisabled: ge || x },
146
+ $e,
147
+ ae
136
148
  ),
137
- twoPercentShareholder: {
138
- ...i.twoPercentShareholder,
139
- isDisabled: !J
149
+ adjustForMinimumWage: {
150
+ ...M.adjustForMinimumWage,
151
+ isDisabled: !N
140
152
  },
141
- stateWcCovered: S(
142
- { ...i.stateWcCovered, isDisabled: !v },
143
- [
144
- { label: "Yes", value: "true" },
145
- { label: "No", value: "false" }
146
- ],
147
- [!0, !1]
148
- ),
149
- stateWcClassCode: S(
150
- { ...i.stateWcClassCode, isDisabled: !v },
151
- be,
152
- ee
153
+ minimumWageId: V(
154
+ M.minimumWageId,
155
+ Oe,
156
+ F
153
157
  )
154
- }, ve = async (t, g) => {
155
- let x;
156
- return await new Promise((G) => {
157
- s.handleSubmit(
158
- async (ge) => {
159
- await ce(ge, async (Me) => {
160
- const K = g?.employeeId ?? e;
161
- if (!K)
162
- throw new Z("employeeId is required to submit compensation");
163
- const {
164
- jobTitle: Q,
165
- twoPercentShareholder: $,
166
- startDate: B,
167
- ...r
168
- } = Me, T = d && B ? B : g?.startDate;
169
- let p;
170
- if (o)
171
- p = (await H.mutateAsync({
158
+ }, be = async (e) => {
159
+ let u;
160
+ return await new Promise((c) => {
161
+ v.handleSubmit(
162
+ async (he) => {
163
+ await Ee(he, async (m) => {
164
+ const Z = e?.jobId ?? p, L = e?.compensationId ?? S, ee = L ? "update" : "create", te = {
165
+ rate: String(m.rate),
166
+ paymentUnit: m.paymentUnit,
167
+ flsaStatus: m.flsaStatus,
168
+ effectiveDate: m.effectiveDate ?? void 0,
169
+ title: m.title || void 0,
170
+ adjustForMinimumWage: m.adjustForMinimumWage,
171
+ minimumWages: m.adjustForMinimumWage ? [{ uuid: m.minimumWageId }] : []
172
+ };
173
+ let b;
174
+ if (ee === "create") {
175
+ if (!Z)
176
+ throw new g(
177
+ "jobId is required to create a compensation. Pass it as a hook prop or via submit options."
178
+ );
179
+ if (!m.flsaStatus)
180
+ throw new g("flsaStatus is required to create a compensation.");
181
+ if (b = (await Q.mutateAsync({
172
182
  request: {
173
- jobId: o.uuid,
174
- jobsUpdateRequestBody: {
175
- title: Q,
176
- version: o.version,
177
- hireDate: T,
178
- stateWcClassCode: r.stateWcCovered ? r.stateWcClassCode : null,
179
- stateWcCovered: r.stateWcCovered,
180
- twoPercentShareholder: $
181
- }
183
+ jobId: Z,
184
+ compensationsRequestBody: { ...te, flsaStatus: m.flsaStatus }
182
185
  }
183
- })).job, t?.onJobUpdated?.(p);
184
- else {
185
- if (!T)
186
- throw new Z("Start date is required");
187
- p = (await q.mutateAsync({
186
+ })).compensation, !b) throw new g("Compensation creation failed");
187
+ } else {
188
+ if (!L)
189
+ throw new g(
190
+ "compensationId is required to update a compensation. Pass it as a hook prop or via submit options."
191
+ );
192
+ const _ = e?.compensationVersion ?? o?.version;
193
+ if (!_)
194
+ throw new g(
195
+ "compensation version is required to update a compensation. Pass it via submit options when threading post-create, or ensure the compensation is loaded."
196
+ );
197
+ if (b = (await K.mutateAsync({
188
198
  request: {
189
- employeeId: K,
190
- jobsCreateRequestBody: {
191
- title: Q,
192
- hireDate: T,
193
- stateWcCovered: r.stateWcCovered,
194
- stateWcClassCode: r.stateWcCovered ? r.stateWcClassCode : null,
195
- twoPercentShareholder: $
199
+ compensationId: L,
200
+ compensationsUpdateRequestBody: {
201
+ version: _,
202
+ ...te
196
203
  }
197
204
  }
198
- })).job, t?.onJobCreated?.(p);
205
+ })).compensation, !b) throw new g("Compensation update failed");
199
206
  }
200
- const { compensation: z } = await Y.mutateAsync({
201
- request: {
202
- compensationId: p.currentCompensationUuid,
203
- compensationsUpdateRequestBody: {
204
- // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
205
- version: p.compensations?.find(
206
- (N) => N.uuid === p.currentCompensationUuid
207
- )?.version,
208
- ...r,
209
- rate: String(r.rate),
210
- minimumWages: r.adjustForMinimumWage ? [{ uuid: r.minimumWageId }] : []
211
- }
212
- }
213
- });
214
- t?.onCompensationUpdated?.(z), x = {
215
- mode: b ? "create" : "update",
216
- data: z
217
- };
218
- }), G();
207
+ u = { mode: ee, data: b };
208
+ }), c();
219
209
  },
220
210
  () => {
221
- G();
211
+ c();
222
212
  }
223
213
  )();
224
- }), x;
225
- };
226
- return (e ? E.isLoading || O.isLoading || U.isLoading || F.isLoading || P.isLoading : !1) || e && (!n || !L || !h || !R) ? { isLoading: !0, errorHandling: k } : {
214
+ }), u;
215
+ }, Fe = s ? P.isLoading || D.isLoading || I.isLoading || U.isLoading : !1, We = Je(v);
216
+ return Fe || s && (!r || !me) ? { isLoading: !0, errorHandling: $ } : {
227
217
  isLoading: !1,
228
218
  data: {
229
- compensation: C ?? null,
230
- jobs: n,
231
- currentJob: o,
232
- minimumWages: W
219
+ compensation: o,
220
+ currentJob: n,
221
+ minimumWages: F,
222
+ minimumEffectiveDate: w,
223
+ maximumEffectiveDate: ce,
224
+ hasPendingFutureCompensation: de
233
225
  },
234
226
  status: {
235
- isPending: le,
236
- mode: b ? "create" : "update"
227
+ isPending: pe,
228
+ mode: E ? "create" : "update",
229
+ willDeleteSecondaryJobs: z
237
230
  },
238
- actions: { onSubmit: ve },
239
- errorHandling: k,
231
+ actions: { onSubmit: be },
232
+ errorHandling: $,
240
233
  form: {
241
234
  Fields: {
242
- StartDate: d ? ke : void 0,
243
- JobTitle: He,
244
- FlsaStatus: Se ? qe : void 0,
245
- Rate: Ye,
246
- PaymentUnit: Ve,
247
- AdjustForMinimumWage: A ? _e : void 0,
248
- MinimumWageId: A && de ? Je : void 0,
249
- TwoPercentShareholder: J ? Re : void 0,
250
- StateWcCovered: v ? Le : void 0,
251
- StateWcClassCode: v && ue ? Ie : void 0
235
+ Title: Ye,
236
+ FlsaStatus: ve ? Ve : void 0,
237
+ Rate: Xe,
238
+ PaymentUnit: _e,
239
+ AdjustForMinimumWage: N ? Le : void 0,
240
+ MinimumWageId: N && fe ? je : void 0,
241
+ EffectiveDate: Re
252
242
  },
253
- fieldsMetadata: ye,
254
- hookFormInternals: { formMethods: s },
255
- getFormSubmissionValues: Xe(s, V)
243
+ fieldsMetadata: Ne,
244
+ hookFormInternals: We,
245
+ getFormSubmissionValues: ke(v, H)
256
246
  }
257
247
  };
258
248
  }
259
249
  export {
260
- Ot as useCompensationForm
250
+ vt as useCompensationForm
261
251
  };
262
252
  //# sourceMappingURL=useCompensationForm.js.map