@gusto/embedded-react-sdk 0.43.0 → 0.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (792) hide show
  1. package/CHANGELOG.md +108 -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/Base/useBaseSubmit.js +6 -6
  6. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  7. package/dist/components/Common/DataView/DataTable/DataTable.js +86 -64
  8. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  9. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js +52 -0
  10. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js.map +1 -0
  11. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js +18 -0
  12. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js.map +1 -0
  13. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.d.ts +13 -0
  14. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js +12 -0
  15. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js.map +1 -0
  16. package/dist/components/Common/Fields/hooks/fieldElementRegistry.d.ts +21 -0
  17. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js +29 -0
  18. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js.map +1 -0
  19. package/dist/components/Common/Fields/hooks/useField.js +43 -37
  20. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  21. package/dist/components/Common/Flex/Flex.d.ts +2 -1
  22. package/dist/components/Common/Flex/Flex.js +14 -12
  23. package/dist/components/Common/Flex/Flex.js.map +1 -1
  24. package/dist/components/Common/Flex/Flex.module.scss.js +4 -4
  25. package/dist/components/Common/TaxInputs/TaxInputs.js +1 -1
  26. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  27. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  28. package/dist/components/Common/UI/Dialog/Dialog.js +35 -36
  29. package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -1
  30. package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +2 -2
  31. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  32. package/dist/components/Company/AssignSignatory/AssignSignatory.js +6 -7
  33. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  34. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +3 -2
  35. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  37. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  38. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -7
  39. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  40. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +2 -3
  41. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  42. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +7 -4
  43. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  44. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  45. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  46. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -6
  47. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  48. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +9 -10
  49. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  50. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +7 -4
  51. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  52. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +9 -6
  53. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  54. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  55. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -8
  56. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  57. package/dist/components/Company/BankAccount/BankAccountForm/context.js +7 -4
  58. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  59. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +9 -8
  60. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  61. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  62. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  63. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +5 -4
  64. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  65. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  66. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  67. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -12
  68. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  69. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +7 -4
  70. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  71. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +8 -8
  72. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +26 -25
  73. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  74. package/dist/components/Company/FederalTaxes/Actions.js +6 -5
  75. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  76. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -3
  77. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  78. package/dist/components/Company/FederalTaxes/Form.js +3 -2
  79. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  80. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +12 -9
  81. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  82. package/dist/components/Company/Industry/Actions.js +3 -2
  83. package/dist/components/Company/Industry/Actions.js.map +1 -1
  84. package/dist/components/Company/Industry/Context.js +10 -7
  85. package/dist/components/Company/Industry/Context.js.map +1 -1
  86. package/dist/components/Company/Industry/Edit.js +5 -4
  87. package/dist/components/Company/Industry/Edit.js.map +1 -1
  88. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  89. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  90. package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
  91. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  92. package/dist/components/Company/Locations/LocationForm/LocationForm.js +12 -13
  93. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  94. package/dist/components/Company/Locations/LocationForm/index.d.ts +2 -0
  95. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +7 -4
  96. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  97. package/dist/components/Company/Locations/LocationsList/Actions.js +7 -6
  98. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  99. package/dist/components/Company/Locations/LocationsList/List.js +8 -7
  100. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  101. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -7
  102. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  103. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +7 -4
  104. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  105. package/dist/components/Company/OnboardingOverview/Completed.js +11 -10
  106. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  107. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +3 -2
  108. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  109. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -3
  110. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  111. package/dist/components/Company/OnboardingOverview/context.js +7 -4
  112. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  113. package/dist/components/Company/PaySchedule/PaySchedule.d.ts +2 -2
  114. package/dist/components/Company/PaySchedule/PaySchedule.js +6 -6
  115. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  116. package/dist/components/Company/PaySchedule/PayScheduleForm.js +2 -3
  117. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  118. package/dist/components/Company/PaySchedule/PayScheduleList.js +9 -9
  119. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
  120. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +3 -3
  121. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +58 -57
  122. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  123. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  124. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  125. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +12 -11
  126. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  127. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +67 -63
  128. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  129. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +7 -4
  130. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  131. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.d.ts +2 -0
  132. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js +6 -0
  133. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js.map +1 -0
  134. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  135. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  136. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +57 -26
  137. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  138. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +7 -4
  139. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  140. package/dist/components/Company/exports/companyOnboarding.d.ts +3 -0
  141. package/dist/components/Company/exports/companyOnboarding.js +21 -15
  142. package/dist/components/Company/exports/companyOnboarding.js.map +1 -1
  143. package/dist/components/Company/index.d.ts +1 -0
  144. package/dist/components/Company/index.js +14 -12
  145. package/dist/components/Company/index.js.map +1 -1
  146. package/dist/components/Contractor/Address/Address.js +18 -19
  147. package/dist/components/Contractor/Address/Address.js.map +1 -1
  148. package/dist/components/Contractor/Address/Form.js +2 -3
  149. package/dist/components/Contractor/Address/Form.js.map +1 -1
  150. package/dist/components/Contractor/Address/Head.js +7 -6
  151. package/dist/components/Contractor/Address/Head.js.map +1 -1
  152. package/dist/components/Contractor/Address/useAddress.js +9 -6
  153. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  154. package/dist/components/Contractor/ContractorList/index.js +17 -17
  155. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +3 -2
  156. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  157. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +8 -8
  158. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  159. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +3 -2
  160. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  161. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +2 -3
  162. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  163. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +6 -5
  164. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  165. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +1 -1
  166. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +3 -2
  167. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  168. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +3 -2
  169. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  170. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +3 -2
  171. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  172. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +5 -5
  173. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  174. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +8 -7
  175. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  176. package/dist/components/Contractor/Profile/useContractorProfile.js +35 -34
  177. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  178. package/dist/components/Contractor/Submit/Submit.js +23 -21
  179. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  180. package/dist/components/Employee/Compensation/Compensation.d.ts +7 -4
  181. package/dist/components/Employee/Compensation/Compensation.js +72 -179
  182. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  183. package/dist/components/Employee/Compensation/CompensationFlowComponents.d.ts +27 -0
  184. package/dist/components/Employee/Compensation/CompensationFlowComponents.js +61 -0
  185. package/dist/components/Employee/Compensation/CompensationFlowComponents.js.map +1 -0
  186. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.d.ts +14 -0
  187. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js +128 -0
  188. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js.map +1 -0
  189. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.d.ts +17 -0
  190. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js +224 -0
  191. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js.map +1 -0
  192. package/dist/components/Employee/Compensation/EditCompensation/index.d.ts +5 -0
  193. package/dist/components/Employee/Compensation/JobsList/JobsList.d.ts +5 -0
  194. package/dist/components/Employee/Compensation/JobsList/JobsList.js +47 -0
  195. package/dist/components/Employee/Compensation/JobsList/JobsList.js.map +1 -0
  196. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.d.ts +11 -0
  197. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js +98 -0
  198. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js.map +1 -0
  199. package/dist/components/Employee/Compensation/JobsList/index.d.ts +5 -0
  200. package/dist/components/Employee/Compensation/{useCompensation.d.ts → compensationSchema.d.ts} +0 -22
  201. package/dist/components/Employee/Compensation/{useCompensation.js → compensationSchema.js} +9 -12
  202. package/dist/components/Employee/Compensation/compensationSchema.js.map +1 -0
  203. package/dist/components/Employee/Compensation/compensationStateMachine.d.ts +6 -0
  204. package/dist/components/Employee/Compensation/compensationStateMachine.js +73 -0
  205. package/dist/components/Employee/Compensation/compensationStateMachine.js.map +1 -0
  206. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +62 -36
  207. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +81 -57
  208. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  209. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +5 -12
  210. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +22 -35
  211. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  212. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +5 -3
  213. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +55 -13
  214. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +216 -226
  215. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  216. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.d.ts +15 -0
  217. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js +27 -0
  218. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js.map +1 -0
  219. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +19 -0
  220. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +29 -0
  221. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -0
  222. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +7 -0
  223. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +43 -0
  224. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js +37 -0
  225. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -0
  226. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.d.ts +13 -0
  227. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js +26 -0
  228. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js.map +1 -0
  229. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +56 -0
  230. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +180 -0
  231. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -0
  232. package/dist/components/Employee/Dashboard/BasicDetailsView.js +15 -13
  233. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  234. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -0
  235. package/dist/components/Employee/Dashboard/DashboardComponents.js +33 -15
  236. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  237. package/dist/components/Employee/Dashboard/DocumentsView.js +13 -11
  238. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
  239. package/dist/components/Employee/Dashboard/JobAndPayView.js +11 -9
  240. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  241. package/dist/components/Employee/Dashboard/TaxesView.js +21 -19
  242. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  243. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  244. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +54 -33
  245. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  246. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +1 -1
  247. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +6 -6
  248. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
  249. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +3 -3
  250. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -1
  251. package/dist/components/Employee/Deductions/Deductions.js +7 -7
  252. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  253. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +36 -33
  254. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  255. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +48 -41
  256. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  257. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +2 -2
  258. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  259. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +1 -2
  260. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +23 -20
  261. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  262. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +30 -30
  263. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  264. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
  265. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  266. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +7 -6
  267. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  268. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +13 -14
  269. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  270. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
  271. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  272. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +7 -4
  273. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  274. package/dist/components/Employee/DocumentSigner/DocumentSigner.js +1 -1
  275. package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
  276. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +15 -14
  277. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  278. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js +1 -1
  279. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
  280. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +5 -5
  281. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +7 -7
  282. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +69 -68
  283. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  284. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +3 -2
  285. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  286. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +8 -7
  287. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  288. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +18 -17
  289. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  290. package/dist/components/Employee/FederalTaxes/index.d.ts +3 -1
  291. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +8 -0
  292. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +71 -0
  293. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -0
  294. package/dist/components/Employee/FederalTaxes/management/index.d.ts +2 -0
  295. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +8 -0
  296. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +55 -0
  297. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -0
  298. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +2 -0
  299. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +15 -0
  300. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +104 -0
  301. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -0
  302. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +3 -0
  303. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +41 -0
  304. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js +40 -0
  305. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -0
  306. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +18 -0
  307. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +31 -0
  308. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -0
  309. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +5 -0
  310. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +37 -0
  311. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js +140 -0
  312. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -0
  313. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +2 -3
  314. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  315. package/dist/components/Employee/Landing/Landing.js +8 -8
  316. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -1
  317. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +2 -2
  318. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  319. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +1 -1
  320. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  321. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  322. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  323. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  324. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +4 -4
  325. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +14 -14
  326. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  327. package/dist/components/Employee/PaymentMethod/Split.js +1 -1
  328. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +9 -6
  329. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  330. package/dist/components/Employee/Profile/management/Profile.d.ts +6 -0
  331. package/dist/components/Employee/Profile/management/Profile.js +122 -0
  332. package/dist/components/Employee/Profile/management/Profile.js.map +1 -0
  333. package/dist/components/Employee/Profile/management/Profile.module.scss.js +8 -0
  334. package/dist/components/Employee/Profile/management/Profile.module.scss.js.map +1 -0
  335. package/dist/components/Employee/Profile/{AdminProfile.js → onboarding/AdminProfile.js} +15 -15
  336. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -0
  337. package/dist/components/Employee/Profile/{EmployeeProfile.js → onboarding/EmployeeProfile.js} +14 -14
  338. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -0
  339. package/dist/components/Employee/Profile/{Profile.d.ts → onboarding/Profile.d.ts} +2 -2
  340. package/dist/components/Employee/Profile/{Profile.js → onboarding/Profile.js} +4 -4
  341. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -0
  342. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +9 -4
  343. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +61 -58
  344. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  345. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +40 -39
  346. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  347. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +47 -46
  348. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  349. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +14 -14
  350. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  351. package/dist/components/Employee/StateTaxes/index.d.ts +2 -1
  352. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +6 -0
  353. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +59 -0
  354. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -0
  355. package/dist/components/Employee/StateTaxes/management/index.d.ts +2 -0
  356. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +8 -0
  357. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +49 -0
  358. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -0
  359. package/dist/components/Employee/StateTaxes/onboarding/index.d.ts +2 -0
  360. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +14 -0
  361. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +32 -0
  362. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -0
  363. package/dist/components/Employee/StateTaxes/shared/index.d.ts +3 -0
  364. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.d.ts +8 -0
  365. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.d.ts +36 -0
  366. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +56 -0
  367. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js +116 -0
  368. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -0
  369. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +12 -0
  370. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +76 -0
  371. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -0
  372. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +14 -0
  373. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js +23 -0
  374. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -0
  375. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +6 -0
  376. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +39 -0
  377. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +46 -0
  378. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js +93 -0
  379. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -0
  380. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/index.d.ts +6 -0
  381. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +36 -0
  382. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js +159 -0
  383. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -0
  384. package/dist/components/Employee/Taxes/Actions.js +9 -8
  385. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  386. package/dist/components/Employee/Taxes/FederalForm.js +5 -4
  387. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  388. package/dist/components/Employee/Taxes/useTaxes.js +7 -4
  389. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  390. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +11 -11
  391. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  392. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +3 -2
  393. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  394. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +4 -4
  395. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +3 -3
  396. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  397. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +3 -2
  398. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  399. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +2 -3
  400. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  401. package/dist/components/Employee/exports/employeeManagement.d.ts +3 -0
  402. package/dist/components/Employee/exports/employeeManagement.js +16 -10
  403. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  404. package/dist/components/Employee/exports/employeeOnboarding.d.ts +3 -3
  405. package/dist/components/Employee/exports/employeeOnboarding.js +19 -19
  406. package/dist/components/Employee/index.d.ts +2 -1
  407. package/dist/components/Employee/index.js +37 -37
  408. package/dist/components/Flow/FlowHeader.js +8 -8
  409. package/dist/components/Flow/FlowHeader.js.map +1 -1
  410. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +61 -65
  411. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  412. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +5 -5
  413. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  414. package/dist/components/InformationRequests/InformationRequests.js +1 -1
  415. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +17 -17
  416. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  417. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +7 -7
  418. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  419. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +3 -2
  420. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  421. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +23 -21
  422. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  423. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +3 -2
  424. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  425. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +1 -0
  426. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  427. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +7 -6
  428. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  429. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +3 -2
  430. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  431. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +9 -8
  432. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  433. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +20 -20
  434. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  435. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +2 -2
  436. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +21 -25
  437. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  438. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  439. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +2 -3
  440. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  441. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -2
  442. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +1 -1
  443. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  444. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +4 -4
  445. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  446. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  447. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +2 -3
  448. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  449. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +17 -16
  450. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  451. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +3 -2
  452. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  453. package/dist/components/Payroll/PayrollList/PayrollList.js +4 -4
  454. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  455. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  456. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +3 -2
  457. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  458. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +2 -3
  459. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  460. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  461. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  462. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  463. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  464. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +9 -9
  465. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  466. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +7 -7
  467. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  468. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  469. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  470. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +7 -7
  471. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  472. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +3 -2
  473. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  474. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +9 -9
  475. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  476. package/dist/components/Payroll/helpers.d.ts +1 -1
  477. package/dist/components/Payroll/helpers.js.map +1 -1
  478. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  479. package/dist/components/Payroll/usePreparedPayrollData.js +21 -18
  480. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  481. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  482. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +2 -0
  483. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.js +3 -2
  484. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  485. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.d.ts +6 -0
  486. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +149 -0
  487. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -0
  488. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +2 -0
  489. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +80 -0
  490. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -0
  491. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +21 -0
  492. package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +5 -0
  493. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionForm.d.ts +1 -0
  494. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +115 -0
  495. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  496. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.js +9 -7
  497. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  498. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
  499. package/dist/components/TimeOff/PolicyList/PolicyList.js +103 -0
  500. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -0
  501. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +135 -0
  502. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  503. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListTypes.d.ts +1 -1
  504. package/dist/components/TimeOff/PolicySettings/PolicySettings.js +70 -0
  505. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  506. package/dist/components/TimeOff/PolicySettings/PolicySettings.module.scss.js +16 -0
  507. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +164 -0
  508. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -0
  509. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsTypes.d.ts +1 -1
  510. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +31 -0
  511. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  512. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
  513. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +68 -0
  514. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  515. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +1 -0
  516. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  517. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlowComponents.d.ts +3 -3
  518. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +117 -0
  519. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  520. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +9 -0
  521. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js +25 -0
  522. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -0
  523. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/timeOffStateMachine.d.ts +4 -2
  524. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +487 -0
  525. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  526. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +1 -0
  527. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +158 -0
  528. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  529. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +85 -76
  530. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  531. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +6 -0
  532. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +143 -0
  533. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -0
  534. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +2 -0
  535. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +103 -0
  536. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -0
  537. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +41 -0
  538. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +9 -0
  539. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +216 -0
  540. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -0
  541. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +2 -1
  542. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +64 -0
  543. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -0
  544. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +9 -0
  545. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +56 -0
  546. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -0
  547. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +5 -0
  548. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +251 -0
  549. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -0
  550. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js +10 -0
  551. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js.map +1 -0
  552. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +2 -0
  553. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +143 -0
  554. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -0
  555. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +52 -0
  556. package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +7 -0
  557. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +9 -0
  558. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  559. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +6 -0
  560. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js +9 -0
  561. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js.map +1 -0
  562. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +9 -0
  563. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  564. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.d.ts +5 -4
  565. package/dist/components/TimeOff/index.js +27 -0
  566. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  567. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +95 -0
  568. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -0
  569. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  570. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +3 -0
  571. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +86 -0
  572. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -0
  573. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +27 -0
  574. package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +3 -0
  575. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.d.ts +1 -1
  576. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.js +8 -8
  577. package/dist/components/TimeOff/shared/holidayHelpers.js.map +1 -0
  578. package/dist/components/TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  579. package/dist/components/index.d.ts +1 -1
  580. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +11 -10
  581. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  582. package/dist/helpers/dateFormatting.d.ts +2 -0
  583. package/dist/helpers/dateFormatting.js +4 -0
  584. package/dist/helpers/dateFormatting.js.map +1 -1
  585. package/dist/i18n/I18n.js +11 -10
  586. package/dist/i18n/I18n.js.map +1 -1
  587. package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
  588. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +12 -14
  589. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -1
  590. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -16
  591. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  592. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js +14 -0
  593. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js.map +1 -0
  594. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +24 -16
  595. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -1
  596. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +14 -14
  597. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +46 -42
  598. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -1
  599. package/dist/i18n/en/Employee.FederalTaxes.json.js +16 -10
  600. package/dist/i18n/en/Employee.FederalTaxes.json.js.map +1 -1
  601. package/dist/i18n/en/Employee.Profile.json.js +24 -20
  602. package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
  603. package/dist/i18n/en/Employee.StateTaxes.json.js +14 -6
  604. package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
  605. package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
  606. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  607. package/dist/index.d.ts +8 -2
  608. package/dist/index.js +118 -93
  609. package/dist/index.js.map +1 -1
  610. package/dist/partner-hook-utils/form/SDKFormProvider.js +18 -14
  611. package/dist/partner-hook-utils/form/SDKFormProvider.js.map +1 -1
  612. package/dist/partner-hook-utils/form/buildFormSchema.js +41 -41
  613. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  614. package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +10 -6
  615. package/dist/partner-hook-utils/form/composeSubmitHandler.js +49 -26
  616. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  617. package/dist/partner-hook-utils/form/fields/CheckboxHookField.d.ts +1 -1
  618. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +27 -23
  619. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  620. package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +1 -1
  621. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -29
  622. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  623. package/dist/partner-hook-utils/form/fields/NumberInputHookField.d.ts +1 -1
  624. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +37 -33
  625. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  626. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +1 -1
  627. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +32 -28
  628. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  629. package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +1 -1
  630. package/dist/partner-hook-utils/form/fields/SelectHookField.js +34 -30
  631. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  632. package/dist/partner-hook-utils/form/fields/SwitchHookField.d.ts +1 -1
  633. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +23 -19
  634. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  635. package/dist/partner-hook-utils/form/fields/TextInputHookField.d.ts +1 -1
  636. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +31 -27
  637. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  638. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.d.ts +10 -0
  639. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js +9 -0
  640. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js.map +1 -0
  641. package/dist/partner-hook-utils/form/index.d.ts +3 -0
  642. package/dist/partner-hook-utils/form/resolveFieldError.js +10 -7
  643. package/dist/partner-hook-utils/form/resolveFieldError.js.map +1 -1
  644. package/dist/partner-hook-utils/form/useFieldErrorMessage.js +10 -7
  645. package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +1 -1
  646. package/dist/partner-hook-utils/form/useHookFieldResolution.d.ts +10 -3
  647. package/dist/partner-hook-utils/form/useHookFieldResolution.js +6 -6
  648. package/dist/partner-hook-utils/form/useHookFieldResolution.js.map +1 -1
  649. package/dist/partner-hook-utils/form/useHookFormInternals.d.ts +22 -0
  650. package/dist/partner-hook-utils/form/useHookFormInternals.js +12 -0
  651. package/dist/partner-hook-utils/form/useHookFormInternals.js.map +1 -0
  652. package/dist/partner-hook-utils/types.d.ts +15 -0
  653. package/dist/shared/constants.d.ts +22 -0
  654. package/dist/shared/constants.js +41 -30
  655. package/dist/shared/constants.js.map +1 -1
  656. package/dist/style.css +1 -1
  657. package/dist/types/i18next.d.ts +62 -14
  658. package/docs/reference/endpoint-inventory.json +313 -122
  659. package/package.json +19 -17
  660. package/dist/components/Employee/Compensation/Actions.d.ts +0 -1
  661. package/dist/components/Employee/Compensation/Actions.js +0 -39
  662. package/dist/components/Employee/Compensation/Actions.js.map +0 -1
  663. package/dist/components/Employee/Compensation/Edit.d.ts +0 -5
  664. package/dist/components/Employee/Compensation/Edit.js +0 -179
  665. package/dist/components/Employee/Compensation/Edit.js.map +0 -1
  666. package/dist/components/Employee/Compensation/Head.d.ts +0 -1
  667. package/dist/components/Employee/Compensation/Head.js +0 -22
  668. package/dist/components/Employee/Compensation/Head.js.map +0 -1
  669. package/dist/components/Employee/Compensation/List.d.ts +0 -1
  670. package/dist/components/Employee/Compensation/List.js +0 -72
  671. package/dist/components/Employee/Compensation/List.js.map +0 -1
  672. package/dist/components/Employee/Compensation/useCompensation.js.map +0 -1
  673. package/dist/components/Employee/FederalTaxes/Actions.d.ts +0 -1
  674. package/dist/components/Employee/FederalTaxes/Actions.js +0 -14
  675. package/dist/components/Employee/FederalTaxes/Actions.js.map +0 -1
  676. package/dist/components/Employee/FederalTaxes/FederalForm.d.ts +0 -12
  677. package/dist/components/Employee/FederalTaxes/FederalForm.js +0 -110
  678. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +0 -1
  679. package/dist/components/Employee/FederalTaxes/FederalTaxes.d.ts +0 -6
  680. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +0 -84
  681. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +0 -1
  682. package/dist/components/Employee/FederalTaxes/Head.d.ts +0 -1
  683. package/dist/components/Employee/FederalTaxes/Head.js +0 -24
  684. package/dist/components/Employee/FederalTaxes/Head.js.map +0 -1
  685. package/dist/components/Employee/FederalTaxes/useFederalTaxes.d.ts +0 -5
  686. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +0 -21
  687. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +0 -1
  688. package/dist/components/Employee/Profile/AdminProfile.js.map +0 -1
  689. package/dist/components/Employee/Profile/EmployeeProfile.js.map +0 -1
  690. package/dist/components/Employee/Profile/Profile.js.map +0 -1
  691. package/dist/components/Employee/Profile/index.d.ts +0 -2
  692. package/dist/components/Employee/StateTaxes/Actions.d.ts +0 -1
  693. package/dist/components/Employee/StateTaxes/Actions.js +0 -14
  694. package/dist/components/Employee/StateTaxes/Actions.js.map +0 -1
  695. package/dist/components/Employee/StateTaxes/StateForm.d.ts +0 -6
  696. package/dist/components/Employee/StateTaxes/StateForm.js +0 -34
  697. package/dist/components/Employee/StateTaxes/StateForm.js.map +0 -1
  698. package/dist/components/Employee/StateTaxes/StateTaxes.d.ts +0 -7
  699. package/dist/components/Employee/StateTaxes/StateTaxes.js +0 -98
  700. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +0 -1
  701. package/dist/components/Employee/StateTaxes/useStateTaxes.d.ts +0 -8
  702. package/dist/components/Employee/StateTaxes/useStateTaxes.js +0 -21
  703. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +0 -1
  704. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +0 -1
  705. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +0 -1
  706. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +0 -49
  707. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +0 -1
  708. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +0 -1
  709. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +0 -107
  710. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +0 -1
  711. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +0 -125
  712. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +0 -1
  713. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +0 -66
  714. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +0 -1
  715. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +0 -16
  716. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +0 -154
  717. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +0 -1
  718. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +0 -29
  719. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +0 -1
  720. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +0 -67
  721. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +0 -1
  722. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +0 -1
  723. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +0 -112
  724. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +0 -1
  725. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +0 -317
  726. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +0 -1
  727. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +0 -72
  728. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +0 -1
  729. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +0 -1
  730. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployees.d.ts +0 -2
  731. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +0 -6
  732. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +0 -66
  733. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +0 -1
  734. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +0 -2
  735. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +0 -82
  736. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +0 -1
  737. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +0 -24
  738. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +0 -7
  739. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +0 -70
  740. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +0 -1
  741. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTypes.d.ts +0 -24
  742. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +0 -56
  743. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +0 -1
  744. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +0 -35
  745. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +0 -1
  746. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +0 -35
  747. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +0 -1
  748. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +0 -5
  749. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +0 -35
  750. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +0 -1
  751. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +0 -5
  752. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +0 -35
  753. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +0 -1
  754. package/dist/components/UNSTABLE_TimeOff/index.js +0 -27
  755. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  756. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js +0 -90
  757. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js.map +0 -1
  758. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +0 -1
  759. /package/dist/components/Employee/{Compensation/shared/useCompensationForm/compensationSchemaParity.test.d.ts → FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.test.d.ts} +0 -0
  760. /package/dist/components/Employee/Profile/{AdminProfile.d.ts → onboarding/AdminProfile.d.ts} +0 -0
  761. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js → onboarding/AdminProfile.module.scss.js} +0 -0
  762. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js.map → onboarding/AdminProfile.module.scss.js.map} +0 -0
  763. /package/dist/components/Employee/Profile/{EmployeeProfile.d.ts → onboarding/EmployeeProfile.d.ts} +0 -0
  764. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js → onboarding/EmployeeProfile.module.scss.js} +0 -0
  765. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js.map → onboarding/EmployeeProfile.module.scss.js.map} +0 -0
  766. /package/dist/components/{UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts → Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.test.d.ts} +0 -0
  767. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +0 -0
  768. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.js +0 -0
  769. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +0 -0
  770. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyList.d.ts +0 -0
  771. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.d.ts +0 -0
  772. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js +0 -0
  773. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js.map +0 -0
  774. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.d.ts +0 -0
  775. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.module.scss.js.map +0 -0
  776. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsPresentation.d.ts +0 -0
  777. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelector.d.ts +0 -0
  778. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.d.ts +0 -0
  779. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.js +0 -0
  780. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/index.d.ts +0 -0
  781. /package/dist/components/{UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts → TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts} +0 -0
  782. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +0 -0
  783. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +0 -0
  784. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +0 -0
  785. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +0 -0
  786. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -0
  787. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +0 -0
  788. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +0 -0
  789. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.js.map +0 -0
  790. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTable.module.scss.js +0 -0
  791. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTable.module.scss.js.map +0 -0
  792. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/index.d.ts +0 -0
