@gusto/embedded-react-sdk 0.48.1 → 0.48.3

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 (810) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/components/Common/DocumentList/DocumentList.js +12 -12
  3. package/dist/components/Common/DocumentList/DocumentList.js.map +1 -1
  4. package/dist/components/Common/DocumentList/DocumentList.module.scss.js +3 -5
  5. package/dist/components/Common/DocumentList/DocumentList.module.scss.js.map +1 -1
  6. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayoutTypes.d.ts +1 -0
  7. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +7 -3
  8. package/dist/components/Common/PayrollLoading/PayrollLoadingTypes.d.ts +1 -0
  9. package/dist/components/Common/UI/Alert/AlertTypes.d.ts +1 -0
  10. package/dist/components/Common/UI/Alert/AlertTypes.js.map +1 -1
  11. package/dist/components/Common/UI/Badge/BadgeTypes.d.ts +1 -0
  12. package/dist/components/Common/UI/Badge/BadgeTypes.js.map +1 -1
  13. package/dist/components/Common/UI/Banner/BannerTypes.d.ts +1 -0
  14. package/dist/components/Common/UI/Banner/BannerTypes.js.map +1 -1
  15. package/dist/components/Common/UI/Box/BoxTypes.d.ts +1 -0
  16. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +1 -0
  17. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -1
  18. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +2 -0
  19. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -1
  20. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -2
  21. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  22. package/dist/components/Common/UI/CalendarPreview/CalendarPreviewTypes.d.ts +3 -2
  23. package/dist/components/Common/UI/Card/CardTypes.d.ts +1 -0
  24. package/dist/components/Common/UI/Checkbox/CheckboxTypes.d.ts +1 -0
  25. package/dist/components/Common/UI/Checkbox/CheckboxTypes.js.map +1 -1
  26. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.d.ts +2 -0
  27. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.js.map +1 -1
  28. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +2 -0
  29. package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +1 -0
  30. package/dist/components/Common/UI/DateRangePicker/DateRangePickerTypes.d.ts +2 -0
  31. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +2 -0
  32. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
  33. package/dist/components/Common/UI/Dialog/DialogTypes.d.ts +1 -0
  34. package/dist/components/Common/UI/Dialog/DialogTypes.js.map +1 -1
  35. package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +1 -0
  36. package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -1
  37. package/dist/components/Common/UI/Heading/HeadingTypes.d.ts +1 -0
  38. package/dist/components/Common/UI/Link/LinkTypes.d.ts +4 -3
  39. package/dist/components/Common/UI/List/ListTypes.d.ts +13 -4
  40. package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.d.ts +1 -0
  41. package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.js.map +1 -1
  42. package/dist/components/Common/UI/Menu/MenuTypes.d.ts +2 -0
  43. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  44. package/dist/components/Common/UI/Modal/ModalTypes.d.ts +1 -0
  45. package/dist/components/Common/UI/Modal/ModalTypes.js.map +1 -1
  46. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes.d.ts +2 -0
  47. package/dist/components/Common/UI/NumberInput/NumberInputTypes.d.ts +1 -0
  48. package/dist/components/Common/UI/ProgressBar/ProgressBarTypes.d.ts +1 -0
  49. package/dist/components/Common/UI/Radio/RadioTypes.d.ts +1 -0
  50. package/dist/components/Common/UI/Radio/RadioTypes.js.map +1 -1
  51. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +2 -0
  52. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  53. package/dist/components/Common/UI/Select/SelectTypes.d.ts +2 -0
  54. package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +1 -0
  55. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  56. package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -0
  57. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  58. package/dist/components/Common/UI/Tabs/TabsTypes.d.ts +2 -0
  59. package/dist/components/Common/UI/Text/TextTypes.d.ts +1 -0
  60. package/dist/components/Common/UI/Text/TextTypes.js.map +1 -1
  61. package/dist/components/Common/UI/TextArea/TextAreaTypes.d.ts +1 -0
  62. package/dist/components/Common/UI/TextArea/TextAreaTypes.js.map +1 -1
  63. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -0
  64. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  65. package/dist/components/Company/AssignSignatory/AssignSignatory.d.ts +33 -2
  66. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  67. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.d.ts +1 -0
  68. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  69. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.d.ts +1 -0
  70. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  71. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.d.ts +23 -2
  72. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  73. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.d.ts +2 -0
  74. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -13
  75. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  76. package/dist/components/Company/AssignSignatory/CreateSignatory/Schema.d.ts +1 -0
  77. package/dist/components/Company/AssignSignatory/CreateSignatory/Schema.js.map +1 -1
  78. package/dist/components/Company/AssignSignatory/CreateSignatory/index.d.ts +2 -2
  79. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.d.ts +10 -1
  80. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +17 -3
  81. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  82. package/dist/components/Company/AssignSignatory/Head.d.ts +1 -0
  83. package/dist/components/Company/AssignSignatory/Head.js.map +1 -1
  84. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.d.ts +1 -0
  85. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  86. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.d.ts +24 -2
  87. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  88. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.d.ts +3 -0
  89. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  90. package/dist/components/Company/AssignSignatory/InviteSignatory/index.d.ts +2 -2
  91. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.d.ts +6 -0
  92. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +17 -3
  93. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  94. package/dist/components/Company/AssignSignatory/SignatoryForm.d.ts +1 -0
  95. package/dist/components/Company/AssignSignatory/SignatoryForm.js.map +1 -1
  96. package/dist/components/Company/AssignSignatory/TitleSelect.d.ts +1 -1
  97. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  98. package/dist/components/Company/AssignSignatory/index.d.ts +2 -5
  99. package/dist/components/Company/AssignSignatory/useAssignSignatory.d.ts +9 -0
  100. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +19 -5
  101. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  102. package/dist/components/Company/BankAccount/BankAccount.d.ts +26 -0
  103. package/dist/components/Company/BankAccount/BankAccount.js +7 -6
  104. package/dist/components/Company/BankAccount/BankAccount.js.map +1 -1
  105. package/dist/components/Company/BankAccount/BankAccountComponents.d.ts +8 -0
  106. package/dist/components/Company/BankAccount/BankAccountComponents.js.map +1 -1
  107. package/dist/components/Company/BankAccount/BankAccountForm/Actions.d.ts +1 -0
  108. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  109. package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.d.ts +1 -0
  110. package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js.map +1 -1
  111. package/dist/components/Company/BankAccount/BankAccountForm/Form.d.ts +3 -0
  112. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  113. package/dist/components/Company/BankAccount/BankAccountForm/Head.d.ts +1 -0
  114. package/dist/components/Company/BankAccount/BankAccountForm/Head.js.map +1 -1
  115. package/dist/components/Company/BankAccount/BankAccountForm/context.js +17 -3
  116. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  117. package/dist/components/Company/BankAccount/BankAccountList/AccountView.d.ts +1 -0
  118. package/dist/components/Company/BankAccount/BankAccountList/AccountView.js.map +1 -1
  119. package/dist/components/Company/BankAccount/BankAccountList/Actions.d.ts +1 -0
  120. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  121. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.d.ts +1 -0
  122. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js.map +1 -1
  123. package/dist/components/Company/BankAccount/BankAccountList/Head.d.ts +1 -0
  124. package/dist/components/Company/BankAccount/BankAccountList/Head.js.map +1 -1
  125. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.d.ts +1 -0
  126. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  127. package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.d.ts +1 -0
  128. package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js.map +1 -1
  129. package/dist/components/Company/BankAccount/BankAccountVerify/Form.d.ts +3 -0
  130. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  131. package/dist/components/Company/BankAccount/BankAccountVerify/Head.d.ts +1 -0
  132. package/dist/components/Company/BankAccount/BankAccountVerify/Head.js.map +1 -1
  133. package/dist/components/Company/BankAccount/stateMachine.d.ts +1 -0
  134. package/dist/components/Company/BankAccount/stateMachine.js.map +1 -1
  135. package/dist/components/Company/DocumentSigner/DocumentList/Actions.d.ts +1 -0
  136. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  137. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.d.ts +21 -0
  138. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  139. package/dist/components/Company/DocumentSigner/DocumentList/Head.d.ts +1 -0
  140. package/dist/components/Company/DocumentSigner/DocumentList/Head.js.map +1 -1
  141. package/dist/components/Company/DocumentSigner/DocumentList/List.d.ts +1 -0
  142. package/dist/components/Company/DocumentSigner/DocumentList/List.js.map +1 -1
  143. package/dist/components/Company/DocumentSigner/DocumentList/ManageSignatories.d.ts +1 -0
  144. package/dist/components/Company/DocumentSigner/DocumentList/ManageSignatories.js.map +1 -1
  145. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +17 -3
  146. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  147. package/dist/components/Company/DocumentSigner/DocumentSigner.d.ts +37 -0
  148. package/dist/components/Company/DocumentSigner/DocumentSigner.js +3 -2
  149. package/dist/components/Company/DocumentSigner/DocumentSigner.js.map +1 -1
  150. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.d.ts +31 -2
  151. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  152. package/dist/components/Company/DocumentSigner/assignSignatoryState.d.ts +1 -0
  153. package/dist/components/Company/DocumentSigner/assignSignatoryState.js.map +1 -1
  154. package/dist/components/Company/DocumentSigner/documentSignerStateMachine.d.ts +4 -0
  155. package/dist/components/Company/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  156. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.d.ts +41 -0
  157. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js.map +1 -1
  158. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.d.ts +40 -10
  159. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.js.map +1 -1
  160. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.d.ts +111 -0
  161. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  162. package/dist/components/Company/DocumentSigner/stateMachine.d.ts +1 -0
  163. package/dist/components/Company/DocumentSigner/stateMachine.js.map +1 -1
  164. package/dist/components/Company/DocumentSigner/useDocumentSigner.d.ts +1 -0
  165. package/dist/components/Company/FederalTaxes/Actions.d.ts +1 -0
  166. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  167. package/dist/components/Company/FederalTaxes/FederalTaxes.d.ts +13 -0
  168. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  169. package/dist/components/Company/FederalTaxes/Form.d.ts +1 -0
  170. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  171. package/dist/components/Company/FederalTaxes/Head.d.ts +1 -0
  172. package/dist/components/Company/FederalTaxes/Head.js.map +1 -1
  173. package/dist/components/Company/FederalTaxes/useFederalTaxes.d.ts +3 -0
  174. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +26 -12
  175. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  176. package/dist/components/Company/Industry/Actions.d.ts +1 -0
  177. package/dist/components/Company/Industry/Actions.js.map +1 -1
  178. package/dist/components/Company/Industry/Context.js +20 -6
  179. package/dist/components/Company/Industry/Context.js.map +1 -1
  180. package/dist/components/Company/Industry/Edit.d.ts +3 -0
  181. package/dist/components/Company/Industry/Edit.js.map +1 -1
  182. package/dist/components/Company/Industry/Head.d.ts +1 -0
  183. package/dist/components/Company/Industry/Head.js.map +1 -1
  184. package/dist/components/Company/Industry/Industry.d.ts +21 -0
  185. package/dist/components/Company/Industry/Industry.js.map +1 -1
  186. package/dist/components/Company/Industry/IndustrySelect.d.ts +1 -0
  187. package/dist/components/Company/Industry/IndustrySelect.js.map +1 -1
  188. package/dist/components/Company/Industry/index.d.ts +1 -1
  189. package/dist/components/Company/Locations/LocationForm/Actions.d.ts +1 -0
  190. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  191. package/dist/components/Company/Locations/LocationForm/Form.d.ts +3 -0
  192. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  193. package/dist/components/Company/Locations/LocationForm/Head.d.ts +1 -0
  194. package/dist/components/Company/Locations/LocationForm/Head.js.map +1 -1
  195. package/dist/components/Company/Locations/LocationForm/LocationForm.d.ts +16 -0
  196. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  197. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +17 -3
  198. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  199. package/dist/components/Company/Locations/Locations.d.ts +26 -0
  200. package/dist/components/Company/Locations/Locations.js.map +1 -1
  201. package/dist/components/Company/Locations/LocationsList/Actions.d.ts +1 -0
  202. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  203. package/dist/components/Company/Locations/LocationsList/Head.d.ts +1 -0
  204. package/dist/components/Company/Locations/LocationsList/Head.js.map +1 -1
  205. package/dist/components/Company/Locations/LocationsList/List.d.ts +1 -1
  206. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  207. package/dist/components/Company/Locations/LocationsList/LocationsList.d.ts +23 -2
  208. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  209. package/dist/components/Company/Locations/LocationsList/index.d.ts +1 -1
  210. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +17 -3
  211. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  212. package/dist/components/Company/Locations/locationsStateMachine.d.ts +4 -0
  213. package/dist/components/Company/Locations/locationsStateMachine.js.map +1 -1
  214. package/dist/components/Company/Locations/stateMachine.d.ts +1 -1
  215. package/dist/components/Company/Locations/stateMachine.js +0 -1
  216. package/dist/components/Company/Locations/stateMachine.js.map +1 -1
  217. package/dist/components/Company/OnboardingFlow/OnboardingFlow.d.ts +25 -0
  218. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
  219. package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.d.ts +19 -1
  220. package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  221. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.d.ts +1 -0
  222. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  223. package/dist/components/Company/OnboardingOverview/Completed.d.ts +1 -0
  224. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  225. package/dist/components/Company/OnboardingOverview/MissingRequirements.d.ts +1 -0
  226. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  227. package/dist/components/Company/OnboardingOverview/OnboardingOverview.d.ts +18 -0
  228. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  229. package/dist/components/Company/OnboardingOverview/context.js +18 -4
  230. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  231. package/dist/components/Company/PaySchedule/PaySchedule.d.ts +36 -3
  232. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  233. package/dist/components/Company/PaySchedule/PayScheduleComponents.d.ts +3 -0
  234. package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
  235. package/dist/components/Company/PaySchedule/PayScheduleForm.d.ts +1 -0
  236. package/dist/components/Company/PaySchedule/PayScheduleForm.js +3 -2
  237. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  238. package/dist/components/Company/PaySchedule/PayScheduleList.d.ts +1 -0
  239. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
  240. package/dist/components/Company/PaySchedule/payScheduleStateMachine.d.ts +1 -0
  241. package/dist/components/Company/PaySchedule/payScheduleStateMachine.js.map +1 -1
  242. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +136 -0
  243. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
  244. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +2 -1
  245. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +48 -26
  246. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
  247. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +134 -0
  248. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  249. package/dist/components/Company/StateTaxes/StateTaxes.d.ts +25 -0
  250. package/dist/components/Company/StateTaxes/StateTaxes.js.map +1 -1
  251. package/dist/components/Company/StateTaxes/StateTaxesComponents.d.ts +6 -0
  252. package/dist/components/Company/StateTaxes/StateTaxesComponents.js.map +1 -1
  253. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.d.ts +1 -0
  254. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  255. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.d.ts +1 -3
  256. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +16 -18
  257. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  258. package/dist/components/Company/StateTaxes/StateTaxesForm/Head.d.ts +1 -0
  259. package/dist/components/Company/StateTaxes/StateTaxesForm/Head.js.map +1 -1
  260. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.d.ts +31 -0
  261. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  262. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +17 -3
  263. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  264. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.d.ts +2 -0
  265. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js.map +1 -1
  266. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.d.ts +1 -0
  267. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  268. package/dist/components/Company/StateTaxes/StateTaxesList/Head.d.ts +1 -0
  269. package/dist/components/Company/StateTaxes/StateTaxesList/Head.js.map +1 -1
  270. package/dist/components/Company/StateTaxes/StateTaxesList/List.d.ts +1 -0
  271. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  272. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.d.ts +16 -0
  273. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  274. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +17 -3
  275. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  276. package/dist/components/Company/StateTaxes/stateTaxesStateMachine.d.ts +1 -0
  277. package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js.map +1 -1
  278. package/dist/components/Company/exports/companyOnboarding.d.ts +7 -6
  279. package/dist/components/Company/exports/companyOnboarding.js +18 -16
  280. package/dist/components/Company/exports/companyOnboarding.js.map +1 -1
  281. package/dist/components/Company/index.d.ts +1 -17
  282. package/dist/components/Contractor/Address/Actions.d.ts +1 -0
  283. package/dist/components/Contractor/Address/Actions.js.map +1 -1
  284. package/dist/components/Contractor/Address/Address.d.ts +36 -1
  285. package/dist/components/Contractor/Address/Address.js.map +1 -1
  286. package/dist/components/Contractor/Address/Form.d.ts +1 -0
  287. package/dist/components/Contractor/Address/Form.js.map +1 -1
  288. package/dist/components/Contractor/Address/Head.d.ts +1 -0
  289. package/dist/components/Contractor/Address/Head.js.map +1 -1
  290. package/dist/components/Contractor/Address/index.d.ts +1 -1
  291. package/dist/components/Contractor/Address/useAddress.d.ts +8 -1
  292. package/dist/components/Contractor/Address/useAddress.js +19 -5
  293. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  294. package/dist/components/Contractor/ContractorList/index.d.ts +22 -9
  295. package/dist/components/Contractor/ContractorList/index.js +1 -3
  296. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  297. package/dist/components/Contractor/ContractorList/useContractorList.d.ts +3 -5
  298. package/dist/components/Contractor/ContractorList/useContractorList.js.map +1 -1
  299. package/dist/components/Contractor/NewHireReport/NewHireReport.d.ts +33 -9
  300. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  301. package/dist/components/Contractor/NewHireReport/types.d.ts +7 -0
  302. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.d.ts +58 -0
  303. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js.map +1 -1
  304. package/dist/components/Contractor/OnboardingFlow/OnboardingFlowComponents.d.ts +28 -2
  305. package/dist/components/Contractor/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  306. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.d.ts +1 -0
  307. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  308. package/dist/components/Contractor/PaymentMethod/BankAccountForm.d.ts +1 -0
  309. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  310. package/dist/components/Contractor/PaymentMethod/PaymentMethod.d.ts +33 -16
  311. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  312. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.d.ts +1 -9
  313. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +11 -15
  314. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  315. package/dist/components/Contractor/PaymentMethod/types.d.ts +7 -0
  316. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.d.ts +40 -3
  317. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +1 -2
  318. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  319. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +1 -0
  320. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  321. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.d.ts +4 -18
  322. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.js +0 -1
  323. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.js.map +1 -1
  324. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.d.ts +1 -0
  325. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  326. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +1 -0
  327. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  328. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +1 -0
  329. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js.map +1 -1
  330. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +1 -0
  331. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  332. package/dist/components/Contractor/Payments/CreatePayment/helpers.d.ts +1 -0
  333. package/dist/components/Contractor/Payments/CreatePayment/helpers.js.map +1 -1
  334. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.d.ts +40 -0
  335. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js.map +1 -1
  336. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +13 -0
  337. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  338. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +2 -0
  339. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  340. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +30 -3
  341. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +1 -2
  342. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  343. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +1 -0
  344. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  345. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +15 -3
  346. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +3 -3
  347. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  348. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +1 -0
  349. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  350. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +25 -2
  351. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -1
  352. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +1 -0
  353. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  354. package/dist/components/Contractor/Payments/PaymentSummary/index.d.ts +1 -2
  355. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.d.ts +28 -3
  356. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +3 -3
  357. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  358. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +1 -0
  359. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  360. package/dist/components/Contractor/Payments/types.d.ts +8 -4
  361. package/dist/components/Contractor/Profile/ContractorProfile.d.ts +30 -6
  362. package/dist/components/Contractor/Profile/ContractorProfile.js +5 -9
  363. package/dist/components/Contractor/Profile/ContractorProfile.js.map +1 -1
  364. package/dist/components/Contractor/Profile/ContractorProfileForm.d.ts +2 -0
  365. package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
  366. package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
  367. package/dist/components/Contractor/Profile/index.d.ts +1 -2
  368. package/dist/components/Contractor/Profile/useContractorProfile.d.ts +16 -2
  369. package/dist/components/Contractor/Profile/useContractorProfile.js +49 -39
  370. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  371. package/dist/components/Contractor/Submit/Submit.d.ts +21 -1
  372. package/dist/components/Contractor/Submit/Submit.js +1 -2
  373. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  374. package/dist/components/Contractor/Submit/SubmitDone.d.ts +1 -0
  375. package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
  376. package/dist/components/Contractor/exports/contractorManagement.d.ts +6 -6
  377. package/dist/components/Contractor/exports/contractorOnboarding.d.ts +9 -4
  378. package/dist/components/Employee/Compensation/management/Compensation.js +3 -2
  379. package/dist/components/Employee/Compensation/management/Compensation.js.map +1 -1
  380. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js +9 -8
  381. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js.map +1 -1
  382. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js +3 -2
  383. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
  384. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +3 -2
  385. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
  386. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js +3 -2
  387. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js.map +1 -1
  388. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.js +3 -2
  389. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.js.map +1 -1
  390. package/dist/components/Employee/Compensation/onboarding/Compensation.js +3 -2
  391. package/dist/components/Employee/Compensation/onboarding/Compensation.js.map +1 -1
  392. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js +3 -2
  393. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
  394. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +29 -61
  395. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +19 -23
  396. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js +5 -0
  397. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -1
  398. package/dist/components/Employee/Deductions/management/Deductions.js +3 -2
  399. package/dist/components/Employee/Deductions/management/Deductions.js.map +1 -1
  400. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js +3 -2
  401. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
  402. package/dist/components/Employee/Deductions/onboarding/Deductions.d.ts +1 -3
  403. package/dist/components/Employee/Deductions/onboarding/Deductions.js +21 -26
  404. package/dist/components/Employee/Deductions/onboarding/Deductions.js.map +1 -1
  405. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js +55 -50
  406. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js.map +1 -1
  407. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.d.ts +0 -4
  408. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.js +33 -43
  409. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.js.map +1 -1
  410. package/dist/components/Employee/Deductions/onboarding/stateMachine.d.ts +0 -1
  411. package/dist/components/Employee/Deductions/onboarding/stateMachine.js +36 -60
  412. package/dist/components/Employee/Deductions/onboarding/stateMachine.js.map +1 -1
  413. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.js +63 -61
  414. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.js.map +1 -1
  415. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +1 -18
  416. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.d.ts +2 -25
  417. package/dist/components/Employee/Documents/management/Documents.js +3 -2
  418. package/dist/components/Employee/Documents/management/Documents.js.map +1 -1
  419. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.d.ts +25 -5
  420. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  421. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/index.d.ts +3 -0
  422. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +17 -3
  423. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  424. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js +12 -11
  425. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
  426. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +16 -16
  427. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +28 -5
  428. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  429. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/index.d.ts +3 -0
  430. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +1 -4
  431. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.d.ts +26 -5
  432. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.js.map +1 -1
  433. package/dist/components/Employee/Documents/shared/SignatureForm/index.d.ts +3 -0
  434. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +2 -48
  435. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +22 -14
  436. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  437. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +10 -9
  438. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -1
  439. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js +3 -2
  440. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js.map +1 -1
  441. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +9 -8
  442. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -1
  443. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +14 -13
  444. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -1
  445. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +3 -20
  446. package/dist/components/Employee/HomeAddress/management/HomeAddress.js +3 -2
  447. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
  448. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.js +7 -6
  449. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.js.map +1 -1
  450. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.js +7 -6
  451. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
  452. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.d.ts +3 -15
  453. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.d.ts +3 -12
  454. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.d.ts +2 -11
  455. package/dist/components/Employee/Profile/management/Profile.js +12 -11
  456. package/dist/components/Employee/Profile/management/Profile.js.map +1 -1
  457. package/dist/components/Employee/Profile/management/ProfileEditForm.js +13 -12
  458. package/dist/components/Employee/Profile/management/ProfileEditForm.js.map +1 -1
  459. package/dist/components/Employee/Profile/onboarding/AdminProfile.js +11 -10
  460. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -1
  461. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js +3 -2
  462. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -1
  463. package/dist/components/Employee/Profile/onboarding/Profile.js +12 -11
  464. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -1
  465. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +3 -22
  466. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +3 -17
  467. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.d.ts +3 -10
  468. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +10 -9
  469. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -1
  470. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.js +7 -6
  471. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.js.map +1 -1
  472. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +3 -2
  473. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -1
  474. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +3 -2
  475. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
  476. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +10 -10
  477. package/dist/components/Employee/WorkAddress/management/WorkAddress.js +7 -6
  478. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
  479. package/dist/components/Employee/exports/employeeOnboarding.d.ts +3 -0
  480. package/dist/components/Employee/exports/employeeOnboarding.js +28 -22
  481. package/dist/components/Employee/exports/employeeOnboarding.js.map +1 -1
  482. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +36 -2
  483. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  484. package/dist/components/InformationRequests/InformationRequestForm/index.d.ts +1 -1
  485. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.d.ts +22 -2
  486. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +8 -7
  487. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  488. package/dist/components/InformationRequests/InformationRequestList/index.d.ts +1 -1
  489. package/dist/components/InformationRequests/InformationRequests.d.ts +29 -2
  490. package/dist/components/InformationRequests/InformationRequests.js +8 -7
  491. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  492. package/dist/components/InformationRequests/InformationRequestsComponents.d.ts +2 -0
  493. package/dist/components/InformationRequests/InformationRequestsComponents.js.map +1 -1
  494. package/dist/components/InformationRequests/index.d.ts +3 -3
  495. package/dist/components/InformationRequests/informationRequestsStateMachine.d.ts +2 -0
  496. package/dist/components/InformationRequests/informationRequestsStateMachine.js.map +1 -1
  497. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.d.ts +36 -3
  498. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +22 -17
  499. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  500. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.d.ts +1 -0
  501. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +3 -2
  502. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  503. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.d.ts +14 -0
  504. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.js.map +1 -1
  505. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.d.ts +1 -8
  506. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -10
  507. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  508. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.d.ts +1 -1
  509. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +1 -1
  510. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  511. package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.d.ts +11 -0
  512. package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.js.map +1 -1
  513. package/dist/components/Payroll/ConfirmWireDetails/index.d.ts +1 -2
  514. package/dist/components/Payroll/ConfirmWireDetails/types.d.ts +23 -0
  515. package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +18 -0
  516. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  517. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +15 -0
  518. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  519. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +24 -0
  520. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  521. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +7 -0
  522. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  523. package/dist/components/Payroll/Dismissal/dismissalStateMachine.d.ts +2 -0
  524. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -1
  525. package/dist/components/Payroll/Dismissal/index.d.ts +1 -1
  526. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -0
  527. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +34 -25
  528. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  529. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +5 -0
  530. package/dist/components/Payroll/GrossUpModal/index.d.ts +0 -1
  531. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +31 -0
  532. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  533. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +20 -0
  534. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  535. package/dist/components/Payroll/OffCycle/offCycleStateMachine.d.ts +2 -0
  536. package/dist/components/Payroll/OffCycle/offCycleStateMachine.js.map +1 -1
  537. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.d.ts +20 -0
  538. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  539. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -0
  540. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  541. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +24 -0
  542. package/dist/components/Payroll/OffCycleCreation/index.d.ts +1 -1
  543. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.d.ts +16 -0
  544. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js.map +1 -1
  545. package/dist/components/Payroll/OffCycleDeductionsSetting/types.d.ts +13 -0
  546. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.d.ts +1 -0
  547. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +1 -1
  548. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  549. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +18 -1
  550. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  551. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +1 -1
  552. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +0 -1
  553. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  554. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.d.ts +15 -0
  555. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -1
  556. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +1 -0
  557. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  558. package/dist/components/Payroll/OffCycleReasonSelection/types.d.ts +43 -0
  559. package/dist/components/Payroll/OffCycleReasonSelection/types.js.map +1 -1
  560. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.d.ts +1 -0
  561. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  562. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModalTypes.d.ts +5 -1
  563. package/dist/components/Payroll/OffCycleTaxWithholdingModal/index.d.ts +0 -1
  564. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.d.ts +1 -0
  565. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js.map +1 -1
  566. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +14 -0
  567. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js.map +1 -1
  568. package/dist/components/Payroll/OffCycleTaxWithholdingTable/index.d.ts +0 -2
  569. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.d.ts +3 -0
  570. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  571. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.d.ts +19 -5
  572. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +3 -2
  573. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  574. package/dist/components/Payroll/PayrollBlocker/index.d.ts +0 -1
  575. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +17 -11
  576. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +0 -2
  577. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  578. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +31 -3
  579. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +1 -2
  580. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  581. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -0
  582. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  583. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +2 -0
  584. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -1
  585. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -0
  586. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  587. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.d.ts +42 -3
  588. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +1 -2
  589. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  590. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +4 -18
  591. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +0 -1
  592. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  593. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +8 -6
  594. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +0 -1
  595. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  596. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +65 -0
  597. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  598. package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +0 -1
  599. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +2 -0
  600. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  601. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
  602. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -1
  603. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.d.ts +1 -0
  604. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
  605. package/dist/components/Payroll/PayrollFlow/PayrollFlow.d.ts +38 -0
  606. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  607. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +27 -0
  608. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  609. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -0
  610. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -1
  611. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  612. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  613. package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +25 -1
  614. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +1 -2
  615. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  616. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +1 -0
  617. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  618. package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +33 -4
  619. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +1 -2
  620. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  621. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +19 -0
  622. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  623. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +2 -0
  624. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  625. package/dist/components/Payroll/PayrollList/PayrollList.d.ts +32 -13
  626. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  627. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -0
  628. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +65 -68
  629. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  630. package/dist/components/Payroll/PayrollList/types.d.ts +1 -0
  631. package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +39 -3
  632. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +144 -132
  633. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  634. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +4 -3
  635. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +167 -167
  636. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  637. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.d.ts +1 -0
  638. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js.map +1 -1
  639. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +1 -0
  640. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  641. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +1 -0
  642. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.js.map +1 -1
  643. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.d.ts +26 -3
  644. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +8 -12
  645. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  646. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +1 -0
  647. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +40 -35
  648. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  649. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.d.ts +1 -0
  650. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.js.map +1 -1
  651. package/dist/components/Payroll/PayrollStatusBadges/index.d.ts +0 -2
  652. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.d.ts +26 -0
  653. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js.map +1 -1
  654. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.d.ts +2 -0
  655. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.js.map +1 -1
  656. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +21 -1
  657. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +7 -6
  658. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -1
  659. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +5 -0
  660. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js.map +1 -1
  661. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +1 -0
  662. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +3 -2
  663. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  664. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +1 -0
  665. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  666. package/dist/components/Payroll/RecoveryCases/index.d.ts +0 -1
  667. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.d.ts +5 -0
  668. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js.map +1 -1
  669. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.d.ts +5 -0
  670. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  671. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +21 -0
  672. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
  673. package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +23 -0
  674. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
  675. package/dist/components/Payroll/Transition/transitionStateMachine.d.ts +2 -0
  676. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -1
  677. package/dist/components/Payroll/TransitionCreation/TransitionCreation.d.ts +20 -0
  678. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  679. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +7 -0
  680. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +10 -10
  681. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  682. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +27 -0
  683. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
  684. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +1 -0
  685. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  686. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +5 -0
  687. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  688. package/dist/components/Payroll/helpers.d.ts +157 -26
  689. package/dist/components/Payroll/helpers.js +0 -1
  690. package/dist/components/Payroll/helpers.js.map +1 -1
  691. package/dist/components/Payroll/index.d.ts +11 -2
  692. package/dist/components/Payroll/payrollTypes.d.ts +24 -0
  693. package/dist/components/Payroll/payrollTypes.js.map +1 -1
  694. package/dist/components/Payroll/usePreparedPayrollData.d.ts +12 -0
  695. package/dist/components/Payroll/usePreparedPayrollData.js +33 -22
  696. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  697. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.d.ts +7 -0
  698. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js.map +1 -1
  699. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +19 -0
  700. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +3 -2
  701. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
  702. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +44 -0
  703. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +3 -2
  704. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
  705. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.d.ts +4 -0
  706. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
  707. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +1 -0
  708. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -1
  709. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +28 -2
  710. package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +0 -2
  711. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.d.ts +26 -0
  712. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
  713. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +1 -0
  714. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -1
  715. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +10 -0
  716. package/dist/components/TimeOff/PolicyList/PolicyList.d.ts +25 -0
  717. package/dist/components/TimeOff/PolicyList/PolicyList.js +3 -2
  718. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
  719. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.d.ts +1 -0
  720. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
  721. package/dist/components/TimeOff/PolicyList/PolicyListTypes.d.ts +17 -0
  722. package/dist/components/TimeOff/PolicySettings/PolicySettings.d.ts +22 -0
  723. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -1
  724. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +14 -0
  725. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
  726. package/dist/components/TimeOff/PolicySettings/PolicySettingsTypes.d.ts +31 -0
  727. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +23 -0
  728. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
  729. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -0
  730. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -1
  731. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +10 -0
  732. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.d.ts +42 -0
  733. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -1
  734. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +26 -0
  735. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  736. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +15 -3
  737. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js +1 -6
  738. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -1
  739. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.d.ts +1 -0
  740. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
  741. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +29 -0
  742. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
  743. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -0
  744. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
  745. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +59 -1
  746. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -3
  747. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +1 -0
  748. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
  749. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -0
  750. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +43 -42
  751. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
  752. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +2 -0
  753. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +1 -0
  754. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
  755. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +3 -0
  756. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
  757. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +9 -0
  758. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -1
  759. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +25 -0
  760. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
  761. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +14 -0
  762. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
  763. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +97 -6
  764. package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +1 -5
  765. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +23 -0
  766. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -1
  767. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +22 -0
  768. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js.map +1 -1
  769. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +22 -0
  770. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -1
  771. package/dist/components/TimeOff/index.d.ts +8 -2
  772. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +1 -0
  773. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +48 -49
  774. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -1
  775. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +66 -0
  776. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +1 -0
  777. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -1
  778. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +28 -0
  779. package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +0 -1
  780. package/dist/components/TimeOff/shared/holidayHelpers.d.ts +5 -0
  781. package/dist/components/TimeOff/shared/holidayHelpers.js.map +1 -1
  782. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +4 -4
  783. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +39 -39
  784. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  785. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +42 -42
  786. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  787. package/dist/index.d.ts +3 -3
  788. package/dist/index.js +202 -193
  789. package/dist/index.js.map +1 -1
  790. package/dist/partner-hook-utils/form/buildFormSchema.d.ts +27 -4
  791. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  792. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +1 -1
  793. package/dist/shared/constants.d.ts +12 -5
  794. package/dist/shared/constants.js +0 -2
  795. package/dist/shared/constants.js.map +1 -1
  796. package/dist/style.css +1 -1
  797. package/docs/reference/endpoint-inventory.json +66 -4
  798. package/package.json +11 -10
  799. package/dist/assets/icons/feature-icon-check.svg.js +0 -10
  800. package/dist/assets/icons/feature-icon-check.svg.js.map +0 -1
  801. package/dist/components/Contractor/index.d.ts +0 -14
  802. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.d.ts +0 -8
  803. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.js +0 -44
  804. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.js.map +0 -1
  805. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.module.scss.js +0 -12
  806. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.module.scss.js.map +0 -1
  807. package/dist/components/Payroll/PayrollEditEmployee/index.d.ts +0 -4
  808. package/dist/components/Payroll/PayrollFlow/index.d.ts +0 -3
  809. package/dist/components/TimeOff/TimeOffFlow/index.d.ts +0 -3
  810. package/dist/components/TimeOff/shared/EmployeeTable/index.d.ts +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"EditCompensation.js","sources":["../../../../../../src/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.tsx"],"sourcesContent":["import { useState } from 'react'\nimport classNames from 'classnames'\nimport type { CompensationDefaultValues } from '../Compensation'\nimport { useJobForm } from '../../shared/useJobForm'\nimport { useCompensationForm } from '../../shared/useCompensationForm'\nimport { AddCompensationFormBody } from '../../shared/AddCompensationFormBody'\nimport styles from './EditCompensation.module.scss'\nimport { BaseBoundaries, BaseLayout, type CommonComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport { composeSubmitHandler } from '@/partner-hook-utils/form/composeSubmitHandler'\nimport { componentEvents, type EventType } from '@/shared/constants'\n\n/**\n * Props for {@link EditCompensation}.\n *\n * @public\n */\nexport interface EditCompensationProps extends CommonComponentInterface<'Employee.Compensation'> {\n /** The associated employee identifier. */\n employeeId: string\n /**\n * When provided, the hire date is pre-filled from this value and the hire date field is hidden.\n * When absent, the hire date field is rendered so it can be set explicitly.\n */\n startDate?: string\n /** Existing job to edit. When omitted, a new job is created on submit. */\n currentJobId?: string | null\n /** Heading text shown above the form. */\n title: string\n /** Label for the primary submit button. */\n submitCtaLabel: string\n /** Optional handler invoked when the secondary cancel button is clicked. */\n onCancel?: () => void\n /** Initial values for the job title and compensation fields. */\n partnerDefaultValues?: CompensationDefaultValues\n /** Event handler fired on flow state changes. See the events table on {@link EditCompensation}. */\n onEvent: OnEventType<EventType, unknown>\n}\n\n/**\n * Renders a form for creating or editing one of an employee's jobs together with its compensation.\n *\n * @remarks\n * The submit chain saves the job first, then the compensation. The `employee/job_created` or\n * `employee/job_updated` event fires once the job is saved; `employee/compensation_updated`\n * fires once the compensation is saved and signals the full save is complete.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/job_created` | Fired when a new job is saved. | The saved {@link https://docs.gusto.com/embedded-payroll/reference/get-v1-jobs-job_id | Job}. |\n * | `employee/job_updated` | Fired when an existing job is saved. | The saved {@link https://docs.gusto.com/embedded-payroll/reference/get-v1-jobs-job_id | Job}. |\n * | `employee/compensation_updated` | Fired when the compensation is saved. Treat as the \"save complete\" signal. | The saved {@link https://docs.gusto.com/embedded-payroll/reference/get-v1-compensations-compensation_id | Compensation}. |\n *\n * @param props - See {@link EditCompensationProps}.\n * @returns The rendered edit-compensation form.\n * @public\n */\nexport function EditCompensation({ dictionary, ...props }: EditCompensationProps) {\n useComponentDictionary('Employee.Compensation', dictionary)\n return (\n <BaseBoundaries componentName=\"Employee.Compensation\">\n <Root {...props} />\n </BaseBoundaries>\n )\n}\n\nfunction Root({\n employeeId,\n startDate,\n currentJobId,\n title,\n submitCtaLabel,\n onCancel,\n partnerDefaultValues,\n className,\n onEvent,\n}: EditCompensationProps) {\n useI18n('Employee.Compensation')\n\n // When startDate is provided (onboarding), hide the hire date field and derive\n // it from the prop at submit time. When absent (add-job from dashboard empty\n // state), render the field so the user can set it explicitly.\n const withHireDateField = !startDate\n\n // Track jobId locally so a partial-failure submit chain (job POST succeeds,\n // comp PUT fails) doesn't re-POST and create a duplicate job on retry. We\n // initialize from the prop and only write back when the partner-supplied\n // `currentJobId` was nullish (i.e. add-job flow) — see the submit handler.\n const [resolvedJobId, setResolvedJobId] = useState<string | undefined>(currentJobId ?? undefined)\n\n const jobForm = useJobForm({\n employeeId,\n jobId: resolvedJobId,\n withHireDateField,\n defaultValues: {\n title: partnerDefaultValues?.title ?? '',\n },\n // The Compensation flow always shows a job title field, even when editing\n // an existing job. The hook's schema only requires `title` on create; we\n // require it on update too to preserve the existing UX.\n optionalFieldsToRequire: { update: ['title'] },\n shouldFocusError: false,\n })\n\n // Resolve the compensationId from the job we just loaded so the comp form can\n // seed from the existing comp on edit. While the job form is still loading we\n // pass undefined (compensation form starts in create mode); once the job\n // resolves the prop change re-renders the comp form into update mode with the\n // existing compensation as the seed.\n const resolvedCompensationId = jobForm.isLoading\n ? undefined\n : (jobForm.data.currentJob?.currentCompensationUuid ?? undefined)\n\n const compensationForm = useCompensationForm({\n employeeId,\n jobId: resolvedJobId,\n compensationId: resolvedCompensationId,\n // No effective-date field is surfaced, and no `effectiveDate` is\n // threaded into `actions.onSubmit` either: the server initializes\n // `effective_date` on the auto-stub created by the parent job POST,\n // and subsequent updates omit it from the PUT body so the existing\n // value is preserved (e.g. a deliberately-set future-dated comp\n // wouldn't be silently overwritten on an unrelated edit).\n withEffectiveDateField: false,\n // The Compensation flow always presents flsaStatus, rate, and paymentUnit\n // as required, even when editing an existing compensation. The hook's\n // schema marks them `'create'`-only by default; we promote them on update\n // here to preserve the existing UX (no \"(optional)\" labels).\n optionalFieldsToRequire: { update: ['flsaStatus', 'rate', 'paymentUnit'] },\n defaultValues: {\n flsaStatus: partnerDefaultValues?.flsaStatus,\n rate:\n typeof partnerDefaultValues?.rate === 'number'\n ? partnerDefaultValues.rate\n : partnerDefaultValues?.rate\n ? Number(partnerDefaultValues.rate)\n : undefined,\n paymentUnit: partnerDefaultValues?.paymentUnit,\n },\n shouldFocusError: false,\n })\n\n if (jobForm.isLoading || compensationForm.isLoading) {\n const loadingErrorHandling = composeErrorHandler([jobForm, compensationForm])\n return <BaseLayout isLoading error={loadingErrorHandling.errors} />\n }\n\n const submitResult = composeSubmitHandler([jobForm, compensationForm], async () => {\n const jobResult = await jobForm.actions.onSubmit({\n employeeId,\n hireDate: startDate ?? undefined,\n })\n if (!jobResult) return\n\n onEvent(\n jobResult.mode === 'create'\n ? componentEvents.EMPLOYEE_JOB_CREATED\n : componentEvents.EMPLOYEE_JOB_UPDATED,\n jobResult.data,\n )\n\n // Always thread through the freshly returned job's currentCompensationUuid +\n // its version so we PUT against the latest comp regardless of whether the job\n // POST just auto-created the stub or the job PUT bumped a version.\n const stubCompensation = jobResult.data.compensations?.find(\n c => c.uuid === jobResult.data.currentCompensationUuid,\n )\n\n const compensationResult = await compensationForm.actions.onSubmit({\n jobId: jobResult.data.uuid,\n compensationId: jobResult.data.currentCompensationUuid ?? undefined,\n compensationVersion: stubCompensation?.version ?? undefined,\n })\n if (!compensationResult) {\n if (!currentJobId) setResolvedJobId(jobResult.data.uuid)\n return\n }\n\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_UPDATED, compensationResult.data)\n })\n\n const errorHandling = composeErrorHandler([submitResult])\n\n const isPending = jobForm.status.isPending || compensationForm.status.isPending\n\n return (\n <section className={classNames(styles.container, className)}>\n <BaseLayout error={errorHandling.errors}>\n <Form onSubmit={submitResult.handleSubmit}>\n <AddCompensationFormBody\n jobForm={jobForm}\n compensationForm={compensationForm}\n title={title}\n submitCtaLabel={submitCtaLabel}\n isPending={isPending}\n onCancel={onCancel}\n />\n </Form>\n </BaseLayout>\n </section>\n )\n}\n"],"names":["EditCompensation","dictionary","props","useComponentDictionary","jsx","BaseBoundaries","Root","employeeId","startDate","currentJobId","title","submitCtaLabel","onCancel","partnerDefaultValues","className","onEvent","useI18n","withHireDateField","resolvedJobId","setResolvedJobId","useState","jobForm","useJobForm","resolvedCompensationId","compensationForm","useCompensationForm","loadingErrorHandling","composeErrorHandler","BaseLayout","submitResult","composeSubmitHandler","jobResult","componentEvents","stubCompensation","c","compensationResult","errorHandling","isPending","classNames","styles","Form","AddCompensationFormBody"],"mappings":";;;;;;;;;;;;;AA4DO,SAASA,EAAiB,EAAE,YAAAC,GAAY,GAAGC,KAAgC;AAChF,SAAAC,EAAuB,yBAAyBF,CAAU,GAExD,gBAAAG,EAACC,KAAe,eAAc,yBAC5B,4BAACC,GAAA,EAAM,GAAGJ,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASI,EAAK;AAAA,EACZ,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AACF,GAA0B;AACxB,EAAAC,EAAQ,uBAAuB;AAK/B,QAAMC,IAAoB,CAACT,GAMrB,CAACU,GAAeC,CAAgB,IAAIC,EAA6BX,KAAgB,MAAS,GAE1FY,IAAUC,EAAW;AAAA,IACzB,YAAAf;AAAA,IACA,OAAOW;AAAA,IACP,mBAAAD;AAAA,IACA,eAAe;AAAA,MACb,OAAOJ,GAAsB,SAAS;AAAA,IAAA;AAAA;AAAA;AAAA;AAAA,IAKxC,yBAAyB,EAAE,QAAQ,CAAC,OAAO,EAAA;AAAA,IAC3C,kBAAkB;AAAA,EAAA,CACnB,GAOKU,IAAyBF,EAAQ,YACnC,SACCA,EAAQ,KAAK,YAAY,2BAA2B,QAEnDG,IAAmBC,EAAoB;AAAA,IAC3C,YAAAlB;AAAA,IACA,OAAOW;AAAA,IACP,gBAAgBK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOhB,wBAAwB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKxB,yBAAyB,EAAE,QAAQ,CAAC,cAAc,QAAQ,aAAa,EAAA;AAAA,IACvE,eAAe;AAAA,MACb,YAAYV,GAAsB;AAAA,MAClC,MACE,OAAOA,GAAsB,QAAS,WAClCA,EAAqB,OACrBA,GAAsB,OACpB,OAAOA,EAAqB,IAAI,IAChC;AAAA,MACR,aAAaA,GAAsB;AAAA,IAAA;AAAA,IAErC,kBAAkB;AAAA,EAAA,CACnB;AAED,MAAIQ,EAAQ,aAAaG,EAAiB,WAAW;AACnD,UAAME,IAAuBC,EAAoB,CAACN,GAASG,CAAgB,CAAC;AAC5E,6BAAQI,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAqB,QAAQ;AAAA,EACnE;AAEA,QAAMG,IAAeC,EAAqB,CAACT,GAASG,CAAgB,GAAG,YAAY;AACjF,UAAMO,IAAY,MAAMV,EAAQ,QAAQ,SAAS;AAAA,MAC/C,YAAAd;AAAA,MACA,UAAUC,KAAa;AAAA,IAAA,CACxB;AACD,QAAI,CAACuB,EAAW;AAEhB,IAAAhB;AAAA,MACEgB,EAAU,SAAS,WACfC,EAAgB,uBAChBA,EAAgB;AAAA,MACpBD,EAAU;AAAA,IAAA;AAMZ,UAAME,IAAmBF,EAAU,KAAK,eAAe;AAAA,MACrD,CAAAG,MAAKA,EAAE,SAASH,EAAU,KAAK;AAAA,IAAA,GAG3BI,IAAqB,MAAMX,EAAiB,QAAQ,SAAS;AAAA,MACjE,OAAOO,EAAU,KAAK;AAAA,MACtB,gBAAgBA,EAAU,KAAK,2BAA2B;AAAA,MAC1D,qBAAqBE,GAAkB,WAAW;AAAA,IAAA,CACnD;AACD,QAAI,CAACE,GAAoB;AACvB,MAAK1B,KAAcU,EAAiBY,EAAU,KAAK,IAAI;AACvD;AAAA,IACF;AAEA,IAAAhB,EAAQiB,EAAgB,+BAA+BG,EAAmB,IAAI;AAAA,EAChF,CAAC,GAEKC,IAAgBT,EAAoB,CAACE,CAAY,CAAC,GAElDQ,IAAYhB,EAAQ,OAAO,aAAaG,EAAiB,OAAO;AAEtE,2BACG,WAAA,EAAQ,WAAWc,EAAWC,EAAO,WAAWzB,CAAS,GACxD,UAAA,gBAAAV,EAACwB,GAAA,EAAW,OAAOQ,EAAc,QAC/B,4BAACI,GAAA,EAAK,UAAUX,EAAa,cAC3B,UAAA,gBAAAzB;AAAA,IAACqC;AAAA,IAAA;AAAA,MACC,SAAApB;AAAA,MACA,kBAAAG;AAAA,MACA,OAAAd;AAAA,MACA,gBAAAC;AAAA,MACA,WAAA0B;AAAA,MACA,UAAAzB;AAAA,IAAA;AAAA,EAAA,EACF,CACF,GACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"EditCompensation.js","sources":["../../../../../../src/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.tsx"],"sourcesContent":["import { useState } from 'react'\nimport classNames from 'classnames'\nimport type { CompensationDefaultValues } from '../Compensation'\nimport { useJobForm } from '../../shared/useJobForm'\nimport { useCompensationForm } from '../../shared/useCompensationForm'\nimport { AddCompensationFormBody } from '../../shared/AddCompensationFormBody'\nimport styles from './EditCompensation.module.scss'\nimport { BaseBoundaries, BaseLayout, type CommonComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport { composeSubmitHandler } from '@/partner-hook-utils/form/composeSubmitHandler'\nimport { componentEvents, type EventType } from '@/shared/constants'\n\n/**\n * Props for {@link EditCompensation}.\n *\n * @public\n */\nexport interface EditCompensationProps extends CommonComponentInterface<'Employee.Compensation'> {\n /** The associated employee identifier. */\n employeeId: string\n /**\n * When provided, the hire date is pre-filled from this value and the hire date field is hidden.\n * When absent, the hire date field is rendered so it can be set explicitly.\n */\n startDate?: string\n /** Existing job to edit. When omitted, a new job is created on submit. */\n currentJobId?: string | null\n /** Heading text shown above the form. */\n title: string\n /** Label for the primary submit button. */\n submitCtaLabel: string\n /** Optional handler invoked when the secondary cancel button is clicked. */\n onCancel?: () => void\n /** Initial values for the job title and compensation fields. */\n partnerDefaultValues?: CompensationDefaultValues\n /** Event handler fired on flow state changes. See the events table on {@link EditCompensation}. */\n onEvent: OnEventType<EventType, unknown>\n}\n\n/**\n * Renders a form for creating or editing one of an employee's jobs together with its compensation.\n *\n * @remarks\n * The submit chain saves the job first, then the compensation. The `employee/job_created` or\n * `employee/job_updated` event fires once the job is saved; `employee/compensation_updated`\n * fires once the compensation is saved and signals the full save is complete.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/job_created` | Fired when a new job is saved. | The saved {@link https://docs.gusto.com/embedded-payroll/reference/get-v1-jobs-job_id | Job}. |\n * | `employee/job_updated` | Fired when an existing job is saved. | The saved {@link https://docs.gusto.com/embedded-payroll/reference/get-v1-jobs-job_id | Job}. |\n * | `employee/compensation_updated` | Fired when the compensation is saved. Treat as the \"save complete\" signal. | The saved {@link https://docs.gusto.com/embedded-payroll/reference/get-v1-compensations-compensation_id | Compensation}. |\n *\n * @param props - See {@link EditCompensationProps}.\n * @returns The rendered edit-compensation form.\n * @public\n */\nexport function EditCompensation({ dictionary, ...props }: EditCompensationProps) {\n useComponentDictionary('Employee.Compensation', dictionary)\n return (\n <BaseBoundaries componentName=\"Employee.Compensation\">\n <Root {...props} />\n </BaseBoundaries>\n )\n}\n\nfunction Root({\n employeeId,\n startDate,\n currentJobId,\n title,\n submitCtaLabel,\n onCancel,\n partnerDefaultValues,\n className,\n onEvent,\n}: EditCompensationProps) {\n useI18n('Employee.Compensation')\n\n // When startDate is provided (onboarding), hide the hire date field and derive\n // it from the prop at submit time. When absent (add-job from dashboard empty\n // state), render the field so the user can set it explicitly.\n const withHireDateField = !startDate\n\n // Track jobId locally so a partial-failure submit chain (job POST succeeds,\n // comp PUT fails) doesn't re-POST and create a duplicate job on retry. We\n // initialize from the prop and only write back when the partner-supplied\n // `currentJobId` was nullish (i.e. add-job flow) — see the submit handler.\n const [resolvedJobId, setResolvedJobId] = useState<string | undefined>(currentJobId ?? undefined)\n\n const jobForm = useJobForm({\n employeeId,\n jobId: resolvedJobId,\n withHireDateField,\n defaultValues: {\n title: partnerDefaultValues?.title ?? '',\n },\n // The Compensation flow always shows a job title field, even when editing\n // an existing job. The hook's schema only requires `title` on create; we\n // require it on update too to preserve the existing UX.\n optionalFieldsToRequire: { update: ['title'] },\n shouldFocusError: false,\n })\n\n // Resolve the compensationId from the job we just loaded so the comp form can\n // seed from the existing comp on edit. While the job form is still loading we\n // pass undefined (compensation form starts in create mode); once the job\n // resolves the prop change re-renders the comp form into update mode with the\n // existing compensation as the seed.\n const resolvedCompensationId = jobForm.isLoading\n ? undefined\n : (jobForm.data.currentJob?.currentCompensationUuid ?? undefined)\n\n const compensationForm = useCompensationForm({\n employeeId,\n jobId: resolvedJobId,\n compensationId: resolvedCompensationId,\n // No effective-date field is surfaced, and no `effectiveDate` is\n // threaded into `actions.onSubmit` either: the server initializes\n // `effective_date` on the auto-stub created by the parent job POST,\n // and subsequent updates omit it from the PUT body so the existing\n // value is preserved (e.g. a deliberately-set future-dated comp\n // wouldn't be silently overwritten on an unrelated edit).\n withEffectiveDateField: false,\n // The Compensation flow always presents flsaStatus, rate, and paymentUnit\n // as required, even when editing an existing compensation. The hook's\n // schema marks them `'create'`-only by default; we promote them on update\n // here to preserve the existing UX (no \"(optional)\" labels).\n optionalFieldsToRequire: { update: ['flsaStatus', 'rate', 'paymentUnit'] },\n defaultValues: {\n flsaStatus: partnerDefaultValues?.flsaStatus,\n rate:\n typeof partnerDefaultValues?.rate === 'number'\n ? partnerDefaultValues.rate\n : partnerDefaultValues?.rate\n ? Number(partnerDefaultValues.rate)\n : undefined,\n paymentUnit: partnerDefaultValues?.paymentUnit,\n },\n shouldFocusError: false,\n })\n\n if (jobForm.isLoading || compensationForm.isLoading) {\n const loadingErrorHandling = composeErrorHandler([jobForm, compensationForm])\n return <BaseLayout isLoading error={loadingErrorHandling.errors} />\n }\n\n const submitResult = composeSubmitHandler([jobForm, compensationForm], async () => {\n const jobResult = await jobForm.actions.onSubmit({\n employeeId,\n hireDate: startDate ?? undefined,\n })\n if (!jobResult) return\n\n onEvent(\n jobResult.mode === 'create'\n ? componentEvents.EMPLOYEE_JOB_CREATED\n : componentEvents.EMPLOYEE_JOB_UPDATED,\n jobResult.data,\n )\n\n // Always thread through the freshly returned job's currentCompensationUuid +\n // its version so we PUT against the latest comp regardless of whether the job\n // POST just auto-created the stub or the job PUT bumped a version.\n const stubCompensation = jobResult.data.compensations?.find(\n c => c.uuid === jobResult.data.currentCompensationUuid,\n )\n\n const compensationResult = await compensationForm.actions.onSubmit({\n jobId: jobResult.data.uuid,\n compensationId: jobResult.data.currentCompensationUuid ?? undefined,\n compensationVersion: stubCompensation?.version ?? undefined,\n })\n if (!compensationResult) {\n if (!currentJobId) setResolvedJobId(jobResult.data.uuid)\n return\n }\n\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_UPDATED, compensationResult.data)\n })\n\n const errorHandling = composeErrorHandler([submitResult])\n\n const isPending = jobForm.status.isPending || compensationForm.status.isPending\n\n return (\n <section className={classNames(styles.container, className)}>\n <BaseLayout error={errorHandling.errors}>\n <Form onSubmit={submitResult.handleSubmit}>\n <AddCompensationFormBody\n jobForm={jobForm}\n compensationForm={compensationForm}\n title={title}\n submitCtaLabel={submitCtaLabel}\n isPending={isPending}\n onCancel={onCancel}\n />\n </Form>\n </BaseLayout>\n </section>\n )\n}\n"],"names":["EditCompensation","dictionary","props","useComponentDictionary","jsx","BaseBoundaries","Root","employeeId","startDate","currentJobId","title","submitCtaLabel","onCancel","partnerDefaultValues","className","onEvent","useI18n","withHireDateField","resolvedJobId","setResolvedJobId","useState","jobForm","useJobForm","resolvedCompensationId","compensationForm","useCompensationForm","loadingErrorHandling","composeErrorHandler","BaseLayout","submitResult","composeSubmitHandler","jobResult","componentEvents","stubCompensation","c","compensationResult","errorHandling","isPending","classNames","styles","Form","AddCompensationFormBody"],"mappings":";;;;;;;;;;;;;;AA4DO,SAASA,EAAiB,EAAE,YAAAC,GAAY,GAAGC,KAAgC;AAChF,SAAAC,EAAuB,yBAAyBF,CAAU,GAExD,gBAAAG,EAACC,KAAe,eAAc,yBAC5B,4BAACC,GAAA,EAAM,GAAGJ,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASI,EAAK;AAAA,EACZ,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AACF,GAA0B;AACxB,EAAAC,EAAQ,uBAAuB;AAK/B,QAAMC,IAAoB,CAACT,GAMrB,CAACU,GAAeC,CAAgB,IAAIC,EAA6BX,KAAgB,MAAS,GAE1FY,IAAUC,EAAW;AAAA,IACzB,YAAAf;AAAA,IACA,OAAOW;AAAA,IACP,mBAAAD;AAAA,IACA,eAAe;AAAA,MACb,OAAOJ,GAAsB,SAAS;AAAA,IAAA;AAAA;AAAA;AAAA;AAAA,IAKxC,yBAAyB,EAAE,QAAQ,CAAC,OAAO,EAAA;AAAA,IAC3C,kBAAkB;AAAA,EAAA,CACnB,GAOKU,IAAyBF,EAAQ,YACnC,SACCA,EAAQ,KAAK,YAAY,2BAA2B,QAEnDG,IAAmBC,EAAoB;AAAA,IAC3C,YAAAlB;AAAA,IACA,OAAOW;AAAA,IACP,gBAAgBK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOhB,wBAAwB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKxB,yBAAyB,EAAE,QAAQ,CAAC,cAAc,QAAQ,aAAa,EAAA;AAAA,IACvE,eAAe;AAAA,MACb,YAAYV,GAAsB;AAAA,MAClC,MACE,OAAOA,GAAsB,QAAS,WAClCA,EAAqB,OACrBA,GAAsB,OACpB,OAAOA,EAAqB,IAAI,IAChC;AAAA,MACR,aAAaA,GAAsB;AAAA,IAAA;AAAA,IAErC,kBAAkB;AAAA,EAAA,CACnB;AAED,MAAIQ,EAAQ,aAAaG,EAAiB,WAAW;AACnD,UAAME,IAAuBC,EAAoB,CAACN,GAASG,CAAgB,CAAC;AAC5E,6BAAQI,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAqB,QAAQ;AAAA,EACnE;AAEA,QAAMG,IAAeC,EAAqB,CAACT,GAASG,CAAgB,GAAG,YAAY;AACjF,UAAMO,IAAY,MAAMV,EAAQ,QAAQ,SAAS;AAAA,MAC/C,YAAAd;AAAA,MACA,UAAUC,KAAa;AAAA,IAAA,CACxB;AACD,QAAI,CAACuB,EAAW;AAEhB,IAAAhB;AAAA,MACEgB,EAAU,SAAS,WACfC,EAAgB,uBAChBA,EAAgB;AAAA,MACpBD,EAAU;AAAA,IAAA;AAMZ,UAAME,IAAmBF,EAAU,KAAK,eAAe;AAAA,MACrD,CAAAG,MAAKA,EAAE,SAASH,EAAU,KAAK;AAAA,IAAA,GAG3BI,IAAqB,MAAMX,EAAiB,QAAQ,SAAS;AAAA,MACjE,OAAOO,EAAU,KAAK;AAAA,MACtB,gBAAgBA,EAAU,KAAK,2BAA2B;AAAA,MAC1D,qBAAqBE,GAAkB,WAAW;AAAA,IAAA,CACnD;AACD,QAAI,CAACE,GAAoB;AACvB,MAAK1B,KAAcU,EAAiBY,EAAU,KAAK,IAAI;AACvD;AAAA,IACF;AAEA,IAAAhB,EAAQiB,EAAgB,+BAA+BG,EAAmB,IAAI;AAAA,EAChF,CAAC,GAEKC,IAAgBT,EAAoB,CAACE,CAAY,CAAC,GAElDQ,IAAYhB,EAAQ,OAAO,aAAaG,EAAiB,OAAO;AAEtE,2BACG,WAAA,EAAQ,WAAWc,EAAWC,EAAO,WAAWzB,CAAS,GACxD,UAAA,gBAAAV,EAACwB,GAAA,EAAW,OAAOQ,EAAc,QAC/B,4BAACI,GAAA,EAAK,UAAUX,EAAa,cAC3B,UAAA,gBAAAzB;AAAA,IAACqC;AAAA,IAAA;AAAA,MACC,SAAApB;AAAA,MACA,kBAAAG;AAAA,MACA,OAAAd;AAAA,MACA,gBAAAC;AAAA,MACA,WAAA0B;AAAA,MACA,UAAAzB;AAAA,IAAA;AAAA,EAAA,EACF,CACF,GACF,GACF;AAEJ;"}
@@ -50,48 +50,6 @@ export declare const CompensationErrorCodes: {
50
50
  * @public
51
51
  */
52
52
  export type CompensationErrorCode = (typeof CompensationErrorCodes)[keyof typeof CompensationErrorCodes];
53
- declare const fieldValidators: {
54
- /**
55
- * Optional in both modes. Setting title here scopes the change to this
56
- * compensation's `effectiveDate` — pair it with a future-dated comp to
57
- * schedule a promotion title alongside a rate change. Use
58
- * `useJobForm.Fields.Title` instead when creating a job (title is required
59
- * by the API on job creation) or when renaming the active role
60
- * immediately, and avoid rendering both fields on the same screen.
61
- */
62
- title: z.ZodString;
63
- flsaStatus: z.ZodOptional<z.ZodEnum<{
64
- Exempt: "Exempt";
65
- "Salaried Nonexempt": "Salaried Nonexempt";
66
- Nonexempt: "Nonexempt";
67
- Owner: "Owner";
68
- "Commission Only Exempt": "Commission Only Exempt";
69
- "Commission Only Nonexempt": "Commission Only Nonexempt";
70
- }>>;
71
- paymentUnit: z.ZodEnum<{
72
- Hour: "Hour";
73
- Week: "Week";
74
- Month: "Month";
75
- Year: "Year";
76
- Paycheck: "Paycheck";
77
- }>;
78
- rate: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
79
- /**
80
- * The effective date a new compensation should take effect on.
81
- *
82
- * - **create mode (`compensationId` absent)**: required; partners typically default
83
- * to the parent job's `hireDate` (onboarding stub-fill) or a future date
84
- * (rate change). Must be on or after `hireDate`. Server-side this maps to
85
- * POST /v1/jobs/:jobId/compensations.
86
- * - **update mode (`compensationId` present)**: optional; if omitted the API
87
- * keeps the existing effective date. The `hireDate` lower bound is **not**
88
- * enforced — loaded values may legitimately predate the hire date. Maps to
89
- * PUT /v1/compensations/:id.
90
- */
91
- effectiveDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
92
- adjustForMinimumWage: z.ZodBoolean;
93
- minimumWageId: z.ZodString;
94
- };
95
53
  /**
96
54
  * Shape of the form values managed by {@link useCompensationForm}.
97
55
  *
@@ -105,24 +63,34 @@ declare const fieldValidators: {
105
63
  * @public
106
64
  */
107
65
  export type CompensationFormData = {
108
- [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>;
109
- };
110
- declare const requiredFieldsConfig: {
111
- title: "never";
112
- flsaStatus: "create";
113
- paymentUnit: "create";
114
- rate: "create";
115
- effectiveDate: "create";
116
- minimumWageId: (data: {
117
- title: string;
118
- flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt" | "Owner" | "Commission Only Exempt" | "Commission Only Nonexempt" | undefined;
119
- paymentUnit: "Hour" | "Week" | "Month" | "Year" | "Paycheck";
120
- rate: number;
121
- effectiveDate: string | null;
122
- adjustForMinimumWage: boolean;
123
- minimumWageId: string;
124
- }) => boolean;
125
- };
66
+ /**
67
+ * Optional in both modes. Setting title here scopes the change to this
68
+ * compensation's `effectiveDate` — pair it with a future-dated comp to
69
+ * schedule a promotion title alongside a rate change. Use
70
+ * `useJobForm.Fields.Title` instead when creating a job (title is required
71
+ * by the API on job creation) or when renaming the active role
72
+ * immediately, and avoid rendering both fields on the same screen.
73
+ */
74
+ title: string
75
+ flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt" | "Owner" | "Commission Only Exempt" | "Commission Only Nonexempt" | undefined
76
+ paymentUnit: "Hour" | "Week" | "Month" | "Year" | "Paycheck"
77
+ rate: number
78
+ /**
79
+ * The effective date a new compensation should take effect on.
80
+ *
81
+ * - **create mode (`compensationId` absent)**: required; partners typically default
82
+ * to the parent job's `hireDate` (onboarding stub-fill) or a future date
83
+ * (rate change). Must be on or after `hireDate`. Server-side this maps to
84
+ * POST /v1/jobs/:jobId/compensations.
85
+ * - **update mode (`compensationId` present)**: optional; if omitted the API
86
+ * keeps the existing effective date. The `hireDate` lower bound is **not**
87
+ * enforced — loaded values may legitimately predate the hire date. Maps to
88
+ * PUT /v1/compensations/:id.
89
+ */
90
+ effectiveDate: string | null
91
+ adjustForMinimumWage: boolean
92
+ minimumWageId: string
93
+ };
126
94
  /**
127
95
  * Override which fields are required on a given submission mode of {@link useCompensationForm}.
128
96
  *
@@ -156,7 +124,7 @@ declare const requiredFieldsConfig: {
156
124
  * })
157
125
  * ```
158
126
  */
159
- export type CompensationOptionalFieldsToRequire = OptionalFieldsToRequire<typeof requiredFieldsConfig>;
127
+ export type CompensationOptionalFieldsToRequire = { create?: "title"[] | undefined; update?: ("title" | "flsaStatus" | "paymentUnit" | "rate" | "effectiveDate")[] | undefined; };
160
128
  /**
161
129
  * Validated submission shape produced by the {@link useCompensationForm} schema.
162
130
  *
@@ -28,13 +28,6 @@ export declare const JobErrorCodes: {
28
28
  * @public
29
29
  */
30
30
  export type JobErrorCode = (typeof JobErrorCodes)[keyof typeof JobErrorCodes];
31
- declare const fieldValidators: {
32
- title: z.ZodString;
33
- hireDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
34
- twoPercentShareholder: z.ZodBoolean;
35
- stateWcCovered: z.ZodPipe<z.ZodTransform<boolean | undefined, unknown>, z.ZodBoolean>;
36
- stateWcClassCode: z.ZodString;
37
- };
38
31
  /**
39
32
  * Shape of the form values managed by {@link useJobForm}.
40
33
  *
@@ -46,10 +39,20 @@ declare const fieldValidators: {
46
39
  * input (the schema preprocessor coerces them).
47
40
  *
48
41
  * @public
42
+ * @interface
49
43
  */
50
44
  export type JobFormData = {
51
- [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>;
52
- };
45
+ /** The employee's job title (e.g. `"Software Engineer"`). */
46
+ title: string
47
+ /** The employee's hire date as an ISO 8601 string (`YYYY-MM-DD`), or `null` if unknown. */
48
+ hireDate: string | null
49
+ /** Whether the employee owns 2 % or more of an S-corporation. Affects benefit-deduction tax treatment. */
50
+ twoPercentShareholder: boolean
51
+ /** Whether the employee is covered under Washington state workers' compensation insurance. */
52
+ stateWcCovered: boolean
53
+ /** Washington state workers' compensation risk-class code. Required when `stateWcCovered` is `true`. */
54
+ stateWcClassCode: string
55
+ };
53
56
  /**
54
57
  * Validated submission shape produced by the {@link useJobForm} schema.
55
58
  *
@@ -60,19 +63,6 @@ export type JobFormData = {
60
63
  * @public
61
64
  */
62
65
  export type JobFormOutputs = JobFormData;
63
- declare const requiredFieldsConfig: {
64
- title: "create";
65
- hireDate: "create";
66
- twoPercentShareholder: "never";
67
- stateWcCovered: "never";
68
- stateWcClassCode: (data: {
69
- title: string;
70
- hireDate: string | null;
71
- twoPercentShareholder: boolean;
72
- stateWcCovered: boolean;
73
- stateWcClassCode: string;
74
- }) => boolean;
75
- };
76
66
  /**
77
67
  * Override which fields are required on a given submission mode of {@link useJobForm}.
78
68
  *
@@ -90,6 +80,7 @@ declare const requiredFieldsConfig: {
90
80
  * | `stateWcClassCode` | When WC is covered | When WC is covered | No (auto) |
91
81
  *
92
82
  * @public
83
+ * @interface
93
84
  *
94
85
  * @example
95
86
  * ```tsx
@@ -102,7 +93,7 @@ declare const requiredFieldsConfig: {
102
93
  * })
103
94
  * ```
104
95
  */
105
- export type JobOptionalFieldsToRequire = OptionalFieldsToRequire<typeof requiredFieldsConfig>;
96
+ export type JobOptionalFieldsToRequire = { create?: ("twoPercentShareholder" | "stateWcCovered")[] | undefined; update?: ("title" | "hireDate" | "twoPercentShareholder" | "stateWcCovered")[] | undefined; };
106
97
  interface JobSchemaOptions {
107
98
  mode?: 'create' | 'update';
108
99
  optionalFieldsToRequire?: JobOptionalFieldsToRequire;
@@ -125,10 +116,15 @@ interface JobSchemaOptions {
125
116
  }
126
117
  /** @internal */
127
118
  export declare function createJobSchema(options?: JobSchemaOptions): import('../../../../../partner-hook-utils/form/buildFormSchema').BuildFormSchemaResult<{
119
+ /** The employee's job title (e.g. `"Software Engineer"`). */
128
120
  title: z.ZodString;
121
+ /** The employee's hire date as an ISO 8601 string (`YYYY-MM-DD`), or `null` if unknown. */
129
122
  hireDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
123
+ /** Whether the employee owns 2 % or more of an S-corporation. Affects benefit-deduction tax treatment. */
130
124
  twoPercentShareholder: z.ZodBoolean;
125
+ /** Whether the employee is covered under Washington state workers' compensation insurance. */
131
126
  stateWcCovered: z.ZodPipe<z.ZodTransform<boolean | undefined, unknown>, z.ZodBoolean>;
127
+ /** Washington state workers' compensation risk-class code. Required when `stateWcCovered` is `true`. */
132
128
  stateWcClassCode: z.ZodString;
133
129
  }>;
134
130
  export {};
@@ -4,11 +4,16 @@ import { coerceStringBoolean as l, coerceToISODate as d } from "../../../../../p
4
4
  const n = {
5
5
  REQUIRED: "REQUIRED"
6
6
  }, h = {
7
+ /** The employee's job title (e.g. `"Software Engineer"`). */
7
8
  title: e.string(),
9
+ /** The employee's hire date as an ISO 8601 string (`YYYY-MM-DD`), or `null` if unknown. */
8
10
  hireDate: e.preprocess(d, e.iso.date().nullable()),
11
+ /** Whether the employee owns 2 % or more of an S-corporation. Affects benefit-deduction tax treatment. */
9
12
  twoPercentShareholder: e.boolean(),
10
13
  // Radio group delivers 'true'/'false' strings; coerceStringBoolean converts to boolean.
14
+ /** Whether the employee is covered under Washington state workers' compensation insurance. */
11
15
  stateWcCovered: e.preprocess(l, e.boolean()),
16
+ /** Washington state workers' compensation risk-class code. Required when `stateWcCovered` is `true`. */
12
17
  stateWcClassCode: e.string()
13
18
  }, u = {
14
19
  title: "create",
@@ -1 +1 @@
1
- {"version":3,"file":"jobSchema.js","sources":["../../../../../../src/components/Employee/Compensation/shared/useJobForm/jobSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n type OptionalFieldsToRequire,\n} from '@/partner-hook-utils/form/buildFormSchema'\nimport { coerceToISODate, coerceStringBoolean } from '@/partner-hook-utils/form/preprocessors'\n\n/**\n * Validation error codes produced by the {@link useJobForm} 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 * @public\n *\n * @example\n * ```tsx\n * import { JobErrorCodes } from '@gusto/embedded-react-sdk'\n *\n * <Fields.Title\n * label=\"Job title\"\n * validationMessages={{ [JobErrorCodes.REQUIRED]: 'Job title is required' }}\n * />\n * ```\n */\nexport const JobErrorCodes = {\n REQUIRED: 'REQUIRED',\n} as const\n\n/**\n * Union of every error code produced by the {@link useJobForm} schema.\n *\n * @public\n */\nexport type JobErrorCode = (typeof JobErrorCodes)[keyof typeof JobErrorCodes]\n\nconst fieldValidators = {\n title: z.string(),\n hireDate: z.preprocess(coerceToISODate, z.iso.date().nullable()),\n twoPercentShareholder: z.boolean(),\n // Radio group delivers 'true'/'false' strings; coerceStringBoolean converts to boolean.\n stateWcCovered: z.preprocess(coerceStringBoolean, z.boolean()),\n stateWcClassCode: z.string(),\n}\n\n/**\n * Shape of the form values managed by {@link useJobForm}.\n *\n * @remarks\n * Accepted as `defaultValues` on `useJobForm` and returned by\n * `form.getFormSubmissionValues()` once the form has validated. `hireDate` is\n * an ISO date string (`YYYY-MM-DD`) or `null`; `stateWcCovered` is a boolean\n * even though the radio group surfaces `'true'` / `'false'` strings during\n * input (the schema preprocessor coerces them).\n *\n * @public\n */\nexport type JobFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\n/**\n * Validated submission shape produced by the {@link useJobForm} schema.\n *\n * @remarks\n * Identical to {@link JobFormData} — exposed as a separate alias so the input\n * vs. output sides of the schema remain distinguishable in advanced usages.\n *\n * @public\n */\nexport type JobFormOutputs = JobFormData\n\nconst requiredFieldsConfig = {\n title: 'create',\n hireDate: 'create',\n twoPercentShareholder: 'never',\n stateWcCovered: 'never',\n // stateWcClassCode is gated by stateWcCovered === true. The predicate also\n // depends implicitly on the work-address state being WA — partners enforce\n // that gate by passing `optionalFieldsToRequire` only for WA employees, or\n // by simply never sending stateWcCovered=true outside WA.\n stateWcClassCode: data => String(data.stateWcCovered) === 'true',\n} satisfies RequiredFieldConfig<typeof fieldValidators>\n\n/**\n * Override which fields are required on a given submission mode of {@link useJobForm}.\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. `stateWcClassCode` is automatically\n * required when `stateWcCovered` is `true` and is not configurable here.\n *\n * | Field | Required on create | Required on update | Configurable? |\n * | ----- | ------------------ | ------------------ | ------------- |\n * | `title` | Yes | No | Yes (on update) |\n * | `hireDate` | Yes | No | Yes (on update) |\n * | `twoPercentShareholder` | No | No | Yes (either mode) |\n * | `stateWcCovered` | No | No | Yes (either mode) |\n * | `stateWcClassCode` | When WC is covered | When WC is covered | No (auto) |\n *\n * @public\n *\n * @example\n * ```tsx\n * const job = useJobForm({\n * employeeId,\n * jobId,\n * optionalFieldsToRequire: {\n * update: ['title', 'hireDate'],\n * },\n * })\n * ```\n */\nexport type JobOptionalFieldsToRequire = OptionalFieldsToRequire<typeof requiredFieldsConfig>\n\ninterface JobSchemaOptions {\n mode?: 'create' | 'update'\n optionalFieldsToRequire?: JobOptionalFieldsToRequire\n /**\n * When `false`, drops `hireDate` from the validated shape entirely — the\n * field becomes hook-managed rather than user-facing (e.g. an onboarding\n * screen that derives hireDate from the employee's `startDate`). Partners\n * supply the value at submit time via `JobSubmitOptions.hireDate`.\n * Defaults to `true`.\n */\n withHireDateField?: boolean\n /**\n * When `false`, drops `title` from the validated shape entirely and the\n * hook stops sending it on PUT `/v1/jobs/:id`. Use this when title is\n * being driven via the compensation form instead (steady-state edits,\n * where title is effective-dated alongside rate/unit/FLSA on a future\n * compensation row). Defaults to `true`.\n */\n withTitleField?: boolean\n}\n\n/** @internal */\nexport function createJobSchema(options: JobSchemaOptions = {}) {\n const {\n mode = 'create',\n optionalFieldsToRequire,\n withHireDateField = true,\n withTitleField = true,\n } = options\n\n const excludeFields: Array<keyof typeof fieldValidators> = []\n if (!withHireDateField) excludeFields.push('hireDate')\n if (!withTitleField) excludeFields.push('title')\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: JobErrorCodes.REQUIRED,\n mode,\n optionalFieldsToRequire,\n excludeFields,\n })\n}\n"],"names":["JobErrorCodes","fieldValidators","z","coerceToISODate","coerceStringBoolean","requiredFieldsConfig","data","createJobSchema","options","mode","optionalFieldsToRequire","withHireDateField","withTitleField","excludeFields","buildFormSchema"],"mappings":";;;AA2BO,MAAMA,IAAgB;AAAA,EAC3B,UAAU;AACZ,GASMC,IAAkB;AAAA,EACtB,OAAOC,EAAE,OAAA;AAAA,EACT,UAAUA,EAAE,WAAWC,GAAiBD,EAAE,IAAI,OAAO,UAAU;AAAA,EAC/D,uBAAuBA,EAAE,QAAA;AAAA;AAAA,EAEzB,gBAAgBA,EAAE,WAAWE,GAAqBF,EAAE,SAAS;AAAA,EAC7D,kBAAkBA,EAAE,OAAA;AACtB,GA6BMG,IAAuB;AAAA,EAC3B,OAAO;AAAA,EACP,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhB,kBAAkB,CAAAC,MAAQ,OAAOA,EAAK,cAAc,MAAM;AAC5D;AAuDO,SAASC,EAAgBC,IAA4B,IAAI;AAC9D,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,yBAAAC;AAAA,IACA,mBAAAC,IAAoB;AAAA,IACpB,gBAAAC,IAAiB;AAAA,EAAA,IACfJ,GAEEK,IAAqD,CAAA;AAC3D,SAAKF,KAAmBE,EAAc,KAAK,UAAU,GAChDD,KAAgBC,EAAc,KAAK,OAAO,GAExCC,EAAgBb,GAAiB;AAAA,IACtC,sBAAAI;AAAA,IACA,mBAAmBL,EAAc;AAAA,IACjC,MAAAS;AAAA,IACA,yBAAAC;AAAA,IACA,eAAAG;AAAA,EAAA,CACD;AACH;"}
1
+ {"version":3,"file":"jobSchema.js","sources":["../../../../../../src/components/Employee/Compensation/shared/useJobForm/jobSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n type OptionalFieldsToRequire,\n} from '@/partner-hook-utils/form/buildFormSchema'\nimport { coerceToISODate, coerceStringBoolean } from '@/partner-hook-utils/form/preprocessors'\n\n/**\n * Validation error codes produced by the {@link useJobForm} 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 * @public\n *\n * @example\n * ```tsx\n * import { JobErrorCodes } from '@gusto/embedded-react-sdk'\n *\n * <Fields.Title\n * label=\"Job title\"\n * validationMessages={{ [JobErrorCodes.REQUIRED]: 'Job title is required' }}\n * />\n * ```\n */\nexport const JobErrorCodes = {\n REQUIRED: 'REQUIRED',\n} as const\n\n/**\n * Union of every error code produced by the {@link useJobForm} schema.\n *\n * @public\n */\nexport type JobErrorCode = (typeof JobErrorCodes)[keyof typeof JobErrorCodes]\n\nconst fieldValidators = {\n /** The employee's job title (e.g. `\"Software Engineer\"`). */\n title: z.string(),\n /** The employee's hire date as an ISO 8601 string (`YYYY-MM-DD`), or `null` if unknown. */\n hireDate: z.preprocess(coerceToISODate, z.iso.date().nullable()),\n /** Whether the employee owns 2 % or more of an S-corporation. Affects benefit-deduction tax treatment. */\n twoPercentShareholder: z.boolean(),\n // Radio group delivers 'true'/'false' strings; coerceStringBoolean converts to boolean.\n /** Whether the employee is covered under Washington state workers' compensation insurance. */\n stateWcCovered: z.preprocess(coerceStringBoolean, z.boolean()),\n /** Washington state workers' compensation risk-class code. Required when `stateWcCovered` is `true`. */\n stateWcClassCode: z.string(),\n}\n\n/**\n * Shape of the form values managed by {@link useJobForm}.\n *\n * @remarks\n * Accepted as `defaultValues` on `useJobForm` and returned by\n * `form.getFormSubmissionValues()` once the form has validated. `hireDate` is\n * an ISO date string (`YYYY-MM-DD`) or `null`; `stateWcCovered` is a boolean\n * even though the radio group surfaces `'true'` / `'false'` strings during\n * input (the schema preprocessor coerces them).\n *\n * @public\n * @interface\n */\nexport type JobFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\n/**\n * Validated submission shape produced by the {@link useJobForm} schema.\n *\n * @remarks\n * Identical to {@link JobFormData} — exposed as a separate alias so the input\n * vs. output sides of the schema remain distinguishable in advanced usages.\n *\n * @public\n */\nexport type JobFormOutputs = JobFormData\n\nconst requiredFieldsConfig = {\n title: 'create',\n hireDate: 'create',\n twoPercentShareholder: 'never',\n stateWcCovered: 'never',\n // stateWcClassCode is gated by stateWcCovered === true. The predicate also\n // depends implicitly on the work-address state being WA — partners enforce\n // that gate by passing `optionalFieldsToRequire` only for WA employees, or\n // by simply never sending stateWcCovered=true outside WA.\n stateWcClassCode: data => String(data.stateWcCovered) === 'true',\n} satisfies RequiredFieldConfig<typeof fieldValidators>\n\n/**\n * Override which fields are required on a given submission mode of {@link useJobForm}.\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. `stateWcClassCode` is automatically\n * required when `stateWcCovered` is `true` and is not configurable here.\n *\n * | Field | Required on create | Required on update | Configurable? |\n * | ----- | ------------------ | ------------------ | ------------- |\n * | `title` | Yes | No | Yes (on update) |\n * | `hireDate` | Yes | No | Yes (on update) |\n * | `twoPercentShareholder` | No | No | Yes (either mode) |\n * | `stateWcCovered` | No | No | Yes (either mode) |\n * | `stateWcClassCode` | When WC is covered | When WC is covered | No (auto) |\n *\n * @public\n * @interface\n *\n * @example\n * ```tsx\n * const job = useJobForm({\n * employeeId,\n * jobId,\n * optionalFieldsToRequire: {\n * update: ['title', 'hireDate'],\n * },\n * })\n * ```\n */\nexport type JobOptionalFieldsToRequire = OptionalFieldsToRequire<typeof requiredFieldsConfig>\n\ninterface JobSchemaOptions {\n mode?: 'create' | 'update'\n optionalFieldsToRequire?: JobOptionalFieldsToRequire\n /**\n * When `false`, drops `hireDate` from the validated shape entirely — the\n * field becomes hook-managed rather than user-facing (e.g. an onboarding\n * screen that derives hireDate from the employee's `startDate`). Partners\n * supply the value at submit time via `JobSubmitOptions.hireDate`.\n * Defaults to `true`.\n */\n withHireDateField?: boolean\n /**\n * When `false`, drops `title` from the validated shape entirely and the\n * hook stops sending it on PUT `/v1/jobs/:id`. Use this when title is\n * being driven via the compensation form instead (steady-state edits,\n * where title is effective-dated alongside rate/unit/FLSA on a future\n * compensation row). Defaults to `true`.\n */\n withTitleField?: boolean\n}\n\n/** @internal */\nexport function createJobSchema(options: JobSchemaOptions = {}) {\n const {\n mode = 'create',\n optionalFieldsToRequire,\n withHireDateField = true,\n withTitleField = true,\n } = options\n\n const excludeFields: Array<keyof typeof fieldValidators> = []\n if (!withHireDateField) excludeFields.push('hireDate')\n if (!withTitleField) excludeFields.push('title')\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: JobErrorCodes.REQUIRED,\n mode,\n optionalFieldsToRequire,\n excludeFields,\n })\n}\n"],"names":["JobErrorCodes","fieldValidators","z","coerceToISODate","coerceStringBoolean","requiredFieldsConfig","data","createJobSchema","options","mode","optionalFieldsToRequire","withHireDateField","withTitleField","excludeFields","buildFormSchema"],"mappings":";;;AA2BO,MAAMA,IAAgB;AAAA,EAC3B,UAAU;AACZ,GASMC,IAAkB;AAAA;AAAA,EAEtB,OAAOC,EAAE,OAAA;AAAA;AAAA,EAET,UAAUA,EAAE,WAAWC,GAAiBD,EAAE,IAAI,OAAO,UAAU;AAAA;AAAA,EAE/D,uBAAuBA,EAAE,QAAA;AAAA;AAAA;AAAA,EAGzB,gBAAgBA,EAAE,WAAWE,GAAqBF,EAAE,SAAS;AAAA;AAAA,EAE7D,kBAAkBA,EAAE,OAAA;AACtB,GA8BMG,IAAuB;AAAA,EAC3B,OAAO;AAAA,EACP,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhB,kBAAkB,CAAAC,MAAQ,OAAOA,EAAK,cAAc,MAAM;AAC5D;AAwDO,SAASC,EAAgBC,IAA4B,IAAI;AAC9D,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,yBAAAC;AAAA,IACA,mBAAAC,IAAoB;AAAA,IACpB,gBAAAC,IAAiB;AAAA,EAAA,IACfJ,GAEEK,IAAqD,CAAA;AAC3D,SAAKF,KAAmBE,EAAc,KAAK,UAAU,GAChDD,KAAgBC,EAAc,KAAK,OAAO,GAExCC,EAAgBb,GAAiB;AAAA,IACtC,sBAAAI;AAAA,IACA,mBAAmBL,EAAc;AAAA,IACjC,MAAAS;AAAA,IACA,yBAAAC;AAAA,IACA,eAAAG;AAAA,EAAA,CACD;AACH;"}
@@ -5,6 +5,7 @@ import { DeductionsCardContextual as c } from "./DeductionsComponents.js";
5
5
  import { deductionsStateMachine as a } from "./deductionsStateMachine.js";
6
6
  import { Flow as u } from "../../../Flow/Flow.js";
7
7
  import { BaseBoundaries as s } from "../../../Base/Base.js";
8
+ import "../../../Base/useBase.js";
8
9
  import { useComponentDictionary as p, useI18n as d } from "../../../../i18n/I18n.js";
9
10
  function f({ employeeId: o, onEvent: e }) {
10
11
  d("Employee.Management.Deductions");
@@ -19,7 +20,7 @@ function f({ employeeId: o, onEvent: e }) {
19
20
  );
20
21
  return /* @__PURE__ */ t(u, { machine: n, onEvent: e });
21
22
  }
22
- function E({
23
+ function w({
23
24
  dictionary: o,
24
25
  FallbackComponent: e,
25
26
  ...n
@@ -34,6 +35,6 @@ function E({
34
35
  );
35
36
  }
36
37
  export {
37
- E as Deductions
38
+ w as Deductions
38
39
  };
39
40
  //# sourceMappingURL=Deductions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Deductions.js","sources":["../../../../../src/components/Employee/Deductions/management/Deductions.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { DeductionsCardContextual, type DeductionsContextInterface } from './DeductionsComponents'\nimport { deductionsStateMachine } from './deductionsStateMachine'\nimport { Flow } from '@/components/Flow/Flow'\nimport {\n BaseBoundaries,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { type EventType } from '@/shared/constants'\nimport { useComponentDictionary } from '@/i18n/I18n'\nimport { useI18n } from '@/i18n'\nimport type { OnEventType } from '@/components/Base/useBase'\n\n/**\n * Props for {@link Deductions}.\n *\n * @public\n */\nexport interface DeductionsProps extends CommonComponentInterface<'Employee.Management.Deductions'> {\n /** The associated employee identifier. */\n employeeId: string\n /** Callback invoked when the block emits an event. See the events table on {@link Deductions} for the available event types and payloads. */\n onEvent: OnEventType<EventType, unknown>\n}\n\nfunction DeductionsFlow({ employeeId, onEvent }: DeductionsProps) {\n useI18n('Employee.Management.Deductions')\n\n const machine = useMemo(\n () =>\n createMachine('card', deductionsStateMachine, (ctx: DeductionsContextInterface) => ({\n ...ctx,\n component: DeductionsCardContextual,\n employeeId,\n successAlert: null,\n })),\n [employeeId],\n )\n\n return <Flow machine={machine} onEvent={onEvent} />\n}\n\n/**\n * Self-contained block for viewing and managing an employee's post-tax deductions — the same experience the dashboard surfaces, but as a drop-in component that doesn't require the surrounding dashboard chrome.\n *\n * @remarks\n * Renders a card listing the employee's active deductions with affordances to add a new deduction, edit an existing one, or delete one via a confirm dialog. Choosing to add or edit swaps the card for the deduction form; a successful save returns to the card and emits the corresponding event, and cancelling returns without saving. Wraps everything in error and suspense boundaries.\n *\n * The card and form surfaces ({@link DeductionsCard}, {@link DeductionsEditForm}) are also exported individually for cases where that orchestration is the wrong fit — for example, when the form needs to render in a modal or drawer, or when the swap is driven by a router. Using them directly means owning the swap, the alert, and any cross-component state yourself.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/management/deductions/card/addRequested` | Fired when the \"Add deduction\" CTA is clicked from the card; the block opens the edit form in add mode | `{ employeeId: string }` |\n * | `employee/management/deductions/card/editRequested` | Fired when an \"Edit\" CTA is clicked for a deduction; the block opens the edit form pre-populated with that deduction | The matching `Garnishment` |\n * | `employee/management/deductions/card/deleted` | Fired after a deduction is deleted via the confirm dialog; the block stays on the card | The deleted `Garnishment` |\n * | `employee/management/deductions/editForm/created` | Fired after a new deduction is saved from the edit form; the block returns to the card view | The created `Garnishment` |\n * | `employee/management/deductions/editForm/updated` | Fired after an existing deduction is updated from the edit form; the block returns to the card view | The updated `Garnishment` |\n * | `employee/management/deductions/editForm/cancelled` | Fired when the user cancels the edit form; the block returns to the card view | — |\n * | `employee/management/deductions/alertDismissed` | Fired when the user dismisses a success alert above the card | `null` |\n *\n * @param props - See {@link DeductionsProps}.\n * @returns The rendered deductions block.\n * @public\n * @group Block Components\n */\nexport function Deductions({\n dictionary,\n FallbackComponent,\n ...props\n}: DeductionsProps & BaseComponentInterface<'Employee.Management.Deductions'>) {\n useComponentDictionary('Employee.Management.Deductions', dictionary)\n return (\n <BaseBoundaries\n componentName=\"Employee.Management.Deductions\"\n FallbackComponent={FallbackComponent}\n >\n <DeductionsFlow {...props} />\n </BaseBoundaries>\n )\n}\n"],"names":["DeductionsFlow","employeeId","onEvent","useI18n","machine","useMemo","createMachine","deductionsStateMachine","ctx","DeductionsCardContextual","jsx","Flow","Deductions","dictionary","FallbackComponent","props","useComponentDictionary","BaseBoundaries"],"mappings":";;;;;;;;AA2BA,SAASA,EAAe,EAAE,YAAAC,GAAY,SAAAC,KAA4B;AAChE,EAAAC,EAAQ,gCAAgC;AAExC,QAAMC,IAAUC;AAAA,IACd,MACEC,EAAc,QAAQC,GAAwB,CAACC,OAAqC;AAAA,MAClF,GAAGA;AAAA,MACH,WAAWC;AAAA,MACX,YAAAR;AAAA,MACA,cAAc;AAAA,IAAA,EACd;AAAA,IACJ,CAACA,CAAU;AAAA,EAAA;AAGb,SAAO,gBAAAS,EAACC,GAAA,EAAK,SAAAP,GAAkB,SAAAF,EAAA,CAAkB;AACnD;AAyBO,SAASU,EAAW;AAAA,EACzB,YAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,GAAGC;AACL,GAA+E;AAC7E,SAAAC,EAAuB,kCAAkCH,CAAU,GAEjE,gBAAAH;AAAA,IAACO;AAAA,IAAA;AAAA,MACC,eAAc;AAAA,MACd,mBAAAH;AAAA,MAEA,UAAA,gBAAAJ,EAACV,GAAA,EAAgB,GAAGe,EAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGjC;"}
1
+ {"version":3,"file":"Deductions.js","sources":["../../../../../src/components/Employee/Deductions/management/Deductions.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { DeductionsCardContextual, type DeductionsContextInterface } from './DeductionsComponents'\nimport { deductionsStateMachine } from './deductionsStateMachine'\nimport { Flow } from '@/components/Flow/Flow'\nimport {\n BaseBoundaries,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { type EventType } from '@/shared/constants'\nimport { useComponentDictionary } from '@/i18n/I18n'\nimport { useI18n } from '@/i18n'\nimport type { OnEventType } from '@/components/Base/useBase'\n\n/**\n * Props for {@link Deductions}.\n *\n * @public\n */\nexport interface DeductionsProps extends CommonComponentInterface<'Employee.Management.Deductions'> {\n /** The associated employee identifier. */\n employeeId: string\n /** Callback invoked when the block emits an event. See the events table on {@link Deductions} for the available event types and payloads. */\n onEvent: OnEventType<EventType, unknown>\n}\n\nfunction DeductionsFlow({ employeeId, onEvent }: DeductionsProps) {\n useI18n('Employee.Management.Deductions')\n\n const machine = useMemo(\n () =>\n createMachine('card', deductionsStateMachine, (ctx: DeductionsContextInterface) => ({\n ...ctx,\n component: DeductionsCardContextual,\n employeeId,\n successAlert: null,\n })),\n [employeeId],\n )\n\n return <Flow machine={machine} onEvent={onEvent} />\n}\n\n/**\n * Self-contained block for viewing and managing an employee's post-tax deductions — the same experience the dashboard surfaces, but as a drop-in component that doesn't require the surrounding dashboard chrome.\n *\n * @remarks\n * Renders a card listing the employee's active deductions with affordances to add a new deduction, edit an existing one, or delete one via a confirm dialog. Choosing to add or edit swaps the card for the deduction form; a successful save returns to the card and emits the corresponding event, and cancelling returns without saving. Wraps everything in error and suspense boundaries.\n *\n * The card and form surfaces ({@link DeductionsCard}, {@link DeductionsEditForm}) are also exported individually for cases where that orchestration is the wrong fit — for example, when the form needs to render in a modal or drawer, or when the swap is driven by a router. Using them directly means owning the swap, the alert, and any cross-component state yourself.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/management/deductions/card/addRequested` | Fired when the \"Add deduction\" CTA is clicked from the card; the block opens the edit form in add mode | `{ employeeId: string }` |\n * | `employee/management/deductions/card/editRequested` | Fired when an \"Edit\" CTA is clicked for a deduction; the block opens the edit form pre-populated with that deduction | The matching `Garnishment` |\n * | `employee/management/deductions/card/deleted` | Fired after a deduction is deleted via the confirm dialog; the block stays on the card | The deleted `Garnishment` |\n * | `employee/management/deductions/editForm/created` | Fired after a new deduction is saved from the edit form; the block returns to the card view | The created `Garnishment` |\n * | `employee/management/deductions/editForm/updated` | Fired after an existing deduction is updated from the edit form; the block returns to the card view | The updated `Garnishment` |\n * | `employee/management/deductions/editForm/cancelled` | Fired when the user cancels the edit form; the block returns to the card view | — |\n * | `employee/management/deductions/alertDismissed` | Fired when the user dismisses a success alert above the card | `null` |\n *\n * @param props - See {@link DeductionsProps}.\n * @returns The rendered deductions block.\n * @public\n * @group Block Components\n */\nexport function Deductions({\n dictionary,\n FallbackComponent,\n ...props\n}: DeductionsProps & BaseComponentInterface<'Employee.Management.Deductions'>) {\n useComponentDictionary('Employee.Management.Deductions', dictionary)\n return (\n <BaseBoundaries\n componentName=\"Employee.Management.Deductions\"\n FallbackComponent={FallbackComponent}\n >\n <DeductionsFlow {...props} />\n </BaseBoundaries>\n )\n}\n"],"names":["DeductionsFlow","employeeId","onEvent","useI18n","machine","useMemo","createMachine","deductionsStateMachine","ctx","DeductionsCardContextual","jsx","Flow","Deductions","dictionary","FallbackComponent","props","useComponentDictionary","BaseBoundaries"],"mappings":";;;;;;;;;AA2BA,SAASA,EAAe,EAAE,YAAAC,GAAY,SAAAC,KAA4B;AAChE,EAAAC,EAAQ,gCAAgC;AAExC,QAAMC,IAAUC;AAAA,IACd,MACEC,EAAc,QAAQC,GAAwB,CAACC,OAAqC;AAAA,MAClF,GAAGA;AAAA,MACH,WAAWC;AAAA,MACX,YAAAR;AAAA,MACA,cAAc;AAAA,IAAA,EACd;AAAA,IACJ,CAACA,CAAU;AAAA,EAAA;AAGb,SAAO,gBAAAS,EAACC,GAAA,EAAK,SAAAP,GAAkB,SAAAF,EAAA,CAAkB;AACnD;AAyBO,SAASU,EAAW;AAAA,EACzB,YAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,GAAGC;AACL,GAA+E;AAC7E,SAAAC,EAAuB,kCAAkCH,CAAU,GAEjE,gBAAAH;AAAA,IAACO;AAAA,IAAA;AAAA,MACC,eAAc;AAAA,MACd,mBAAAH;AAAA,MAEA,UAAA,gBAAAJ,EAACV,GAAA,EAAgB,GAAGe,EAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGjC;"}
@@ -2,10 +2,11 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { useDeductionsList as D } from "../../shared/useDeductionsList.js";
3
3
  import { useManagementDeductionsFormDictionary as d } from "./useFormDictionary.js";
4
4
  import { BaseBoundaries as M, BaseLayout as m } from "../../../../Base/Base.js";
5
+ import "../../../../Base/useBase.js";
5
6
  import { useI18n as _, useComponentDictionary as p } from "../../../../../i18n/I18n.js";
6
7
  import { componentEvents as i } from "../../../../../shared/constants.js";
7
8
  import { DeductionsForm as f } from "../../shared/DeductionsForm/DeductionsForm.js";
8
- function y({
9
+ function F({
9
10
  FallbackComponent: r,
10
11
  ...n
11
12
  }) {
@@ -48,6 +49,6 @@ function l({
48
49
  ) });
49
50
  }
50
51
  export {
51
- y as DeductionsEditForm
52
+ F as DeductionsEditForm
52
53
  };
53
54
  //# sourceMappingURL=DeductionsEditForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeductionsEditForm.js","sources":["../../../../../../src/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.tsx"],"sourcesContent":["import { DeductionsForm } from '../../shared/DeductionsForm'\nimport { useDeductionsList } from '../../shared/useDeductionsList'\nimport { useManagementDeductionsFormDictionary } from './useFormDictionary'\nimport {\n BaseBoundaries,\n BaseLayout,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\n\n/**\n * Props for {@link DeductionsEditForm}.\n *\n * @public\n */\nexport interface DeductionsEditFormProps extends CommonComponentInterface<'Employee.Management.Deductions'> {\n /** The associated employee identifier. */\n employeeId: string\n /** When provided, the form opens in edit mode pre-populated with the\n * matching active deduction. Omit to open in add mode. */\n editingDeductionId?: string\n /** Callback invoked when the form emits an event. See the events table on {@link DeductionsEditForm} for the available event types and payloads. */\n onEvent: BaseComponentInterface['onEvent']\n}\n\n/**\n * Standalone add/edit surface for a single employee deduction.\n *\n * @remarks\n * Renders the inline form for a post-tax custom deduction or court-ordered garnishment. Looks up the row to edit by `editingDeductionId`; omit it to open in add mode. Resolves its text against the `Employee.Management.Deductions` translation namespace so partner overrides on that namespace flow into the form. For an orchestrated card-plus-form flow, use {@link Deductions}.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/management/deductions/editForm/created` | Fired after a new deduction is saved | The created `Garnishment` |\n * | `employee/management/deductions/editForm/updated` | Fired after an existing deduction is updated | The updated `Garnishment` |\n * | `employee/management/deductions/editForm/cancelled` | Fired when the user cancels the form | — |\n *\n * @param input - See {@link DeductionsEditFormProps}, plus a `FallbackComponent` override for the error boundary.\n * @returns The rendered add/edit form.\n * @public\n */\nexport function DeductionsEditForm({\n FallbackComponent,\n ...props\n}: DeductionsEditFormProps & Pick<BaseComponentInterface, 'FallbackComponent'>) {\n return (\n <BaseBoundaries\n componentName=\"Employee.Management.Deductions\"\n FallbackComponent={FallbackComponent}\n >\n <DeductionsEditFormRoot {...props} />\n </BaseBoundaries>\n )\n}\n\nfunction DeductionsEditFormRoot({\n employeeId,\n editingDeductionId,\n dictionary,\n onEvent,\n}: DeductionsEditFormProps) {\n useI18n('Employee.Management.Deductions')\n useComponentDictionary('Employee.Management.Deductions', dictionary)\n\n // React Query dedupes against any sibling consumer of this list, so this\n // is just a typed handle on the loaded row used to seed edit mode.\n const list = useDeductionsList({ employeeId })\n const formDictionary = useManagementDeductionsFormDictionary()\n\n if (list.isLoading) {\n return <BaseLayout isLoading error={list.errorHandling.errors} />\n }\n\n const deduction = editingDeductionId\n ? (list.data.deductions.find(d => d.uuid === editingDeductionId) ?? null)\n : null\n\n return (\n <BaseLayout error={list.errorHandling.errors}>\n <DeductionsForm\n employeeId={employeeId}\n deduction={deduction}\n dictionary={formDictionary}\n onSaved={(saved, mode) => {\n onEvent(\n mode === 'create'\n ? componentEvents.EMPLOYEE_MANAGEMENT_DEDUCTIONS_EDIT_FORM_CREATED\n : componentEvents.EMPLOYEE_MANAGEMENT_DEDUCTIONS_EDIT_FORM_UPDATED,\n saved,\n )\n }}\n onCancel={() => {\n onEvent(componentEvents.EMPLOYEE_MANAGEMENT_DEDUCTIONS_EDIT_FORM_CANCELLED)\n }}\n />\n </BaseLayout>\n )\n}\n"],"names":["DeductionsEditForm","FallbackComponent","props","jsx","BaseBoundaries","DeductionsEditFormRoot","employeeId","editingDeductionId","dictionary","onEvent","useI18n","useComponentDictionary","list","useDeductionsList","formDictionary","useManagementDeductionsFormDictionary","BaseLayout","deduction","d","DeductionsForm","saved","mode","componentEvents"],"mappings":";;;;;;;AA2CO,SAASA,EAAmB;AAAA,EACjC,mBAAAC;AAAA,EACA,GAAGC;AACL,GAAgF;AAC9E,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,eAAc;AAAA,MACd,mBAAAH;AAAA,MAEA,UAAA,gBAAAE,EAACE,GAAA,EAAwB,GAAGH,EAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGzC;AAEA,SAASG,EAAuB;AAAA,EAC9B,YAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AACF,GAA4B;AAC1B,EAAAC,EAAQ,gCAAgC,GACxCC,EAAuB,kCAAkCH,CAAU;AAInE,QAAMI,IAAOC,EAAkB,EAAE,YAAAP,GAAY,GACvCQ,IAAiBC,EAAA;AAEvB,MAAIH,EAAK;AACP,6BAAQI,GAAA,EAAW,WAAS,IAAC,OAAOJ,EAAK,cAAc,QAAQ;AAGjE,QAAMK,IAAYV,IACbK,EAAK,KAAK,WAAW,KAAK,CAAAM,MAAKA,EAAE,SAASX,CAAkB,KAAK,OAClE;AAEJ,SACE,gBAAAJ,EAACa,GAAA,EAAW,OAAOJ,EAAK,cAAc,QACpC,UAAA,gBAAAT;AAAA,IAACgB;AAAA,IAAA;AAAA,MACC,YAAAb;AAAA,MACA,WAAAW;AAAA,MACA,YAAYH;AAAA,MACZ,SAAS,CAACM,GAAOC,MAAS;AACxB,QAAAZ;AAAA,UACEY,MAAS,WACLC,EAAgB,mDAChBA,EAAgB;AAAA,UACpBF;AAAA,QAAA;AAAA,MAEJ;AAAA,MACA,UAAU,MAAM;AACd,QAAAX,EAAQa,EAAgB,kDAAkD;AAAA,MAC5E;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"DeductionsEditForm.js","sources":["../../../../../../src/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.tsx"],"sourcesContent":["import { DeductionsForm } from '../../shared/DeductionsForm'\nimport { useDeductionsList } from '../../shared/useDeductionsList'\nimport { useManagementDeductionsFormDictionary } from './useFormDictionary'\nimport {\n BaseBoundaries,\n BaseLayout,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\n\n/**\n * Props for {@link DeductionsEditForm}.\n *\n * @public\n */\nexport interface DeductionsEditFormProps extends CommonComponentInterface<'Employee.Management.Deductions'> {\n /** The associated employee identifier. */\n employeeId: string\n /** When provided, the form opens in edit mode pre-populated with the\n * matching active deduction. Omit to open in add mode. */\n editingDeductionId?: string\n /** Callback invoked when the form emits an event. See the events table on {@link DeductionsEditForm} for the available event types and payloads. */\n onEvent: BaseComponentInterface['onEvent']\n}\n\n/**\n * Standalone add/edit surface for a single employee deduction.\n *\n * @remarks\n * Renders the inline form for a post-tax custom deduction or court-ordered garnishment. Looks up the row to edit by `editingDeductionId`; omit it to open in add mode. Resolves its text against the `Employee.Management.Deductions` translation namespace so partner overrides on that namespace flow into the form. For an orchestrated card-plus-form flow, use {@link Deductions}.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/management/deductions/editForm/created` | Fired after a new deduction is saved | The created `Garnishment` |\n * | `employee/management/deductions/editForm/updated` | Fired after an existing deduction is updated | The updated `Garnishment` |\n * | `employee/management/deductions/editForm/cancelled` | Fired when the user cancels the form | — |\n *\n * @param input - See {@link DeductionsEditFormProps}, plus a `FallbackComponent` override for the error boundary.\n * @returns The rendered add/edit form.\n * @public\n */\nexport function DeductionsEditForm({\n FallbackComponent,\n ...props\n}: DeductionsEditFormProps & Pick<BaseComponentInterface, 'FallbackComponent'>) {\n return (\n <BaseBoundaries\n componentName=\"Employee.Management.Deductions\"\n FallbackComponent={FallbackComponent}\n >\n <DeductionsEditFormRoot {...props} />\n </BaseBoundaries>\n )\n}\n\nfunction DeductionsEditFormRoot({\n employeeId,\n editingDeductionId,\n dictionary,\n onEvent,\n}: DeductionsEditFormProps) {\n useI18n('Employee.Management.Deductions')\n useComponentDictionary('Employee.Management.Deductions', dictionary)\n\n // React Query dedupes against any sibling consumer of this list, so this\n // is just a typed handle on the loaded row used to seed edit mode.\n const list = useDeductionsList({ employeeId })\n const formDictionary = useManagementDeductionsFormDictionary()\n\n if (list.isLoading) {\n return <BaseLayout isLoading error={list.errorHandling.errors} />\n }\n\n const deduction = editingDeductionId\n ? (list.data.deductions.find(d => d.uuid === editingDeductionId) ?? null)\n : null\n\n return (\n <BaseLayout error={list.errorHandling.errors}>\n <DeductionsForm\n employeeId={employeeId}\n deduction={deduction}\n dictionary={formDictionary}\n onSaved={(saved, mode) => {\n onEvent(\n mode === 'create'\n ? componentEvents.EMPLOYEE_MANAGEMENT_DEDUCTIONS_EDIT_FORM_CREATED\n : componentEvents.EMPLOYEE_MANAGEMENT_DEDUCTIONS_EDIT_FORM_UPDATED,\n saved,\n )\n }}\n onCancel={() => {\n onEvent(componentEvents.EMPLOYEE_MANAGEMENT_DEDUCTIONS_EDIT_FORM_CANCELLED)\n }}\n />\n </BaseLayout>\n )\n}\n"],"names":["DeductionsEditForm","FallbackComponent","props","jsx","BaseBoundaries","DeductionsEditFormRoot","employeeId","editingDeductionId","dictionary","onEvent","useI18n","useComponentDictionary","list","useDeductionsList","formDictionary","useManagementDeductionsFormDictionary","BaseLayout","deduction","d","DeductionsForm","saved","mode","componentEvents"],"mappings":";;;;;;;;AA2CO,SAASA,EAAmB;AAAA,EACjC,mBAAAC;AAAA,EACA,GAAGC;AACL,GAAgF;AAC9E,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,eAAc;AAAA,MACd,mBAAAH;AAAA,MAEA,UAAA,gBAAAE,EAACE,GAAA,EAAwB,GAAGH,EAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGzC;AAEA,SAASG,EAAuB;AAAA,EAC9B,YAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AACF,GAA4B;AAC1B,EAAAC,EAAQ,gCAAgC,GACxCC,EAAuB,kCAAkCH,CAAU;AAInE,QAAMI,IAAOC,EAAkB,EAAE,YAAAP,GAAY,GACvCQ,IAAiBC,EAAA;AAEvB,MAAIH,EAAK;AACP,6BAAQI,GAAA,EAAW,WAAS,IAAC,OAAOJ,EAAK,cAAc,QAAQ;AAGjE,QAAMK,IAAYV,IACbK,EAAK,KAAK,WAAW,KAAK,CAAAM,MAAKA,EAAE,SAASX,CAAkB,KAAK,OAClE;AAEJ,SACE,gBAAAJ,EAACa,GAAA,EAAW,OAAOJ,EAAK,cAAc,QACpC,UAAA,gBAAAT;AAAA,IAACgB;AAAA,IAAA;AAAA,MACC,YAAAb;AAAA,MACA,WAAAW;AAAA,MACA,YAAYH;AAAA,MACZ,SAAS,CAACM,GAAOC,MAAS;AACxB,QAAAZ;AAAA,UACEY,MAAS,WACLC,EAAgB,mDAChBA,EAAgB;AAAA,UACpBF;AAAA,QAAA;AAAA,MAEJ;AAAA,MACA,UAAU,MAAM;AACd,QAAAX,EAAQa,EAAgB,kDAAkD;AAAA,MAC5E;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -12,12 +12,10 @@ export interface DeductionsProps extends BaseComponentInterface<'Employee.Deduct
12
12
  * Onboarding step for collecting an employee's post-tax deductions and court-ordered garnishments.
13
13
  *
14
14
  * @remarks
15
- * On first mount, routes between an "include deductions?" prompt (when the employee has no active deductions) and a list view of existing deductions. From there, users add or edit deductions inline — post-tax custom deductions or court-ordered garnishments — and can complete the step with or without any active deductions.
15
+ * Renders the employee's current deductions as a list, with an empty state when none exist. Users add or edit deductions inline — post-tax custom deductions or court-ordered garnishments — and can complete the step with or without any active deductions.
16
16
  *
17
17
  * | Event | Description | Data |
18
18
  * | ----- | ----------- | ---- |
19
- * | `employee/deductions/include/yes` | Fired when the user chooses to add deductions from the include prompt | — |
20
- * | `employee/deductions/include/no` | Fired when the user chooses to skip deductions from the include prompt | — |
21
19
  * | `employee/deductions/add` | Fired when the user opens the form to add a new deduction | — |
22
20
  * | `employee/deductions/edit` | Fired when the user opens the form to edit an existing deduction | The matching `Garnishment` |
23
21
  * | `employee/deductions/created` | Fired after a new deduction is saved | The created `Garnishment` |
@@ -1,32 +1,27 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { createMachine as c } from "robot3";
3
- import { useMemo as u } from "react";
4
- import { useGarnishmentsListSuspense as a } from "@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsList";
5
- import { DeductionsListContextual as p, IncludeDeductionsContextual as d } from "./deductionsContextualComponents.js";
6
- import { deductionsMachine as f } from "./stateMachine.js";
7
- import { Flow as D } from "../../../Flow/Flow.js";
8
- import { BaseBoundaries as l } from "../../../Base/Base.js";
9
- import { useComponentDictionary as h, useI18n as x } from "../../../../i18n/I18n.js";
10
- function A({ employeeId: o, dictionary: t, onEvent: e }) {
11
- return /* @__PURE__ */ s(l, { componentName: "Employee.Deductions", children: /* @__PURE__ */ s(C, { employeeId: o, dictionary: t, onEvent: e }) });
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { createMachine as m } from "robot3";
3
+ import { useMemo as c } from "react";
4
+ import { DeductionsListContextual as s } from "./deductionsContextualComponents.js";
5
+ import { deductionsMachine as u } from "./stateMachine.js";
6
+ import { Flow as p } from "../../../Flow/Flow.js";
7
+ import { BaseBoundaries as f } from "../../../Base/Base.js";
8
+ import { useComponentDictionary as a, useI18n as d } from "../../../../i18n/I18n.js";
9
+ function j({ employeeId: o, dictionary: t, onEvent: e }) {
10
+ return /* @__PURE__ */ n(f, { componentName: "Employee.Deductions", children: /* @__PURE__ */ n(D, { employeeId: o, dictionary: t, onEvent: e }) });
12
11
  }
13
- function C({ employeeId: o, dictionary: t, onEvent: e }) {
14
- h("Employee.Deductions", t), x("Employee.Deductions");
15
- const { data: r } = a({ employeeId: o }), n = (r.garnishments ?? []).some((i) => i.active), m = u(
16
- () => c(
17
- n ? "list" : "include",
18
- f,
19
- (i) => ({
20
- ...i,
21
- component: n ? p : d,
22
- employeeId: o
23
- })
24
- ),
25
- [o, n]
12
+ function D({ employeeId: o, dictionary: t, onEvent: e }) {
13
+ a("Employee.Deductions", t), d("Employee.Deductions");
14
+ const i = c(
15
+ () => m("list", u, (r) => ({
16
+ ...r,
17
+ component: s,
18
+ employeeId: o
19
+ })),
20
+ [o]
26
21
  );
27
- return /* @__PURE__ */ s(D, { machine: m, onEvent: e });
22
+ return /* @__PURE__ */ n(p, { machine: i, onEvent: e });
28
23
  }
29
24
  export {
30
- A as Deductions
25
+ j as Deductions
31
26
  };
32
27
  //# sourceMappingURL=Deductions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Deductions.js","sources":["../../../../../src/components/Employee/Deductions/onboarding/Deductions.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { useGarnishmentsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsList'\nimport {\n IncludeDeductionsContextual,\n DeductionsListContextual,\n type DeductionsContextInterface,\n} from './deductionsContextualComponents'\nimport { deductionsMachine } from './stateMachine'\nimport { Flow } from '@/components/Flow/Flow'\nimport { BaseBoundaries, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useComponentDictionary, useI18n } from '@/i18n'\n\n/**\n * Props for {@link Deductions}.\n *\n * @public\n */\nexport interface DeductionsProps extends BaseComponentInterface<'Employee.Deductions'> {\n /** The associated employee identifier. */\n employeeId: string\n}\n\n/**\n * Onboarding step for collecting an employee's post-tax deductions and court-ordered garnishments.\n *\n * @remarks\n * On first mount, routes between an \"include deductions?\" prompt (when the employee has no active deductions) and a list view of existing deductions. From there, users add or edit deductions inline — post-tax custom deductions or court-ordered garnishments — and can complete the step with or without any active deductions.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/deductions/include/yes` | Fired when the user chooses to add deductions from the include prompt | — |\n * | `employee/deductions/include/no` | Fired when the user chooses to skip deductions from the include prompt | — |\n * | `employee/deductions/add` | Fired when the user opens the form to add a new deduction | — |\n * | `employee/deductions/edit` | Fired when the user opens the form to edit an existing deduction | The matching `Garnishment` |\n * | `employee/deductions/created` | Fired after a new deduction is saved | The created `Garnishment` |\n * | `employee/deductions/updated` | Fired after an existing deduction is updated | The updated `Garnishment` |\n * | `employee/deductions/deleted` | Fired after a deduction is deleted and others remain | The deleted `Garnishment` |\n * | `employee/deductions/deletedEmpty` | Fired after the last deduction is deleted, leaving none | — |\n * | `employee/deductions/cancel` | Fired when the user cancels the form while other deductions exist | — |\n * | `employee/deductions/cancelEmpty` | Fired when the user cancels the form and no deductions remain | — |\n * | `employee/deductions/done` | Fired when the step is complete and the parent flow can advance | — |\n *\n * @param props - See {@link DeductionsProps}.\n * @returns The deductions onboarding step.\n * @public\n * @group Block Components\n *\n * @example\n * ```tsx\n * import { EmployeeOnboarding } from '@gusto/embedded-react-sdk'\n *\n * function MyComponent() {\n * return (\n * <EmployeeOnboarding.Deductions\n * employeeId=\"4b3f930f-82cd-48a8-b797-798686e12e5e\"\n * onEvent={() => {}}\n * />\n * )\n * }\n * ```\n */\nexport function Deductions({ employeeId, dictionary, onEvent }: DeductionsProps) {\n return (\n <BaseBoundaries componentName=\"Employee.Deductions\">\n <DeductionsRoot employeeId={employeeId} dictionary={dictionary} onEvent={onEvent} />\n </BaseBoundaries>\n )\n}\n\nfunction DeductionsRoot({ employeeId, dictionary, onEvent }: DeductionsProps) {\n useComponentDictionary('Employee.Deductions', dictionary)\n useI18n('Employee.Deductions')\n\n // Used only to pick the machine's initial state. The list rendered inside\n // each contextual wrapper uses a non-suspense hook (React Query dedupes).\n const { data } = useGarnishmentsListSuspense({ employeeId })\n const hasActiveDeductions = (data.garnishments ?? []).some(g => g.active)\n\n const machine = useMemo(\n () =>\n createMachine(\n hasActiveDeductions ? 'list' : 'include',\n deductionsMachine,\n (initialContext: DeductionsContextInterface) => ({\n ...initialContext,\n component: hasActiveDeductions ? DeductionsListContextual : IncludeDeductionsContextual,\n employeeId,\n }),\n ),\n [employeeId, hasActiveDeductions],\n )\n\n return <Flow machine={machine} onEvent={onEvent} />\n}\n"],"names":["Deductions","employeeId","dictionary","onEvent","jsx","BaseBoundaries","DeductionsRoot","useComponentDictionary","useI18n","data","useGarnishmentsListSuspense","hasActiveDeductions","g","machine","useMemo","createMachine","deductionsMachine","initialContext","DeductionsListContextual","IncludeDeductionsContextual","Flow"],"mappings":";;;;;;;;;AA8DO,SAASA,EAAW,EAAE,YAAAC,GAAY,YAAAC,GAAY,SAAAC,KAA4B;AAC/E,SACE,gBAAAC,EAACC,KAAe,eAAc,uBAC5B,4BAACC,GAAA,EAAe,YAAAL,GAAwB,YAAAC,GAAwB,SAAAC,EAAA,CAAkB,EAAA,CACpF;AAEJ;AAEA,SAASG,EAAe,EAAE,YAAAL,GAAY,YAAAC,GAAY,SAAAC,KAA4B;AAC5E,EAAAI,EAAuB,uBAAuBL,CAAU,GACxDM,EAAQ,qBAAqB;AAI7B,QAAM,EAAE,MAAAC,EAAA,IAASC,EAA4B,EAAE,YAAAT,GAAY,GACrDU,KAAuBF,EAAK,gBAAgB,CAAA,GAAI,KAAK,CAAAG,MAAKA,EAAE,MAAM,GAElEC,IAAUC;AAAA,IACd,MACEC;AAAA,MACEJ,IAAsB,SAAS;AAAA,MAC/BK;AAAA,MACA,CAACC,OAAgD;AAAA,QAC/C,GAAGA;AAAA,QACH,WAAWN,IAAsBO,IAA2BC;AAAA,QAC5D,YAAAlB;AAAA,MAAA;AAAA,IACF;AAAA,IAEJ,CAACA,GAAYU,CAAmB;AAAA,EAAA;AAGlC,SAAO,gBAAAP,EAACgB,GAAA,EAAK,SAAAP,GAAkB,SAAAV,EAAA,CAAkB;AACnD;"}
1
+ {"version":3,"file":"Deductions.js","sources":["../../../../../src/components/Employee/Deductions/onboarding/Deductions.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport {\n DeductionsListContextual,\n type DeductionsContextInterface,\n} from './deductionsContextualComponents'\nimport { deductionsMachine } from './stateMachine'\nimport { Flow } from '@/components/Flow/Flow'\nimport { BaseBoundaries, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useComponentDictionary, useI18n } from '@/i18n'\n\n/**\n * Props for {@link Deductions}.\n *\n * @public\n */\nexport interface DeductionsProps extends BaseComponentInterface<'Employee.Deductions'> {\n /** The associated employee identifier. */\n employeeId: string\n}\n\n/**\n * Onboarding step for collecting an employee's post-tax deductions and court-ordered garnishments.\n *\n * @remarks\n * Renders the employee's current deductions as a list, with an empty state when none exist. Users add or edit deductions inline — post-tax custom deductions or court-ordered garnishments — and can complete the step with or without any active deductions.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/deductions/add` | Fired when the user opens the form to add a new deduction | — |\n * | `employee/deductions/edit` | Fired when the user opens the form to edit an existing deduction | The matching `Garnishment` |\n * | `employee/deductions/created` | Fired after a new deduction is saved | The created `Garnishment` |\n * | `employee/deductions/updated` | Fired after an existing deduction is updated | The updated `Garnishment` |\n * | `employee/deductions/deleted` | Fired after a deduction is deleted and others remain | The deleted `Garnishment` |\n * | `employee/deductions/deletedEmpty` | Fired after the last deduction is deleted, leaving none | — |\n * | `employee/deductions/cancel` | Fired when the user cancels the form while other deductions exist | — |\n * | `employee/deductions/cancelEmpty` | Fired when the user cancels the form and no deductions remain | — |\n * | `employee/deductions/done` | Fired when the step is complete and the parent flow can advance | — |\n *\n * @param props - See {@link DeductionsProps}.\n * @returns The deductions onboarding step.\n * @public\n * @group Block Components\n *\n * @example\n * ```tsx\n * import { EmployeeOnboarding } from '@gusto/embedded-react-sdk'\n *\n * function MyComponent() {\n * return (\n * <EmployeeOnboarding.Deductions\n * employeeId=\"4b3f930f-82cd-48a8-b797-798686e12e5e\"\n * onEvent={() => {}}\n * />\n * )\n * }\n * ```\n */\nexport function Deductions({ employeeId, dictionary, onEvent }: DeductionsProps) {\n return (\n <BaseBoundaries componentName=\"Employee.Deductions\">\n <DeductionsRoot employeeId={employeeId} dictionary={dictionary} onEvent={onEvent} />\n </BaseBoundaries>\n )\n}\n\nfunction DeductionsRoot({ employeeId, dictionary, onEvent }: DeductionsProps) {\n useComponentDictionary('Employee.Deductions', dictionary)\n useI18n('Employee.Deductions')\n\n const machine = useMemo(\n () =>\n createMachine('list', deductionsMachine, (initialContext: DeductionsContextInterface) => ({\n ...initialContext,\n component: DeductionsListContextual,\n employeeId,\n })),\n [employeeId],\n )\n\n return <Flow machine={machine} onEvent={onEvent} />\n}\n"],"names":["Deductions","employeeId","dictionary","onEvent","jsx","BaseBoundaries","DeductionsRoot","useComponentDictionary","useI18n","machine","useMemo","createMachine","deductionsMachine","initialContext","DeductionsListContextual","Flow"],"mappings":";;;;;;;;AA0DO,SAASA,EAAW,EAAE,YAAAC,GAAY,YAAAC,GAAY,SAAAC,KAA4B;AAC/E,SACE,gBAAAC,EAACC,KAAe,eAAc,uBAC5B,4BAACC,GAAA,EAAe,YAAAL,GAAwB,YAAAC,GAAwB,SAAAC,EAAA,CAAkB,EAAA,CACpF;AAEJ;AAEA,SAASG,EAAe,EAAE,YAAAL,GAAY,YAAAC,GAAY,SAAAC,KAA4B;AAC5E,EAAAI,EAAuB,uBAAuBL,CAAU,GACxDM,EAAQ,qBAAqB;AAE7B,QAAMC,IAAUC;AAAA,IACd,MACEC,EAAc,QAAQC,GAAmB,CAACC,OAAgD;AAAA,MACxF,GAAGA;AAAA,MACH,WAAWC;AAAA,MACX,YAAAb;AAAA,IAAA,EACA;AAAA,IACJ,CAACA,CAAU;AAAA,EAAA;AAGb,SAAO,gBAAAG,EAACW,GAAA,EAAK,SAAAN,GAAkB,SAAAN,EAAA,CAAkB;AACnD;"}