@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":"CompensationFlowComponents.js","sources":["../../../../../src/components/Employee/Compensation/onboarding/CompensationFlowComponents.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job'\nimport type { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation'\nimport type { CompensationDefaultValues } from './Compensation'\nimport { JobsList } from './JobsList'\nimport { EditCompensation } from './EditCompensation'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport { useI18n } from '@/i18n'\nimport { componentEvents, FlsaStatus, type EventType } from '@/shared/constants'\nimport { ensureRequired } from '@/helpers/ensureRequired'\n\n/** @internal */\nexport type EventPayloads = {\n [componentEvents.EMPLOYEE_JOB_ADD]: undefined\n [componentEvents.EMPLOYEE_JOB_EDIT]: { uuid: string }\n [componentEvents.EMPLOYEE_JOB_CREATED]: Job\n [componentEvents.EMPLOYEE_JOB_UPDATED]: Job\n [componentEvents.EMPLOYEE_JOB_DELETED]: undefined\n [componentEvents.EMPLOYEE_COMPENSATION_UPDATED]: Compensation\n [componentEvents.EMPLOYEE_COMPENSATION_RETURN_TO_LIST]: undefined\n [componentEvents.EMPLOYEE_COMPENSATION_CANCEL]: undefined\n [componentEvents.EMPLOYEE_COMPENSATION_DONE]: undefined\n}\n\n/** @internal */\nexport interface CompensationFlowContextInterface extends FlowContextInterface {\n employeeId: string\n startDate: string\n currentJobId?: string | null\n partnerDefaultValues?: CompensationDefaultValues\n}\n\n/** @internal */\nexport function JobsListContextual() {\n const { employeeId, onEvent } = useFlow<CompensationFlowContextInterface>()\n return <JobsList employeeId={ensureRequired(employeeId)} onEvent={onEvent} />\n}\n\n/** @internal */\nexport function InitialEditCompensationContextual() {\n const { employeeId, startDate, currentJobId, partnerDefaultValues, onEvent } =\n useFlow<CompensationFlowContextInterface>()\n useI18n('Employee.Compensation')\n const { t } = useTranslation('Employee.Compensation')\n\n const handleEvent: OnEventType<EventType, unknown> = (event, data) => {\n onEvent(event, data)\n if (event === componentEvents.EMPLOYEE_COMPENSATION_UPDATED) {\n const compensation = data as Compensation\n if (compensation.flsaStatus !== FlsaStatus.NONEXEMPT) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE)\n } else {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_RETURN_TO_LIST)\n }\n }\n }\n\n return (\n <EditCompensation\n employeeId={ensureRequired(employeeId)}\n startDate={ensureRequired(startDate)}\n currentJobId={currentJobId}\n title={t('title')}\n submitCtaLabel={t('submitCta')}\n partnerDefaultValues={partnerDefaultValues}\n onEvent={handleEvent}\n />\n )\n}\n\n/** @internal */\nexport function EditCompensationContextual() {\n const { employeeId, startDate, currentJobId, partnerDefaultValues, onEvent } =\n useFlow<CompensationFlowContextInterface>()\n useI18n('Employee.Compensation')\n const { t } = useTranslation('Employee.Compensation')\n\n const handleEvent: OnEventType<EventType, unknown> = (event, data) => {\n onEvent(event, data)\n if (event === componentEvents.EMPLOYEE_COMPENSATION_UPDATED) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_RETURN_TO_LIST)\n }\n }\n\n return (\n <EditCompensation\n employeeId={ensureRequired(employeeId)}\n startDate={ensureRequired(startDate)}\n currentJobId={currentJobId}\n title={currentJobId ? t('editTitle') : t('addTitle')}\n submitCtaLabel={t('saveNewJobCta')}\n onCancel={() => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_CANCEL)\n }}\n partnerDefaultValues={partnerDefaultValues}\n onEvent={handleEvent}\n />\n )\n}\n"],"names":["JobsListContextual","employeeId","onEvent","useFlow","JobsList","ensureRequired","InitialEditCompensationContextual","startDate","currentJobId","partnerDefaultValues","useI18n","t","useTranslation","handleEvent","event","data","componentEvents","FlsaStatus","jsx","EditCompensation","EditCompensationContextual"],"mappings":";;;;;;;;AAkCO,SAASA,IAAqB;AACnC,QAAM,EAAE,YAAAC,GAAY,SAAAC,EAAA,IAAYC,EAAA;AAChC,2BAAQC,GAAA,EAAS,YAAYC,EAAeJ,CAAU,GAAG,SAAAC,GAAkB;AAC7E;AAGO,SAASI,IAAoC;AAClD,QAAM,EAAE,YAAAL,GAAY,WAAAM,GAAW,cAAAC,GAAc,sBAAAC,GAAsB,SAAAP,EAAA,IACjEC,EAAA;AACF,EAAAO,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB,GAE9CC,IAA+C,CAACC,GAAOC,MAAS;AACpE,IAAAb,EAAQY,GAAOC,CAAI,GACfD,MAAUE,EAAgB,kCACPD,EACJ,eAAeE,EAAW,YACzCf,EAAQc,EAAgB,0BAA0B,IAElDd,EAAQc,EAAgB,oCAAoC;AAAA,EAGlE;AAEA,SACE,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAYd,EAAeJ,CAAU;AAAA,MACrC,WAAWI,EAAeE,CAAS;AAAA,MACnC,cAAAC;AAAA,MACA,OAAOG,EAAE,OAAO;AAAA,MAChB,gBAAgBA,EAAE,WAAW;AAAA,MAC7B,sBAAAF;AAAA,MACA,SAASI;AAAA,IAAA;AAAA,EAAA;AAGf;AAGO,SAASO,IAA6B;AAC3C,QAAM,EAAE,YAAAnB,GAAY,WAAAM,GAAW,cAAAC,GAAc,sBAAAC,GAAsB,SAAAP,EAAA,IACjEC,EAAA;AACF,EAAAO,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB,GAE9CC,IAA+C,CAACC,GAAOC,MAAS;AACpE,IAAAb,EAAQY,GAAOC,CAAI,GACfD,MAAUE,EAAgB,iCAC5Bd,EAAQc,EAAgB,oCAAoC;AAAA,EAEhE;AAEA,SACE,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAYd,EAAeJ,CAAU;AAAA,MACrC,WAAWI,EAAeE,CAAS;AAAA,MACnC,cAAAC;AAAA,MACA,OAAsBG,EAAfH,IAAiB,cAAiB,UAAN;AAAA,MACnC,gBAAgBG,EAAE,eAAe;AAAA,MACjC,UAAU,MAAM;AACd,QAAAT,EAAQc,EAAgB,4BAA4B;AAAA,MACtD;AAAA,MACA,sBAAAP;AAAA,MACA,SAASI;AAAA,IAAA;AAAA,EAAA;AAGf;"}
1
+ {"version":3,"file":"CompensationFlowComponents.js","sources":["../../../../../src/components/Employee/Compensation/onboarding/CompensationFlowComponents.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job'\nimport type { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation'\nimport type { CompensationDefaultValues } from './Compensation'\nimport { JobsList } from './JobsList'\nimport { EditCompensation } from './EditCompensation'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport { useI18n } from '@/i18n'\nimport { componentEvents, FlsaStatus, type EventType } from '@/shared/constants'\nimport { ensureRequired } from '@/helpers/ensureRequired'\n\n/** @internal */\nexport type EventPayloads = {\n [componentEvents.EMPLOYEE_JOB_ADD]: undefined\n [componentEvents.EMPLOYEE_JOB_EDIT]: { uuid: string }\n [componentEvents.EMPLOYEE_JOB_CREATED]: Job\n [componentEvents.EMPLOYEE_JOB_UPDATED]: Job\n [componentEvents.EMPLOYEE_JOB_DELETED]: undefined\n [componentEvents.EMPLOYEE_COMPENSATION_UPDATED]: Compensation\n [componentEvents.EMPLOYEE_COMPENSATION_RETURN_TO_LIST]: undefined\n [componentEvents.EMPLOYEE_COMPENSATION_CANCEL]: undefined\n [componentEvents.EMPLOYEE_COMPENSATION_DONE]: undefined\n}\n\n/** @internal */\nexport interface CompensationFlowContextInterface extends FlowContextInterface {\n employeeId: string\n startDate: string\n currentJobId?: string | null\n partnerDefaultValues?: CompensationDefaultValues\n}\n\n/** @internal */\nexport function JobsListContextual() {\n const { employeeId, onEvent } = useFlow<CompensationFlowContextInterface>()\n return <JobsList employeeId={ensureRequired(employeeId)} onEvent={onEvent} />\n}\n\n/** @internal */\nexport function InitialEditCompensationContextual() {\n const { employeeId, startDate, currentJobId, partnerDefaultValues, onEvent } =\n useFlow<CompensationFlowContextInterface>()\n useI18n('Employee.Compensation')\n const { t } = useTranslation('Employee.Compensation')\n\n const handleEvent: OnEventType<EventType, unknown> = (event, data) => {\n onEvent(event, data)\n if (event === componentEvents.EMPLOYEE_COMPENSATION_UPDATED) {\n const compensation = data as Compensation\n if (compensation.flsaStatus !== FlsaStatus.NONEXEMPT) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE)\n } else {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_RETURN_TO_LIST)\n }\n }\n }\n\n return (\n <EditCompensation\n employeeId={ensureRequired(employeeId)}\n startDate={ensureRequired(startDate)}\n currentJobId={currentJobId}\n title={t('title')}\n submitCtaLabel={t('submitCta')}\n partnerDefaultValues={partnerDefaultValues}\n onEvent={handleEvent}\n />\n )\n}\n\n/** @internal */\nexport function EditCompensationContextual() {\n const { employeeId, startDate, currentJobId, partnerDefaultValues, onEvent } =\n useFlow<CompensationFlowContextInterface>()\n useI18n('Employee.Compensation')\n const { t } = useTranslation('Employee.Compensation')\n\n const handleEvent: OnEventType<EventType, unknown> = (event, data) => {\n onEvent(event, data)\n if (event === componentEvents.EMPLOYEE_COMPENSATION_UPDATED) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_RETURN_TO_LIST)\n }\n }\n\n return (\n <EditCompensation\n employeeId={ensureRequired(employeeId)}\n startDate={ensureRequired(startDate)}\n currentJobId={currentJobId}\n title={currentJobId ? t('editTitle') : t('addTitle')}\n submitCtaLabel={t('saveNewJobCta')}\n onCancel={() => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_CANCEL)\n }}\n partnerDefaultValues={partnerDefaultValues}\n onEvent={handleEvent}\n />\n )\n}\n"],"names":["JobsListContextual","employeeId","onEvent","useFlow","JobsList","ensureRequired","InitialEditCompensationContextual","startDate","currentJobId","partnerDefaultValues","useI18n","t","useTranslation","handleEvent","event","data","componentEvents","FlsaStatus","jsx","EditCompensation","EditCompensationContextual"],"mappings":";;;;;;;;AAkCO,SAASA,IAAqB;AACnC,QAAM,EAAE,YAAAC,GAAY,SAAAC,EAAA,IAAYC,EAAA;AAChC,2BAAQC,GAAA,EAAS,YAAYC,EAAeJ,CAAU,GAAG,SAAAC,GAAkB;AAC7E;AAGO,SAASI,IAAoC;AAClD,QAAM,EAAE,YAAAL,GAAY,WAAAM,GAAW,cAAAC,GAAc,sBAAAC,GAAsB,SAAAP,EAAA,IACjEC,EAAA;AACF,EAAAO,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB,GAE9CC,IAA+C,CAACC,GAAOC,MAAS;AACpE,IAAAb,EAAQY,GAAOC,CAAI,GACfD,MAAUE,EAAgB,kCACPD,EACJ,eAAeE,EAAW,YACzCf,EAAQc,EAAgB,0BAA0B,IAElDd,EAAQc,EAAgB,oCAAoC;AAAA,EAGlE;AAEA,SACE,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAYd,EAAeJ,CAAU;AAAA,MACrC,WAAWI,EAAeE,CAAS;AAAA,MACnC,cAAAC;AAAA,MACA,OAAOG,EAAE,OAAO;AAAA,MAChB,gBAAgBA,EAAE,WAAW;AAAA,MAC7B,sBAAAF;AAAA,MACA,SAASI;AAAA,IAAA;AAAA,EAAA;AAGf;AAGO,SAASO,IAA6B;AAC3C,QAAM,EAAE,YAAAnB,GAAY,WAAAM,GAAW,cAAAC,GAAc,sBAAAC,GAAsB,SAAAP,EAAA,IACjEC,EAAA;AACF,EAAAO,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB,GAE9CC,IAA+C,CAACC,GAAOC,MAAS;AACpE,IAAAb,EAAQY,GAAOC,CAAI,GACfD,MAAUE,EAAgB,iCAC5Bd,EAAQc,EAAgB,oCAAoC;AAAA,EAEhE;AAEA,SACE,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAYd,EAAeJ,CAAU;AAAA,MACrC,WAAWI,EAAeE,CAAS;AAAA,MACnC,cAAAC;AAAA,MACA,OAAsBG,EAAfH,IAAiB,cAAiB,UAAN;AAAA,MACnC,gBAAgBG,EAAE,eAAe;AAAA,MACjC,UAAU,MAAM;AACd,QAAAT,EAAQc,EAAgB,4BAA4B;AAAA,MACtD;AAAA,MACA,sBAAAP;AAAA,MACA,SAASI;AAAA,IAAA;AAAA,EAAA;AAGf;"}
@@ -1,2 +1 @@
1
- import "./types/i18next.d.ts"
2
1
  export { EditCompensation, type EditCompensationProps } from './EditCompensation';
@@ -4,5 +4,24 @@ export interface JobsListProps extends BaseComponentInterface<'Employee.Compensa
4
4
  /** The associated employee identifier. */
5
5
  employeeId: string;
6
6
  }
