@gusto/embedded-react-sdk 0.43.0 → 0.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (792) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/README.md +23 -5
  3. package/dist/assets/icons/edit-02.svg.js +10 -0
  4. package/dist/assets/icons/edit-02.svg.js.map +1 -0
  5. package/dist/components/Base/useBaseSubmit.js +6 -6
  6. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  7. package/dist/components/Common/DataView/DataTable/DataTable.js +86 -64
  8. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  9. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js +52 -0
  10. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js.map +1 -0
  11. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js +18 -0
  12. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js.map +1 -0
  13. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.d.ts +13 -0
  14. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js +12 -0
  15. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js.map +1 -0
  16. package/dist/components/Common/Fields/hooks/fieldElementRegistry.d.ts +21 -0
  17. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js +29 -0
  18. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js.map +1 -0
  19. package/dist/components/Common/Fields/hooks/useField.js +43 -37
  20. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  21. package/dist/components/Common/Flex/Flex.d.ts +2 -1
  22. package/dist/components/Common/Flex/Flex.js +14 -12
  23. package/dist/components/Common/Flex/Flex.js.map +1 -1
  24. package/dist/components/Common/Flex/Flex.module.scss.js +4 -4
  25. package/dist/components/Common/TaxInputs/TaxInputs.js +1 -1
  26. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  27. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  28. package/dist/components/Common/UI/Dialog/Dialog.js +35 -36
  29. package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -1
  30. package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +2 -2
  31. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  32. package/dist/components/Company/AssignSignatory/AssignSignatory.js +6 -7
  33. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  34. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +3 -2
  35. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  37. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  38. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -7
  39. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  40. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +2 -3
  41. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  42. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +7 -4
  43. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  44. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  45. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  46. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -6
  47. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  48. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +9 -10
  49. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  50. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +7 -4
  51. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  52. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +9 -6
  53. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  54. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  55. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -8
  56. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  57. package/dist/components/Company/BankAccount/BankAccountForm/context.js +7 -4
  58. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  59. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +9 -8
  60. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  61. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  62. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  63. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +5 -4
  64. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  65. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  66. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  67. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -12
  68. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  69. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +7 -4
  70. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  71. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +8 -8
  72. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +26 -25
  73. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  74. package/dist/components/Company/FederalTaxes/Actions.js +6 -5
  75. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  76. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -3
  77. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  78. package/dist/components/Company/FederalTaxes/Form.js +3 -2
  79. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  80. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +12 -9
  81. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  82. package/dist/components/Company/Industry/Actions.js +3 -2
  83. package/dist/components/Company/Industry/Actions.js.map +1 -1
  84. package/dist/components/Company/Industry/Context.js +10 -7
  85. package/dist/components/Company/Industry/Context.js.map +1 -1
  86. package/dist/components/Company/Industry/Edit.js +5 -4
  87. package/dist/components/Company/Industry/Edit.js.map +1 -1
  88. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  89. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  90. package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
  91. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  92. package/dist/components/Company/Locations/LocationForm/LocationForm.js +12 -13
  93. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  94. package/dist/components/Company/Locations/LocationForm/index.d.ts +2 -0
  95. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +7 -4
  96. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  97. package/dist/components/Company/Locations/LocationsList/Actions.js +7 -6
  98. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  99. package/dist/components/Company/Locations/LocationsList/List.js +8 -7
  100. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  101. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -7
  102. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  103. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +7 -4
  104. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  105. package/dist/components/Company/OnboardingOverview/Completed.js +11 -10
  106. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  107. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +3 -2
  108. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  109. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -3
  110. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  111. package/dist/components/Company/OnboardingOverview/context.js +7 -4
  112. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  113. package/dist/components/Company/PaySchedule/PaySchedule.d.ts +2 -2
  114. package/dist/components/Company/PaySchedule/PaySchedule.js +6 -6
  115. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  116. package/dist/components/Company/PaySchedule/PayScheduleForm.js +2 -3
  117. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  118. package/dist/components/Company/PaySchedule/PayScheduleList.js +9 -9
  119. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
  120. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +3 -3
  121. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +58 -57
  122. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  123. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  124. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  125. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +12 -11
  126. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  127. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +67 -63
  128. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  129. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +7 -4
  130. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  131. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.d.ts +2 -0
  132. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js +6 -0
  133. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js.map +1 -0
  134. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  135. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  136. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +57 -26
  137. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  138. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +7 -4
  139. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  140. package/dist/components/Company/exports/companyOnboarding.d.ts +3 -0
  141. package/dist/components/Company/exports/companyOnboarding.js +21 -15
  142. package/dist/components/Company/exports/companyOnboarding.js.map +1 -1
  143. package/dist/components/Company/index.d.ts +1 -0
  144. package/dist/components/Company/index.js +14 -12
  145. package/dist/components/Company/index.js.map +1 -1
  146. package/dist/components/Contractor/Address/Address.js +18 -19
  147. package/dist/components/Contractor/Address/Address.js.map +1 -1
  148. package/dist/components/Contractor/Address/Form.js +2 -3
  149. package/dist/components/Contractor/Address/Form.js.map +1 -1
  150. package/dist/components/Contractor/Address/Head.js +7 -6
  151. package/dist/components/Contractor/Address/Head.js.map +1 -1
  152. package/dist/components/Contractor/Address/useAddress.js +9 -6
  153. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  154. package/dist/components/Contractor/ContractorList/index.js +17 -17
  155. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +3 -2
  156. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  157. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +8 -8
  158. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  159. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +3 -2
  160. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  161. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +2 -3
  162. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  163. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +6 -5
  164. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  165. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +1 -1
  166. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +3 -2
  167. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  168. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +3 -2
  169. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  170. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +3 -2
  171. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  172. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +5 -5
  173. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  174. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +8 -7
  175. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  176. package/dist/components/Contractor/Profile/useContractorProfile.js +35 -34
  177. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  178. package/dist/components/Contractor/Submit/Submit.js +23 -21
  179. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  180. package/dist/components/Employee/Compensation/Compensation.d.ts +7 -4
  181. package/dist/components/Employee/Compensation/Compensation.js +72 -179
  182. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  183. package/dist/components/Employee/Compensation/CompensationFlowComponents.d.ts +27 -0
  184. package/dist/components/Employee/Compensation/CompensationFlowComponents.js +61 -0
  185. package/dist/components/Employee/Compensation/CompensationFlowComponents.js.map +1 -0
  186. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.d.ts +14 -0
  187. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js +128 -0
  188. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js.map +1 -0
  189. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.d.ts +17 -0
  190. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js +224 -0
  191. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js.map +1 -0
  192. package/dist/components/Employee/Compensation/EditCompensation/index.d.ts +5 -0
  193. package/dist/components/Employee/Compensation/JobsList/JobsList.d.ts +5 -0
  194. package/dist/components/Employee/Compensation/JobsList/JobsList.js +47 -0
  195. package/dist/components/Employee/Compensation/JobsList/JobsList.js.map +1 -0
  196. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.d.ts +11 -0
  197. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js +98 -0
  198. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js.map +1 -0
  199. package/dist/components/Employee/Compensation/JobsList/index.d.ts +5 -0
  200. package/dist/components/Employee/Compensation/{useCompensation.d.ts → compensationSchema.d.ts} +0 -22
  201. package/dist/components/Employee/Compensation/{useCompensation.js → compensationSchema.js} +9 -12
  202. package/dist/components/Employee/Compensation/compensationSchema.js.map +1 -0
  203. package/dist/components/Employee/Compensation/compensationStateMachine.d.ts +6 -0
  204. package/dist/components/Employee/Compensation/compensationStateMachine.js +73 -0
  205. package/dist/components/Employee/Compensation/compensationStateMachine.js.map +1 -0
  206. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +62 -36
  207. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +81 -57
  208. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  209. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +5 -12
  210. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +22 -35
  211. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  212. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +5 -3
  213. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +55 -13
  214. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +216 -226
  215. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  216. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.d.ts +15 -0
  217. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js +27 -0
  218. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js.map +1 -0
  219. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +19 -0
  220. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +29 -0
  221. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -0
  222. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +7 -0
  223. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +43 -0
  224. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js +37 -0
  225. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -0
  226. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.d.ts +13 -0
  227. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js +26 -0
  228. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js.map +1 -0
  229. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +56 -0
  230. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +180 -0
  231. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -0
  232. package/dist/components/Employee/Dashboard/BasicDetailsView.js +15 -13
  233. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  234. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -0
  235. package/dist/components/Employee/Dashboard/DashboardComponents.js +33 -15
  236. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  237. package/dist/components/Employee/Dashboard/DocumentsView.js +13 -11
  238. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
  239. package/dist/components/Employee/Dashboard/JobAndPayView.js +11 -9
  240. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  241. package/dist/components/Employee/Dashboard/TaxesView.js +21 -19
  242. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  243. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  244. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +54 -33
  245. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  246. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +1 -1
  247. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +6 -6
  248. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
  249. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +3 -3
  250. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -1
  251. package/dist/components/Employee/Deductions/Deductions.js +7 -7
  252. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  253. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +36 -33
  254. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  255. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +48 -41
  256. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  257. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +2 -2
  258. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  259. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +1 -2
  260. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +23 -20
  261. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  262. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +30 -30
  263. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  264. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
  265. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  266. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +7 -6
  267. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  268. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +13 -14
  269. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  270. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
  271. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  272. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +7 -4
  273. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  274. package/dist/components/Employee/DocumentSigner/DocumentSigner.js +1 -1
  275. package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
  276. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +15 -14
  277. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  278. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js +1 -1
  279. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
  280. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +5 -5
  281. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +7 -7
  282. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +69 -68
  283. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  284. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +3 -2
  285. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  286. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +8 -7
  287. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  288. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +18 -17
  289. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  290. package/dist/components/Employee/FederalTaxes/index.d.ts +3 -1
  291. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +8 -0
  292. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +71 -0
  293. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -0
  294. package/dist/components/Employee/FederalTaxes/management/index.d.ts +2 -0
  295. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +8 -0
  296. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +55 -0
  297. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -0
  298. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +2 -0
  299. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +15 -0
  300. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +104 -0
  301. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -0
  302. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +3 -0
  303. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +41 -0
  304. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js +40 -0
  305. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -0
  306. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +18 -0
  307. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +31 -0
  308. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -0
  309. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +5 -0
  310. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +37 -0
  311. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js +140 -0
  312. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -0
  313. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +2 -3
  314. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  315. package/dist/components/Employee/Landing/Landing.js +8 -8
  316. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -1
  317. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +2 -2
  318. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  319. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +1 -1
  320. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  321. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  322. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  323. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  324. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +4 -4
  325. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +14 -14
  326. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  327. package/dist/components/Employee/PaymentMethod/Split.js +1 -1
  328. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +9 -6
  329. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  330. package/dist/components/Employee/Profile/management/Profile.d.ts +6 -0
  331. package/dist/components/Employee/Profile/management/Profile.js +122 -0
  332. package/dist/components/Employee/Profile/management/Profile.js.map +1 -0
  333. package/dist/components/Employee/Profile/management/Profile.module.scss.js +8 -0
  334. package/dist/components/Employee/Profile/management/Profile.module.scss.js.map +1 -0
  335. package/dist/components/Employee/Profile/{AdminProfile.js → onboarding/AdminProfile.js} +15 -15
  336. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -0
  337. package/dist/components/Employee/Profile/{EmployeeProfile.js → onboarding/EmployeeProfile.js} +14 -14
  338. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -0
  339. package/dist/components/Employee/Profile/{Profile.d.ts → onboarding/Profile.d.ts} +2 -2
  340. package/dist/components/Employee/Profile/{Profile.js → onboarding/Profile.js} +4 -4
  341. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -0
  342. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +9 -4
  343. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +61 -58
  344. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  345. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +40 -39
  346. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  347. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +47 -46
  348. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  349. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +14 -14
  350. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  351. package/dist/components/Employee/StateTaxes/index.d.ts +2 -1
  352. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +6 -0
  353. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +59 -0
  354. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -0
  355. package/dist/components/Employee/StateTaxes/management/index.d.ts +2 -0
  356. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +8 -0
  357. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +49 -0
  358. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -0
  359. package/dist/components/Employee/StateTaxes/onboarding/index.d.ts +2 -0
  360. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +14 -0
  361. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +32 -0
  362. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -0
  363. package/dist/components/Employee/StateTaxes/shared/index.d.ts +3 -0
  364. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.d.ts +8 -0
  365. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.d.ts +36 -0
  366. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +56 -0
  367. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js +116 -0
  368. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -0
  369. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +12 -0
  370. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +76 -0
  371. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -0
  372. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +14 -0
  373. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js +23 -0
  374. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -0
  375. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +6 -0
  376. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +39 -0
  377. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +46 -0
  378. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js +93 -0
  379. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -0
  380. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/index.d.ts +6 -0
  381. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +36 -0
  382. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js +159 -0
  383. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -0
  384. package/dist/components/Employee/Taxes/Actions.js +9 -8
  385. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  386. package/dist/components/Employee/Taxes/FederalForm.js +5 -4
  387. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  388. package/dist/components/Employee/Taxes/useTaxes.js +7 -4
  389. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  390. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +11 -11
  391. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  392. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +3 -2
  393. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  394. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +4 -4
  395. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +3 -3
  396. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  397. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +3 -2
  398. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  399. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +2 -3
  400. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  401. package/dist/components/Employee/exports/employeeManagement.d.ts +3 -0
  402. package/dist/components/Employee/exports/employeeManagement.js +16 -10
  403. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  404. package/dist/components/Employee/exports/employeeOnboarding.d.ts +3 -3
  405. package/dist/components/Employee/exports/employeeOnboarding.js +19 -19
  406. package/dist/components/Employee/index.d.ts +2 -1
  407. package/dist/components/Employee/index.js +37 -37
  408. package/dist/components/Flow/FlowHeader.js +8 -8
  409. package/dist/components/Flow/FlowHeader.js.map +1 -1
  410. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +61 -65
  411. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  412. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +5 -5
  413. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  414. package/dist/components/InformationRequests/InformationRequests.js +1 -1
  415. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +17 -17
  416. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  417. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +7 -7
  418. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  419. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +3 -2
  420. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  421. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +23 -21
  422. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  423. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +3 -2
  424. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  425. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +1 -0
  426. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  427. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +7 -6
  428. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  429. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +3 -2
  430. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  431. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +9 -8
  432. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  433. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +20 -20
  434. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  435. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +2 -2
  436. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +21 -25
  437. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  438. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  439. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +2 -3
  440. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  441. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -2
  442. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +1 -1
  443. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  444. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +4 -4
  445. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  446. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  447. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +2 -3
  448. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  449. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +17 -16
  450. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  451. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +3 -2
  452. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  453. package/dist/components/Payroll/PayrollList/PayrollList.js +4 -4
  454. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  455. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  456. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +3 -2
  457. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  458. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +2 -3
  459. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  460. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  461. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  462. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  463. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  464. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +9 -9
  465. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  466. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +7 -7
  467. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  468. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  469. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  470. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +7 -7
  471. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  472. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +3 -2
  473. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  474. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +9 -9
  475. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  476. package/dist/components/Payroll/helpers.d.ts +1 -1
  477. package/dist/components/Payroll/helpers.js.map +1 -1
  478. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  479. package/dist/components/Payroll/usePreparedPayrollData.js +21 -18
  480. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  481. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  482. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +2 -0
  483. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.js +3 -2
  484. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  485. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.d.ts +6 -0
  486. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +149 -0
  487. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -0
  488. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +2 -0
  489. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +80 -0
  490. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -0
  491. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +21 -0
  492. package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +5 -0
  493. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionForm.d.ts +1 -0
  494. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +115 -0
  495. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  496. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.js +9 -7
  497. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  498. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
  499. package/dist/components/TimeOff/PolicyList/PolicyList.js +103 -0
  500. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -0
  501. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +135 -0
  502. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  503. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListTypes.d.ts +1 -1
  504. package/dist/components/TimeOff/PolicySettings/PolicySettings.js +70 -0
  505. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  506. package/dist/components/TimeOff/PolicySettings/PolicySettings.module.scss.js +16 -0
  507. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +164 -0
  508. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -0
  509. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsTypes.d.ts +1 -1
  510. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +31 -0
  511. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  512. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
  513. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +68 -0
  514. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  515. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +1 -0
  516. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  517. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlowComponents.d.ts +3 -3
  518. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +117 -0
  519. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  520. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +9 -0
  521. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js +25 -0
  522. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -0
  523. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/timeOffStateMachine.d.ts +4 -2
  524. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +487 -0
  525. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  526. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +1 -0
  527. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +158 -0
  528. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  529. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +85 -76
  530. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  531. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +6 -0
  532. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +143 -0
  533. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -0
  534. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +2 -0
  535. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +103 -0
  536. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -0
  537. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +41 -0
  538. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +9 -0
  539. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +216 -0
  540. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -0
  541. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +2 -1
  542. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +64 -0
  543. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -0
  544. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +9 -0
  545. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +56 -0
  546. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -0
  547. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +5 -0
  548. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +251 -0
  549. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -0
  550. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js +10 -0
  551. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js.map +1 -0
  552. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +2 -0
  553. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +143 -0
  554. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -0
  555. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +52 -0
  556. package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +7 -0
  557. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +9 -0
  558. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  559. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +6 -0
  560. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js +9 -0
  561. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js.map +1 -0
  562. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +9 -0
  563. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  564. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.d.ts +5 -4
  565. package/dist/components/TimeOff/index.js +27 -0
  566. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  567. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +95 -0
  568. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -0
  569. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  570. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +3 -0
  571. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +86 -0
  572. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -0
  573. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +27 -0
  574. package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +3 -0
  575. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.d.ts +1 -1
  576. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.js +8 -8
  577. package/dist/components/TimeOff/shared/holidayHelpers.js.map +1 -0
  578. package/dist/components/TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  579. package/dist/components/index.d.ts +1 -1
  580. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +11 -10
  581. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  582. package/dist/helpers/dateFormatting.d.ts +2 -0
  583. package/dist/helpers/dateFormatting.js +4 -0
  584. package/dist/helpers/dateFormatting.js.map +1 -1
  585. package/dist/i18n/I18n.js +11 -10
  586. package/dist/i18n/I18n.js.map +1 -1
  587. package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
  588. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +12 -14
  589. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -1
  590. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -16
  591. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  592. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js +14 -0
  593. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js.map +1 -0
  594. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +24 -16
  595. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -1
  596. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +14 -14
  597. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +46 -42
  598. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -1
  599. package/dist/i18n/en/Employee.FederalTaxes.json.js +16 -10
  600. package/dist/i18n/en/Employee.FederalTaxes.json.js.map +1 -1
  601. package/dist/i18n/en/Employee.Profile.json.js +24 -20
  602. package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
  603. package/dist/i18n/en/Employee.StateTaxes.json.js +14 -6
  604. package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
  605. package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
  606. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  607. package/dist/index.d.ts +8 -2
  608. package/dist/index.js +118 -93
  609. package/dist/index.js.map +1 -1
  610. package/dist/partner-hook-utils/form/SDKFormProvider.js +18 -14
  611. package/dist/partner-hook-utils/form/SDKFormProvider.js.map +1 -1
  612. package/dist/partner-hook-utils/form/buildFormSchema.js +41 -41
  613. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  614. package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +10 -6
  615. package/dist/partner-hook-utils/form/composeSubmitHandler.js +49 -26
  616. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  617. package/dist/partner-hook-utils/form/fields/CheckboxHookField.d.ts +1 -1
  618. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +27 -23
  619. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  620. package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +1 -1
  621. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -29
  622. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  623. package/dist/partner-hook-utils/form/fields/NumberInputHookField.d.ts +1 -1
  624. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +37 -33
  625. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  626. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +1 -1
  627. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +32 -28
  628. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  629. package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +1 -1
  630. package/dist/partner-hook-utils/form/fields/SelectHookField.js +34 -30
  631. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  632. package/dist/partner-hook-utils/form/fields/SwitchHookField.d.ts +1 -1
  633. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +23 -19
  634. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  635. package/dist/partner-hook-utils/form/fields/TextInputHookField.d.ts +1 -1
  636. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +31 -27
  637. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  638. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.d.ts +10 -0
  639. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js +9 -0
  640. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js.map +1 -0
  641. package/dist/partner-hook-utils/form/index.d.ts +3 -0
  642. package/dist/partner-hook-utils/form/resolveFieldError.js +10 -7
  643. package/dist/partner-hook-utils/form/resolveFieldError.js.map +1 -1
  644. package/dist/partner-hook-utils/form/useFieldErrorMessage.js +10 -7
  645. package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +1 -1
  646. package/dist/partner-hook-utils/form/useHookFieldResolution.d.ts +10 -3
  647. package/dist/partner-hook-utils/form/useHookFieldResolution.js +6 -6
  648. package/dist/partner-hook-utils/form/useHookFieldResolution.js.map +1 -1
  649. package/dist/partner-hook-utils/form/useHookFormInternals.d.ts +22 -0
  650. package/dist/partner-hook-utils/form/useHookFormInternals.js +12 -0
  651. package/dist/partner-hook-utils/form/useHookFormInternals.js.map +1 -0
  652. package/dist/partner-hook-utils/types.d.ts +15 -0
  653. package/dist/shared/constants.d.ts +22 -0
  654. package/dist/shared/constants.js +41 -30
  655. package/dist/shared/constants.js.map +1 -1
  656. package/dist/style.css +1 -1
  657. package/dist/types/i18next.d.ts +62 -14
  658. package/docs/reference/endpoint-inventory.json +313 -122
  659. package/package.json +19 -17
  660. package/dist/components/Employee/Compensation/Actions.d.ts +0 -1
  661. package/dist/components/Employee/Compensation/Actions.js +0 -39
  662. package/dist/components/Employee/Compensation/Actions.js.map +0 -1
  663. package/dist/components/Employee/Compensation/Edit.d.ts +0 -5
  664. package/dist/components/Employee/Compensation/Edit.js +0 -179
  665. package/dist/components/Employee/Compensation/Edit.js.map +0 -1
  666. package/dist/components/Employee/Compensation/Head.d.ts +0 -1
  667. package/dist/components/Employee/Compensation/Head.js +0 -22
  668. package/dist/components/Employee/Compensation/Head.js.map +0 -1
  669. package/dist/components/Employee/Compensation/List.d.ts +0 -1
  670. package/dist/components/Employee/Compensation/List.js +0 -72
  671. package/dist/components/Employee/Compensation/List.js.map +0 -1
  672. package/dist/components/Employee/Compensation/useCompensation.js.map +0 -1
  673. package/dist/components/Employee/FederalTaxes/Actions.d.ts +0 -1
  674. package/dist/components/Employee/FederalTaxes/Actions.js +0 -14
  675. package/dist/components/Employee/FederalTaxes/Actions.js.map +0 -1
  676. package/dist/components/Employee/FederalTaxes/FederalForm.d.ts +0 -12
  677. package/dist/components/Employee/FederalTaxes/FederalForm.js +0 -110
  678. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +0 -1
  679. package/dist/components/Employee/FederalTaxes/FederalTaxes.d.ts +0 -6
  680. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +0 -84
  681. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +0 -1
  682. package/dist/components/Employee/FederalTaxes/Head.d.ts +0 -1
  683. package/dist/components/Employee/FederalTaxes/Head.js +0 -24
  684. package/dist/components/Employee/FederalTaxes/Head.js.map +0 -1
  685. package/dist/components/Employee/FederalTaxes/useFederalTaxes.d.ts +0 -5
  686. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +0 -21
  687. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +0 -1
  688. package/dist/components/Employee/Profile/AdminProfile.js.map +0 -1
  689. package/dist/components/Employee/Profile/EmployeeProfile.js.map +0 -1
  690. package/dist/components/Employee/Profile/Profile.js.map +0 -1
  691. package/dist/components/Employee/Profile/index.d.ts +0 -2
  692. package/dist/components/Employee/StateTaxes/Actions.d.ts +0 -1
  693. package/dist/components/Employee/StateTaxes/Actions.js +0 -14
  694. package/dist/components/Employee/StateTaxes/Actions.js.map +0 -1
  695. package/dist/components/Employee/StateTaxes/StateForm.d.ts +0 -6
  696. package/dist/components/Employee/StateTaxes/StateForm.js +0 -34
  697. package/dist/components/Employee/StateTaxes/StateForm.js.map +0 -1
  698. package/dist/components/Employee/StateTaxes/StateTaxes.d.ts +0 -7
  699. package/dist/components/Employee/StateTaxes/StateTaxes.js +0 -98
  700. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +0 -1
  701. package/dist/components/Employee/StateTaxes/useStateTaxes.d.ts +0 -8
  702. package/dist/components/Employee/StateTaxes/useStateTaxes.js +0 -21
  703. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +0 -1
  704. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +0 -1
  705. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +0 -1
  706. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +0 -49
  707. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +0 -1
  708. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +0 -1
  709. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +0 -107
  710. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +0 -1
  711. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +0 -125
  712. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +0 -1
  713. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +0 -66
  714. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +0 -1
  715. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +0 -16
  716. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +0 -154
  717. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +0 -1
  718. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +0 -29
  719. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +0 -1
  720. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +0 -67
  721. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +0 -1
  722. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +0 -1
  723. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +0 -112
  724. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +0 -1
  725. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +0 -317
  726. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +0 -1
  727. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +0 -72
  728. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +0 -1
  729. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +0 -1
  730. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployees.d.ts +0 -2
  731. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +0 -6
  732. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +0 -66
  733. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +0 -1
  734. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +0 -2
  735. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +0 -82
  736. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +0 -1
  737. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +0 -24
  738. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +0 -7
  739. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +0 -70
  740. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +0 -1
  741. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTypes.d.ts +0 -24
  742. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +0 -56
  743. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +0 -1
  744. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +0 -35
  745. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +0 -1
  746. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +0 -35
  747. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +0 -1
  748. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +0 -5
  749. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +0 -35
  750. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +0 -1
  751. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +0 -5
  752. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +0 -35
  753. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +0 -1
  754. package/dist/components/UNSTABLE_TimeOff/index.js +0 -27
  755. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  756. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js +0 -90
  757. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js.map +0 -1
  758. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +0 -1
  759. /package/dist/components/Employee/{Compensation/shared/useCompensationForm/compensationSchemaParity.test.d.ts → FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.test.d.ts} +0 -0
  760. /package/dist/components/Employee/Profile/{AdminProfile.d.ts → onboarding/AdminProfile.d.ts} +0 -0
  761. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js → onboarding/AdminProfile.module.scss.js} +0 -0
  762. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js.map → onboarding/AdminProfile.module.scss.js.map} +0 -0
  763. /package/dist/components/Employee/Profile/{EmployeeProfile.d.ts → onboarding/EmployeeProfile.d.ts} +0 -0
  764. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js → onboarding/EmployeeProfile.module.scss.js} +0 -0
  765. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js.map → onboarding/EmployeeProfile.module.scss.js.map} +0 -0
  766. /package/dist/components/{UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts → Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.test.d.ts} +0 -0
  767. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +0 -0
  768. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.js +0 -0
  769. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +0 -0
  770. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyList.d.ts +0 -0
  771. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.d.ts +0 -0
  772. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js +0 -0
  773. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js.map +0 -0
  774. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.d.ts +0 -0
  775. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.module.scss.js.map +0 -0
  776. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsPresentation.d.ts +0 -0
  777. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelector.d.ts +0 -0
  778. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.d.ts +0 -0
  779. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.js +0 -0
  780. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/index.d.ts +0 -0
  781. /package/dist/components/{UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts → TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts} +0 -0
  782. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +0 -0
  783. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +0 -0
  784. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +0 -0
  785. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +0 -0
  786. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -0
  787. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +0 -0
  788. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +0 -0
  789. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.js.map +0 -0
  790. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTable.module.scss.js +0 -0
  791. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTable.module.scss.js.map +0 -0
  792. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/index.d.ts +0 -0
