@gusto/embedded-react-sdk 0.47.1 → 0.48.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 (848) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/dist/components/Common/EmptyData/EmptyData.d.ts +1 -1
  3. package/dist/components/Common/EmptyData/EmptyData.js +10 -12
  4. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  5. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +6 -10
  6. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  7. package/dist/components/Common/Form/Form.d.ts +1 -1
  8. package/dist/components/Common/Form/Form.js +8 -7
  9. package/dist/components/Common/Form/Form.js.map +1 -1
  10. package/dist/components/Common/UI/Card/Card.js +8 -8
  11. package/dist/components/Common/UI/Card/Card.js.map +1 -1
  12. package/dist/components/Common/UI/Card/Card.module.scss.js +5 -3
  13. package/dist/components/Common/UI/Card/Card.module.scss.js.map +1 -1
  14. package/dist/components/Company/AssignSignatory/AssignSignatory.js +10 -7
  15. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  16. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +8 -6
  17. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  18. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +9 -8
  19. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  20. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +9 -6
  21. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  22. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +14 -13
  23. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  24. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -17
  25. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  26. package/dist/components/Company/AssignSignatory/Head.js +9 -8
  27. package/dist/components/Company/AssignSignatory/Head.js.map +1 -1
  28. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +7 -6
  29. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  30. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +8 -5
  31. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  32. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +21 -20
  33. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  34. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -17
  35. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/TitleSelect.js +4 -2
  37. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  38. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -19
  39. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  40. package/dist/components/Company/BankAccount/BankAccount.js +6 -7
  41. package/dist/components/Company/BankAccount/BankAccount.js.map +1 -1
  42. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +3 -2
  43. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  44. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +11 -9
  45. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  46. package/dist/components/Company/BankAccount/BankAccountForm/Head.js +3 -2
  47. package/dist/components/Company/BankAccount/BankAccountForm/Head.js.map +1 -1
  48. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -17
  49. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  50. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +7 -6
  51. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  52. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  53. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  54. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -4
  55. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  56. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +6 -5
  57. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  58. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +14 -11
  59. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  60. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -17
  61. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  62. package/dist/components/Company/DocumentSigner/DocumentSigner.js +2 -3
  63. package/dist/components/Company/DocumentSigner/DocumentSigner.js.map +1 -1
  64. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +8 -7
  65. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  66. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
  67. package/dist/components/Company/FederalTaxes/Actions.js +7 -6
  68. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  69. package/dist/components/Company/FederalTaxes/FederalTaxes.js +10 -7
  70. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  71. package/dist/components/Company/FederalTaxes/Form.js +4 -4
  72. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +12 -26
  73. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  74. package/dist/components/Company/Industry/Actions.js +6 -5
  75. package/dist/components/Company/Industry/Actions.js.map +1 -1
  76. package/dist/components/Company/Industry/Context.js +6 -20
  77. package/dist/components/Company/Industry/Context.js.map +1 -1
  78. package/dist/components/Company/Industry/Edit.js +12 -10
  79. package/dist/components/Company/Industry/Edit.js.map +1 -1
  80. package/dist/components/Company/Industry/IndustrySelect.js +14 -14
  81. package/dist/components/Company/Industry/IndustrySelect.js.map +1 -1
  82. package/dist/components/Company/Locations/LocationForm/Actions.js +3 -2
  83. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  84. package/dist/components/Company/Locations/LocationForm/Form.js +6 -4
  85. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  86. package/dist/components/Company/Locations/LocationForm/LocationForm.js +17 -14
  87. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  88. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -17
  89. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  90. package/dist/components/Company/Locations/LocationsList/Actions.js +3 -2
  91. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  92. package/dist/components/Company/Locations/LocationsList/List.js +9 -9
  93. package/dist/components/Company/Locations/LocationsList/LocationsList.js +12 -9
  94. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  95. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -17
  96. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  97. package/dist/components/Company/OnboardingOverview/Completed.js +6 -5
  98. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  99. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -8
  100. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  101. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +5 -2
  102. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  103. package/dist/components/Company/OnboardingOverview/context.js +4 -18
  104. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  105. package/dist/components/Company/PaySchedule/PayScheduleForm.js +5 -4
  106. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  107. package/dist/components/Company/PaySchedule/PayScheduleList.js +8 -8
  108. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
  109. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +6 -5
  110. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  111. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -17
  112. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  113. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +7 -6
  114. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  115. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  116. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  117. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -17
  118. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  119. package/dist/components/Contractor/Address/Address.js +5 -2
  120. package/dist/components/Contractor/Address/Address.js.map +1 -1
  121. package/dist/components/Contractor/Address/Form.js +4 -2
  122. package/dist/components/Contractor/Address/Form.js.map +1 -1
  123. package/dist/components/Contractor/Address/Head.js +5 -4
  124. package/dist/components/Contractor/Address/Head.js.map +1 -1
  125. package/dist/components/Contractor/Address/useAddress.js +5 -19
  126. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  127. package/dist/components/Contractor/ContractorList/index.js +4 -4
  128. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +4 -2
  129. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  130. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +4 -2
  131. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  132. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +10 -10
  133. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.d.ts +2 -2
  134. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +3 -2
  135. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  136. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +15 -15
  137. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +2 -3
  138. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  139. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +2 -3
  140. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  141. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +4 -3
  142. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  143. package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
  144. package/dist/components/Contractor/Profile/useContractorProfile.d.ts +6 -6
  145. package/dist/components/Contractor/Profile/useContractorProfile.js +39 -48
  146. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  147. package/dist/components/Contractor/Submit/Submit.js +3 -2
  148. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  149. package/dist/components/Contractor/exports/contractorManagement.d.ts +6 -0
  150. package/dist/components/Contractor/exports/contractorManagement.js +15 -0
  151. package/dist/components/Contractor/exports/contractorManagement.js.map +1 -0
  152. package/dist/components/Employee/Compensation/management/Compensation.d.ts +35 -0
  153. package/dist/components/Employee/Compensation/management/Compensation.js +2 -3
  154. package/dist/components/Employee/Compensation/management/Compensation.js.map +1 -1
  155. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.d.ts +23 -3
  156. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js +8 -9
  157. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js.map +1 -1
  158. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.d.ts +21 -10
  159. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js +2 -3
  160. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
  161. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.d.ts +24 -7
  162. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +18 -18
  163. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
  164. package/dist/components/Employee/Compensation/management/CompensationCard/index.d.ts +0 -1
  165. package/dist/components/Employee/Compensation/management/CompensationComponents.d.ts +7 -1
  166. package/dist/components/Employee/Compensation/management/CompensationComponents.js.map +1 -1
  167. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +27 -15
  168. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +2 -3
  169. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
  170. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.d.ts +12 -0
  171. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js +2 -3
  172. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js.map +1 -1
  173. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.d.ts +12 -0
  174. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.js +2 -3
  175. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.js.map +1 -1
  176. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +3 -0
  177. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +3 -2
  178. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -1
  179. package/dist/components/Employee/Compensation/management/compensationStateMachine.d.ts +1 -0
  180. package/dist/components/Employee/Compensation/management/compensationStateMachine.js.map +1 -1
  181. package/dist/components/Employee/Compensation/management/useManagementCompensationDictionary.d.ts +2 -0
  182. package/dist/components/Employee/Compensation/management/useManagementCompensationDictionary.js.map +1 -1
  183. package/dist/components/Employee/Compensation/onboarding/Compensation.d.ts +61 -0
  184. package/dist/components/Employee/Compensation/onboarding/Compensation.js +2 -3
  185. package/dist/components/Employee/Compensation/onboarding/Compensation.js.map +1 -1
  186. package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.d.ts +5 -0
  187. package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.js.map +1 -1
  188. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +32 -9
  189. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js +2 -3
  190. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
  191. package/dist/components/Employee/Compensation/onboarding/EditCompensation/index.d.ts +1 -2
  192. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.d.ts +3 -0
  193. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.js.map +1 -1
  194. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.d.ts +9 -0
  195. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js +7 -7
  196. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
  197. package/dist/components/Employee/Compensation/onboarding/JobsList/index.d.ts +1 -4
  198. package/dist/components/Employee/Compensation/onboarding/compensationStateMachine.d.ts +1 -0
  199. package/dist/components/Employee/Compensation/onboarding/compensationStateMachine.js.map +1 -1
  200. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +5 -0
  201. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js +3 -2
  202. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -1
  203. package/dist/components/Employee/Compensation/shared/PendingChangesReviewModal.d.ts +2 -0
  204. package/dist/components/Employee/Compensation/shared/PendingChangesReviewModal.js.map +1 -1
  205. package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.d.ts +2 -0
  206. package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.js.map +1 -1
  207. package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.d.ts +4 -0
  208. package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.js.map +1 -1
  209. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +98 -0
  210. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  211. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +168 -0
  212. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
  213. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  214. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +1 -0
  215. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +153 -6
  216. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  217. package/dist/components/Employee/Compensation/shared/useCompensationManagement/index.d.ts +1 -1
  218. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.d.ts +19 -0
  219. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js.map +1 -1
  220. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +101 -0
  221. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
  222. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -1
  223. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +1 -0
  224. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +75 -0
  225. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -1
  226. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +137 -8
  227. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  228. package/dist/components/Employee/Compensation/shared/usePendingChangeDetailRenderer.d.ts +2 -0
  229. package/dist/components/Employee/Compensation/shared/usePendingChangeDetailRenderer.js.map +1 -1
  230. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +18 -4
  231. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  232. package/dist/components/Employee/Dashboard/Dashboard.d.ts +3 -0
  233. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  234. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +21 -1
  235. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  236. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +116 -0
  237. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -1
  238. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +20 -0
  239. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  240. package/dist/components/Employee/Dashboard/TaxesView.d.ts +36 -3
  241. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  242. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +1 -0
  243. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  244. package/dist/components/Employee/Dashboard/index.d.ts +0 -6
  245. package/dist/components/Employee/Deductions/management/Deductions.d.ts +30 -0
  246. package/dist/components/Employee/Deductions/management/Deductions.js +2 -3
  247. package/dist/components/Employee/Deductions/management/Deductions.js.map +1 -1
  248. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.d.ts +21 -8
  249. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.js +15 -15
  250. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.js.map +1 -1
  251. package/dist/components/Employee/Deductions/management/DeductionsComponents.d.ts +5 -1
  252. package/dist/components/Employee/Deductions/management/DeductionsComponents.js.map +1 -1
  253. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.d.ts +21 -7
  254. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js +2 -3
  255. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
  256. package/dist/components/Employee/Deductions/management/DeductionsEditForm/useFormDictionary.d.ts +2 -0
  257. package/dist/components/Employee/Deductions/management/DeductionsEditForm/useFormDictionary.js.map +1 -1
  258. package/dist/components/Employee/Deductions/management/deductionsStateMachine.d.ts +1 -0
  259. package/dist/components/Employee/Deductions/management/deductionsStateMachine.js.map +1 -1
  260. package/dist/components/Employee/Deductions/onboarding/Deductions.d.ts +45 -0
  261. package/dist/components/Employee/Deductions/onboarding/Deductions.js.map +1 -1
  262. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.d.ts +2 -0
  263. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js +12 -12
  264. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js.map +1 -1
  265. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.d.ts +2 -0
  266. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.js +6 -5
  267. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.js.map +1 -1
  268. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.d.ts +5 -0
  269. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.js.map +1 -1
  270. package/dist/components/Employee/Deductions/onboarding/stateMachine.d.ts +1 -0
  271. package/dist/components/Employee/Deductions/onboarding/stateMachine.js.map +1 -1
  272. package/dist/components/Employee/Deductions/onboarding/useFormDictionary.d.ts +2 -0
  273. package/dist/components/Employee/Deductions/onboarding/useFormDictionary.js.map +1 -1
  274. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.d.ts +1 -0
  275. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.js +7 -6
  276. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.js.map +1 -1
  277. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.d.ts +7 -0
  278. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.js.map +1 -1
  279. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.d.ts +1 -0
  280. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.js +15 -14
  281. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.js.map +1 -1
  282. package/dist/components/Employee/Deductions/shared/DeductionsForm/index.d.ts +1 -1
  283. package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.d.ts +2 -0
  284. package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.js.map +1 -1
  285. package/dist/components/Employee/Deductions/shared/formatDeductionAmount.d.ts +2 -0
  286. package/dist/components/Employee/Deductions/shared/formatDeductionAmount.js.map +1 -1
  287. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +38 -5
  288. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
  289. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.d.ts +207 -0
  290. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
  291. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js.map +1 -1
  292. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/index.d.ts +3 -2
  293. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.d.ts +129 -3
  294. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
  295. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.d.ts +29 -1
  296. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.js.map +1 -1
  297. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.d.ts +158 -0
  298. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
  299. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js.map +1 -1
  300. package/dist/components/Employee/Deductions/shared/useDeductionForm/index.d.ts +3 -2
  301. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +131 -4
  302. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js.map +1 -1
  303. package/dist/components/Employee/Deductions/shared/useDeductionsList.d.ts +6 -1
  304. package/dist/components/Employee/Deductions/shared/useDeductionsList.js.map +1 -1
  305. package/dist/components/Employee/Deductions/shared/useDeleteDeduction.d.ts +2 -0
  306. package/dist/components/Employee/Deductions/shared/useDeleteDeduction.js.map +1 -1
  307. package/dist/components/Employee/Documents/management/DocumentManager.d.ts +3 -0
  308. package/dist/components/Employee/Documents/management/DocumentManager.js +7 -6
  309. package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
  310. package/dist/components/Employee/Documents/management/Documents.d.ts +24 -0
  311. package/dist/components/Employee/Documents/management/Documents.js +2 -3
  312. package/dist/components/Employee/Documents/management/Documents.js.map +1 -1
  313. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.d.ts +17 -7
  314. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.js +7 -6
  315. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.js.map +1 -1
  316. package/dist/components/Employee/Documents/management/DocumentsComponents.d.ts +3 -0
  317. package/dist/components/Employee/Documents/management/DocumentsComponents.js.map +1 -1
  318. package/dist/components/Employee/Documents/management/documentsStateMachine.d.ts +1 -0
  319. package/dist/components/Employee/Documents/management/documentsStateMachine.js.map +1 -1
  320. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.d.ts +1 -0
  321. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.js +5 -4
  322. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.js.map +1 -1
  323. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.d.ts +1 -0
  324. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js +13 -10
  325. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  326. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Head.d.ts +1 -0
  327. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Head.js.map +1 -1
  328. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.d.ts +1 -0
  329. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.js +4 -2
  330. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.js.map +1 -1
  331. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -17
  332. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  333. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.d.ts +29 -0
  334. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js +11 -12
  335. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
  336. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.d.ts +23 -0
  337. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  338. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +1 -0
  339. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +16 -16
  340. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  341. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.d.ts +3 -0
  342. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
  343. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/countries.d.ts +1 -0
  344. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/countries.js.map +1 -1
  345. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +1 -0
  346. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js +7 -4
  347. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  348. package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +6 -0
  349. package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  350. package/dist/components/Employee/Documents/onboarding/DocumentSigner/stateMachine.d.ts +1 -0
  351. package/dist/components/Employee/Documents/onboarding/DocumentSigner/stateMachine.js.map +1 -1
  352. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.d.ts +27 -2
  353. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
  354. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +3 -0
  355. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js +7 -6
  356. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  357. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/index.d.ts +1 -1
  358. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.d.ts +1 -0
  359. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.js +13 -10
  360. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.js.map +1 -1
  361. package/dist/components/Employee/Documents/shared/useDocumentsList/index.d.ts +0 -1
  362. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.d.ts +23 -6
  363. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.js.map +1 -1
  364. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.d.ts +326 -0
  365. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
  366. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js.map +1 -1
  367. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/index.d.ts +2 -1
  368. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +62 -0
  369. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
  370. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +130 -0
  371. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  372. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.d.ts +30 -3
  373. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +17 -21
  374. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
  375. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +2 -0
  376. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +12 -12
  377. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  378. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.d.ts +23 -2
  379. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js +38 -35
  380. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
  381. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +2 -0
  382. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +10 -10
  383. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  384. package/dist/components/Employee/EmployeeList/shared/index.d.ts +1 -1
  385. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +86 -11
  386. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +50 -62
  387. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
  388. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +34 -0
  389. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -1
  390. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +11 -0
  391. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -1
  392. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.d.ts +1 -0
  393. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -1
  394. package/dist/components/Employee/FederalTaxes/index.d.ts +2 -5
  395. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +27 -0
  396. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +9 -10
  397. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -1
  398. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.d.ts +9 -0
  399. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.js +16 -15
  400. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.js.map +1 -1
  401. package/dist/components/Employee/FederalTaxes/management/FederalTaxesComponents.d.ts +5 -1
  402. package/dist/components/Employee/FederalTaxes/management/FederalTaxesComponents.js.map +1 -1
  403. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.d.ts +24 -0
  404. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js +5 -5
  405. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js.map +1 -1
  406. package/dist/components/Employee/FederalTaxes/management/federalTaxesStateMachine.d.ts +1 -0
  407. package/dist/components/Employee/FederalTaxes/management/federalTaxesStateMachine.js.map +1 -1
  408. package/dist/components/Employee/FederalTaxes/management/useViewDictionary.d.ts +2 -0
  409. package/dist/components/Employee/FederalTaxes/management/useViewDictionary.js.map +1 -1
  410. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +24 -0
  411. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +5 -5
  412. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -1
  413. package/dist/components/Employee/FederalTaxes/onboarding/useViewDictionary.d.ts +2 -0
  414. package/dist/components/Employee/FederalTaxes/onboarding/useViewDictionary.js.map +1 -1
  415. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +4 -0
  416. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +13 -14
  417. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -1
  418. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +1 -2
  419. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +46 -0
  420. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -1
  421. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +112 -0
  422. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
  423. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -1
  424. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +1 -0
  425. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +112 -0
  426. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -1
  427. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/index.d.ts +0 -1
  428. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.d.ts +14 -1
  429. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.js.map +1 -1
  430. package/dist/components/Employee/HomeAddress/management/HomeAddress.d.ts +21 -0
  431. package/dist/components/Employee/HomeAddress/management/HomeAddress.js +2 -3
  432. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
  433. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.d.ts +17 -5
  434. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.js +8 -7
  435. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.js.map +1 -1
  436. package/dist/components/Employee/HomeAddress/management/HomeAddressComponents.d.ts +3 -0
  437. package/dist/components/Employee/HomeAddress/management/HomeAddressComponents.js.map +1 -1
  438. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.d.ts +20 -0
  439. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
  440. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +2 -0
  441. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +5 -5
  442. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  443. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.d.ts +7 -1
  444. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js.map +1 -1
  445. package/dist/components/Employee/HomeAddress/management/homeAddressStateMachine.d.ts +1 -0
  446. package/dist/components/Employee/HomeAddress/management/homeAddressStateMachine.js.map +1 -1
  447. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.d.ts +46 -7
  448. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
  449. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/index.d.ts +0 -1
  450. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.d.ts +21 -6
  451. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.js.map +1 -1
  452. package/dist/components/Employee/Landing/Landing.d.ts +6 -0
  453. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  454. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.d.ts +43 -0
  455. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.js.map +1 -1
  456. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.d.ts +17 -0
  457. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.js.map +1 -1
  458. package/dist/components/Employee/OnboardingExecutionFlow/index.d.ts +2 -2
  459. package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.d.ts +7 -0
  460. package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.js.map +1 -1
  461. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +59 -0
  462. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  463. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +2 -1
  464. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  465. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.d.ts +1 -0
  466. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  467. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.d.ts +7 -0
  468. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  469. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.d.ts +39 -0
  470. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.js +6 -7
  471. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.js.map +1 -1
  472. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.d.ts +23 -6
  473. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js.map +1 -1
  474. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.d.ts +24 -7
  475. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.js +14 -14
  476. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.js.map +1 -1
  477. package/dist/components/Employee/PaymentMethod/management/PaymentMethodComponents.d.ts +5 -0
  478. package/dist/components/Employee/PaymentMethod/management/PaymentMethodComponents.js.map +1 -1
  479. package/dist/components/Employee/PaymentMethod/management/PaymentMethodSplitForm.d.ts +23 -6
  480. package/dist/components/Employee/PaymentMethod/management/PaymentMethodSplitForm.js.map +1 -1
  481. package/dist/components/Employee/PaymentMethod/management/paymentMethodStateMachine.d.ts +1 -0
  482. package/dist/components/Employee/PaymentMethod/management/paymentMethodStateMachine.js.map +1 -1
  483. package/dist/components/Employee/PaymentMethod/management/useFormDictionary.d.ts +4 -0
  484. package/dist/components/Employee/PaymentMethod/management/useFormDictionary.js.map +1 -1
  485. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.d.ts +2 -0
  486. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js.map +1 -1
  487. package/dist/components/Employee/PaymentMethod/onboarding/ListView.d.ts +1 -0
  488. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js +15 -15
  489. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js.map +1 -1
  490. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.d.ts +43 -0
  491. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.js +6 -7
  492. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
  493. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethodComponents.d.ts +4 -0
  494. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethodComponents.js.map +1 -1
  495. package/dist/components/Employee/PaymentMethod/onboarding/SplitView.d.ts +2 -0
  496. package/dist/components/Employee/PaymentMethod/onboarding/SplitView.js.map +1 -1
  497. package/dist/components/Employee/PaymentMethod/onboarding/paymentMethodStateMachine.d.ts +1 -0
  498. package/dist/components/Employee/PaymentMethod/onboarding/paymentMethodStateMachine.js.map +1 -1
  499. package/dist/components/Employee/PaymentMethod/onboarding/useFormDictionary.d.ts +4 -0
  500. package/dist/components/Employee/PaymentMethod/onboarding/useFormDictionary.js.map +1 -1
  501. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.d.ts +4 -0
  502. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.js +8 -7
  503. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.js.map +1 -1
  504. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/index.d.ts +1 -1
  505. package/dist/components/Employee/PaymentMethod/shared/DeleteBankAccountDialog.d.ts +2 -0
  506. package/dist/components/Employee/PaymentMethod/shared/DeleteBankAccountDialog.js.map +1 -1
  507. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.d.ts +4 -0
  508. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.js +10 -9
  509. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.js.map +1 -1
  510. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/index.d.ts +1 -1
  511. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.d.ts +80 -0
  512. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
  513. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js.map +1 -1
  514. package/dist/components/Employee/PaymentMethod/shared/useBankForm/index.d.ts +1 -1
  515. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.d.ts +84 -1
  516. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.js.map +1 -1
  517. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.d.ts +45 -0
  518. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.js.map +1 -1
  519. package/dist/components/Employee/PaymentMethod/shared/useDeleteBankAccount.d.ts +1 -0
  520. package/dist/components/Employee/PaymentMethod/shared/useDeleteBankAccount.js.map +1 -1
  521. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.d.ts +22 -0
  522. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.js.map +1 -1
  523. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/index.d.ts +2 -2
  524. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.d.ts +84 -1
  525. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.js.map +1 -1
  526. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.d.ts +45 -0
  527. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.js.map +1 -1
  528. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.d.ts +6 -0
  529. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.js.map +1 -1
  530. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/fields.d.ts +22 -0
  531. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/fields.js.map +1 -1
  532. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/index.d.ts +2 -2
  533. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.d.ts +25 -0
  534. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
  535. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js.map +1 -1
  536. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.d.ts +124 -7
  537. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.js.map +1 -1
  538. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.d.ts +52 -6
  539. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.js +1 -2
  540. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.js.map +1 -1
  541. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.d.ts +9 -0
  542. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.js +6 -6
  543. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.js.map +1 -1
  544. package/dist/components/Employee/Paystubs/shared/usePaystubsList/index.d.ts +1 -1
  545. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.d.ts +25 -0
  546. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.js.map +1 -1
  547. package/dist/components/Employee/Profile/management/Profile.d.ts +25 -0
  548. package/dist/components/Employee/Profile/management/Profile.js +11 -12
  549. package/dist/components/Employee/Profile/management/Profile.js.map +1 -1
  550. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.d.ts +22 -6
  551. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.js +8 -7
  552. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.js.map +1 -1
  553. package/dist/components/Employee/Profile/management/ProfileComponents.d.ts +5 -1
  554. package/dist/components/Employee/Profile/management/ProfileComponents.js.map +1 -1
  555. package/dist/components/Employee/Profile/management/ProfileEditForm.d.ts +25 -0
  556. package/dist/components/Employee/Profile/management/ProfileEditForm.js +18 -19
  557. package/dist/components/Employee/Profile/management/ProfileEditForm.js.map +1 -1
  558. package/dist/components/Employee/Profile/management/profileStateMachine.d.ts +1 -0
  559. package/dist/components/Employee/Profile/management/profileStateMachine.js.map +1 -1
  560. package/dist/components/Employee/Profile/onboarding/AdminProfile.d.ts +1 -0
  561. package/dist/components/Employee/Profile/onboarding/AdminProfile.js +10 -11
  562. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -1
  563. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.d.ts +1 -0
  564. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js +8 -9
  565. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -1
  566. package/dist/components/Employee/Profile/onboarding/Profile.d.ts +61 -0
  567. package/dist/components/Employee/Profile/onboarding/Profile.js +11 -12
  568. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -1
  569. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +37 -0
  570. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
  571. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.d.ts +170 -0
  572. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
  573. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js.map +1 -1
  574. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/index.d.ts +4 -2
  575. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +140 -1
  576. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  577. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/index.d.ts +0 -1
  578. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.d.ts +37 -4
  579. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js.map +1 -1
  580. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +130 -0
  581. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
  582. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
  583. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +35 -0
  584. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
  585. package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +2 -1
  586. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.d.ts +45 -0
  587. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js.map +1 -1
  588. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +77 -1
  589. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  590. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.d.ts +43 -0
  591. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
  592. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js.map +1 -1
  593. package/dist/components/Employee/Profile/shared/useWorkAddressForm/index.d.ts +2 -1
  594. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.d.ts +42 -0
  595. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js.map +1 -1
  596. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +85 -0
  597. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  598. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.d.ts +35 -0
  599. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.js.map +1 -1
  600. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +16 -0
  601. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  602. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +31 -0
  603. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
  604. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.d.ts +1 -0
  605. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
  606. package/dist/components/Employee/StateTaxes/index.d.ts +1 -1
  607. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +24 -0
  608. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +9 -10
  609. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -1
  610. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.d.ts +21 -6
  611. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.js +12 -11
  612. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.js.map +1 -1
  613. package/dist/components/Employee/StateTaxes/management/StateTaxesComponents.d.ts +4 -0
  614. package/dist/components/Employee/StateTaxes/management/StateTaxesComponents.js.map +1 -1
  615. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.d.ts +20 -8
  616. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.js +5 -5
  617. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.js.map +1 -1
  618. package/dist/components/Employee/StateTaxes/management/stateTaxesStateMachine.d.ts +1 -0
  619. package/dist/components/Employee/StateTaxes/management/stateTaxesStateMachine.js.map +1 -1
  620. package/dist/components/Employee/StateTaxes/management/useViewDictionary.d.ts +2 -0
  621. package/dist/components/Employee/StateTaxes/management/useViewDictionary.js.map +1 -1
  622. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +22 -0
  623. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +5 -5
  624. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -1
  625. package/dist/components/Employee/StateTaxes/onboarding/useViewDictionary.d.ts +2 -0
  626. package/dist/components/Employee/StateTaxes/onboarding/useViewDictionary.js.map +1 -1
  627. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +4 -0
  628. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +2 -3
  629. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
  630. package/dist/components/Employee/StateTaxes/shared/index.d.ts +1 -2
  631. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +39 -16
  632. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -1
  633. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +6 -0
  634. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
  635. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -1
  636. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +4 -9
  637. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -1
  638. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +5 -1
  639. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +52 -0
  640. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +26 -5
  641. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -1
  642. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +106 -0
  643. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -1
  644. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/index.d.ts +0 -1
  645. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.d.ts +5 -8
  646. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.js.map +1 -1
  647. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +53 -0
  648. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  649. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +1 -0
  650. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +11 -10
  651. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  652. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +47 -0
  653. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -1
  654. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +20 -0
  655. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +10 -9
  656. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  657. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +2 -0
  658. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  659. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +48 -0
  660. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  661. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +1 -0
  662. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +3 -2
  663. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  664. package/dist/components/Employee/Terminations/types.d.ts +16 -0
  665. package/dist/components/Employee/WorkAddress/management/WorkAddress.d.ts +21 -0
  666. package/dist/components/Employee/WorkAddress/management/WorkAddress.js +6 -7
  667. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
  668. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.d.ts +17 -6
  669. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.js +17 -16
  670. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.js.map +1 -1
  671. package/dist/components/Employee/WorkAddress/management/WorkAddressComponents.d.ts +3 -0
  672. package/dist/components/Employee/WorkAddress/management/WorkAddressComponents.js.map +1 -1
  673. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.d.ts +20 -0
  674. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
  675. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +2 -0
  676. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +7 -7
  677. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  678. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.d.ts +2 -0
  679. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js.map +1 -1
  680. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.d.ts +46 -7
  681. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
  682. package/dist/components/Employee/WorkAddress/management/workAddressStateMachine.d.ts +1 -0
  683. package/dist/components/Employee/WorkAddress/management/workAddressStateMachine.js.map +1 -1
  684. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/index.d.ts +0 -1
  685. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.d.ts +21 -4
  686. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.js.map +1 -1
  687. package/dist/components/Employee/exports/employeeManagement.d.ts +7 -2
  688. package/dist/components/Employee/exports/employeeManagement.js +58 -56
  689. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  690. package/dist/components/Employee/exports/employeeOnboarding.d.ts +11 -10
  691. package/dist/components/Employee/exports/employeeOnboarding.js +24 -22
  692. package/dist/components/Employee/exports/employeeOnboarding.js.map +1 -1
  693. package/dist/components/Employee/index.d.ts +0 -1
  694. package/dist/components/Flow/FlowHeader.js +4 -3
  695. package/dist/components/Flow/FlowHeader.js.map +1 -1
  696. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +19 -18
  697. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  698. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +1 -1
  699. package/dist/components/InformationRequests/InformationRequests.js +7 -8
  700. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  701. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +16 -17
  702. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  703. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +2 -3
  704. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  705. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +11 -10
  706. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  707. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +0 -1
  708. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  709. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +9 -8
  710. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  711. package/dist/components/Payroll/Dismissal/index.d.ts +2 -0
  712. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +27 -36
  713. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  714. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +10 -10
  715. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +13 -11
  716. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  717. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +1 -0
  718. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  719. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +8 -7
  720. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  721. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +2 -3
  722. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  723. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +18 -18
  724. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +295 -289
  725. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  726. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +18 -18
  727. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +15 -15
  728. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +4 -4
  729. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  730. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  731. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +6 -7
  732. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  733. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +6 -7
  734. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -1
  735. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +1 -1
  736. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +2 -1
  737. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  738. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  739. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  740. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +10 -10
  741. package/dist/components/Payroll/index.d.ts +2 -0
  742. package/dist/components/Payroll/index.js +24 -22
  743. package/dist/components/Payroll/index.js.map +1 -1
  744. package/dist/components/Payroll/usePreparedPayrollData.js +22 -33
  745. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  746. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +2 -3
  747. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
  748. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +2 -3
  749. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
  750. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +14 -14
  751. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
  752. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +3 -2
  753. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -1
  754. package/dist/components/TimeOff/PolicyList/PolicyList.js +2 -3
  755. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
  756. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +8 -8
  757. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +4 -4
  758. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +4 -4
  759. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +36 -34
  760. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  761. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +4 -4
  762. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +16 -16
  763. package/dist/components/TimeOff/index.d.ts +6 -2
  764. package/dist/components/TimeOff/index.js +21 -17
  765. package/dist/components/TimeOff/index.js.map +1 -1
  766. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +25 -24
  767. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -1
  768. package/dist/components/index.d.ts +1 -6
  769. package/dist/contexts/GustoProvider/GustoProvider.d.ts +0 -7
  770. package/dist/contexts/GustoProvider/GustoProvider.js +10 -11
  771. package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -1
  772. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  773. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  774. package/dist/contexts/GustoProvider/index.d.ts +1 -1
  775. package/dist/contexts/index.d.ts +0 -1
  776. package/dist/i18n/I18n.js +0 -1
  777. package/dist/i18n/I18n.js.map +1 -1
  778. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +56 -40
  779. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  780. package/dist/i18n/en/common.json.d.ts +0 -1
  781. package/dist/i18n/en/common.json.js +2 -2
  782. package/dist/index.d.ts +18 -16
  783. package/dist/index.js +229 -163
  784. package/dist/index.js.map +1 -1
  785. package/dist/node_modules/react-dnd/dist/core/DndProvider.js +1 -1
  786. package/dist/node_modules/react-dnd/dist/core/DndProvider.js.map +1 -1
  787. package/dist/partner-hook-utils/composeErrorHandler.js +3 -1
  788. package/dist/partner-hook-utils/composeErrorHandler.js.map +1 -1
  789. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +15 -12
  790. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  791. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +1 -1
  792. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +19 -16
  793. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  794. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +16 -13
  795. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  796. package/dist/partner-hook-utils/form/fields/SelectHookField.js +15 -12
  797. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  798. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +21 -18
  799. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  800. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +12 -9
  801. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  802. package/dist/shared/constants.d.ts +5 -3
  803. package/dist/shared/constants.js +0 -1
  804. package/dist/shared/constants.js.map +1 -1
  805. package/dist/style.css +1 -1
  806. package/dist/types/i18next.d.ts +9 -33
  807. package/docs/reference/endpoint-inventory.json +291 -1070
  808. package/package.json +32 -18
  809. package/dist/assets/icons/magnifyingGlass.png.js +0 -5
  810. package/dist/assets/icons/magnifyingGlass.png.js.map +0 -1
  811. package/dist/components/Company/index.js +0 -37
  812. package/dist/components/Company/index.js.map +0 -1
  813. package/dist/components/Contractor/index.js +0 -29
  814. package/dist/components/Contractor/index.js.map +0 -1
  815. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/index.d.ts +0 -3
  816. package/dist/components/Employee/Deductions/shared/index.d.ts +0 -8
  817. package/dist/components/Employee/Documents/shared/index.d.ts +0 -3
  818. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +0 -2
  819. package/dist/components/Employee/HomeAddress/shared/index.d.ts +0 -3
  820. package/dist/components/Employee/Paystubs/shared/index.d.ts +0 -3
  821. package/dist/components/Employee/Taxes/Actions.d.ts +0 -1
  822. package/dist/components/Employee/Taxes/Actions.js +0 -13
  823. package/dist/components/Employee/Taxes/Actions.js.map +0 -1
  824. package/dist/components/Employee/Taxes/FederalForm.d.ts +0 -12
  825. package/dist/components/Employee/Taxes/FederalForm.js +0 -109
  826. package/dist/components/Employee/Taxes/FederalForm.js.map +0 -1
  827. package/dist/components/Employee/Taxes/FederalHead.d.ts +0 -1
  828. package/dist/components/Employee/Taxes/FederalHead.js +0 -25
  829. package/dist/components/Employee/Taxes/FederalHead.js.map +0 -1
  830. package/dist/components/Employee/Taxes/StateForm.d.ts +0 -6
  831. package/dist/components/Employee/Taxes/StateForm.js +0 -35
  832. package/dist/components/Employee/Taxes/StateForm.js.map +0 -1
  833. package/dist/components/Employee/Taxes/Taxes.d.ts +0 -13
  834. package/dist/components/Employee/Taxes/Taxes.js +0 -133
  835. package/dist/components/Employee/Taxes/Taxes.js.map +0 -1
  836. package/dist/components/Employee/Taxes/index.d.ts +0 -2
  837. package/dist/components/Employee/Taxes/useTaxes.d.ts +0 -8
  838. package/dist/components/Employee/Taxes/useTaxes.js +0 -21
  839. package/dist/components/Employee/Taxes/useTaxes.js.map +0 -1
  840. package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +0 -3
  841. package/dist/components/Employee/Terminations/TerminationsData.d.ts +0 -6
  842. package/dist/components/Employee/Terminations/index.d.ts +0 -8
  843. package/dist/components/Employee/WorkAddress/shared/index.d.ts +0 -3
  844. package/dist/components/Employee/index.js +0 -49
  845. package/dist/components/Employee/index.js.map +0 -1
  846. package/dist/contexts/GustoApiProvider/index.d.ts +0 -3
  847. package/dist/i18n/en/Employee.Taxes.json.js +0 -58
  848. package/dist/i18n/en/Employee.Taxes.json.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useChildSupportGarnishmentForm.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.tsx"],"sourcesContent":["import { useEffect, useMemo, useRef } from 'react'\nimport { useForm, useWatch } from 'react-hook-form'\nimport type { UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n type Garnishment,\n type GarnishmentType,\n} from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport type { Agencies } from '@gusto/embedded-api-v-2025-11-15/models/components/childsupportdata'\nimport { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport'\nimport { useGarnishmentsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsCreate'\nimport { useGarnishmentsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsUpdate'\nimport { useGarnishmentsList } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsList'\nimport { useGarnishmentsGetChildSupportData } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsGetChildSupportData'\nimport {\n createChildSupportGarnishmentFormSchema,\n getRequiredAttrKeys,\n type ChildSupportGarnishmentFormData,\n type ChildSupportGarnishmentFormOutputs,\n type SupportedRequiredAttrKey,\n} from './childSupportGarnishmentFormSchema'\nimport {\n StateField,\n FipsCodeField,\n CaseNumberField,\n OrderNumberField,\n RemittanceNumberField,\n PayPeriodMaximumField,\n AmountField,\n PaymentPeriodField,\n type CountyEntry,\n type StateFieldEntry,\n} from './fields'\nimport { useDeriveFieldsMetadata } from '@/partner-hook-utils/form/useDeriveFieldsMetadata'\nimport { useHookFormInternals } from '@/partner-hook-utils/form/useHookFormInternals'\nimport { createGetFormSubmissionValues } from '@/partner-hook-utils/form/getFormSubmissionValues'\nimport { withOptions } from '@/partner-hook-utils/form/withOptions'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport type {\n BaseFormHookReady,\n FieldsMetadata,\n HookLoadingResult,\n HookSubmitResult,\n} from '@/partner-hook-utils/types'\nimport { useBaseSubmit } from '@/components/Base/useBaseSubmit'\nimport { SDKInternalError } from '@/types/sdkError'\n\nconst PAYMENT_PERIOD_OPTIONS = [\n { value: PaymentPeriod.EveryWeek, label: PaymentPeriod.EveryWeek },\n { value: PaymentPeriod.EveryOtherWeek, label: PaymentPeriod.EveryOtherWeek },\n { value: PaymentPeriod.TwicePerMonth, label: PaymentPeriod.TwicePerMonth },\n { value: PaymentPeriod.Monthly, label: PaymentPeriod.Monthly },\n] as const\n\nconst PAYMENT_PERIOD_ENTRIES = [\n PaymentPeriod.EveryWeek,\n PaymentPeriod.EveryOtherWeek,\n PaymentPeriod.TwicePerMonth,\n PaymentPeriod.Monthly,\n] as const\n\nexport interface UseChildSupportGarnishmentFormProps {\n employeeId: string\n /**\n * When set, loads that garnishment via the list query and updates it (PUT).\n * When omitted, the form is in create mode (POST).\n */\n garnishmentId?: string\n defaultValues?: Partial<ChildSupportGarnishmentFormData>\n validationMode?: UseFormProps['mode']\n shouldFocusError?: boolean\n}\n\nexport interface ChildSupportGarnishmentFormFields {\n State: typeof StateField\n /** Only available when the selected agency has more than one fips code, or the\n * sole code is county-scoped (not an \"all counties\" auto-pick). */\n FipsCode: typeof FipsCodeField | undefined\n /** Only available when the selected agency requires `case_number`. */\n CaseNumber: typeof CaseNumberField | undefined\n /** Only available when the selected agency requires `order_number`. */\n OrderNumber: typeof OrderNumberField | undefined\n /** Only available when the selected agency requires `remittance_number`. */\n RemittanceNumber: typeof RemittanceNumberField | undefined\n PayPeriodMaximum: typeof PayPeriodMaximumField\n Amount: typeof AmountField\n PaymentPeriod: typeof PaymentPeriodField\n}\n\nexport interface UseChildSupportGarnishmentFormReady extends BaseFormHookReady<\n FieldsMetadata,\n ChildSupportGarnishmentFormData,\n ChildSupportGarnishmentFormFields\n> {\n data: {\n /** Agencies offered as `State` options; raw entries the consumer can use\n * with `getOptionLabel` for translated names. */\n agencies: StateFieldEntry[]\n /** Counties for the currently selected state. Empty array when no state\n * is selected. */\n counties: CountyEntry[]\n /** The garnishment loaded for update; `null` in create mode. */\n deduction: Garnishment | null\n }\n status: {\n isPending: boolean\n mode: 'create' | 'update'\n /** The agency record matching the currently selected `state`. */\n selectedAgency: Agencies | null\n /** Mirrors `selectedAgency.manualPaymentRequired`; convenient for showing\n * a warning alert. */\n isManualPaymentRequired: boolean\n /** Which `required_attributes` keys the selected agency declares. */\n requiredAttrKeys: ReadonlySet<SupportedRequiredAttrKey>\n }\n actions: {\n onSubmit: () => Promise<HookSubmitResult<Garnishment> | undefined>\n }\n}\n\nexport type UseChildSupportGarnishmentFormResult =\n | HookLoadingResult\n | UseChildSupportGarnishmentFormReady\n\nexport function useChildSupportGarnishmentForm({\n employeeId,\n garnishmentId,\n defaultValues: partnerDefaults,\n validationMode = 'onSubmit',\n shouldFocusError = true,\n}: UseChildSupportGarnishmentFormProps): UseChildSupportGarnishmentFormResult {\n const isCreateMode = !garnishmentId\n const schemaMode = isCreateMode ? 'create' : 'update'\n\n // Agencies + their required-attributes / fips codes come from a single GET.\n const agencyDataQuery = useGarnishmentsGetChildSupportData({})\n const agencyList = useMemo(\n () => agencyDataQuery.data?.childSupportData?.agencies ?? [],\n [agencyDataQuery.data],\n )\n\n // Update mode reads the row from the list endpoint (the garnishments API\n // has no single-row GET).\n const garnishmentsListQuery = useGarnishmentsList({ employeeId }, { enabled: !isCreateMode })\n const fetchedDeduction = useMemo(() => {\n if (isCreateMode) return null\n return garnishmentsListQuery.data?.garnishments?.find(g => g.uuid === garnishmentId) ?? null\n }, [isCreateMode, garnishmentId, garnishmentsListQuery.data])\n\n const resolvedDefaults: ChildSupportGarnishmentFormData = useMemo(\n () => ({\n state: fetchedDeduction?.childSupport?.state ?? partnerDefaults?.state ?? '',\n fipsCode: fetchedDeduction?.childSupport?.fipsCode ?? partnerDefaults?.fipsCode ?? '',\n caseNumber: fetchedDeduction?.childSupport?.caseNumber ?? partnerDefaults?.caseNumber ?? '',\n orderNumber:\n fetchedDeduction?.childSupport?.orderNumber ?? partnerDefaults?.orderNumber ?? '',\n remittanceNumber:\n fetchedDeduction?.childSupport?.remittanceNumber ?? partnerDefaults?.remittanceNumber ?? '',\n amount: fetchedDeduction?.amount\n ? Number(fetchedDeduction.amount)\n : (partnerDefaults?.amount ?? 0),\n payPeriodMaximum: fetchedDeduction?.payPeriodMaximum\n ? Number(fetchedDeduction.payPeriodMaximum)\n : (partnerDefaults?.payPeriodMaximum ?? 0),\n paymentPeriod:\n (fetchedDeduction?.childSupport?.paymentPeriod as PaymentPeriod | undefined) ??\n partnerDefaults?.paymentPeriod ??\n PaymentPeriod.Monthly,\n }),\n [fetchedDeduction, partnerDefaults],\n )\n\n // Pass the full agency list so requiredness for the agency-attribute fields\n // (`caseNumber`, `orderNumber`, `remittanceNumber`) is derived dynamically\n // from the form's `state` value. The schema doesn't need to rebuild when the\n // user changes states — the predicate runs at validation time and via\n // `useDeriveFieldsMetadata` for the (optional) label.\n const [schema, metadataConfig] = useMemo(\n () => createChildSupportGarnishmentFormSchema({ mode: schemaMode, agencyList }),\n [schemaMode, agencyList],\n )\n\n const formMethods = useForm<\n ChildSupportGarnishmentFormData,\n unknown,\n ChildSupportGarnishmentFormOutputs\n >({\n resolver: zodResolver(schema),\n mode: validationMode,\n shouldFocusError,\n defaultValues: resolvedDefaults,\n values: resolvedDefaults,\n resetOptions: { keepDirtyValues: true },\n })\n\n const liveWatchedState = useWatch({ control: formMethods.control, name: 'state' })\n const liveSelectedAgency = useMemo(\n () => agencyList.find(a => a.state === liveWatchedState) ?? null,\n [agencyList, liveWatchedState],\n )\n\n // The agency-attribute fields stay in sync with the chosen state: when the\n // user switches states, the previous attribute values would otherwise carry\n // over and potentially submit alongside the wrong agency. The ref tracks\n // the previous value so the wipe only fires on user-driven transitions —\n // NOT on the initial sync when an existing garnishment loads (state moves\n // from '' to e.g. 'AK' as a side effect of `values` updating, which would\n // otherwise clobber the loaded case/order/remittance values).\n const previousWatchedStateRef = useRef<string | null>(null)\n useEffect(() => {\n const previous = previousWatchedStateRef.current\n previousWatchedStateRef.current = liveWatchedState\n // First render (no previous value) → skip the wipe.\n if (previous === null) return\n // Server-side load: previous was '' (initial defaults before the row\n // arrived), now it's the loaded state. That's a sync, not a user toggle.\n if (previous === '') return\n if (previous === liveWatchedState) return\n formMethods.setValue('caseNumber', '')\n formMethods.setValue('orderNumber', '')\n formMethods.setValue('remittanceNumber', '')\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [liveWatchedState])\n\n // When the selected agency has a single \"all counties\" fips code, auto-fill\n // the field so the consumer doesn't have to render the county select.\n const fipsCodes = liveSelectedAgency?.fipsCodes ?? []\n const singleAllCountiesFipsCode =\n fipsCodes.length === 1 && !fipsCodes[0]?.county?.length ? (fipsCodes[0]?.code ?? null) : null\n useEffect(() => {\n if (singleAllCountiesFipsCode) {\n formMethods.setValue('fipsCode', singleAllCountiesFipsCode)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [singleAllCountiesFipsCode])\n\n const createGarnishmentMutation = useGarnishmentsCreateMutation()\n const updateGarnishmentMutation = useGarnishmentsUpdateMutation()\n const isPending = createGarnishmentMutation.isPending || updateGarnishmentMutation.isPending\n\n const {\n baseSubmitHandler,\n error: submitError,\n setError: setSubmitError,\n } = useBaseSubmit('ChildSupportGarnishmentForm')\n\n const errorHandling = composeErrorHandler(\n isCreateMode ? [agencyDataQuery] : [agencyDataQuery, garnishmentsListQuery],\n { submitError, setSubmitError },\n )\n\n // ── Derived data exposed on the ready branch ─────────────────────────\n\n const agencies: StateFieldEntry[] = useMemo(\n () =>\n agencyList.map(a => ({\n state: a.state ?? '',\n name: a.name ?? a.state ?? '',\n manualPaymentRequired: a.manualPaymentRequired ?? false,\n })),\n [agencyList],\n )\n\n const counties: CountyEntry[] = useMemo(\n () =>\n (liveSelectedAgency?.fipsCodes ?? [])\n .filter(f => typeof f.code === 'string')\n .map(f => ({ fipsCode: f.code as string, county: f.county ?? null })),\n [liveSelectedAgency],\n )\n\n const requiredAttrKeys = useMemo(\n () => getRequiredAttrKeys(liveSelectedAgency),\n [liveSelectedAgency],\n )\n\n const hasSelectableCounties =\n counties.length > 1 || (counties.length === 1 && singleAllCountiesFipsCode == null)\n\n // ── Metadata + field-options wiring ─────────────────────────────────\n\n const baseMetadata = useDeriveFieldsMetadata(metadataConfig, formMethods.control)\n const stateOptions = agencies.map(a => ({ value: a.state, label: a.name }))\n const countyOptions = counties.map(c => ({\n value: c.fipsCode,\n label: c.county ?? c.fipsCode,\n }))\n\n const fieldsMetadata = {\n state: withOptions(baseMetadata.state, stateOptions, agencies),\n fipsCode: withOptions(baseMetadata.fipsCode, countyOptions, counties),\n caseNumber: baseMetadata.caseNumber,\n orderNumber: baseMetadata.orderNumber,\n remittanceNumber: baseMetadata.remittanceNumber,\n payPeriodMaximum: baseMetadata.payPeriodMaximum,\n amount: baseMetadata.amount,\n paymentPeriod: withOptions(\n baseMetadata.paymentPeriod,\n [...PAYMENT_PERIOD_OPTIONS],\n [...PAYMENT_PERIOD_ENTRIES],\n ),\n }\n\n // ── Submit ───────────────────────────────────────────────────────────\n\n const onSubmit = async (): Promise<HookSubmitResult<Garnishment> | undefined> => {\n let submitResult: HookSubmitResult<Garnishment> | undefined\n\n await new Promise<void>(resolve => {\n void formMethods.handleSubmit(\n async (data: ChildSupportGarnishmentFormOutputs) => {\n await baseSubmitHandler(data, async payload => {\n const childSupport = {\n state: payload.state,\n paymentPeriod: payload.paymentPeriod,\n fipsCode: payload.fipsCode,\n // Empty strings collapse to null so the API persists \"no value\n // declared\" rather than an empty case number.\n caseNumber: payload.caseNumber || null,\n orderNumber: payload.orderNumber || null,\n remittanceNumber: payload.remittanceNumber || null,\n }\n\n const description = `Child Support - ${childSupport.caseNumber ?? ''}`\n const amountStr = String(payload.amount)\n const payPeriodMaximumStr =\n payload.payPeriodMaximum > 0 ? String(payload.payPeriodMaximum) : null\n\n const requestBody = {\n active: true,\n amount: amountStr,\n description,\n courtOrdered: true,\n garnishmentType: 'child_support' as GarnishmentType,\n times: null,\n deductAsPercentage: true,\n payPeriodMaximum: payPeriodMaximumStr,\n recurring: true,\n childSupport,\n }\n\n let updated: Garnishment | undefined\n\n if (isCreateMode) {\n const result = await createGarnishmentMutation.mutateAsync({\n request: { employeeId, garnishmentRequest: requestBody },\n })\n updated = result.garnishment\n } else {\n if (!fetchedDeduction) {\n throw new SDKInternalError(\n 'Cannot update child-support deduction: no matching garnishment on file',\n )\n }\n const result = await updateGarnishmentMutation.mutateAsync({\n request: {\n garnishmentId: fetchedDeduction.uuid,\n updateGarnishmentRequest: {\n ...requestBody,\n version: fetchedDeduction.version as string,\n },\n },\n })\n updated = result.garnishment\n }\n\n if (!updated) {\n throw new SDKInternalError(\n isCreateMode\n ? 'Child-support deduction creation failed'\n : 'Child-support deduction update failed',\n )\n }\n\n submitResult = {\n mode: isCreateMode ? 'create' : 'update',\n data: updated,\n }\n })\n resolve()\n },\n () => {\n resolve()\n },\n )()\n })\n\n return submitResult\n }\n\n const hookFormInternals = useHookFormInternals(formMethods)\n\n if (agencyDataQuery.isLoading) {\n return { isLoading: true as const, errorHandling }\n }\n if (!isCreateMode && garnishmentsListQuery.isLoading) {\n return { isLoading: true as const, errorHandling }\n }\n\n return {\n isLoading: false as const,\n data: {\n agencies,\n counties,\n deduction: fetchedDeduction,\n },\n status: {\n isPending,\n mode: isCreateMode ? 'create' : 'update',\n selectedAgency: liveSelectedAgency,\n isManualPaymentRequired: liveSelectedAgency?.manualPaymentRequired ?? false,\n requiredAttrKeys,\n },\n actions: { onSubmit },\n errorHandling,\n form: {\n Fields: {\n State: StateField,\n FipsCode: hasSelectableCounties ? FipsCodeField : undefined,\n CaseNumber: requiredAttrKeys.has('case_number') ? CaseNumberField : undefined,\n OrderNumber: requiredAttrKeys.has('order_number') ? OrderNumberField : undefined,\n RemittanceNumber: requiredAttrKeys.has('remittance_number')\n ? RemittanceNumberField\n : undefined,\n PayPeriodMaximum: PayPeriodMaximumField,\n Amount: AmountField,\n PaymentPeriod: PaymentPeriodField,\n },\n fieldsMetadata,\n hookFormInternals,\n getFormSubmissionValues: createGetFormSubmissionValues(formMethods, schema),\n },\n }\n}\n\nexport type ChildSupportGarnishmentFormFieldsMetadata =\n UseChildSupportGarnishmentFormReady['form']['fieldsMetadata']\nexport type ChildSupportGarnishmentFormFieldsType =\n UseChildSupportGarnishmentFormReady['form']['Fields']\n"],"names":["PAYMENT_PERIOD_OPTIONS","PaymentPeriod","PAYMENT_PERIOD_ENTRIES","useChildSupportGarnishmentForm","employeeId","garnishmentId","partnerDefaults","validationMode","shouldFocusError","isCreateMode","schemaMode","agencyDataQuery","useGarnishmentsGetChildSupportData","agencyList","useMemo","garnishmentsListQuery","useGarnishmentsList","fetchedDeduction","g","resolvedDefaults","schema","metadataConfig","createChildSupportGarnishmentFormSchema","formMethods","useForm","zodResolver","liveWatchedState","useWatch","liveSelectedAgency","a","previousWatchedStateRef","useRef","useEffect","previous","fipsCodes","singleAllCountiesFipsCode","createGarnishmentMutation","useGarnishmentsCreateMutation","updateGarnishmentMutation","useGarnishmentsUpdateMutation","isPending","baseSubmitHandler","submitError","setSubmitError","useBaseSubmit","errorHandling","composeErrorHandler","agencies","counties","f","requiredAttrKeys","getRequiredAttrKeys","hasSelectableCounties","baseMetadata","useDeriveFieldsMetadata","stateOptions","countyOptions","c","fieldsMetadata","withOptions","onSubmit","submitResult","resolve","data","payload","childSupport","description","amountStr","payPeriodMaximumStr","requestBody","updated","SDKInternalError","hookFormInternals","useHookFormInternals","StateField","FipsCodeField","CaseNumberField","OrderNumberField","RemittanceNumberField","PayPeriodMaximumField","AmountField","PaymentPeriodField","createGetFormSubmissionValues"],"mappings":";;;;;;;;;;;;;;;;;AA+CA,MAAMA,KAAyB;AAAA,EAC7B,EAAE,OAAOC,EAAc,WAAW,OAAOA,EAAc,UAAA;AAAA,EACvD,EAAE,OAAOA,EAAc,gBAAgB,OAAOA,EAAc,eAAA;AAAA,EAC5D,EAAE,OAAOA,EAAc,eAAe,OAAOA,EAAc,cAAA;AAAA,EAC3D,EAAE,OAAOA,EAAc,SAAS,OAAOA,EAAc,QAAA;AACvD,GAEMC,KAAyB;AAAA,EAC7BD,EAAc;AAAA,EACdA,EAAc;AAAA,EACdA,EAAc;AAAA,EACdA,EAAc;AAChB;AAiEO,SAASE,GAA+B;AAAA,EAC7C,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAeC;AAAA,EACf,gBAAAC,IAAiB;AAAA,EACjB,kBAAAC,IAAmB;AACrB,GAA8E;AAC5E,QAAMC,IAAe,CAACJ,GAChBK,IAAaD,IAAe,WAAW,UAGvCE,IAAkBC,GAAmC,EAAE,GACvDC,IAAaC;AAAA,IACjB,M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AA,QACF;AAAA,QACA,MAAM;AACJ,UAAAA,EAAA;AAAA,QACF;AAAA,MAAA,EACF;AAAA,IACF,CAAC,GAEMD;AAAA,EACT,GAEMW,IAAoBC,GAAqBlD,CAAW;AAE1D,SAAIZ,EAAgB,YACX,EAAE,WAAW,IAAe,eAAAkC,EAAA,IAEjC,CAACpC,KAAgBM,EAAsB,YAClC,EAAE,WAAW,IAAe,eAAA8B,EAAA,IAG9B;AAAA,IACL,WAAW;AAAA,IACX,MAAM;AAAA,MACJ,UAAAE;AAAA,MACA,UAAAC;AAAA,MACA,WAAW/B;AAAA,IAAA;AAAA,IAEb,QAAQ;AAAA,MACN,WAAAuB;AAAA,MACA,MAAM/B,IAAe,WAAW;AAAA,MAChC,gBAAgBmB;AAAA,MAChB,yBAAyBA,GAAoB,yBAAyB;AAAA,MACtE,kBAAAsB;AAAA,IAAA;AAAA,IAEF,SAAS,EAAE,UAAAU,EAAA;AAAA,IACX,eAAAf;AAAA,IACA,MAAM;AAAA,MACJ,QAAQ;AAAA,QACN,OAAO6B;AAAA,QACP,UAAUtB,IAAwBuB,KAAgB;AAAA,QAClD,YAAYzB,EAAiB,IAAI,aAAa,IAAI0B,KAAkB;AAAA,QACpE,aAAa1B,EAAiB,IAAI,cAAc,IAAI2B,KAAmB;AAAA,QACvE,kBAAkB3B,EAAiB,IAAI,mBAAmB,IACtD4B,KACA;AAAA,QACJ,kBAAkBC;AAAA,QAClB,QAAQC;AAAA,QACR,eAAeC;AAAA,MAAA;AAAA,MAEjB,gBAAAvB;AAAA,MACA,mBAAAc;AAAA,MACA,yBAAyBU,GAA8B3D,GAAaH,CAAM;AAAA,IAAA;AAAA,EAC5E;AAEJ;"}
1
+ {"version":3,"file":"useChildSupportGarnishmentForm.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.tsx"],"sourcesContent":["import { useEffect, useMemo, useRef } from 'react'\nimport { useForm, useWatch } from 'react-hook-form'\nimport type { UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n type Garnishment,\n type GarnishmentType,\n} from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport type { Agencies } from '@gusto/embedded-api-v-2025-11-15/models/components/childsupportdata'\nimport { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport'\nimport { useGarnishmentsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsCreate'\nimport { useGarnishmentsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsUpdate'\nimport { useGarnishmentsList } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsList'\nimport { useGarnishmentsGetChildSupportData } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsGetChildSupportData'\nimport {\n createChildSupportGarnishmentFormSchema,\n getRequiredAttrKeys,\n type ChildSupportGarnishmentFormData,\n type ChildSupportGarnishmentFormOutputs,\n type SupportedRequiredAttrKey,\n} from './childSupportGarnishmentFormSchema'\nimport {\n StateField,\n FipsCodeField,\n CaseNumberField,\n OrderNumberField,\n RemittanceNumberField,\n PayPeriodMaximumField,\n AmountField,\n PaymentPeriodField,\n type CountyEntry,\n type StateFieldEntry,\n} from './fields'\nimport { useDeriveFieldsMetadata } from '@/partner-hook-utils/form/useDeriveFieldsMetadata'\nimport { useHookFormInternals } from '@/partner-hook-utils/form/useHookFormInternals'\nimport { createGetFormSubmissionValues } from '@/partner-hook-utils/form/getFormSubmissionValues'\nimport { withOptions } from '@/partner-hook-utils/form/withOptions'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport type {\n BaseFormHookReady,\n FieldsMetadata,\n HookLoadingResult,\n HookSubmitResult,\n} from '@/partner-hook-utils/types'\nimport { useBaseSubmit } from '@/components/Base/useBaseSubmit'\nimport { SDKInternalError } from '@/types/sdkError'\n\nconst PAYMENT_PERIOD_OPTIONS = [\n { value: PaymentPeriod.EveryWeek, label: PaymentPeriod.EveryWeek },\n { value: PaymentPeriod.EveryOtherWeek, label: PaymentPeriod.EveryOtherWeek },\n { value: PaymentPeriod.TwicePerMonth, label: PaymentPeriod.TwicePerMonth },\n { value: PaymentPeriod.Monthly, label: PaymentPeriod.Monthly },\n] as const\n\nconst PAYMENT_PERIOD_ENTRIES = [\n PaymentPeriod.EveryWeek,\n PaymentPeriod.EveryOtherWeek,\n PaymentPeriod.TwicePerMonth,\n PaymentPeriod.Monthly,\n] as const\n\n/**\n * Configuration options for {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Presence or absence of `garnishmentId` selects the API verb — see the\n * `garnishmentId` field description.\n *\n * @public\n */\nexport interface UseChildSupportGarnishmentFormProps {\n /** UUID of the employee whose child-support garnishment is being created or edited. */\n employeeId: string\n /**\n * When set, loads that garnishment and updates it (PUT). When omitted, the\n * form is in create mode (POST).\n */\n garnishmentId?: string\n /** Pre-fill form values. Server data takes precedence on update. */\n defaultValues?: Partial<ChildSupportGarnishmentFormData>\n /** Passed through to react-hook-form. Defaults to `'onSubmit'`. */\n validationMode?: UseFormProps['mode']\n /** Auto-focus the first invalid field on submit. Set to `false` when using `composeSubmitHandler` so submit-time focus is coordinated across multiple forms. Defaults to `true`. */\n shouldFocusError?: boolean\n}\n\n/**\n * Pre-bound field components exposed on `useChildSupportGarnishmentForm().form.Fields`.\n *\n * @remarks\n * Each property is either the field component or `undefined`. A field is\n * `undefined` when conditions for rendering it aren't met — see each member\n * for its visibility rule. Always null-check conditional fields (e.g.\n * `{Fields.FipsCode && <Fields.FipsCode ... />}`) before rendering.\n *\n * @public\n */\nexport interface ChildSupportGarnishmentFormFields {\n /** Agency (state) select. Always available. */\n State: typeof StateField\n /** Only available when the selected agency has more than one fips code, or the\n * sole code is county-scoped (not an \"all counties\" auto-pick). */\n FipsCode: typeof FipsCodeField | undefined\n /** Only available when the selected agency requires `case_number`. */\n CaseNumber: typeof CaseNumberField | undefined\n /** Only available when the selected agency requires `order_number`. */\n OrderNumber: typeof OrderNumberField | undefined\n /** Only available when the selected agency requires `remittance_number`. */\n RemittanceNumber: typeof RemittanceNumberField | undefined\n /** Per-pay-period currency cap input. Always available. */\n PayPeriodMaximum: typeof PayPeriodMaximumField\n /** Percent-of-paycheck input (0–100). Always available. */\n Amount: typeof AmountField\n /** Payment period select. Always available. */\n PaymentPeriod: typeof PaymentPeriodField\n}\n\n/**\n * Ready-state shape returned by {@link useChildSupportGarnishmentForm} once data has loaded.\n *\n * @remarks\n * Discriminated by `isLoading: false`. Extends {@link BaseFormHookReady} with\n * the child-support-specific `data`, `status`, `actions`, and `form.Fields`\n * shape. Static, entity-derived values live under `data.*`; reactive values\n * that flip with form input live under `status.*`.\n *\n * @public\n */\nexport interface UseChildSupportGarnishmentFormReady extends BaseFormHookReady<\n FieldsMetadata,\n ChildSupportGarnishmentFormData,\n ChildSupportGarnishmentFormFields\n> {\n /** Child-support-specific data payload: the available agencies, counties for the selected state, and the loaded garnishment for update mode. */\n data: {\n /** Agencies offered as `State` options; raw entries the consumer can use\n * with `getOptionLabel` for translated names. */\n agencies: StateFieldEntry[]\n /** Counties for the currently selected state. Empty array when no state\n * is selected. */\n counties: CountyEntry[]\n /** The garnishment loaded for update; `null` in create mode. */\n deduction: Garnishment | null\n }\n /** Submission state and reactive flags derived from current form input. */\n status: {\n /** `true` while a create or update mutation is in flight. */\n isPending: boolean\n /** Reflects whether the next submit will POST a new garnishment or PUT an existing one. */\n mode: 'create' | 'update'\n /** The agency record matching the currently selected `state`. */\n selectedAgency: Agencies | null\n /** Mirrors `selectedAgency.manualPaymentRequired`; convenient for showing\n * a warning alert. */\n isManualPaymentRequired: boolean\n /** Which `required_attributes` keys the selected agency declares. */\n requiredAttrKeys: ReadonlySet<SupportedRequiredAttrKey>\n }\n /** Submission action. */\n actions: {\n /** Submits the form. Returns the saved garnishment + mode on success, or `undefined` when validation fails or the request errored. */\n onSubmit: () => Promise<HookSubmitResult<Garnishment> | undefined>\n }\n}\n\n/**\n * Return value of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Discriminated union: {@link HookLoadingResult} while the agency catalog (and,\n * in update mode, the existing garnishment) is loading;\n * {@link UseChildSupportGarnishmentFormReady} once data is ready.\n *\n * @public\n */\nexport type UseChildSupportGarnishmentFormResult =\n | HookLoadingResult\n | UseChildSupportGarnishmentFormReady\n\n/**\n * Headless hook for creating or updating a child-support garnishment.\n *\n * @remarks\n * Unlike standard garnishments, child support requires agency-specific\n * attributes (case number, order number, remittance number) that vary by\n * state, plus an optional county selection when the state has multiple\n * counties. The hook loads the agency catalog from the Gusto API, derives\n * which attributes the selected state requires, and exposes the right Fields\n * conditionally.\n *\n * Presence or absence of `garnishmentId` selects the API verb: omit it to\n * POST a new garnishment, supply it to PUT updates against the existing row.\n * For non-child-support deductions (court-ordered garnishments and post-tax\n * custom), use {@link useDeductionForm} instead.\n *\n * @param input - See {@link UseChildSupportGarnishmentFormProps}.\n * @returns A {@link HookLoadingResult} while loading, or a {@link UseChildSupportGarnishmentFormReady} once ready.\n * @public\n *\n * @example\n * ```tsx\n * import { useChildSupportGarnishmentForm, SDKFormProvider } from '@gusto/embedded-react-sdk'\n *\n * function ChildSupportPage({ employeeId, garnishmentId }: { employeeId: string; garnishmentId?: string }) {\n * const form = useChildSupportGarnishmentForm({ employeeId, garnishmentId })\n *\n * if (form.isLoading) return <p>Loading…</p>\n *\n * const { Fields } = form.form\n *\n * return (\n * <SDKFormProvider formHookResult={form}>\n * <form\n * onSubmit={e => {\n * e.preventDefault()\n * void form.actions.onSubmit()\n * }}\n * >\n * <Fields.State\n * label=\"Agency\"\n * getOptionLabel={entry => entry.name}\n * validationMessages={{ REQUIRED: 'Required' }}\n * />\n * {Fields.CaseNumber && (\n * <Fields.CaseNumber label=\"Case number\" validationMessages={{ REQUIRED: 'Required' }} />\n * )}\n * <Fields.Amount\n * label=\"Percentage of paycheck\"\n * validationMessages={{\n * REQUIRED: 'Required',\n * PERCENT_OUT_OF_RANGE: 'Must be between 0 and 100',\n * }}\n * />\n * <button type=\"submit\">Save</button>\n * </form>\n * </SDKFormProvider>\n * )\n * }\n * ```\n */\nexport function useChildSupportGarnishmentForm({\n employeeId,\n garnishmentId,\n defaultValues: partnerDefaults,\n validationMode = 'onSubmit',\n shouldFocusError = true,\n}: UseChildSupportGarnishmentFormProps): UseChildSupportGarnishmentFormResult {\n const isCreateMode = !garnishmentId\n const schemaMode = isCreateMode ? 'create' : 'update'\n\n // Agencies + their required-attributes / fips codes come from a single GET.\n const agencyDataQuery = useGarnishmentsGetChildSupportData({})\n const agencyList = useMemo(\n () => agencyDataQuery.data?.childSupportData?.agencies ?? [],\n [agencyDataQuery.data],\n )\n\n // Update mode reads the row from the list endpoint (the garnishments API\n // has no single-row GET).\n const garnishmentsListQuery = useGarnishmentsList({ employeeId }, { enabled: !isCreateMode })\n const fetchedDeduction = useMemo(() => {\n if (isCreateMode) return null\n return garnishmentsListQuery.data?.garnishments?.find(g => g.uuid === garnishmentId) ?? null\n }, [isCreateMode, garnishmentId, garnishmentsListQuery.data])\n\n const resolvedDefaults: ChildSupportGarnishmentFormData = useMemo(\n () => ({\n state: fetchedDeduction?.childSupport?.state ?? partnerDefaults?.state ?? '',\n fipsCode: fetchedDeduction?.childSupport?.fipsCode ?? partnerDefaults?.fipsCode ?? '',\n caseNumber: fetchedDeduction?.childSupport?.caseNumber ?? partnerDefaults?.caseNumber ?? '',\n orderNumber:\n fetchedDeduction?.childSupport?.orderNumber ?? partnerDefaults?.orderNumber ?? '',\n remittanceNumber:\n fetchedDeduction?.childSupport?.remittanceNumber ?? partnerDefaults?.remittanceNumber ?? '',\n amount: fetchedDeduction?.amount\n ? Number(fetchedDeduction.amount)\n : (partnerDefaults?.amount ?? 0),\n payPeriodMaximum: fetchedDeduction?.payPeriodMaximum\n ? Number(fetchedDeduction.payPeriodMaximum)\n : (partnerDefaults?.payPeriodMaximum ?? 0),\n paymentPeriod:\n (fetchedDeduction?.childSupport?.paymentPeriod as PaymentPeriod | undefined) ??\n partnerDefaults?.paymentPeriod ??\n PaymentPeriod.Monthly,\n }),\n [fetchedDeduction, partnerDefaults],\n )\n\n // Pass the full agency list so requiredness for the agency-attribute fields\n // (`caseNumber`, `orderNumber`, `remittanceNumber`) is derived dynamically\n // from the form's `state` value. The schema doesn't need to rebuild when the\n // user changes states — the predicate runs at validation time and via\n // `useDeriveFieldsMetadata` for the (optional) label.\n const [schema, metadataConfig] = useMemo(\n () => createChildSupportGarnishmentFormSchema({ mode: schemaMode, agencyList }),\n [schemaMode, agencyList],\n )\n\n const formMethods = useForm<\n ChildSupportGarnishmentFormData,\n unknown,\n ChildSupportGarnishmentFormOutputs\n >({\n resolver: zodResolver(schema),\n mode: validationMode,\n shouldFocusError,\n defaultValues: resolvedDefaults,\n values: resolvedDefaults,\n resetOptions: { keepDirtyValues: true },\n })\n\n const liveWatchedState = useWatch({ control: formMethods.control, name: 'state' })\n const liveSelectedAgency = useMemo(\n () => agencyList.find(a => a.state === liveWatchedState) ?? null,\n [agencyList, liveWatchedState],\n )\n\n // The agency-attribute fields stay in sync with the chosen state: when the\n // user switches states, the previous attribute values would otherwise carry\n // over and potentially submit alongside the wrong agency. The ref tracks\n // the previous value so the wipe only fires on user-driven transitions —\n // NOT on the initial sync when an existing garnishment loads (state moves\n // from '' to e.g. 'AK' as a side effect of `values` updating, which would\n // otherwise clobber the loaded case/order/remittance values).\n const previousWatchedStateRef = useRef<string | null>(null)\n useEffect(() => {\n const previous = previousWatchedStateRef.current\n previousWatchedStateRef.current = liveWatchedState\n // First render (no previous value) → skip the wipe.\n if (previous === null) return\n // Server-side load: previous was '' (initial defaults before the row\n // arrived), now it's the loaded state. That's a sync, not a user toggle.\n if (previous === '') return\n if (previous === liveWatchedState) return\n formMethods.setValue('caseNumber', '')\n formMethods.setValue('orderNumber', '')\n formMethods.setValue('remittanceNumber', '')\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [liveWatchedState])\n\n // When the selected agency has a single \"all counties\" fips code, auto-fill\n // the field so the consumer doesn't have to render the county select.\n const fipsCodes = liveSelectedAgency?.fipsCodes ?? []\n const singleAllCountiesFipsCode =\n fipsCodes.length === 1 && !fipsCodes[0]?.county?.length ? (fipsCodes[0]?.code ?? null) : null\n useEffect(() => {\n if (singleAllCountiesFipsCode) {\n formMethods.setValue('fipsCode', singleAllCountiesFipsCode)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [singleAllCountiesFipsCode])\n\n const createGarnishmentMutation = useGarnishmentsCreateMutation()\n const updateGarnishmentMutation = useGarnishmentsUpdateMutation()\n const isPending = createGarnishmentMutation.isPending || updateGarnishmentMutation.isPending\n\n const {\n baseSubmitHandler,\n error: submitError,\n setError: setSubmitError,\n } = useBaseSubmit('ChildSupportGarnishmentForm')\n\n const errorHandling = composeErrorHandler(\n isCreateMode ? [agencyDataQuery] : [agencyDataQuery, garnishmentsListQuery],\n { submitError, setSubmitError },\n )\n\n // ── Derived data exposed on the ready branch ─────────────────────────\n\n const agencies: StateFieldEntry[] = useMemo(\n () =>\n agencyList.map(a => ({\n state: a.state ?? '',\n name: a.name ?? a.state ?? '',\n manualPaymentRequired: a.manualPaymentRequired ?? false,\n })),\n [agencyList],\n )\n\n const counties: CountyEntry[] = useMemo(\n () =>\n (liveSelectedAgency?.fipsCodes ?? [])\n .filter(f => typeof f.code === 'string')\n .map(f => ({ fipsCode: f.code as string, county: f.county ?? null })),\n [liveSelectedAgency],\n )\n\n const requiredAttrKeys = useMemo(\n () => getRequiredAttrKeys(liveSelectedAgency),\n [liveSelectedAgency],\n )\n\n const hasSelectableCounties =\n counties.length > 1 || (counties.length === 1 && singleAllCountiesFipsCode == null)\n\n // ── Metadata + field-options wiring ─────────────────────────────────\n\n const baseMetadata = useDeriveFieldsMetadata(metadataConfig, formMethods.control)\n const stateOptions = agencies.map(a => ({ value: a.state, label: a.name }))\n const countyOptions = counties.map(c => ({\n value: c.fipsCode,\n label: c.county ?? c.fipsCode,\n }))\n\n const fieldsMetadata = {\n state: withOptions(baseMetadata.state, stateOptions, agencies),\n fipsCode: withOptions(baseMetadata.fipsCode, countyOptions, counties),\n caseNumber: baseMetadata.caseNumber,\n orderNumber: baseMetadata.orderNumber,\n remittanceNumber: baseMetadata.remittanceNumber,\n payPeriodMaximum: baseMetadata.payPeriodMaximum,\n amount: baseMetadata.amount,\n paymentPeriod: withOptions(\n baseMetadata.paymentPeriod,\n [...PAYMENT_PERIOD_OPTIONS],\n [...PAYMENT_PERIOD_ENTRIES],\n ),\n }\n\n // ── Submit ───────────────────────────────────────────────────────────\n\n const onSubmit = async (): Promise<HookSubmitResult<Garnishment> | undefined> => {\n let submitResult: HookSubmitResult<Garnishment> | undefined\n\n await new Promise<void>(resolve => {\n void formMethods.handleSubmit(\n async (data: ChildSupportGarnishmentFormOutputs) => {\n await baseSubmitHandler(data, async payload => {\n const childSupport = {\n state: payload.state,\n paymentPeriod: payload.paymentPeriod,\n fipsCode: payload.fipsCode,\n // Empty strings collapse to null so the API persists \"no value\n // declared\" rather than an empty case number.\n caseNumber: payload.caseNumber || null,\n orderNumber: payload.orderNumber || null,\n remittanceNumber: payload.remittanceNumber || null,\n }\n\n const description = `Child Support - ${childSupport.caseNumber ?? ''}`\n const amountStr = String(payload.amount)\n const payPeriodMaximumStr =\n payload.payPeriodMaximum > 0 ? String(payload.payPeriodMaximum) : null\n\n const requestBody = {\n active: true,\n amount: amountStr,\n description,\n courtOrdered: true,\n garnishmentType: 'child_support' as GarnishmentType,\n times: null,\n deductAsPercentage: true,\n payPeriodMaximum: payPeriodMaximumStr,\n recurring: true,\n childSupport,\n }\n\n let updated: Garnishment | undefined\n\n if (isCreateMode) {\n const result = await createGarnishmentMutation.mutateAsync({\n request: { employeeId, garnishmentRequest: requestBody },\n })\n updated = result.garnishment\n } else {\n if (!fetchedDeduction) {\n throw new SDKInternalError(\n 'Cannot update child-support deduction: no matching garnishment on file',\n )\n }\n const result = await updateGarnishmentMutation.mutateAsync({\n request: {\n garnishmentId: fetchedDeduction.uuid,\n updateGarnishmentRequest: {\n ...requestBody,\n version: fetchedDeduction.version as string,\n },\n },\n })\n updated = result.garnishment\n }\n\n if (!updated) {\n throw new SDKInternalError(\n isCreateMode\n ? 'Child-support deduction creation failed'\n : 'Child-support deduction update failed',\n )\n }\n\n submitResult = {\n mode: isCreateMode ? 'create' : 'update',\n data: updated,\n }\n })\n resolve()\n },\n () => {\n resolve()\n },\n )()\n })\n\n return submitResult\n }\n\n const hookFormInternals = useHookFormInternals(formMethods)\n\n if (agencyDataQuery.isLoading) {\n return { isLoading: true as const, errorHandling }\n }\n if (!isCreateMode && garnishmentsListQuery.isLoading) {\n return { isLoading: true as const, errorHandling }\n }\n\n return {\n isLoading: false as const,\n data: {\n agencies,\n counties,\n deduction: fetchedDeduction,\n },\n status: {\n isPending,\n mode: isCreateMode ? 'create' : 'update',\n selectedAgency: liveSelectedAgency,\n isManualPaymentRequired: liveSelectedAgency?.manualPaymentRequired ?? false,\n requiredAttrKeys,\n },\n actions: { onSubmit },\n errorHandling,\n form: {\n Fields: {\n State: StateField,\n FipsCode: hasSelectableCounties ? FipsCodeField : undefined,\n CaseNumber: requiredAttrKeys.has('case_number') ? CaseNumberField : undefined,\n OrderNumber: requiredAttrKeys.has('order_number') ? OrderNumberField : undefined,\n RemittanceNumber: requiredAttrKeys.has('remittance_number')\n ? RemittanceNumberField\n : undefined,\n PayPeriodMaximum: PayPeriodMaximumField,\n Amount: AmountField,\n PaymentPeriod: PaymentPeriodField,\n },\n fieldsMetadata,\n hookFormInternals,\n getFormSubmissionValues: createGetFormSubmissionValues(formMethods, schema),\n },\n }\n}\n\n/**\n * Per-field metadata returned by {@link useChildSupportGarnishmentForm} as `form.fieldsMetadata`.\n *\n * @remarks\n * Carries per-field `isRequired`, `isDisabled`, label, description, and option\n * entries derived from the schema and form state. Use these to drive UI such\n * as disabled state or option lists when not relying on the pre-bound\n * {@link ChildSupportGarnishmentFormFields} components.\n *\n * @public\n */\nexport type ChildSupportGarnishmentFormFieldsMetadata =\n UseChildSupportGarnishmentFormReady['form']['fieldsMetadata']\n"],"names":["PAYMENT_PERIOD_OPTIONS","PaymentPeriod","PAYMENT_PERIOD_ENTRIES","useChildSupportGarnishmentForm","employeeId","garnishmentId","partnerDefaults","validationMode","shouldFocusError","isCreateMode","schemaMode","agencyDataQuery","useGarnishmentsGetChildSupportData","agencyList","useMemo","garnishmentsListQuery","useGarnishmentsList","fetchedDeduction","g","resolvedDefaults","schema","metadataConfig","createChildSupportGarnishmentFormSchema","formMethods","useForm","zodResolver","liveWatchedState","useWatch","liveSelectedAgency","a","previousWatchedStateRef","useRef","useEffect","previous","fipsCodes","singleAllCountiesFipsCode","createGarnishmentMutation","useGarnishmentsCreateMutation","updateGarnishmentMutation","useGarnishmentsUpdateMutation","isPending","baseSubmitHandler","submitError","setSubmitError","useBaseSubmit","errorHandling","composeErrorHandler","agencies","counties","f","requiredAttrKeys","getRequiredAttrKeys","hasSelectableCounties","baseMetadata","useDeriveFieldsMetadata","stateOptions","countyOptions","c","fieldsMetadata","withOptions","onSubmit","submitResult","resolve","data","payload","childSupport","description","amountStr","payPeriodMaximumStr","requestBody","updated","SDKInternalError","hookFormInternals","useHookFormInternals","StateField","FipsCodeField","CaseNumberField","OrderNumberField","RemittanceNumberField","PayPeriodMaximumField","AmountField","PaymentPeriodField","createGetFormSubmissionValues"],"mappings":";;;;;;;;;;;;;;;;;AA+CA,MAAMA,KAAyB;AAAA,EAC7B,EAAE,OAAOC,EAAc,WAAW,OAAOA,EAAc,UAAA;AAAA,EACvD,EAAE,OAAOA,EAAc,gBAAgB,OAAOA,EAAc,eAAA;AAAA,EAC5D,EAAE,OAAOA,EAAc,eAAe,OAAOA,EAAc,cAAA;AAAA,EAC3D,EAAE,OAAOA,EAAc,SAAS,OAAOA,EAAc,QAAA;AACvD,GAEMC,KAAyB;AAAA,EAC7BD,EAAc;AAAA,EACdA,EAAc;AAAA,EACdA,EAAc;AAAA,EACdA,EAAc;AAChB;AAqLO,SAASE,GAA+B;AAA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AAaH,CAAM;AAAA,IAAA;AAAA,EAC5E;AAEJ;"}
@@ -1,9 +1,20 @@
1
1
  import { z } from 'zod';
2
2
  import { OptionalFieldsToRequire } from '../../../../../partner-hook-utils/form/buildFormSchema';
3
+ /**
4
+ * Validation error codes emitted by the deduction form schema. Map these
5
+ * codes to localized copy in `validationMessages` when composing the hook.
6
+ *
7
+ * @public
8
+ */
3
9
  export declare const DeductionFormErrorCodes: {
4
10
  readonly REQUIRED: "REQUIRED";
5
11
  readonly NEGATIVE_AMOUNT: "NEGATIVE_AMOUNT";
6
12
  };
13
+ /**
14
+ * Union of validation error code strings emitted by the deduction form schema.
15
+ *
16
+ * @public
17
+ */
7
18
  export type DeductionFormErrorCode = (typeof DeductionFormErrorCodes)[keyof typeof DeductionFormErrorCodes];
8
19
  declare const fieldValidators: {
9
20
  description: z.ZodString;
@@ -22,16 +33,32 @@ declare const fieldValidators: {
22
33
  readonly OtherGarnishment: "other_garnishment";
23
34
  }>;
24
35
  };
25
- export type DeductionFormField = keyof typeof fieldValidators;
36
+ /**
37
+ * Shape of the values managed by the deduction form.
38
+ *
39
+ * @public
40
+ */
26
41
  export type DeductionFormData = {
27
42
  [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>;
28
43
  };
44
+ /**
45
+ * Shape of the validated values produced by the deduction form on submit.
46
+ *
47
+ * @public
48
+ */
29
49
  export type DeductionFormOutputs = DeductionFormData;
30
50
  declare const requiredFieldsConfig: {
31
51
  totalAmount: "never";
32
52
  annualMaximum: "never";
33
53
  };
54
+ /**
55
+ * Keys of optional deduction fields that can be promoted to required via the
56
+ * hook's `optionalFieldsToRequire` option.
57
+ *
58
+ * @public
59
+ */
34
60
  export type DeductionFormOptionalFieldsToRequire = OptionalFieldsToRequire<typeof requiredFieldsConfig>;
61
+ /** @internal */
35
62
  interface DeductionFormSchemaOptions {
36
63
  mode?: 'create' | 'update';
37
64
  /**
@@ -43,6 +70,7 @@ interface DeductionFormSchemaOptions {
43
70
  courtOrdered: boolean;
44
71
  optionalFieldsToRequire?: DeductionFormOptionalFieldsToRequire;
45
72
  }
73
+ /** @internal */
46
74
  export declare function createDeductionFormSchema(options: DeductionFormSchemaOptions): import('../../../../../partner-hook-utils/form/buildFormSchema').BuildFormSchemaResult<{
47
75
  description: z.ZodString;
48
76
  recurring: z.ZodPipe<z.ZodTransform<boolean | undefined, unknown>, z.ZodBoolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"deductionFormSchema.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport { GarnishmentType } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n type OptionalFieldsToRequire,\n} from '@/partner-hook-utils/form/buildFormSchema'\nimport { coerceNaN, coerceStringBoolean } from '@/partner-hook-utils/form/preprocessors'\n\n// ── Error codes ────────────────────────────────────────────────────────\n\nexport const DeductionFormErrorCodes = {\n REQUIRED: 'REQUIRED',\n NEGATIVE_AMOUNT: 'NEGATIVE_AMOUNT',\n} as const\n\nexport type DeductionFormErrorCode =\n (typeof DeductionFormErrorCodes)[keyof typeof DeductionFormErrorCodes]\n\n// ── Field validators ───────────────────────────────────────────────────\n\nconst fieldValidators = {\n description: z.string(),\n // Radio groups deliver `'true'`/`'false'` strings; coerce to boolean for the\n // submit payload. Matches the useJobForm pattern.\n recurring: z.preprocess(coerceStringBoolean, z.boolean()),\n deductAsPercentage: z.preprocess(coerceStringBoolean, z.boolean()),\n // Currency / percent input. NumberInputField writes `number | undefined`;\n // coerce to a numeric so .min(0) runs reliably. The number-to-string\n // conversion the garnishment API expects happens inside the hook's onSubmit,\n // so the form value stays a number end-to-end (input === output).\n amount: z.preprocess(\n coerceNaN(0),\n z.number().min(0, { message: DeductionFormErrorCodes.NEGATIVE_AMOUNT }),\n ),\n // Optional caps. The hook drops them to `null` on the wire when 0 — matches\n // the legacy DeductionSchema's \"0 means no cap\" behavior.\n totalAmount: z.preprocess(\n coerceNaN(0),\n z.number().min(0, { message: DeductionFormErrorCodes.NEGATIVE_AMOUNT }),\n ),\n annualMaximum: z.preprocess(\n coerceNaN(0),\n z.number().min(0, { message: DeductionFormErrorCodes.NEGATIVE_AMOUNT }),\n ),\n // Only used when `courtOrdered: true` — see `excludeFields` below.\n garnishmentType: z.enum(GarnishmentType),\n}\n\nexport type DeductionFormField = keyof typeof fieldValidators\n\nexport type DeductionFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\nexport type DeductionFormOutputs = DeductionFormData\n\n// ── Required fields config ─────────────────────────────────────────────\n//\n// `description`, `recurring`, `deductAsPercentage`, `amount` are required by\n// default. `garnishmentType` is required only when present in the shape\n// (court-ordered branch). `totalAmount` and `annualMaximum` are caps the\n// partner can leave blank.\n\nconst requiredFieldsConfig = {\n totalAmount: 'never',\n annualMaximum: 'never',\n} satisfies RequiredFieldConfig<typeof fieldValidators>\n\nexport type DeductionFormOptionalFieldsToRequire = OptionalFieldsToRequire<\n typeof requiredFieldsConfig\n>\n\ninterface DeductionFormSchemaOptions {\n mode?: 'create' | 'update'\n /**\n * Court-ordered garnishments require `garnishmentType` (Federal Tax Lien,\n * Student Loan, etc.). Non-court-ordered \"custom\" deductions don't carry a\n * type — the field is excluded from the schema entirely, matching the legacy\n * GarnishmentForm vs CustomDeductionForm split.\n */\n courtOrdered: boolean\n optionalFieldsToRequire?: DeductionFormOptionalFieldsToRequire\n}\n\nexport function createDeductionFormSchema(options: DeductionFormSchemaOptions) {\n const { mode = 'create', courtOrdered, optionalFieldsToRequire } = options\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: DeductionFormErrorCodes.REQUIRED,\n mode,\n optionalFieldsToRequire,\n excludeFields: courtOrdered ? [] : ['garnishmentType'],\n })\n}\n"],"names":["DeductionFormErrorCodes","fieldValidators","z","coerceStringBoolean","coerceNaN","GarnishmentType","requiredFieldsConfig","createDeductionFormSchema","options","mode","courtOrdered","optionalFieldsToRequire","buildFormSchema"],"mappings":";;;;AAWO,MAAMA,IAA0B;AAAA,EACrC,UAAU;AAAA,EACV,iBAAiB;AACnB,GAOMC,IAAkB;AAAA,EACtB,aAAaC,EAAE,OAAA;AAAA;AAAA;AAAA,EAGf,WAAWA,EAAE,WAAWC,GAAqBD,EAAE,SAAS;AAAA,EACxD,oBAAoBA,EAAE,WAAWC,GAAqBD,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKjE,QAAQA,EAAE;AAAA,IACRE,EAAU,CAAC;AAAA,IACXF,EAAE,SAAS,IAAI,GAAG,EAAE,SAASF,EAAwB,gBAAA,CAAiB;AAAA,EAAA;AAAA;AAAA;AAAA,EAIxE,aAAaE,EAAE;AAAA,IACbE,EAAU,CAAC;AAAA,IACXF,EAAE,SAAS,IAAI,GAAG,EAAE,SAASF,EAAwB,gBAAA,CAAiB;AAAA,EAAA;AAAA,EAExE,eAAeE,EAAE;AAAA,IACfE,EAAU,CAAC;AAAA,IACXF,EAAE,SAAS,IAAI,GAAG,EAAE,SAASF,EAAwB,gBAAA,CAAiB;AAAA,EAAA;AAAA;AAAA,EAGxE,iBAAiBE,EAAE,KAAKG,CAAe;AACzC,GAiBMC,IAAuB;AAAA,EAC3B,aAAa;AAAA,EACb,eAAe;AACjB;AAkBO,SAASC,EAA0BC,GAAqC;AAC7E,QAAM,EAAE,MAAAC,IAAO,UAAU,cAAAC,GAAc,yBAAAC,MAA4BH;AAEnE,SAAOI,EAAgBX,GAAiB;AAAA,IACtC,sBAAAK;AAAA,IACA,mBAAmBN,EAAwB;AAAA,IAC3C,MAAAS;AAAA,IACA,yBAAAE;AAAA,IACA,eAAeD,IAAe,CAAA,IAAK,CAAC,iBAAiB;AAAA,EAAA,CACtD;AACH;"}
1
+ {"version":3,"file":"deductionFormSchema.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport { GarnishmentType } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n type OptionalFieldsToRequire,\n} from '@/partner-hook-utils/form/buildFormSchema'\nimport { coerceNaN, coerceStringBoolean } from '@/partner-hook-utils/form/preprocessors'\n\n// ── Error codes ────────────────────────────────────────────────────────\n\n/**\n * Validation error codes emitted by the deduction form schema. Map these\n * codes to localized copy in `validationMessages` when composing the hook.\n *\n * @public\n */\nexport const DeductionFormErrorCodes = {\n REQUIRED: 'REQUIRED',\n NEGATIVE_AMOUNT: 'NEGATIVE_AMOUNT',\n} as const\n\n/**\n * Union of validation error code strings emitted by the deduction form schema.\n *\n * @public\n */\nexport type DeductionFormErrorCode =\n (typeof DeductionFormErrorCodes)[keyof typeof DeductionFormErrorCodes]\n\n// ── Field validators ───────────────────────────────────────────────────\n\nconst fieldValidators = {\n description: z.string(),\n // Radio groups deliver `'true'`/`'false'` strings; coerce to boolean for the\n // submit payload. Matches the useJobForm pattern.\n recurring: z.preprocess(coerceStringBoolean, z.boolean()),\n deductAsPercentage: z.preprocess(coerceStringBoolean, z.boolean()),\n // Currency / percent input. NumberInputField writes `number | undefined`;\n // coerce to a numeric so .min(0) runs reliably. The number-to-string\n // conversion the garnishment API expects happens inside the hook's onSubmit,\n // so the form value stays a number end-to-end (input === output).\n amount: z.preprocess(\n coerceNaN(0),\n z.number().min(0, { message: DeductionFormErrorCodes.NEGATIVE_AMOUNT }),\n ),\n // Optional caps. The hook drops them to `null` on the wire when 0 — matches\n // the legacy DeductionSchema's \"0 means no cap\" behavior.\n totalAmount: z.preprocess(\n coerceNaN(0),\n z.number().min(0, { message: DeductionFormErrorCodes.NEGATIVE_AMOUNT }),\n ),\n annualMaximum: z.preprocess(\n coerceNaN(0),\n z.number().min(0, { message: DeductionFormErrorCodes.NEGATIVE_AMOUNT }),\n ),\n // Only used when `courtOrdered: true` — see `excludeFields` below.\n garnishmentType: z.enum(GarnishmentType),\n}\n\n/**\n * Shape of the values managed by the deduction form.\n *\n * @public\n */\nexport type DeductionFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\n/**\n * Shape of the validated values produced by the deduction form on submit.\n *\n * @public\n */\nexport type DeductionFormOutputs = DeductionFormData\n\n// ── Required fields config ─────────────────────────────────────────────\n//\n// `description`, `recurring`, `deductAsPercentage`, `amount` are required by\n// default. `garnishmentType` is required only when present in the shape\n// (court-ordered branch). `totalAmount` and `annualMaximum` are caps the\n// partner can leave blank.\n\nconst requiredFieldsConfig = {\n totalAmount: 'never',\n annualMaximum: 'never',\n} satisfies RequiredFieldConfig<typeof fieldValidators>\n\n/**\n * Keys of optional deduction fields that can be promoted to required via the\n * hook's `optionalFieldsToRequire` option.\n *\n * @public\n */\nexport type DeductionFormOptionalFieldsToRequire = OptionalFieldsToRequire<\n typeof requiredFieldsConfig\n>\n\n/** @internal */\ninterface DeductionFormSchemaOptions {\n mode?: 'create' | 'update'\n /**\n * Court-ordered garnishments require `garnishmentType` (Federal Tax Lien,\n * Student Loan, etc.). Non-court-ordered \"custom\" deductions don't carry a\n * type — the field is excluded from the schema entirely, matching the legacy\n * GarnishmentForm vs CustomDeductionForm split.\n */\n courtOrdered: boolean\n optionalFieldsToRequire?: DeductionFormOptionalFieldsToRequire\n}\n\n/** @internal */\nexport function createDeductionFormSchema(options: DeductionFormSchemaOptions) {\n const { mode = 'create', courtOrdered, optionalFieldsToRequire } = options\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: DeductionFormErrorCodes.REQUIRED,\n mode,\n optionalFieldsToRequire,\n excludeFields: courtOrdered ? [] : ['garnishmentType'],\n })\n}\n"],"names":["DeductionFormErrorCodes","fieldValidators","z","coerceStringBoolean","coerceNaN","GarnishmentType","requiredFieldsConfig","createDeductionFormSchema","options","mode","courtOrdered","optionalFieldsToRequire","buildFormSchema"],"mappings":";;;;AAiBO,MAAMA,IAA0B;AAAA,EACrC,UAAU;AAAA,EACV,iBAAiB;AACnB,GAYMC,IAAkB;AAAA,EACtB,aAAaC,EAAE,OAAA;AAAA;AAAA;AAAA,EAGf,WAAWA,EAAE,WAAWC,GAAqBD,EAAE,SAAS;AAAA,EACxD,oBAAoBA,EAAE,WAAWC,GAAqBD,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKjE,QAAQA,EAAE;AAAA,IACRE,EAAU,CAAC;AAAA,IACXF,EAAE,SAAS,IAAI,GAAG,EAAE,SAASF,EAAwB,gBAAA,CAAiB;AAAA,EAAA;AAAA;AAAA;AAAA,EAIxE,aAAaE,EAAE;AAAA,IACbE,EAAU,CAAC;AAAA,IACXF,EAAE,SAAS,IAAI,GAAG,EAAE,SAASF,EAAwB,gBAAA,CAAiB;AAAA,EAAA;AAAA,EAExE,eAAeE,EAAE;AAAA,IACfE,EAAU,CAAC;AAAA,IACXF,EAAE,SAAS,IAAI,GAAG,EAAE,SAASF,EAAwB,gBAAA,CAAiB;AAAA,EAAA;AAAA;AAAA,EAGxE,iBAAiBE,EAAE,KAAKG,CAAe;AACzC,GAyBMC,IAAuB;AAAA,EAC3B,aAAa;AAAA,EACb,eAAe;AACjB;AA0BO,SAASC,EAA0BC,GAAqC;AAC7E,QAAM,EAAE,MAAAC,IAAO,UAAU,cAAAC,GAAc,yBAAAC,MAA4BH;AAEnE,SAAOI,EAAgBX,GAAiB;AAAA,IACtC,sBAAAK;AAAA,IACA,mBAAmBN,EAAwB;AAAA,IAC3C,MAAAS;AAAA,IACA,yBAAAE;AAAA,IACA,eAAeD,IAAe,CAAA,IAAK,CAAC,iBAAiB;AAAA,EAAA,CACtD;AACH;"}
@@ -5,21 +5,179 @@ import { NumberInputHookFieldProps } from '../../../../../partner-hook-utils/for
5
5
  import { RadioGroupHookFieldProps } from '../../../../../partner-hook-utils/form/fields/RadioGroupHookField';
6
6
  import { SelectHookFieldProps } from '../../../../../partner-hook-utils/form/fields/SelectHookField';
7
7
  import { HookFieldProps } from '../../../../../partner-hook-utils/types';
8
+ /**
9
+ * The required-field error code produced by {@link useDeductionForm} fields that only emit `REQUIRED`.
10
+ *
11
+ * @remarks
12
+ * Used as the `validationMessages` key for the description, recurring,
13
+ * deduct-as-percentage, and garnishment-type fields. See
14
+ * {@link DeductionFormErrorCodes}.
15
+ *
16
+ * @public
17
+ */
8
18
  export type RequiredValidation = typeof DeductionFormErrorCodes.REQUIRED;
19
+ /**
20
+ * The negative-amount error code produced by {@link useDeductionForm}'s currency fields.
21
+ *
22
+ * @remarks
23
+ * Used as a `validationMessages` key on `Fields.Amount`, `Fields.TotalAmount`,
24
+ * and `Fields.AnnualMaximum`. See {@link DeductionFormErrorCodes}.
25
+ *
26
+ * @public
27
+ */
9
28
  export type NegativeAmountValidation = typeof DeductionFormErrorCodes.NEGATIVE_AMOUNT;
29
+ /**
30
+ * Validation error codes emitted by the `amount` field of {@link useDeductionForm}.
31
+ *
32
+ * @remarks
33
+ * Use these as keys in `validationMessages` on `Fields.Amount`. See
34
+ * {@link DeductionFormErrorCodes} for the full description of each code.
35
+ *
36
+ * @public
37
+ */
10
38
  export type AmountValidation = RequiredValidation | NegativeAmountValidation;
39
+ /**
40
+ * Validation error codes emitted by the cap fields of {@link useDeductionForm} (`totalAmount`, `annualMaximum`).
41
+ *
42
+ * @remarks
43
+ * Use these as keys in `validationMessages` on `Fields.TotalAmount` and
44
+ * `Fields.AnnualMaximum`. See {@link DeductionFormErrorCodes} for the full
45
+ * description of each code.
46
+ *
47
+ * @public
48
+ */
11
49
  export type CapValidation = NegativeAmountValidation;
50
+ /**
51
+ * Props accepted by {@link useDeductionForm}'s `Fields.Description` component.
52
+ *
53
+ * @public
54
+ */
12
55
  export type DescriptionFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>;
56
+ /**
57
+ * Text input bound to the `description` field of {@link useDeductionForm}.
58
+ *
59
+ * @remarks
60
+ * Available on the hook result as `form.Fields.Description`. Always rendered.
61
+ *
62
+ * @param props - {@link DescriptionFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
63
+ * @returns The rendered text input bound to `description`.
64
+ * @public
65
+ */
13
66
  export declare function DescriptionField(props: DescriptionFieldProps): import("react").JSX.Element;
67
+ /**
68
+ * Props accepted by {@link useDeductionForm}'s `Fields.Recurring` component.
69
+ *
70
+ * @public
71
+ */
14
72
  export type RecurringFieldProps = HookFieldProps<RadioGroupHookFieldProps<RequiredValidation, boolean>>;
73
+ /**
74
+ * Radio group bound to the `recurring` field of {@link useDeductionForm}.
75
+ *
76
+ * @remarks
77
+ * Available on the hook result as `form.Fields.Recurring`. Always rendered.
78
+ * Picks between a recurring deduction (taken every paycheck) and a one-time
79
+ * deduction. The cap fields (`Fields.TotalAmount` and `Fields.AnnualMaximum`)
80
+ * are exposed only when this is set to recurring.
81
+ *
82
+ * @param props - {@link RecurringFieldProps} — accepts the standard hook field props plus `getOptionLabel` for boolean display.
83
+ * @returns The rendered radio group bound to `recurring`.
84
+ * @public
85
+ */
15
86
  export declare function RecurringField(props: RecurringFieldProps): import("react").JSX.Element;
87
+ /**
88
+ * Props accepted by {@link useDeductionForm}'s `Fields.DeductAsPercentage` component.
89
+ *
90
+ * @public
91
+ */
16
92
  export type DeductAsPercentageFieldProps = HookFieldProps<RadioGroupHookFieldProps<RequiredValidation, boolean>>;
93
+ /**
94
+ * Radio group bound to the `deductAsPercentage` field of {@link useDeductionForm}.
95
+ *
96
+ * @remarks
97
+ * Available on the hook result as `form.Fields.DeductAsPercentage`. Always
98
+ * rendered. Toggles how `Fields.Amount` is interpreted — as a fixed currency
99
+ * amount when `false`, or as a percentage of paycheck when `true`.
100
+ *
101
+ * @param props - {@link DeductAsPercentageFieldProps} — accepts the standard hook field props plus `getOptionLabel` for boolean display.
102
+ * @returns The rendered radio group bound to `deductAsPercentage`.
103
+ * @public
104
+ */
17
105
  export declare function DeductAsPercentageField(props: DeductAsPercentageFieldProps): import("react").JSX.Element;
106
+ /**
107
+ * Props accepted by {@link useDeductionForm}'s `Fields.Amount` component.
108
+ *
109
+ * @public
110
+ */
18
111
  export type AmountFieldProps = HookFieldProps<NumberInputHookFieldProps<AmountValidation>>;
112
+ /**
113
+ * Number input bound to the `amount` field of {@link useDeductionForm}.
114
+ *
115
+ * @remarks
116
+ * Available on the hook result as `form.Fields.Amount`. Always rendered.
117
+ * Interpreted as a currency amount when `Fields.DeductAsPercentage` is set to
118
+ * a fixed amount, or as a percentage of paycheck when it's set to percentage.
119
+ *
120
+ * @param props - {@link AmountFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
121
+ * @returns The rendered number input bound to `amount`.
122
+ * @public
123
+ */
19
124
  export declare function AmountField(props: AmountFieldProps): import("react").JSX.Element;
125
+ /**
126
+ * Props accepted by {@link useDeductionForm}'s `Fields.TotalAmount` component.
127
+ *
128
+ * @public
129
+ */
20
130
  export type TotalAmountFieldProps = HookFieldProps<NumberInputHookFieldProps<CapValidation>>;
131
+ /**
132
+ * Number input bound to the `totalAmount` field of {@link useDeductionForm}.
133
+ *
134
+ * @remarks
135
+ * Available on the hook result as `form.Fields.TotalAmount` only when
136
+ * `status.isRecurring` is `true`. A zero value means "no cap" — the hook
137
+ * drops it on the wire. Always null-check before rendering.
138
+ *
139
+ * @param props - {@link TotalAmountFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
140
+ * @returns The rendered number input bound to `totalAmount`.
141
+ * @public
142
+ */
21
143
  export declare function TotalAmountField(props: TotalAmountFieldProps): import("react").JSX.Element;
144
+ /**
145
+ * Props accepted by {@link useDeductionForm}'s `Fields.AnnualMaximum` component.
146
+ *
147
+ * @public
148
+ */
22
149
  export type AnnualMaximumFieldProps = HookFieldProps<NumberInputHookFieldProps<CapValidation>>;
150
+ /**
151
+ * Number input bound to the `annualMaximum` field of {@link useDeductionForm}.
152
+ *
153
+ * @remarks
154
+ * Available on the hook result as `form.Fields.AnnualMaximum` only when
155
+ * `status.isRecurring` is `true`. A zero value means "no cap" — the hook
156
+ * drops it on the wire. Always null-check before rendering.
157
+ *
158
+ * @param props - {@link AnnualMaximumFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
159
+ * @returns The rendered number input bound to `annualMaximum`.
160
+ * @public
161
+ */
23
162
  export declare function AnnualMaximumField(props: AnnualMaximumFieldProps): import("react").JSX.Element;
163
+ /**
164
+ * Props accepted by {@link useDeductionForm}'s `Fields.GarnishmentType` component.
165
+ *
166
+ * @public
167
+ */
24
168
  export type GarnishmentTypeFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, GarnishmentType>>;
169
+ /**
170
+ * Select bound to the `garnishmentType` field of {@link useDeductionForm}.
171
+ *
172
+ * @remarks
173
+ * Available on the hook result as `form.Fields.GarnishmentType` only when the
174
+ * hook is constructed with `courtOrdered: true`. Always null-check before
175
+ * rendering. Options: `Federal Tax Lien`, `State Tax Lien`, `Student Loan`,
176
+ * `Creditor Garnishment`, `Federal Loan`, `Other Garnishment`. For
177
+ * child-support garnishments, use {@link useChildSupportGarnishmentForm}.
178
+ *
179
+ * @param props - {@link GarnishmentTypeFieldProps} — accepts the standard hook field props plus `getOptionLabel` for garnishment-type display.
180
+ * @returns The rendered select bound to `garnishmentType`.
181
+ * @public
182
+ */
25
183
  export declare function GarnishmentTypeField(props: GarnishmentTypeFieldProps): import("react").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { SelectHookField as o } from "../../../../../partner-hook-utils/form/fields/SelectHookField.js";
2
+ import { TextInputHookField as o } from "../../../../../partner-hook-utils/form/fields/TextInputHookField.js";
3
+ import { SelectHookField as i } from "../../../../../partner-hook-utils/form/fields/SelectHookField.js";
3
4
  import { NumberInputHookField as t } from "../../../../../partner-hook-utils/form/fields/NumberInputHookField.js";
4
5
  import { RadioGroupHookField as r } from "../../../../../partner-hook-utils/form/fields/RadioGroupHookField.js";
5
- import { TextInputHookField as i } from "../../../../../partner-hook-utils/form/fields/TextInputHookField.js";
6
6
  function l(n) {
7
- return /* @__PURE__ */ e(i, { ...n, name: "description" });
7
+ return /* @__PURE__ */ e(o, { ...n, name: "description" });
8
8
  }
9
9
  function p(n) {
10
10
  return /* @__PURE__ */ e(r, { ...n, name: "recurring" });
@@ -22,7 +22,7 @@ function A(n) {
22
22
  return /* @__PURE__ */ e(t, { ...n, name: "annualMaximum" });
23
23
  }
24
24
  function g(n) {
25
- return /* @__PURE__ */ e(o, { ...n, name: "garnishmentType" });
25
+ return /* @__PURE__ */ e(i, { ...n, name: "garnishmentType" });
26
26
  }
27
27
  export {
28
28
  F as AmountField,
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useDeductionForm/fields.tsx"],"sourcesContent":["import type { GarnishmentType } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport type { DeductionFormErrorCodes } from './deductionFormSchema'\nimport type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField'\nimport type { NumberInputHookFieldProps } from '@/partner-hook-utils/form/fields/NumberInputHookField'\nimport type { RadioGroupHookFieldProps } from '@/partner-hook-utils/form/fields/RadioGroupHookField'\nimport type { SelectHookFieldProps } from '@/partner-hook-utils/form/fields/SelectHookField'\nimport {\n TextInputHookField,\n NumberInputHookField,\n RadioGroupHookField,\n SelectHookField,\n} from '@/partner-hook-utils/form/fields'\nimport type { HookFieldProps } from '@/partner-hook-utils/types'\n\nexport type RequiredValidation = typeof DeductionFormErrorCodes.REQUIRED\nexport type NegativeAmountValidation = typeof DeductionFormErrorCodes.NEGATIVE_AMOUNT\n\nexport type AmountValidation = RequiredValidation | NegativeAmountValidation\nexport type CapValidation = NegativeAmountValidation\n\n// ── Description ────────────────────────────────────────────────────────\n\nexport type DescriptionFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\nexport function DescriptionField(props: DescriptionFieldProps) {\n return <TextInputHookField {...props} name=\"description\" />\n}\n\n// ── Recurring (radio: boolean) ─────────────────────────────────────────\n\nexport type RecurringFieldProps = HookFieldProps<\n RadioGroupHookFieldProps<RequiredValidation, boolean>\n>\n\nexport function RecurringField(props: RecurringFieldProps) {\n return <RadioGroupHookField {...props} name=\"recurring\" />\n}\n\n// ── DeductAsPercentage (radio: boolean) ────────────────────────────────\n\nexport type DeductAsPercentageFieldProps = HookFieldProps<\n RadioGroupHookFieldProps<RequiredValidation, boolean>\n>\n\nexport function DeductAsPercentageField(props: DeductAsPercentageFieldProps) {\n return <RadioGroupHookField {...props} name=\"deductAsPercentage\" />\n}\n\n// ── Amount (currency or percent depending on deductAsPercentage) ───────\n\nexport type AmountFieldProps = HookFieldProps<NumberInputHookFieldProps<AmountValidation>>\n\nexport function AmountField(props: AmountFieldProps) {\n return <NumberInputHookField {...props} name=\"amount\" />\n}\n\n// ── TotalAmount (optional cap — only meaningful when recurring) ────────\n\nexport type TotalAmountFieldProps = HookFieldProps<NumberInputHookFieldProps<CapValidation>>\n\nexport function TotalAmountField(props: TotalAmountFieldProps) {\n return <NumberInputHookField {...props} name=\"totalAmount\" />\n}\n\n// ── AnnualMaximum (optional annual cap — only meaningful when recurring) ─\n\nexport type AnnualMaximumFieldProps = HookFieldProps<NumberInputHookFieldProps<CapValidation>>\n\nexport function AnnualMaximumField(props: AnnualMaximumFieldProps) {\n return <NumberInputHookField {...props} name=\"annualMaximum\" />\n}\n\n// ── GarnishmentType (court-ordered only) ───────────────────────────────\n\nexport type GarnishmentTypeFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, GarnishmentType>\n>\n\nexport function GarnishmentTypeField(props: GarnishmentTypeFieldProps) {\n return <SelectHookField {...props} name=\"garnishmentType\" />\n}\n"],"names":["DescriptionField","props","jsx","TextInputHookField","RecurringField","RadioGroupHookField","DeductAsPercentageField","AmountField","NumberInputHookField","TotalAmountField","AnnualMaximumField","GarnishmentTypeField","SelectHookField"],"mappings":";;;;;AAwBO,SAASA,EAAiBC,GAA8B;AAC7D,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,eAAc;AAC3D;AAQO,SAASG,EAAeH,GAA4B;AACzD,SAAO,gBAAAC,EAACG,GAAA,EAAqB,GAAGJ,GAAO,MAAK,aAAY;AAC1D;AAQO,SAASK,EAAwBL,GAAqC;AAC3E,SAAO,gBAAAC,EAACG,GAAA,EAAqB,GAAGJ,GAAO,MAAK,sBAAqB;AACnE;AAMO,SAASM,EAAYN,GAAyB;AACnD,SAAO,gBAAAC,EAACM,GAAA,EAAsB,GAAGP,GAAO,MAAK,UAAS;AACxD;AAMO,SAASQ,EAAiBR,GAA8B;AAC7D,SAAO,gBAAAC,EAACM,GAAA,EAAsB,GAAGP,GAAO,MAAK,eAAc;AAC7D;AAMO,SAASS,EAAmBT,GAAgC;AACjE,SAAO,gBAAAC,EAACM,GAAA,EAAsB,GAAGP,GAAO,MAAK,iBAAgB;AAC/D;AAQO,SAASU,EAAqBV,GAAkC;AACrE,SAAO,gBAAAC,EAACU,GAAA,EAAiB,GAAGX,GAAO,MAAK,mBAAkB;AAC5D;"}
1
+ {"version":3,"file":"fields.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useDeductionForm/fields.tsx"],"sourcesContent":["import type { GarnishmentType } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport type { DeductionFormErrorCodes } from './deductionFormSchema'\nimport type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField'\nimport type { NumberInputHookFieldProps } from '@/partner-hook-utils/form/fields/NumberInputHookField'\nimport type { RadioGroupHookFieldProps } from '@/partner-hook-utils/form/fields/RadioGroupHookField'\nimport type { SelectHookFieldProps } from '@/partner-hook-utils/form/fields/SelectHookField'\nimport {\n TextInputHookField,\n NumberInputHookField,\n RadioGroupHookField,\n SelectHookField,\n} from '@/partner-hook-utils/form/fields'\nimport type { HookFieldProps } from '@/partner-hook-utils/types'\n\n/**\n * The required-field error code produced by {@link useDeductionForm} fields that only emit `REQUIRED`.\n *\n * @remarks\n * Used as the `validationMessages` key for the description, recurring,\n * deduct-as-percentage, and garnishment-type fields. See\n * {@link DeductionFormErrorCodes}.\n *\n * @public\n */\nexport type RequiredValidation = typeof DeductionFormErrorCodes.REQUIRED\n\n/**\n * The negative-amount error code produced by {@link useDeductionForm}'s currency fields.\n *\n * @remarks\n * Used as a `validationMessages` key on `Fields.Amount`, `Fields.TotalAmount`,\n * and `Fields.AnnualMaximum`. See {@link DeductionFormErrorCodes}.\n *\n * @public\n */\nexport type NegativeAmountValidation = typeof DeductionFormErrorCodes.NEGATIVE_AMOUNT\n\n/**\n * Validation error codes emitted by the `amount` field of {@link useDeductionForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.Amount`. See\n * {@link DeductionFormErrorCodes} for the full description of each code.\n *\n * @public\n */\nexport type AmountValidation = RequiredValidation | NegativeAmountValidation\n\n/**\n * Validation error codes emitted by the cap fields of {@link useDeductionForm} (`totalAmount`, `annualMaximum`).\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.TotalAmount` and\n * `Fields.AnnualMaximum`. See {@link DeductionFormErrorCodes} for the full\n * description of each code.\n *\n * @public\n */\nexport type CapValidation = NegativeAmountValidation\n\n// ── Description ────────────────────────────────────────────────────────\n\n/**\n * Props accepted by {@link useDeductionForm}'s `Fields.Description` component.\n *\n * @public\n */\nexport type DescriptionFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/**\n * Text input bound to the `description` field of {@link useDeductionForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.Description`. Always rendered.\n *\n * @param props - {@link DescriptionFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `description`.\n * @public\n */\nexport function DescriptionField(props: DescriptionFieldProps) {\n return <TextInputHookField {...props} name=\"description\" />\n}\n\n// ── Recurring (radio: boolean) ─────────────────────────────────────────\n\n/**\n * Props accepted by {@link useDeductionForm}'s `Fields.Recurring` component.\n *\n * @public\n */\nexport type RecurringFieldProps = HookFieldProps<\n RadioGroupHookFieldProps<RequiredValidation, boolean>\n>\n\n/**\n * Radio group bound to the `recurring` field of {@link useDeductionForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.Recurring`. Always rendered.\n * Picks between a recurring deduction (taken every paycheck) and a one-time\n * deduction. The cap fields (`Fields.TotalAmount` and `Fields.AnnualMaximum`)\n * are exposed only when this is set to recurring.\n *\n * @param props - {@link RecurringFieldProps} — accepts the standard hook field props plus `getOptionLabel` for boolean display.\n * @returns The rendered radio group bound to `recurring`.\n * @public\n */\nexport function RecurringField(props: RecurringFieldProps) {\n return <RadioGroupHookField {...props} name=\"recurring\" />\n}\n\n// ── DeductAsPercentage (radio: boolean) ────────────────────────────────\n\n/**\n * Props accepted by {@link useDeductionForm}'s `Fields.DeductAsPercentage` component.\n *\n * @public\n */\nexport type DeductAsPercentageFieldProps = HookFieldProps<\n RadioGroupHookFieldProps<RequiredValidation, boolean>\n>\n\n/**\n * Radio group bound to the `deductAsPercentage` field of {@link useDeductionForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.DeductAsPercentage`. Always\n * rendered. Toggles how `Fields.Amount` is interpreted — as a fixed currency\n * amount when `false`, or as a percentage of paycheck when `true`.\n *\n * @param props - {@link DeductAsPercentageFieldProps} — accepts the standard hook field props plus `getOptionLabel` for boolean display.\n * @returns The rendered radio group bound to `deductAsPercentage`.\n * @public\n */\nexport function DeductAsPercentageField(props: DeductAsPercentageFieldProps) {\n return <RadioGroupHookField {...props} name=\"deductAsPercentage\" />\n}\n\n// ── Amount (currency or percent depending on deductAsPercentage) ───────\n\n/**\n * Props accepted by {@link useDeductionForm}'s `Fields.Amount` component.\n *\n * @public\n */\nexport type AmountFieldProps = HookFieldProps<NumberInputHookFieldProps<AmountValidation>>\n\n/**\n * Number input bound to the `amount` field of {@link useDeductionForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.Amount`. Always rendered.\n * Interpreted as a currency amount when `Fields.DeductAsPercentage` is set to\n * a fixed amount, or as a percentage of paycheck when it's set to percentage.\n *\n * @param props - {@link AmountFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered number input bound to `amount`.\n * @public\n */\nexport function AmountField(props: AmountFieldProps) {\n return <NumberInputHookField {...props} name=\"amount\" />\n}\n\n// ── TotalAmount (optional cap — only meaningful when recurring) ────────\n\n/**\n * Props accepted by {@link useDeductionForm}'s `Fields.TotalAmount` component.\n *\n * @public\n */\nexport type TotalAmountFieldProps = HookFieldProps<NumberInputHookFieldProps<CapValidation>>\n\n/**\n * Number input bound to the `totalAmount` field of {@link useDeductionForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.TotalAmount` only when\n * `status.isRecurring` is `true`. A zero value means \"no cap\" — the hook\n * drops it on the wire. Always null-check before rendering.\n *\n * @param props - {@link TotalAmountFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered number input bound to `totalAmount`.\n * @public\n */\nexport function TotalAmountField(props: TotalAmountFieldProps) {\n return <NumberInputHookField {...props} name=\"totalAmount\" />\n}\n\n// ── AnnualMaximum (optional annual cap — only meaningful when recurring) ─\n\n/**\n * Props accepted by {@link useDeductionForm}'s `Fields.AnnualMaximum` component.\n *\n * @public\n */\nexport type AnnualMaximumFieldProps = HookFieldProps<NumberInputHookFieldProps<CapValidation>>\n\n/**\n * Number input bound to the `annualMaximum` field of {@link useDeductionForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.AnnualMaximum` only when\n * `status.isRecurring` is `true`. A zero value means \"no cap\" — the hook\n * drops it on the wire. Always null-check before rendering.\n *\n * @param props - {@link AnnualMaximumFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered number input bound to `annualMaximum`.\n * @public\n */\nexport function AnnualMaximumField(props: AnnualMaximumFieldProps) {\n return <NumberInputHookField {...props} name=\"annualMaximum\" />\n}\n\n// ── GarnishmentType (court-ordered only) ───────────────────────────────\n\n/**\n * Props accepted by {@link useDeductionForm}'s `Fields.GarnishmentType` component.\n *\n * @public\n */\nexport type GarnishmentTypeFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, GarnishmentType>\n>\n\n/**\n * Select bound to the `garnishmentType` field of {@link useDeductionForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.GarnishmentType` only when the\n * hook is constructed with `courtOrdered: true`. Always null-check before\n * rendering. Options: `Federal Tax Lien`, `State Tax Lien`, `Student Loan`,\n * `Creditor Garnishment`, `Federal Loan`, `Other Garnishment`. For\n * child-support garnishments, use {@link useChildSupportGarnishmentForm}.\n *\n * @param props - {@link GarnishmentTypeFieldProps} — accepts the standard hook field props plus `getOptionLabel` for garnishment-type display.\n * @returns The rendered select bound to `garnishmentType`.\n * @public\n */\nexport function GarnishmentTypeField(props: GarnishmentTypeFieldProps) {\n return <SelectHookField {...props} name=\"garnishmentType\" />\n}\n"],"names":["DescriptionField","props","jsx","TextInputHookField","RecurringField","RadioGroupHookField","DeductAsPercentageField","AmountField","NumberInputHookField","TotalAmountField","AnnualMaximumField","GarnishmentTypeField","SelectHookField"],"mappings":";;;;;AA+EO,SAASA,EAAiBC,GAA8B;AAC7D,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,eAAc;AAC3D;AA0BO,SAASG,EAAeH,GAA4B;AACzD,SAAO,gBAAAC,EAACG,GAAA,EAAqB,GAAGJ,GAAO,MAAK,aAAY;AAC1D;AAyBO,SAASK,EAAwBL,GAAqC;AAC3E,SAAO,gBAAAC,EAACG,GAAA,EAAqB,GAAGJ,GAAO,MAAK,sBAAqB;AACnE;AAuBO,SAASM,EAAYN,GAAyB;AACnD,SAAO,gBAAAC,EAACM,GAAA,EAAsB,GAAGP,GAAO,MAAK,UAAS;AACxD;AAuBO,SAASQ,EAAiBR,GAA8B;AAC7D,SAAO,gBAAAC,EAACM,GAAA,EAAsB,GAAGP,GAAO,MAAK,eAAc;AAC7D;AAuBO,SAASS,EAAmBT,GAAgC;AACjE,SAAO,gBAAAC,EAACM,GAAA,EAAsB,GAAGP,GAAO,MAAK,iBAAgB;AAC/D;AA2BO,SAASU,EAAqBV,GAAkC;AACrE,SAAO,gBAAAC,EAACU,GAAA,EAAiB,GAAGX,GAAO,MAAK,mBAAkB;AAC5D;"}
@@ -1,4 +1,5 @@
1
1
  import "./types/i18next.d.ts"
2
- export { useDeductionForm, type UseDeductionFormProps, type UseDeductionFormResult, type UseDeductionFormReady, type DeductionFormFields, type DeductionFormFieldsMetadata, type DeductionFormFieldsType, type DeductionFormOptionalFieldsToRequire, } from './useDeductionForm';
3
- export { createDeductionFormSchema, DeductionFormErrorCodes, type DeductionFormErrorCode, type DeductionFormData, type DeductionFormOutputs, type DeductionFormField, } from './deductionFormSchema';
2
+ export { useDeductionForm, type UseDeductionFormProps, type UseDeductionFormResult, type UseDeductionFormReady, type DeductionFormFields, type DeductionFormFieldsMetadata, type DeductionFormOptionalFieldsToRequire, } from './useDeductionForm';
3
+ export { createDeductionFormSchema, DeductionFormErrorCodes, type DeductionFormErrorCode, type DeductionFormData, type DeductionFormOutputs, } from './deductionFormSchema';
4
+ export { DescriptionField, RecurringField, DeductAsPercentageField, AmountField, TotalAmountField, AnnualMaximumField, GarnishmentTypeField, } from './fields';
4
5
  export type { RequiredValidation as DeductionFormRequiredValidation, NegativeAmountValidation as DeductionFormNegativeAmountValidation, AmountValidation as DeductionFormAmountValidation, CapValidation as DeductionFormCapValidation, DescriptionFieldProps, RecurringFieldProps, DeductAsPercentageFieldProps, AmountFieldProps, TotalAmountFieldProps, AnnualMaximumFieldProps, GarnishmentTypeFieldProps, } from './fields';