7
- /** @public */
7
+ /**
8
+ * Lists an employee's jobs alongside their compensation details, with controls to add, edit,
9
+ * or remove a job.
10
+ *
11
+ * @remarks
12
+ * Used for employees who hold multiple roles. The primary job's FLSA classification determines
13
+ * whether the employee is treated as exempt or nonexempt.
14
+ *
15
+ * @events
16
+ * | Event | Description | Data |
17
+ * | ----- | ----------- | ---- |
18
+ * | `employee/job/add` | Fired when the user chooses to add a job | none |
19
+ * | `employee/job/edit` | Fired when the user chooses to edit a job | `{ uuid: string }` |
20
+ * | `employee/job/deleted` | Fired after a job is successfully deleted | none |
21
+ * | `employee/compensations/done` | Fired when the user continues past the jobs list | none |
22
+ *
23
+ * @param props - See {@link JobsListProps}.
24
+ * @returns The employee's jobs list.
25
+ * @public
26
+ */
8
27
  export declare function JobsList(props: JobsListProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { useMemo as r } from "react";
3
- import { useJobsAndCompensationsGetJobsSuspense as f } from "@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs";
4
- import { useJobsAndCompensationsDeleteMutation as D } from "@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsDelete";
3
+ import { useJobsAndCompensationsGetJobsSuspense as f } from "@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs";
4
+ import { useJobsAndCompensationsDeleteMutation as D } from "@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsDelete";
5
5
  import { derivePrimaryFlsaStatus as b } from "../../shared/derivePrimaryFlsaStatus.js";
6
6
  import { JobsListPresentation as y } from "./JobsListPresentation.js";
7
7
  import { BaseComponent as C } from "../../../../Base/Base.js";
@@ -1 +1 @@
1
- {"version":3,"file":"JobsList.js","sources":["../../../../../../src/components/Employee/Compensation/onboarding/JobsList/JobsList.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useJobsAndCompensationsGetJobsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs'\nimport { useJobsAndCompensationsDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsDelete'\nimport { derivePrimaryFlsaStatus } from '../../shared/derivePrimaryFlsaStatus'\nimport { JobsListPresentation } from './JobsListPresentation'\nimport { BaseComponent, type BaseComponentInterface, useBase } from '@/components/Base'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\n\n/** @public */\nexport interface JobsListProps extends BaseComponentInterface<'Employee.Compensation'> {\n /** The associated employee identifier. */\n employeeId: string\n}\n\n/** @public */\nexport function JobsList(props: JobsListProps) {\n useComponentDictionary('Employee.Compensation', props.dictionary)\n return (\n <BaseComponent {...props}>\n <Root {...props} />\n </BaseComponent>\n )\n}\n\nfunction Root({ employeeId, className }: JobsListProps) {\n useI18n('Employee.Compensation')\n const { onEvent } = useBase()\n\n const { data: jobsData } = useJobsAndCompensationsGetJobsSuspense({ employeeId })\n const employeeJobs = useMemo(() => jobsData.jobs ?? [], [jobsData.jobs])\n\n const { mutateAsync: deleteEmployeeJob, isPending: isDeleting } =\n useJobsAndCompensationsDeleteMutation()\n\n const primaryFlsaStatus = useMemo(() => derivePrimaryFlsaStatus(employeeJobs), [employeeJobs])\n\n const handleAdd = () => {\n onEvent(componentEvents.EMPLOYEE_JOB_ADD)\n }\n\n const handleEdit = (jobId: string) => {\n onEvent(componentEvents.EMPLOYEE_JOB_EDIT, { uuid: jobId })\n }\n\n const handleDelete = async (jobId: string) => {\n await deleteEmployeeJob({ request: { jobId } })\n onEvent(componentEvents.EMPLOYEE_JOB_DELETED)\n }\n\n const handleContinue = () => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE)\n }\n\n return (\n <section className={className}>\n <JobsListPresentation\n jobs={employeeJobs}\n primaryFlsaStatus={primaryFlsaStatus}\n isPending={isDeleting}\n onAdd={handleAdd}\n onEdit={handleEdit}\n onDelete={(jobId: string) => {\n void handleDelete(jobId)\n }}\n onContinue={handleContinue}\n />\n </section>\n )\n}\n"],"names":["JobsList","props","useComponentDictionary","jsx","BaseComponent","Root","employeeId","className","useI18n","onEvent","useBase","jobsData","useJobsAndCompensationsGetJobsSuspense","employeeJobs","useMemo","deleteEmployeeJob","isDeleting","useJobsAndCompensationsDeleteMutation","primaryFlsaStatus","derivePrimaryFlsaStatus","handleAdd","componentEvents","handleEdit","jobId","handleDelete","JobsListPresentation"],"mappings":";;;;;;;;;;AAgBO,SAASA,EAASC,GAAsB;AAC7C,SAAAC,EAAuB,yBAAyBD,EAAM,UAAU,GAE9D,gBAAAE,EAACC,KAAe,GAAGH,GACjB,4BAACI,GAAA,EAAM,GAAGJ,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASI,EAAK,EAAE,YAAAC,GAAY,WAAAC,KAA4B;AACtD,EAAAC,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,EAAE,MAAMC,EAAA,IAAaC,EAAuC,EAAE,YAAAN,GAAY,GAC1EO,IAAeC,EAAQ,MAAMH,EAAS,QAAQ,IAAI,CAACA,EAAS,IAAI,CAAC,GAEjE,EAAE,aAAaI,GAAmB,WAAWC,EAAA,IACjDC,EAAA,GAEIC,IAAoBJ,EAAQ,MAAMK,EAAwBN,CAAY,GAAG,CAACA,CAAY,CAAC,GAEvFO,IAAY,MAAM;AACtB,IAAAX,EAAQY,EAAgB,gBAAgB;AAAA,EAC1C,GAEMC,IAAa,CAACC,MAAkB;AACpC,IAAAd,EAAQY,EAAgB,mBAAmB,EAAE,MAAME,GAAO;AAAA,EAC5D,GAEMC,IAAe,OAAOD,MAAkB;AAC5C,UAAMR,EAAkB,EAAE,SAAS,EAAE,OAAAQ,EAAA,GAAS,GAC9Cd,EAAQY,EAAgB,oBAAoB;AAAA,EAC9C;AAMA,SACE,gBAAAlB,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACsB;AAAA,IAAA;AAAA,MACC,MAAMZ;AAAA,MACN,mBAAAK;AAAA,MACA,WAAWF;AAAA,MACX,OAAOI;AAAA,MACP,QAAQE;AAAA,MACR,UAAU,CAACC,MAAkB;AAC3B,QAAKC,EAAaD,CAAK;AAAA,MACzB;AAAA,MACA,YAfiB,MAAM;AAC3B,QAAAd,EAAQY,EAAgB,0BAA0B;AAAA,MACpD;AAAA,IAakB;AAAA,EAAA,GAEhB;AAEJ;"}
1
+ {"version":3,"file":"JobsList.js","sources":["../../../../../../src/components/Employee/Compensation/onboarding/JobsList/JobsList.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useJobsAndCompensationsGetJobsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs'\nimport { useJobsAndCompensationsDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsDelete'\nimport { derivePrimaryFlsaStatus } from '../../shared/derivePrimaryFlsaStatus'\nimport { JobsListPresentation } from './JobsListPresentation'\nimport { BaseComponent, type BaseComponentInterface, useBase } from '@/components/Base'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\n\n/** @public */\nexport interface JobsListProps extends BaseComponentInterface<'Employee.Compensation'> {\n /** The associated employee identifier. */\n employeeId: string\n}\n\n/**\n * Lists an employee's jobs alongside their compensation details, with controls to add, edit,\n * or remove a job.\n *\n * @remarks\n * Used for employees who hold multiple roles. The primary job's FLSA classification determines\n * whether the employee is treated as exempt or nonexempt.\n *\n * @events\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/job/add` | Fired when the user chooses to add a job | none |\n * | `employee/job/edit` | Fired when the user chooses to edit a job | `{ uuid: string }` |\n * | `employee/job/deleted` | Fired after a job is successfully deleted | none |\n * | `employee/compensations/done` | Fired when the user continues past the jobs list | none |\n *\n * @param props - See {@link JobsListProps}.\n * @returns The employee's jobs list.\n * @public\n */\nexport function JobsList(props: JobsListProps) {\n useComponentDictionary('Employee.Compensation', props.dictionary)\n return (\n <BaseComponent {...props}>\n <Root {...props} />\n </BaseComponent>\n )\n}\n\nfunction Root({ employeeId, className }: JobsListProps) {\n useI18n('Employee.Compensation')\n const { onEvent } = useBase()\n\n const { data: jobsData } = useJobsAndCompensationsGetJobsSuspense({ employeeId })\n const employeeJobs = useMemo(() => jobsData.jobs ?? [], [jobsData.jobs])\n\n const { mutateAsync: deleteEmployeeJob, isPending: isDeleting } =\n useJobsAndCompensationsDeleteMutation()\n\n const primaryFlsaStatus = useMemo(() => derivePrimaryFlsaStatus(employeeJobs), [employeeJobs])\n\n const handleAdd = () => {\n onEvent(componentEvents.EMPLOYEE_JOB_ADD)\n }\n\n const handleEdit = (jobId: string) => {\n onEvent(componentEvents.EMPLOYEE_JOB_EDIT, { uuid: jobId })\n }\n\n const handleDelete = async (jobId: string) => {\n await deleteEmployeeJob({ request: { jobId } })\n onEvent(componentEvents.EMPLOYEE_JOB_DELETED)\n }\n\n const handleContinue = () => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE)\n }\n\n return (\n <section className={className}>\n <JobsListPresentation\n jobs={employeeJobs}\n primaryFlsaStatus={primaryFlsaStatus}\n isPending={isDeleting}\n onAdd={handleAdd}\n onEdit={handleEdit}\n onDelete={(jobId: string) => {\n void handleDelete(jobId)\n }}\n onContinue={handleContinue}\n />\n </section>\n )\n}\n"],"names":["JobsList","props","useComponentDictionary","jsx","BaseComponent","Root","employeeId","className","useI18n","onEvent","useBase","jobsData","useJobsAndCompensationsGetJobsSuspense","employeeJobs","useMemo","deleteEmployeeJob","isDeleting","useJobsAndCompensationsDeleteMutation","primaryFlsaStatus","derivePrimaryFlsaStatus","handleAdd","componentEvents","handleEdit","jobId","handleDelete","JobsListPresentation"],"mappings":";;;;;;;;;;AAmCO,SAASA,EAASC,GAAsB;AAC7C,SAAAC,EAAuB,yBAAyBD,EAAM,UAAU,GAE9D,gBAAAE,EAACC,KAAe,GAAGH,GACjB,4BAACI,GAAA,EAAM,GAAGJ,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASI,EAAK,EAAE,YAAAC,GAAY,WAAAC,KAA4B;AACtD,EAAAC,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,EAAE,MAAMC,EAAA,IAAaC,EAAuC,EAAE,YAAAN,GAAY,GAC1EO,IAAeC,EAAQ,MAAMH,EAAS,QAAQ,IAAI,CAACA,EAAS,IAAI,CAAC,GAEjE,EAAE,aAAaI,GAAmB,WAAWC,EAAA,IACjDC,EAAA,GAEIC,IAAoBJ,EAAQ,MAAMK,EAAwBN,CAAY,GAAG,CAACA,CAAY,CAAC,GAEvFO,IAAY,MAAM;AACtB,IAAAX,EAAQY,EAAgB,gBAAgB;AAAA,EAC1C,GAEMC,IAAa,CAACC,MAAkB;AACpC,IAAAd,EAAQY,EAAgB,mBAAmB,EAAE,MAAME,GAAO;AAAA,EAC5D,GAEMC,IAAe,OAAOD,MAAkB;AAC5C,UAAMR,EAAkB,EAAE,SAAS,EAAE,OAAAQ,EAAA,GAAS,GAC9Cd,EAAQY,EAAgB,oBAAoB;AAAA,EAC9C;AAMA,SACE,gBAAAlB,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACsB;AAAA,IAAA;AAAA,MACC,MAAMZ;AAAA,MACN,mBAAAK;AAAA,MACA,WAAWF;AAAA,MACX,OAAOI;AAAA,MACP,QAAQE;AAAA,MACR,UAAU,CAACC,MAAkB;AAC3B,QAAKC,EAAaD,CAAK;AAAA,MACzB;AAAA,MACA,YAfiB,MAAM;AAC3B,QAAAd,EAAQY,EAAgB,0BAA0B;AAAA,MACpD;AAAA,IAakB;AAAA,EAAA,GAEhB;AAEJ;"}
@@ -1,4 +1,4 @@
1
- import { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job';
1
+ import { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job';
2
2
  /** @internal */
3
3
  export interface JobsListPresentationProps {
4
4
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"JobsListPresentation.js","sources":["../../../../../../src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { type Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport TrashCanSvg from '@/assets/icons/trashcan.svg?react'\nimport { ActionsLayout, DataView, Flex, useDataView } from '@/components/Common'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\nimport { FlsaStatus } from '@/shared/constants'\n\n/** @internal */\nexport interface JobsListPresentationProps {\n /** @internal */\n jobs: Job[]\n /** @internal */\n primaryFlsaStatus: string | undefined\n /** @internal */\n isPending: boolean\n /** @internal */\n onAdd: () => void\n /** @internal */\n onEdit: (jobId: string) => void\n /** @internal */\n onDelete: (jobId: string) => void\n /** @internal */\n onContinue: () => void\n}\n\n/** @internal */\nexport function JobsListPresentation({\n jobs,\n primaryFlsaStatus,\n isPending,\n onAdd,\n onEdit,\n onDelete,\n onContinue,\n}: JobsListPresentationProps) {\n useI18n('Employee.Compensation')\n const { t } = useTranslation('Employee.Compensation')\n const Components = useComponentContext()\n\n const showAddAnotherJob = primaryFlsaStatus === FlsaStatus.NONEXEMPT\n\n const dataViewProps = useDataView({\n data: jobs,\n columns: [\n {\n key: 'title',\n title: t('allCompensations.jobColumn'),\n render: (job: Job) => {\n const currentComp = job.compensations?.find(c => c.uuid === job.currentCompensationUuid)\n return currentComp?.title || ''\n },\n },\n {\n key: 'flsaStatus',\n title: t('allCompensations.typeColumn'),\n render: (job: Job) => {\n const flsaStatus = job.compensations?.find(\n comp => comp.uuid === job.currentCompensationUuid,\n )?.flsaStatus\n return flsaStatus !== undefined ? t(`flsaStatusLabels.${flsaStatus}`) : null\n },\n },\n {\n key: 'rate',\n title: t('allCompensations.amountColumn'),\n render: (job: Job) => job.rate?.toString() || '',\n },\n {\n key: 'paymentUnit',\n title: t('allCompensations.perColumn'),\n render: (job: Job) => job.paymentUnit || '',\n },\n ],\n itemMenu: (job: Job) => (\n <HamburgerMenu\n triggerLabel={t('hamburgerTitle')}\n items={[\n {\n label: t('allCompensations.editCta'),\n icon: <PencilSvg aria-hidden />,\n onClick: () => {\n onEdit(job.uuid)\n },\n },\n ...(!job.primary\n ? [\n {\n label: t('allCompensations.deleteCta'),\n icon: <TrashCanSvg aria-hidden />,\n onClick: () => {\n onDelete(job.uuid)\n },\n },\n ]\n : []),\n ]}\n isLoading={isPending}\n />\n ),\n })\n\n return (\n <Flex flexDirection=\"column\" gap={32}>\n <Components.Heading as=\"h2\">{t('title')}</Components.Heading>\n <DataView\n data-testid=\"data-view\"\n label={t('allCompensations.tableLabel')}\n {...dataViewProps}\n />\n <ActionsLayout>\n {showAddAnotherJob && (\n <Components.Button variant=\"secondary\" onClick={onAdd} isDisabled={isPending}>\n {t('addAnotherJobCta')}\n </Components.Button>\n )}\n <Components.Button onClick={onContinue} isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["JobsListPresentation","jobs","primaryFlsaStatus","isPending","onAdd","onEdit","onDelete","onContinue","useI18n","t","useTranslation","Components","useComponentContext","showAddAnotherJob","FlsaStatus","dataViewProps","useDataView","job","c","flsaStatus","comp","jsx","HamburgerMenu","PencilSvg","TrashCanSvg","jsxs","Flex","DataView","ActionsLayout"],"mappings":";;;;;;;;;;;;AA6BO,SAASA,EAAqB;AAAA,EACnC,MAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AACF,GAA8B;AAC5B,EAAAC,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB,GAC9CC,IAAaC,EAAA,GAEbC,IAAoBX,MAAsBY,EAAW,WAErDC,IAAgBC,EAAY;AAAA,IAChC,MAAMf;AAAA,IACN,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,OAAOQ,EAAE,4BAA4B;AAAA,QACrC,QAAQ,CAACQ,MACaA,EAAI,eAAe,KAAK,OAAKC,EAAE,SAASD,EAAI,uBAAuB,GACnE,SAAS;AAAA,MAC/B;AAAA,MAEF;AAAA,QACE,KAAK;AAAA,QACL,OAAOR,EAAE,6BAA6B;AAAA,QACtC,QAAQ,CAACQ,MAAa;AACpB,gBAAME,IAAaF,EAAI,eAAe;AAAA,YACpC,CAAAG,MAAQA,EAAK,SAASH,EAAI;AAAA,UAAA,GACzB;AACH,iBAAOE,MAAe,SAAYV,EAAE,oBAAoBU,CAAU,EAAE,IAAI;AAAA,QAC1E;AAAA,MAAA;A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X,EAAkB,SAAQ,aAAY,SAASP,GAAO,YAAYD,GAChE,UAAAM,EAAE,kBAAkB,EAAA,CACvB;AAAA,MAEF,gBAAAY,EAACV,EAAW,QAAX,EAAkB,SAASJ,GAAY,WAAWJ,GAChD,UAAAM,EAAE,WAAW,EAAA,CAChB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"JobsListPresentation.js","sources":["../../../../../../src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { type Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport TrashCanSvg from '@/assets/icons/trashcan.svg?react'\nimport { ActionsLayout, DataView, Flex, useDataView } from '@/components/Common'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\nimport { FlsaStatus } from '@/shared/constants'\n\n/** @internal */\nexport interface JobsListPresentationProps {\n /** @internal */\n jobs: Job[]\n /** @internal */\n primaryFlsaStatus: string | undefined\n /** @internal */\n isPending: boolean\n /** @internal */\n onAdd: () => void\n /** @internal */\n onEdit: (jobId: string) => void\n /** @internal */\n onDelete: (jobId: string) => void\n /** @internal */\n onContinue: () => void\n}\n\n/** @internal */\nexport function JobsListPresentation({\n jobs,\n primaryFlsaStatus,\n isPending,\n onAdd,\n onEdit,\n onDelete,\n onContinue,\n}: JobsListPresentationProps) {\n useI18n('Employee.Compensation')\n const { t } = useTranslation('Employee.Compensation')\n const Components = useComponentContext()\n\n const showAddAnotherJob = primaryFlsaStatus === FlsaStatus.NONEXEMPT\n\n const dataViewProps = useDataView({\n data: jobs,\n columns: [\n {\n key: 'title',\n title: t('allCompensations.jobColumn'),\n render: (job: Job) => {\n const currentComp = job.compensations?.find(c => c.uuid === job.currentCompensationUuid)\n return currentComp?.title || ''\n },\n },\n {\n key: 'flsaStatus',\n title: t('allCompensations.typeColumn'),\n render: (job: Job) => {\n const flsaStatus = job.compensations?.find(\n comp => comp.uuid === job.currentCompensationUuid,\n )?.flsaStatus\n return flsaStatus !== undefined ? t(`flsaStatusLabels.${flsaStatus}`) : null\n },\n },\n {\n key: 'rate',\n title: t('allCompensations.amountColumn'),\n render: (job: Job) => job.rate?.toString() || '',\n },\n {\n key: 'paymentUnit',\n title: t('allCompensations.perColumn'),\n render: (job: Job) => job.paymentUnit || '',\n },\n ],\n itemMenu: (job: Job) => (\n <HamburgerMenu\n triggerLabel={t('hamburgerTitle')}\n items={[\n {\n label: t('allCompensations.editCta'),\n icon: <PencilSvg aria-hidden />,\n onClick: () => {\n onEdit(job.uuid)\n },\n },\n ...(!job.primary\n ? [\n {\n label: t('allCompensations.deleteCta'),\n icon: <TrashCanSvg aria-hidden />,\n onClick: () => {\n onDelete(job.uuid)\n },\n },\n ]\n : []),\n ]}\n isLoading={isPending}\n />\n ),\n })\n\n return (\n <Flex flexDirection=\"column\" gap={32}>\n <Components.Heading as=\"h2\">{t('title')}</Components.Heading>\n <DataView\n data-testid=\"data-view\"\n label={t('allCompensations.tableLabel')}\n {...dataViewProps}\n />\n <ActionsLayout>\n {showAddAnotherJob && (\n <Components.Button variant=\"secondary\" onClick={onAdd} isDisabled={isPending}>\n {t('addAnotherJobCta')}\n </Components.Button>\n )}\n <Components.Button onClick={onContinue} isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["JobsListPresentation","jobs","primaryFlsaStatus","isPending","onAdd","onEdit","onDelete","onContinue","useI18n","t","useTranslation","Components","useComponentContext","showAddAnotherJob","FlsaStatus","dataViewProps","useDataView","job","c","flsaStatus","comp","jsx","HamburgerMenu","PencilSvg","TrashCanSvg","jsxs","Flex","DataView","ActionsLayout"],"mappings":";;;;;;;;;;;;AA6BO,SAASA,EAAqB;AAAA,EACnC,MAAAC;AAAA,EACA,m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AC7B,SAAS,MAAM;AACb,cAAAlB,EAAOY,EAAI,IAAI;AAAA,YACjB;AAAA,UAAA;AAAA,UAEF,GAAKA,EAAI,UAUL,CAAA,IATA;AAAA,YACE;AAAA,cACE,OAAOR,EAAE,4BAA4B;AAAA,cACrC,MAAM,gBAAAY,EAACG,GAAA,EAAY,eAAW,GAAA,CAAC;AAAA,cAC/B,SAAS,MAAM;AACb,gBAAAlB,EAASW,EAAI,IAAI;AAAA,cACnB;AAAA,YAAA;AAAA,UACF;AAAA,QAED;AAAA,QAEP,WAAWd;AAAA,MAAA;AAAA,IAAA;AAAA,EACb,CAEH;AAED,SACE,gBAAAsB,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAL,EAACV,EAAW,SAAX,EAAmB,IAAG,MAAM,UAAAF,EAAE,OAAO,GAAE;AAAA,IACxC,gBAAAY;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,eAAY;AAAA,QACZ,OAAOlB,EAAE,6BAA6B;AAAA,QACrC,GAAGM;AAAA,MAAA;AAAA,IAAA;AAAA,sBAELa,GAAA,EACE,UAAA;AAAA,MAAAf,KACC,gBAAAQ,EAACV,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASP,GAAO,YAAYD,GAChE,UAAAM,EAAE,kBAAkB,EAAA,CACvB;AAAA,MAEF,gBAAAY,EAACV,EAAW,QAAX,EAAkB,SAASJ,GAAY,WAAWJ,GAChD,UAAAM,EAAE,WAAW,EAAA,CAChB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,2 +1 @@
1
- import "./types/i18next.d.ts"
2
1
  export { JobsList, type JobsListProps } from './JobsList';
@@ -1,2 +1 @@
1
- import "./types/i18next.d.ts"
2
1
  export * from './Compensation';
@@ -1 +1 @@
1
- {"version":3,"file":"AddCompensationFormBody.js","sources":["../../../../../src/components/Employee/Compensation/shared/AddCompensationFormBody.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport type { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation'\nimport type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype'\nimport type { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage'\nimport type { UseJobFormReady } from './useJobForm'\nimport type { UseCompensationFormReady } from './useCompensationForm'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport type { ResourceDictionary } from '@/types/Helpers'\n\n/**\n * Translation overrides for the shared add-compensation form body. The body\n * reads its copy from the onboarding `Employee.Compensation` namespace by\n * default; management surfaces resolve this dictionary from\n * `Employee.Management.Compensation` and pass it in so management copy renders\n * while the two surfaces stay isolated.\n *\n * @internal\n */\nexport type AddCompensationFormDictionary = ResourceDictionary<'Employee.Compensation'>\n\n/** @internal */\nexport interface AddCompensationFormBodyProps {\n jobForm: UseJobFormReady\n compensationForm: UseCompensationFormReady\n title: string\n submitCtaLabel: string\n isPending: boolean\n onCancel?: () => void\n /** Per-surface translation overrides resolved against the consumer's namespace. */\n dictionary?: AddCompensationFormDictionary\n}\n\n/**\n * Renders the shared field layout used by both `EditCompensation` (onboarding) and\n * `CompensationAddAnotherJobForm` (management). Field visibility is driven entirely by the hook\n * configuration — `JobFields.HireDate` is only defined when `withHireDateField: true`,\n * and `CompFields.EffectiveDate` is only defined when `withEffectiveDateField: true` —\n * so this component renders the correct subset for each use case with no extra props.\n *\n * Copy resolves from the onboarding `Employee.Compensation` namespace by default; management\n * consumers inject a `dictionary` mapped from `Employee.Management.Compensation` to keep\n * onboarding and management strings independently overridable.\n *\n * @internal\n */\nexport function AddCompensationFormBody({\n jobForm,\n compensationForm,\n title,\n submitCtaLabel,\n isPending,\n onCancel,\n dictionary,\n}: AddCompensationFormBodyProps) {\n useI18n('Employee.Compensation')\n useComponentDictionary('Employee.Compensation', dictionary)\n const { t } = useTranslation('Employee.Compensation')\n const Components = useComponentContext()\n const format = useNumberFormatter('currency')\n\n const JobFields = jobForm.form.Fields\n const CompFields = compensationForm.form.Fields\n\n return (\n <Flex flexDirection=\"column\" gap={32}>\n <Components.Heading as=\"h2\">{title}</Components.Heading>\n\n <Flex flexDirection=\"column\" gap={20}>\n {JobFields.Title && (\n <JobFields.Title\n label={t('jobTitle')}\n validationMessages={{ REQUIRED: t('validations.title') }}\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.HireDate && (\n <JobFields.HireDate\n label={t('hireDate')}\n validationMessages={{ REQUIRED: t('validations.hireDate') }}\n formHookResult={jobForm}\n />\n )}\n\n {CompFields.FlsaStatus && (\n <>\n <CompFields.FlsaStatus\n label={t('employeeClassification')}\n placeholder={t('flsaStatusPlaceholder')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{ ClassificationLink: <Components.Link /> }}\n />\n }\n validationMessages={{\n REQUIRED: t('validations.exemptThreshold', {\n limit: format(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n getOptionLabel={(status: FlsaStatusType) => t(`flsaStatusLabels.${status}`)}\n formHookResult={compensationForm}\n />\n {(compensationForm.status.showCommissionFederalMinimumPayAlert ||\n compensationForm.status.showCommissionMinimumWageAlert ||\n compensationForm.status.showOwnerSalaryAlert ||\n compensationForm.status.willDeleteSecondaryJobs) && (\n <Flex flexDirection=\"column\" gap={0}>\n {compensationForm.status.willDeleteSecondaryJobs && (\n <Components.Alert\n label={t('validations.classificationChangeNotification')}\n status=\"warning\"\n >\n {t('validations.classificationChangeRemovesSecondaryJobs')}\n </Components.Alert>\n )}\n {compensationForm.status.showCommissionFederalMinimumPayAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.federalMinimumPay.label')}\n disableScrollIntoView\n >\n {t('commissionAlerts.federalMinimumPay.body')}\n </Components.Alert>\n )}\n {compensationForm.status.showCommissionMinimumWageAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.minimumWage.label')}\n disableScrollIntoView\n >\n <Trans\n t={t}\n i18nKey=\"commissionAlerts.minimumWage.body\"\n components={{\n minimumWageLink: (\n <Components.Link\n href=\"https://support.gusto.com/article/112472520100000/manage-tip-wages-distributed-service-charges-and-tip-credits-in-gusto-for-admins\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n </Components.Alert>\n )}\n {compensationForm.status.showOwnerSalaryAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.ownerSalary.label')}\n disableScrollIntoView\n />\n )}\n </Flex>\n )}\n </>\n )}\n\n {CompFields.Rate && (\n <CompFields.Rate\n label={t('wageLabel')}\n validationMessages={{\n REQUIRED: t('validations.rate'),\n RATE_MINIMUM: t('validations.nonZeroRate'),\n RATE_EXEMPT_THRESHOLD: t('validations.rateExemptThreshold', {\n limit: format(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.PaymentUnit && (\n <CompFields.PaymentUnit\n label={t('wageFrequencyLabel')}\n placeholder={t('paymentUnitPlaceholder')}\n description={t('paymentUnitDescription')}\n validationMessages={{ REQUIRED: t('validations.paymentUnit') }}\n getOptionLabel={(unit: PaymentUnit) => t(`paymentUnitOptions.${unit}`)}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.AdjustForMinimumWage && (\n <CompFields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.MinimumWageId && (\n <CompFields.MinimumWageId\n label={t('minimumWageLabel')}\n placeholder={t('minimumWagePlaceholder')}\n description={t('minimumWageDescription')}\n validationMessages={{ REQUIRED: t('validations.minimumWage') }}\n getOptionLabel={(wage: MinimumWage) =>\n `${format(Number(wage.wage))} - ${wage.authority}: ${wage.notes ?? ''}`\n }\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.EffectiveDate && (\n <CompFields.EffectiveDate\n label={t('effectiveDate')}\n validationMessages={{\n REQUIRED: t('validations.effectiveDate'),\n EFFECTIVE_DATE_BEFORE_HIRE: t('validations.effectiveDateBeforeHire'),\n EFFECTIVE_DATE_BEFORE_MIN: t('validations.effectiveDateBeforeMin'),\n }}\n formHookResult={compensationForm}\n />\n )}\n\n {JobFields.TwoPercentShareholder && (\n <JobFields.TwoPercentShareholder\n label={t('twoPercentStakeholderLabel')}\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.StateWcCovered && (\n <JobFields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={\n <Trans\n t={t}\n i18nKey=\"stateWcCoveredDescription\"\n components={{\n wcLink: (\n <Components.Link\n href=\"https://www.lni.wa.gov/insurance/rates-risk-classes/risk-classes-for-workers-compensation/risk-class-lookup#/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n }\n getOptionLabel={(covered: boolean) =>\n covered ? t('stateWcCoveredOptions.yes') : t('stateWcCoveredOptions.no')\n }\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.StateWcClassCode && (\n <JobFields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n placeholder={t('stateWcClassCodeLabel')}\n validationMessages={{ REQUIRED: t('validations.stateWcClassCode') }}\n formHookResult={jobForm}\n />\n )}\n </Flex>\n\n <ActionsLayout>\n {onCancel && (\n <Components.Button variant=\"secondary\" onClick={onCancel} isDisabled={isPending}>\n {t('cancelNewJobCta')}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isPending}>\n {submitCtaLabel}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["AddCompensationFormBody","jobForm","compensationForm","title","submitCtaLabel","isPending","onCancel","dictionary","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","format","useNumberFormatter","JobFields","CompFields","jsxs","Flex","jsx","Fragment","Trans","FLSA_OVERTIME_SALARY_LIMIT","status","unit","wage","covered","ActionsLayout"],"mappings":";;;;;;;;;AAiDO,SAASA,EAAwB;AAAA,EACtC,SAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AACF,GAAiC;AAC/B,EAAAC,EAAQ,uBAAuB,GAC/BC,EAAuB,yBAAyBF,CAAU;AAC1D,QAAM,EAAE,GAAAG,EAAA,IAAMC,EAAe,uBAAuB,GAC9CC,IAAaC,EAAA,GACbC,IAASC,EAAmB,UAAU,GAEtCC,IAAYf,EAAQ,KAAK,QACzBgB,IAAaf,EAAiB,KAAK;AAEzC,SACE,gBAAAgB,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC,EAACR,EAAW,SAAX,EAAmB,IAAG,MAAM,UAAAT,GAAM;AAAA,IAEnC,gBAAAe,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAA;AAAA,MAAAH,EAAU,SACT,gBAAAI;AAAA,QAACJ,EAAU;AAAA,QAAV;AAAA,UACC,OAAON,EAAE,UAAU;AAAA,UACnB,oBAAoB,EAAE,UAAUA,EAAE,mBAAmB,EAAA;AAAA,UACrD,gBAAgBT;AAAA,QAAA;AAAA,MAAA;AAAA,MAInBe,EAAU,YACT,gBAAAI;AAAA,QAACJ,EAAU;AAAA,QAAV;AAAA,UACC,OAAON,EAAE,UAAU;AAAA,UACnB,oBAAoB,EAAE,UAAUA,EAAE,sBAAsB,EAAA;AAAA,UACxD,gBAAgBT;AAAA,QAAA;AAAA,MAAA;AAAA,MAInBgB,EAAW,cACV,gBAAAC,EAAAG,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAD;AAAA,UAACH,EAAW;AAAA,UAAX;AAAA,YACC,OAAOP,E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CAACe,MACLjB,EAAViB,IAAY,8BAAiC,0BAAN;AAAA,UAEzC,gBAAgB1B;AAAA,QAAA;AAAA,MAAA;AAAA,MAInBe,EAAU,oBACT,gBAAAI;AAAA,QAACJ,EAAU;AAAA,QAAV;AAAA,UACC,OAAON,EAAE,uBAAuB;AAAA,UAChC,aAAaA,EAAE,6BAA6B;AAAA,UAC5C,aAAaA,EAAE,uBAAuB;AAAA,UACtC,oBAAoB,EAAE,UAAUA,EAAE,8BAA8B,EAAA;AAAA,UAChE,gBAAgBT;AAAA,QAAA;AAAA,MAAA;AAAA,IAClB,GAEJ;AAAA,sBAEC2B,GAAA,EACE,UAAA;AAAA,MAAAtB,KACC,gBAAAc,EAACR,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASN,GAAU,YAAYD,GACnE,UAAAK,EAAE,iBAAiB,EAAA,CACtB;AAAA,MAEF,gBAAAU,EAACR,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWP,GACzC,UAAAD,EAAA,CACH;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"AddCompensationFormBody.js","sources":["../../../../../src/components/Employee/Compensation/shared/AddCompensationFormBody.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport type { PaymentUnit } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation'\nimport type { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype'\nimport type { MinimumWage } from '@gusto/embedded-api-v-2026-02-01/models/components/minimumwage'\nimport type { UseJobFormReady } from './useJobForm'\nimport type { UseCompensationFormReady } from './useCompensationForm'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport type { ResourceDictionary } from '@/types/Helpers'\n\n/**\n * Translation overrides for the shared add-compensation form body. The body\n * reads its copy from the onboarding `Employee.Compensation` namespace by\n * default; management surfaces resolve this dictionary from\n * `Employee.Management.Compensation` and pass it in so management copy renders\n * while the two surfaces stay isolated.\n *\n * @internal\n */\nexport type AddCompensationFormDictionary = ResourceDictionary<'Employee.Compensation'>\n\n/** @internal */\nexport interface AddCompensationFormBodyProps {\n jobForm: UseJobFormReady\n compensationForm: UseCompensationFormReady\n title: string\n submitCtaLabel: string\n isPending: boolean\n onCancel?: () => void\n /** Per-surface translation overrides resolved against the consumer's namespace. */\n dictionary?: AddCompensationFormDictionary\n}\n\n/**\n * Renders the shared field layout used by both `EditCompensation` (onboarding) and\n * `CompensationAddAnotherJobForm` (management). Field visibility is driven entirely by the hook\n * configuration — `JobFields.HireDate` is only defined when `withHireDateField: true`,\n * and `CompFields.EffectiveDate` is only defined when `withEffectiveDateField: true` —\n * so this component renders the correct subset for each use case with no extra props.\n *\n * Copy resolves from the onboarding `Employee.Compensation` namespace by default; management\n * consumers inject a `dictionary` mapped from `Employee.Management.Compensation` to keep\n * onboarding and management strings independently overridable.\n *\n * @internal\n */\nexport function AddCompensationFormBody({\n jobForm,\n compensationForm,\n title,\n submitCtaLabel,\n isPending,\n onCancel,\n dictionary,\n}: AddCompensationFormBodyProps) {\n useI18n('Employee.Compensation')\n useComponentDictionary('Employee.Compensation', dictionary)\n const { t } = useTranslation('Employee.Compensation')\n const Components = useComponentContext()\n const format = useNumberFormatter('currency')\n\n const JobFields = jobForm.form.Fields\n const CompFields = compensationForm.form.Fields\n\n return (\n <Flex flexDirection=\"column\" gap={32}>\n <Components.Heading as=\"h2\">{title}</Components.Heading>\n\n <Flex flexDirection=\"column\" gap={20}>\n {JobFields.Title && (\n <JobFields.Title\n label={t('jobTitle')}\n validationMessages={{ REQUIRED: t('validations.title') }}\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.HireDate && (\n <JobFields.HireDate\n label={t('hireDate')}\n validationMessages={{ REQUIRED: t('validations.hireDate') }}\n formHookResult={jobForm}\n />\n )}\n\n {CompFields.FlsaStatus && (\n <>\n <CompFields.FlsaStatus\n label={t('employeeClassification')}\n placeholder={t('flsaStatusPlaceholder')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{ ClassificationLink: <Components.Link /> }}\n />\n }\n validationMessages={{\n REQUIRED: t('validations.exemptThreshold', {\n limit: format(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n getOptionLabel={(status: FlsaStatusType) => t(`flsaStatusLabels.${status}`)}\n formHookResult={compensationForm}\n />\n {(compensationForm.status.showCommissionFederalMinimumPayAlert ||\n compensationForm.status.showCommissionMinimumWageAlert ||\n compensationForm.status.showOwnerSalaryAlert ||\n compensationForm.status.willDeleteSecondaryJobs) && (\n <Flex flexDirection=\"column\" gap={0}>\n {compensationForm.status.willDeleteSecondaryJobs && (\n <Components.Alert\n label={t('validations.classificationChangeNotification')}\n status=\"warning\"\n >\n {t('validations.classificationChangeRemovesSecondaryJobs')}\n </Components.Alert>\n )}\n {compensationForm.status.showCommissionFederalMinimumPayAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.federalMinimumPay.label')}\n disableScrollIntoView\n >\n {t('commissionAlerts.federalMinimumPay.body')}\n </Components.Alert>\n )}\n {compensationForm.status.showCommissionMinimumWageAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.minimumWage.label')}\n disableScrollIntoView\n >\n <Trans\n t={t}\n i18nKey=\"commissionAlerts.minimumWage.body\"\n components={{\n minimumWageLink: (\n <Components.Link\n href=\"https://support.gusto.com/article/112472520100000/manage-tip-wages-distributed-service-charges-and-tip-credits-in-gusto-for-admins\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n </Components.Alert>\n )}\n {compensationForm.status.showOwnerSalaryAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.ownerSalary.label')}\n disableScrollIntoView\n />\n )}\n </Flex>\n )}\n </>\n )}\n\n {CompFields.Rate && (\n <CompFields.Rate\n label={t('wageLabel')}\n validationMessages={{\n REQUIRED: t('validations.rate'),\n RATE_MINIMUM: t('validations.nonZeroRate'),\n RATE_EXEMPT_THRESHOLD: t('validations.rateExemptThreshold', {\n limit: format(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.PaymentUnit && (\n <CompFields.PaymentUnit\n label={t('wageFrequencyLabel')}\n placeholder={t('paymentUnitPlaceholder')}\n description={t('paymentUnitDescription')}\n validationMessages={{ REQUIRED: t('validations.paymentUnit') }}\n getOptionLabel={(unit: PaymentUnit) => t(`paymentUnitOptions.${unit}`)}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.AdjustForMinimumWage && (\n <CompFields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.MinimumWageId && (\n <CompFields.MinimumWageId\n label={t('minimumWageLabel')}\n placeholder={t('minimumWagePlaceholder')}\n description={t('minimumWageDescription')}\n validationMessages={{ REQUIRED: t('validations.minimumWage') }}\n getOptionLabel={(wage: MinimumWage) =>\n `${format(Number(wage.wage))} - ${wage.authority}: ${wage.notes ?? ''}`\n }\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.EffectiveDate && (\n <CompFields.EffectiveDate\n label={t('effectiveDate')}\n validationMessages={{\n REQUIRED: t('validations.effectiveDate'),\n EFFECTIVE_DATE_BEFORE_HIRE: t('validations.effectiveDateBeforeHire'),\n EFFECTIVE_DATE_BEFORE_MIN: t('validations.effectiveDateBeforeMin'),\n }}\n formHookResult={compensationForm}\n />\n )}\n\n {JobFields.TwoPercentShareholder && (\n <JobFields.TwoPercentShareholder\n label={t('twoPercentStakeholderLabel')}\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.StateWcCovered && (\n <JobFields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={\n <Trans\n t={t}\n i18nKey=\"stateWcCoveredDescription\"\n components={{\n wcLink: (\n <Components.Link\n href=\"https://www.lni.wa.gov/insurance/rates-risk-classes/risk-classes-for-workers-compensation/risk-class-lookup#/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n }\n getOptionLabel={(covered: boolean) =>\n covered ? t('stateWcCoveredOptions.yes') : t('stateWcCoveredOptions.no')\n }\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.StateWcClassCode && (\n <JobFields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n placeholder={t('stateWcClassCodeLabel')}\n validationMessages={{ REQUIRED: t('validations.stateWcClassCode') }}\n formHookResult={jobForm}\n />\n )}\n </Flex>\n\n <ActionsLayout>\n {onCancel && (\n <Components.Button variant=\"secondary\" onClick={onCancel} isDisabled={isPending}>\n {t('cancelNewJobCta')}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isPending}>\n {submitCtaLabel}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["AddCompensationFormBody","jobForm","compensationForm","title","submitCtaLabel","isPending","onCancel","dictionary","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","format","useNumberFormatter","JobFields","CompFields","jsxs","Flex","jsx","Fragment","Trans","FLSA_OVERTIME_SALARY_LIMIT","status","unit","wage","covered","ActionsLayout"],"mappings":";;;;;;;;;AAiDO,SAASA,EAAwB;AAAA,EACtC,SAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AACF,GAAiC;AAC/B,EAAAC,EAAQ,uBAAuB,GAC/BC,EAAuB,yBAAyBF,CAAU;AAC1D,QAAM,EAAE,GAAAG,EAAA,IAAMC,EAAe,uBAAuB,GAC9CC,IAAaC,EAAA,GACbC,IAASC,EAAmB,UAAU,GAEtCC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B,SAAQ,aAAY,SAASN,GAAU,YAAYD,GACnE,UAAAK,EAAE,iBAAiB,EAAA,CACtB;AAAA,MAEF,gBAAAU,EAACR,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWP,GACzC,UAAAD,EAAA,CACH;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,4 +1,4 @@
1
- import { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job';
1
+ import { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job';
2
2
  /**
3
3
  * Returns the FLSA status of the employee's primary job's current compensation,
4
4
  * or `undefined` when there is no primary job or no resolvable current compensation.
@@ -1 +1 @@
1
- {"version":3,"file":"derivePrimaryFlsaStatus.js","sources":["../../../../../src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.ts"],"sourcesContent":["import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job'\n\n/**\n * Returns the FLSA status of the employee's primary job's current compensation,\n * or `undefined` when there is no primary job or no resolvable current compensation.\n *\n * The primary job is the one with `primary === true`; \"current compensation\" is the\n * entry in `job.compensations` whose `uuid` matches `job.currentCompensationUuid`.\n *\n * @internal\n */\nexport function derivePrimaryFlsaStatus(jobs: Job[] | undefined): string | undefined {\n return (jobs ?? []).reduce<string | undefined>((acc, job) => {\n const comp = job.compensations?.find(c => c.uuid === job.currentCompensationUuid)\n if (!job.primary || !comp) return acc\n return comp.flsaStatus ?? acc\n }, undefined)\n}\n"],"names":["derivePrimaryFlsaStatus","jobs","acc","job","comp","c"],"mappings":"AAWO,SAASA,EAAwBC,GAA6C;AACnF,UAAQA,KAAQ,CAAA,GAAI,OAA2B,CAACC,GAAKC,MAAQ;AAC3D,UAAMC,IAAOD,EAAI,eAAe,KAAK,OAAKE,EAAE,SAASF,EAAI,uBAAuB;AAChF,WAAI,CAACA,EAAI,WAAW,CAACC,IAAaF,IAC3BE,EAAK,cAAcF;AAAA,EAC5B,GAAG,MAAS;AACd;"}
1
+ {"version":3,"file":"derivePrimaryFlsaStatus.js","sources":["../../../../../src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.ts"],"sourcesContent":["import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job'\n\n/**\n * Returns the FLSA status of the employee's primary job's current compensation,\n * or `undefined` when there is no primary job or no resolvable current compensation.\n *\n * The primary job is the one with `primary === true`; \"current compensation\" is the\n * entry in `job.compensations` whose `uuid` matches `job.currentCompensationUuid`.\n *\n * @internal\n */\nexport function derivePrimaryFlsaStatus(jobs: Job[] | undefined): string | undefined {\n return (jobs ?? []).reduce<string | undefined>((acc, job) => {\n const comp = job.compensations?.find(c => c.uuid === job.currentCompensationUuid)\n if (!job.primary || !comp) return acc\n return comp.flsaStatus ?? acc\n }, undefined)\n}\n"],"names":["derivePrimaryFlsaStatus","jobs","acc","job","comp","c"],"mappings":"AAWO,SAASA,EAAwBC,GAA6C;AACnF,UAAQA,KAAQ,CAAA,GAAI,OAA2B,CAACC,GAAKC,MAAQ;AAC3D,UAAMC,IAAOD,EAAI,eAAe,KAAK,OAAKE,EAAE,SAASF,EAAI,uBAAuB;AAChF,WAAI,CAACA,EAAI,WAAW,CAACC,IAAaF,IAC3BE,EAAK,cAAcF;AAAA,EAC5B,GAAG,MAAS;AACd;"}
@@ -1,5 +1,5 @@
1
- import { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype';
2
- import { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job';
1
+ import { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype';
2
+ import { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job';
3
3
  /** @internal */
4
4
  export type PendingChangeDetail = {
5
5
  kind: 'titleChange';
@@ -1 +1 @@
1
- {"version":3,"file":"getPendingCompensationChanges.js","sources":["../../../../../src/components/Employee/Compensation/shared/getPendingCompensationChanges.ts"],"sourcesContent":["import type { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation'\nimport type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype'\nimport type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job'\nimport { normalizeToDate } from '@/helpers/dateFormatting'\n\n/** @internal */\nexport type PendingChangeDetail =\n | { kind: 'titleChange'; title: string }\n | { kind: 'payChange'; rate: number; paymentUnit: string }\n | { kind: 'flsaChange'; flsaStatus: FlsaStatusType }\n | { kind: 'minWageEnabled'; wage: string | null }\n | { kind: 'minWageDisabled' }\n | { kind: 'minWageChanged'; wage: string | null }\n | {\n kind: 'newJob'\n title: string | null\n rate: number | null\n paymentUnit: string | null\n }\n\n/** @internal */\nexport interface PendingCompensationChange {\n compensationUuid: string\n jobUuid: string\n effectiveDate: string\n jobTitle: string | null\n details: PendingChangeDetail[]\n /**\n * True when the job has no current (on-or-before-today) compensation —\n * i.e., the job itself hasn't started yet. The UI renders a \"Pending\"\n * badge rather than a change alert in this case.\n */\n isNewJob: boolean\n}\n\nconst startOfLocalDay = (d: Date) => new Date(d.getFullYear(), d.getMonth(), d.getDate())\n\nconst isAfterToday = (effectiveDate: string | undefined, todayStart: Date): boolean => {\n if (!effectiveDate) return false\n const parsed = normalizeToDate(effectiveDate)\n if (!parsed) return false\n return startOfLocalDay(parsed) > todayStart\n}\n\nconst isOnOrBeforeToday = (effectiveDate: string | undefined, todayStart: Date): boolean => {\n if (!effectiveDate) return false\n const parsed = normalizeToDate(effectiveDate)\n if (!parsed) return false\n return startOfLocalDay(parsed) <= todayStart\n}\n\nconst numericRate = (rate: string | undefined): number | null => {\n if (rate === undefined || rate === '') return null\n const n = Number(rate)\n return Number.isFinite(n) ? n : null\n}\n\nfunction buildExistingJobDetails(\n baseline: Compensation,\n future: Compensation,\n): PendingChangeDetail[] {\n const details: PendingChangeDetail[] = []\n\n // Title diffs come straight from `compensation.title` — that's where the\n // value lives in the API. A future comp that doesn't carry a title (e.g.\n // a pay-only change) leaves `future.title` undefined; the `futureTitle &&`\n // guard prevents that case from emitting a spurious title change.\n const baseTitle = baseline.title ?? null\n const futureTitle = future.title ?? null\n if (futureTitle && baseTitle !== futureTitle) {\n details.push({ kind: 'titleChange', title: futureTitle })\n }\n\n const baseRate = numericRate(baseline.rate)\n const futureRate = numericRate(future.rate)\n const baseUnit = baseline.paymentUnit\n const futureUnit = future.paymentUnit\n const rateDiffers = futureRate !== null && futureRate !== baseRate\n const unitDiffers = futureUnit !== undefined && futureUnit !== baseUnit\n if ((rateDiffers || unitDiffers) && futureRate !== null && futureUnit) {\n details.push({ kind: 'payChange', rate: futureRate, paymentUnit: futureUnit })\n }\n\n if (future.flsaStatus && future.flsaStatus !== baseline.flsaStatus) {\n details.push({ kind: 'flsaChange', flsaStatus: future.flsaStatus })\n }\n\n const baseAdj = baseline.adjustForMinimumWage ?? false\n const futureAdj = future.adjustForMinimumWage ?? false\n const baseMw = baseline.minimumWages?.[0]\n const futureMw = future.minimumWages?.[0]\n\n if (!baseAdj && futureAdj) {\n details.push({ kind: 'minWageEnabled', wage: futureMw?.wage ?? null })\n } else if (baseAdj && !futureAdj) {\n details.push({ kind: 'minWageDisabled' })\n } else if (baseAdj && futureAdj) {\n if (baseMw?.uuid !== futureMw?.uuid || baseMw?.wage !== futureMw?.wage) {\n details.push({ kind: 'minWageChanged', wage: futureMw?.wage ?? null })\n }\n }\n\n return details\n}\n\nfunction buildNewJobDetails(future: Compensation): PendingChangeDetail[] {\n const rate = numericRate(future.rate)\n return [\n {\n kind: 'newJob',\n title: future.title ?? null,\n rate,\n paymentUnit: rate !== null && future.paymentUnit ? future.paymentUnit : null,\n },\n ]\n}\n\n/**\n * Returns the pending compensation changes for an employee, flattened across\n * all jobs and sorted globally by `effectiveDate` ascending.\n *\n * A pending change is any `Compensation` whose `effectiveDate` is strictly\n * after today (local midnight). When a single job has multiple future-dated\n * compensations stacked, each is returned in chronological order and the diff\n * details for the N+1th comp are computed against the Nth (rather than the\n * job's current compensation) so the bullets remain meaningful end-to-end.\n *\n * The helper returns structured deltas (a discriminated union per detail) so\n * the consuming UI is responsible for formatting them via i18n / pay-rate\n * helpers. This keeps the helper pure and trivially unit-testable.\n *\n * @internal\n */\nexport function getPendingCompensationChanges(\n jobs: Job[] | undefined,\n options: { today?: Date } = {},\n): PendingCompensationChange[] {\n if (!jobs?.length) return []\n\n const now = options.today ?? new Date()\n const todayStart = startOfLocalDay(now)\n const results: PendingCompensationChange[] = []\n\n for (const job of jobs) {\n const comps = job.compensations ?? []\n\n const futureComps = comps\n .filter(c => isAfterToday(c.effectiveDate, todayStart))\n .slice()\n .sort((a, b) => (a.effectiveDate ?? '').localeCompare(b.effectiveDate ?? ''))\n\n if (futureComps.length === 0) continue\n\n const referencedCurrent = job.currentCompensationUuid\n ? comps.find(c => c.uuid === job.currentCompensationUuid)\n : undefined\n const currentComp =\n referencedCurrent && isOnOrBeforeToday(referencedCurrent.effectiveDate, todayStart)\n ? referencedCurrent\n : null\n\n // Title lives on compensation; `job.title` is a denormalized snapshot of\n // the primary comp's title and can lag behind comp-level edits on\n // secondaries (and on primaries until the server resyncs). For UI strings\n // that contextualize a change (\"Compensation for X will change on...\"),\n // use the title from the currently-in-effect comp; for a job that hasn't\n // started yet (`currentComp === null`), fall back to the first future\n // comp's title — that's the title the job is starting with.\n const displayTitle = currentComp?.title ?? futureComps[0]?.title ?? null\n\n for (let i = 0; i < futureComps.length; i++) {\n const future = futureComps[i]!\n const baseline = i === 0 ? currentComp : futureComps[i - 1]!\n\n const details = baseline\n ? buildExistingJobDetails(baseline, future)\n : buildNewJobDetails(future)\n\n results.push({\n compensationUuid: future.uuid,\n jobUuid: job.uuid,\n effectiveDate: future.effectiveDate!,\n jobTitle: displayTitle,\n details,\n isNewJob: baseline === null,\n })\n }\n }\n\n results.sort((a, b) => a.effectiveDate.localeCompare(b.effectiveDate))\n\n return results\n}\n"],"names":["startOfLocalDay","d","isAfterToday","effectiveDate","todayStart","parsed","normalizeToDate","isOnOrBeforeToday","numericRate","rate","n","buildExistingJobDetails","baseline","future","details","baseTitle","futureTitle","baseRate","futureRate","baseUnit","futureUnit","baseAdj","futureAdj","baseMw","futureMw","buildNewJobDetails","getPendingCompensationChanges","jobs","options","now","results","job","comps","futureComps","c","a","b","referencedCurrent","currentComp","displayTitle"],"mappings":";AAmCA,MAAMA,IAAkB,CAACC,MAAY,IAAI,KAAKA,EAAE,eAAeA,EAAE,SAAA,GAAYA,EAAE,SAAS,GAElFC,IAAe,CAACC,GAAmCC,MAA8B;AACrF,MAAI,CAACD,EAAe,QAAO;AAC3B,QAAME,IAASC,EAAgBH,CAAa;AAC5C,SAAKE,IACEL,EAAgBK,CAAM,IAAID,IADb;AAEtB,GAEMG,IAAoB,CAACJ,GAAmCC,MAA8B;AAC1F,MAAI,CAACD,EAAe,QAAO;AAC3B,QAAME,IAASC,EAAgBH,CAAa;AAC5C,SAAKE,IACEL,EAAgBK,CAAM,KAAKD,IADd;AAEtB,GAEMI,IAAc,CAACC,MAA4C;AAC/D,MAAIA,MAAS,UAAaA,MAAS,GAAI,QAAO;AAC9C,QAAMC,IAAI,OAAOD,CAAI;AACrB,SAAO,OAAO,SAASC,CAAC,IAAIA,IAAI;AAClC;AAEA,SAASC,EACPC,GACAC,GACuB;AACvB,QAAMC,IAAiC,CAAA,GAMjCC,IAAYH,EAAS,SAAS,MAC9BI,IAAcH,EAAO,SAAS;AACpC,EAAIG,KAAeD,MAAcC,KAC/BF,EAAQ,KAAK,EAAE,MAAM,eAAe,OAAOE,GAAa;AAG1D,QAAMC,IAAWT,EAAYI,EAAS,IAAI,GACpCM,IAAaV,EAAYK,EAAO,IAAI,GACpCM,IAAWP,EAAS,aACpBQ,IAAaP,EAAO;AAG1B,GAFoBK,MAAe,QAAQA,MAAeD,KACtCG,MAAe,UAAaA,MAAeD,MAC3BD,MAAe,QAAQE,KACzDN,EAAQ,KAAK,EAAE,MAAM,aAAa,MAAMI,GAAY,aAAaE,GAAY,GAG3EP,EAAO,cAAcA,EAAO,eAAeD,EAAS,cACtDE,EAAQ,KAAK,EAAE,MAA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AAKE,EAAE,SAASH,EAAI,uBAAuB,IACtD,QACEO,IACJD,KAAqB9B,EAAkB8B,EAAkB,eAAejC,CAAU,IAC9EiC,IACA,MASAE,IAAeD,GAAa,SAASL,EAAY,CAAC,GAAG,SAAS;AAEpE,aAAS,IAAI,GAAG,IAAIA,EAAY,QAAQ,KAAK;AAC3C,YAAMpB,IAASoB,EAAY,CAAC,GACtBrB,IAAW,MAAM,IAAI0B,IAAcL,EAAY,IAAI,CAAC,GAEpDnB,IAAUF,IACZD,EAAwBC,GAAUC,CAAM,IACxCY,EAAmBZ,CAAM;AAE7B,MAAAiB,EAAQ,KAAK;AAAA,QACX,kBAAkBjB,EAAO;AAAA,QACzB,SAASkB,EAAI;AAAA,QACb,eAAelB,EAAO;AAAA,QACtB,UAAU0B;AAAA,QACV,SAAAzB;AAAA,QACA,UAAUF,MAAa;AAAA,MAAA,CACxB;AAAA,IACH;AAAA,EACF;AAEA,SAAAkB,EAAQ,KAAK,CAACK,GAAGC,MAAMD,EAAE,cAAc,cAAcC,EAAE,aAAa,CAAC,GAE9DN;AACT;"}
1
+ {"version":3,"file":"getPendingCompensationChanges.js","sources":["../../../../../src/components/Employee/Compensation/shared/getPendingCompensationChanges.ts"],"sourcesContent":["import type { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation'\nimport type { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype'\nimport type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job'\nimport { normalizeToDate } from '@/helpers/dateFormatting'\n\n/** @internal */\nexport type PendingChangeDetail =\n | { kind: 'titleChange'; title: string }\n | { kind: 'payChange'; rate: number; paymentUnit: string }\n | { kind: 'flsaChange'; flsaStatus: FlsaStatusType }\n | { kind: 'minWageEnabled'; wage: string | null }\n | { kind: 'minWageDisabled' }\n | { kind: 'minWageChanged'; wage: string | null }\n | {\n kind: 'newJob'\n title: string | null\n rate: number | null\n paymentUnit: string | null\n }\n\n/** @internal */\nexport interface PendingCompensationChange {\n compensationUuid: string\n jobUuid: string\n effectiveDate: string\n jobTitle: string | null\n details: PendingChangeDetail[]\n /**\n * True when the job has no current (on-or-before-today) compensation —\n * i.e., the job itself hasn't started yet. The UI renders a \"Pending\"\n * badge rather than a change alert in this case.\n */\n isNewJob: boolean\n}\n\nconst startOfLocalDay = (d: Date) => new Date(d.getFullYear(), d.getMonth(), d.getDate())\n\nconst isAfterToday = (effectiveDate: string | undefined, todayStart: Date): boolean => {\n if (!effectiveDate) return false\n const parsed = normalizeToDate(effectiveDate)\n if (!parsed) return false\n return startOfLocalDay(parsed) > todayStart\n}\n\nconst isOnOrBeforeToday = (effectiveDate: string | undefined, todayStart: Date): boolean => {\n if (!effectiveDate) return false\n const parsed = normalizeToDate(effectiveDate)\n if (!parsed) return false\n return startOfLocalDay(parsed) <= todayStart\n}\n\nconst numericRate = (rate: string | undefined): number | null => {\n if (rate === undefined || rate === '') return null\n const n = Number(rate)\n return Number.isFinite(n) ? n : null\n}\n\nfunction buildExistingJobDetails(\n baseline: Compensation,\n future: Compensation,\n): PendingChangeDetail[] {\n const details: PendingChangeDetail[] = []\n\n // Title diffs come straight from `compensation.title` — that's where the\n // value lives in the API. A future comp that doesn't carry a title (e.g.\n // a pay-only change) leaves `future.title` undefined; the `futureTitle &&`\n // guard prevents that case from emitting a spurious title change.\n const baseTitle = baseline.title ?? null\n const futureTitle = future.title ?? null\n if (futureTitle && baseTitle !== futureTitle) {\n details.push({ kind: 'titleChange', title: futureTitle })\n }\n\n const baseRate = numericRate(baseline.rate)\n const futureRate = numericRate(future.rate)\n const baseUnit = baseline.paymentUnit\n const futureUnit = future.paymentUnit\n const rateDiffers = futureRate !== null && futureRate !== baseRate\n const unitDiffers = futureUnit !== undefined && futureUnit !== baseUnit\n if ((rateDiffers || unitDiffers) && futureRate !== null && futureUnit) {\n details.push({ kind: 'payChange', rate: futureRate, paymentUnit: futureUnit })\n }\n\n if (future.flsaStatus && future.flsaStatus !== baseline.flsaStatus) {\n details.push({ kind: 'flsaChange', flsaStatus: future.flsaStatus })\n }\n\n const baseAdj = baseline.adjustForMinimumWage ?? false\n const futureAdj = future.adjustForMinimumWage ?? false\n const baseMw = baseline.minimumWages?.[0]\n const futureMw = future.minimumWages?.[0]\n\n if (!baseAdj && futureAdj) {\n details.push({ kind: 'minWageEnabled', wage: futureMw?.wage ?? null })\n } else if (baseAdj && !futureAdj) {\n details.push({ kind: 'minWageDisabled' })\n } else if (baseAdj && futureAdj) {\n if (baseMw?.uuid !== futureMw?.uuid || baseMw?.wage !== futureMw?.wage) {\n details.push({ kind: 'minWageChanged', wage: futureMw?.wage ?? null })\n }\n }\n\n return details\n}\n\nfunction buildNewJobDetails(future: Compensation): PendingChangeDetail[] {\n const rate = numericRate(future.rate)\n return [\n {\n kind: 'newJob',\n title: future.title ?? null,\n rate,\n paymentUnit: rate !== null && future.paymentUnit ? future.paymentUnit : null,\n },\n ]\n}\n\n/**\n * Returns the pending compensation changes for an employee, flattened across\n * all jobs and sorted globally by `effectiveDate` ascending.\n *\n * A pending change is any `Compensation` whose `effectiveDate` is strictly\n * after today (local midnight). When a single job has multiple future-dated\n * compensations stacked, each is returned in chronological order and the diff\n * details for the N+1th comp are computed against the Nth (rather than the\n * job's current compensation) so the bullets remain meaningful end-to-end.\n *\n * The helper returns structured deltas (a discriminated union per detail) so\n * the consuming UI is responsible for formatting them via i18n / pay-rate\n * helpers. This keeps the helper pure and trivially unit-testable.\n *\n * @internal\n */\nexport function getPendingCompensationChanges(\n jobs: Job[] | undefined,\n options: { today?: Date } = {},\n): PendingCompensationChange[] {\n if (!jobs?.length) return []\n\n const now = options.today ?? new Date()\n const todayStart = startOfLocalDay(now)\n const results: PendingCompensationChange[] = []\n\n for (const job of jobs) {\n const comps = job.compensations ?? []\n\n const futureComps = comps\n .filter(c => isAfterToday(c.effectiveDate, todayStart))\n .slice()\n .sort((a, b) => (a.effectiveDate ?? '').localeCompare(b.effectiveDate ?? ''))\n\n if (futureComps.length === 0) continue\n\n const referencedCurrent = job.currentCompensationUuid\n ? comps.find(c => c.uuid === job.currentCompensationUuid)\n : undefined\n const currentComp =\n referencedCurrent && isOnOrBeforeToday(referencedCurrent.effectiveDate, todayStart)\n ? referencedCurrent\n : null\n\n // Title lives on compensation; `job.title` is a denormalized snapshot of\n // the primary comp's title and can lag behind comp-level edits on\n // secondaries (and on primaries until the server resyncs). For UI strings\n // that contextualize a change (\"Compensation for X will change on...\"),\n // use the title from the currently-in-effect comp; for a job that hasn't\n // started yet (`currentComp === null`), fall back to the first future\n // comp's title — that's the title the job is starting with.\n const displayTitle = currentComp?.title ?? futureComps[0]?.title ?? null\n\n for (let i = 0; i < futureComps.length; i++) {\n const future = futureComps[i]!\n const baseline = i === 0 ? currentComp : futureComps[i - 1]!\n\n const details = baseline\n ? buildExistingJobDetails(baseline, future)\n : buildNewJobDetails(future)\n\n results.push({\n compensationUuid: future.uuid,\n jobUuid: job.uuid,\n effectiveDate: future.effectiveDate!,\n jobTitle: displayTitle,\n details,\n isNewJob: baseline === null,\n })\n }\n }\n\n results.sort((a, b) => a.effectiveDate.localeCompare(b.effectiveDate))\n\n return results\n}\n"],"names":["startOfLocalDay","d","isAfterToday","effectiveDate","todayStart","parsed","normalizeToDate","isOnOrBeforeToday","numericRate","rate","n","buildExistingJobDetails","baseline","future","details","baseTitle","futureTitle","baseRate","futureRate","baseUnit","futureUnit","baseAdj","futureAdj","baseMw","futureMw","buildNewJobDetails","getPendingCompensationChanges","jobs","options","now","results","job","comps","futureComps","c","a","b","referencedCurrent","currentComp","displayTitle"],"mappings":";AAmCA,MAAMA,IAAkB,CAACC,MAAY,IAAI,KAAKA,EAAE,eAAeA,EAAE,SAAA,GAAYA,EAAE,SAAS,GAElFC,IAAe,CAACC,GAAmCC,MAA8B;AACrF,MAAI,CAACD,EAAe,QAAO;AAC3B,QAAME,IAASC,EAAgBH,CAAa;AAC5C,SAAKE,IACEL,EAAgBK,CAAM,IAAID,IADb;AAEtB,GAEMG,IAAoB,CAACJ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B,EAAO;AAAA,QACzB,SAASkB,EAAI;AAAA,QACb,eAAelB,EAAO;AAAA,QACtB,UAAU0B;AAAA,QACV,SAAAzB;AAAA,QACA,UAAUF,MAAa;AAAA,MAAA,CACxB;AAAA,IACH;AAAA,EACF;AAEA,SAAAkB,EAAQ,KAAK,CAACK,GAAGC,MAAMD,EAAE,cAAc,cAAcC,EAAE,aAAa,CAAC,GAE9DN;AACT;"}
@@ -125,17 +125,8 @@ export type CompensationFormData = {
125
125
  * })
126
126
  * ```
127
127
  */
128
- export type CompensationOptionalFieldsToRequire = { create?: "title"[] | undefined; update?: ("title" | "flsaStatus" | "paymentUnit" | "rate" | "effectiveDate")[] | undefined; };
129
- /**
130
- * Validated submission shape produced by the {@link useCompensationForm} schema.
131
- *
132
- * @remarks
133
- * Identical to {@link CompensationFormData} — exposed as a separate alias so
134
- * the input vs. output sides of the schema remain distinguishable in advanced
135
- * usages.
136
- *
137
- * @public
138
- */
128
+ export type CompensationOptionalFieldsToRequire = { create?: ("title" | "minimumWageId")[] | undefined; update?: ("title" | "flsaStatus" | "paymentUnit" | "rate" | "effectiveDate" | "minimumWageId")[] | undefined; };
129
+ /** @internal */
139
130
  export type CompensationFormOutputs = CompensationFormData;
140
131
  /** @internal */
141
132
  export interface CompensationSchemaOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"compensationSchema.js","sources":["../../../../../../src/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n type OptionalFieldsToRequire,\n} from '@/partner-hook-utils/form/buildFormSchema'\nimport { coerceNaN, coerceToISODate } from '@/partner-hook-utils/form/preprocessors'\nimport { FLSA_OVERTIME_SALARY_LIMIT, FlsaStatus, PAY_PERIODS } from '@/shared/constants'\nimport { yearlyRate } from '@/helpers/payRateCalculator'\n\n/**\n * Validation error codes produced by the {@link useCompensationForm} schema.\n *\n * @remarks\n * Use these constants as the keys in a field's `validationMessages` prop to\n * map an error code to a user-facing message.\n *\n * | Code | When it triggers |\n * | ---- | ---------------- |\n * | `REQUIRED` | A required field is empty (per mode and `optionalFieldsToRequire`). |\n * | `RATE_MINIMUM` | `rate` is less than `$1.00` for non-commission FLSA statuses. |\n * | `RATE_EXEMPT_THRESHOLD` | FLSA `Exempt` employees must clear the federal salary threshold (annualized). |\n * | `PAYMENT_UNIT_OWNER` | `Owner` FLSA status requires `paymentUnit === 'Paycheck'`. |\n * | `PAYMENT_UNIT_COMMISSION` | Commission-only FLSA statuses require `paymentUnit === 'Year'`. |\n * | `RATE_COMMISSION_ZERO` | Commission-only FLSA statuses require `rate === 0`. |\n * | `EFFECTIVE_DATE_BEFORE_HIRE` | `effectiveDate` precedes the parent job's `hireDate`. |\n * | `EFFECTIVE_DATE_BEFORE_MIN` | `effectiveDate` precedes the caller-supplied minimum (typically tomorrow). |\n *\n * @public\n *\n * @example\n * ```tsx\n * import { CompensationErrorCodes } from '@gusto/embedded-react-sdk'\n *\n * <Fields.Rate\n * label=\"Compensation amount\"\n * validationMessages={{\n * [CompensationErrorCodes.REQUIRED]: 'Amount is required',\n * [CompensationErrorCodes.RATE_MINIMUM]: 'Amount must be at least $1.00',\n * [CompensationErrorCodes.RATE_EXEMPT_THRESHOLD]: 'Exempt employees must meet the salary threshold',\n * }}\n * />\n * ```\n */\nexport const CompensationErrorCodes = {\n REQUIRED: 'REQUIRED',\n RATE_MINIMUM: 'RATE_MINIMUM',\n RATE_EXEMPT_THRESHOLD: 'RATE_EXEMPT_THRESHOLD',\n PAYMENT_UNIT_OWNER: 'PAYMENT_UNIT_OWNER',\n PAYMENT_UNIT_COMMISSION: 'PAYMENT_UNIT_COMMISSION',\n RATE_COMMISSION_ZERO: 'RATE_COMMISSION_ZERO',\n EFFECTIVE_DATE_BEFORE_HIRE: 'EFFECTIVE_DATE_BEFORE_HIRE',\n EFFECTIVE_DATE_BEFORE_MIN: 'EFFECTIVE_DATE_BEFORE_MIN',\n} as const\n\n/**\n * Union of every error code produced by the {@link useCompensationForm} schema.\n *\n * @public\n */\nexport type CompensationErrorCode =\n (typeof CompensationErrorCodes)[keyof typeof CompensationErrorCodes]\n\nconst fieldValidators = {\n /**\n * Optional in both modes. Setting title here scopes the change to this\n * compensation's `effectiveDate` — pair it with a future-dated comp to\n * schedule a promotion title alongside a rate change. Use\n * `useJobForm.Fields.Title` instead when creating a job (title is required\n * by the API on job creation) or when renaming the active role\n * immediately, and avoid rendering both fields on the same screen.\n */\n title: z.string(),\n // `flsaStatus` is `.optional()` so the field can render an empty placeholder\n // until the user (or partner default) picks one. Requiredness is still\n // enforced via `requiredFieldsConfig` on submit in `create` mode.\n flsaStatus: z\n .enum([\n FlsaStatus.EXEMPT,\n FlsaStatus.SALARIED_NONEXEMPT,\n FlsaStatus.NONEXEMPT,\n FlsaStatus.OWNER,\n FlsaStatus.COMMISSION_ONLY_EXEMPT,\n FlsaStatus.COMMISSION_ONLY_NONEXEMPT,\n ])\n .optional(),\n paymentUnit: z.enum([\n PAY_PERIODS.HOUR,\n PAY_PERIODS.WEEK,\n PAY_PERIODS.MONTH,\n PAY_PERIODS.YEAR,\n PAY_PERIODS.PAYCHECK,\n ]),\n rate: z.preprocess(coerceNaN(0), z.number()),\n /**\n * The effective date a new compensation should take effect on.\n *\n * - **create mode (`compensationId` absent)**: required; partners typically default\n * to the parent job's `hireDate` (onboarding stub-fill) or a future date\n * (rate change). Must be on or after `hireDate`. Server-side this maps to\n * POST /v1/jobs/:jobId/compensations.\n * - **update mode (`compensationId` present)**: optional; if omitted the API\n * keeps the existing effective date. The `hireDate` lower bound is **not**\n * enforced — loaded values may legitimately predate the hire date. Maps to\n * PUT /v1/compensations/:id.\n */\n effectiveDate: z.preprocess(coerceToISODate, z.iso.date().nullable()),\n adjustForMinimumWage: z.boolean(),\n minimumWageId: z.string(),\n}\n\n/**\n * Shape of the form values managed by {@link useCompensationForm}.\n *\n * @remarks\n * Accepted as `defaultValues` on `useCompensationForm` and returned by\n * `form.getFormSubmissionValues()` once the form has validated. `effectiveDate`\n * is an ISO date string (`YYYY-MM-DD`) or `null`; `flsaStatus` is optional so\n * the field can render an empty placeholder when nothing is preselected\n * (requiredness is enforced on submit per mode).\n *\n * @public\n * @interface\n */\nexport type CompensationFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\nconst requiredFieldsConfig = {\n title: 'never',\n flsaStatus: 'create',\n paymentUnit: 'create',\n rate: 'create',\n effectiveDate: 'create',\n minimumWageId: data => data.adjustForMinimumWage,\n} satisfies RequiredFieldConfig<typeof fieldValidators>\n\nfunction validateFlsaRules(data: CompensationFormData, ctx: z.RefinementCtx) {\n const { flsaStatus, paymentUnit, rate } = data\n\n if (\n flsaStatus === FlsaStatus.EXEMPT ||\n flsaStatus === FlsaStatus.SALARIED_NONEXEMPT ||\n flsaStatus === FlsaStatus.NONEXEMPT\n ) {\n // Surface the EXEMPT salary-threshold issue *before* the generic minimum,\n // so a partner setting rate=0 with EXEMPT sees the more actionable\n // \"must meet salary threshold\" message rather than the generic\n // \"amount must be at least $1.00\".\n if (\n flsaStatus === FlsaStatus.EXEMPT &&\n yearlyRate(rate, paymentUnit) < FLSA_OVERTIME_SALARY_LIMIT\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_EXEMPT_THRESHOLD,\n })\n } else if (rate < 1) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_MINIMUM,\n })\n }\n } else if (flsaStatus === FlsaStatus.OWNER) {\n if (paymentUnit !== PAY_PERIODS.PAYCHECK) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['paymentUnit'],\n message: CompensationErrorCodes.PAYMENT_UNIT_OWNER,\n })\n }\n if (rate < 1) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_MINIMUM,\n })\n }\n } else if (\n flsaStatus === FlsaStatus.COMMISSION_ONLY_EXEMPT ||\n flsaStatus === FlsaStatus.COMMISSION_ONLY_NONEXEMPT\n ) {\n if (paymentUnit !== PAY_PERIODS.YEAR) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['paymentUnit'],\n message: CompensationErrorCodes.PAYMENT_UNIT_COMMISSION,\n })\n }\n if (rate !== 0) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_COMMISSION_ZERO,\n })\n }\n }\n}\n\n/**\n * Override which fields are required on a given submission mode of {@link useCompensationForm}.\n *\n * @remarks\n * Each mode key lists the fields that are optional by default for that mode\n * but should be promoted to required. `adjustForMinimumWage` is always\n * required and `minimumWageId` is automatically required when\n * `adjustForMinimumWage` is `true` — neither is configurable here.\n *\n * | Field | Required on create | Required on update | Configurable? |\n * | ----- | ------------------ | ------------------ | ------------- |\n * | `flsaStatus` | Yes | No | Yes (on update) |\n * | `paymentUnit` | Yes | No | Yes (on update) |\n * | `rate` | Yes | No | Yes (on update) |\n * | `effectiveDate` | Yes | No | Yes (on update) |\n * | `title` | No | No | Yes (either mode) |\n * | `adjustForMinimumWage` | Yes | Yes | No |\n * | `minimumWageId` | When toggle is on | When toggle is on | No |\n *\n * @public\n *\n * @example\n * ```tsx\n * const compensation = useCompensationForm({\n * employeeId,\n * jobId,\n * compensationId,\n * optionalFieldsToRequire: {\n * update: ['title', 'rate'],\n * },\n * })\n * ```\n */\nexport type CompensationOptionalFieldsToRequire = OptionalFieldsToRequire<\n typeof requiredFieldsConfig\n>\n\n/**\n * Validated submission shape produced by the {@link useCompensationForm} schema.\n *\n * @remarks\n * Identical to {@link CompensationFormData} — exposed as a separate alias so\n * the input vs. output sides of the schema remain distinguishable in advanced\n * usages.\n *\n * @public\n */\nexport type CompensationFormOutputs = CompensationFormData\n\n/** @internal */\nexport interface CompensationSchemaOptions {\n /** Selects required-field rules: `'create'` (POST) or `'update'` (PUT). Defaults to `'create'`. */\n mode?: 'create' | 'update'\n /** Promote default-optional fields to required for the selected mode. See {@link CompensationOptionalFieldsToRequire}. */\n optionalFieldsToRequire?: CompensationOptionalFieldsToRequire\n /**\n * Lower bound for `effectiveDate` (typically the parent job's `hireDate`).\n * Only enforced in `create` mode — on `update` the loaded effective date\n * may legitimately predate the hire date and is left as-is. Surfaces an\n * `EFFECTIVE_DATE_BEFORE_HIRE` issue when violated.\n */\n hireDate?: string | null\n /**\n * Absolute lower bound for `effectiveDate`, enforced in both create and\n * update modes whenever provided. Typically `addDays(today, 1)` (tomorrow)\n * for management screens where effective dates must be in the future, or\n * `max(tomorrow, hireDate)` for secondary new jobs. Surfaces an\n * `EFFECTIVE_DATE_BEFORE_MIN` issue when violated.\n *\n * **Callers must only pass this when the carve-out cannot fire.** The\n * carve-out (`willDeleteSecondaryJobs` in update mode) forces `effectiveDate`\n * to today on a disabled field — passing `minEffectiveDate` for a primary\n * job in update mode would cause a spurious validation failure on submit.\n * Secondary jobs are safe because their FLSA field is hidden, preventing the\n * carve-out from activating.\n */\n minEffectiveDate?: string | null\n /**\n * When `false`, drops `effectiveDate` from the validated shape — the field\n * becomes hook-managed (e.g. seeded from the parent job's `hireDate` during\n * onboarding). Partners may still supply the value at submit time via\n * `CompensationSubmitOptions.effectiveDate`. Defaults to `true`.\n */\n withEffectiveDateField?: boolean\n}\n\n/** @internal */\nexport function createCompensationSchema(options: CompensationSchemaOptions = {}) {\n const {\n mode = 'create',\n optionalFieldsToRequire,\n hireDate,\n minEffectiveDate,\n withEffectiveDateField = true,\n } = options\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: CompensationErrorCodes.REQUIRED,\n mode,\n optionalFieldsToRequire,\n excludeFields: withEffectiveDateField ? [] : ['effectiveDate'],\n superRefine: (data, ctx) => {\n validateFlsaRules(data, ctx)\n // Enforce the hire-date lower bound in create mode always, and in\n // update mode when `minEffectiveDate` is also set (management screens\n // where the user is actively picking a new date). On plain update\n // without `minEffectiveDate`, the loaded effectiveDate can legitimately\n // predate the hire date (stub or out-of-order data) and the API\n // accepts the unchanged value — blocking the submit would trap\n // partners whose flow doesn't render Fields.EffectiveDate.\n // When `withEffectiveDateField` is false the field is excluded from\n // the shape and `data.effectiveDate` is undefined — this check\n // naturally short-circuits.\n if (\n hireDate &&\n data.effectiveDate &&\n data.effectiveDate < hireDate &&\n (mode === 'create' || minEffectiveDate)\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['effectiveDate'],\n message: CompensationErrorCodes.EFFECTIVE_DATE_BEFORE_HIRE,\n })\n }\n // Enforce the caller-supplied minimum effective date in both modes.\n // Callers must only pass this when the carve-out cannot fire (see\n // CompensationSchemaOptions.minEffectiveDate for details).\n if (minEffectiveDate && data.effectiveDate && data.effectiveDate < minEffectiveDate) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['effectiveDate'],\n message: CompensationErrorCodes.EFFECTIVE_DATE_BEFORE_MIN,\n })\n }\n },\n })\n}\n"],"names":["CompensationErrorCodes","fieldValidators","z","FlsaStatus","PAY_PERIODS","coerceNaN","coerceToISODate","requiredFieldsConfig","data","validateFlsaRules","ctx","flsaStatus","paymentUnit","rate","yearlyRate","FLSA_OVERTIME_SALARY_LIMIT","createCompensationSchema","options","mode","optionalFieldsToRequire","hireDate","minEffectiveDate","withEffectiveDateField","buildFormSchema"],"mappings":";;;;;AA4CO,MAAMA,IAAyB;AAAA,EACpC,UAAU;AAAA,EACV,cAAc;AAAA,EACd,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,yBAAyB;AAAA,EACzB,sBAAsB;AAAA,EACtB,4BAA4B;AAAA,EAC5B,2BAA2B;AAC7B,GAUMC,IAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAStB,OAAOC,EAAE,OAAA;AAAA;AAAA;AAAA;AAAA,EAIT,YAAYA,EACT,KAAK;AAAA,IACJC,EAAW;AAAA,IACX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AAMR,EAAE,aAAa;AAAA,QACrB,MAAM,CAAC,eAAe;AAAA,QACtB,SAASF,EAAuB;AAAA,MAAA,CACjC;AAAA,IAEL;AAAA,EAAA,CACD;AACH;"}
1
+ {"version":3,"file":"compensationSchema.js","sources":["../../../../../../src/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n type OptionalFieldsToRequire,\n} from '@/partner-hook-utils/form/buildFormSchema'\nimport { coerceNaN, coerceToISODate } from '@/partner-hook-utils/form/preprocessors'\nimport { FLSA_OVERTIME_SALARY_LIMIT, FlsaStatus, PAY_PERIODS } from '@/shared/constants'\nimport { yearlyRate } from '@/helpers/payRateCalculator'\n\n/**\n * Validation error codes produced by the {@link useCompensationForm} schema.\n *\n * @remarks\n * Use these constants as the keys in a field's `validationMessages` prop to\n * map an error code to a user-facing message.\n *\n * | Code | When it triggers |\n * | ---- | ---------------- |\n * | `REQUIRED` | A required field is empty (per mode and `optionalFieldsToRequire`). |\n * | `RATE_MINIMUM` | `rate` is less than `$1.00` for non-commission FLSA statuses. |\n * | `RATE_EXEMPT_THRESHOLD` | FLSA `Exempt` employees must clear the federal salary threshold (annualized). |\n * | `PAYMENT_UNIT_OWNER` | `Owner` FLSA status requires `paymentUnit === 'Paycheck'`. |\n * | `PAYMENT_UNIT_COMMISSION` | Commission-only FLSA statuses require `paymentUnit === 'Year'`. |\n * | `RATE_COMMISSION_ZERO` | Commission-only FLSA statuses require `rate === 0`. |\n * | `EFFECTIVE_DATE_BEFORE_HIRE` | `effectiveDate` precedes the parent job's `hireDate`. |\n * | `EFFECTIVE_DATE_BEFORE_MIN` | `effectiveDate` precedes the caller-supplied minimum (typically tomorrow). |\n *\n * @public\n *\n * @example\n * ```tsx\n * import { CompensationErrorCodes } from '@gusto/embedded-react-sdk'\n *\n * <Fields.Rate\n * label=\"Compensation amount\"\n * validationMessages={{\n * [CompensationErrorCodes.REQUIRED]: 'Amount is required',\n * [CompensationErrorCodes.RATE_MINIMUM]: 'Amount must be at least $1.00',\n * [CompensationErrorCodes.RATE_EXEMPT_THRESHOLD]: 'Exempt employees must meet the salary threshold',\n * }}\n * />\n * ```\n */\nexport const CompensationErrorCodes = {\n REQUIRED: 'REQUIRED',\n RATE_MINIMUM: 'RATE_MINIMUM',\n RATE_EXEMPT_THRESHOLD: 'RATE_EXEMPT_THRESHOLD',\n PAYMENT_UNIT_OWNER: 'PAYMENT_UNIT_OWNER',\n PAYMENT_UNIT_COMMISSION: 'PAYMENT_UNIT_COMMISSION',\n RATE_COMMISSION_ZERO: 'RATE_COMMISSION_ZERO',\n EFFECTIVE_DATE_BEFORE_HIRE: 'EFFECTIVE_DATE_BEFORE_HIRE',\n EFFECTIVE_DATE_BEFORE_MIN: 'EFFECTIVE_DATE_BEFORE_MIN',\n} as const\n\n/**\n * Union of every error code produced by the {@link useCompensationForm} schema.\n *\n * @public\n */\nexport type CompensationErrorCode =\n (typeof CompensationErrorCodes)[keyof typeof CompensationErrorCodes]\n\nconst fieldValidators = {\n /**\n * Optional in both modes. Setting title here scopes the change to this\n * compensation's `effectiveDate` — pair it with a future-dated comp to\n * schedule a promotion title alongside a rate change. Use\n * `useJobForm.Fields.Title` instead when creating a job (title is required\n * by the API on job creation) or when renaming the active role\n * immediately, and avoid rendering both fields on the same screen.\n */\n title: z.string(),\n // `flsaStatus` is `.optional()` so the field can render an empty placeholder\n // until the user (or partner default) picks one. Requiredness is still\n // enforced via `requiredFieldsConfig` on submit in `create` mode.\n flsaStatus: z\n .enum([\n FlsaStatus.EXEMPT,\n FlsaStatus.SALARIED_NONEXEMPT,\n FlsaStatus.NONEXEMPT,\n FlsaStatus.OWNER,\n FlsaStatus.COMMISSION_ONLY_EXEMPT,\n FlsaStatus.COMMISSION_ONLY_NONEXEMPT,\n ])\n .optional(),\n paymentUnit: z.enum([\n PAY_PERIODS.HOUR,\n PAY_PERIODS.WEEK,\n PAY_PERIODS.MONTH,\n PAY_PERIODS.YEAR,\n PAY_PERIODS.PAYCHECK,\n ]),\n rate: z.preprocess(coerceNaN(0), z.number()),\n /**\n * The effective date a new compensation should take effect on.\n *\n * - **create mode (`compensationId` absent)**: required; partners typically default\n * to the parent job's `hireDate` (onboarding stub-fill) or a future date\n * (rate change). Must be on or after `hireDate`. Server-side this maps to\n * POST /v1/jobs/:jobId/compensations.\n * - **update mode (`compensationId` present)**: optional; if omitted the API\n * keeps the existing effective date. The `hireDate` lower bound is **not**\n * enforced — loaded values may legitimately predate the hire date. Maps to\n * PUT /v1/compensations/:id.\n */\n effectiveDate: z.preprocess(coerceToISODate, z.iso.date().nullable()),\n adjustForMinimumWage: z.boolean(),\n minimumWageId: z.string(),\n}\n\n/**\n * Shape of the form values managed by {@link useCompensationForm}.\n *\n * @remarks\n * Accepted as `defaultValues` on `useCompensationForm` and returned by\n * `form.getFormSubmissionValues()` once the form has validated. `effectiveDate`\n * is an ISO date string (`YYYY-MM-DD`) or `null`; `flsaStatus` is optional so\n * the field can render an empty placeholder when nothing is preselected\n * (requiredness is enforced on submit per mode).\n *\n * @public\n * @interface\n */\nexport type CompensationFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\nconst requiredFieldsConfig = {\n title: 'never',\n flsaStatus: 'create',\n paymentUnit: 'create',\n rate: 'create',\n effectiveDate: 'create',\n minimumWageId: data => data.adjustForMinimumWage,\n} satisfies RequiredFieldConfig<typeof fieldValidators>\n\nfunction validateFlsaRules(data: CompensationFormData, ctx: z.RefinementCtx) {\n const { flsaStatus, paymentUnit, rate } = data\n\n if (\n flsaStatus === FlsaStatus.EXEMPT ||\n flsaStatus === FlsaStatus.SALARIED_NONEXEMPT ||\n flsaStatus === FlsaStatus.NONEXEMPT\n ) {\n // Surface the EXEMPT salary-threshold issue *before* the generic minimum,\n // so a partner setting rate=0 with EXEMPT sees the more actionable\n // \"must meet salary threshold\" message rather than the generic\n // \"amount must be at least $1.00\".\n if (\n flsaStatus === FlsaStatus.EXEMPT &&\n yearlyRate(rate, paymentUnit) < FLSA_OVERTIME_SALARY_LIMIT\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_EXEMPT_THRESHOLD,\n })\n } else if (rate < 1) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_MINIMUM,\n })\n }\n } else if (flsaStatus === FlsaStatus.OWNER) {\n if (paymentUnit !== PAY_PERIODS.PAYCHECK) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['paymentUnit'],\n message: CompensationErrorCodes.PAYMENT_UNIT_OWNER,\n })\n }\n if (rate < 1) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_MINIMUM,\n })\n }\n } else if (\n flsaStatus === FlsaStatus.COMMISSION_ONLY_EXEMPT ||\n flsaStatus === FlsaStatus.COMMISSION_ONLY_NONEXEMPT\n ) {\n if (paymentUnit !== PAY_PERIODS.YEAR) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['paymentUnit'],\n message: CompensationErrorCodes.PAYMENT_UNIT_COMMISSION,\n })\n }\n if (rate !== 0) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_COMMISSION_ZERO,\n })\n }\n }\n}\n\n/**\n * Override which fields are required on a given submission mode of {@link useCompensationForm}.\n *\n * @remarks\n * Each mode key lists the fields that are optional by default for that mode\n * but should be promoted to required. `adjustForMinimumWage` is always\n * required and `minimumWageId` is automatically required when\n * `adjustForMinimumWage` is `true` — neither is configurable here.\n *\n * | Field | Required on create | Required on update | Configurable? |\n * | ----- | ------------------ | ------------------ | ------------- |\n * | `flsaStatus` | Yes | No | Yes (on update) |\n * | `paymentUnit` | Yes | No | Yes (on update) |\n * | `rate` | Yes | No | Yes (on update) |\n * | `effectiveDate` | Yes | No | Yes (on update) |\n * | `title` | No | No | Yes (either mode) |\n * | `adjustForMinimumWage` | Yes | Yes | No |\n * | `minimumWageId` | When toggle is on | When toggle is on | No |\n *\n * @public\n *\n * @example\n * ```tsx\n * const compensation = useCompensationForm({\n * employeeId,\n * jobId,\n * compensationId,\n * optionalFieldsToRequire: {\n * update: ['title', 'rate'],\n * },\n * })\n * ```\n */\nexport type CompensationOptionalFieldsToRequire = OptionalFieldsToRequire<\n typeof requiredFieldsConfig\n>\n\n/** @internal */\nexport type CompensationFormOutputs = CompensationFormData\n\n/** @internal */\nexport interface CompensationSchemaOptions {\n /** Selects required-field rules: `'create'` (POST) or `'update'` (PUT). Defaults to `'create'`. */\n mode?: 'create' | 'update'\n /** Promote default-optional fields to required for the selected mode. See {@link CompensationOptionalFieldsToRequire}. */\n optionalFieldsToRequire?: CompensationOptionalFieldsToRequire\n /**\n * Lower bound for `effectiveDate` (typically the parent job's `hireDate`).\n * Only enforced in `create` mode — on `update` the loaded effective date\n * may legitimately predate the hire date and is left as-is. Surfaces an\n * `EFFECTIVE_DATE_BEFORE_HIRE` issue when violated.\n */\n hireDate?: string | null\n /**\n * Absolute lower bound for `effectiveDate`, enforced in both create and\n * update modes whenever provided. Typically `addDays(today, 1)` (tomorrow)\n * for management screens where effective dates must be in the future, or\n * `max(tomorrow, hireDate)` for secondary new jobs. Surfaces an\n * `EFFECTIVE_DATE_BEFORE_MIN` issue when violated.\n *\n * **Callers must only pass this when the carve-out cannot fire.** The\n * carve-out (`willDeleteSecondaryJobs` in update mode) forces `effectiveDate`\n * to today on a disabled field — passing `minEffectiveDate` for a primary\n * job in update mode would cause a spurious validation failure on submit.\n * Secondary jobs are safe because their FLSA field is hidden, preventing the\n * carve-out from activating.\n */\n minEffectiveDate?: string | null\n /**\n * When `false`, drops `effectiveDate` from the validated shape — the field\n * becomes hook-managed (e.g. seeded from the parent job's `hireDate` during\n * onboarding). Partners may still supply the value at submit time via\n * `CompensationSubmitOptions.effectiveDate`. Defaults to `true`.\n */\n withEffectiveDateField?: boolean\n}\n\n/** @internal */\nexport function createCompensationSchema(options: CompensationSchemaOptions = {}) {\n const {\n mode = 'create',\n optionalFieldsToRequire,\n hireDate,\n minEffectiveDate,\n withEffectiveDateField = true,\n } = options\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: CompensationErrorCodes.REQUIRED,\n mode,\n optionalFieldsToRequire,\n excludeFields: withEffectiveDateField ? [] : ['effectiveDate'],\n superRefine: (data, ctx) => {\n validateFlsaRules(data, ctx)\n // Enforce the hire-date lower bound in create mode always, and in\n // update mode when `minEffectiveDate` is also set (management screens\n // where the user is actively picking a new date). On plain update\n // without `minEffectiveDate`, the loaded effectiveDate can legitimately\n // predate the hire date (stub or out-of-order data) and the API\n // accepts the unchanged value — blocking the submit would trap\n // partners whose flow doesn't render Fields.EffectiveDate.\n // When `withEffectiveDateField` is false the field is excluded from\n // the shape and `data.effectiveDate` is undefined — this check\n // naturally short-circuits.\n if (\n hireDate &&\n data.effectiveDate &&\n data.effectiveDate < hireDate &&\n (mode === 'create' || minEffectiveDate)\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['effectiveDate'],\n message: CompensationErrorCodes.EFFECTIVE_DATE_BEFORE_HIRE,\n })\n }\n // Enforce the caller-supplied minimum effective date in both modes.\n // Callers must only pass this when the carve-out cannot fire (see\n // CompensationSchemaOptions.minEffectiveDate for details).\n if (minEffectiveDate && data.effectiveDate && data.effectiveDate < minEffectiveDate) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['effectiveDate'],\n message: CompensationErrorCodes.EFFECTIVE_DATE_BEFORE_MIN,\n })\n }\n },\n })\n}\n"],"names":["CompensationErrorCodes","fieldValidators","z","FlsaStatus","PAY_PERIODS","coerceNaN","coerceToISODate","requiredFieldsConfig","data","validateFlsaRules","ctx","flsaStatus","paymentUnit","rate","yearlyRate","FLSA_OVERTIME_SALARY_LIMIT","createCompensationSchema","options","mode","opt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,IAC1C,MAAAkB;AAAA,IACA,yBAAAC;AAAA,IACA,eAAeG,IAAyB,KAAK,CAAC,eAAe;AAAA,IAC7D,aAAa,CAACd,GAAME,MAAQ;AAC1B,MAAAD,EAAkBD,GAAME,CAAG,GAYzBU,KACAZ,EAAK,iBACLA,EAAK,gBAAgBY,MACpBF,MAAS,YAAYG,MAEtBX,EAAI,SAAS;AAAA,QACX,MAAMR,EAAE,aAAa;AAAA,QACrB,MAAM,CAAC,eAAe;AAAA,QACtB,SAASF,EAAuB;AAAA,MAAA,CACjC,GAKCqB,KAAoBb,EAAK,iBAAiBA,EAAK,gBAAgBa,KACjEX,EAAI,SAAS;AAAA,QACX,MAAMR,EAAE,aAAa;AAAA,QACrB,MAAM,CAAC,eAAe;AAAA,QACtB,SAASF,EAAuB;AAAA,MAAA,CACjC;AAAA,IAEL;AAAA,EAAA,CACD;AACH;"}
@@ -1,6 +1,6 @@
1
- import { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage';
2
- import { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype';
3
- import { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation';
1
+ import { MinimumWage } from '@gusto/embedded-api-v-2026-02-01/models/components/minimumwage';
2
+ import { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype';
3
+ import { PaymentUnit } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation';
4
4
  import { CompensationErrorCodes } from './compensationSchema';
5
5
  import { TextInputHookFieldProps } from '../../../../../partner-hook-utils/form/fields/TextInputHookField';
6
6
  import { SelectHookFieldProps } from '../../../../../partner-hook-utils/form/fields/SelectHookField';
@@ -44,21 +44,7 @@ export type EffectiveDateValidation = (typeof CompensationErrorCodes)['REQUIRED'
44
44
  * @public
45
45
  */
46
46
  export type TitleFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>;
47
- /**
48
- * Text input bound to the `title` field of {@link useCompensationForm}.
49
- *
50
- * @remarks
51
- * Available on the hook result as `form.Fields.Title`. Optional in both
52
- * create and update modes — use this when a title change should take effect
53
- * on this compensation's `effectiveDate` (for example, a future-dated
54
- * promotion that bundles a new title with a raise). Otherwise bind the title
55
- * via `useJobForm.Fields.Title` instead and avoid rendering both on the same
56
- * screen.
57
- *
58
- * @param props - {@link TitleFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
59
- * @returns The rendered text input bound to `title`.
60
- * @public
61
- */
47
+ /** @internal */
62
48
  export declare function TitleField(props: TitleFieldProps): import("react").JSX.Element;
63
49
  /**
64
50
  * Props accepted by {@link useCompensationForm}'s `Fields.FlsaStatus` component.
@@ -66,21 +52,7 @@ export declare function TitleField(props: TitleFieldProps): import("react").JSX.
66
52
  * @public
67
53
  */
68
54
  export type FlsaStatusFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, FlsaStatusType>>;
69
- /**
70
- * Select bound to the `flsaStatus` field of {@link useCompensationForm}.
71
- *
72
- * @remarks
73
- * Available on the hook result as `form.Fields.FlsaStatus` when the FLSA
74
- * status is editable. The field is `undefined` when the user has no
75
- * meaningful choice — for example, on a secondary job whose status must
76
- * match the primary's. Always null-check before rendering. Options:
77
- * `Exempt`, `Salaried Nonexempt`, `Nonexempt`, `Owner`,
78
- * `Commission Only Exempt`, `Commission Only Nonexempt`.
79
- *
80
- * @param props - {@link FlsaStatusFieldProps} — accepts the standard hook field props plus `getOptionLabel` for FLSA status display.
81
- * @returns The rendered select bound to `flsaStatus`.
82
- * @public
83
- */
55
+ /** @internal */
84
56
  export declare function FlsaStatusField(props: FlsaStatusFieldProps): import("react").JSX.Element;
85
57
  /**
86
58
  * Props accepted by {@link useCompensationForm}'s `Fields.Rate` component.
@@ -88,21 +60,7 @@ export declare function FlsaStatusField(props: FlsaStatusFieldProps): import("re
88
60
  * @public
89
61
  */
90
62
  export type RateFieldProps = HookFieldProps<NumberInputHookFieldProps<RateValidation>>;
91
- /**
92
- * Currency-formatted number input bound to the `rate` field of {@link useCompensationForm}.
93
- *
94
- * @remarks
95
- * Available on the hook result as `form.Fields.Rate` when the rate is
96
- * partner-editable. The field is `undefined` for commission-only FLSA
97
- * statuses (`Commission Only Exempt`, `Commission Only Nonexempt`) — those
98
- * statuses don't accept a partner-supplied rate, so the hook removes the
99
- * field and forces `rate=0` on the form values. Always null-check before
100
- * rendering.
101
- *
102
- * @param props - {@link RateFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
103
- * @returns The rendered currency-formatted number input bound to `rate`.
104
- * @public
105
- */
63
+ /** @internal */
106
64
  export declare function RateField(props: RateFieldProps): import("react").JSX.Element;
107
65
  /**
108
66
  * Props accepted by {@link useCompensationForm}'s `Fields.PaymentUnit` component.
@@ -110,21 +68,7 @@ export declare function RateField(props: RateFieldProps): import("react").JSX.El
110
68
  * @public
111
69
  */
112
70
  export type PaymentUnitFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, PaymentUnit>>;
113
- /**
114
- * Select bound to the `paymentUnit` field of {@link useCompensationForm}.
115
- *
116
- * @remarks
117
- * Available on the hook result as `form.Fields.PaymentUnit` when the
118
- * payment unit is partner-editable. The field is `undefined` for
119
- * commission-only FLSA statuses (the hook forces `paymentUnit=Year`),
120
- * and automatically rendered disabled when `flsaStatus === Owner`
121
- * (locked to `Paycheck`). Options: `Hour`, `Week`, `Month`, `Year`,
122
- * `Paycheck`.
123
- *
124
- * @param props - {@link PaymentUnitFieldProps} — accepts the standard hook field props plus `getOptionLabel` for payment-unit display.
125
- * @returns The rendered select bound to `paymentUnit`.
126
- * @public
127
- */
71
+ /** @internal */
128
72
  export declare function PaymentUnitField(props: PaymentUnitFieldProps): import("react").JSX.Element;
129
73
  /**
130
74
  * Props accepted by {@link useCompensationForm}'s `Fields.AdjustForMinimumWage` component.
@@ -132,19 +76,7 @@ export declare function PaymentUnitField(props: PaymentUnitFieldProps): import("
132
76
  * @public
133
77
  */
134
78
  export type AdjustForMinimumWageFieldProps = HookFieldProps<CheckboxHookFieldProps>;
135
- /**
136
- * Checkbox bound to the `adjustForMinimumWage` field of {@link useCompensationForm}.
137
- *
138
- * @remarks
139
- * Available on the hook result as `form.Fields.AdjustForMinimumWage` when
140
- * minimum-wage adjustment applies — `Nonexempt` FLSA status, minimum wages
141
- * are available at the employee's work location, and the work state
142
- * supports tip credits. Always null-check before rendering.
143
- *
144
- * @param props - {@link AdjustForMinimumWageFieldProps} — accepts the standard hook field props (label, description, FieldComponent override).
145
- * @returns The rendered checkbox bound to `adjustForMinimumWage`.
146
- * @public
147
- */
79
+ /** @internal */
148
80
  export declare function AdjustForMinimumWageField(props: AdjustForMinimumWageFieldProps): import("react").JSX.Element;
149
81
  /**
150
82
  * Props accepted by {@link useCompensationForm}'s `Fields.MinimumWageId` component.
@@ -152,19 +84,7 @@ export declare function AdjustForMinimumWageField(props: AdjustForMinimumWageFie
152
84
  * @public
153
85
  */
154
86
  export type MinimumWageIdFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, MinimumWage>>;
155
- /**
156
- * Select bound to the `minimumWageId` field of {@link useCompensationForm}.
157
- *
158
- * @remarks
159
- * Available on the hook result as `form.Fields.MinimumWageId` when
160
- * `Fields.AdjustForMinimumWage` is rendered and the user has checked it.
161
- * Options are dynamically populated from the minimum wages available at the
162
- * employee's work location.
163
- *
164
- * @param props - {@link MinimumWageIdFieldProps} — accepts the standard hook field props plus `getOptionLabel` for minimum-wage display.
165
- * @returns The rendered select bound to `minimumWageId`.
166
- * @public
167
- */
87
+ /** @internal */
168
88
  export declare function MinimumWageIdField(props: MinimumWageIdFieldProps): import("react").JSX.Element;
169
89
  /**
170
90
  * Props accepted by {@link useCompensationForm}'s `Fields.EffectiveDate` component.
@@ -172,24 +92,5 @@ export declare function MinimumWageIdField(props: MinimumWageIdFieldProps): impo
172
92
  * @public
173
93
  */
174
94
  export type EffectiveDateFieldProps = HookFieldProps<DatePickerHookFieldProps<EffectiveDateValidation>>;
175
- /**
176
- * Date picker bound to the `effectiveDate` field of {@link useCompensationForm}.
177
- *
178
- * @remarks
179
- * Available on the hook result as `form.Fields.EffectiveDate` when
180
- * `withEffectiveDateField` is `true` (the default). Required on create;
181
- * optional on update unless `optionalFieldsToRequire.update` includes
182
- * `'effectiveDate'`. The picker's min/max bounds are exposed on
183
- * `data.minimumEffectiveDate` / `data.maximumEffectiveDate`. The field is
184
- * automatically disabled (and the form value forced to today) while
185
- * `status.willDeleteSecondaryJobs` is `true` in update mode.
186
- *
187
- * When `withEffectiveDateField: false`, the field is `undefined` — supply
188
- * the value at submit time via `CompensationSubmitOptions.effectiveDate`
189
- * instead.
190
- *
191
- * @param props - {@link EffectiveDateFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
192
- * @returns The rendered date picker bound to `effectiveDate`.
193
- * @public
194
- */
95
+ /** @internal */
195
96
  export declare function EffectiveDateField(props: EffectiveDateFieldProps): import("react").JSX.Element;