@@ -0,0 +1,56 @@
1
+ import { z } from 'zod';
2
+ import { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist';
3
+ import { EmployeeStateTaxQuestion } from '@gusto/embedded-api/models/components/employeestatetaxquestion';
4
+ import { StateTaxQuestionVariant } from './fieldMapping';
5
+ import { FieldsMetadataConfig } from '../../../../../partner-hook-utils/form/buildFormSchema';
6
+ /**
7
+ * The state-taxes form only surfaces a single error code: `REQUIRED`. Field
8
+ * values are stored as `z.unknown()` in the schema; the bundled UI components
9
+ * emit type-correct values and the submit serializer handles edge cases, so
10
+ * any "invalid" input is treated as empty and lands on `REQUIRED`.
11
+ */
12
+ export declare const EmployeeStateTaxesErrorCodes: {
13
+ readonly REQUIRED: "REQUIRED";
14
+ };
15
+ export type EmployeeStateTaxesErrorCode = (typeof EmployeeStateTaxesErrorCodes)[keyof typeof EmployeeStateTaxesErrorCodes];
16
+ export type StateTaxValue = string | number | boolean | Date | null | undefined;
17
+ export interface EmployeeStateTaxesFormData {
18
+ states: Record<string, Record<string, StateTaxValue>>;
19
+ }
20
+ export type EmployeeStateTaxesFormOutputs = EmployeeStateTaxesFormData;
21
+ export interface EmployeeStateTaxesSchemaOptions {
22
+ isAdmin?: boolean;
23
+ }
24
+ export interface EmployeeStateTaxesQuestionMeta {
25
+ state: string;
26
+ isWorkState: boolean;
27
+ apiKey: string;
28
+ formKey: string;
29
+ variant: StateTaxQuestionVariant;
30
+ isAdminOnly: boolean;
31
+ isWireSelectWithBooleanOptions: boolean;
32
+ }
33
+ export interface EmployeeStateTaxesMetadataConfig extends FieldsMetadataConfig<Record<string, z.ZodType>> {
34
+ /** Group → questions, in API response order, post admin-filtering. */
35
+ groups: Array<{
36
+ state: string;
37
+ isWorkState: boolean;
38
+ questions: EmployeeStateTaxesQuestionMeta[];
39
+ }>;
40
+ }
41
+ export type EmployeeStateTaxesSchemaResult = [
42
+ schema: z.ZodType<EmployeeStateTaxesFormData, EmployeeStateTaxesFormData>,
43
+ metadataConfig: EmployeeStateTaxesMetadataConfig
44
+ ];
45
+ /**
46
+ * Builds a Zod schema and metadata config for a dynamic state-taxes form.
47
+ *
48
+ * Schema shape: `{ states: { [state]: { [camelKey]: value } } }` where the
49
+ * inner record's keys mirror each API question's `key` after camelCasing.
50
+ *
51
+ * Required fields are tracked via `superRefine` (mirrors `buildFormSchema`'s
52
+ * approach for static-shape forms). Admin-only questions are excluded from
53
+ * both schema and metadata when `isAdmin=false`.
54
+ */
55
+ export declare function createEmployeeStateTaxesSchema(employeeStateTaxes: EmployeeStateTaxesList[], options?: EmployeeStateTaxesSchemaOptions): EmployeeStateTaxesSchemaResult;
56
+ export type EmployeeStateTaxesQuestion = EmployeeStateTaxQuestion;
@@ -0,0 +1,116 @@
1
+ import { z as f } from "zod";
2
+ import { getQuestionVariant as h } from "./fieldMapping.js";
3
+ import { snakeCaseToCamelCase as b } from "../../../../../helpers/formattedStrings.js";
4
+ const S = {
5
+ REQUIRED: "REQUIRED"
6
+ };
7
+ function v(s) {
8
+ return !!(s == null || typeof s == "string" && s.trim() === "" || typeof s == "number" && Number.isNaN(s) || s instanceof Date && Number.isNaN(s.getTime()));
9
+ }
10
+ function R(s, i = {}) {
11
+ const { isAdmin: r = !1 } = i, u = [];
12
+ for (const t of s) {
13
+ if (!t.state || !t.questions) continue;
14
+ const o = [];
15
+ for (const e of t.questions) {
16
+ if (e.isQuestionForAdminOnly && !r) continue;
17
+ const n = b(e.key), a = `states.${t.state}.${n}`;
18
+ o.push({
19
+ apiKey: e.key,
20
+ formKey: n,
21
+ fullPath: a,
22
+ variant: h(e),
23
+ options: k(e.inputQuestionFormat.options),
24
+ isAdminOnly: e.isQuestionForAdminOnly,
25
+ initialValue: e.answers[0]?.value
26
+ });
27
+ }
28
+ u.push({
29
+ state: t.state,
30
+ isWorkState: !!t.isWorkState,
31
+ questions: o
32
+ });
33
+ }
34
+ const c = {};
35
+ for (const t of u) {
36
+ const o = {};
37
+ for (const e of t.questions)
38
+ o[e.formKey] = f.unknown();
39
+ c[t.state] = f.object(o).optional();
40
+ }
41
+ const p = f.object({
42
+ states: f.object(c)
43
+ }).superRefine((t, o) => {
44
+ for (const e of u) {
45
+ const n = t.states[e.state] ?? {};
46
+ for (const a of e.questions) {
47
+ const l = n[a.formKey];
48
+ v(l) && o.addIssue({
49
+ code: f.ZodIssueCode.custom,
50
+ path: ["states", e.state, a.formKey],
51
+ message: S.REQUIRED
52
+ });
53
+ }
54
+ }
55
+ }), m = u.map((t) => ({
56
+ state: t.state,
57
+ isWorkState: t.isWorkState,
58
+ questions: t.questions.map((o) => ({
59
+ state: t.state,
60
+ isWorkState: t.isWorkState,
61
+ apiKey: o.apiKey,
62
+ formKey: o.formKey,
63
+ variant: o.variant,
64
+ isAdminOnly: o.isAdminOnly,
65
+ isWireSelectWithBooleanOptions: g(o.options)
66
+ }))
67
+ }));
68
+ function d() {
69
+ const t = {};
70
+ for (const o of u)
71
+ for (const e of o.questions) {
72
+ const n = {
73
+ name: e.fullPath,
74
+ isRequired: !0
75
+ };
76
+ if (y(e.apiKey, e.initialValue) && (n.isDisabled = !0), e.options && e.options.length > 0) {
77
+ const a = {
78
+ ...n,
79
+ options: e.options.map((l) => ({
80
+ value: String(l.value),
81
+ label: l.label
82
+ }))
83
+ };
84
+ t[e.fullPath] = a;
85
+ } else
86
+ t[e.fullPath] = n;
87
+ }
88
+ return t;
89
+ }
90
+ function y(t, o) {
91
+ return t !== "file_new_hire_report" ? !1 : o != null;
92
+ }
93
+ return [
94
+ p,
95
+ {
96
+ getFieldsMetadata: d,
97
+ predicateDeps: [],
98
+ groups: m
99
+ }
100
+ ];
101
+ }
102
+ function g(s) {
103
+ return !s || s.length === 0 ? !1 : s.every((i) => typeof i.value == "boolean");
104
+ }
105
+ function k(s) {
106
+ if (!s) return;
107
+ const i = [];
108
+ for (const r of s)
109
+ r.value === void 0 || r.label === void 0 || i.push({ value: r.value, label: r.label });
110
+ return i.length > 0 ? i : void 0;
111
+ }
112
+ export {
113
+ S as EmployeeStateTaxesErrorCodes,
114
+ R as createEmployeeStateTaxesSchema
115
+ };
116
+ //# sourceMappingURL=employeeStateTaxesSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"employeeStateTaxesSchema.js","sources":["../../../../../../src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist'\nimport type { EmployeeStateTaxQuestion } from '@gusto/embedded-api/models/components/employeestatetaxquestion'\nimport { getQuestionVariant, type StateTaxQuestionVariant } from './fieldMapping'\nimport { snakeCaseToCamelCase } from '@/helpers/formattedStrings'\nimport type {\n FieldMetadata,\n FieldMetadataWithOptions,\n FieldsMetadata,\n} from '@/partner-hook-utils/types'\nimport type { FieldsMetadataConfig } from '@/partner-hook-utils/form/buildFormSchema'\n\n// ── Error codes ────────────────────────────────────────────────────────\n\n/**\n * The state-taxes form only surfaces a single error code: `REQUIRED`. Field\n * values are stored as `z.unknown()` in the schema; the bundled UI components\n * emit type-correct values and the submit serializer handles edge cases, so\n * any \"invalid\" input is treated as empty and lands on `REQUIRED`.\n */\nexport const EmployeeStateTaxesErrorCodes = {\n REQUIRED: 'REQUIRED',\n} as const\n\nexport type EmployeeStateTaxesErrorCode =\n (typeof EmployeeStateTaxesErrorCodes)[keyof typeof EmployeeStateTaxesErrorCodes]\n\n// ── Form data shape ────────────────────────────────────────────────────\n\nexport type StateTaxValue = string | number | boolean | Date | null | undefined\n\nexport interface EmployeeStateTaxesFormData {\n states: Record<string, Record<string, StateTaxValue>>\n}\n\nexport type EmployeeStateTaxesFormOutputs = EmployeeStateTaxesFormData\n\n// ── Empty-value detection ──────────────────────────────────────────────\n\n/**\n * State-taxes fields are typed as `z.unknown()` in the schema and validated\n * for emptiness in `superRefine`. The bundled UI components only emit\n * type-correct values (NumberInput → number | undefined, DatePicker → Date |\n * undefined, etc.) and the submit serializer normalizes NaN / invalid Dates\n * to empty strings before hitting the API, so a per-variant Zod validator\n * would only fire for adversarial inputs that aren't reachable through the UI.\n */\nfunction isEmpty(value: unknown): boolean {\n if (value === undefined || value === null) return true\n if (typeof value === 'string' && value.trim() === '') return true\n if (typeof value === 'number' && Number.isNaN(value)) return true\n if (value instanceof Date && Number.isNaN(value.getTime())) return true\n return false\n}\n\n// ── Schema factory ─────────────────────────────────────────────────────\n\nexport interface EmployeeStateTaxesSchemaOptions {\n isAdmin?: boolean\n}\n\ninterface QuestionOption {\n value: string | number | boolean\n label: string\n}\n\ninterface QuestionEntry {\n apiKey: string\n formKey: string\n fullPath: string\n variant: StateTaxQuestionVariant\n options?: QuestionOption[]\n isAdminOnly: boolean\n /** Server-provided answer at hook initialization. Used to compute the\n * `file_new_hire_report` lock-once-set rule. */\n initialValue: unknown\n}\n\nexport interface EmployeeStateTaxesQuestionMeta {\n state: string\n isWorkState: boolean\n apiKey: string\n formKey: string\n variant: StateTaxQuestionVariant\n isAdminOnly: boolean\n isWireSelectWithBooleanOptions: boolean\n}\n\nexport interface EmployeeStateTaxesMetadataConfig extends FieldsMetadataConfig<\n Record<string, z.ZodType>\n> {\n /** Group → questions, in API response order, post admin-filtering. */\n groups: Array<{\n state: string\n isWorkState: boolean\n questions: EmployeeStateTaxesQuestionMeta[]\n }>\n}\n\nexport type EmployeeStateTaxesSchemaResult = [\n schema: z.ZodType<EmployeeStateTaxesFormData, EmployeeStateTaxesFormData>,\n metadataConfig: EmployeeStateTaxesMetadataConfig,\n]\n\n/**\n * Builds a Zod schema and metadata config for a dynamic state-taxes form.\n *\n * Schema shape: `{ states: { [state]: { [camelKey]: value } } }` where the\n * inner record's keys mirror each API question's `key` after camelCasing.\n *\n * Required fields are tracked via `superRefine` (mirrors `buildFormSchema`'s\n * approach for static-shape forms). Admin-only questions are excluded from\n * both schema and metadata when `isAdmin=false`.\n */\nexport function createEmployeeStateTaxesSchema(\n employeeStateTaxes: EmployeeStateTaxesList[],\n options: EmployeeStateTaxesSchemaOptions = {},\n): EmployeeStateTaxesSchemaResult {\n const { isAdmin = false } = options\n\n const groupEntries: Array<{\n state: string\n isWorkState: boolean\n questions: QuestionEntry[]\n }> = []\n\n for (const stateGroup of employeeStateTaxes) {\n if (!stateGroup.state || !stateGroup.questions) continue\n\n const visibleQuestions: QuestionEntry[] = []\n for (const question of stateGroup.questions) {\n if (question.isQuestionForAdminOnly && !isAdmin) continue\n const formKey = snakeCaseToCamelCase(question.key)\n const fullPath = `states.${stateGroup.state}.${formKey}`\n visibleQuestions.push({\n apiKey: question.key,\n formKey,\n fullPath,\n variant: getQuestionVariant(question),\n options: normalizeOptions(question.inputQuestionFormat.options),\n isAdminOnly: question.isQuestionForAdminOnly,\n initialValue: question.answers[0]?.value,\n })\n }\n\n groupEntries.push({\n state: stateGroup.state,\n isWorkState: Boolean(stateGroup.isWorkState),\n questions: visibleQuestions,\n })\n }\n\n const statesShape: Record<string, z.ZodType> = {}\n for (const group of groupEntries) {\n const innerShape: Record<string, z.ZodType> = {}\n for (const entry of group.questions) {\n innerShape[entry.formKey] = z.unknown()\n }\n statesShape[group.state] = z.object(innerShape).optional()\n }\n\n const baseSchema = z.object({\n states: z.object(statesShape),\n })\n\n const refined = baseSchema.superRefine((data, ctx) => {\n for (const group of groupEntries) {\n const stateValues = data.states[group.state] ?? {}\n for (const entry of group.questions) {\n const value = (stateValues as Record<string, unknown>)[entry.formKey]\n if (isEmpty(value)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['states', group.state, entry.formKey],\n message: EmployeeStateTaxesErrorCodes.REQUIRED,\n })\n }\n }\n }\n })\n\n const schema = refined as unknown as z.ZodType<\n EmployeeStateTaxesFormData,\n EmployeeStateTaxesFormData\n >\n\n const groupsForMetadata = groupEntries.map(g => ({\n state: g.state,\n isWorkState: g.isWorkState,\n questions: g.questions.map(q => ({\n state: g.state,\n isWorkState: g.isWorkState,\n apiKey: q.apiKey,\n formKey: q.formKey,\n variant: q.variant,\n isAdminOnly: q.isAdminOnly,\n isWireSelectWithBooleanOptions: isWireSelectWithBooleanOptions(q.options),\n })),\n }))\n\n function getFieldsMetadata(): FieldsMetadata {\n const metadata: FieldsMetadata = {}\n for (const group of groupEntries) {\n for (const entry of group.questions) {\n const base: FieldMetadata = {\n name: entry.fullPath,\n isRequired: true,\n }\n\n if (isLockedOnceSet(entry.apiKey, entry.initialValue)) {\n base.isDisabled = true\n }\n\n if (entry.options && entry.options.length > 0) {\n const withOptions: FieldMetadataWithOptions = {\n ...base,\n options: entry.options.map(opt => ({\n value: String(opt.value),\n label: opt.label,\n })),\n }\n metadata[entry.fullPath] = withOptions\n } else {\n metadata[entry.fullPath] = base\n }\n }\n }\n return metadata\n }\n\n /**\n * Mirrors the existing `TaxInputs.tsx` rule for `file_new_hire_report`:\n * once a value has been recorded server-side, the question is locked.\n */\n function isLockedOnceSet(apiKey: string, initialValue: unknown): boolean {\n if (apiKey !== 'file_new_hire_report') return false\n return initialValue !== undefined && initialValue !== null\n }\n\n return [\n schema,\n {\n getFieldsMetadata,\n predicateDeps: [],\n groups: groupsForMetadata,\n } as EmployeeStateTaxesMetadataConfig,\n ]\n}\n\nfunction isWireSelectWithBooleanOptions(options: QuestionOption[] | undefined): boolean {\n if (!options || options.length === 0) return false\n return options.every(opt => typeof opt.value === 'boolean')\n}\n\nfunction normalizeOptions(\n options:\n | Array<{ value?: string | number | boolean | undefined; label?: string | undefined }>\n | undefined,\n): QuestionOption[] | undefined {\n if (!options) return undefined\n const result: QuestionOption[] = []\n for (const opt of options) {\n if (opt.value === undefined || opt.label === undefined) continue\n result.push({ value: opt.value, label: opt.label })\n }\n return result.length > 0 ? result : undefined\n}\n\nexport type EmployeeStateTaxesQuestion = EmployeeStateTaxQuestion\n"],"names":["EmployeeStateTaxesErrorCodes","isEmpty","value","createEmployeeStateTaxesSchema","employeeStateTaxes","options","isAdmin","groupEntries","stateGroup","visibleQuestions","question","formKey","snakeCaseToCamelCase","fullPath","getQuestionVariant","normalizeOptions","statesShape","group","innerShape","entry","z","schema","data","ctx","stateValues","groupsForMetadata","g","q","isWireSelectWithBooleanOptions","getFieldsMetadata","metadata","base","isLockedOnceSet","withOptions","opt","apiKey","initialValue","result"],"mappings":";;;AAoBO,MAAMA,IAA+B;AAAA,EAC1C,UAAU;AACZ;AAyBA,SAASC,EAAQC,GAAyB;AAIxC,SAHI,GAAuBA,KAAU,QACjC,OAAOA,KAAU,YAAYA,EAAM,KAAA,MAAW,MAC9C,OAAOA,KAAU,YAAY,OAAO,MAAMA,CAAK,KAC/CA,aAAiB,QAAQ,OAAO,MAAMA,EAAM,QAAA,CAAS;AAE3D;AA6DO,SAASC,EACdC,GACAC,IAA2C,IACX;AAChC,QAAM,EAAE,SAAAC,IAAU,GAAA,IAAUD,GAEtBE,IAID,CAAA;AAEL,aAAWC,KAAcJ,GAAoB;AAC3C,QAAI,CAACI,EAAW,SAAS,CAACA,EAAW,UAAW;AAEhD,UAAMC,IAAoC,CAAA;AAC1C,eAAWC,KAAYF,EAAW,WAAW;AAC3C,UAAIE,EAAS,0BAA0B,CAACJ,EAAS;AACjD,YAAMK,IAAUC,EAAqBF,EAAS,GAAG,GAC3CG,IAAW,UAAUL,EAAW,KAAK,IAAIG,CAAO;AACtD,MAAAF,EAAiB,KAAK;AAAA,QACpB,QAAQC,EAAS;AAAA,QACjB,SAAAC;AAAA,QACA,UAAAE;AAAA,QACA,SAASC,EAAmBJ,CAAQ;AAAA,QACpC,SAASK,EAAiBL,EAAS,oBAAoB,OAAO;AAAA,QAC9D,aAAaA,EAAS;AAAA,QACtB,cAAcA,EAAS,QAAQ,CAAC,GAAG;AAAA,MAAA,CACpC;AAAA,IACH;AAEA,IAAAH,EAAa,KAAK;AAAA,MAChB,OAAOC,EAAW;AAAA,MAClB,aAAa,EAAQA,EAAW;AAAA,MAChC,WAAWC;AAAA,IAAA,CACZ;AAAA,EACH;AAEA,QAAMO,IAAyC,CAAA;AAC/C,aAAWC,KAASV,GAAc;AAChC,UAAMW,IAAwC,CAAA;AAC9C,eAAWC,KAASF,EAAM;AACxB,MAAAC,EAAWC,EAAM,OAAO,IAAIC,EAAE,QAAA;AAEhC,IAAAJ,EAAYC,EAAM,KAAK,IAAIG,EAAE,OAAOF,CAAU,EAAE,SAAA;AAAA,EAClD;AAsBA,QAAMG,IApBaD,EAAE,OAAO;AAAA,IAC1B,QAAQA,EAAE,OAAOJ,CAAW;AAAA,EAAA,CAC7B,EAE0B,YAAY,CAACM,GAAMC,MAAQ;AACpD,eAAWN,KAASV,GAAc;AAChC,YAAMiB,IAAcF,EAAK,OAAOL,EAAM,KAAK,KAAK,CAAA;AAChD,iBAAWE,KAASF,EAAM,WAAW;AACnC,cAAMf,IAASsB,EAAwCL,EAAM,OAAO;AACpE,QAAIlB,EAAQC,CAAK,KACfqB,EAAI,SAAS;AAAA,UACX,MAAMH,EAAE,aAAa;AAAA,UACrB,MAAM,CAAC,UAAUH,EAAM,OAAOE,EAAM,OAAO;AAAA,UAC3C,SAASnB,EAA6B;AAAA,QAAA,CACvC;AAAA,MAEL;AAAA,IACF;AAAA,EACF,CAAC,GAOKyB,IAAoBlB,EAAa,IAAI,CAAAmB,OAAM;AAAA,IAC/C,OAAOA,EAAE;AAAA,IACT,aAAaA,EAAE;AAAA,IACf,WAAWA,EAAE,UAAU,IAAI,CAAAC,OAAM;AAAA,MAC/B,OAAOD,EAAE;AAAA,MACT,aAAaA,EAAE;AAAA,MACf,QAAQC,EAAE;AAAA,MACV,SAASA,EAAE;AAAA,MACX,SAASA,EAAE;AAAA,MACX,aAAaA,EAAE;AAAA,MACf,gCAAgCC,EAA+BD,EAAE,OAAO;AAAA,IAAA,EACxE;AAAA,EAAA,EACF;AAEF,WAASE,IAAoC;AAC3C,UAAMC,IAA2B,CAAA;AACjC,eAAWb,KAASV;AAClB,iBAAWY,KAASF,EAAM,WAAW;AACnC,cAAMc,IAAsB;AAAA,UAC1B,MAAMZ,EAAM;AAAA,UACZ,YAAY;AAAA,QAAA;AAOd,YAJIa,EAAgBb,EAAM,QAAQA,EAAM,YAAY,MAClDY,EAAK,aAAa,KAGhBZ,EAAM,WAAWA,EAAM,QAAQ,SAAS,GAAG;AAC7C,gBAAMc,IAAwC;AAAA,YAC5C,GAAGF;AAAA,YACH,SAASZ,EAAM,QAAQ,IAAI,CAAAe,OAAQ;AAAA,cACjC,OAAO,OAAOA,EAAI,KAAK;AAAA,cACvB,OAAOA,EAAI;AAAA,YAAA,EACX;AAAA,UAAA;AAEJ,UAAAJ,EAASX,EAAM,QAAQ,IAAIc;AAAA,QAC7B;AACE,UAAAH,EAASX,EAAM,QAAQ,IAAIY;AAAA,MAE/B;AAEF,WAAOD;AAAA,EACT;AAMA,WAASE,EAAgBG,GAAgBC,GAAgC;AACvE,WAAID,MAAW,yBAA+B,KACTC,KAAiB;AAAA,EACxD;AAEA,SAAO;AAAA,IACLf;AAAA,IACA;AAAA,MACE,mBAAAQ;AAAA,MACA,eAAe,CAAA;AAAA,MACf,QAAQJ;AAAA,IAAA;AAAA,EACV;AAEJ;AAEA,SAASG,EAA+BvB,GAAgD;AACtF,SAAI,CAACA,KAAWA,EAAQ,WAAW,IAAU,KACtCA,EAAQ,MAAM,CAAA6B,MAAO,OAAOA,EAAI,SAAU,SAAS;AAC5D;AAEA,SAASnB,EACPV,GAG8B;AAC9B,MAAI,CAACA,EAAS;AACd,QAAMgC,IAA2B,CAAA;AACjC,aAAWH,KAAO7B;AAChB,IAAI6B,EAAI,UAAU,UAAaA,EAAI,UAAU,UAC7CG,EAAO,KAAK,EAAE,OAAOH,EAAI,OAAO,OAAOA,EAAI,OAAO;AAEpD,SAAOG,EAAO,SAAS,IAAIA,IAAS;AACtC;"}
@@ -0,0 +1,12 @@
1
+ import { BoundFieldMeta } from './fieldMeta';
2
+ import { CurrencyStateTaxFieldProps, DateStateTaxFieldProps, NumberStateTaxFieldProps, RadioStateTaxFieldProps, SelectStateTaxFieldProps, TextStateTaxFieldProps } from './fieldProps';
3
+ interface MetaProps {
4
+ meta: BoundFieldMeta;
5
+ }
6
+ export declare function SelectStateTaxField({ meta, ...props }: MetaProps & SelectStateTaxFieldProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function RadioStateTaxField({ meta, ...props }: MetaProps & RadioStateTaxFieldProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function TextStateTaxField({ meta, ...props }: MetaProps & TextStateTaxFieldProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function NumberStateTaxField({ meta, ...props }: MetaProps & NumberStateTaxFieldProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function CurrencyStateTaxField({ meta, ...props }: MetaProps & CurrencyStateTaxFieldProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function DateStateTaxField({ meta, ...props }: MetaProps & DateStateTaxFieldProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,76 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useTranslation as l } from "react-i18next";
3
+ import { EmployeeStateTaxesErrorCodes as s } from "./employeeStateTaxesSchema.js";
4
+ import { DatePickerHookField as d } from "../../../../../partner-hook-utils/form/fields/DatePickerHookField.js";
5
+ import { NumberInputHookField as r } from "../../../../../partner-hook-utils/form/fields/NumberInputHookField.js";
6
+ import { TextInputHookField as c } from "../../../../../partner-hook-utils/form/fields/TextInputHookField.js";
7
+ import { RadioGroupHookField as m } from "../../../../../partner-hook-utils/form/fields/RadioGroupHookField.js";
8
+ import { SelectHookField as u } from "../../../../../partner-hook-utils/form/fields/SelectHookField.js";
9
+ function f() {
10
+ const { t: o } = l("Employee.StateTaxes");
11
+ return { [s.REQUIRED]: o("validations.required") };
12
+ }
13
+ function a(o, e) {
14
+ const n = f();
15
+ return {
16
+ name: o.name,
17
+ label: e.label ?? o.apiLabel,
18
+ description: e.description !== void 0 ? e.description : o.apiDescription,
19
+ formHookResult: e.formHookResult,
20
+ validationMessages: { ...n, ...e.validationMessages }
21
+ };
22
+ }
23
+ function h({ meta: o, ...e }) {
24
+ const t = {
25
+ ...a(o, e),
26
+ placeholder: e.placeholder,
27
+ FieldComponent: e.FieldComponent
28
+ };
29
+ return /* @__PURE__ */ i(u, { ...t });
30
+ }
31
+ function P({ meta: o, ...e }) {
32
+ const t = {
33
+ ...a(o, e),
34
+ FieldComponent: e.FieldComponent
35
+ };
36
+ return /* @__PURE__ */ i(m, { ...t });
37
+ }
38
+ function H({ meta: o, ...e }) {
39
+ const t = {
40
+ ...a(o, e),
41
+ placeholder: e.placeholder
42
+ };
43
+ return /* @__PURE__ */ i(c, { ...t });
44
+ }
45
+ function R({ meta: o, ...e }) {
46
+ const t = {
47
+ ...a(o, e),
48
+ format: "decimal",
49
+ FieldComponent: e.FieldComponent
50
+ };
51
+ return /* @__PURE__ */ i(r, { ...t });
52
+ }
53
+ function v({ meta: o, ...e }) {
54
+ const t = {
55
+ ...a(o, e),
56
+ format: "currency",
57
+ FieldComponent: e.FieldComponent
58
+ };
59
+ return /* @__PURE__ */ i(r, { ...t });
60
+ }
61
+ function D({ meta: o, ...e }) {
62
+ const t = {
63
+ ...a(o, e),
64
+ FieldComponent: e.FieldComponent
65
+ };
66
+ return /* @__PURE__ */ i(d, { ...t });
67
+ }
68
+ export {
69
+ v as CurrencyStateTaxField,
70
+ D as DateStateTaxField,
71
+ R as NumberStateTaxField,
72
+ P as RadioStateTaxField,
73
+ h as SelectStateTaxField,
74
+ H as TextStateTaxField
75
+ };
76
+ //# sourceMappingURL=fieldComponents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldComponents.js","sources":["../../../../../../src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { EmployeeStateTaxesErrorCodes } from './employeeStateTaxesSchema'\nimport type { BoundFieldMeta } from './fieldMeta'\nimport type {\n BaseStateTaxFieldProps,\n CurrencyStateTaxFieldProps,\n DateStateTaxFieldProps,\n NumberStateTaxFieldProps,\n RadioStateTaxFieldProps,\n SelectStateTaxFieldProps,\n StateTaxValidationMessages,\n TextStateTaxFieldProps,\n} from './fieldProps'\nimport {\n SelectHookField,\n RadioGroupHookField,\n TextInputHookField,\n NumberInputHookField,\n DatePickerHookField,\n} from '@/partner-hook-utils/form/fields'\nimport type { SelectHookFieldProps } from '@/partner-hook-utils/form/fields/SelectHookField'\nimport type { RadioGroupHookFieldProps } from '@/partner-hook-utils/form/fields/RadioGroupHookField'\nimport type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField'\nimport type { NumberInputHookFieldProps } from '@/partner-hook-utils/form/fields/NumberInputHookField'\nimport type { DatePickerHookFieldProps } from '@/partner-hook-utils/form/fields/DatePickerHookField'\nimport type { FormHookResult } from '@/partner-hook-utils/types'\n\ninterface MetaProps {\n meta: BoundFieldMeta\n}\n\nfunction useStateTaxValidationDefaults(): StateTaxValidationMessages {\n const { t } = useTranslation('Employee.StateTaxes')\n return { [EmployeeStateTaxesErrorCodes.REQUIRED]: t('validations.required') }\n}\n\nfunction useResolvedBaseProps(\n meta: BoundFieldMeta,\n props: BaseStateTaxFieldProps,\n): {\n name: string\n label: string\n description: ReactNode\n formHookResult: FormHookResult | undefined\n validationMessages: StateTaxValidationMessages\n} {\n const defaults = useStateTaxValidationDefaults()\n return {\n name: meta.name,\n label: props.label ?? meta.apiLabel,\n description: props.description !== undefined ? props.description : meta.apiDescription,\n formHookResult: props.formHookResult,\n validationMessages: { ...defaults, ...props.validationMessages },\n }\n}\n\nexport function SelectStateTaxField({ meta, ...props }: MetaProps & SelectStateTaxFieldProps) {\n const base = useResolvedBaseProps(meta, props)\n const hookProps: SelectHookFieldProps<typeof EmployeeStateTaxesErrorCodes.REQUIRED> = {\n ...base,\n placeholder: props.placeholder,\n FieldComponent: props.FieldComponent,\n }\n return <SelectHookField {...hookProps} />\n}\n\nexport function RadioStateTaxField({ meta, ...props }: MetaProps & RadioStateTaxFieldProps) {\n const base = useResolvedBaseProps(meta, props)\n const hookProps: RadioGroupHookFieldProps<typeof EmployeeStateTaxesErrorCodes.REQUIRED> = {\n ...base,\n FieldComponent: props.FieldComponent,\n }\n return <RadioGroupHookField {...hookProps} />\n}\n\nexport function TextStateTaxField({ meta, ...props }: MetaProps & TextStateTaxFieldProps) {\n const base = useResolvedBaseProps(meta, props)\n const hookProps: TextInputHookFieldProps<typeof EmployeeStateTaxesErrorCodes.REQUIRED> = {\n ...base,\n placeholder: props.placeholder,\n }\n return <TextInputHookField {...hookProps} />\n}\n\nexport function NumberStateTaxField({ meta, ...props }: MetaProps & NumberStateTaxFieldProps) {\n const base = useResolvedBaseProps(meta, props)\n const hookProps: NumberInputHookFieldProps<typeof EmployeeStateTaxesErrorCodes.REQUIRED> = {\n ...base,\n format: 'decimal',\n FieldComponent: props.FieldComponent,\n }\n return <NumberInputHookField {...hookProps} />\n}\n\nexport function CurrencyStateTaxField({ meta, ...props }: MetaProps & CurrencyStateTaxFieldProps) {\n const base = useResolvedBaseProps(meta, props)\n const hookProps: NumberInputHookFieldProps<typeof EmployeeStateTaxesErrorCodes.REQUIRED> = {\n ...base,\n format: 'currency',\n FieldComponent: props.FieldComponent,\n }\n return <NumberInputHookField {...hookProps} />\n}\n\nexport function DateStateTaxField({ meta, ...props }: MetaProps & DateStateTaxFieldProps) {\n const base = useResolvedBaseProps(meta, props)\n const hookProps: DatePickerHookFieldProps<typeof EmployeeStateTaxesErrorCodes.REQUIRED> = {\n ...base,\n FieldComponent: props.FieldComponent,\n }\n return <DatePickerHookField {...hookProps} />\n}\n"],"names":["useStateTaxValidationDefaults","t","useTranslation","EmployeeStateTaxesErrorCodes","useResolvedBaseProps","meta","props","defaults","SelectStateTaxField","hookProps","jsx","SelectHookField","RadioStateTaxField","RadioGroupHookField","TextStateTaxField","TextInputHookField","NumberStateTaxField","NumberInputHookField","CurrencyStateTaxField","DateStateTaxField","DatePickerHookField"],"mappings":";;;;;;;;AAgCA,SAASA,IAA4D;AACnE,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAClD,SAAO,EAAE,CAACC,EAA6B,QAAQ,GAAGF,EAAE,sBAAsB,EAAA;AAC5E;AAEA,SAASG,EACPC,GACAC,GAOA;AACA,QAAMC,IAAWP,EAAA;AACjB,SAAO;AAAA,IACL,MAAMK,EAAK;AAAA,IACX,OAAOC,EAAM,SAASD,EAAK;AAAA,IAC3B,aAAaC,EAAM,gBAAgB,SAAYA,EAAM,cAAcD,EAAK;AAAA,IACxE,gBAAgBC,EAAM;AAAA,IACtB,oBAAoB,EAAE,GAAGC,GAAU,GAAGD,EAAM,mBAAA;AAAA,EAAmB;AAEnE;AAEO,SAASE,EAAoB,EAAE,MAAAH,GAAM,GAAGC,KAA+C;AAE5F,QAAMG,IAAgF;AAAA,IACpF,GAFWL,EAAqBC,GAAMC,CAAK;AAAA,IAG3C,aAAaA,EAAM;AAAA,IACnB,gBAAgBA,EAAM;AAAA,EAAA;AAExB,SAAO,gBAAAI,EAACC,GAAA,EAAiB,GAAGF,EAAA,CAAW;AACzC;AAEO,SAASG,EAAmB,EAAE,MAAAP,GAAM,GAAGC,KAA8C;AAE1F,QAAMG,IAAoF;AAAA,IACxF,GAFWL,EAAqBC,GAAMC,CAAK;AAAA,IAG3C,gBAAgBA,EAAM;AAAA,EAAA;AAExB,SAAO,gBAAAI,EAACG,GAAA,EAAqB,GAAGJ,EAAA,CAAW;AAC7C;AAEO,SAASK,EAAkB,EAAE,MAAAT,GAAM,GAAGC,KAA6C;AAExF,QAAMG,IAAmF;AAAA,IACvF,GAFWL,EAAqBC,GAAMC,CAAK;AAAA,IAG3C,aAAaA,EAAM;AAAA,EAAA;AAErB,SAAO,gBAAAI,EAACK,GAAA,EAAoB,GAAGN,EAAA,CAAW;AAC5C;AAEO,SAASO,EAAoB,EAAE,MAAAX,GAAM,GAAGC,KAA+C;AAE5F,QAAMG,IAAqF;AAAA,IACzF,GAFWL,EAAqBC,GAAMC,CAAK;AAAA,IAG3C,QAAQ;AAAA,IACR,gBAAgBA,EAAM;AAAA,EAAA;AAExB,SAAO,gBAAAI,EAACO,GAAA,EAAsB,GAAGR,EAAA,CAAW;AAC9C;AAEO,SAASS,EAAsB,EAAE,MAAAb,GAAM,GAAGC,KAAiD;AAEhG,QAAMG,IAAqF;AAAA,IACzF,GAFWL,EAAqBC,GAAMC,CAAK;AAAA,IAG3C,QAAQ;AAAA,IACR,gBAAgBA,EAAM;AAAA,EAAA;AAExB,SAAO,gBAAAI,EAACO,GAAA,EAAsB,GAAGR,EAAA,CAAW;AAC9C;AAEO,SAASU,EAAkB,EAAE,MAAAd,GAAM,GAAGC,KAA6C;AAExF,QAAMG,IAAoF;AAAA,IACxF,GAFWL,EAAqBC,GAAMC,CAAK;AAAA,IAG3C,gBAAgBA,EAAM;AAAA,EAAA;AAExB,SAAO,gBAAAI,EAACU,GAAA,EAAqB,GAAGX,EAAA,CAAW;AAC7C;"}
@@ -0,0 +1,14 @@
1
+ import { EmployeeStateTaxQuestion } from '@gusto/embedded-api/models/components/employeestatetaxquestion';
2
+ /**
3
+ * Lowercase post-mapping variant that decides which UI primitive renders
4
+ * a given state-tax question. Mirrors the existing `QuestionInput` switch
5
+ * in `src/components/Common/TaxInputs/TaxInputs.tsx`, narrowed to the
6
+ * cases that apply to the employee state-tax endpoint.
7
+ */
8
+ export type StateTaxQuestionVariant = 'select' | 'radio' | 'text' | 'number' | 'currency' | 'date';
9
+ /**
10
+ * Resolves a question's UI variant from its API shape and per-key promotion
11
+ * rules. Unknown wire types fall through to `text` to mirror the existing
12
+ * `QuestionInput` default branch.
13
+ */
14
+ export declare function getQuestionVariant(question: EmployeeStateTaxQuestion): StateTaxQuestionVariant;
@@ -0,0 +1,23 @@
1
+ const t = /* @__PURE__ */ new Set(["file_new_hire_report"]);
2
+ function r(e) {
3
+ if (t.has(e.key))
4
+ return "radio";
5
+ switch (e.inputQuestionFormat.type.toLowerCase()) {
6
+ case "select":
7
+ return "select";
8
+ case "number":
9
+ return "number";
10
+ case "currency":
11
+ return "currency";
12
+ case "date":
13
+ return "date";
14
+ case "text":
15
+ return "text";
16
+ default:
17
+ return "text";
18
+ }
19
+ }
20
+ export {
21
+ r as getQuestionVariant
22
+ };
23
+ //# sourceMappingURL=fieldMapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldMapping.js","sources":["../../../../../../src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.ts"],"sourcesContent":["import type { EmployeeStateTaxQuestion } from '@gusto/embedded-api/models/components/employeestatetaxquestion'\n\n/**\n * Lowercase post-mapping variant that decides which UI primitive renders\n * a given state-tax question. Mirrors the existing `QuestionInput` switch\n * in `src/components/Common/TaxInputs/TaxInputs.tsx`, narrowed to the\n * cases that apply to the employee state-tax endpoint.\n */\nexport type StateTaxQuestionVariant = 'select' | 'radio' | 'text' | 'number' | 'currency' | 'date'\n\n/**\n * Per-key mapping rules that promote API `Select`s to other variants for\n * UX reasons.\n *\n * `file_new_hire_report` is internally a Radio per the canonical Ruby\n * helper (`FileNewHireReportHelper.display_field_for_file_new_hire_report`),\n * but the converter at\n * `convert_employee_state_field_to_gws_flow_questions.rb` emits it as\n * `Select` because there's no Radio output type. The existing component at\n * `src/components/Employee/StateTaxes/StateForm.tsx` intends to override\n * `questionType` to `'Radio'` for this question but the comparison checks\n * `'fileNewHireReport'` (camelCase) against an API `key` of\n * `'file_new_hire_report'` (snake_case), so the override never fires today.\n *\n * This map fixes that bug and surfaces it as a Radio in the new hook.\n */\nconst SELECT_TO_RADIO_PROMOTION_KEYS = new Set<string>(['file_new_hire_report'])\n\n/**\n * Resolves a question's UI variant from its API shape and per-key promotion\n * rules. Unknown wire types fall through to `text` to mirror the existing\n * `QuestionInput` default branch.\n */\nexport function getQuestionVariant(question: EmployeeStateTaxQuestion): StateTaxQuestionVariant {\n if (SELECT_TO_RADIO_PROMOTION_KEYS.has(question.key)) {\n return 'radio'\n }\n\n switch (question.inputQuestionFormat.type.toLowerCase()) {\n case 'select':\n return 'select'\n case 'number':\n return 'number'\n case 'currency':\n return 'currency'\n case 'date':\n return 'date'\n case 'text':\n return 'text'\n default:\n return 'text'\n }\n}\n"],"names":["SELECT_TO_RADIO_PROMOTION_KEYS","getQuestionVariant","question"],"mappings":"AA0BA,MAAMA,IAAiC,oBAAI,IAAY,CAAC,sBAAsB,CAAC;AAOxE,SAASC,EAAmBC,GAA6D;AAC9F,MAAIF,EAA+B,IAAIE,EAAS,GAAG;AACjD,WAAO;AAGT,UAAQA,EAAS,oBAAoB,KAAK,YAAA,GAAY;AAAA,IACpD,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EAAA;AAEb;"}
@@ -0,0 +1,6 @@
1
+ /** Per-question metadata baked into each bound Field component. */
2
+ export interface BoundFieldMeta {
3
+ name: string;
4
+ apiLabel: string;
5
+ apiDescription: string | null;
6
+ }
@@ -0,0 +1,39 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ import { EmployeeStateTaxesErrorCodes } from './employeeStateTaxesSchema';
3
+ import { ValidationMessages, FormHookResult } from '../../../../../partner-hook-utils/types';
4
+ import { SelectProps } from '../../../../Common/UI/Select/SelectTypes';
5
+ import { RadioGroupProps } from '../../../../Common/UI/RadioGroup/RadioGroupTypes';
6
+ import { TextInputProps } from '../../../../Common/UI/TextInput/TextInputTypes';
7
+ import { NumberInputProps } from '../../../../Common/UI/NumberInput/NumberInputTypes';
8
+ import { DatePickerProps } from '../../../../Common/UI/DatePicker/DatePickerTypes';
9
+ export type StateTaxValidationMessages = ValidationMessages<typeof EmployeeStateTaxesErrorCodes.REQUIRED>;
10
+ export interface BaseStateTaxFieldProps {
11
+ /** Overrides the API-supplied label. When omitted, falls back to `question.label`. */
12
+ label?: string;
13
+ /** Overrides the API-supplied description. When omitted, falls back to `question.description`
14
+ * (sanitized internally by the underlying field via DOMPurify). */
15
+ description?: ReactNode;
16
+ formHookResult?: FormHookResult;
17
+ /** Override the default localized validation message(s). */
18
+ validationMessages?: StateTaxValidationMessages;
19
+ }
20
+ export type SelectStateTaxFieldProps = BaseStateTaxFieldProps & {
21
+ placeholder?: string;
22
+ FieldComponent?: ComponentType<SelectProps>;
23
+ };
24
+ export type RadioStateTaxFieldProps = BaseStateTaxFieldProps & {
25
+ FieldComponent?: ComponentType<RadioGroupProps>;
26
+ };
27
+ export type TextStateTaxFieldProps = BaseStateTaxFieldProps & {
28
+ placeholder?: string;
29
+ FieldComponent?: ComponentType<TextInputProps>;
30
+ };
31
+ export type NumberStateTaxFieldProps = BaseStateTaxFieldProps & {
32
+ FieldComponent?: ComponentType<NumberInputProps>;
33
+ };
34
+ export type CurrencyStateTaxFieldProps = BaseStateTaxFieldProps & {
35
+ FieldComponent?: ComponentType<NumberInputProps>;
36
+ };
37
+ export type DateStateTaxFieldProps = BaseStateTaxFieldProps & {
38
+ FieldComponent?: ComponentType<DatePickerProps>;
39
+ };
@@ -0,0 +1,46 @@
1
+ import { ComponentType } from 'react';
2
+ import { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist';
3
+ import { CurrencyStateTaxFieldProps, DateStateTaxFieldProps, NumberStateTaxFieldProps, RadioStateTaxFieldProps, SelectStateTaxFieldProps, TextStateTaxFieldProps } from './fieldProps';
4
+ export type { BaseStateTaxFieldProps, CurrencyStateTaxFieldProps, DateStateTaxFieldProps, NumberStateTaxFieldProps, RadioStateTaxFieldProps, SelectStateTaxFieldProps, StateTaxValidationMessages, TextStateTaxFieldProps, } from './fieldProps';
5
+ interface SharedQuestionMetadata {
6
+ /** Stable identifier for this question (camelCase form of the API key). */
7
+ questionId: string;
8
+ /** API-supplied label; default text for the rendered Field. */
9
+ label: string;
10
+ /** API-supplied description (raw HTML, sanitized internally before render). */
11
+ description: string | null;
12
+ }
13
+ export type StateTaxQuestionFieldEntry = ({
14
+ type: 'select';
15
+ Field: ComponentType<SelectStateTaxFieldProps>;
16
+ } & SharedQuestionMetadata) | ({
17
+ type: 'radio';
18
+ Field: ComponentType<RadioStateTaxFieldProps>;
19
+ } & SharedQuestionMetadata) | ({
20
+ type: 'text';
21
+ Field: ComponentType<TextStateTaxFieldProps>;
22
+ } & SharedQuestionMetadata) | ({
23
+ type: 'number';
24
+ Field: ComponentType<NumberStateTaxFieldProps>;
25
+ } & SharedQuestionMetadata) | ({
26
+ type: 'currency';
27
+ Field: ComponentType<CurrencyStateTaxFieldProps>;
28
+ } & SharedQuestionMetadata) | ({
29
+ type: 'date';
30
+ Field: ComponentType<DateStateTaxFieldProps>;
31
+ } & SharedQuestionMetadata);
32
+ export interface StateTaxFieldsGroup {
33
+ state: string;
34
+ questions: StateTaxQuestionFieldEntry[];
35
+ }
36
+ export interface CreateStateFieldsOptions {
37
+ isAdmin: boolean;
38
+ }
39
+ export declare function createStateFields(employeeStateTaxes: EmployeeStateTaxesList[], options: CreateStateFieldsOptions): StateTaxFieldsGroup[];
40
+ /**
41
+ * Memoization helper: state-tax data refetches will return new array
42
+ * references even when the underlying questions are unchanged. Use this
43
+ * inside a `useMemo` whose dependency is the raw `employeeStateTaxes` to
44
+ * avoid rebuilding bound Field components on every render.
45
+ */
46
+ export declare function useStateFields(employeeStateTaxes: EmployeeStateTaxesList[], isAdmin: boolean): StateTaxFieldsGroup[];
@@ -0,0 +1,93 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { useMemo as f } from "react";
3
+ import { getQuestionVariant as p } from "./fieldMapping.js";
4
+ import { DateStateTaxField as F, CurrencyStateTaxField as x, NumberStateTaxField as S, TextStateTaxField as m, RadioStateTaxField as T, SelectStateTaxField as y } from "./fieldComponents.js";
5
+ import { snakeCaseToCamelCase as b } from "../../../../../helpers/formattedStrings.js";
6
+ function B(o, e) {
7
+ const { isAdmin: n } = e, i = [];
8
+ for (const t of o) {
9
+ if (!t.state || !t.questions) continue;
10
+ const a = [];
11
+ for (const r of t.questions) {
12
+ if (r.isQuestionForAdminOnly && !n) continue;
13
+ const s = b(r.key), c = {
14
+ name: `states.${t.state}.${s}`,
15
+ apiLabel: r.label,
16
+ apiDescription: r.description
17
+ }, d = p(r), l = {
18
+ questionId: s,
19
+ label: r.label,
20
+ description: r.description
21
+ };
22
+ a.push(q(d, c, l));
23
+ }
24
+ a.length !== 0 && i.push({
25
+ state: t.state,
26
+ questions: a
27
+ });
28
+ }
29
+ return i;
30
+ }
31
+ function q(o, e, n) {
32
+ switch (o) {
33
+ case "select":
34
+ return {
35
+ type: "select",
36
+ Field: function(t) {
37
+ return /* @__PURE__ */ u(y, { meta: e, ...t });
38
+ },
39
+ ...n
40
+ };
41
+ case "radio":
42
+ return {
43
+ type: "radio",
44
+ Field: function(t) {
45
+ return /* @__PURE__ */ u(T, { meta: e, ...t });
46
+ },
47
+ ...n
48
+ };
49
+ case "text":
50
+ return {
51
+ type: "text",
52
+ Field: function(t) {
53
+ return /* @__PURE__ */ u(m, { meta: e, ...t });
54
+ },
55
+ ...n
56
+ };
57
+ case "number":
58
+ return {
59
+ type: "number",
60
+ Field: function(t) {
61
+ return /* @__PURE__ */ u(S, { meta: e, ...t });
62
+ },
63
+ ...n
64
+ };
65
+ case "currency":
66
+ return {
67
+ type: "currency",
68
+ Field: function(t) {
69
+ return /* @__PURE__ */ u(x, { meta: e, ...t });
70
+ },
71
+ ...n
72
+ };
73
+ case "date":
74
+ return {
75
+ type: "date",
76
+ Field: function(t) {
77
+ return /* @__PURE__ */ u(F, { meta: e, ...t });
78
+ },
79
+ ...n
80
+ };
81
+ }
82
+ }
83
+ function Q(o, e) {
84
+ return f(
85
+ () => B(o, { isAdmin: e }),
86
+ [o, e]
87
+ );
88
+ }
89
+ export {
90
+ B as createStateFields,
91
+ Q as useStateFields
92
+ };
93
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sources":["../../../../../../src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useMemo } from 'react'\nimport type { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist'\nimport { getQuestionVariant, type StateTaxQuestionVariant } from './fieldMapping'\nimport {\n CurrencyStateTaxField,\n DateStateTaxField,\n NumberStateTaxField,\n RadioStateTaxField,\n SelectStateTaxField,\n TextStateTaxField,\n} from './fieldComponents'\nimport type { BoundFieldMeta } from './fieldMeta'\nimport type {\n CurrencyStateTaxFieldProps,\n DateStateTaxFieldProps,\n NumberStateTaxFieldProps,\n RadioStateTaxFieldProps,\n SelectStateTaxFieldProps,\n TextStateTaxFieldProps,\n} from './fieldProps'\nimport { snakeCaseToCamelCase } from '@/helpers/formattedStrings'\n\nexport type {\n BaseStateTaxFieldProps,\n CurrencyStateTaxFieldProps,\n DateStateTaxFieldProps,\n NumberStateTaxFieldProps,\n RadioStateTaxFieldProps,\n SelectStateTaxFieldProps,\n StateTaxValidationMessages,\n TextStateTaxFieldProps,\n} from './fieldProps'\n\n// ── Discriminated union surfaced to partners ───────────────────────────\n\ninterface SharedQuestionMetadata {\n /** Stable identifier for this question (camelCase form of the API key). */\n questionId: string\n /** API-supplied label; default text for the rendered Field. */\n label: string\n /** API-supplied description (raw HTML, sanitized internally before render). */\n description: string | null\n}\n\nexport type StateTaxQuestionFieldEntry =\n | ({ type: 'select'; Field: ComponentType<SelectStateTaxFieldProps> } & SharedQuestionMetadata)\n | ({ type: 'radio'; Field: ComponentType<RadioStateTaxFieldProps> } & SharedQuestionMetadata)\n | ({ type: 'text'; Field: ComponentType<TextStateTaxFieldProps> } & SharedQuestionMetadata)\n | ({ type: 'number'; Field: ComponentType<NumberStateTaxFieldProps> } & SharedQuestionMetadata)\n | ({\n type: 'currency'\n Field: ComponentType<CurrencyStateTaxFieldProps>\n } & SharedQuestionMetadata)\n | ({ type: 'date'; Field: ComponentType<DateStateTaxFieldProps> } & SharedQuestionMetadata)\n\nexport interface StateTaxFieldsGroup {\n state: string\n questions: StateTaxQuestionFieldEntry[]\n}\n\n// ── Factory ────────────────────────────────────────────────────────────\n\nexport interface CreateStateFieldsOptions {\n isAdmin: boolean\n}\n\nexport function createStateFields(\n employeeStateTaxes: EmployeeStateTaxesList[],\n options: CreateStateFieldsOptions,\n): StateTaxFieldsGroup[] {\n const { isAdmin } = options\n const groups: StateTaxFieldsGroup[] = []\n\n for (const stateGroup of employeeStateTaxes) {\n if (!stateGroup.state || !stateGroup.questions) continue\n\n const questions: StateTaxQuestionFieldEntry[] = []\n for (const question of stateGroup.questions) {\n if (question.isQuestionForAdminOnly && !isAdmin) continue\n\n const formKey = snakeCaseToCamelCase(question.key)\n const meta: BoundFieldMeta = {\n name: `states.${stateGroup.state}.${formKey}`,\n apiLabel: question.label,\n apiDescription: question.description,\n }\n const variant = getQuestionVariant(question)\n const shared: SharedQuestionMetadata = {\n questionId: formKey,\n label: question.label,\n description: question.description,\n }\n\n questions.push(buildEntry(variant, meta, shared))\n }\n\n if (questions.length === 0) continue\n\n groups.push({\n state: stateGroup.state,\n questions,\n })\n }\n\n return groups\n}\n\nfunction buildEntry(\n variant: StateTaxQuestionVariant,\n meta: BoundFieldMeta,\n shared: SharedQuestionMetadata,\n): StateTaxQuestionFieldEntry {\n switch (variant) {\n case 'select':\n return {\n type: 'select',\n Field: function BoundSelectStateTaxField(props: SelectStateTaxFieldProps) {\n return <SelectStateTaxField meta={meta} {...props} />\n },\n ...shared,\n }\n case 'radio':\n return {\n type: 'radio',\n Field: function BoundRadioStateTaxField(props: RadioStateTaxFieldProps) {\n return <RadioStateTaxField meta={meta} {...props} />\n },\n ...shared,\n }\n case 'text':\n return {\n type: 'text',\n Field: function BoundTextStateTaxField(props: TextStateTaxFieldProps) {\n return <TextStateTaxField meta={meta} {...props} />\n },\n ...shared,\n }\n case 'number':\n return {\n type: 'number',\n Field: function BoundNumberStateTaxField(props: NumberStateTaxFieldProps) {\n return <NumberStateTaxField meta={meta} {...props} />\n },\n ...shared,\n }\n case 'currency':\n return {\n type: 'currency',\n Field: function BoundCurrencyStateTaxField(props: CurrencyStateTaxFieldProps) {\n return <CurrencyStateTaxField meta={meta} {...props} />\n },\n ...shared,\n }\n case 'date':\n return {\n type: 'date',\n Field: function BoundDateStateTaxField(props: DateStateTaxFieldProps) {\n return <DateStateTaxField meta={meta} {...props} />\n },\n ...shared,\n }\n }\n}\n\n/**\n * Memoization helper: state-tax data refetches will return new array\n * references even when the underlying questions are unchanged. Use this\n * inside a `useMemo` whose dependency is the raw `employeeStateTaxes` to\n * avoid rebuilding bound Field components on every render.\n */\nexport function useStateFields(\n employeeStateTaxes: EmployeeStateTaxesList[],\n isAdmin: boolean,\n): StateTaxFieldsGroup[] {\n return useMemo(\n () => createStateFields(employeeStateTaxes, { isAdmin }),\n [employeeStateTaxes, isAdmin],\n )\n}\n"],"names":["createStateFields","employeeStateTaxes","options","isAdmin","groups","stateGroup","questions","question","formKey","snakeCaseToCamelCase","meta","variant","getQuestionVariant","shared","buildEntry","props","jsx","SelectStateTaxField","RadioStateTaxField","TextStateTaxField","NumberStateTaxField","CurrencyStateTaxField","DateStateTaxField","useStateFields","useMemo"],"mappings":";;;;;AAmEO,SAASA,EACdC,GACAC,GACuB;AACvB,QAAM,EAAE,SAAAC,MAAYD,GACdE,IAAgC,CAAA;AAEtC,aAAWC,KAAcJ,GAAoB;AAC3C,QAAI,CAACI,EAAW,SAAS,CAACA,EAAW,UAAW;AAEhD,UAAMC,IAA0C,CAAA;AAChD,eAAWC,KAAYF,EAAW,WAAW;AAC3C,UAAIE,EAAS,0BAA0B,CAACJ,EAAS;AAEjD,YAAMK,IAAUC,EAAqBF,EAAS,GAAG,GAC3CG,IAAuB;AAAA,QAC3B,MAAM,UAAUL,EAAW,KAAK,IAAIG,CAAO;AAAA,QAC3C,UAAUD,EAAS;AAAA,QACnB,gBAAgBA,EAAS;AAAA,MAAA,GAErBI,IAAUC,EAAmBL,CAAQ,GACrCM,IAAiC;AAAA,QACrC,YAAYL;AAAA,QACZ,OAAOD,EAAS;AAAA,QAChB,aAAaA,EAAS;AAAA,MAAA;AAGxB,MAAAD,EAAU,KAAKQ,EAAWH,GAASD,GAAMG,CAAM,CAAC;AAAA,IAClD;AAEA,IAAIP,EAAU,WAAW,KAEzBF,EAAO,KAAK;AAAA,MACV,OAAOC,EAAW;AAAA,MAClB,WAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAEA,SAAOF;AACT;AAEA,SAASU,EACPH,GACAD,GACAG,GAC4B;AAC5B,UAAQF,GAAA;AAAA,IACN,KAAK;AACH,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO,SAAkCI,GAAiC;AACxE,iBAAO,gBAAAC,EAACC,GAAA,EAAoB,MAAAP,GAAa,GAAGK,EAAA,CAAO;AAAA,QACrD;AAAA,QACA,GAAGF;AAAA,MAAA;AAAA,IAEP,KAAK;AACH,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO,SAAiCE,GAAgC;AACtE,iBAAO,gBAAAC,EAACE,GAAA,EAAmB,MAAAR,GAAa,GAAGK,EAAA,CAAO;AAAA,QACpD;AAAA,QACA,GAAGF;AAAA,MAAA;AAAA,IAEP,KAAK;AACH,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO,SAAgCE,GAA+B;AACpE,iBAAO,gBAAAC,EAACG,GAAA,EAAkB,MAAAT,GAAa,GAAGK,EAAA,CAAO;AAAA,QACnD;AAAA,QACA,GAAGF;AAAA,MAAA;AAAA,IAEP,KAAK;AACH,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO,SAAkCE,GAAiC;AACxE,iBAAO,gBAAAC,EAACI,GAAA,EAAoB,MAAAV,GAAa,GAAGK,EAAA,CAAO;AAAA,QACrD;AAAA,QACA,GAAGF;AAAA,MAAA;AAAA,IAEP,KAAK;AACH,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO,SAAoCE,GAAmC;AAC5E,iBAAO,gBAAAC,EAACK,GAAA,EAAsB,MAAAX,GAAa,GAAGK,EAAA,CAAO;AAAA,QACvD;AAAA,QACA,GAAGF;AAAA,MAAA;AAAA,IAEP,KAAK;AACH,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO,SAAgCE,GAA+B;AACpE,iBAAO,gBAAAC,EAACM,GAAA,EAAkB,MAAAZ,GAAa,GAAGK,EAAA,CAAO;AAAA,QACnD;AAAA,QACA,GAAGF;AAAA,MAAA;AAAA,EACL;AAEN;AAQO,SAASU,EACdtB,GACAE,GACuB;AACvB,SAAOqB;AAAA,IACL,MAAMxB,EAAkBC,GAAoB,EAAE,SAAAE,GAAS;AAAA,IACvD,CAACF,GAAoBE,CAAO;AAAA,EAAA;AAEhC;"}
@@ -0,0 +1,6 @@
1
+ import "./types/i18next.d.ts"
2
+ export { useEmployeeStateTaxesForm } from './useEmployeeStateTaxesForm';
3
+ export type { UseEmployeeStateTaxesFormProps, UseEmployeeStateTaxesFormResult, UseEmployeeStateTaxesFormReady, EmployeeStateTaxesFieldsMetadata, EmployeeStateTaxesFormFields, } from './useEmployeeStateTaxesForm';
4
+ export { createEmployeeStateTaxesSchema, EmployeeStateTaxesErrorCodes, type EmployeeStateTaxesErrorCode, type EmployeeStateTaxesFormData, type EmployeeStateTaxesFormOutputs, type EmployeeStateTaxesSchemaOptions, type EmployeeStateTaxesQuestionMeta, type EmployeeStateTaxesMetadataConfig, type StateTaxValue, } from './employeeStateTaxesSchema';
5
+ export { createStateFields, useStateFields, type CreateStateFieldsOptions, type StateTaxFieldsGroup, type StateTaxQuestionFieldEntry, type SelectStateTaxFieldProps, type RadioStateTaxFieldProps, type TextStateTaxFieldProps, type NumberStateTaxFieldProps, type CurrencyStateTaxFieldProps, type DateStateTaxFieldProps, } from './fields';
6
+ export { getQuestionVariant, type StateTaxQuestionVariant } from './fieldMapping';
@@ -0,0 +1,36 @@
1
+ import { UseFormProps } from 'react-hook-form';
2
+ import { EmployeeStateTaxesList } from '@gusto/embedded-api/models/components/employeestatetaxeslist';
3
+ import { EmployeeStateTaxesFormData } from './employeeStateTaxesSchema';
4
+ import { StateTaxFieldsGroup } from './fields';
5
+ import { BaseFormHookReady, FieldsMetadata, HookLoadingResult, HookSubmitResult } from '../../../../../partner-hook-utils/types';
6
+ export interface UseEmployeeStateTaxesFormProps {
7
+ employeeId: string;
8
+ /**
9
+ * When `true`, admin-only questions are visible and submitted. When
10
+ * `false`, they are filtered out and the surfaced answer for those
11
+ * questions is preserved unchanged on submit.
12
+ */
13
+ isAdmin?: boolean;
14
+ validationMode?: UseFormProps['mode'];
15
+ shouldFocusError?: boolean;
16
+ }
17
+ export interface UseEmployeeStateTaxesFormReady extends BaseFormHookReady<FieldsMetadata, EmployeeStateTaxesFormData, StateTaxFieldsGroup[]> {
18
+ data: {
19
+ employeeStateTaxes: EmployeeStateTaxesList[];
20
+ };
21
+ status: {
22
+ isPending: boolean;
23
+ mode: 'update';
24
+ };
25
+ actions: {
26
+ onSubmit: () => Promise<HookSubmitResult<EmployeeStateTaxesList[]> | undefined>;
27
+ };
28
+ form: BaseFormHookReady<FieldsMetadata, EmployeeStateTaxesFormData, StateTaxFieldsGroup[]>['form'] & {
29
+ /** Iterable, render-ready group + question entries with bound Field components. */
30
+ Fields: StateTaxFieldsGroup[];
31
+ };
32
+ }
33
+ export type UseEmployeeStateTaxesFormResult = HookLoadingResult | UseEmployeeStateTaxesFormReady;
34
+ export declare function useEmployeeStateTaxesForm({ employeeId, isAdmin, validationMode, shouldFocusError, }: UseEmployeeStateTaxesFormProps): UseEmployeeStateTaxesFormResult;
35
+ export type EmployeeStateTaxesFieldsMetadata = UseEmployeeStateTaxesFormReady['form']['fieldsMetadata'];
36
+ export type EmployeeStateTaxesFormFields = UseEmployeeStateTaxesFormReady['form']['Fields'];