@gusto/embedded-react-sdk 0.50.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (985) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +0 -8
  3. package/dist/components/Base/index.d.ts +0 -1
  4. package/dist/components/Base/useBase.d.ts +1 -0
  5. package/dist/components/Base/useBase.js.map +1 -1
  6. package/dist/components/Base/useBaseSubmit.js +4 -4
  7. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  8. package/dist/components/Common/ActionsLayout/index.d.ts +0 -1
  9. package/dist/components/Common/DataView/DataCards/index.d.ts +0 -1
  10. package/dist/components/Common/DataView/index.d.ts +0 -1
  11. package/dist/components/Common/DetailViewLayout/index.d.ts +0 -1
  12. package/dist/components/Common/DocumentList/index.d.ts +0 -1
  13. package/dist/components/Common/DocumentViewer/index.d.ts +0 -1
  14. package/dist/components/Common/FieldCaption/index.d.ts +0 -1
  15. package/dist/components/Common/FieldDescription/index.d.ts +0 -1
  16. package/dist/components/Common/FieldErrorMessage/index.d.ts +0 -1
  17. package/dist/components/Common/FieldLayout/FieldLayoutTypes.d.ts +1 -0
  18. package/dist/components/Common/FieldLayout/index.d.ts +0 -1
  19. package/dist/components/Common/Fields/CheckboxField/index.d.ts +0 -1
  20. package/dist/components/Common/Fields/CheckboxGroupField/index.d.ts +0 -1
  21. package/dist/components/Common/Fields/ComboBoxField/index.d.ts +0 -1
  22. package/dist/components/Common/Fields/DatePickerField/index.d.ts +0 -1
  23. package/dist/components/Common/Fields/FileInputField/index.d.ts +0 -1
  24. package/dist/components/Common/Fields/MultiSelectComboBoxField/index.d.ts +0 -1
  25. package/dist/components/Common/Fields/NumberInputField/index.d.ts +0 -1
  26. package/dist/components/Common/Fields/RadioGroupField/index.d.ts +0 -1
  27. package/dist/components/Common/Fields/SelectField/index.d.ts +0 -1
  28. package/dist/components/Common/Fields/SwitchField/index.d.ts +0 -1
  29. package/dist/components/Common/Fields/TextAreaField/index.d.ts +0 -1
  30. package/dist/components/Common/Fields/TextInputField/index.d.ts +0 -1
  31. package/dist/components/Common/Fieldset/index.d.ts +0 -1
  32. package/dist/components/Common/Flex/index.d.ts +0 -1
  33. package/dist/components/Common/FlowBreadcrumbs/index.d.ts +0 -1
  34. package/dist/components/Common/Form/index.d.ts +0 -1
  35. package/dist/components/Common/HamburgerMenu/index.d.ts +0 -1
  36. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayoutTypes.d.ts +1 -0
  37. package/dist/components/Common/HorizontalFieldLayout/index.d.ts +0 -1
  38. package/dist/components/Common/InlineSpinner/index.d.ts +0 -1
  39. package/dist/components/Common/OnboardingStatusBadge/index.d.ts +2 -3
  40. package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
  41. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +2 -2
  42. package/dist/components/Common/PaginationControl/index.d.ts +0 -1
  43. package/dist/components/Common/PayrollLoading/PayrollLoadingTypes.d.ts +1 -1
  44. package/dist/components/Common/PayrollLoading/index.d.ts +0 -1
  45. package/dist/components/Common/ReorderableList/index.d.ts +0 -1
  46. package/dist/components/Common/TaxInputs/TaxInputs.d.ts +2 -2
  47. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  48. package/dist/components/Common/TaxInputs/index.d.ts +0 -1
  49. package/dist/components/Common/UI/Alert/AlertTypes.d.ts +1 -1
  50. package/dist/components/Common/UI/Alert/AlertTypes.js.map +1 -1
  51. package/dist/components/Common/UI/Badge/Badge.module.scss.js +5 -5
  52. package/dist/components/Common/UI/Badge/BadgeTypes.d.ts +1 -1
  53. package/dist/components/Common/UI/Badge/BadgeTypes.js.map +1 -1
  54. package/dist/components/Common/UI/Banner/BannerTypes.d.ts +1 -1
  55. package/dist/components/Common/UI/Banner/BannerTypes.js.map +1 -1
  56. package/dist/components/Common/UI/Box/BoxTypes.d.ts +1 -1
  57. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +1 -1
  58. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -1
  59. package/dist/components/Common/UI/BoxHeader/index.d.ts +0 -1
  60. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +2 -2
  61. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -1
  62. package/dist/components/Common/UI/Breadcrumbs/index.d.ts +0 -1
  63. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +2 -2
  64. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  65. package/dist/components/Common/UI/Button/index.d.ts +0 -1
  66. package/dist/components/Common/UI/CalendarPreview/CalendarPreviewTypes.d.ts +1 -1
  67. package/dist/components/Common/UI/CalendarPreview/index.d.ts +0 -1
  68. package/dist/components/Common/UI/Card/CardTypes.d.ts +1 -1
  69. package/dist/components/Common/UI/Checkbox/CheckboxTypes.d.ts +1 -1
  70. package/dist/components/Common/UI/Checkbox/CheckboxTypes.js.map +1 -1
  71. package/dist/components/Common/UI/Checkbox/index.d.ts +0 -1
  72. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.d.ts +2 -2
  73. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.js.map +1 -1
  74. package/dist/components/Common/UI/CheckboxGroup/index.d.ts +0 -1
  75. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +2 -2
  76. package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +1 -1
  77. package/dist/components/Common/UI/DatePicker/index.d.ts +0 -1
  78. package/dist/components/Common/UI/DateRangePicker/DateRangePickerTypes.d.ts +2 -2
  79. package/dist/components/Common/UI/DateRangePicker/index.d.ts +0 -1
  80. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +2 -2
  81. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
  82. package/dist/components/Common/UI/DescriptionList/index.d.ts +0 -1
  83. package/dist/components/Common/UI/Dialog/DialogTypes.d.ts +1 -1
  84. package/dist/components/Common/UI/Dialog/DialogTypes.js.map +1 -1
  85. package/dist/components/Common/UI/Dialog/index.d.ts +0 -1
  86. package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +1 -1
  87. package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -1
  88. package/dist/components/Common/UI/FileInput/index.d.ts +0 -1
  89. package/dist/components/Common/UI/Heading/HeadingTypes.d.ts +1 -1
  90. package/dist/components/Common/UI/Heading/index.d.ts +0 -1
  91. package/dist/components/Common/UI/Input/index.d.ts +0 -1
  92. package/dist/components/Common/UI/Link/LinkTypes.d.ts +1 -1
  93. package/dist/components/Common/UI/Link/index.d.ts +0 -1
  94. package/dist/components/Common/UI/List/ListTypes.d.ts +3 -3
  95. package/dist/components/Common/UI/List/index.d.ts +0 -1
  96. package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.d.ts +1 -1
  97. package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.js.map +1 -1
  98. package/dist/components/Common/UI/LoadingSpinner/index.d.ts +0 -1
  99. package/dist/components/Common/UI/Menu/MenuTypes.d.ts +2 -2
  100. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  101. package/dist/components/Common/UI/Menu/index.d.ts +0 -1
  102. package/dist/components/Common/UI/Modal/ModalTypes.d.ts +1 -1
  103. package/dist/components/Common/UI/Modal/ModalTypes.js.map +1 -1
  104. package/dist/components/Common/UI/Modal/index.d.ts +0 -1
  105. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes.d.ts +2 -2
  106. package/dist/components/Common/UI/NumberInput/NumberInputTypes.d.ts +1 -1
  107. package/dist/components/Common/UI/NumberInput/index.d.ts +0 -1
  108. package/dist/components/Common/UI/ProgressBar/ProgressBarTypes.d.ts +1 -1
  109. package/dist/components/Common/UI/ProgressBar/index.d.ts +0 -1
  110. package/dist/components/Common/UI/Radio/RadioTypes.d.ts +1 -1
  111. package/dist/components/Common/UI/Radio/RadioTypes.js.map +1 -1
  112. package/dist/components/Common/UI/Radio/index.d.ts +0 -1
  113. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +2 -2
  114. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  115. package/dist/components/Common/UI/RadioGroup/index.d.ts +0 -1
  116. package/dist/components/Common/UI/Select/SelectTypes.d.ts +2 -2
  117. package/dist/components/Common/UI/Select/index.d.ts +0 -1
  118. package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +1 -1
  119. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  120. package/dist/components/Common/UI/Switch/index.d.ts +0 -1
  121. package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -3
  122. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  123. package/dist/components/Common/UI/Table/index.d.ts +0 -1
  124. package/dist/components/Common/UI/Tabs/TabsTypes.d.ts +2 -2
  125. package/dist/components/Common/UI/Tabs/index.d.ts +0 -1
  126. package/dist/components/Common/UI/Text/TextTypes.d.ts +1 -1
  127. package/dist/components/Common/UI/Text/TextTypes.js.map +1 -1
  128. package/dist/components/Common/UI/Text/index.d.ts +0 -1
  129. package/dist/components/Common/UI/TextArea/TextAreaTypes.d.ts +1 -1
  130. package/dist/components/Common/UI/TextArea/TextAreaTypes.js.map +1 -1
  131. package/dist/components/Common/UI/TextArea/index.d.ts +0 -1
  132. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  133. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  134. package/dist/components/Common/UI/TextInput/index.d.ts +0 -1
  135. package/dist/components/Common/VisuallyHidden/index.d.ts +0 -1
  136. package/dist/components/Common/index.d.ts +0 -1
  137. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +5 -5
  138. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  139. package/dist/components/Company/AssignSignatory/CreateSignatory/index.d.ts +0 -1
  140. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.d.ts +1 -1
  141. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -10
  142. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  143. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +3 -3
  144. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  145. package/dist/components/Company/AssignSignatory/InviteSignatory/index.d.ts +0 -1
  146. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.d.ts +1 -1
  147. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -10
  148. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  149. package/dist/components/Company/AssignSignatory/index.d.ts +0 -1
  150. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -12
  151. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  152. package/dist/components/Company/BankAccount/BankAccount.d.ts +5 -5
  153. package/dist/components/Company/BankAccount/BankAccount.js +1 -1
  154. package/dist/components/Company/BankAccount/BankAccount.js.map +1 -1
  155. package/dist/components/Company/BankAccount/BankAccountComponents.d.ts +1 -1
  156. package/dist/components/Company/BankAccount/BankAccountComponents.js.map +1 -1
  157. package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js +1 -1
  158. package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js.map +1 -1
  159. package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -10
  160. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  161. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js +1 -1
  162. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js.map +1 -1
  163. package/dist/components/Company/BankAccount/BankAccountList/context.d.ts +1 -1
  164. package/dist/components/Company/BankAccount/BankAccountList/context.js.map +1 -1
  165. package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js +1 -1
  166. package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js.map +1 -1
  167. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +2 -2
  168. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  169. package/dist/components/Company/DocumentSigner/DocumentList/index.d.ts +0 -1
  170. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.d.ts +2 -2
  171. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -10
  172. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  173. package/dist/components/Company/DocumentSigner/DocumentSigner.js +1 -1
  174. package/dist/components/Company/DocumentSigner/DocumentSigner.js.map +1 -1
  175. package/dist/components/Company/DocumentSigner/SignatureForm/index.d.ts +0 -1
  176. package/dist/components/Company/DocumentSigner/documentSignerStateMachine.d.ts +2 -2
  177. package/dist/components/Company/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  178. package/dist/components/Company/DocumentSigner/index.d.ts +0 -1
  179. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.d.ts +2 -22
  180. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
  181. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js.map +1 -1
  182. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/index.d.ts +1 -2
  183. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.d.ts +1 -5
  184. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.js.map +1 -1
  185. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.d.ts +10 -9
  186. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +41 -38
  187. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  188. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -2
  189. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  190. package/dist/components/Company/FederalTaxes/Form.js +1 -1
  191. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  192. package/dist/components/Company/FederalTaxes/index.d.ts +0 -1
  193. package/dist/components/Company/FederalTaxes/useFederalTaxes.d.ts +1 -1
  194. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +13 -15
  195. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  196. package/dist/components/Company/Industry/Context.js +11 -13
  197. package/dist/components/Company/Industry/Context.js.map +1 -1
  198. package/dist/components/Company/Industry/Industry.js +2 -2
  199. package/dist/components/Company/Industry/Industry.js.map +1 -1
  200. package/dist/components/Company/Industry/index.d.ts +0 -1
  201. package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -4
  202. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  203. package/dist/components/Company/Locations/LocationForm/index.d.ts +0 -1
  204. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -10
  205. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  206. package/dist/components/Company/Locations/LocationsList/LocationsList.js +1 -1
  207. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  208. package/dist/components/Company/Locations/LocationsList/index.d.ts +0 -1
  209. package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -1
  210. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -10
  211. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  212. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +25 -25
  213. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  214. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +1 -1
  215. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  216. package/dist/components/Company/OnboardingOverview/context.d.ts +1 -1
  217. package/dist/components/Company/OnboardingOverview/context.js +8 -10
  218. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  219. package/dist/components/Company/PaySchedule/PaySchedule.js +1 -1
  220. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  221. package/dist/components/Company/PaySchedule/PayScheduleList.js +1 -1
  222. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
  223. package/dist/components/Company/PaySchedule/index.d.ts +0 -1
  224. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +7 -83
  225. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
  226. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
  227. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +2 -4
  228. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +2 -8
  229. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
  230. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +22 -27
  231. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +93 -90
  232. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  233. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +2 -2
  234. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  235. package/dist/components/Company/StateTaxes/StateTaxesForm/applicableIf.d.ts +1 -1
  236. package/dist/components/Company/StateTaxes/StateTaxesForm/applicableIf.js.map +1 -1
  237. package/dist/components/Company/StateTaxes/StateTaxesForm/context.d.ts +1 -1
  238. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -10
  239. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  240. package/dist/components/Company/StateTaxes/StateTaxesForm/index.d.ts +0 -1
  241. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +1 -1
  242. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  243. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +1 -1
  244. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  245. package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +1 -1
  246. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -10
  247. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  248. package/dist/components/Company/StateTaxes/StateTaxesList/index.d.ts +0 -1
  249. package/dist/components/Company/index.d.ts +0 -1
  250. package/dist/components/Contractor/Address/Address.js +39 -39
  251. package/dist/components/Contractor/Address/Address.js.map +1 -1
  252. package/dist/components/Contractor/Address/index.d.ts +0 -1
  253. package/dist/components/Contractor/Address/shared/useContractorAddressForm/contractorAddressSchema.d.ts +1 -6
  254. package/dist/components/Contractor/Address/shared/useContractorAddressForm/contractorAddressSchema.js.map +1 -1
  255. package/dist/components/Contractor/Address/shared/useContractorAddressForm/fields.d.ts +5 -52
  256. package/dist/components/Contractor/Address/shared/useContractorAddressForm/fields.js.map +1 -1
  257. package/dist/components/Contractor/Address/shared/useContractorAddressForm/index.d.ts +2 -4
  258. package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.d.ts +25 -24
  259. package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js +102 -98
  260. package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js.map +1 -1
  261. package/dist/components/Contractor/ContractorList/index.d.ts +0 -1
  262. package/dist/components/Contractor/ContractorList/index.js +1 -1
  263. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  264. package/dist/components/Contractor/ContractorList/useContractorList.d.ts +1 -1
  265. package/dist/components/Contractor/ContractorList/useContractorList.js +1 -1
  266. package/dist/components/Contractor/ContractorList/useContractorList.js.map +1 -1
  267. package/dist/components/Contractor/Documents/DocumentSigner/DocumentSigner.d.ts +41 -0
  268. package/dist/components/Contractor/Documents/DocumentSigner/DocumentSigner.js +32 -0
  269. package/dist/components/Contractor/Documents/DocumentSigner/DocumentSigner.js.map +1 -0
  270. package/dist/components/Contractor/Documents/DocumentSigner/documentSignerStateMachine.d.ts +22 -0
  271. package/dist/components/Contractor/Documents/DocumentSigner/documentSignerStateMachine.js +25 -0
  272. package/dist/components/Contractor/Documents/DocumentSigner/documentSignerStateMachine.js.map +1 -0
  273. package/dist/components/Contractor/Documents/DocumentSigner/index.d.ts +1 -0
  274. package/dist/components/Contractor/Documents/DocumentSigner/stateMachine.d.ts +6 -0
  275. package/dist/components/Contractor/Documents/DocumentSigner/stateMachine.js +44 -0
  276. package/dist/components/Contractor/Documents/DocumentSigner/stateMachine.js.map +1 -0
  277. package/dist/components/Contractor/Documents/DocumentsList/DocumentsList.js.map +1 -1
  278. package/dist/components/Contractor/Documents/DocumentsList/index.d.ts +0 -1
  279. package/dist/components/Contractor/Documents/DocumentsList/useContractorDocumentsList/index.d.ts +0 -1
  280. package/dist/components/Contractor/Documents/DocumentsList/useContractorDocumentsList/useContractorDocumentsList.d.ts +1 -1
  281. package/dist/components/Contractor/Documents/DocumentsList/useContractorDocumentsList/useContractorDocumentsList.js +1 -1
  282. package/dist/components/Contractor/Documents/DocumentsList/useContractorDocumentsList/useContractorDocumentsList.js.map +1 -1
  283. package/dist/components/Contractor/Documents/SignatureForm/SignatureForm.d.ts +30 -0
  284. package/dist/components/Contractor/Documents/SignatureForm/SignatureForm.js +280 -0
  285. package/dist/components/Contractor/Documents/SignatureForm/SignatureForm.js.map +1 -0
  286. package/dist/components/Contractor/Documents/SignatureForm/index.d.ts +2 -0
  287. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.d.ts +175 -0
  288. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.js +110 -0
  289. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.js.map +1 -0
  290. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.test.d.ts +1 -0
  291. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/fields.d.ts +259 -0
  292. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/fields.js +85 -0
  293. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/fields.js.map +1 -0
  294. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/index.d.ts +5 -0
  295. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/useContractorSignatureForm.d.ts +129 -0
  296. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/useContractorSignatureForm.js +182 -0
  297. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/useContractorSignatureForm.js.map +1 -0
  298. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.d.ts +223 -0
  299. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.js +162 -0
  300. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.js.map +1 -0
  301. package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.test.d.ts +1 -0
  302. package/dist/components/Contractor/Landing/Landing.js +2 -2
  303. package/dist/components/Contractor/Landing/Landing.js.map +1 -1
  304. package/dist/components/Contractor/Landing/index.d.ts +0 -1
  305. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -2
  306. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  307. package/dist/components/Contractor/OnboardingSummary/index.d.ts +0 -1
  308. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +73 -71
  309. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  310. package/dist/components/Contractor/PaymentMethod/shared/index.d.ts +0 -1
  311. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.d.ts +4 -40
  312. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.js +1 -1
  313. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.js.map +1 -1
  314. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/index.d.ts +1 -2
  315. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountForm.d.ts +5 -4
  316. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountForm.js +78 -74
  317. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountForm.js.map +1 -1
  318. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountFormSchema.d.ts +5 -3
  319. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountFormSchema.js.map +1 -1
  320. package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/contractorPaymentMethodSchema.d.ts +4 -2
  321. package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/contractorPaymentMethodSchema.js.map +1 -1
  322. package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/fields.d.ts +1 -10
  323. package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/fields.js.map +1 -1
  324. package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/index.d.ts +1 -2
  325. package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/useContractorPaymentMethodForm.d.ts +5 -4
  326. package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/useContractorPaymentMethodForm.js +65 -62
  327. package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/useContractorPaymentMethodForm.js.map +1 -1
  328. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +5 -5
  329. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  330. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +2 -2
  331. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  332. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -2
  333. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  334. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +1 -1
  335. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js.map +1 -1
  336. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +4 -4
  337. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  338. package/dist/components/Contractor/Payments/CreatePayment/helpers.d.ts +1 -1
  339. package/dist/components/Contractor/Payments/CreatePayment/helpers.js.map +1 -1
  340. package/dist/components/Contractor/Payments/PaymentFlow/index.d.ts +0 -1
  341. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  342. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +3 -3
  343. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  344. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +2 -2
  345. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  346. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +4 -4
  347. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  348. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +3 -3
  349. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  350. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +3 -3
  351. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -1
  352. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +3 -3
  353. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  354. package/dist/components/Contractor/Payments/PaymentSummary/index.d.ts +0 -1
  355. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +3 -3
  356. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  357. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +1 -1
  358. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  359. package/dist/components/Contractor/Profile/SelfOnboardingContractorProfile.js +1 -1
  360. package/dist/components/Contractor/Profile/SelfOnboardingContractorProfile.js.map +1 -1
  361. package/dist/components/Contractor/Profile/index.d.ts +0 -1
  362. package/dist/components/Contractor/Profile/shared/index.d.ts +0 -1
  363. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.d.ts +2 -7
  364. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js +9 -9
  365. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js.map +1 -1
  366. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/fields.d.ts +14 -163
  367. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/fields.js +16 -16
  368. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/fields.js.map +1 -1
  369. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/index.d.ts +2 -4
  370. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.d.ts +31 -28
  371. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js +142 -128
  372. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js.map +1 -1
  373. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +30 -0
  374. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js +57 -0
  375. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -0
  376. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +45 -0
  377. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingFlow.js +30 -0
  378. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -0
  379. package/dist/components/Contractor/SelfOnboardingFlow/selfOnboardingMachine.d.ts +8 -0
  380. package/dist/components/Contractor/SelfOnboardingFlow/selfOnboardingMachine.js +59 -0
  381. package/dist/components/Contractor/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -0
  382. package/dist/components/Contractor/Submit/Submit.js +3 -3
  383. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  384. package/dist/components/Contractor/exports/contractorOnboarding.d.ts +3 -0
  385. package/dist/components/Contractor/exports/contractorOnboarding.js +20 -14
  386. package/dist/components/Contractor/exports/contractorOnboarding.js.map +1 -1
  387. package/dist/components/Employee/Compensation/index.d.ts +0 -1
  388. package/dist/components/Employee/Compensation/management/Compensation.d.ts +1 -1
  389. package/dist/components/Employee/Compensation/management/Compensation.js.map +1 -1
  390. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.d.ts +1 -1
  391. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js.map +1 -1
  392. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.d.ts +1 -1
  393. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
  394. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/index.d.ts +0 -1
  395. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.d.ts +1 -1
  396. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +1 -1
  397. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
  398. package/dist/components/Employee/Compensation/management/CompensationCard/index.d.ts +0 -1
  399. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
  400. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +1 -1
  401. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
  402. package/dist/components/Employee/Compensation/management/CompensationEditForm/index.d.ts +0 -1
  403. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js +1 -1
  404. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js.map +1 -1
  405. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -1
  406. package/dist/components/Employee/Compensation/management/index.d.ts +0 -1
  407. package/dist/components/Employee/Compensation/onboarding/Compensation.d.ts +3 -3
  408. package/dist/components/Employee/Compensation/onboarding/Compensation.js +1 -1
  409. package/dist/components/Employee/Compensation/onboarding/Compensation.js.map +1 -1
  410. package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.d.ts +2 -2
  411. package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.js.map +1 -1
  412. package/dist/components/Employee/Compensation/onboarding/EditCompensation/index.d.ts +0 -1
  413. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.d.ts +20 -1
  414. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.js +2 -2
  415. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.js.map +1 -1
  416. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.d.ts +1 -1
  417. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
  418. package/dist/components/Employee/Compensation/onboarding/JobsList/index.d.ts +0 -1
  419. package/dist/components/Employee/Compensation/onboarding/index.d.ts +0 -1
  420. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -1
  421. package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.d.ts +1 -1
  422. package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.js.map +1 -1
  423. package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.d.ts +2 -2
  424. package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.js.map +1 -1
  425. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +2 -11
  426. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  427. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +10 -109
  428. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
  429. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  430. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +1 -3
  431. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +24 -21
  432. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +191 -177
  433. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  434. package/dist/components/Employee/Compensation/shared/useCompensationManagement/index.d.ts +0 -1
  435. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.d.ts +1 -1
  436. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js +4 -4
  437. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js.map +1 -1
  438. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +5 -66
  439. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
  440. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -1
  441. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +1 -3
  442. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +2 -10
  443. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -1
  444. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +20 -17
  445. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +121 -112
  446. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  447. package/dist/components/Employee/Dashboard/Dashboard.js +1 -1
  448. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  449. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +1 -1
  450. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -1
  451. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  452. package/dist/components/Employee/Dashboard/index.d.ts +0 -1
  453. package/dist/components/Employee/Deductions/index.d.ts +0 -1
  454. package/dist/components/Employee/Deductions/management/Deductions.d.ts +1 -1
  455. package/dist/components/Employee/Deductions/management/Deductions.js.map +1 -1
  456. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.js.map +1 -1
  457. package/dist/components/Employee/Deductions/management/DeductionsCard/index.d.ts +0 -1
  458. package/dist/components/Employee/Deductions/management/DeductionsEditForm/index.d.ts +0 -1
  459. package/dist/components/Employee/Deductions/management/deductionsStateMachine.js.map +1 -1
  460. package/dist/components/Employee/Deductions/management/index.d.ts +0 -1
  461. package/dist/components/Employee/Deductions/onboarding/Deductions.d.ts +1 -1
  462. package/dist/components/Employee/Deductions/onboarding/Deductions.js.map +1 -1
  463. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.d.ts +1 -1
  464. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js.map +1 -1
  465. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.d.ts +1 -1
  466. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.js.map +1 -1
  467. package/dist/components/Employee/Deductions/onboarding/index.d.ts +0 -1
  468. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.d.ts +1 -1
  469. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.js.map +1 -1
  470. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.d.ts +1 -1
  471. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.js.map +1 -1
  472. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.d.ts +1 -1
  473. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.js.map +1 -1
  474. package/dist/components/Employee/Deductions/shared/DeductionsForm/index.d.ts +0 -1
  475. package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.d.ts +1 -1
  476. package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.js.map +1 -1
  477. package/dist/components/Employee/Deductions/shared/formatDeductionAmount.d.ts +1 -1
  478. package/dist/components/Employee/Deductions/shared/formatDeductionAmount.js.map +1 -1
  479. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +2 -7
  480. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js +1 -1
  481. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
  482. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.d.ts +9 -97
  483. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
  484. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js.map +1 -1
  485. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/index.d.ts +1 -3
  486. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.d.ts +26 -23
  487. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js +119 -106
  488. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
  489. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.d.ts +1 -5
  490. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.js +1 -1
  491. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.js.map +1 -1
  492. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.d.ts +8 -86
  493. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
  494. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js.map +1 -1
  495. package/dist/components/Employee/Deductions/shared/useDeductionForm/index.d.ts +1 -3
  496. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +20 -19
  497. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js +129 -120
  498. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js.map +1 -1
  499. package/dist/components/Employee/Deductions/shared/useDeductionsList.d.ts +1 -1
  500. package/dist/components/Employee/Deductions/shared/useDeductionsList.js +2 -2
  501. package/dist/components/Employee/Deductions/shared/useDeductionsList.js.map +1 -1
  502. package/dist/components/Employee/Deductions/shared/useDeleteDeduction.d.ts +1 -1
  503. package/dist/components/Employee/Deductions/shared/useDeleteDeduction.js.map +1 -1
  504. package/dist/components/Employee/Documents/management/DocumentManager.js +2 -2
  505. package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
  506. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.js.map +1 -1
  507. package/dist/components/Employee/Documents/management/DocumentsCard/index.d.ts +0 -1
  508. package/dist/components/Employee/Documents/management/index.d.ts +0 -1
  509. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js +1 -1
  510. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  511. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/index.d.ts +0 -1
  512. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.d.ts +1 -1
  513. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +8 -10
  514. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  515. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js +2 -2
  516. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
  517. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +3 -3
  518. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  519. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +1 -1
  520. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  521. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js +1 -1
  522. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
  523. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/index.d.ts +0 -1
  524. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js +1 -1
  525. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  526. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/index.d.ts +0 -1
  527. package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +1 -1
  528. package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  529. package/dist/components/Employee/Documents/onboarding/DocumentSigner/index.d.ts +0 -1
  530. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +2 -2
  531. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
  532. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/index.d.ts +0 -1
  533. package/dist/components/Employee/Documents/shared/SignatureForm/index.d.ts +0 -1
  534. package/dist/components/Employee/Documents/shared/useDocumentsList/index.d.ts +0 -1
  535. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.d.ts +1 -1
  536. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.js +1 -1
  537. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.js.map +1 -1
  538. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.d.ts +39 -287
  539. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
  540. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js.map +1 -1
  541. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/index.d.ts +2 -4
  542. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +1 -6
  543. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
  544. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +75 -25
  545. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.js +91 -90
  546. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  547. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
  548. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +1 -1
  549. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  550. package/dist/components/Employee/EmployeeList/shared/index.d.ts +0 -1
  551. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +3 -3
  552. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +3 -3
  553. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
  554. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +1 -1
  555. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -1
  556. package/dist/components/Employee/EmployeeListFlow/index.d.ts +0 -1
  557. package/dist/components/Employee/FederalTaxes/index.d.ts +0 -1
  558. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +1 -1
  559. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -1
  560. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/index.d.ts +0 -1
  561. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.d.ts +1 -1
  562. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js.map +1 -1
  563. package/dist/components/Employee/FederalTaxes/management/index.d.ts +0 -1
  564. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +1 -1
  565. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -1
  566. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +0 -1
  567. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +1 -5
  568. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js +1 -1
  569. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -1
  570. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +6 -73
  571. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
  572. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -1
  573. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +2 -4
  574. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +20 -30
  575. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js +78 -69
  576. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -1
  577. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/index.d.ts +0 -1
  578. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.d.ts +1 -1
  579. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.js +1 -1
  580. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.js.map +1 -1
  581. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/index.d.ts +0 -1
  582. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
  583. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +1 -1
  584. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  585. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.d.ts +1 -1
  586. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js.map +1 -1
  587. package/dist/components/Employee/HomeAddress/management/index.d.ts +0 -1
  588. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.d.ts +1 -1
  589. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +3 -3
  590. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
  591. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/index.d.ts +0 -1
  592. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.d.ts +1 -1
  593. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.js +1 -1
  594. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.js.map +1 -1
  595. package/dist/components/Employee/Landing/Landing.js +2 -2
  596. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  597. package/dist/components/Employee/Landing/index.d.ts +0 -1
  598. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.d.ts +1 -1
  599. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.js.map +1 -1
  600. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.d.ts +1 -1
  601. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.js.map +1 -1
  602. package/dist/components/Employee/OnboardingExecutionFlow/index.d.ts +0 -1
  603. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +1 -1
  604. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  605. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +78 -53
  606. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  607. package/dist/components/Employee/OnboardingSummary/index.d.ts +0 -1
  608. package/dist/components/Employee/PaymentMethod/index.d.ts +0 -1
  609. package/dist/components/Employee/PaymentMethod/management/index.d.ts +0 -1
  610. package/dist/components/Employee/PaymentMethod/onboarding/index.d.ts +0 -1
  611. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.d.ts +1 -1
  612. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.js.map +1 -1
  613. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/index.d.ts +0 -1
  614. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.d.ts +1 -1
  615. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.js.map +1 -1
  616. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/index.d.ts +0 -1
  617. package/dist/components/Employee/PaymentMethod/shared/index.d.ts +0 -1
  618. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.d.ts +4 -45
  619. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
  620. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js.map +1 -1
  621. package/dist/components/Employee/PaymentMethod/shared/useBankForm/index.d.ts +2 -3
  622. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.d.ts +11 -9
  623. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.js +71 -66
  624. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.js.map +1 -1
  625. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.d.ts +2 -6
  626. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.js.map +1 -1
  627. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.d.ts +1 -12
  628. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.js.map +1 -1
  629. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/index.d.ts +2 -3
  630. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.d.ts +8 -6
  631. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.js +56 -49
  632. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.js.map +1 -1
  633. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.d.ts +1 -5
  634. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.js.map +1 -1
  635. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.d.ts +2 -2
  636. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.js +4 -4
  637. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.js.map +1 -1
  638. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/index.d.ts +1 -2
  639. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
  640. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.d.ts +19 -5
  641. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.js +3 -3
  642. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.js.map +1 -1
  643. package/dist/components/Employee/Paystubs/management/PaystubsCard/index.d.ts +0 -1
  644. package/dist/components/Employee/Paystubs/management/index.d.ts +0 -1
  645. package/dist/components/Employee/Paystubs/shared/usePaystubsList/index.d.ts +0 -1
  646. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.d.ts +1 -1
  647. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.js +3 -3
  648. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.js.map +1 -1
  649. package/dist/components/Employee/Profile/management/ProfileCard/index.d.ts +0 -1
  650. package/dist/components/Employee/Profile/management/ProfileEditForm.js +24 -25
  651. package/dist/components/Employee/Profile/management/ProfileEditForm.js.map +1 -1
  652. package/dist/components/Employee/Profile/management/index.d.ts +0 -1
  653. package/dist/components/Employee/Profile/onboarding/AdminProfile.js +31 -32
  654. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -1
  655. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js +1 -1
  656. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -1
  657. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +3 -9
  658. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js +19 -29
  659. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
  660. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.d.ts +12 -92
  661. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
  662. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js.map +1 -1
  663. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/index.d.ts +1 -4
  664. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +23 -28
  665. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +91 -80
  666. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  667. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/index.d.ts +0 -1
  668. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.d.ts +1 -1
  669. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js +1 -1
  670. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js.map +1 -1
  671. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +7 -77
  672. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
  673. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
  674. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +1 -5
  675. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
  676. package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +2 -4
  677. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js +1 -1
  678. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js.map +1 -1
  679. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +21 -26
  680. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +64 -61
  681. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  682. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.d.ts +3 -25
  683. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
  684. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js.map +1 -1
  685. package/dist/components/Employee/Profile/shared/useWorkAddressForm/index.d.ts +2 -4
  686. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js +1 -1
  687. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js.map +1 -1
  688. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +12 -17
  689. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +68 -63
  690. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  691. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.d.ts +1 -5
  692. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.js.map +1 -1
  693. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +1 -1
  694. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  695. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +1 -1
  696. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
  697. package/dist/components/Employee/StateTaxes/index.d.ts +0 -1
  698. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.js.map +1 -1
  699. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/index.d.ts +0 -1
  700. package/dist/components/Employee/StateTaxes/management/index.d.ts +0 -1
  701. package/dist/components/Employee/StateTaxes/onboarding/index.d.ts +0 -1
  702. package/dist/components/Employee/StateTaxes/shared/index.d.ts +0 -1
  703. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.d.ts +1 -1
  704. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.d.ts +1 -1
  705. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +1 -1
  706. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -1
  707. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
  708. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +1 -1
  709. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -1
  710. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +2 -2
  711. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -1
  712. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/index.d.ts +1 -2
  713. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +13 -6
  714. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js +3 -6
  715. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -1
  716. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/index.d.ts +0 -1
  717. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.d.ts +1 -1
  718. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.js +1 -1
  719. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.js.map +1 -1
  720. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +1 -1
  721. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +9 -9
  722. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  723. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +1 -1
  724. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  725. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +6 -2
  726. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -1
  727. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +1 -1
  728. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +4 -4
  729. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  730. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/index.d.ts +0 -1
  731. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
  732. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +1 -1
  733. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  734. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.d.ts +2 -2
  735. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js.map +1 -1
  736. package/dist/components/Employee/WorkAddress/management/index.d.ts +0 -1
  737. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.d.ts +1 -1
  738. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +3 -3
  739. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
  740. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/index.d.ts +0 -1
  741. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.d.ts +1 -1
  742. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.js +1 -1
  743. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.js.map +1 -1
  744. package/dist/components/Employee/index.d.ts +0 -1
  745. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +4 -4
  746. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  747. package/dist/components/InformationRequests/InformationRequestForm/index.d.ts +0 -1
  748. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +2 -2
  749. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  750. package/dist/components/InformationRequests/InformationRequestList/index.d.ts +0 -1
  751. package/dist/components/InformationRequests/index.d.ts +0 -1
  752. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +1 -1
  753. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  754. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +2 -2
  755. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  756. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/index.d.ts +0 -1
  757. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +3 -3
  758. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  759. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/index.d.ts +0 -1
  760. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +2 -2
  761. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  762. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/index.d.ts +0 -1
  763. package/dist/components/Payroll/ConfirmWireDetails/index.d.ts +0 -1
  764. package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +4 -0
  765. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  766. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +1 -1
  767. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  768. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +4 -4
  769. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  770. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +0 -1
  771. package/dist/components/Payroll/Dismissal/index.d.ts +0 -1
  772. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +5 -5
  773. package/dist/components/Payroll/GrossUpModal/index.d.ts +0 -1
  774. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +1 -1
  775. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  776. package/dist/components/Payroll/OffCycle/index.d.ts +0 -1
  777. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +4 -4
  778. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  779. package/dist/components/Payroll/OffCycleCreation/index.d.ts +0 -1
  780. package/dist/components/Payroll/OffCycleDeductionsSetting/index.d.ts +0 -1
  781. package/dist/components/Payroll/OffCyclePayPeriodDateForm/index.d.ts +0 -1
  782. package/dist/components/Payroll/OffCycleReasonSelection/index.d.ts +0 -1
  783. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +1 -1
  784. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  785. package/dist/components/Payroll/OffCycleTaxWithholdingModal/index.d.ts +0 -1
  786. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +1 -1
  787. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js +1 -1
  788. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js.map +1 -1
  789. package/dist/components/Payroll/OffCycleTaxWithholdingTable/index.d.ts +0 -1
  790. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +4 -4
  791. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  792. package/dist/components/Payroll/PayrollBlocker/index.d.ts +0 -1
  793. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +2 -2
  794. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  795. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +7 -7
  796. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  797. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +5 -5
  798. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  799. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +4 -4
  800. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +5 -5
  801. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  802. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +3 -3
  803. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  804. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +4 -4
  805. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +1 -1
  806. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  807. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +2 -2
  808. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  809. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +1 -1
  810. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  811. package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +0 -1
  812. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  813. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +1 -1
  814. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
  815. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -1
  816. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  817. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +2 -2
  818. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -1
  819. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  820. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +4 -4
  821. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  822. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
  823. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  824. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +2 -2
  825. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  826. package/dist/components/Payroll/PayrollList/PayrollList.js +8 -8
  827. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  828. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +3 -3
  829. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +1 -1
  830. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  831. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +7 -7
  832. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  833. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +4 -4
  834. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  835. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -2
  836. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  837. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +1 -1
  838. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.js.map +1 -1
  839. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/index.d.ts +0 -1
  840. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +1 -1
  841. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  842. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +1 -1
  843. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  844. package/dist/components/Payroll/PayrollStatusBadges/index.d.ts +0 -1
  845. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.d.ts +1 -1
  846. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js +2 -2
  847. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js.map +1 -1
  848. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +1 -1
  849. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  850. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +0 -1
  851. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +2 -2
  852. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  853. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +0 -1
  854. package/dist/components/Payroll/RecoveryCases/index.d.ts +0 -1
  855. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +5 -1
  856. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
  857. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +1 -1
  858. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
  859. package/dist/components/Payroll/Transition/index.d.ts +0 -1
  860. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +4 -4
  861. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  862. package/dist/components/Payroll/TransitionCreation/index.d.ts +0 -1
  863. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +3 -3
  864. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  865. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +1 -1
  866. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  867. package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +0 -1
  868. package/dist/components/Payroll/helpers.d.ts +6 -6
  869. package/dist/components/Payroll/helpers.js +1 -1
  870. package/dist/components/Payroll/helpers.js.map +1 -1
  871. package/dist/components/Payroll/index.d.ts +0 -1
  872. package/dist/components/Payroll/payrollTypes.js +1 -1
  873. package/dist/components/Payroll/payrollTypes.js.map +1 -1
  874. package/dist/components/Payroll/usePreparedPayrollData.d.ts +3 -4
  875. package/dist/components/Payroll/usePreparedPayrollData.js +15 -17
  876. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  877. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.d.ts +1 -1
  878. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js +3 -3
  879. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js.map +1 -1
  880. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +3 -3
  881. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
  882. package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +0 -1
  883. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +3 -3
  884. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
  885. package/dist/components/TimeOff/PolicyList/PolicyList.js +6 -6
  886. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
  887. package/dist/components/TimeOff/PolicySettings/PolicySettings.js +4 -4
  888. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -1
  889. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +1 -1
  890. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
  891. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.d.ts +1 -4
  892. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -1
  893. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +1 -1
  894. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -1
  895. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +4 -4
  896. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
  897. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -1
  898. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +2 -2
  899. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
  900. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +1 -1
  901. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +5 -5
  902. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
  903. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +3 -3
  904. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
  905. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +6 -6
  906. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
  907. package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +0 -1
  908. package/dist/components/TimeOff/index.d.ts +0 -1
  909. package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +0 -1
  910. package/dist/components/index.d.ts +32 -2
  911. package/dist/contexts/ApiProvider/ApiProvider.d.ts +3 -3
  912. package/dist/contexts/ApiProvider/ApiProvider.js +3 -3
  913. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  914. package/dist/contexts/ApiProvider/apiVersionHook.js +1 -1
  915. package/dist/contexts/ApiProvider/apiVersionHook.js.map +1 -1
  916. package/dist/contexts/ApiProvider/createSdkQueryClient.d.ts +1 -1
  917. package/dist/contexts/ApiProvider/createSdkQueryClient.js +2 -2
  918. package/dist/contexts/ApiProvider/createSdkQueryClient.js.map +1 -1
  919. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +1 -0
  920. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  921. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +2 -2
  922. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  923. package/dist/contexts/GustoProvider/index.d.ts +0 -1
  924. package/dist/contexts/LocaleProvider/index.d.ts +0 -1
  925. package/dist/contexts/ObservabilityProvider/index.d.ts +0 -1
  926. package/dist/contexts/ThemeProvider/index.d.ts +0 -1
  927. package/dist/contexts/ThemeProvider/theme.js +1 -1
  928. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  929. package/dist/contexts/index.d.ts +0 -1
  930. package/dist/helpers/apiErrorToList.d.ts +1 -1
  931. package/dist/helpers/apiErrorToList.js.map +1 -1
  932. package/dist/helpers/formattedStrings.d.ts +2 -2
  933. package/dist/helpers/formattedStrings.js.map +1 -1
  934. package/dist/helpers/validations.d.ts +8 -0
  935. package/dist/helpers/validations.js +3 -2
  936. package/dist/helpers/validations.js.map +1 -1
  937. package/dist/hooks/useCompanyPaymentSpeed.d.ts +1 -1
  938. package/dist/hooks/useCompanyPaymentSpeed.js +1 -1
  939. package/dist/hooks/useCompanyPaymentSpeed.js.map +1 -1
  940. package/dist/i18n/I18n.d.ts +3 -2
  941. package/dist/i18n/I18n.js +1 -0
  942. package/dist/i18n/I18n.js.map +1 -1
  943. package/dist/i18n/en/Contractor.Address.json.js +10 -8
  944. package/dist/i18n/en/Contractor.Address.json.js.map +1 -1
  945. package/dist/i18n/en/Contractor.PaymentMethod.json.js +3 -1
  946. package/dist/i18n/en/Contractor.PaymentMethod.json.js.map +1 -1
  947. package/dist/i18n/en/Contractor.SignatureForm.json.js +38 -0
  948. package/dist/i18n/en/Contractor.SignatureForm.json.js.map +1 -0
  949. package/dist/i18n/index.d.ts +0 -1
  950. package/dist/i18n/types.d.ts +7470 -0
  951. package/dist/index.d.ts +43 -43
  952. package/dist/index.js +148 -280
  953. package/dist/index.js.map +1 -1
  954. package/dist/models/external.d.ts +211 -197
  955. package/dist/partner-hook-utils/composeErrorHandler.d.ts +2 -2
  956. package/dist/partner-hook-utils/composeErrorHandler.js.map +1 -1
  957. package/dist/partner-hook-utils/form/FormFieldsMetadataContext.js +3 -3
  958. package/dist/partner-hook-utils/form/buildFormSchema.d.ts +19 -9
  959. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  960. package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +1 -1
  961. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  962. package/dist/partner-hook-utils/form/fields/index.d.ts +0 -1
  963. package/dist/partner-hook-utils/form/index.d.ts +0 -4
  964. package/dist/partner-hook-utils/form/withFlags.d.ts +18 -0
  965. package/dist/partner-hook-utils/form/withFlags.js +7 -0
  966. package/dist/partner-hook-utils/form/withFlags.js.map +1 -0
  967. package/dist/partner-hook-utils/index.d.ts +0 -1
  968. package/dist/partner-hook-utils/types.d.ts +6 -3
  969. package/dist/shared/constants.d.ts +18 -4
  970. package/dist/shared/constants.js +3 -2
  971. package/dist/shared/constants.js.map +1 -1
  972. package/dist/style.css +1 -1
  973. package/dist/types/Helpers.d.ts +21 -8
  974. package/dist/types/hooks.d.ts +2 -2
  975. package/dist/types/sdkError.js +3 -3
  976. package/dist/types/sdkError.js.map +1 -1
  977. package/docs/guides/endpoint-inventory.json +29 -0
  978. package/package.json +8 -8
  979. package/dist/assets/icons/unchecked_circular.svg.js +0 -10
  980. package/dist/assets/icons/unchecked_circular.svg.js.map +0 -1
  981. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js +0 -16
  982. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js.map +0 -1
  983. package/dist/partner-hook-utils/form/useFieldErrorMessage.js +0 -20
  984. package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +0 -1
  985. package/dist/types/i18next.d.ts +0 -4075