@@ -3,41 +3,83 @@ import { Compensation } from '@gusto/embedded-api/models/components/compensation
3
3
  import { Job } from '@gusto/embedded-api/models/components/job';
4
4
  import { MinimumWage } from '@gusto/embedded-api/models/components/minimumwage';
5
5
  import { CompensationOptionalFieldsToRequire, CompensationFormData } from './compensationSchema';
6
+ import { TitleField, FlsaStatusField, RateField, PaymentUnitField, AdjustForMinimumWageField, MinimumWageIdField, EffectiveDateField } from './fields';
6
7
  import { BaseFormHookReady, FieldsMetadata, HookLoadingResult, HookSubmitResult } from '../../../../../partner-hook-utils/types';
7
- export interface CompensationSubmitCallbacks {
8
- onJobCreated?: (job: Job) => void;
9
- onJobUpdated?: (job: Job) => void;
10
- onCompensationUpdated?: (compensation: Compensation | undefined) => void;
11
- }
12
8
  export interface CompensationSubmitOptions {
13
- employeeId?: string;
14
- startDate?: string;
9
+ /** Override jobId — required when creating a compensation if not configured at hook construction (e.g. when the parent job was just created in the same submit chain). */
10
+ jobId?: string;
11
+ /** Override compensationId — when present, forces update (PUT) routing regardless of hook construction. */
12
+ compensationId?: string;
13
+ /**
14
+ * Compensation version for optimistic locking on PUT. Required when forcing
15
+ * update routing post-create (e.g. updating the auto-created stub returned
16
+ * from `POST /v1/employees/:id/jobs`). When omitted, the hook reads the
17
+ * version from its cached `currentCompensation`.
18
+ */
19
+ compensationVersion?: string;
15
20
  }