@@ -1 +1 @@
1
- {"version":3,"file":"DeductionsForm.js","sources":["../../../../../../src/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useMemo, useState } from 'react'\nimport type {\n Garnishment,\n GarnishmentType,\n} from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport { StandardDeductionForm } from './StandardDeductionForm'\nimport { ChildSupportFormView } from './ChildSupportFormView'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Grid } from '@/components/Common/Grid/Grid'\nimport { Flex } from '@/components/Common/Flex/Flex'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport type { ResourceDictionary } from '@/types/Helpers'\n\n/** @internal */\nexport type DeductionsFormDictionary = ResourceDictionary<'Employee.DeductionsForm'>\n\n// Garnishment types the form supports (mirrors the legacy SUPPORTED_GARNISHMENT_TYPES).\nconst SUPPORTED_GARNISHMENT_TYPES: readonly GarnishmentType[] = [\n 'child_support',\n 'federal_tax_lien',\n 'state_tax_lien',\n 'student_loan',\n 'creditor_garnishment',\n 'federal_loan',\n 'other_garnishment',\n] as const\n\ntype Variant = { kind: 'custom' } | { kind: 'garnishment'; type: GarnishmentType }\n\nfunction deductionToVariant(deduction: Garnishment): Variant {\n const type = deduction.garnishmentType\n if (!deduction.courtOrdered) return { kind: 'custom' }\n return {\n kind: 'garnishment',\n type: type && SUPPORTED_GARNISHMENT_TYPES.includes(type) ? type : 'child_support',\n }\n}\n\n/** @internal */\nexport interface DeductionsFormProps {\n /** Optional CSS class for the root section. */\n className?: string\n /** The associated employee identifier. */\n employeeId: string\n /** When provided, the form is in edit mode and the deduction's existing\n * garnishment type selects the inline form variant. Omit for add mode. */\n deduction?: Garnishment | null\n /**\n * Translation overrides for the form's strings. Each consuming block\n * passes the dictionary it resolved from its own namespace so partner\n * overrides on that namespace flow into the form text.\n */\n dictionary?: DeductionsFormDictionary\n /** Called after a successful save with the saved row and whether it was a create or update. */\n onSaved: (deduction: Garnishment, mode: 'create' | 'update') => void\n /** Called when the user cancels the form. */\n onCancel: () => void\n}\n\n/** @internal */\nexport function DeductionsForm({\n className,\n employeeId,\n deduction,\n dictionary,\n onSaved,\n onCancel,\n}: DeductionsFormProps) {\n useI18n('Employee.DeductionsForm')\n useComponentDictionary('Employee.DeductionsForm', dictionary)\n const { t } = useTranslation('Employee.DeductionsForm')\n const Components = useComponentContext()\n\n const isEdit = !!deduction\n const title = isEdit ? t('editTitle') : t('addTitle')\n\n // Pre-select the variant in edit mode; let the user pick in add mode.\n const initialVariant = useMemo<Variant | null>(\n () => (deduction ? deductionToVariant(deduction) : null),\n [deduction],\n )\n const [variant, setVariant] = useState<Variant | null>(initialVariant)\n\n const garnishmentTypeOptions = useMemo(\n () =>\n SUPPORTED_GARNISHMENT_TYPES.map(value => ({\n value,\n label: garnishmentTypeLabel(t, value),\n })),\n [t],\n )\n\n const handleSelectDeductionType = (selection: string) => {\n if (selection === 'custom') {\n setVariant({ kind: 'custom' })\n } else {\n setVariant({ kind: 'garnishment', type: 'child_support' })\n }\n }\n\n const handleSelectGarnishmentType = (value: string) => {\n setVariant({ kind: 'garnishment', type: value as GarnishmentType })\n }\n\n return (\n <section className={className}>\n <Grid gap={32}>\n <Flex flexDirection=\"column\" gap={2}>\n <Components.Heading as=\"h2\">{title}</Components.Heading>\n <Components.Text variant=\"supporting\">{t('description')}</Components.Text>\n </Flex>\n\n {!isEdit && (\n <>\n <Flex flexDirection=\"column\" gap={20}>\n <Components.RadioGroup\n label={t('variantLabel')}\n description={t('variantDescription')}\n options={[\n { value: 'garnishment', label: t('garnishmentOption') },\n { value: 'custom', label: t('customOption') },\n ]}\n defaultValue={variant?.kind === 'custom' ? 'custom' : undefined}\n onChange={handleSelectDeductionType}\n isRequired\n />\n\n {variant?.kind === 'garnishment' && (\n <Components.Select\n label={t('garnishmentTypeLabel')}\n placeholder=\"\"\n options={garnishmentTypeOptions}\n value={variant.type}\n onChange={handleSelectGarnishmentType}\n isRequired\n />\n )}\n </Flex>\n\n {variant !== null && <hr />}\n\n {variant === null && (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onCancel}>\n {t('actions.cancel')}\n </Components.Button>\n </ActionsLayout>\n )}\n </>\n )}\n\n {variant?.kind === 'custom' && (\n <StandardDeductionForm\n employeeId={employeeId}\n deduction={deduction ?? null}\n courtOrdered={false}\n title={t('types.custom')}\n onSaved={onSaved}\n onCancel={onCancel}\n />\n )}\n {variant?.kind === 'garnishment' && variant.type === 'child_support' && (\n <ChildSupportFormView\n employeeId={employeeId}\n deduction={deduction ?? null}\n onSaved={onSaved}\n onCancel={onCancel}\n />\n )}\n {variant?.kind === 'garnishment' && variant.type !== 'child_support' && (\n <StandardDeductionForm\n employeeId={employeeId}\n deduction={deduction ?? null}\n courtOrdered={true}\n garnishmentType={variant.type}\n title={garnishmentTypeLabel(t, variant.type)}\n onSaved={onSaved}\n onCancel={onCancel}\n />\n )}\n </Grid>\n </section>\n )\n}\n\nfunction garnishmentTypeLabel(\n t: ReturnType<typeof useTranslation<'Employee.DeductionsForm'>>['t'],\n value: GarnishmentType,\n): string {\n switch (value) {\n case 'child_support':\n return t('types.childSupport')\n case 'federal_tax_lien':\n return t('types.federalTaxLien')\n case 'state_tax_lien':\n return t('types.stateTaxLien')\n case 'student_loan':\n return t('types.studentLoan')\n case 'creditor_garnishment':\n return t('types.creditorGarnishment')\n case 'federal_loan':\n return t('types.federalLoan')\n case 'other_garnishment':\n return t('types.otherGarnishment')\n }\n}\n"],"names":["SUPPORTED_GARNISHMENT_TYPES","deductionToVariant","deduction","type","DeductionsForm","className","employeeId","dictionary","onSaved","onCancel","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","isEdit","title","initialVariant","useMemo","variant","setVariant","useState","garnishmentTypeOptions","value","garnishmentTypeLabel","handleSelectDeductionType","selection","handleSelectGarnishmentType","jsxs","Grid","Flex","jsx","Fragment","ActionsLayout","StandardDeductionForm","ChildSupportFormView"],"mappings":"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"}
1
+ {"version":3,"file":"DeductionsForm.js","sources":["../../../../../../src/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useMemo, useState } from 'react'\nimport type {\n Garnishment,\n GarnishmentType,\n} from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment'\nimport { StandardDeductionForm } from './StandardDeductionForm'\nimport { ChildSupportFormView } from './ChildSupportFormView'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Grid } from '@/components/Common/Grid/Grid'\nimport { Flex } from '@/components/Common/Flex/Flex'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport type { ResourceDictionary } from '@/types/Helpers'\n\n/** @internal */\nexport type DeductionsFormDictionary = ResourceDictionary<'Employee.DeductionsForm'>\n\n// Garnishment types the form supports (mirrors the legacy SUPPORTED_GARNISHMENT_TYPES).\nconst SUPPORTED_GARNISHMENT_TYPES: readonly GarnishmentType[] = [\n 'child_support',\n 'federal_tax_lien',\n 'state_tax_lien',\n 'student_loan',\n 'creditor_garnishment',\n 'federal_loan',\n 'other_garnishment',\n] as const\n\ntype Variant = { kind: 'custom' } | { kind: 'garnishment'; type: GarnishmentType }\n\nfunction deductionToVariant(deduction: Garnishment): Variant {\n const type = deduction.garnishmentType\n if (!deduction.courtOrdered) return { kind: 'custom' }\n return {\n kind: 'garnishment',\n type: type && SUPPORTED_GARNISHMENT_TYPES.includes(type) ? type : 'child_support',\n }\n}\n\n/** @internal */\nexport interface DeductionsFormProps {\n /** Optional CSS class for the root section. */\n className?: string\n /** The associated employee identifier. */\n employeeId: string\n /** When provided, the form is in edit mode and the deduction's existing\n * garnishment type selects the inline form variant. Omit for add mode. */\n deduction?: Garnishment | null\n /**\n * Translation overrides for the form's strings. Each consuming block\n * passes the dictionary it resolved from its own namespace so partner\n * overrides on that namespace flow into the form text.\n */\n dictionary?: DeductionsFormDictionary\n /** Called after a successful save with the saved row and whether it was a create or update. */\n onSaved: (deduction: Garnishment, mode: 'create' | 'update') => void\n /** Called when the user cancels the form. */\n onCancel: () => void\n}\n\n/** @internal */\nexport function DeductionsForm({\n className,\n employeeId,\n deduction,\n dictionary,\n onSaved,\n onCancel,\n}: DeductionsFormProps) {\n useI18n('Employee.DeductionsForm')\n useComponentDictionary('Employee.DeductionsForm', dictionary)\n const { t } = useTranslation('Employee.DeductionsForm')\n const Components = useComponentContext()\n\n const isEdit = !!deduction\n const title = isEdit ? t('editTitle') : t('addTitle')\n\n // Pre-select the variant in edit mode; let the user pick in add mode.\n const initialVariant = useMemo<Variant | null>(\n () => (deduction ? deductionToVariant(deduction) : null),\n [deduction],\n )\n const [variant, setVariant] = useState<Variant | null>(initialVariant)\n\n const garnishmentTypeOptions = useMemo(\n () =>\n SUPPORTED_GARNISHMENT_TYPES.map(value => ({\n value,\n label: garnishmentTypeLabel(t, value),\n })),\n [t],\n )\n\n const handleSelectDeductionType = (selection: string) => {\n if (selection === 'custom') {\n setVariant({ kind: 'custom' })\n } else {\n setVariant({ kind: 'garnishment', type: 'child_support' })\n }\n }\n\n const handleSelectGarnishmentType = (value: string) => {\n setVariant({ kind: 'garnishment', type: value as GarnishmentType })\n }\n\n return (\n <section className={className}>\n <Grid gap={32}>\n <Flex flexDirection=\"column\" gap={2}>\n <Components.Heading as=\"h2\">{title}</Components.Heading>\n <Components.Text variant=\"supporting\">{t('description')}</Components.Text>\n </Flex>\n\n {!isEdit && (\n <>\n <Flex flexDirection=\"column\" gap={20}>\n <Components.RadioGroup\n label={t('variantLabel')}\n description={t('variantDescription')}\n options={[\n { value: 'garnishment', label: t('garnishmentOption') },\n { value: 'custom', label: t('customOption') },\n ]}\n defaultValue={variant?.kind === 'custom' ? 'custom' : undefined}\n onChange={handleSelectDeductionType}\n isRequired\n />\n\n {variant?.kind === 'garnishment' && (\n <Components.Select\n label={t('garnishmentTypeLabel')}\n placeholder=\"\"\n options={garnishmentTypeOptions}\n value={variant.type}\n onChange={handleSelectGarnishmentType}\n isRequired\n />\n )}\n </Flex>\n\n {variant !== null && <hr />}\n\n {variant === null && (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onCancel}>\n {t('actions.cancel')}\n </Components.Button>\n </ActionsLayout>\n )}\n </>\n )}\n\n {variant?.kind === 'custom' && (\n <StandardDeductionForm\n employeeId={employeeId}\n deduction={deduction ?? null}\n courtOrdered={false}\n title={t('types.custom')}\n onSaved={onSaved}\n onCancel={onCancel}\n />\n )}\n {variant?.kind === 'garnishment' && variant.type === 'child_support' && (\n <ChildSupportFormView\n employeeId={employeeId}\n deduction={deduction ?? null}\n onSaved={onSaved}\n onCancel={onCancel}\n />\n )}\n {variant?.kind === 'garnishment' && variant.type !== 'child_support' && (\n <StandardDeductionForm\n employeeId={employeeId}\n deduction={deduction ?? null}\n courtOrdered={true}\n garnishmentType={variant.type}\n title={garnishmentTypeLabel(t, variant.type)}\n onSaved={onSaved}\n onCancel={onCancel}\n />\n )}\n </Grid>\n </section>\n )\n}\n\nfunction garnishmentTypeLabel(\n t: ReturnType<typeof useTranslation<'Employee.DeductionsForm'>>['t'],\n value: GarnishmentType,\n): string {\n switch (value) {\n case 'child_support':\n return t('types.childSupport')\n case 'federal_tax_lien':\n return t('types.federalTaxLien')\n case 'state_tax_lien':\n return t('types.stateTaxLien')\n case 'student_loan':\n return t('types.studentLoan')\n case 'creditor_garnishment':\n return t('types.creditorGarnishment')\n case 'federal_loan':\n return t('types.federalLoan')\n case 'other_garnishment':\n return t('types.otherGarnishment')\n }\n}\n"],"names":["SUPPORTED_GARNISHMENT_TYPES","deductionToVariant","deduction","type","DeductionsForm","className","employeeId","dictionary","onSaved","onCancel","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","isEdit","title","initialVariant","useMemo","variant","setVariant","useState","garnishmentTypeOptions","value","garnishmentTypeLabel","handleSelectDeductionType","selection","handleSelectGarnishmentType","jsxs","Grid","Flex","jsx","Fragment","ActionsLayout","StandardDeductionForm","ChildSupportFormView"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { Garnishment, GarnishmentType } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment';
1
+ import { Garnishment, GarnishmentType } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment';
2
2
  interface StandardDeductionFormProps {
3
3
  employeeId: string;
4
4
  deduction: Garnishment | null;
@@ -1 +1 @@
1
- {"version":3,"file":"StandardDeductionForm.js","sources":["../../../../../../src/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useWatch } from 'react-hook-form'\nimport type {\n Garnishment,\n GarnishmentType,\n} from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport type { Control } from 'react-hook-form'\nimport { useDeductionForm } from '../useDeductionForm'\nimport type { DeductionFormData } from '../useDeductionForm'\nimport { Form } from '@/components/Common/Form'\nimport { ActionsLayout } from '@/components/Common'\nimport { Flex } from '@/components/Common/Flex/Flex'\nimport { BaseLayout } from '@/components/Base/Base'\nimport { SDKFormProvider } from '@/partner-hook-utils/form/SDKFormProvider'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface StandardDeductionFormProps {\n employeeId: string\n deduction: Garnishment | null\n /** Court-ordered garnishments require `garnishmentType`. Custom deductions don't. */\n courtOrdered: boolean\n /** Only meaningful when `courtOrdered: true`. Selects the garnishment type\n * on create. Ignored in edit mode (the existing type is preserved). */\n garnishmentType?: GarnishmentType\n /** Section heading shown above the form. The parent picker is responsible\n * for translating the garnishment-type label so this component doesn't\n * need to repeat the labels mapping. */\n title: string\n onSaved: (deduction: Garnishment, mode: 'create' | 'update') => void\n onCancel: () => void\n}\n\n/** @internal */\nexport function StandardDeductionForm({\n employeeId,\n deduction,\n courtOrdered,\n garnishmentType,\n title,\n onSaved,\n onCancel,\n}: StandardDeductionFormProps) {\n const { t } = useTranslation('Employee.DeductionsForm')\n const Components = useComponentContext()\n\n const form = useDeductionForm({\n employeeId,\n garnishmentId: deduction?.uuid,\n courtOrdered,\n defaultValues: courtOrdered && garnishmentType ? { garnishmentType } : undefined,\n })\n\n if (form.isLoading) {\n return <BaseLayout isLoading error={form.errorHandling.errors} />\n }\n\n const { Fields } = form.form\n return (\n <ReadyForm\n form={form}\n Fields={Fields}\n Components={Components}\n t={t}\n title={title}\n onSaved={onSaved}\n onCancel={onCancel}\n />\n )\n}\n\n// Split into a child component so we can call `useWatch` on the form's control\n// only once the hook is in its ready state (the control reference exists then).\nfunction ReadyForm({\n form,\n Fields,\n Components,\n t,\n title,\n onSaved,\n onCancel,\n}: {\n form: Extract<ReturnType<typeof useDeductionForm>, { isLoading: false }>\n Fields: Extract<ReturnType<typeof useDeductionForm>, { isLoading: false }>['form']['Fields']\n Components: ReturnType<typeof useComponentContext>\n t: ReturnType<typeof useTranslation<'Employee.DeductionsForm'>>['t']\n title: string\n onSaved: (deduction: Garnishment, mode: 'create' | 'update') => void\n onCancel: () => void\n}) {\n // useWatch subscribes to changes; getValues only reads once. We need the\n // subscription because `Fields.Amount`'s `format` and `description` props\n // need to re-render when the user toggles Percentage / Fixed amount.\n // The RadioGroup's options carry string values (`'true'`/`'false'`), which\n // round-trip into form state as strings — only `coerceStringBoolean` in the\n // zod preprocessor turns them into actual booleans at validation time. So\n // here we explicitly compare against both shapes; `Boolean('false')` would\n // be truthy and surface the wrong copy under the Amount field.\n const watchedDeductAsPercentageRaw = useWatch({\n control: form.form.hookFormInternals.formMethods.control as Control<DeductionFormData>,\n name: 'deductAsPercentage',\n }) as boolean | 'true' | 'false' | undefined\n const watchedDeductAsPercentage =\n watchedDeductAsPercentageRaw === true || watchedDeductAsPercentageRaw === 'true'\n\n const handleSubmit = async () => {\n const result = await form.actions.onSubmit()\n if (result) onSaved(result.data, result.mode)\n }\n\n return (\n <BaseLayout error={form.errorHandling.errors}>\n <SDKFormProvider formHookResult={form}>\n <Form onSubmit={handleSubmit}>\n <Flex flexDirection=\"column\" gap={32}>\n <Components.Heading as=\"h3\">{title}</Components.Heading>\n <Flex flexDirection=\"column\" gap={20}>\n <Flex flexDirection=\"column\" gap={20}>\n <Fields.Description\n label={t('standard.descriptionLabel')}\n validationMessages={{ REQUIRED: t('standard.descriptionRequired') }}\n />\n <Fields.Recurring\n label={t('standard.frequencyLabel')}\n getOptionLabel={(value: boolean) =>\n value ? t('standard.frequencyRecurring') : t('standard.frequencyOneTime')\n }\n validationMessages={{ REQUIRED: t('standard.frequencyRequired') }}\n />\n <Fields.DeductAsPercentage\n label={t('standard.typeLabel')}\n getOptionLabel={(value: boolean) =>\n value ? t('standard.typePercentage') : t('standard.typeFixed')\n }\n validationMessages={{ REQUIRED: t('standard.typeRequired') }}\n />\n <Fields.Amount\n label={t('standard.amountLabel')}\n format={watchedDeductAsPercentage ? 'percent' : 'currency'}\n description={\n watchedDeductAsPercentage\n ? t('standard.amountPercentDescription')\n : t('standard.amountFixedDescription')\n }\n min={0}\n validationMessages={{\n REQUIRED: t('standard.amountRequired'),\n NEGATIVE_AMOUNT: t('standard.amountNonNegative'),\n }}\n />\n </Flex>\n {Fields.TotalAmount && Fields.AnnualMaximum && (\n <Flex flexDirection=\"column\" gap={20}>\n <Fields.TotalAmount\n label={t('standard.totalAmountLabel')}\n description={t('standard.totalAmountDescription')}\n format=\"currency\"\n min={0}\n validationMessages={{\n NEGATIVE_AMOUNT: t('standard.amountNonNegative'),\n }}\n />\n <Fields.AnnualMaximum\n label={t('standard.annualMaxLabel')}\n description={t('standard.annualMaxDescription')}\n format=\"currency\"\n min={0}\n validationMessages={{\n NEGATIVE_AMOUNT: t('standard.amountNonNegative'),\n }}\n />\n </Flex>\n )}\n </Flex>\n <ActionsLayout>\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onCancel}>\n {t('actions.cancel')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={form.status.isPending}>\n {t('actions.save')}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n </Form>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n"],"names":["StandardDeductionForm","employeeId","deduction","courtOrdered","garnishmentType","title","onSaved","onCancel","t","useTranslation","Components","useComponentContext","form","useDeductionForm","BaseLayout","Fields","jsx","ReadyForm","watchedDeductAsPercentageRaw","useWatch","watchedDeductAsPercentage","handleSubmit","result","SDKFormProvider","Form","jsxs","Flex","value","ActionsLayout"],"mappings":"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"}
1
+ {"version":3,"file":"StandardDeductionForm.js","sources":["../../../../../../src/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useWatch } from 'react-hook-form'\nimport type {\n Garnishment,\n GarnishmentType,\n} from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment'\nimport type { Control } from 'react-hook-form'\nimport { useDeductionForm } from '../useDeductionForm'\nimport type { DeductionFormData } from '../useDeductionForm'\nimport { Form } from '@/components/Common/Form'\nimport { ActionsLayout } from '@/components/Common'\nimport { Flex } from '@/components/Common/Flex/Flex'\nimport { BaseLayout } from '@/components/Base/Base'\nimport { SDKFormProvider } from '@/partner-hook-utils/form/SDKFormProvider'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface StandardDeductionFormProps {\n employeeId: string\n deduction: Garnishment | null\n /** Court-ordered garnishments require `garnishmentType`. Custom deductions don't. */\n courtOrdered: boolean\n /** Only meaningful when `courtOrdered: true`. Selects the garnishment type\n * on create. Ignored in edit mode (the existing type is preserved). */\n garnishmentType?: GarnishmentType\n /** Section heading shown above the form. The parent picker is responsible\n * for translating the garnishment-type label so this component doesn't\n * need to repeat the labels mapping. */\n title: string\n onSaved: (deduction: Garnishment, mode: 'create' | 'update') => void\n onCancel: () => void\n}\n\n/** @internal */\nexport function StandardDeductionForm({\n employeeId,\n deduction,\n courtOrdered,\n garnishmentType,\n title,\n onSaved,\n onCancel,\n}: StandardDeductionFormProps) {\n const { t } = useTranslation('Employee.DeductionsForm')\n const Components = useComponentContext()\n\n const form = useDeductionForm({\n employeeId,\n garnishmentId: deduction?.uuid,\n courtOrdered,\n defaultValues: courtOrdered && garnishmentType ? { garnishmentType } : undefined,\n })\n\n if (form.isLoading) {\n return <BaseLayout isLoading error={form.errorHandling.errors} />\n }\n\n const { Fields } = form.form\n return (\n <ReadyForm\n form={form}\n Fields={Fields}\n Components={Components}\n t={t}\n title={title}\n onSaved={onSaved}\n onCancel={onCancel}\n />\n )\n}\n\n// Split into a child component so we can call `useWatch` on the form's control\n// only once the hook is in its ready state (the control reference exists then).\nfunction ReadyForm({\n form,\n Fields,\n Components,\n t,\n title,\n onSaved,\n onCancel,\n}: {\n form: Extract<ReturnType<typeof useDeductionForm>, { isLoading: false }>\n Fields: Extract<ReturnType<typeof useDeductionForm>, { isLoading: false }>['form']['Fields']\n Components: ReturnType<typeof useComponentContext>\n t: ReturnType<typeof useTranslation<'Employee.DeductionsForm'>>['t']\n title: string\n onSaved: (deduction: Garnishment, mode: 'create' | 'update') => void\n onCancel: () => void\n}) {\n // useWatch subscribes to changes; getValues only reads once. We need the\n // subscription because `Fields.Amount`'s `format` and `description` props\n // need to re-render when the user toggles Percentage / Fixed amount.\n // The RadioGroup's options carry string values (`'true'`/`'false'`), which\n // round-trip into form state as strings — only `coerceStringBoolean` in the\n // zod preprocessor turns them into actual booleans at validation time. So\n // here we explicitly compare against both shapes; `Boolean('false')` would\n // be truthy and surface the wrong copy under the Amount field.\n const watchedDeductAsPercentageRaw = useWatch({\n control: form.form.hookFormInternals.formMethods.control as Control<DeductionFormData>,\n name: 'deductAsPercentage',\n }) as boolean | 'true' | 'false' | undefined\n const watchedDeductAsPercentage =\n watchedDeductAsPercentageRaw === true || watchedDeductAsPercentageRaw === 'true'\n\n const handleSubmit = async () => {\n const result = await form.actions.onSubmit()\n if (result) onSaved(result.data, result.mode)\n }\n\n return (\n <BaseLayout error={form.errorHandling.errors}>\n <SDKFormProvider formHookResult={form}>\n <Form onSubmit={handleSubmit}>\n <Flex flexDirection=\"column\" gap={32}>\n <Components.Heading as=\"h3\">{title}</Components.Heading>\n <Flex flexDirection=\"column\" gap={20}>\n <Flex flexDirection=\"column\" gap={20}>\n <Fields.Description\n label={t('standard.descriptionLabel')}\n validationMessages={{ REQUIRED: t('standard.descriptionRequired') }}\n />\n <Fields.Recurring\n label={t('standard.frequencyLabel')}\n getOptionLabel={(value: boolean) =>\n value ? t('standard.frequencyRecurring') : t('standard.frequencyOneTime')\n }\n validationMessages={{ REQUIRED: t('standard.frequencyRequired') }}\n />\n <Fields.DeductAsPercentage\n label={t('standard.typeLabel')}\n getOptionLabel={(value: boolean) =>\n value ? t('standard.typePercentage') : t('standard.typeFixed')\n }\n validationMessages={{ REQUIRED: t('standard.typeRequired') }}\n />\n <Fields.Amount\n label={t('standard.amountLabel')}\n format={watchedDeductAsPercentage ? 'percent' : 'currency'}\n description={\n watchedDeductAsPercentage\n ? t('standard.amountPercentDescription')\n : t('standard.amountFixedDescription')\n }\n min={0}\n validationMessages={{\n REQUIRED: t('standard.amountRequired'),\n NEGATIVE_AMOUNT: t('standard.amountNonNegative'),\n }}\n />\n </Flex>\n {Fields.TotalAmount && Fields.AnnualMaximum && (\n <Flex flexDirection=\"column\" gap={20}>\n <Fields.TotalAmount\n label={t('standard.totalAmountLabel')}\n description={t('standard.totalAmountDescription')}\n format=\"currency\"\n min={0}\n validationMessages={{\n NEGATIVE_AMOUNT: t('standard.amountNonNegative'),\n }}\n />\n <Fields.AnnualMaximum\n label={t('standard.annualMaxLabel')}\n description={t('standard.annualMaxDescription')}\n format=\"currency\"\n min={0}\n validationMessages={{\n NEGATIVE_AMOUNT: t('standard.amountNonNegative'),\n }}\n />\n </Flex>\n )}\n </Flex>\n <ActionsLayout>\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onCancel}>\n {t('actions.cancel')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={form.status.isPending}>\n {t('actions.save')}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n </Form>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n"],"names":["StandardDeductionForm","employeeId","deduction","courtOrdered","garnishmentType","title","onSaved","onCancel","t","useTranslation","Components","useComponentContext","form","useDeductionForm","BaseLayout","Fields","jsx","ReadyForm","watchedDeductAsPercentageRaw","useWatch","watchedDeductAsPercentage","handleSubmit","result","SDKFormProvider","Form","jsxs","Flex","value","ActionsLayout"],"mappings":"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"}
@@ -1,2 +1 @@
1
- import "./types/i18next.d.ts"
2
1
  export { DeductionsForm, type DeductionsFormDictionary } from './DeductionsForm';
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment';
2
+ import { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment';
3
3
  /**
4
4
  * Presentational confirm dialog for deleting a deduction. All copy is
5
5
  * passed in by the caller so each consumer owns its own translation strings
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteDeductionDialog.js","sources":["../../../../../src/components/Employee/Deductions/shared/DeleteDeductionDialog.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\n/**\n * Presentational confirm dialog for deleting a deduction. All copy is\n * passed in by the caller so each consumer owns its own translation strings\n * — partner overrides on one flow's namespace won't leak into another.\n *\n * @internal\n */\nexport function DeleteDeductionDialog({\n pendingDeleteDeduction,\n isPrimaryActionLoading,\n onClose,\n onConfirm,\n title,\n description,\n confirmLabel,\n cancelLabel,\n}: {\n pendingDeleteDeduction: Garnishment | null\n isPrimaryActionLoading: boolean\n onClose: () => void\n onConfirm: () => void\n title: string\n description: ReactNode\n confirmLabel: string\n cancelLabel: string\n}) {\n const Components = useComponentContext()\n return (\n <Components.Dialog\n isOpen={pendingDeleteDeduction !== null}\n onClose={onClose}\n onPrimaryActionClick={onConfirm}\n isPrimaryActionLoading={isPrimaryActionLoading}\n isDestructive\n title={title}\n primaryActionLabel={confirmLabel}\n closeActionLabel={cancelLabel}\n >\n {pendingDeleteDeduction && description}\n </Components.Dialog>\n )\n}\n"],"names":["DeleteDeductionDialog","pendingDeleteDeduction","isPrimaryActionLoading","onClose","onConfirm","title","description","confirmLabel","cancelLabel","Components","useComponentContext","jsx"],"mappings":";;AAWO,SAASA,EAAsB;AAAA,EACpC,wBAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AACF,GASG;AACD,QAAMC,IAAaC,EAAA;AACnB,SACE,gBAAAC;AAAA,IAACF,EAAW;AAAA,IAAX;AAAA,MACC,QAAQR,MAA2B;AAAA,MACnC,SAAAE;AAAA,MACA,sBAAsBC;AAAA,MACtB,wBAAAF;AAAA,MACA,eAAa;AAAA,MACb,OAAAG;AAAA,MACA,oBAAoBE;AAAA,MACpB,kBAAkBC;AAAA,MAEjB,UAAAP,KAA0BK;AAAA,IAAA;AAAA,EAAA;AAGjC;"}
1
+ {"version":3,"file":"DeleteDeductionDialog.js","sources":["../../../../../src/components/Employee/Deductions/shared/DeleteDeductionDialog.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\n/**\n * Presentational confirm dialog for deleting a deduction. All copy is\n * passed in by the caller so each consumer owns its own translation strings\n * — partner overrides on one flow's namespace won't leak into another.\n *\n * @internal\n */\nexport function DeleteDeductionDialog({\n pendingDeleteDeduction,\n isPrimaryActionLoading,\n onClose,\n onConfirm,\n title,\n description,\n confirmLabel,\n cancelLabel,\n}: {\n pendingDeleteDeduction: Garnishment | null\n isPrimaryActionLoading: boolean\n onClose: () => void\n onConfirm: () => void\n title: string\n description: ReactNode\n confirmLabel: string\n cancelLabel: string\n}) {\n const Components = useComponentContext()\n return (\n <Components.Dialog\n isOpen={pendingDeleteDeduction !== null}\n onClose={onClose}\n onPrimaryActionClick={onConfirm}\n isPrimaryActionLoading={isPrimaryActionLoading}\n isDestructive\n title={title}\n primaryActionLabel={confirmLabel}\n closeActionLabel={cancelLabel}\n >\n {pendingDeleteDeduction && description}\n </Components.Dialog>\n )\n}\n"],"names":["DeleteDeductionDialog","pendingDeleteDeduction","isPrimaryActionLoading","onClose","onConfirm","title","description","confirmLabel","cancelLabel","Components","useComponentContext","jsx"],"mappings":";;AAWO,SAASA,EAAsB;AAAA,EACpC,wBAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AACF,GASG;AACD,QAAMC,IAAaC,EAAA;AACnB,SACE,gBAAAC;AAAA,IAACF,EAAW;AAAA,IAAX;AAAA,MACC,QAAQR,MAA2B;AAAA,MACnC,SAAAE;AAAA,MACA,sBAAsBC;AAAA,MACtB,wBAAAF;AAAA,MACA,eAAa;AAAA,MACb,OAAAG;AAAA,MACA,oBAAoBE;AAAA,MACpB,kBAAkBC;AAAA,MAEjB,UAAAP,KAA0BK;AAAA,IAAA;AAAA,EAAA;AAGjC;"}
@@ -1,4 +1,4 @@
1
- import { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment';
1
+ import { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment';
2
2
  /** @internal */
3
3
  export interface DeductionAmountFormatters {
4
4
  formatCurrency: (value: number) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"formatDeductionAmount.js","sources":["../../../../../src/components/Employee/Deductions/shared/formatDeductionAmount.ts"],"sourcesContent":["import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'\n\n/** @internal */\nexport interface DeductionAmountFormatters {\n formatCurrency: (value: number) => string\n formatPercent: (value: number) => string\n formatPerPaycheck: (value: string) => string\n}\n\n/** @internal */\nexport function formatDeductionAmount(\n deduction: Pick<Garnishment, 'amount' | 'deductAsPercentage' | 'recurring' | 'payPeriodMaximum'>,\n { formatCurrency, formatPercent, formatPerPaycheck }: DeductionAmountFormatters,\n): string {\n const numericAmount = Number(deduction.amount)\n if (Number.isNaN(numericAmount)) return '-'\n\n // Child-support garnishments are always stored as `deductAsPercentage: true`,\n // but the percentage is optional — a user may withhold only a fixed dollar\n // amount (`payPeriodMaximum`). Rendering that as \"0% per paycheck\" is\n // misleading (SDK-945). When there's no percentage, show the dollar cap the\n // user actually entered, or \"-\" when neither is set.\n if (deduction.deductAsPercentage && numericAmount === 0) {\n const cap = Number(deduction.payPeriodMaximum ?? 0)\n if (!Number.isNaN(cap) && cap > 0) {\n const capFormatted = formatCurrency(cap)\n return deduction.recurring ? formatPerPaycheck(capFormatted) : capFormatted\n }\n return '-'\n }\n\n const formatted = deduction.deductAsPercentage\n ? formatPercent(numericAmount)\n : formatCurrency(numericAmount)\n return deduction.recurring ? formatPerPaycheck(formatted) : formatted\n}\n"],"names":["formatDeductionAmount","deduction","formatCurrency","formatPercent","formatPerPaycheck","numericAmount","cap","capFormatted","formatted"],"mappings":"AAUO,SAASA,EACdC,GACA,EAAE,gBAAAC,GAAgB,eAAAC,GAAe,mBAAAC,KACzB;AACR,QAAMC,IAAgB,OAAOJ,EAAU,MAAM;AAC7C,MAAI,OAAO,MAAMI,CAAa,EAAG,QAAO;AAOxC,MAAIJ,EAAU,sBAAsBI,MAAkB,GAAG;AACvD,UAAMC,IAAM,OAAOL,EAAU,oBAAoB,CAAC;AAClD,QAAI,CAAC,OAAO,MAAMK,CAAG,KAAKA,IAAM,GAAG;AACjC,YAAMC,IAAeL,EAAeI,CAAG;AACvC,aAAOL,EAAU,YAAYG,EAAkBG,CAAY,IAAIA;AAAA,IACjE;AACA,WAAO;AAAA,EACT;AAEA,QAAMC,IAAYP,EAAU,qBACxBE,EAAcE,CAAa,IAC3BH,EAAeG,CAAa;AAChC,SAAOJ,EAAU,YAAYG,EAAkBI,CAAS,IAAIA;AAC9D;"}
1
+ {"version":3,"file":"formatDeductionAmount.js","sources":["../../../../../src/components/Employee/Deductions/shared/formatDeductionAmount.ts"],"sourcesContent":["import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment'\n\n/** @internal */\nexport interface DeductionAmountFormatters {\n formatCurrency: (value: number) => string\n formatPercent: (value: number) => string\n formatPerPaycheck: (value: string) => string\n}\n\n/** @internal */\nexport function formatDeductionAmount(\n deduction: Pick<Garnishment, 'amount' | 'deductAsPercentage' | 'recurring' | 'payPeriodMaximum'>,\n { formatCurrency, formatPercent, formatPerPaycheck }: DeductionAmountFormatters,\n): string {\n const numericAmount = Number(deduction.amount)\n if (Number.isNaN(numericAmount)) return '-'\n\n // Child-support garnishments are always stored as `deductAsPercentage: true`,\n // but the percentage is optional — a user may withhold only a fixed dollar\n // amount (`payPeriodMaximum`). Rendering that as \"0% per paycheck\" is\n // misleading (SDK-945). When there's no percentage, show the dollar cap the\n // user actually entered, or \"-\" when neither is set.\n if (deduction.deductAsPercentage && numericAmount === 0) {\n const cap = Number(deduction.payPeriodMaximum ?? 0)\n if (!Number.isNaN(cap) && cap > 0) {\n const capFormatted = formatCurrency(cap)\n return deduction.recurring ? formatPerPaycheck(capFormatted) : capFormatted\n }\n return '-'\n }\n\n const formatted = deduction.deductAsPercentage\n ? formatPercent(numericAmount)\n : formatCurrency(numericAmount)\n return deduction.recurring ? formatPerPaycheck(formatted) : formatted\n}\n"],"names":["formatDeductionAmount","deduction","formatCurrency","formatPercent","formatPerPaycheck","numericAmount","cap","capFormatted","formatted"],"mappings":"AAUO,SAASA,EACdC,GACA,EAAE,gBAAAC,GAAgB,eAAAC,GAAe,mBAAAC,KACzB;AACR,QAAMC,IAAgB,OAAOJ,EAAU,MAAM;AAC7C,MAAI,OAAO,MAAMI,CAAa,EAAG,QAAO;AAOxC,MAAIJ,EAAU,sBAAsBI,MAAkB,GAAG;AACvD,UAAMC,IAAM,OAAOL,EAAU,oBAAoB,CAAC;AAClD,QAAI,CAAC,OAAO,MAAMK,CAAG,KAAKA,IAAM,GAAG;AACjC,YAAMC,IAAeL,EAAeI,CAAG;AACvC,aAAOL,EAAU,YAAYG,EAAkBG,CAAY,IAAIA;AAAA,IACjE;AACA,WAAO;AAAA,EACT;AAEA,QAAMC,IAAYP,EAAU,qBACxBE,EAAcE,CAAa,IAC3BH,EAAeG,CAAa;AAChC,SAAOJ,EAAU,YAAYG,EAAkBI,CAAS,IAAIA;AAC9D;"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Agencies } from '@gusto/embedded-api-v-2025-11-15/models/components/childsupportdata';
2
+ import { Agencies } from '@gusto/embedded-api-v-2026-02-01/models/components/childsupportdata';
3
3
  /**
4
4
  * Validation error codes emitted by the child support garnishment form schema.
5
5
  * Map these codes to localized copy in `validationMessages` when composing the
@@ -43,12 +43,7 @@ export declare function getRequiredAttrKeys(agency?: Agencies | null): Set<Suppo
43
43
  * @interface
44
44
  */
45
45
  export type ChildSupportGarnishmentFormData = { state: string; fipsCode: string; caseNumber: string; orderNumber: string; remittanceNumber: string; payPeriodMaximum: number; amount: number; paymentPeriod: "Every week" | "Every other week" | "Twice per month" | "Monthly"; };
46
- /**
47
- * Shape of the validated values produced by the child support garnishment
48
- * form on submit.
49
- *
50
- * @public
51
- */
46
+ /** @internal */
52
47
  export type ChildSupportGarnishmentFormOutputs = ChildSupportGarnishmentFormData;
53
48
  /** @internal */
54
49
  interface ChildSupportGarnishmentFormSchemaOptions {
@@ -1,5 +1,5 @@
1
1
  import { z as e } from "zod";
2
- import { PaymentPeriod as c } from "@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport";
2
+ import { PaymentPeriod as c } from "@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport";
3
3
  import { buildFormSchema as d } from "../../../../../partner-hook-utils/form/buildFormSchema.js";
4
4
  import { coerceNaN as u } from "../../../../../partner-hook-utils/form/preprocessors.js";
5
5
  const i = {
@@ -1 +1 @@
1
- {"version":3,"file":"childSupportGarnishmentFormSchema.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport'\nimport type { Agencies } from '@gusto/embedded-api-v-2025-11-15/models/components/childsupportdata'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n} from '@/partner-hook-utils/form/buildFormSchema'\nimport { coerceNaN } from '@/partner-hook-utils/form/preprocessors'\n\n// ── Error codes ────────────────────────────────────────────────────────\n\n/**\n * Validation error codes emitted by the child support garnishment form schema.\n * Map these codes to localized copy in `validationMessages` when composing the\n * hook.\n *\n * @public\n */\nexport const ChildSupportGarnishmentFormErrorCodes = {\n REQUIRED: 'REQUIRED',\n NEGATIVE_AMOUNT: 'NEGATIVE_AMOUNT',\n PERCENT_OUT_OF_RANGE: 'PERCENT_OUT_OF_RANGE',\n} as const\n\n/**\n * Union of validation error code strings emitted by the child support\n * garnishment form schema.\n *\n * @public\n */\nexport type ChildSupportGarnishmentFormErrorCode =\n (typeof ChildSupportGarnishmentFormErrorCodes)[keyof typeof ChildSupportGarnishmentFormErrorCodes]\n\n// ── Required-attribute keys recognized from the API ────────────────────\n\n/**\n * Child support attribute keys that the form recognizes. Each state agency\n * declares which of these keys it requires; the hook exposes the resolved\n * subset via `requiredAttrKeys` so callers can drive their own UI on which\n * `caseNumber` / `orderNumber` / `remittanceNumber` fields are required.\n *\n * @public\n */\nexport const SUPPORTED_REQUIRED_ATTR_KEYS = [\n 'case_number',\n 'order_number',\n 'remittance_number',\n] as const\n\n/**\n * Union of child support attribute key strings recognized by the form.\n *\n * @public\n */\nexport type SupportedRequiredAttrKey = (typeof SUPPORTED_REQUIRED_ATTR_KEYS)[number]\n\n/** @internal */\nexport function getRequiredAttrKeys(agency?: Agencies | null): Set<SupportedRequiredAttrKey> {\n const keys = new Set<SupportedRequiredAttrKey>()\n if (!agency?.requiredAttributes) return keys\n for (const attr of agency.requiredAttributes) {\n if (!attr.key) continue\n if ((SUPPORTED_REQUIRED_ATTR_KEYS as readonly string[]).includes(attr.key)) {\n keys.add(attr.key as SupportedRequiredAttrKey)\n }\n }\n return keys\n}\n\n// ── Field validators ───────────────────────────────────────────────────\n\nconst PERCENT_MIN = 0\nconst PERCENT_MAX = 100\n\nconst fieldValidators = {\n state: z.string(),\n fipsCode: z.string(),\n caseNumber: z.string(),\n orderNumber: z.string(),\n remittanceNumber: z.string(),\n // Currency cap on the pay-period — required, ≥ 0.\n payPeriodMaximum: z.preprocess(\n coerceNaN(0),\n z.number().min(0, { message: ChildSupportGarnishmentFormErrorCodes.NEGATIVE_AMOUNT }),\n ),\n // Percentage of paycheck, 0-100. Required.\n amount: z.preprocess(\n coerceNaN(0),\n z\n .number()\n .min(PERCENT_MIN, {\n message: ChildSupportGarnishmentFormErrorCodes.PERCENT_OUT_OF_RANGE,\n })\n .max(PERCENT_MAX, {\n message: ChildSupportGarnishmentFormErrorCodes.PERCENT_OUT_OF_RANGE,\n }),\n ),\n paymentPeriod: z.enum(PaymentPeriod),\n}\n\n/**\n * Shape of the values managed by the child support garnishment form.\n *\n * @public\n * @interface\n */\nexport type ChildSupportGarnishmentFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\n/**\n * Shape of the validated values produced by the child support garnishment\n * form on submit.\n *\n * @public\n */\nexport type ChildSupportGarnishmentFormOutputs = ChildSupportGarnishmentFormData\n\n// ── Required fields config ─────────────────────────────────────────────\n//\n// `state`, `fipsCode`, `payPeriodMaximum`, `amount`, `paymentPeriod` are\n// always required. The three agency-attribute fields toggle requiredness\n// based on the currently selected agency — see `createChildSupportGarnishmentFormSchema`\n// which assigns 'always' / 'never' per call.\n\n/** @internal */\ninterface ChildSupportGarnishmentFormSchemaOptions {\n mode?: 'create' | 'update'\n /**\n * The agency record matching the currently selected `state`. Used only when\n * `agencyList` is not provided — `requiredAttributes` are pinned to this\n * single agency, so the schema must be rebuilt whenever the user picks a\n * different state. Prefer passing `agencyList` instead so requiredness\n * tracks the form's `state` value dynamically.\n */\n selectedAgency?: Agencies | null\n /**\n * Full list of agencies. When provided, the schema's requiredness for\n * `caseNumber` / `orderNumber` / `remittanceNumber` is computed at validation\n * time by looking up the agency whose `state` matches the form's `state`\n * value — so a single schema instance stays correct as the user changes\n * states. Takes precedence over `selectedAgency`.\n */\n agencyList?: readonly Agencies[]\n}\n\n/** @internal */\nexport function createChildSupportGarnishmentFormSchema({\n mode = 'create',\n selectedAgency,\n agencyList,\n}: ChildSupportGarnishmentFormSchemaOptions = {}) {\n // Read `data.state` eagerly (outside the `agencyList.find` callback) so that\n // `buildFormSchema`'s proxy-based predicate-dep detection always observes\n // the `state` access — otherwise an empty `agencyList` at schema-build time\n // would short-circuit the `find` before the proxy sees `data.state` and\n // `useDeriveFieldsMetadata` would treat the field metadata as static.\n const requiredFieldsConfig = agencyList\n ? ({\n caseNumber: data => {\n const state = data.state\n return getRequiredAttrKeys(agencyList.find(a => a.state === state)).has('case_number')\n },\n orderNumber: data => {\n const state = data.state\n return getRequiredAttrKeys(agencyList.find(a => a.state === state)).has('order_number')\n },\n remittanceNumber: data => {\n const state = data.state\n return getRequiredAttrKeys(agencyList.find(a => a.state === state)).has(\n 'remittance_number',\n )\n },\n } satisfies RequiredFieldConfig<typeof fieldValidators>)\n : (() => {\n const requiredAttrKeys = getRequiredAttrKeys(selectedAgency)\n return {\n caseNumber: requiredAttrKeys.has('case_number') ? 'always' : 'never',\n orderNumber: requiredAttrKeys.has('order_number') ? 'always' : 'never',\n remittanceNumber: requiredAttrKeys.has('remittance_number') ? 'always' : 'never',\n } satisfies RequiredFieldConfig<typeof fieldValidators>\n })()\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: ChildSupportGarnishmentFormErrorCodes.REQUIRED,\n mode,\n })\n}\n"],"names":["ChildSupportGarnishmentFormErrorCodes","SUPPORTED_REQUIRED_ATTR_KEYS","getRequiredAttrKeys","agency","keys","attr","PERCENT_MIN","PERCENT_MAX","fieldValidators","z","coerceNaN","PaymentPeriod","createChildSupportGarnishmentFormSchema","mode","selectedAgency","agencyList","requiredFieldsConfig","data","state","a","requiredAttrKeys","buildFormSchema"],"mappings":";;;;AAkBO,MAAMA,IAAwC;AAAA,EACnD,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,sBAAsB;AACxB,GAqBaC,IAA+B;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AACF;AAUO,SAASC,EAAoBC,GAAyD;AAC3F,QAAMC,wBAAW,IAAA;AACjB,MAAI,CAACD,GAAQ,mBAAoB,QAAOC;AACxC,aAAWC,KAAQF,EAAO;AACxB,IAAKE,EAAK,OACLJ,EAAmD,SAASI,EAAK,GAAG,KACvED,EAAK,IAAIC,EAAK,GAA+B;AAGjD,SAAOD;AACT;AAIA,MAAME,IAAc,GACdC,IAAc,KAEdC,IAAkB;AAAA,EACtB,OAAOC,EAAE,OAAA;AAAA,EACT,UAAUA,EAAE,OAAA;AAAA,EACZ,YAAYA,EAAE,OAAA;AAAA,EACd,aAAaA,EAAE,OAAA;AAAA,EACf,kBAAkBA,EAAE,OAAA;AAAA;AAAA,EAEpB,kBAAkBA,EAAE;AAAA,IAClBC,EAAU,CAAC;AAAA,IACXD,EAAE,SAAS,IAAI,GAAG,EAAE,SAAST,EAAsC,gBAAA,CAAiB;AAAA,EAAA;AAAA;AAAA,EAGtF,QAAQS,EAAE;AAAA,IACRC,EAAU,CAAC;AAAA,IACXD,EACG,OAAA,EACA,IAAIH,GAAa;AAAA,MAChB,SAASN,EAAsC;AAAA,IAAA,CAChD,EACA,IAAIO,GAAa;AAAA,MAChB,SAASP,EAAsC;AAAA,IAAA,CAChD;AAAA,EAAA;AAAA,EAEL,eAAeS,EAAE,KAAKE,CAAa;AACrC;AAiDO,SAASC,EAAwC;AAAA,EACtD,MAAAC,IAAO;AAAA,EACP,gBAAAC;AAAA,EACA,YAAAC;AACF,IAA8C,IAAI;AAMhD,QAAMC,IAAuBD,IACxB;AAAA,IACC,YAAY,CAAAE,MAAQ;AAClB,YAAMC,IAAQD,EAAK;AACnB,aAAOf,EAAoBa,EAAW,KAAK,CAAAI,MAAKA,EAAE,UAAUD,CAAK,CAAC,EAAE,IAAI,aAAa;AAAA,IACvF;AAAA,IACA,aAAa,CAAAD,MAAQ;AACnB,YAAMC,IAAQD,EAAK;AACnB,aAAOf,EAAoBa,EAAW,KAAK,CAAAI,MAAKA,EAAE,UAAUD,CAAK,CAAC,EAAE,IAAI,cAAc;AAAA,IACxF;AAAA,IACA,kBAAkB,CAAAD,MAAQ;AACxB,YAAMC,IAAQD,EAAK;AACnB,aAAOf,EAAoBa,EAAW,KAAK,CAAAI,MAAKA,EAAE,UAAUD,CAAK,CAAC,EAAE;AAAA,QAClE;AAAA,MAAA;AAAA,IAEJ;AAAA,EAAA,KAED,MAAM;AACL,UAAME,IAAmBlB,EAAoBY,CAAc;AAC3D,WAAO;AAAA,MACL,YAAYM,EAAiB,IAAI,aAAa,IAAI,WAAW;AAAA,MAC7D,aAAaA,EAAiB,IAAI,cAAc,IAAI,WAAW;AAAA,MAC/D,kBAAkBA,EAAiB,IAAI,mBAAmB,IAAI,WAAW;AAAA,IAAA;AAAA,EAE7E,GAAA;AAEJ,SAAOC,EAAgBb,GAAiB;AAAA,IACtC,sBAAAQ;AAAA,IACA,mBAAmBhB,EAAsC;AAAA,IACzD,MAAAa;AAAA,EAAA,CACD;AACH;"}
1
+ {"version":3,"file":"childSupportGarnishmentFormSchema.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport { PaymentPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport'\nimport type { Agencies } from '@gusto/embedded-api-v-2026-02-01/models/components/childsupportdata'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n} from '@/partner-hook-utils/form/buildFormSchema'\nimport { coerceNaN } from '@/partner-hook-utils/form/preprocessors'\n\n// ── Error codes ────────────────────────────────────────────────────────\n\n/**\n * Validation error codes emitted by the child support garnishment form schema.\n * Map these codes to localized copy in `validationMessages` when composing the\n * hook.\n *\n * @public\n */\nexport const ChildSupportGarnishmentFormErrorCodes = {\n REQUIRED: 'REQUIRED',\n NEGATIVE_AMOUNT: 'NEGATIVE_AMOUNT',\n PERCENT_OUT_OF_RANGE: 'PERCENT_OUT_OF_RANGE',\n} as const\n\n/**\n * Union of validation error code strings emitted by the child support\n * garnishment form schema.\n *\n * @public\n */\nexport type ChildSupportGarnishmentFormErrorCode =\n (typeof ChildSupportGarnishmentFormErrorCodes)[keyof typeof ChildSupportGarnishmentFormErrorCodes]\n\n// ── Required-attribute keys recognized from the API ────────────────────\n\n/**\n * Child support attribute keys that the form recognizes. Each state agency\n * declares which of these keys it requires; the hook exposes the resolved\n * subset via `requiredAttrKeys` so callers can drive their own UI on which\n * `caseNumber` / `orderNumber` / `remittanceNumber` fields are required.\n *\n * @public\n */\nexport const SUPPORTED_REQUIRED_ATTR_KEYS = [\n 'case_number',\n 'order_number',\n 'remittance_number',\n] as const\n\n/**\n * Union of child support attribute key strings recognized by the form.\n *\n * @public\n */\nexport type SupportedRequiredAttrKey = (typeof SUPPORTED_REQUIRED_ATTR_KEYS)[number]\n\n/** @internal */\nexport function getRequiredAttrKeys(agency?: Agencies | null): Set<SupportedRequiredAttrKey> {\n const keys = new Set<SupportedRequiredAttrKey>()\n if (!agency?.requiredAttributes) return keys\n for (const attr of agency.requiredAttributes) {\n if (!attr.key) continue\n if ((SUPPORTED_REQUIRED_ATTR_KEYS as readonly string[]).includes(attr.key)) {\n keys.add(attr.key as SupportedRequiredAttrKey)\n }\n }\n return keys\n}\n\n// ── Field validators ───────────────────────────────────────────────────\n\nconst PERCENT_MIN = 0\nconst PERCENT_MAX = 100\n\nconst fieldValidators = {\n state: z.string(),\n fipsCode: z.string(),\n caseNumber: z.string(),\n orderNumber: z.string(),\n remittanceNumber: z.string(),\n // Currency cap on the pay-period — required, ≥ 0.\n payPeriodMaximum: z.preprocess(\n coerceNaN(0),\n z.number().min(0, { message: ChildSupportGarnishmentFormErrorCodes.NEGATIVE_AMOUNT }),\n ),\n // Percentage of paycheck, 0-100. Required.\n amount: z.preprocess(\n coerceNaN(0),\n z\n .number()\n .min(PERCENT_MIN, {\n message: ChildSupportGarnishmentFormErrorCodes.PERCENT_OUT_OF_RANGE,\n })\n .max(PERCENT_MAX, {\n message: ChildSupportGarnishmentFormErrorCodes.PERCENT_OUT_OF_RANGE,\n }),\n ),\n paymentPeriod: z.enum(PaymentPeriod),\n}\n\n/**\n * Shape of the values managed by the child support garnishment form.\n *\n * @public\n * @interface\n */\nexport type ChildSupportGarnishmentFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\n/** @internal */\nexport type ChildSupportGarnishmentFormOutputs = ChildSupportGarnishmentFormData\n\n// ── Required fields config ─────────────────────────────────────────────\n//\n// `state`, `fipsCode`, `payPeriodMaximum`, `amount`, `paymentPeriod` are\n// always required. The three agency-attribute fields toggle requiredness\n// based on the currently selected agency — see `createChildSupportGarnishmentFormSchema`\n// which assigns 'always' / 'never' per call.\n\n/** @internal */\ninterface ChildSupportGarnishmentFormSchemaOptions {\n mode?: 'create' | 'update'\n /**\n * The agency record matching the currently selected `state`. Used only when\n * `agencyList` is not provided — `requiredAttributes` are pinned to this\n * single agency, so the schema must be rebuilt whenever the user picks a\n * different state. Prefer passing `agencyList` instead so requiredness\n * tracks the form's `state` value dynamically.\n */\n selectedAgency?: Agencies | null\n /**\n * Full list of agencies. When provided, the schema's requiredness for\n * `caseNumber` / `orderNumber` / `remittanceNumber` is computed at validation\n * time by looking up the agency whose `state` matches the form's `state`\n * value — so a single schema instance stays correct as the user changes\n * states. Takes precedence over `selectedAgency`.\n */\n agencyList?: readonly Agencies[]\n}\n\n/** @internal */\nexport function createChildSupportGarnishmentFormSchema({\n mode = 'create',\n selectedAgency,\n agencyList,\n}: ChildSupportGarnishmentFormSchemaOptions = {}) {\n // Read `data.state` eagerly (outside the `agencyList.find` callback) so that\n // `buildFormSchema`'s proxy-based predicate-dep detection always observes\n // the `state` access — otherwise an empty `agencyList` at schema-build time\n // would short-circuit the `find` before the proxy sees `data.state` and\n // `useDeriveFieldsMetadata` would treat the field metadata as static.\n const requiredFieldsConfig = agencyList\n ? ({\n caseNumber: data => {\n const state = data.state\n return getRequiredAttrKeys(agencyList.find(a => a.state === state)).has('case_number')\n },\n orderNumber: data => {\n const state = data.state\n return getRequiredAttrKeys(agencyList.find(a => a.state === state)).has('order_number')\n },\n remittanceNumber: data => {\n const state = data.state\n return getRequiredAttrKeys(agencyList.find(a => a.state === state)).has(\n 'remittance_number',\n )\n },\n } satisfies RequiredFieldConfig<typeof fieldValidators>)\n : (() => {\n const requiredAttrKeys = getRequiredAttrKeys(selectedAgency)\n return {\n caseNumber: requiredAttrKeys.has('case_number') ? 'always' : 'never',\n orderNumber: requiredAttrKeys.has('order_number') ? 'always' : 'never',\n remittanceNumber: requiredAttrKeys.has('remittance_number') ? 'always' : 'never',\n } satisfies RequiredFieldConfig<typeof fieldValidators>\n })()\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: ChildSupportGarnishmentFormErrorCodes.REQUIRED,\n mode,\n })\n}\n"],"names":["ChildSupportGarnishmentFormErrorCodes","SUPPORTED_REQUIRED_ATTR_KEYS","getRequiredAttrKeys","agency","keys","attr","PERCENT_MIN","PERCENT_MAX","fieldValidators","z","coerceNaN","PaymentPeriod","createChildSupportGarnishmentFormSchema","mode","selectedAgency","agencyList","requiredFieldsConfig","data","state","a","requiredAttrKeys","buildFormSchema"],"mappings":";;;;AAkBO,MAAMA,IAAwC;AAAA,EACnD,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,sBAAsB;AACxB,GAqBaC,IAA+B;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AACF;AAUO,SAASC,EAAoBC,GAAyD;AAC3F,QAAMC,wBAAW,IAAA;AACjB,MAAI,CAACD,GAAQ,mBAAoB,QAAOC;AACxC,aAAWC,KAAQF,EAAO;AACxB,IAAKE,EAAK,OACLJ,EAAmD,SAASI,EAAK,GAAG,KACvED,EAAK,IAAIC,EAAK,GAA+B;AAGjD,SAAOD;AACT;AAIA,MAAME,IAAc,GACdC,IAAc,KAEdC,IAAkB;AAAA,EACtB,OAAOC,EAAE,OAAA;AAAA,EACT,UAAUA,EAAE,OAAA;AAAA,EACZ,YAAYA,EAAE,OAAA;AAAA,EACd,aAAaA,EAAE,OAAA;AAAA,EACf,kBAAkBA,EAAE,OAAA;AAAA;AAAA,EAEpB,kBAAkBA,EAAE;AAAA,IAClBC,EAAU,CAAC;AAAA,IACXD,EAAE,SAAS,IAAI,GAAG,EAAE,SAAST,EAAsC,gBAAA,CAAiB;AAAA,EAAA;AAAA;AAAA,EAGtF,QAAQS,EAAE;AAAA,IACRC,EAAU,CAAC;AAAA,IACXD,EACG,OAAA,EACA,IAAIH,GAAa;AAAA,MAChB,SAASN,EAAsC;AAAA,IAAA,CAChD,EACA,IAAIO,GAAa;AAAA,MAChB,SAASP,EAAsC;AAAA,IAAA,CAChD;AAAA,EAAA;AAAA,EAEL,eAAeS,EAAE,KAAKE,CAAa;AACrC;AA4CO,SAASC,EAAwC;AAAA,EACtD,MAAAC,IAAO;AAAA,EACP,gBAAAC;AAAA,EACA,YAAAC;AACF,IAA8C,IAAI;AAMhD,QAAMC,IAAuBD,IACxB;AAAA,IACC,YAAY,CAAAE,MAAQ;AAClB,YAAMC,IAAQD,EAAK;AACnB,aAAOf,EAAoBa,EAAW,KAAK,CAAAI,MAAKA,EAAE,UAAUD,CAAK,CAAC,EAAE,IAAI,aAAa;AAAA,IACvF;AAAA,IACA,aAAa,CAAAD,MAAQ;AACnB,YAAMC,IAAQD,EAAK;AACnB,aAAOf,EAAoBa,EAAW,KAAK,CAAAI,MAAKA,EAAE,UAAUD,CAAK,CAAC,EAAE,IAAI,cAAc;AAAA,IACxF;AAAA,IACA,kBAAkB,CAAAD,MAAQ;AACxB,YAAMC,IAAQD,EAAK;AACnB,aAAOf,EAAoBa,EAAW,KAAK,CAAAI,MAAKA,EAAE,UAAUD,CAAK,CAAC,EAAE;AAAA,QAClE;AAAA,MAAA;AAAA,IAEJ;AAAA,EAAA,KAED,MAAM;AACL,UAAME,IAAmBlB,EAAoBY,CAAc;AAC3D,WAAO;AAAA,MACL,YAAYM,EAAiB,IAAI,aAAa,IAAI,WAAW;AAAA,MAC7D,aAAaA,EAAiB,IAAI,cAAc,IAAI,WAAW;AAAA,MAC/D,kBAAkBA,EAAiB,IAAI,mBAAmB,IAAI,WAAW;AAAA,IAAA;AAAA,EAE7E,GAAA;AAEJ,SAAOC,EAAgBb,GAAiB;AAAA,IACtC,sBAAAQ;AAAA,IACA,mBAAmBhB,EAAsC;AAAA,IACzD,MAAAa;AAAA,EAAA,CACD;AACH;"}
@@ -1,4 +1,4 @@
1
- import { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport';
1
+ import { PaymentPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport';
2
2
  import { ChildSupportGarnishmentFormErrorCodes } from './childSupportGarnishmentFormSchema';
3
3
  import { TextInputHookFieldProps } from '../../../../../partner-hook-utils/form/fields/TextInputHookField';
4
4
  import { NumberInputHookFieldProps } from '../../../../../partner-hook-utils/form/fields/NumberInputHookField';
@@ -79,18 +79,7 @@ export type StateFieldEntry = {
79
79
  * @public
80
80
  */
81
81
  export type StateFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, StateFieldEntry>>;
82
- /**
83
- * Select bound to the `state` field of {@link useChildSupportGarnishmentForm}.
84
- *
85
- * @remarks
86
- * Available on the hook result as `form.Fields.State`. Always rendered. The
87
- * selected agency drives which subsequent fields are required and visible
88
- * (`FipsCode`, `CaseNumber`, `OrderNumber`, `RemittanceNumber`).
89
- *
90
- * @param props - {@link StateFieldProps} — accepts the standard hook field props plus `getOptionLabel` for agency display.
91
- * @returns The rendered select bound to `state`.
92
- * @public
93
- */
82
+ /** @internal */
94
83
  export declare function StateField(props: StateFieldProps): import("react").JSX.Element;
95
84
  /**
96
85
  * Raw county entry exposed on {@link useChildSupportGarnishmentForm}'s `data.counties` and as the `entries` shape for the `FipsCode` select.
@@ -114,20 +103,7 @@ export type CountyEntry = {
114
103
  * @public
115
104
  */
116
105
  export type FipsCodeFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, CountyEntry>>;
117
- /**
118
- * Select bound to the `fipsCode` field of {@link useChildSupportGarnishmentForm}.
119
- *
120
- * @remarks
121
- * Available on the hook result as `form.Fields.FipsCode` only when the selected
122
- * agency offers multiple counties. When the agency has a single "all counties"
123
- * code, the hook auto-fills the value and exposes the field as `undefined` —
124
- * always null-check before rendering. Options are dynamically populated from
125
- * the FIPS codes the selected agency declares.
126
- *
127
- * @param props - {@link FipsCodeFieldProps} — accepts the standard hook field props plus `getOptionLabel` for county display.
128
- * @returns The rendered select bound to `fipsCode`.
129
- * @public
130
- */
106
+ /** @internal */
131
107
  export declare function FipsCodeField(props: FipsCodeFieldProps): import("react").JSX.Element;
132
108
  /**
133
109
  * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.CaseNumber` component.
@@ -135,18 +111,7 @@ export declare function FipsCodeField(props: FipsCodeFieldProps): import("react"
135
111
  * @public
136
112
  */
137
113
  export type CaseNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>;
138
- /**
139
- * Text input bound to the `caseNumber` field of {@link useChildSupportGarnishmentForm}.
140
- *
141
- * @remarks
142
- * Available on the hook result as `form.Fields.CaseNumber` only when the
143
- * selected agency requires a case number (`status.requiredAttrKeys.has('case_number')`).
144
- * Always null-check before rendering.
145
- *
146
- * @param props - {@link CaseNumberFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
147
- * @returns The rendered text input bound to `caseNumber`.
148
- * @public
149
- */
114
+ /** @internal */
150
115
  export declare function CaseNumberField(props: CaseNumberFieldProps): import("react").JSX.Element;
151
116
  /**
152
117
  * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.OrderNumber` component.
@@ -154,18 +119,7 @@ export declare function CaseNumberField(props: CaseNumberFieldProps): import("re
154
119
  * @public
155
120
  */
156
121
  export type OrderNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>;
157
- /**
158
- * Text input bound to the `orderNumber` field of {@link useChildSupportGarnishmentForm}.
159
- *
160
- * @remarks
161
- * Available on the hook result as `form.Fields.OrderNumber` only when the
162
- * selected agency requires an order number (`status.requiredAttrKeys.has('order_number')`).
163
- * Always null-check before rendering.
164
- *
165
- * @param props - {@link OrderNumberFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
166
- * @returns The rendered text input bound to `orderNumber`.
167
- * @public
168
- */
122
+ /** @internal */
169
123
  export declare function OrderNumberField(props: OrderNumberFieldProps): import("react").JSX.Element;
170
124
  /**
171
125
  * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.RemittanceNumber` component.
@@ -173,18 +127,7 @@ export declare function OrderNumberField(props: OrderNumberFieldProps): import("
173
127
  * @public
174
128
  */
175
129
  export type RemittanceNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>;
176
- /**
177
- * Text input bound to the `remittanceNumber` field of {@link useChildSupportGarnishmentForm}.
178
- *
179
- * @remarks
180
- * Available on the hook result as `form.Fields.RemittanceNumber` only when the
181
- * selected agency requires a remittance number (`status.requiredAttrKeys.has('remittance_number')`).
182
- * Always null-check before rendering.
183
- *
184
- * @param props - {@link RemittanceNumberFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
185
- * @returns The rendered text input bound to `remittanceNumber`.
186
- * @public
187
- */
130
+ /** @internal */
188
131
  export declare function RemittanceNumberField(props: RemittanceNumberFieldProps): import("react").JSX.Element;
189
132
  /**
190
133
  * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.PayPeriodMaximum` component.
@@ -192,17 +135,7 @@ export declare function RemittanceNumberField(props: RemittanceNumberFieldProps)
192
135
  * @public
193
136
  */
194
137
  export type PayPeriodMaximumFieldProps = HookFieldProps<NumberInputHookFieldProps<PayPeriodMaximumValidation>>;
195
- /**
196
- * Number input bound to the `payPeriodMaximum` field of {@link useChildSupportGarnishmentForm}.
197
- *
198
- * @remarks
199
- * Available on the hook result as `form.Fields.PayPeriodMaximum`. Always
200
- * rendered. Carries the per-pay-period currency cap for the garnishment.
201
- *
202
- * @param props - {@link PayPeriodMaximumFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
203
- * @returns The rendered number input bound to `payPeriodMaximum`.
204
- * @public
205
- */
138
+ /** @internal */
206
139
  export declare function PayPeriodMaximumField(props: PayPeriodMaximumFieldProps): import("react").JSX.Element;
207
140
  /**
208
141
  * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.Amount` component.
@@ -210,18 +143,7 @@ export declare function PayPeriodMaximumField(props: PayPeriodMaximumFieldProps)
210
143
  * @public
211
144
  */
212
145
  export type AmountFieldProps = HookFieldProps<NumberInputHookFieldProps<AmountValidation>>;
213
- /**
214
- * Number input bound to the `amount` field of {@link useChildSupportGarnishmentForm}.
215
- *
216
- * @remarks
217
- * Available on the hook result as `form.Fields.Amount`. Always rendered.
218
- * Accepts a percentage of paycheck in the range 0–100 — the API stores
219
- * child-support amounts as percentages rather than fixed currency values.
220
- *
221
- * @param props - {@link AmountFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
222
- * @returns The rendered number input bound to `amount`.
223
- * @public
224
- */
146
+ /** @internal */
225
147
  export declare function AmountField(props: AmountFieldProps): import("react").JSX.Element;
226
148
  /**
227
149
  * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.PaymentPeriod` component.
@@ -229,15 +151,5 @@ export declare function AmountField(props: AmountFieldProps): import("react").JS
229
151
  * @public
230
152
  */
231
153
  export type PaymentPeriodFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, PaymentPeriod>>;
232
- /**
233
- * Select bound to the `paymentPeriod` field of {@link useChildSupportGarnishmentForm}.
234
- *
235
- * @remarks
236
- * Available on the hook result as `form.Fields.PaymentPeriod`. Always rendered.
237
- * Options: `Every week`, `Every other week`, `Twice per month`, `Monthly`.
238
- *
239
- * @param props - {@link PaymentPeriodFieldProps} — accepts the standard hook field props plus `getOptionLabel` for payment-period display.
240
- * @returns The rendered select bound to `paymentPeriod`.
241
- * @public
242
- */
154
+ /** @internal */
243
155
  export declare function PaymentPeriodField(props: PaymentPeriodFieldProps): import("react").JSX.Element;
@@ -1,21 +1,21 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { TextInputHookField as n } from "../../../../../partner-hook-utils/form/fields/TextInputHookField.js";
3
- import { SelectHookField as t } from "../../../../../partner-hook-utils/form/fields/SelectHookField.js";
2
+ import { SelectHookField as n } from "../../../../../partner-hook-utils/form/fields/SelectHookField.js";
4
3
  import { NumberInputHookField as i } from "../../../../../partner-hook-utils/form/fields/NumberInputHookField.js";
4
+ import { TextInputHookField as t } from "../../../../../partner-hook-utils/form/fields/TextInputHookField.js";
5
5
  function d(e) {
6
- return /* @__PURE__ */ r(t, { ...e, name: "state" });
6
+ return /* @__PURE__ */ r(n, { ...e, name: "state" });
7
7
  }
8
8
  function f(e) {
9
- return /* @__PURE__ */ r(t, { ...e, name: "fipsCode" });
9
+ return /* @__PURE__ */ r(n, { ...e, name: "fipsCode" });
10
10
  }
11
11
  function c(e) {
12
- return /* @__PURE__ */ r(n, { ...e, name: "caseNumber" });
12
+ return /* @__PURE__ */ r(t, { ...e, name: "caseNumber" });
13
13
  }
14
14
  function l(e) {
15
- return /* @__PURE__ */ r(n, { ...e, name: "orderNumber" });
15
+ return /* @__PURE__ */ r(t, { ...e, name: "orderNumber" });
16
16
  }
17
17
  function F(e) {
18
- return /* @__PURE__ */ r(n, { ...e, name: "remittanceNumber" });
18
+ return /* @__PURE__ */ r(t, { ...e, name: "remittanceNumber" });
19
19
  }
20
20
  function p(e) {
21
21
  return /* @__PURE__ */ r(i, { ...e, name: "payPeriodMaximum" });
@@ -24,7 +24,7 @@ function b(e) {
24
24
  return /* @__PURE__ */ r(i, { ...e, name: "amount" });
25
25
  }
26
26
  function N(e) {
27
- return /* @__PURE__ */ r(t, { ...e, name: "paymentPeriod" });
27
+ return /* @__PURE__ */ r(n, { ...e, name: "paymentPeriod" });
28
28
  }
29
29
  export {
30
30
  b as AmountField,
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.tsx"],"sourcesContent":["import type { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport'\nimport type { ChildSupportGarnishmentFormErrorCodes } from './childSupportGarnishmentFormSchema'\nimport type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField'\nimport type { NumberInputHookFieldProps } from '@/partner-hook-utils/form/fields/NumberInputHookField'\nimport type { SelectHookFieldProps } from '@/partner-hook-utils/form/fields/SelectHookField'\nimport {\n TextInputHookField,\n NumberInputHookField,\n SelectHookField,\n} from '@/partner-hook-utils/form/fields'\nimport type { HookFieldProps } from '@/partner-hook-utils/types'\n\n/**\n * The required-field error code produced by {@link useChildSupportGarnishmentForm} fields that only emit `REQUIRED`.\n *\n * @remarks\n * Used as the `validationMessages` key for the state, county (fips code), case\n * number, order number, remittance number, and payment-period fields. See\n * {@link ChildSupportGarnishmentFormErrorCodes}.\n *\n * @public\n */\nexport type RequiredValidation = typeof ChildSupportGarnishmentFormErrorCodes.REQUIRED\n\n/**\n * The negative-amount error code produced by {@link useChildSupportGarnishmentForm}'s currency fields.\n *\n * @remarks\n * Used as a `validationMessages` key on `Fields.PayPeriodMaximum`. See\n * {@link ChildSupportGarnishmentFormErrorCodes}.\n *\n * @public\n */\nexport type NegativeAmountValidation = typeof ChildSupportGarnishmentFormErrorCodes.NEGATIVE_AMOUNT\n\n/**\n * The percent-out-of-range error code produced by {@link useChildSupportGarnishmentForm}'s percentage field.\n *\n * @remarks\n * Used as a `validationMessages` key on `Fields.Amount` (the percent-of-paycheck input).\n * See {@link ChildSupportGarnishmentFormErrorCodes}.\n *\n * @public\n */\nexport type PercentValidation = typeof ChildSupportGarnishmentFormErrorCodes.PERCENT_OUT_OF_RANGE\n\n/**\n * Validation error codes emitted by the `payPeriodMaximum` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.PayPeriodMaximum`. See\n * {@link ChildSupportGarnishmentFormErrorCodes} for the full description of each code.\n *\n * @public\n */\nexport type PayPeriodMaximumValidation = RequiredValidation | NegativeAmountValidation\n\n/**\n * Validation error codes emitted by the `amount` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.Amount`. The field\n * accepts a percentage of paycheck (0–100). See\n * {@link ChildSupportGarnishmentFormErrorCodes} for the full description of each code.\n *\n * @public\n */\nexport type AmountValidation = RequiredValidation | PercentValidation\n\n// ── State (agency) ─────────────────────────────────────────────────────\n//\n// The select carries the raw agency record as `entries`; the consumer can\n// supply `getOptionLabel` to translate the agency name into a localized\n// label (the SDK's option-label fallback is the agency state code).\n\n/**\n * Raw agency entry exposed on {@link useChildSupportGarnishmentForm}'s `data.agencies` and as the `entries` shape for the `State` select.\n *\n * @remarks\n * Supply `getOptionLabel` on `Fields.State` to translate the agency name into a\n * localized label — the SDK's option-label fallback is the agency state code.\n *\n * @public\n */\nexport type StateFieldEntry = {\n /** The agency's state code (e.g. `AK`). */\n state: string\n /** The agency name as returned by the Gusto API. */\n name: string\n /** True when the agency requires payments to be remitted manually rather than through Gusto. */\n manualPaymentRequired?: boolean\n}\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.State` component.\n *\n * @public\n */\nexport type StateFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, StateFieldEntry>\n>\n\n/**\n * Select bound to the `state` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.State`. Always rendered. The\n * selected agency drives which subsequent fields are required and visible\n * (`FipsCode`, `CaseNumber`, `OrderNumber`, `RemittanceNumber`).\n *\n * @param props - {@link StateFieldProps} — accepts the standard hook field props plus `getOptionLabel` for agency display.\n * @returns The rendered select bound to `state`.\n * @public\n */\nexport function StateField(props: StateFieldProps) {\n return <SelectHookField {...props} name=\"state\" />\n}\n\n// ── FipsCode (county) ──────────────────────────────────────────────────\n\n/**\n * Raw county entry exposed on {@link useChildSupportGarnishmentForm}'s `data.counties` and as the `entries` shape for the `FipsCode` select.\n *\n * @remarks\n * `county` is `null` for \"all counties\" entries — the agency's single county\n * record represents the whole state. Supply `getOptionLabel` on\n * `Fields.FipsCode` to translate the county name into a localized label.\n *\n * @public\n */\nexport type CountyEntry = {\n /** The FIPS code for the county. */\n fipsCode: string\n /** The county name, or `null` for an \"all counties\" entry covering the whole state. */\n county: string | null\n}\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.FipsCode` component.\n *\n * @public\n */\nexport type FipsCodeFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, CountyEntry>\n>\n\n/**\n * Select bound to the `fipsCode` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.FipsCode` only when the selected\n * agency offers multiple counties. When the agency has a single \"all counties\"\n * code, the hook auto-fills the value and exposes the field as `undefined` —\n * always null-check before rendering. Options are dynamically populated from\n * the FIPS codes the selected agency declares.\n *\n * @param props - {@link FipsCodeFieldProps} — accepts the standard hook field props plus `getOptionLabel` for county display.\n * @returns The rendered select bound to `fipsCode`.\n * @public\n */\nexport function FipsCodeField(props: FipsCodeFieldProps) {\n return <SelectHookField {...props} name=\"fipsCode\" />\n}\n\n// ── Required agency-attribute text inputs ──────────────────────────────\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.CaseNumber` component.\n *\n * @public\n */\nexport type CaseNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/**\n * Text input bound to the `caseNumber` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.CaseNumber` only when the\n * selected agency requires a case number (`status.requiredAttrKeys.has('case_number')`).\n * Always null-check before rendering.\n *\n * @param props - {@link CaseNumberFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `caseNumber`.\n * @public\n */\nexport function CaseNumberField(props: CaseNumberFieldProps) {\n return <TextInputHookField {...props} name=\"caseNumber\" />\n}\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.OrderNumber` component.\n *\n * @public\n */\nexport type OrderNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/**\n * Text input bound to the `orderNumber` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.OrderNumber` only when the\n * selected agency requires an order number (`status.requiredAttrKeys.has('order_number')`).\n * Always null-check before rendering.\n *\n * @param props - {@link OrderNumberFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `orderNumber`.\n * @public\n */\nexport function OrderNumberField(props: OrderNumberFieldProps) {\n return <TextInputHookField {...props} name=\"orderNumber\" />\n}\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.RemittanceNumber` component.\n *\n * @public\n */\nexport type RemittanceNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/**\n * Text input bound to the `remittanceNumber` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.RemittanceNumber` only when the\n * selected agency requires a remittance number (`status.requiredAttrKeys.has('remittance_number')`).\n * Always null-check before rendering.\n *\n * @param props - {@link RemittanceNumberFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `remittanceNumber`.\n * @public\n */\nexport function RemittanceNumberField(props: RemittanceNumberFieldProps) {\n return <TextInputHookField {...props} name=\"remittanceNumber\" />\n}\n\n// ── Pay-period maximum (currency) ──────────────────────────────────────\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.PayPeriodMaximum` component.\n *\n * @public\n */\nexport type PayPeriodMaximumFieldProps = HookFieldProps<\n NumberInputHookFieldProps<PayPeriodMaximumValidation>\n>\n\n/**\n * Number input bound to the `payPeriodMaximum` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.PayPeriodMaximum`. Always\n * rendered. Carries the per-pay-period currency cap for the garnishment.\n *\n * @param props - {@link PayPeriodMaximumFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered number input bound to `payPeriodMaximum`.\n * @public\n */\nexport function PayPeriodMaximumField(props: PayPeriodMaximumFieldProps) {\n return <NumberInputHookField {...props} name=\"payPeriodMaximum\" />\n}\n\n// ── Amount (percent of paycheck, 0-100) ────────────────────────────────\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.Amount` component.\n *\n * @public\n */\nexport type AmountFieldProps = HookFieldProps<NumberInputHookFieldProps<AmountValidation>>\n\n/**\n * Number input bound to the `amount` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.Amount`. Always rendered.\n * Accepts a percentage of paycheck in the range 0–100 — the API stores\n * child-support amounts as percentages rather than fixed currency values.\n *\n * @param props - {@link AmountFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered number input bound to `amount`.\n * @public\n */\nexport function AmountField(props: AmountFieldProps) {\n return <NumberInputHookField {...props} name=\"amount\" />\n}\n\n// ── Payment period (select) ────────────────────────────────────────────\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.PaymentPeriod` component.\n *\n * @public\n */\nexport type PaymentPeriodFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, PaymentPeriod>\n>\n\n/**\n * Select bound to the `paymentPeriod` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.PaymentPeriod`. Always rendered.\n * Options: `Every week`, `Every other week`, `Twice per month`, `Monthly`.\n *\n * @param props - {@link PaymentPeriodFieldProps} — accepts the standard hook field props plus `getOptionLabel` for payment-period display.\n * @returns The rendered select bound to `paymentPeriod`.\n * @public\n */\nexport function PaymentPeriodField(props: PaymentPeriodFieldProps) {\n return <SelectHookField {...props} name=\"paymentPeriod\" />\n}\n"],"names":["StateField","props","jsx","SelectHookField","FipsCodeField","CaseNumberField","TextInputHookField","OrderNumberField","RemittanceNumberField","PayPeriodMaximumField","NumberInputHookField","AmountField","PaymentPeriodField"],"mappings":";;;;AAkHO,SAASA,EAAWC,GAAwB;AACjD,SAAO,gBAAAC,EAACC,GAAA,EAAiB,GAAGF,GAAO,MAAK,SAAQ;AAClD;AA4CO,SAASG,EAAcH,GAA2B;AACvD,SAAO,gBAAAC,EAACC,GAAA,EAAiB,GAAGF,GAAO,MAAK,YAAW;AACrD;AAuBO,SAASI,EAAgBJ,GAA6B;AAC3D,SAAO,gBAAAC,EAACI,GAAA,EAAoB,GAAGL,GAAO,MAAK,cAAa;AAC1D;AAqBO,SAASM,EAAiBN,GAA8B;AAC7D,SAAO,gBAAAC,EAACI,GAAA,EAAoB,GAAGL,GAAO,MAAK,eAAc;AAC3D;AAqBO,SAASO,EAAsBP,GAAmC;AACvE,SAAO,gBAAAC,EAACI,GAAA,EAAoB,GAAGL,GAAO,MAAK,oBAAmB;AAChE;AAwBO,SAASQ,EAAsBR,GAAmC;AACvE,SAAO,gBAAAC,EAACQ,GAAA,EAAsB,GAAGT,GAAO,MAAK,oBAAmB;AAClE;AAuBO,SAASU,EAAYV,GAAyB;AACnD,SAAO,gBAAAC,EAACQ,GAAA,EAAsB,GAAGT,GAAO,MAAK,UAAS;AACxD;AAwBO,SAASW,EAAmBX,GAAgC;AACjE,SAAO,gBAAAC,EAACC,GAAA,EAAiB,GAAGF,GAAO,MAAK,iBAAgB;AAC1D;"}
1
+ {"version":3,"file":"fields.js","sources":["../../../../../../src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.tsx"],"sourcesContent":["import type { PaymentPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport'\nimport type { ChildSupportGarnishmentFormErrorCodes } from './childSupportGarnishmentFormSchema'\nimport type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField'\nimport type { NumberInputHookFieldProps } from '@/partner-hook-utils/form/fields/NumberInputHookField'\nimport type { SelectHookFieldProps } from '@/partner-hook-utils/form/fields/SelectHookField'\nimport {\n TextInputHookField,\n NumberInputHookField,\n SelectHookField,\n} from '@/partner-hook-utils/form/fields'\nimport type { HookFieldProps } from '@/partner-hook-utils/types'\n\n/**\n * The required-field error code produced by {@link useChildSupportGarnishmentForm} fields that only emit `REQUIRED`.\n *\n * @remarks\n * Used as the `validationMessages` key for the state, county (fips code), case\n * number, order number, remittance number, and payment-period fields. See\n * {@link ChildSupportGarnishmentFormErrorCodes}.\n *\n * @public\n */\nexport type RequiredValidation = typeof ChildSupportGarnishmentFormErrorCodes.REQUIRED\n\n/**\n * The negative-amount error code produced by {@link useChildSupportGarnishmentForm}'s currency fields.\n *\n * @remarks\n * Used as a `validationMessages` key on `Fields.PayPeriodMaximum`. See\n * {@link ChildSupportGarnishmentFormErrorCodes}.\n *\n * @public\n */\nexport type NegativeAmountValidation = typeof ChildSupportGarnishmentFormErrorCodes.NEGATIVE_AMOUNT\n\n/**\n * The percent-out-of-range error code produced by {@link useChildSupportGarnishmentForm}'s percentage field.\n *\n * @remarks\n * Used as a `validationMessages` key on `Fields.Amount` (the percent-of-paycheck input).\n * See {@link ChildSupportGarnishmentFormErrorCodes}.\n *\n * @public\n */\nexport type PercentValidation = typeof ChildSupportGarnishmentFormErrorCodes.PERCENT_OUT_OF_RANGE\n\n/**\n * Validation error codes emitted by the `payPeriodMaximum` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.PayPeriodMaximum`. See\n * {@link ChildSupportGarnishmentFormErrorCodes} for the full description of each code.\n *\n * @public\n */\nexport type PayPeriodMaximumValidation = RequiredValidation | NegativeAmountValidation\n\n/**\n * Validation error codes emitted by the `amount` field of {@link useChildSupportGarnishmentForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.Amount`. The field\n * accepts a percentage of paycheck (0–100). See\n * {@link ChildSupportGarnishmentFormErrorCodes} for the full description of each code.\n *\n * @public\n */\nexport type AmountValidation = RequiredValidation | PercentValidation\n\n// ── State (agency) ─────────────────────────────────────────────────────\n//\n// The select carries the raw agency record as `entries`; the consumer can\n// supply `getOptionLabel` to translate the agency name into a localized\n// label (the SDK's option-label fallback is the agency state code).\n\n/**\n * Raw agency entry exposed on {@link useChildSupportGarnishmentForm}'s `data.agencies` and as the `entries` shape for the `State` select.\n *\n * @remarks\n * Supply `getOptionLabel` on `Fields.State` to translate the agency name into a\n * localized label — the SDK's option-label fallback is the agency state code.\n *\n * @public\n */\nexport type StateFieldEntry = {\n /** The agency's state code (e.g. `AK`). */\n state: string\n /** The agency name as returned by the Gusto API. */\n name: string\n /** True when the agency requires payments to be remitted manually rather than through Gusto. */\n manualPaymentRequired?: boolean\n}\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.State` component.\n *\n * @public\n */\nexport type StateFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, StateFieldEntry>\n>\n\n/** @internal */\nexport function StateField(props: StateFieldProps) {\n return <SelectHookField {...props} name=\"state\" />\n}\n\n// ── FipsCode (county) ──────────────────────────────────────────────────\n\n/**\n * Raw county entry exposed on {@link useChildSupportGarnishmentForm}'s `data.counties` and as the `entries` shape for the `FipsCode` select.\n *\n * @remarks\n * `county` is `null` for \"all counties\" entries — the agency's single county\n * record represents the whole state. Supply `getOptionLabel` on\n * `Fields.FipsCode` to translate the county name into a localized label.\n *\n * @public\n */\nexport type CountyEntry = {\n /** The FIPS code for the county. */\n fipsCode: string\n /** The county name, or `null` for an \"all counties\" entry covering the whole state. */\n county: string | null\n}\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.FipsCode` component.\n *\n * @public\n */\nexport type FipsCodeFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, CountyEntry>\n>\n\n/** @internal */\nexport function FipsCodeField(props: FipsCodeFieldProps) {\n return <SelectHookField {...props} name=\"fipsCode\" />\n}\n\n// ── Required agency-attribute text inputs ──────────────────────────────\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.CaseNumber` component.\n *\n * @public\n */\nexport type CaseNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/** @internal */\nexport function CaseNumberField(props: CaseNumberFieldProps) {\n return <TextInputHookField {...props} name=\"caseNumber\" />\n}\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.OrderNumber` component.\n *\n * @public\n */\nexport type OrderNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/** @internal */\nexport function OrderNumberField(props: OrderNumberFieldProps) {\n return <TextInputHookField {...props} name=\"orderNumber\" />\n}\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.RemittanceNumber` component.\n *\n * @public\n */\nexport type RemittanceNumberFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/** @internal */\nexport function RemittanceNumberField(props: RemittanceNumberFieldProps) {\n return <TextInputHookField {...props} name=\"remittanceNumber\" />\n}\n\n// ── Pay-period maximum (currency) ──────────────────────────────────────\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.PayPeriodMaximum` component.\n *\n * @public\n */\nexport type PayPeriodMaximumFieldProps = HookFieldProps<\n NumberInputHookFieldProps<PayPeriodMaximumValidation>\n>\n\n/** @internal */\nexport function PayPeriodMaximumField(props: PayPeriodMaximumFieldProps) {\n return <NumberInputHookField {...props} name=\"payPeriodMaximum\" />\n}\n\n// ── Amount (percent of paycheck, 0-100) ────────────────────────────────\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.Amount` component.\n *\n * @public\n */\nexport type AmountFieldProps = HookFieldProps<NumberInputHookFieldProps<AmountValidation>>\n\n/** @internal */\nexport function AmountField(props: AmountFieldProps) {\n return <NumberInputHookField {...props} name=\"amount\" />\n}\n\n// ── Payment period (select) ────────────────────────────────────────────\n\n/**\n * Props accepted by {@link useChildSupportGarnishmentForm}'s `Fields.PaymentPeriod` component.\n *\n * @public\n */\nexport type PaymentPeriodFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, PaymentPeriod>\n>\n\n/** @internal */\nexport function PaymentPeriodField(props: PaymentPeriodFieldProps) {\n return <SelectHookField {...props} name=\"paymentPeriod\" />\n}\n"],"names":["StateField","props","jsx","SelectHookField","FipsCodeField","CaseNumberField","TextInputHookField","OrderNumberField","RemittanceNumberField","PayPeriodMaximumField","NumberInputHookField","AmountField","PaymentPeriodField"],"mappings":";;;;AAuGO,SAASA,EAAWC,GAAwB;AACjD,SAAO,gBAAAC,EAACC,GAAA,EAAiB,GAAGF,GAAO,MAAK,SAAQ;AAClD;AA+BO,SAASG,EAAcH,GAA2B;AACvD,SAAO,gBAAAC,EAACC,GAAA,EAAiB,GAAGF,GAAO,MAAK,YAAW;AACrD;AAYO,SAASI,EAAgBJ,GAA6B;AAC3D,SAAO,gBAAAC,EAACI,GAAA,EAAoB,GAAGL,GAAO,MAAK,cAAa;AAC1D;AAUO,SAASM,EAAiBN,GAA8B;AAC7D,SAAO,gBAAAC,EAACI,GAAA,EAAoB,GAAGL,GAAO,MAAK,eAAc;AAC3D;AAUO,SAASO,EAAsBP,GAAmC;AACvE,SAAO,gBAAAC,EAACI,GAAA,EAAoB,GAAGL,GAAO,MAAK,oBAAmB;AAChE;AAcO,SAASQ,EAAsBR,GAAmC;AACvE,SAAO,gBAAAC,EAACQ,GAAA,EAAsB,GAAGT,GAAO,MAAK,oBAAmB;AAClE;AAYO,SAASU,EAAYV,GAAyB;AACnD,SAAO,gBAAAC,EAACQ,GAAA,EAAsB,GAAGT,GAAO,MAAK,UAAS;AACxD;AAcO,SAASW,EAAmBX,GAAgC;AACjE,SAAO,gBAAAC,EAACC,GAAA,EAAiB,GAAGF,GAAO,MAAK,iBAAgB;AAC1D;"}
@@ -1,5 +1,3 @@
1
- import "./types/i18next.d.ts"
2
1
  export { useChildSupportGarnishmentForm, type UseChildSupportGarnishmentFormProps, type UseChildSupportGarnishmentFormResult, type UseChildSupportGarnishmentFormReady, type ChildSupportGarnishmentFormFields, type ChildSupportGarnishmentFormFieldsMetadata, } from './useChildSupportGarnishmentForm';
3
- export { createChildSupportGarnishmentFormSchema, ChildSupportGarnishmentFormErrorCodes, type ChildSupportGarnishmentFormErrorCode, type ChildSupportGarnishmentFormData, type ChildSupportGarnishmentFormOutputs, type SupportedRequiredAttrKey, getRequiredAttrKeys, SUPPORTED_REQUIRED_ATTR_KEYS, } from './childSupportGarnishmentFormSchema';
4
- export { StateField, FipsCodeField, CaseNumberField, OrderNumberField, RemittanceNumberField, PayPeriodMaximumField, AmountField, PaymentPeriodField, } from './fields';
2
+ export { ChildSupportGarnishmentFormErrorCodes, type ChildSupportGarnishmentFormErrorCode, type ChildSupportGarnishmentFormData, type SupportedRequiredAttrKey, getRequiredAttrKeys, SUPPORTED_REQUIRED_ATTR_KEYS, } from './childSupportGarnishmentFormSchema';
5
3
  export type { RequiredValidation as ChildSupportGarnishmentRequiredValidation, NegativeAmountValidation as ChildSupportGarnishmentNegativeAmountValidation, PercentValidation as ChildSupportGarnishmentPercentValidation, PayPeriodMaximumValidation, AmountValidation as ChildSupportGarnishmentAmountValidation, StateFieldEntry, CountyEntry, StateFieldProps as ChildSupportGarnishmentStateFieldProps, FipsCodeFieldProps, CaseNumberFieldProps, OrderNumberFieldProps, RemittanceNumberFieldProps, PayPeriodMaximumFieldProps, AmountFieldProps as ChildSupportGarnishmentAmountFieldProps, PaymentPeriodFieldProps, } from './fields';