16
21
  export interface UseCompensationFormProps {
17
22
  employeeId?: string;
18
- withStartDateField?: boolean;
23
+ /** When updating, the parent job's UUID. Used to scope minimum wages and to derive `status.willDeleteSecondaryJobs`. */
19
24
  jobId?: string;
25
+ /** Present → update mode (PUT /v1/compensations/:id). Omitted → create mode (POST /v1/jobs/:jobId/compensations). */
26
+ compensationId?: string;
20
27
  optionalFieldsToRequire?: CompensationOptionalFieldsToRequire;
21
28
  defaultValues?: Partial<CompensationFormData>;
22
29
  validationMode?: UseFormProps['mode'];
23
30
  shouldFocusError?: boolean;
24
31
  }
25
- export interface UseCompensationFormReady extends BaseFormHookReady<FieldsMetadata, CompensationFormData> {
32
+ export interface CompensationFormFields {
33
+ Title: typeof TitleField;
34
+ FlsaStatus: typeof FlsaStatusField | undefined;
35
+ Rate: typeof RateField;
36
+ PaymentUnit: typeof PaymentUnitField;
37
+ AdjustForMinimumWage: typeof AdjustForMinimumWageField | undefined;
38
+ MinimumWageId: typeof MinimumWageIdField | undefined;
39
+ EffectiveDate: typeof EffectiveDateField | undefined;
40
+ }
41
+ export interface UseCompensationFormReady extends BaseFormHookReady<FieldsMetadata, CompensationFormData, CompensationFormFields> {
26
42
  data: {
43
+ /** The compensation row loaded for update; `null` in create mode. */
27
44
  compensation: Compensation | null;
28
- jobs: Job[] | undefined;
45
+ /** The parent job (when `jobId` resolves), used for derived helpers. */
29
46
  currentJob: Job | null;
30
47
  minimumWages: MinimumWage[];
48
+ /** Lower bound for `effectiveDate` (typically the parent job's hire date). */
49
+ minimumEffectiveDate: string | null;
50
+ /** Upper bound for `effectiveDate` — the next scheduled future compensation's effective date, when one exists. */
51
+ maximumEffectiveDate: string | null;
52
+ /** True when at least one future-dated compensation already exists for this job. */
53
+ hasPendingFutureCompensation: boolean;
31
54
  };
32
55
  status: {
33
56
  isPending: boolean;
34
57
  mode: 'create' | 'update';
58
+ /**
59
+ * True when submitting the form right now would delete the employee's
60
+ * secondary jobs server-side (the "carve-out" branch). Reactive:
61
+ * derived from the current `flsaStatus` form value, the loaded
62
+ * compensation, and the other-jobs count, so this flips as you change
63
+ * inputs.
64
+ *
65
+ * Conditions: update mode, the loaded compensation is Nonexempt, the
66
+ * form's `flsaStatus` has been changed to a non-Nonexempt value, and
67
+ * the employee has at least one secondary job.
68
+ *
69
+ * While this flag is true the hook also takes the `effectiveDate`
70
+ * field over: it forces the form value to today (so submits route
71
+ * through a PUT that immediately deletes secondaries) and exposes
72
+ * `fieldsMetadata.effectiveDate.isDisabled = true` so `Fields.EffectiveDate`
73
+ * renders as disabled. On revert (FLSA back to Nonexempt) the prior
74
+ * `effectiveDate` is restored. Render an inline warning keyed off
75
+ * this flag — no separate confirmation step is needed.
76
+ */
77
+ willDeleteSecondaryJobs: boolean;
35
78
  };
36
79
  actions: {
37
- onSubmit: (callbacks?: CompensationSubmitCallbacks, options?: CompensationSubmitOptions) => Promise<HookSubmitResult<Compensation | undefined> | undefined>;
80
+ onSubmit: (options?: CompensationSubmitOptions) => Promise<HookSubmitResult<Compensation> | undefined>;
38
81
  };
39
82
  }
40
- export declare function useCompensationForm({ employeeId, withStartDateField, jobId, optionalFieldsToRequire, defaultValues: partnerDefaults, validationMode, shouldFocusError, }: UseCompensationFormProps): HookLoadingResult | UseCompensationFormReady;
83
+ export declare function useCompensationForm({ employeeId, jobId, compensationId, optionalFieldsToRequire, defaultValues: partnerDefaults, validationMode, shouldFocusError, }: UseCompensationFormProps): HookLoadingResult | UseCompensationFormReady;
41
84
  export type UseCompensationFormResult = HookLoadingResult | UseCompensationFormReady;
42
85
  export type CompensationFieldsMetadata = UseCompensationFormReady['form']['fieldsMetadata'];
43
- export type CompensationFormFields = UseCompensationFormReady['form']['Fields'];
@@ -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