@gusto/embedded-react-sdk 0.37.0 → 0.38.0-rc.2

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 (969) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +3 -0
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  4. package/dist/UNSTABLE_Hooks.js +65 -47
  5. package/dist/UNSTABLE_Hooks.js.map +1 -1
  6. package/dist/assets/icons/filter-funnel.svg.js +10 -0
  7. package/dist/assets/icons/filter-funnel.svg.js.map +1 -0
  8. package/dist/assets/icons/percent-circle.svg.js +10 -0
  9. package/dist/assets/icons/percent-circle.svg.js.map +1 -0
  10. package/dist/assets/icons/plus-circle.svg.js +1 -1
  11. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  12. package/dist/components/Base/Base.js +2 -3
  13. package/dist/components/Base/Base.js.map +1 -1
  14. package/dist/components/Base/createCompoundContext.js.map +1 -1
  15. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +5 -3
  16. package/dist/components/Common/DataView/DataCards/DataCards.js +58 -39
  17. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  18. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +9 -7
  19. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  20. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +4 -2
  21. package/dist/components/Common/DataView/DataTable/DataTable.js +95 -76
  22. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  23. package/dist/components/Common/DataView/DataView.d.ts +4 -3
  24. package/dist/components/Common/DataView/DataView.js +24 -22
  25. package/dist/components/Common/DataView/DataView.js.map +1 -1
  26. package/dist/components/Common/DataView/useDataView.d.ts +33 -6
  27. package/dist/components/Common/DataView/useDataView.js +23 -20
  28. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  29. package/dist/components/Common/DataView/useSelectionState.d.ts +5 -0
  30. package/dist/components/Common/DataView/useSelectionState.js +8 -0
  31. package/dist/components/Common/DataView/useSelectionState.js.map +1 -0
  32. package/dist/components/Common/DateRangeFilter/DateRangeFilter.d.ts +19 -0
  33. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +94 -0
  34. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -0
  35. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js +14 -0
  36. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js.map +1 -0
  37. package/dist/components/Common/DetailViewLayout/DetailViewLayout.d.ts +2 -0
  38. package/dist/components/Common/DetailViewLayout/DetailViewLayoutTypes.d.ts +40 -0
  39. package/dist/components/Common/DetailViewLayout/index.d.ts +3 -0
  40. package/dist/components/Common/EmptyData/EmptyData.d.ts +2 -1
  41. package/dist/components/Common/EmptyData/EmptyData.js +15 -13
  42. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  43. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +6 -4
  44. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  45. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +26 -24
  46. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  47. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  48. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
  49. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  50. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
  51. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
  52. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  53. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +1 -1
  54. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +40 -38
  55. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  56. package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
  57. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
  58. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
  59. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
  60. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +27 -25
  61. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  62. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +1 -1
  63. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +34 -32
  64. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  65. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +1 -1
  66. package/dist/components/Common/Fields/SelectField/SelectField.js +34 -32
  67. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  68. package/dist/components/Common/Fields/SwitchField/SwitchField.js +26 -24
  69. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  70. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
  71. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
  72. package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -24
  73. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  74. package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
  75. package/dist/components/Common/Fields/hooks/useField.js +37 -33
  76. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  77. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.d.ts +2 -2
  78. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js +2 -2
  79. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -1
  80. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +21 -20
  81. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
  82. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes.d.ts +5 -0
  83. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.d.ts +1 -1
  84. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js +10 -8
  85. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js.map +1 -1
  86. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  87. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
  88. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  89. package/dist/components/Common/SignatureForm/SignatureFormActions.js +9 -12
  90. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  91. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -18
  92. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  93. package/dist/components/Common/UI/Box/Box.d.ts +1 -1
  94. package/dist/components/Common/UI/Box/Box.js +9 -8
  95. package/dist/components/Common/UI/Box/Box.js.map +1 -1
  96. package/dist/components/Common/UI/Box/Box.module.scss.js +12 -8
  97. package/dist/components/Common/UI/Box/Box.module.scss.js.map +1 -1
  98. package/dist/components/Common/UI/Box/BoxTypes.d.ts +2 -9
  99. package/dist/components/Common/UI/BoxHeader/BoxHeader.d.ts +2 -0
  100. package/dist/components/Common/UI/BoxHeader/BoxHeader.js +23 -0
  101. package/dist/components/Common/UI/BoxHeader/BoxHeader.js.map +1 -0
  102. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js +8 -0
  103. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js.map +1 -0
  104. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +10 -0
  105. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js +7 -0
  106. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -0
  107. package/dist/components/Common/UI/BoxHeader/index.d.ts +2 -0
  108. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +17 -17
  109. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js.map +1 -1
  110. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +5 -0
  111. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -1
  112. package/dist/components/Common/UI/Button/Button.js +33 -29
  113. package/dist/components/Common/UI/Button/Button.js.map +1 -1
  114. package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
  115. package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
  116. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
  117. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  118. package/dist/components/Common/UI/Checkbox/Checkbox.js +60 -49
  119. package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
  120. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +10 -6
  121. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js.map +1 -1
  122. package/dist/components/Common/UI/ComboBox/ComboBox.js +1 -1
  123. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  124. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
  125. package/dist/components/Common/UI/DatePicker/DatePicker.d.ts +1 -1
  126. package/dist/components/Common/UI/DatePicker/DatePicker.js +88 -69
  127. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  128. package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +13 -0
  129. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.d.ts +2 -0
  130. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js +72 -0
  131. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js.map +1 -0
  132. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js +30 -0
  133. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js.map +1 -0
  134. package/dist/components/Common/UI/DateRangePicker/DateRangePickerTypes.d.ts +14 -0
  135. package/dist/components/Common/UI/DateRangePicker/index.d.ts +2 -0
  136. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +19 -12
  137. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
  138. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +6 -4
  139. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js.map +1 -1
  140. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +6 -1
  141. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js +4 -1
  142. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
  143. package/dist/components/Common/UI/Heading/Heading.d.ts +1 -1
  144. package/dist/components/Common/UI/Heading/Heading.js +11 -9
  145. package/dist/components/Common/UI/Heading/Heading.js.map +1 -1
  146. package/dist/components/Common/UI/Heading/Heading.module.scss.js +15 -15
  147. package/dist/components/Common/UI/Heading/HeadingTypes.d.ts +1 -1
  148. package/dist/components/Common/UI/Input/Input.js.map +1 -1
  149. package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
  150. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
  151. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  152. package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
  153. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  154. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +1 -1
  155. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  156. package/dist/components/Common/UI/Select/Select.js +22 -22
  157. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  158. package/dist/components/Common/UI/Select/SelectTypes.d.ts +1 -1
  159. package/dist/components/Common/UI/Table/Table.js +12 -12
  160. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  161. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  162. package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -3
  163. package/dist/components/Common/UI/Table/TableTypes.js +3 -3
  164. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  165. package/dist/components/Common/UI/TextArea/TextArea.js +1 -1
  166. package/dist/components/Common/UI/TextArea/TextArea.js.map +1 -1
  167. package/dist/components/Common/UI/TextInput/TextInput.js +13 -13
  168. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  169. package/dist/components/Common/index.d.ts +2 -0
  170. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
  171. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  172. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -5
  173. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  174. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -4
  175. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  176. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
  177. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  178. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
  179. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  180. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  181. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  182. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -4
  183. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  184. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
  185. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  186. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
  187. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  188. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  189. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  190. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
  191. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  192. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  193. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  194. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -10
  195. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  196. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
  197. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  198. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  199. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  200. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +8 -10
  201. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  202. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -10
  203. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  204. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
  205. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  206. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -4
  207. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  208. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
  209. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  210. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  211. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  212. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  213. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  214. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  215. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  216. package/dist/components/Company/FederalTaxes/Actions.js +7 -9
  217. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  218. package/dist/components/Company/FederalTaxes/FederalTaxes.js +22 -26
  219. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  220. package/dist/components/Company/FederalTaxes/Form.js +7 -9
  221. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  222. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -9
  223. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  224. package/dist/components/Company/Industry/Actions.js +7 -9
  225. package/dist/components/Company/Industry/Actions.js.map +1 -1
  226. package/dist/components/Company/Industry/Context.js +6 -7
  227. package/dist/components/Company/Industry/Context.js.map +1 -1
  228. package/dist/components/Company/Industry/Edit.js +4 -7
  229. package/dist/components/Company/Industry/Edit.js.map +1 -1
  230. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -10
  231. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  232. package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
  233. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  234. package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
  235. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  236. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  237. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  238. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -8
  239. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  240. package/dist/components/Company/Locations/LocationsList/List.js +15 -16
  241. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  242. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
  243. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  244. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  245. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  246. package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
  247. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  248. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
  249. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  250. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
  251. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  252. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  253. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  254. package/dist/components/Company/PaySchedule/PaySchedule.js +94 -91
  255. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  256. package/dist/components/Company/PaySchedule/_parts/Actions.js +16 -18
  257. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  258. package/dist/components/Company/PaySchedule/_parts/Edit.js +47 -39
  259. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  260. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
  261. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  262. package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
  263. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  264. package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +6 -5
  265. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
  266. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  267. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -4
  268. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  269. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +33 -33
  270. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  271. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  272. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  273. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -4
  274. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  275. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -7
  276. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  277. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +14 -14
  278. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  279. package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +2 -2
  280. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  281. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  282. package/dist/components/Contractor/Address/Address.js +3 -7
  283. package/dist/components/Contractor/Address/Address.js.map +1 -1
  284. package/dist/components/Contractor/Address/Form.js +2 -4
  285. package/dist/components/Contractor/Address/Form.js.map +1 -1
  286. package/dist/components/Contractor/Address/useAddress.js +5 -6
  287. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  288. package/dist/components/Contractor/ContractorList/index.js +33 -34
  289. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  290. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  291. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  292. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -13
  293. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  294. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  295. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  296. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
  297. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  298. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +135 -126
  299. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  300. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +2 -1
  301. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +72 -71
  302. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  303. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  304. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -1
  305. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
  306. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  307. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +2 -1
  308. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +83 -84
  309. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  310. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
  311. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  312. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +10 -10
  313. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  314. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +67 -79
  315. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  316. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +10 -12
  317. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -1
  318. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +47 -49
  319. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  320. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +63 -66
  321. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  322. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js +4 -4
  323. package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
  324. package/dist/components/Contractor/Profile/useContractorProfile.js +31 -30
  325. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  326. package/dist/components/Contractor/Submit/Submit.d.ts +2 -2
  327. package/dist/components/Contractor/Submit/Submit.js +44 -46
  328. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  329. package/dist/components/Employee/Compensation/Actions.js +12 -14
  330. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  331. package/dist/components/Employee/Compensation/Compensation.js +80 -77
  332. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  333. package/dist/components/Employee/Compensation/Edit.js +27 -28
  334. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  335. package/dist/components/Employee/Compensation/List.js +22 -23
  336. package/dist/components/Employee/Compensation/List.js.map +1 -1
  337. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +13 -0
  338. package/dist/components/Employee/Dashboard/BasicDetailsView.js +107 -0
  339. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -0
  340. package/dist/components/Employee/Dashboard/Dashboard.d.ts +5 -0
  341. package/dist/components/Employee/Dashboard/Dashboard.js +146 -0
  342. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -0
  343. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +5 -0
  344. package/dist/components/Employee/Dashboard/DashboardComponents.js +12 -0
  345. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -0
  346. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +5 -0
  347. package/dist/components/Employee/Dashboard/DashboardFlow.js +25 -0
  348. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -0
  349. package/dist/components/Employee/Dashboard/DocumentsView.d.ts +7 -0
  350. package/dist/components/Employee/Dashboard/DocumentsView.js +51 -0
  351. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -0
  352. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +22 -0
  353. package/dist/components/Employee/Dashboard/JobAndPayView.js +211 -0
  354. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -0
  355. package/dist/components/Employee/Dashboard/TaxesView.d.ts +13 -0
  356. package/dist/components/Employee/Dashboard/TaxesView.js +97 -0
  357. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -0
  358. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  359. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +8 -0
  360. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -0
  361. package/dist/components/Employee/Dashboard/hooks/index.d.ts +9 -0
  362. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.d.ts +20 -0
  363. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js +29 -0
  364. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js.map +1 -0
  365. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +30 -0
  366. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +52 -0
  367. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -0
  368. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.d.ts +16 -0
  369. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +22 -0
  370. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -0
  371. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.d.ts +20 -0
  372. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js +24 -0
  373. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js.map +1 -0
  374. package/dist/components/Employee/Dashboard/index.d.ts +14 -0
  375. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +57 -53
  376. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  377. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +17 -18
  378. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  379. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  380. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -12
  381. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  382. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
  383. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  384. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
  385. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  386. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -8
  387. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  388. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
  389. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  390. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
  391. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  392. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  393. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  394. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +22 -22
  395. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  396. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
  397. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  398. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +12 -14
  399. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  400. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  401. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  402. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  403. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  404. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
  405. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  406. package/dist/components/Employee/EmployeeList/EmployeeList.d.ts +3 -7
  407. package/dist/components/Employee/EmployeeList/EmployeeList.js +45 -95
  408. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  409. package/dist/components/Employee/EmployeeList/EmployeeListView.d.ts +15 -0
  410. package/dist/components/Employee/EmployeeList/EmployeeListView.js +130 -0
  411. package/dist/components/Employee/EmployeeList/EmployeeListView.js.map +1 -0
  412. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.d.ts +9 -0
  413. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js +81 -0
  414. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js.map +1 -0
  415. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.d.ts +17 -0
  416. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js +193 -0
  417. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js.map +1 -0
  418. package/dist/components/Employee/EmployeeList/index.d.ts +3 -0
  419. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +36 -23
  420. package/dist/components/Employee/EmployeeList/useEmployeeList.js +114 -19
  421. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  422. package/dist/components/Employee/FederalTaxes/Actions.js +7 -9
  423. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  424. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -12
  425. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  426. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
  427. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  428. package/dist/components/Employee/Landing/Landing.js +14 -15
  429. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  430. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js +4 -4
  431. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  432. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -0
  433. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +14 -8
  434. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  435. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +10 -11
  436. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  437. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  438. package/dist/components/Employee/PaymentMethod/Actions.js +6 -8
  439. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  440. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
  441. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  442. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +12 -13
  443. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  444. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +44 -43
  445. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  446. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
  447. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  448. package/dist/components/Employee/PaymentMethod/Split.js +9 -10
  449. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  450. package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +1 -0
  451. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
  452. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  453. package/dist/components/Employee/Profile/Actions.js +7 -9
  454. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  455. package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -16
  456. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  457. package/dist/components/Employee/Profile/HomeAddress.js +9 -10
  458. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  459. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -12
  460. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  461. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  462. package/dist/components/Employee/Profile/useProfile.js +3 -4
  463. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  464. package/dist/components/Employee/StateTaxes/Actions.js +8 -10
  465. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  466. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
  467. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  468. package/dist/components/Employee/Taxes/Actions.js +8 -10
  469. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  470. package/dist/components/Employee/Taxes/FederalForm.js +10 -12
  471. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  472. package/dist/components/Employee/Taxes/useTaxes.js +3 -4
  473. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  474. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +48 -48
  475. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  476. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +14 -17
  477. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  478. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +1 -0
  479. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +37 -33
  480. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  481. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +1 -0
  482. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +57 -45
  483. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  484. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +8 -11
  485. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  486. package/dist/components/Employee/index.d.ts +3 -0
  487. package/dist/components/Employee/index.js +38 -34
  488. package/dist/components/Employee/index.js.map +1 -1
  489. package/dist/components/Flow/Flow.js +20 -23
  490. package/dist/components/Flow/Flow.js.map +1 -1
  491. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
  492. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  493. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
  494. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  495. package/dist/components/InformationRequests/InformationRequests.js +3 -4
  496. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  497. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  498. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
  499. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  500. package/dist/components/Payroll/Dismissal/DismissalFlow.js +14 -14
  501. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  502. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +2 -2
  503. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +21 -20
  504. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  505. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +2 -1
  506. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +57 -55
  507. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  508. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +8 -11
  509. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  510. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
  511. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +85 -74
  512. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  513. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +7 -7
  514. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
  515. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  516. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +24 -18
  517. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  518. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +2 -0
  519. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +28 -22
  520. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  521. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +92 -84
  522. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  523. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +30 -32
  524. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  525. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +17 -24
  526. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  527. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +1 -1
  528. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +21 -21
  529. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  530. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +3 -3
  531. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +13 -13
  532. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  533. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -8
  534. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  535. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -13
  536. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  537. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
  538. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  539. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  540. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +194 -190
  541. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  542. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  543. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +69 -69
  544. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  545. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +4 -3
  546. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +102 -76
  547. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  548. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +2 -2
  549. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +235 -238
  550. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  551. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +7 -7
  552. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +11 -0
  553. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +63 -30
  554. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  555. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +2 -1
  556. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +43 -41
  557. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  558. package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +1 -1
  559. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +1 -1
  560. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +62 -51
  561. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  562. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +13 -6
  563. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -1
  564. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +22 -20
  565. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
  566. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
  567. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  568. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +35 -14
  569. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -1
  570. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +80 -69
  571. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  572. package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +0 -1
  573. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +59 -66
  574. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  575. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +5 -4
  576. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +97 -105
  577. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  578. package/dist/components/Payroll/PayrollList/PayrollList.js +98 -64
  579. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  580. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +11 -3
  581. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +225 -123
  582. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  583. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +10 -8
  584. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  585. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +106 -105
  586. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  587. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  588. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +222 -213
  589. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  590. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -1
  591. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
  592. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  593. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +103 -114
  594. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  595. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +16 -18
  596. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js.map +1 -1
  597. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
  598. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  599. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
  600. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  601. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
  602. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  603. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +1 -1
  604. package/dist/components/Payroll/Transition/TransitionFlow.js +29 -27
  605. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
  606. package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +1 -0
  607. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
  608. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +67 -63
  609. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  610. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +12 -14
  611. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  612. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +1 -1
  613. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +5 -5
  614. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
  615. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +13 -13
  616. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  617. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +44 -55
  618. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  619. package/dist/components/Payroll/helpers.d.ts +6 -1
  620. package/dist/components/Payroll/helpers.js +81 -74
  621. package/dist/components/Payroll/helpers.js.map +1 -1
  622. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  623. package/dist/components/Payroll/usePreparedPayrollData.js +7 -8
  624. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  625. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +2 -2
  626. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +6 -9
  627. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -1
  628. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +1 -1
  629. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -1
  630. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +1 -2
  631. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -1
  632. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.d.ts +48 -0
  633. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js +94 -0
  634. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js.map +1 -0
  635. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +3 -2
  636. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +24 -23
  637. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -1
  638. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +3 -2
  639. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +22 -17
  640. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -1
  641. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +3 -2
  642. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +31 -30
  643. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -1
  644. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +3 -2
  645. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +27 -26
  646. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -1
  647. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +3 -2
  648. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +28 -27
  649. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -1
  650. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +3 -2
  651. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +24 -23
  652. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -1
  653. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +5 -4
  654. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +28 -27
  655. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -1
  656. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +1 -1
  657. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -1
  658. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +5 -5
  659. package/dist/components/UNSTABLE_Hooks/form/preprocessors.d.ts +3 -0
  660. package/dist/components/UNSTABLE_Hooks/form/preprocessors.js +15 -0
  661. package/dist/components/UNSTABLE_Hooks/form/preprocessors.js.map +1 -0
  662. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
  663. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +14 -0
  664. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
  665. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.d.ts +17 -0
  666. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js +21 -0
  667. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js.map +1 -0
  668. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +1 -1
  669. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +8 -8
  670. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
  671. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +22 -0
  672. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
  673. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
  674. package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +1 -1
  675. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -1
  676. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +3 -5
  677. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -1
  678. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +48 -42
  679. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +48 -79
  680. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -1
  681. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +2 -2
  682. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -1
  683. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +2 -2
  684. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +13 -15
  685. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +109 -110
  686. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
  687. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +16 -18
  688. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -1
  689. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +13 -4
  690. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +31 -25
  691. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
  692. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +5 -4
  693. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +27 -27
  694. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -1
  695. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +1 -1
  696. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +8 -22
  697. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +81 -84
  698. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  699. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.d.ts +5 -0
  700. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js +172 -0
  701. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js.map +1 -0
  702. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js +14 -0
  703. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js.map +1 -0
  704. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.d.ts +23 -0
  705. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js +37 -0
  706. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js.map +1 -0
  707. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/index.d.ts +7 -0
  708. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.d.ts +55 -0
  709. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js +54 -0
  710. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js.map +1 -0
  711. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.d.ts +69 -0
  712. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js +180 -0
  713. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js.map +1 -0
  714. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.d.ts +5 -0
  715. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js +69 -0
  716. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js.map +1 -0
  717. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.d.ts +9 -0
  718. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js +14 -0
  719. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js.map +1 -0
  720. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/index.d.ts +7 -0
  721. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.d.ts +25 -0
  722. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js +24 -0
  723. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js.map +1 -0
  724. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.d.ts +57 -0
  725. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js +101 -0
  726. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js.map +1 -0
  727. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.d.ts +5 -0
  728. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js +71 -0
  729. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js.map +1 -0
  730. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.d.ts +5 -0
  731. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js +179 -0
  732. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js.map +1 -0
  733. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.d.ts +53 -0
  734. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js +164 -0
  735. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js.map +1 -0
  736. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/index.d.ts +9 -0
  737. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.d.ts +150 -0
  738. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js +152 -0
  739. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -0
  740. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.d.ts +151 -0
  741. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js +172 -0
  742. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -0
  743. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +15 -17
  744. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -1
  745. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +1 -1
  746. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -1
  747. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +1 -1
  748. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +9 -10
  749. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +85 -83
  750. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  751. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +8 -4
  752. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +18 -17
  753. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -1
  754. package/dist/components/UNSTABLE_Hooks/index.d.ts +10 -7
  755. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +5 -0
  756. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +46 -0
  757. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  758. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +5 -0
  759. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +46 -0
  760. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  761. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.d.ts +5 -0
  762. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +49 -0
  763. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  764. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +2 -0
  765. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +55 -0
  766. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  767. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +25 -0
  768. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.d.ts +5 -0
  769. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +73 -0
  770. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +1 -0
  771. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.d.ts +2 -0
  772. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +122 -0
  773. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  774. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js +8 -0
  775. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js.map +1 -0
  776. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListTypes.d.ts +17 -0
  777. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.d.ts +5 -0
  778. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +46 -0
  779. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  780. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +7 -0
  781. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +29 -0
  782. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  783. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +2 -0
  784. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +66 -0
  785. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  786. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +6 -0
  787. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.d.ts +2 -0
  788. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js +25 -0
  789. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  790. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +29 -0
  791. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +103 -0
  792. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  793. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/index.d.ts +3 -0
  794. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.d.ts +14 -0
  795. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +290 -0
  796. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  797. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts +1 -0
  798. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +8 -0
  799. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +71 -0
  800. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  801. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +12 -0
  802. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +1 -0
  803. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +2 -0
  804. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +206 -0
  805. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  806. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +20 -0
  807. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/index.d.ts +6 -0
  808. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +5 -0
  809. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +35 -0
  810. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  811. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +5 -0
  812. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +35 -0
  813. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  814. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +5 -0
  815. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +35 -0
  816. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +1 -0
  817. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +5 -0
  818. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +35 -0
  819. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +1 -0
  820. package/dist/components/UNSTABLE_TimeOff/index.d.ts +25 -0
  821. package/dist/components/UNSTABLE_TimeOff/index.js +27 -0
  822. package/dist/components/UNSTABLE_TimeOff/index.js.map +1 -0
  823. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  824. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +26 -0
  825. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/index.d.ts +4 -0
  826. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.d.ts +30 -0
  827. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js +97 -0
  828. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +1 -0
  829. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  830. package/dist/components/index.d.ts +1 -0
  831. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +66 -62
  832. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  833. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  834. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +10 -0
  835. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +28 -21
  836. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  837. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +4 -0
  838. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  839. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +10 -12
  840. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  841. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
  842. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  843. package/dist/contexts/ThemeProvider/theme.d.ts +2 -0
  844. package/dist/contexts/ThemeProvider/theme.js +4 -2
  845. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  846. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  847. package/dist/helpers/breadcrumbHelpers.d.ts +14 -0
  848. package/dist/helpers/breadcrumbHelpers.js +35 -26
  849. package/dist/helpers/breadcrumbHelpers.js.map +1 -1
  850. package/dist/helpers/buildQueryErrorHandling.d.ts +22 -0
  851. package/dist/helpers/buildQueryErrorHandling.js +11 -0
  852. package/dist/helpers/buildQueryErrorHandling.js.map +1 -0
  853. package/dist/{components/UNSTABLE_Hooks → helpers}/collectErrors.d.ts +1 -1
  854. package/dist/{components/UNSTABLE_Hooks → helpers}/collectErrors.js +1 -1
  855. package/dist/helpers/collectErrors.js.map +1 -0
  856. package/dist/helpers/dateFormatting.d.ts +2 -0
  857. package/dist/helpers/dateFormatting.js +38 -33
  858. package/dist/helpers/dateFormatting.js.map +1 -1
  859. package/dist/helpers/formattedStrings.js +40 -33
  860. package/dist/helpers/formattedStrings.js.map +1 -1
  861. package/dist/hooks/useCompanyPaymentSpeed.d.ts +6 -0
  862. package/dist/hooks/useCompanyPaymentSpeed.js +19 -0
  863. package/dist/hooks/useCompanyPaymentSpeed.js.map +1 -0
  864. package/dist/hooks/useCompanyPaymentSpeed.test.d.ts +1 -0
  865. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.d.ts +20 -0
  866. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.js +38 -0
  867. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.js.map +1 -0
  868. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.test.d.ts +1 -0
  869. package/dist/{components/UNSTABLE_Hooks → hooks}/useErrorHandling.d.ts +2 -2
  870. package/dist/{components/UNSTABLE_Hooks → hooks}/useErrorHandling.js +1 -1
  871. package/dist/hooks/useErrorHandling.js.map +1 -0
  872. package/dist/hooks/useErrorHandling.test.d.ts +1 -0
  873. package/dist/hooks/usePagination/usePagination.d.ts +2 -0
  874. package/dist/hooks/usePagination/usePagination.js +32 -29
  875. package/dist/hooks/usePagination/usePagination.js.map +1 -1
  876. package/dist/i18n/I18n.js +21 -21
  877. package/dist/i18n/I18n.js.map +1 -1
  878. package/dist/i18n/en/Company.PaySchedule.json.js +6 -6
  879. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +24 -0
  880. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
  881. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +32 -0
  882. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js.map +1 -0
  883. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +28 -0
  884. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
  885. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js +28 -0
  886. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js.map +1 -0
  887. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +38 -0
  888. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
  889. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
  890. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
  891. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
  892. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
  893. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -34
  894. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  895. package/dist/i18n/en/Employee.Dashboard.json.js +26 -0
  896. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -0
  897. package/dist/i18n/en/Employee.EmployeeList.json.js +22 -20
  898. package/dist/i18n/en/Employee.EmployeeList.json.js.map +1 -1
  899. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +40 -0
  900. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -0
  901. package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
  902. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  903. package/dist/i18n/en/Payroll.OffCycle.json.js +1 -1
  904. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +5 -5
  905. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
  906. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +38 -34
  907. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  908. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -25
  909. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  910. package/dist/i18n/en/Payroll.PayrollHistory.json.js +12 -12
  911. package/dist/i18n/en/Payroll.PayrollList.json.js +30 -22
  912. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  913. package/dist/i18n/en/Payroll.PayrollOverview.json.js +64 -58
  914. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  915. package/dist/i18n/en/Payroll.TransitionCreation.json.js +9 -9
  916. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +8 -8
  917. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js +24 -0
  918. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js.map +1 -0
  919. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js +20 -0
  920. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js.map +1 -0
  921. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js +22 -0
  922. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js.map +1 -0
  923. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js +70 -0
  924. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js.map +1 -0
  925. package/dist/i18n/en/common.json.d.ts +3 -1
  926. package/dist/i18n/en/common.json.js +5 -5
  927. package/dist/index.js +18 -16
  928. package/dist/index.js.map +1 -1
  929. package/dist/shared/constants.d.ts +56 -0
  930. package/dist/shared/constants.js +100 -70
  931. package/dist/shared/constants.js.map +1 -1
  932. package/dist/style.css +1 -1
  933. package/dist/types/i18next.d.ts +817 -12
  934. package/dist/{components/UNSTABLE_Hooks/types.d.ts → types/sdkHooks.d.ts} +29 -5
  935. package/docs/reference/endpoint-inventory.json +659 -391
  936. package/package.json +33 -24
  937. package/dist/components/Employee/EmployeeList/Actions.d.ts +0 -1
  938. package/dist/components/Employee/EmployeeList/Actions.js +0 -16
  939. package/dist/components/Employee/EmployeeList/Actions.js.map +0 -1
  940. package/dist/components/Employee/EmployeeList/Head.d.ts +0 -1
  941. package/dist/components/Employee/EmployeeList/Head.js +0 -15
  942. package/dist/components/Employee/EmployeeList/Head.js.map +0 -1
  943. package/dist/components/Employee/EmployeeList/List.d.ts +0 -2
  944. package/dist/components/Employee/EmployeeList/List.js +0 -125
  945. package/dist/components/Employee/EmployeeList/List.js.map +0 -1
  946. package/dist/components/Employee/EmployeeList/List.module.scss.js +0 -8
  947. package/dist/components/Employee/EmployeeList/List.module.scss.js.map +0 -1
  948. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js +0 -8
  949. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js.map +0 -1
  950. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +0 -1
  951. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +0 -26
  952. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +0 -24
  953. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +0 -1
  954. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +0 -3
  955. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +0 -14
  956. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +0 -1
  957. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +0 -6
  958. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +0 -14
  959. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +0 -1
  960. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +0 -27
  961. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +0 -4
  962. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +0 -9
  963. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +0 -1
  964. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +0 -1
  965. package/dist/helpers/requiredIf.d.ts +0 -13
  966. package/dist/helpers/requiredIf.js +0 -8
  967. package/dist/helpers/requiredIf.js.map +0 -1
  968. /package/dist/components/UNSTABLE_Hooks/form/{deriveFieldsMetadata.test.d.ts → buildFormSchema.test.d.ts} +0 -0
  969. /package/dist/components/UNSTABLE_Hooks/{useErrorHandling.test.d.ts → hooks/useCompensationForm/compensationSchemaParity.test.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"CompensationForm.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { SDKFormProvider } from '../../form/SDKFormProvider'\nimport { useCompensationForm } from './useCompensationForm'\nimport type { UseCompensationFormProps } from './useCompensationForm'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { BaseBoundaries, BaseLayout, type BaseComponentInterface } from '@/components/Base'\nimport { Form } from '@/components/Common/Form'\nimport { ActionsLayout } from '@/components/Common'\nimport { componentEvents, FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\n\nexport interface CompensationFormProps\n extends UseCompensationFormProps, Omit<BaseComponentInterface, 'defaultValues'> {}\n\nfunction CompensationFormRoot({ onEvent, dictionary, ...hookProps }: CompensationFormProps) {\n useI18n('UNSTABLE.CompensationForm')\n useComponentDictionary('UNSTABLE.CompensationForm', dictionary)\n const { t } = useTranslation('UNSTABLE.CompensationForm')\n const Components = useComponentContext()\n const formatCurrency = useNumberFormatter('currency')\n const compensation = useCompensationForm(hookProps)\n\n if (compensation.isLoading) {\n return <BaseLayout isLoading error={compensation.errorHandling.errors} />\n }\n\n const { Fields } = compensation.form\n\n const handleSubmit = async () => {\n const result = await compensation.actions.onSubmit({\n onJobCreated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_CREATED, job)\n },\n onJobUpdated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_UPDATED, job)\n },\n onCompensationUpdated: comp => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_UPDATED, comp)\n },\n })\n if (result) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE, result.data)\n }\n }\n\n return (\n <BaseLayout error={compensation.errorHandling.errors}>\n <SDKFormProvider formHookResult={compensation}>\n <Form\n onSubmit={e => {\n e.preventDefault()\n void handleSubmit()\n }}\n >\n <Components.Heading as=\"h2\">\n {compensation.status.mode === 'create' ? t('addTitle') : t('editTitle')}\n </Components.Heading>\n\n {Fields.StartDate && (\n <Fields.StartDate\n label={t('startDateLabel')}\n validationMessages={{\n REQUIRED: t('fieldValidations.startDate.REQUIRED'),\n }}\n />\n )}\n\n <Fields.JobTitle\n label={t('jobTitle')}\n validationMessages={{\n REQUIRED: t('fieldValidations.jobTitle.REQUIRED'),\n }}\n />\n\n {Fields.FlsaStatus && (\n <Fields.FlsaStatus\n label={t('employeeClassification')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{\n ClassificationLink: <Components.Link />,\n }}\n />\n }\n getOptionLabel={status => t(`flsaStatusLabels.${status}`, status)}\n validationMessages={{\n REQUIRED: t('fieldValidations.flsaStatus.REQUIRED'),\n }}\n />\n )}\n\n <Fields.Rate\n label={t('amount')}\n validationMessages={{\n REQUIRED: t('fieldValidations.rate.REQUIRED'),\n RATE_MINIMUM: t('fieldValidations.rate.RATE_MINIMUM'),\n RATE_EXEMPT_THRESHOLD: t('fieldValidations.rate.RATE_EXEMPT_THRESHOLD', {\n limit: formatCurrency(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n />\n\n <Fields.PaymentUnit\n label={t('paymentUnitLabel')}\n description={t('paymentUnitDescription')}\n getOptionLabel={unit => t(`paymentUnitOptions.${unit}`, unit)}\n validationMessages={{\n REQUIRED: t('fieldValidations.paymentUnit.REQUIRED'),\n }}\n />\n\n {Fields.AdjustForMinimumWage && (\n <Fields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n />\n )}\n\n {Fields.MinimumWageId && (\n <Fields.MinimumWageId\n label={t('minimumWageLabel')}\n description={t('minimumWageDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.minimumWageId.REQUIRED'),\n }}\n />\n )}\n\n {Fields.TwoPercentShareholder && (\n <Fields.TwoPercentShareholder label={t('twoPercentStakeholderLabel')} />\n )}\n\n {Fields.StateWcCovered && (\n <Fields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={t('stateWcCoveredDescription')}\n getOptionLabel={key =>\n key === 'yes' ? t('stateWcCoveredYes') : t('stateWcCoveredNo')\n }\n />\n )}\n\n {Fields.StateWcClassCode && (\n <Fields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.stateWcClassCode.REQUIRED'),\n }}\n />\n )}\n\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={compensation.status.isPending}>\n {t('saveNewJobCta')}\n </Components.Button>\n </ActionsLayout>\n </Form>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n\nexport function CompensationForm({ FallbackComponent, ...props }: CompensationFormProps) {\n return (\n <BaseBoundaries componentName=\"UNSTABLE.CompensationForm\" FallbackComponent={FallbackComponent}>\n <CompensationFormRoot {...props} />\n </BaseBoundaries>\n )\n}\n"],"names":["CompensationFormRoot","onEvent","dictionary","hookProps","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","formatCurrency","useNumberFormatter","compensation","useCompensationForm","BaseLayout","Fields","handleSubmit","result","job","componentEvents","comp","jsx","SDKFormProvider","jsxs","Form","e","Trans","status","FLSA_OVERTIME_SALARY_LIMIT","unit","key","ActionsLayout","CompensationForm","FallbackComponent","props","BaseBoundaries"],"mappings":"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"}
1
+ {"version":3,"file":"CompensationForm.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { SDKFormProvider } from '../../form/SDKFormProvider'\nimport { useCompensationForm } from './useCompensationForm'\nimport type { UseCompensationFormProps } from './useCompensationForm'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { BaseBoundaries, BaseLayout, type BaseComponentInterface } from '@/components/Base'\nimport { Form } from '@/components/Common/Form'\nimport { ActionsLayout } from '@/components/Common'\nimport { componentEvents, FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\n\nexport interface CompensationFormProps\n extends UseCompensationFormProps, Omit<BaseComponentInterface, 'defaultValues'> {}\n\nfunction CompensationFormRoot({ onEvent, dictionary, ...hookProps }: CompensationFormProps) {\n useI18n('UNSTABLE.CompensationForm')\n useComponentDictionary('UNSTABLE.CompensationForm', dictionary)\n const { t } = useTranslation('UNSTABLE.CompensationForm')\n const Components = useComponentContext()\n const formatCurrency = useNumberFormatter('currency')\n const compensation = useCompensationForm(hookProps)\n\n if (compensation.isLoading) {\n return <BaseLayout isLoading error={compensation.errorHandling.errors} />\n }\n\n const { Fields } = compensation.form\n\n const handleSubmit = async () => {\n const result = await compensation.actions.onSubmit({\n onJobCreated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_CREATED, job)\n },\n onJobUpdated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_UPDATED, job)\n },\n onCompensationUpdated: comp => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_UPDATED, comp)\n },\n })\n if (result) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE, result.data)\n }\n }\n\n return (\n <BaseLayout error={compensation.errorHandling.errors}>\n <SDKFormProvider formHookResult={compensation}>\n <Form\n onSubmit={e => {\n e.preventDefault()\n void handleSubmit()\n }}\n >\n <Components.Heading as=\"h2\">\n {compensation.status.mode === 'create' ? t('addTitle') : t('editTitle')}\n </Components.Heading>\n\n {Fields.StartDate && (\n <Fields.StartDate\n label={t('startDateLabel')}\n validationMessages={{\n REQUIRED: t('fieldValidations.startDate.REQUIRED'),\n }}\n />\n )}\n\n <Fields.JobTitle\n label={t('jobTitle')}\n validationMessages={{\n REQUIRED: t('fieldValidations.jobTitle.REQUIRED'),\n }}\n />\n\n {Fields.FlsaStatus && (\n <Fields.FlsaStatus\n label={t('employeeClassification')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{\n ClassificationLink: <Components.Link />,\n }}\n />\n }\n getOptionLabel={status => t(`flsaStatusLabels.${status}`, status)}\n validationMessages={{\n REQUIRED: t('fieldValidations.flsaStatus.REQUIRED'),\n }}\n />\n )}\n\n <Fields.Rate\n label={t('amount')}\n validationMessages={{\n REQUIRED: t('fieldValidations.rate.REQUIRED'),\n RATE_MINIMUM: t('fieldValidations.rate.RATE_MINIMUM'),\n RATE_EXEMPT_THRESHOLD: t('fieldValidations.rate.RATE_EXEMPT_THRESHOLD', {\n limit: formatCurrency(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n />\n\n <Fields.PaymentUnit\n label={t('paymentUnitLabel')}\n description={t('paymentUnitDescription')}\n getOptionLabel={unit => t(`paymentUnitOptions.${unit}`, unit)}\n validationMessages={{\n REQUIRED: t('fieldValidations.paymentUnit.REQUIRED'),\n }}\n />\n\n {Fields.AdjustForMinimumWage && (\n <Fields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n />\n )}\n\n {Fields.MinimumWageId && (\n <Fields.MinimumWageId\n label={t('minimumWageLabel')}\n description={t('minimumWageDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.minimumWageId.REQUIRED'),\n }}\n />\n )}\n\n {Fields.TwoPercentShareholder && (\n <Fields.TwoPercentShareholder label={t('twoPercentStakeholderLabel')} />\n )}\n\n {Fields.StateWcCovered && (\n <Fields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={t('stateWcCoveredDescription')}\n getOptionLabel={key => (key ? t('stateWcCoveredYes') : t('stateWcCoveredNo'))}\n />\n )}\n\n {Fields.StateWcClassCode && (\n <Fields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.stateWcClassCode.REQUIRED'),\n }}\n />\n )}\n\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={compensation.status.isPending}>\n {t('saveNewJobCta')}\n </Components.Button>\n </ActionsLayout>\n </Form>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n\nexport function CompensationForm({ FallbackComponent, ...props }: CompensationFormProps) {\n return (\n <BaseBoundaries componentName=\"UNSTABLE.CompensationForm\" FallbackComponent={FallbackComponent}>\n <CompensationFormRoot {...props} />\n </BaseBoundaries>\n )\n}\n"],"names":["CompensationFormRoot","onEvent","dictionary","hookProps","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","formatCurrency","useNumberFormatter","compensation","useCompensationForm","BaseLayout","Fields","handleSubmit","result","job","componentEvents","comp","jsx","SDKFormProvider","jsxs","Form","e","Trans","status","FLSA_OVERTIME_SALARY_LIMIT","unit","key","ActionsLayout","CompensationForm","FallbackComponent","props","BaseBoundaries"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { RequiredFields } from '../../form/resolveRequiredFields';
2
+ import { OptionalFieldsToRequire } from '../../form/buildFormSchema';
3
3
  export declare const CompensationErrorCodes: {
4
4
  readonly REQUIRED: "REQUIRED";
5
5
  readonly RATE_MINIMUM: "RATE_MINIMUM";
@@ -26,53 +26,56 @@ declare const fieldValidators: {
26
26
  Year: "Year";
27
27
  Paycheck: "Paycheck";
28
28
  }>;
29
- rate: z.ZodOptional<z.ZodNumber>;
30
- startDate: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
29
+ rate: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
30
+ startDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
31
31
  adjustForMinimumWage: z.ZodBoolean;
32
- minimumWageId: z.ZodOptional<z.ZodString>;
33
- stateWcCovered: z.ZodOptional<z.ZodBoolean>;
34
- stateWcClassCode: z.ZodOptional<z.ZodString>;
35
- twoPercentShareholder: z.ZodOptional<z.ZodBoolean>;
32
+ minimumWageId: z.ZodString;
33
+ stateWcCovered: z.ZodPipe<z.ZodTransform<boolean | undefined, unknown>, z.ZodBoolean>;
34
+ stateWcClassCode: z.ZodString;
35
+ twoPercentShareholder: z.ZodBoolean;
36
36
  };
37
- export type CompensationField = Exclude<keyof typeof fieldValidators, 'adjustForMinimumWage' | 'minimumWageId' | 'stateWcCovered' | 'stateWcClassCode' | 'twoPercentShareholder'>;
38
37
  export type CompensationFormData = {
39
38
  [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>;
40
39
  };
40
+ declare const requiredFieldsConfig: {
41
+ jobTitle: "create";
42
+ flsaStatus: "create";
43
+ paymentUnit: "create";
44
+ rate: "create";
45
+ startDate: "create";
46
+ minimumWageId: (data: {
47
+ jobTitle: string;
48
+ flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt" | "Owner" | "Commission Only Exempt" | "Commission Only Nonexempt";
49
+ paymentUnit: "Hour" | "Week" | "Month" | "Year" | "Paycheck";
50
+ rate: number;
51
+ startDate: string | null;
52
+ adjustForMinimumWage: boolean;
53
+ minimumWageId: string;
54
+ stateWcCovered: boolean;
55
+ stateWcClassCode: string;
56
+ twoPercentShareholder: boolean;
57
+ }) => boolean;
58
+ stateWcClassCode: (data: {
59
+ jobTitle: string;
60
+ flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt" | "Owner" | "Commission Only Exempt" | "Commission Only Nonexempt";
61
+ paymentUnit: "Hour" | "Week" | "Month" | "Year" | "Paycheck";
62
+ rate: number;
63
+ startDate: string | null;
64
+ adjustForMinimumWage: boolean;
65
+ minimumWageId: string;
66
+ stateWcCovered: boolean;
67
+ stateWcClassCode: string;
68
+ twoPercentShareholder: boolean;
69
+ }) => boolean;
70
+ };
71
+ export type CompensationOptionalFieldsToRequire = OptionalFieldsToRequire<typeof requiredFieldsConfig>;
41
72
  export type CompensationFormOutputs = CompensationFormData;
42
73
  interface CompensationSchemaOptions {
43
74
  mode?: 'create' | 'update';
44
- requiredFields?: RequiredFields<CompensationField>;
75
+ optionalFieldsToRequire?: CompensationOptionalFieldsToRequire;
45
76
  withStartDateField?: boolean;
46
77
  }
47
- export declare function createCompensationSchema(options?: CompensationSchemaOptions): z.ZodObject<{
48
- rate: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNumber>;
49
- startDate: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodISODate>;
50
- stateWcCovered: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
51
- jobTitle: z.ZodString;
52
- flsaStatus: z.ZodEnum<{
53
- Exempt: "Exempt";
54
- "Salaried Nonexempt": "Salaried Nonexempt";
55
- Nonexempt: "Nonexempt";
56
- Owner: "Owner";
57
- "Commission Only Exempt": "Commission Only Exempt";
58
- "Commission Only Nonexempt": "Commission Only Nonexempt";
59
- }>;
60
- paymentUnit: z.ZodEnum<{
61
- Hour: "Hour";
62
- Week: "Week";
63
- Month: "Month";
64
- Year: "Year";
65
- Paycheck: "Paycheck";
66
- }>;
67
- adjustForMinimumWage: z.ZodBoolean;
68
- minimumWageId: z.ZodOptional<z.ZodString>;
69
- stateWcClassCode: z.ZodOptional<z.ZodString>;
70
- twoPercentShareholder: z.ZodOptional<z.ZodBoolean>;
71
- }, z.core.$strip>;
72
- export declare const CompensationSchema: z.ZodObject<{
73
- rate: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNumber>;
74
- startDate: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodISODate>;
75
- stateWcCovered: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
78
+ export declare function createCompensationSchema(options?: CompensationSchemaOptions): import('../../form').BuildFormSchemaResult<{
76
79
  jobTitle: z.ZodString;
77
80
  flsaStatus: z.ZodEnum<{
78
81
  Exempt: "Exempt";
@@ -89,9 +92,12 @@ export declare const CompensationSchema: z.ZodObject<{
89
92
  Year: "Year";
90
93
  Paycheck: "Paycheck";
91
94
  }>;
95
+ rate: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
96
+ startDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
92
97
  adjustForMinimumWage: z.ZodBoolean;
93
- minimumWageId: z.ZodOptional<z.ZodString>;
94
- stateWcClassCode: z.ZodOptional<z.ZodString>;
95
- twoPercentShareholder: z.ZodOptional<z.ZodBoolean>;
96
- }, z.core.$strip>;
98
+ minimumWageId: z.ZodString;
99
+ stateWcCovered: z.ZodPipe<z.ZodTransform<boolean | undefined, unknown>, z.ZodBoolean>;
100
+ stateWcClassCode: z.ZodString;
101
+ twoPercentShareholder: z.ZodBoolean;
102
+ }>;
97
103
  export {};
@@ -1,17 +1,17 @@
1
1
  import { z as e } from "zod";
2
- import { composeFormSchema as u } from "../../form/composeFormSchema.js";
3
- import { filterRequiredFields as M } from "../../form/resolveRequiredFields.js";
4
- import { FlsaStatus as t, FLSA_OVERTIME_SALARY_LIMIT as R, PAY_PERIODS as r } from "../../../../shared/constants.js";
5
- import { yearlyRate as N } from "../../../../helpers/payRateCalculator.js";
6
- const a = {
2
+ import { buildFormSchema as d } from "../../form/buildFormSchema.js";
3
+ import { coerceStringBoolean as i, coerceToISODate as N, coerceNaN as m } from "../../form/preprocessors.js";
4
+ import { FlsaStatus as t, FLSA_OVERTIME_SALARY_LIMIT as O, PAY_PERIODS as r } from "../../../../shared/constants.js";
5
+ import { yearlyRate as T } from "../../../../helpers/payRateCalculator.js";
6
+ const E = {
7
7
  REQUIRED: "REQUIRED",
8
8
  RATE_MINIMUM: "RATE_MINIMUM",
9
9
  RATE_EXEMPT_THRESHOLD: "RATE_EXEMPT_THRESHOLD",
10
10
  PAYMENT_UNIT_OWNER: "PAYMENT_UNIT_OWNER",
11
11
  PAYMENT_UNIT_COMMISSION: "PAYMENT_UNIT_COMMISSION",
12
12
  RATE_COMMISSION_ZERO: "RATE_COMMISSION_ZERO"
13
- }, O = {
14
- jobTitle: e.string().min(1, { message: a.REQUIRED }),
13
+ }, n = {
14
+ jobTitle: e.string(),
15
15
  flsaStatus: e.enum([
16
16
  t.EXEMPT,
17
17
  t.SALARIED_NONEXEMPT,
@@ -27,95 +27,64 @@ const a = {
27
27
  r.YEAR,
28
28
  r.PAYCHECK
29
29
  ]),
30
- rate: e.number().optional(),
31
- startDate: e.iso.date().nullable().optional(),
30
+ rate: e.preprocess(m(0), e.number()),
31
+ startDate: e.preprocess(N, e.iso.date().nullable()),
32
32
  adjustForMinimumWage: e.boolean(),
33
- minimumWageId: e.string().optional(),
34
- stateWcCovered: e.boolean().optional(),
35
- stateWcClassCode: e.string().optional(),
36
- twoPercentShareholder: e.boolean().optional()
37
- }, c = /* @__PURE__ */ new Set([
38
- "adjustForMinimumWage",
39
- "minimumWageId",
40
- "stateWcCovered",
41
- "stateWcClassCode",
42
- "twoPercentShareholder"
43
- ]), S = {
44
- ...O,
45
- rate: e.preprocess((s) => Number.isNaN(s) ? void 0 : s, e.number()),
46
- startDate: e.preprocess((s) => {
47
- if (s instanceof Date) return s.toISOString().split("T")[0];
48
- if (!(s === null || s === ""))
49
- return s;
50
- }, e.iso.date()),
51
- stateWcCovered: e.preprocess((s) => typeof s == "string" ? s === "true" : s, e.boolean()).optional()
52
- }, T = /* @__PURE__ */ new Set([
53
- "jobTitle",
54
- "flsaStatus",
55
- "rate",
56
- "paymentUnit"
57
- ]), _ = /* @__PURE__ */ new Set([]);
58
- function C(s, o) {
59
- s.adjustForMinimumWage && (!s.minimumWageId || s.minimumWageId.trim() === "") && o.addIssue({
60
- code: e.ZodIssueCode.custom,
61
- path: ["minimumWageId"],
62
- message: a.REQUIRED
63
- }), s.stateWcCovered === !0 && (!s.stateWcClassCode || s.stateWcClassCode.trim() === "") && o.addIssue({
64
- code: e.ZodIssueCode.custom,
65
- path: ["stateWcClassCode"],
66
- message: a.REQUIRED
67
- });
68
- const { flsaStatus: i, paymentUnit: E, rate: d } = s;
69
- i === t.EXEMPT || i === t.SALARIED_NONEXEMPT || i === t.NONEXEMPT ? (i === t.EXEMPT && d !== void 0 && N(d, E) < R && o.addIssue({
70
- code: e.ZodIssueCode.custom,
71
- path: ["rate"],
72
- message: a.RATE_EXEMPT_THRESHOLD
73
- }), d === void 0 ? o.addIssue({
33
+ minimumWageId: e.string(),
34
+ // Radio group delivers 'true'/'false' strings; coerceStringBoolean converts to boolean
35
+ stateWcCovered: e.preprocess(i, e.boolean()),
36
+ stateWcClassCode: e.string(),
37
+ twoPercentShareholder: e.boolean()
38
+ }, u = {
39
+ jobTitle: "create",
40
+ flsaStatus: "create",
41
+ paymentUnit: "create",
42
+ rate: "create",
43
+ startDate: "create",
44
+ minimumWageId: (o) => o.adjustForMinimumWage,
45
+ stateWcClassCode: (o) => String(o.stateWcCovered) === "true"
46
+ };
47
+ function _(o, a) {
48
+ const { flsaStatus: s, paymentUnit: I, rate: M } = o;
49
+ s === t.EXEMPT || s === t.SALARIED_NONEXEMPT || s === t.NONEXEMPT ? M < 1 ? a.addIssue({
74
50
  code: e.ZodIssueCode.custom,
75
51
  path: ["rate"],
76
- message: a.REQUIRED
77
- }) : d < 1 && o.addIssue({
52
+ message: E.RATE_MINIMUM
53
+ }) : s === t.EXEMPT && T(M, I) < O && a.addIssue({
78
54
  code: e.ZodIssueCode.custom,
79
55
  path: ["rate"],
80
- message: a.RATE_MINIMUM
81
- })) : i === t.OWNER ? (E !== r.PAYCHECK && o.addIssue({
56
+ message: E.RATE_EXEMPT_THRESHOLD
57
+ }) : s === t.OWNER ? (I !== r.PAYCHECK && a.addIssue({
82
58
  code: e.ZodIssueCode.custom,
83
59
  path: ["paymentUnit"],
84
- message: a.PAYMENT_UNIT_OWNER
85
- }), d === void 0 ? o.addIssue({
86
- code: e.ZodIssueCode.custom,
87
- path: ["rate"],
88
- message: a.REQUIRED
89
- }) : d < 1 && o.addIssue({
60
+ message: E.PAYMENT_UNIT_OWNER
61
+ }), M < 1 && a.addIssue({
90
62
  code: e.ZodIssueCode.custom,
91
63
  path: ["rate"],
92
- message: a.RATE_MINIMUM
93
- })) : [t.COMMISSION_ONLY_EXEMPT, t.COMMISSION_ONLY_NONEXEMPT].includes(i) && (E !== r.YEAR && o.addIssue({
64
+ message: E.RATE_MINIMUM
65
+ })) : (s === t.COMMISSION_ONLY_EXEMPT || s === t.COMMISSION_ONLY_NONEXEMPT) && (I !== r.YEAR && a.addIssue({
94
66
  code: e.ZodIssueCode.custom,
95
67
  path: ["paymentUnit"],
96
- message: a.PAYMENT_UNIT_COMMISSION
97
- }), d !== 0 && o.addIssue({
68
+ message: E.PAYMENT_UNIT_COMMISSION
69
+ }), M !== 0 && a.addIssue({
98
70
  code: e.ZodIssueCode.custom,
99
71
  path: ["rate"],
100
- message: a.RATE_COMMISSION_ZERO
72
+ message: E.RATE_COMMISSION_ZERO
101
73
  }));
102
74
  }
103
- function p(s = {}) {
104
- const { mode: o = "create", requiredFields: i, withStartDateField: E = !0 } = s, d = E ? i : M(i, "startDate"), n = new Set(T);
105
- return E && n.add("startDate"), u({
106
- fieldValidators: S,
107
- fixedFields: c,
108
- requiredOnCreate: n,
109
- requiredOnUpdate: _,
110
- mode: o,
111
- requiredFields: d
112
- }).superRefine((I, m) => {
113
- C(I, m);
75
+ function A(o = {}) {
76
+ const { mode: a = "create", optionalFieldsToRequire: s, withStartDateField: I = !0 } = o;
77
+ return d(n, {
78
+ requiredFieldsConfig: u,
79
+ requiredErrorCode: E.REQUIRED,
80
+ mode: a,
81
+ optionalFieldsToRequire: s,
82
+ excludeFields: I ? [] : ["startDate"],
83
+ superRefine: _
114
84
  });
115
85
  }
116
- p();
117
86
  export {
118
- a as CompensationErrorCodes,
119
- p as createCompensationSchema
87
+ E as CompensationErrorCodes,
88
+ A as createCompensationSchema
120
89
  };
121
90
  //# sourceMappingURL=compensationSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compensationSchema.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport { composeFormSchema } from '../../form/composeFormSchema'\nimport { filterRequiredFields, type RequiredFields } from '../../form/resolveRequiredFields'\nimport { FLSA_OVERTIME_SALARY_LIMIT, FlsaStatus, PAY_PERIODS } from '@/shared/constants'\nimport { yearlyRate } from '@/helpers/payRateCalculator'\n\nexport const CompensationErrorCodes = {\n REQUIRED: 'REQUIRED',\n RATE_MINIMUM: 'RATE_MINIMUM',\n RATE_EXEMPT_THRESHOLD: 'RATE_EXEMPT_THRESHOLD',\n PAYMENT_UNIT_OWNER: 'PAYMENT_UNIT_OWNER',\n PAYMENT_UNIT_COMMISSION: 'PAYMENT_UNIT_COMMISSION',\n RATE_COMMISSION_ZERO: 'RATE_COMMISSION_ZERO',\n} as const\n\nexport type CompensationErrorCode =\n (typeof CompensationErrorCodes)[keyof typeof CompensationErrorCodes]\n\nconst fieldValidators = {\n jobTitle: z.string().min(1, { message: CompensationErrorCodes.REQUIRED }),\n flsaStatus: z.enum([\n FlsaStatus.EXEMPT,\n FlsaStatus.SALARIED_NONEXEMPT,\n FlsaStatus.NONEXEMPT,\n FlsaStatus.OWNER,\n FlsaStatus.COMMISSION_ONLY_EXEMPT,\n FlsaStatus.COMMISSION_ONLY_NONEXEMPT,\n ]),\n paymentUnit: z.enum([\n PAY_PERIODS.HOUR,\n PAY_PERIODS.WEEK,\n PAY_PERIODS.MONTH,\n PAY_PERIODS.YEAR,\n PAY_PERIODS.PAYCHECK,\n ]),\n rate: z.number().optional(),\n startDate: z.iso.date().nullable().optional(),\n adjustForMinimumWage: z.boolean(),\n minimumWageId: z.string().optional(),\n stateWcCovered: z.boolean().optional(),\n stateWcClassCode: z.string().optional(),\n twoPercentShareholder: z.boolean().optional(),\n}\n\nconst FIXED_FIELDS = new Set([\n 'adjustForMinimumWage',\n 'minimumWageId',\n 'stateWcCovered',\n 'stateWcClassCode',\n 'twoPercentShareholder',\n])\n\nexport type CompensationField = Exclude<\n keyof typeof fieldValidators,\n | 'adjustForMinimumWage'\n | 'minimumWageId'\n | 'stateWcCovered'\n | 'stateWcClassCode'\n | 'twoPercentShareholder'\n>\n\nexport type CompensationFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\nexport type CompensationFormOutputs = CompensationFormData\n\nconst runtimeFieldValidators = {\n ...fieldValidators,\n rate: z.preprocess(val => (Number.isNaN(val) ? undefined : val), z.number()),\n startDate: z.preprocess(val => {\n if (val instanceof Date) return val.toISOString().split('T')[0]\n if (val === null || val === '') return undefined\n return val\n }, z.iso.date()),\n stateWcCovered: z\n .preprocess(val => (typeof val === 'string' ? val === 'true' : val), z.boolean())\n .optional(),\n}\n\nconst REQUIRED_ON_CREATE = new Set<CompensationField>([\n 'jobTitle',\n 'flsaStatus',\n 'rate',\n 'paymentUnit',\n])\nconst REQUIRED_ON_UPDATE = new Set<CompensationField>([])\n\ninterface CompensationSchemaOptions {\n mode?: 'create' | 'update'\n requiredFields?: RequiredFields<CompensationField>\n withStartDateField?: boolean\n}\n\nfunction compensationSuperRefine(data: CompensationFormData, ctx: z.RefinementCtx) {\n if (data.adjustForMinimumWage && (!data.minimumWageId || data.minimumWageId.trim() === '')) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['minimumWageId'],\n message: CompensationErrorCodes.REQUIRED,\n })\n }\n\n if (\n data.stateWcCovered === true &&\n (!data.stateWcClassCode || data.stateWcClassCode.trim() === '')\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['stateWcClassCode'],\n message: CompensationErrorCodes.REQUIRED,\n })\n }\n\n const { flsaStatus, paymentUnit, rate } = data\n\n if (\n flsaStatus === FlsaStatus.EXEMPT ||\n flsaStatus === FlsaStatus.SALARIED_NONEXEMPT ||\n flsaStatus === FlsaStatus.NONEXEMPT\n ) {\n if (\n flsaStatus === FlsaStatus.EXEMPT &&\n rate !== undefined &&\n yearlyRate(rate, paymentUnit) < FLSA_OVERTIME_SALARY_LIMIT\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_EXEMPT_THRESHOLD,\n })\n }\n\n if (rate === undefined) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.REQUIRED,\n })\n } else if (rate < 1) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_MINIMUM,\n })\n }\n } else if (flsaStatus === FlsaStatus.OWNER) {\n if (paymentUnit !== PAY_PERIODS.PAYCHECK) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['paymentUnit'],\n message: CompensationErrorCodes.PAYMENT_UNIT_OWNER,\n })\n }\n if (rate === undefined) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.REQUIRED,\n })\n } else if (rate < 1) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_MINIMUM,\n })\n }\n } else if (\n [FlsaStatus.COMMISSION_ONLY_EXEMPT, FlsaStatus.COMMISSION_ONLY_NONEXEMPT].includes(flsaStatus)\n ) {\n if (paymentUnit !== PAY_PERIODS.YEAR) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['paymentUnit'],\n message: CompensationErrorCodes.PAYMENT_UNIT_COMMISSION,\n })\n }\n if (rate !== 0) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_COMMISSION_ZERO,\n })\n }\n }\n}\n\nexport function createCompensationSchema(options: CompensationSchemaOptions = {}) {\n const { mode = 'create', requiredFields, withStartDateField = true } = options\n\n const effectiveRequiredFields = withStartDateField\n ? requiredFields\n : filterRequiredFields(requiredFields, 'startDate')\n\n const effectiveRequiredOnCreate = new Set(REQUIRED_ON_CREATE)\n if (withStartDateField) {\n effectiveRequiredOnCreate.add('startDate')\n }\n\n const baseSchema = composeFormSchema({\n fieldValidators: runtimeFieldValidators,\n fixedFields: FIXED_FIELDS,\n requiredOnCreate: effectiveRequiredOnCreate,\n requiredOnUpdate: REQUIRED_ON_UPDATE,\n mode,\n requiredFields: effectiveRequiredFields,\n })\n\n return baseSchema.superRefine((data, ctx) => {\n compensationSuperRefine(data as CompensationFormData, ctx)\n })\n}\n\nexport const CompensationSchema = createCompensationSchema()\n"],"names":["CompensationErrorCodes","fieldValidators","z","FlsaStatus","PAY_PERIODS","FIXED_FIELDS","runtimeFieldValidators","val","REQUIRED_ON_CREATE","REQUIRED_ON_UPDATE","compensationSuperRefine","data","ctx","flsaStatus","paymentUnit","rate","yearlyRate","FLSA_OVERTIME_SALARY_LIMIT","createCompensationSchema","options","mode","requiredFields","withStartDateField","effectiveRequiredFields","filterRequiredFields","effectiveRequiredOnCreate","composeFormSchema"],"mappings":"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"}
1
+ {"version":3,"file":"compensationSchema.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n type OptionalFieldsToRequire,\n} from '../../form/buildFormSchema'\nimport { coerceNaN, coerceToISODate, coerceStringBoolean } from '../../form/preprocessors'\nimport { FLSA_OVERTIME_SALARY_LIMIT, FlsaStatus, PAY_PERIODS } from '@/shared/constants'\nimport { yearlyRate } from '@/helpers/payRateCalculator'\n\n// ── Error codes ────────────────────────────────────────────────────────\n\nexport const CompensationErrorCodes = {\n REQUIRED: 'REQUIRED',\n RATE_MINIMUM: 'RATE_MINIMUM',\n RATE_EXEMPT_THRESHOLD: 'RATE_EXEMPT_THRESHOLD',\n PAYMENT_UNIT_OWNER: 'PAYMENT_UNIT_OWNER',\n PAYMENT_UNIT_COMMISSION: 'PAYMENT_UNIT_COMMISSION',\n RATE_COMMISSION_ZERO: 'RATE_COMMISSION_ZERO',\n} as const\n\nexport type CompensationErrorCode =\n (typeof CompensationErrorCodes)[keyof typeof CompensationErrorCodes]\n\nconst fieldValidators = {\n jobTitle: z.string(),\n flsaStatus: z.enum([\n FlsaStatus.EXEMPT,\n FlsaStatus.SALARIED_NONEXEMPT,\n FlsaStatus.NONEXEMPT,\n FlsaStatus.OWNER,\n FlsaStatus.COMMISSION_ONLY_EXEMPT,\n FlsaStatus.COMMISSION_ONLY_NONEXEMPT,\n ]),\n paymentUnit: z.enum([\n PAY_PERIODS.HOUR,\n PAY_PERIODS.WEEK,\n PAY_PERIODS.MONTH,\n PAY_PERIODS.YEAR,\n PAY_PERIODS.PAYCHECK,\n ]),\n rate: z.preprocess(coerceNaN(0), z.number()),\n startDate: z.preprocess(coerceToISODate, z.iso.date().nullable()),\n adjustForMinimumWage: z.boolean(),\n minimumWageId: z.string(),\n // Radio group delivers 'true'/'false' strings; coerceStringBoolean converts to boolean\n stateWcCovered: z.preprocess(coerceStringBoolean, z.boolean()),\n stateWcClassCode: z.string(),\n twoPercentShareholder: z.boolean(),\n}\n\nexport type CompensationFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\n\n// ── Required fields config (requiredness rules per field) ────────────\n\nconst requiredFieldsConfig = {\n jobTitle: 'create',\n flsaStatus: 'create',\n paymentUnit: 'create',\n rate: 'create',\n startDate: 'create',\n minimumWageId: data => data.adjustForMinimumWage,\n stateWcClassCode: data => String(data.stateWcCovered) === 'true',\n} satisfies RequiredFieldConfig<typeof fieldValidators>\n\nfunction validateFlsaRules(data: CompensationFormData, ctx: z.RefinementCtx) {\n const { flsaStatus, paymentUnit, rate } = data\n\n if (\n flsaStatus === FlsaStatus.EXEMPT ||\n flsaStatus === FlsaStatus.SALARIED_NONEXEMPT ||\n flsaStatus === FlsaStatus.NONEXEMPT\n ) {\n if (rate < 1) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_MINIMUM,\n })\n } else if (\n flsaStatus === FlsaStatus.EXEMPT &&\n yearlyRate(rate, paymentUnit) < FLSA_OVERTIME_SALARY_LIMIT\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_EXEMPT_THRESHOLD,\n })\n }\n } else if (flsaStatus === FlsaStatus.OWNER) {\n if (paymentUnit !== PAY_PERIODS.PAYCHECK) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['paymentUnit'],\n message: CompensationErrorCodes.PAYMENT_UNIT_OWNER,\n })\n }\n if (rate < 1) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_MINIMUM,\n })\n }\n /* eslint-disable @typescript-eslint/no-unnecessary-condition -- explicit match prevents a future FLSA status from silently falling into commission rules */\n } else if (\n flsaStatus === FlsaStatus.COMMISSION_ONLY_EXEMPT ||\n flsaStatus === FlsaStatus.COMMISSION_ONLY_NONEXEMPT\n ) {\n /* eslint-enable @typescript-eslint/no-unnecessary-condition */\n if (paymentUnit !== PAY_PERIODS.YEAR) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['paymentUnit'],\n message: CompensationErrorCodes.PAYMENT_UNIT_COMMISSION,\n })\n }\n if (rate !== 0) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['rate'],\n message: CompensationErrorCodes.RATE_COMMISSION_ZERO,\n })\n }\n }\n}\n\n// ── Schema factory ───────────────────────────────────────────────────\n\nexport type CompensationOptionalFieldsToRequire = OptionalFieldsToRequire<\n typeof requiredFieldsConfig\n>\nexport type CompensationFormOutputs = CompensationFormData\n\ninterface CompensationSchemaOptions {\n mode?: 'create' | 'update'\n optionalFieldsToRequire?: CompensationOptionalFieldsToRequire\n withStartDateField?: boolean\n}\n\nexport function createCompensationSchema(options: CompensationSchemaOptions = {}) {\n const { mode = 'create', optionalFieldsToRequire, withStartDateField = true } = options\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: CompensationErrorCodes.REQUIRED,\n mode,\n optionalFieldsToRequire,\n excludeFields: withStartDateField ? [] : ['startDate'],\n superRefine: validateFlsaRules,\n })\n}\n"],"names":["CompensationErrorCodes","fieldValidators","z","FlsaStatus","PAY_PERIODS","coerceNaN","coerceToISODate","coerceStringBoolean","requiredFieldsConfig","data","validateFlsaRules","ctx","flsaStatus","paymentUnit","rate","yearlyRate","FLSA_OVERTIME_SALARY_LIMIT","createCompensationSchema","options","mode","optionalFieldsToRequire","withStartDateField","buildFormSchema"],"mappings":"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"}
@@ -1,7 +1,6 @@
1
1
  import { MinimumWage } from '@gusto/embedded-api/models/components/minimumwage';
2
2
  import { FlsaStatusType } from '@gusto/embedded-api/models/components/flsastatustype';
3
3
  import { PaymentUnit } from '@gusto/embedded-api/models/components/compensation';
4
- import { HookFieldProps } from '../../form/types';
5
4
  import { TextInputHookFieldProps } from '../../form/fields/TextInputHookField';
6
5
  import { SelectHookFieldProps } from '../../form/fields/SelectHookField';
7
6
  import { NumberInputHookFieldProps } from '../../form/fields/NumberInputHookField';
@@ -9,6 +8,7 @@ import { CheckboxHookFieldProps } from '../../form/fields/CheckboxHookField';
9
8
  import { RadioGroupHookFieldProps } from '../../form/fields/RadioGroupHookField';
10
9
  import { DatePickerHookFieldProps } from '../../form/fields/DatePickerHookField';
11
10
  import { CompensationErrorCodes } from './compensationSchema';
11
+ import { HookFieldProps } from '../../../../types/sdkHooks';
12
12
  import { WARiskClassCode } from '../../../../models/WA_RISK_CODES';
13
13
  export type RequiredValidation = typeof CompensationErrorCodes.REQUIRED;
14
14
  export type RateValidation = (typeof CompensationErrorCodes)['REQUIRED' | 'RATE_MINIMUM' | 'RATE_EXEMPT_THRESHOLD'];
@@ -26,7 +26,7 @@ export type MinimumWageIdFieldProps = HookFieldProps<SelectHookFieldProps<Requir
26
26
  export declare function MinimumWageIdField(props: MinimumWageIdFieldProps): import("react/jsx-runtime").JSX.Element;
27
27
  export type TwoPercentShareholderFieldProps = HookFieldProps<CheckboxHookFieldProps>;
28
28
  export declare function TwoPercentShareholderField(props: TwoPercentShareholderFieldProps): import("react/jsx-runtime").JSX.Element;
29
- export type StateWcCoveredFieldProps = HookFieldProps<RadioGroupHookFieldProps<never, string>>;
29
+ export type StateWcCoveredFieldProps = HookFieldProps<RadioGroupHookFieldProps<never, boolean>>;
30
30
  export declare function StateWcCoveredField(props: StateWcCoveredFieldProps): import("react/jsx-runtime").JSX.Element;
31
31
  export type StateWcClassCodeFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, WARiskClassCode>>;
32
32
  export declare function StateWcClassCodeField(props: StateWcClassCodeFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.tsx"],"sourcesContent":["import type { MinimumWage } from '@gusto/embedded-api/models/components/minimumwage'\nimport type { FlsaStatusType } from '@gusto/embedded-api/models/components/flsastatustype'\nimport type { PaymentUnit } from '@gusto/embedded-api/models/components/compensation'\nimport type { HookFieldProps } from '../../form/types'\nimport type { TextInputHookFieldProps } from '../../form/fields/TextInputHookField'\nimport type { SelectHookFieldProps } from '../../form/fields/SelectHookField'\nimport type { NumberInputHookFieldProps } from '../../form/fields/NumberInputHookField'\nimport type { CheckboxHookFieldProps } from '../../form/fields/CheckboxHookField'\nimport type { RadioGroupHookFieldProps } from '../../form/fields/RadioGroupHookField'\nimport type { DatePickerHookFieldProps } from '../../form/fields/DatePickerHookField'\nimport {\n TextInputHookField,\n SelectHookField,\n NumberInputHookField,\n CheckboxHookField,\n RadioGroupHookField,\n DatePickerHookField,\n} from '../../form/fields'\nimport type { CompensationErrorCodes } from './compensationSchema'\nimport type { WARiskClassCode } from '@/models/WA_RISK_CODES'\n\nexport type RequiredValidation = typeof CompensationErrorCodes.REQUIRED\nexport type RateValidation = (typeof CompensationErrorCodes)[\n | 'REQUIRED'\n | 'RATE_MINIMUM'\n | 'RATE_EXEMPT_THRESHOLD']\n\nexport type JobTitleFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\nexport function JobTitleField(props: JobTitleFieldProps) {\n return <TextInputHookField {...props} name=\"jobTitle\" />\n}\n\nexport type FlsaStatusFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, FlsaStatusType>\n>\n\nexport function FlsaStatusField(props: FlsaStatusFieldProps) {\n return <SelectHookField {...props} name=\"flsaStatus\" />\n}\n\nexport type RateFieldProps = HookFieldProps<NumberInputHookFieldProps<RateValidation>>\n\nexport function RateField(props: RateFieldProps) {\n return <NumberInputHookField {...props} name=\"rate\" format=\"currency\" min={0} />\n}\n\nexport type PaymentUnitFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, PaymentUnit>\n>\n\nexport function PaymentUnitField(props: PaymentUnitFieldProps) {\n return <SelectHookField {...props} name=\"paymentUnit\" />\n}\n\nexport type AdjustForMinimumWageFieldProps = HookFieldProps<CheckboxHookFieldProps>\n\nexport function AdjustForMinimumWageField(props: AdjustForMinimumWageFieldProps) {\n return <CheckboxHookField {...props} name=\"adjustForMinimumWage\" />\n}\n\nexport type MinimumWageIdFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, MinimumWage>\n>\n\nexport function MinimumWageIdField(props: MinimumWageIdFieldProps) {\n return <SelectHookField {...props} name=\"minimumWageId\" />\n}\n\nexport type TwoPercentShareholderFieldProps = HookFieldProps<CheckboxHookFieldProps>\n\nexport function TwoPercentShareholderField(props: TwoPercentShareholderFieldProps) {\n return <CheckboxHookField {...props} name=\"twoPercentShareholder\" />\n}\n\nexport type StateWcCoveredFieldProps = HookFieldProps<RadioGroupHookFieldProps<never, string>>\n\nexport function StateWcCoveredField(props: StateWcCoveredFieldProps) {\n return <RadioGroupHookField {...props} name=\"stateWcCovered\" />\n}\n\nexport type StateWcClassCodeFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, WARiskClassCode>\n>\n\nexport function StateWcClassCodeField(props: StateWcClassCodeFieldProps) {\n return <SelectHookField {...props} name=\"stateWcClassCode\" />\n}\n\nexport type StartDateFieldProps = HookFieldProps<\n DatePickerHookFieldProps<typeof CompensationErrorCodes.REQUIRED>\n>\n\nexport function StartDateField(props: StartDateFieldProps) {\n return <DatePickerHookField {...props} name=\"startDate\" />\n}\n"],"names":["JobTitleField","props","jsx","TextInputHookField","FlsaStatusField","SelectHookField","RateField","NumberInputHookField","PaymentUnitField","AdjustForMinimumWageField","CheckboxHookField","MinimumWageIdField","TwoPercentShareholderField","StateWcCoveredField","RadioGroupHookField","StateWcClassCodeField","StartDateField","DatePickerHookField"],"mappings":";;;;;;;AA6BO,SAASA,EAAcC,GAA2B;AACvD,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,YAAW;AACxD;AAMO,SAASG,EAAgBH,GAA6B;AAC3D,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,cAAa;AACvD;AAIO,SAASK,EAAUL,GAAuB;AAC/C,SAAO,gBAAAC,EAACK,KAAsB,GAAGN,GAAO,MAAK,QAAO,QAAO,YAAW,KAAK,EAAA,CAAG;AAChF;AAMO,SAASO,EAAiBP,GAA8B;AAC7D,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,eAAc;AACxD;AAIO,SAASQ,EAA0BR,GAAuC;AAC/E,SAAO,gBAAAC,EAACQ,GAAA,EAAmB,GAAGT,GAAO,MAAK,wBAAuB;AACnE;AAMO,SAASU,EAAmBV,GAAgC;AACjE,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,iBAAgB;AAC1D;AAIO,SAASW,EAA2BX,GAAwC;AACjF,SAAO,gBAAAC,EAACQ,GAAA,EAAmB,GAAGT,GAAO,MAAK,yBAAwB;AACpE;AAIO,SAASY,EAAoBZ,GAAiC;AACnE,SAAO,gBAAAC,EAACY,GAAA,EAAqB,GAAGb,GAAO,MAAK,kBAAiB;AAC/D;AAMO,SAASc,EAAsBd,GAAmC;AACvE,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,oBAAmB;AAC7D;AAMO,SAASe,EAAef,GAA4B;AACzD,SAAO,gBAAAC,EAACe,GAAA,EAAqB,GAAGhB,GAAO,MAAK,aAAY;AAC1D;"}
1
+ {"version":3,"file":"fields.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.tsx"],"sourcesContent":["import type { MinimumWage } from '@gusto/embedded-api/models/components/minimumwage'\nimport type { FlsaStatusType } from '@gusto/embedded-api/models/components/flsastatustype'\nimport type { PaymentUnit } from '@gusto/embedded-api/models/components/compensation'\nimport type { TextInputHookFieldProps } from '../../form/fields/TextInputHookField'\nimport type { SelectHookFieldProps } from '../../form/fields/SelectHookField'\nimport type { NumberInputHookFieldProps } from '../../form/fields/NumberInputHookField'\nimport type { CheckboxHookFieldProps } from '../../form/fields/CheckboxHookField'\nimport type { RadioGroupHookFieldProps } from '../../form/fields/RadioGroupHookField'\nimport type { DatePickerHookFieldProps } from '../../form/fields/DatePickerHookField'\nimport {\n TextInputHookField,\n SelectHookField,\n NumberInputHookField,\n CheckboxHookField,\n RadioGroupHookField,\n DatePickerHookField,\n} from '../../form/fields'\nimport type { CompensationErrorCodes } from './compensationSchema'\nimport type { HookFieldProps } from '@/types/sdkHooks'\nimport type { WARiskClassCode } from '@/models/WA_RISK_CODES'\n\nexport type RequiredValidation = typeof CompensationErrorCodes.REQUIRED\nexport type RateValidation = (typeof CompensationErrorCodes)[\n | 'REQUIRED'\n | 'RATE_MINIMUM'\n | 'RATE_EXEMPT_THRESHOLD']\n\nexport type JobTitleFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\nexport function JobTitleField(props: JobTitleFieldProps) {\n return <TextInputHookField {...props} name=\"jobTitle\" />\n}\n\nexport type FlsaStatusFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, FlsaStatusType>\n>\n\nexport function FlsaStatusField(props: FlsaStatusFieldProps) {\n return <SelectHookField {...props} name=\"flsaStatus\" />\n}\n\nexport type RateFieldProps = HookFieldProps<NumberInputHookFieldProps<RateValidation>>\n\nexport function RateField(props: RateFieldProps) {\n return <NumberInputHookField {...props} name=\"rate\" format=\"currency\" min={0} />\n}\n\nexport type PaymentUnitFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, PaymentUnit>\n>\n\nexport function PaymentUnitField(props: PaymentUnitFieldProps) {\n return <SelectHookField {...props} name=\"paymentUnit\" />\n}\n\nexport type AdjustForMinimumWageFieldProps = HookFieldProps<CheckboxHookFieldProps>\n\nexport function AdjustForMinimumWageField(props: AdjustForMinimumWageFieldProps) {\n return <CheckboxHookField {...props} name=\"adjustForMinimumWage\" />\n}\n\nexport type MinimumWageIdFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, MinimumWage>\n>\n\nexport function MinimumWageIdField(props: MinimumWageIdFieldProps) {\n return <SelectHookField {...props} name=\"minimumWageId\" />\n}\n\nexport type TwoPercentShareholderFieldProps = HookFieldProps<CheckboxHookFieldProps>\n\nexport function TwoPercentShareholderField(props: TwoPercentShareholderFieldProps) {\n return <CheckboxHookField {...props} name=\"twoPercentShareholder\" />\n}\n\nexport type StateWcCoveredFieldProps = HookFieldProps<RadioGroupHookFieldProps<never, boolean>>\n\nexport function StateWcCoveredField(props: StateWcCoveredFieldProps) {\n return <RadioGroupHookField {...props} name=\"stateWcCovered\" />\n}\n\nexport type StateWcClassCodeFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, WARiskClassCode>\n>\n\nexport function StateWcClassCodeField(props: StateWcClassCodeFieldProps) {\n return <SelectHookField {...props} name=\"stateWcClassCode\" />\n}\n\nexport type StartDateFieldProps = HookFieldProps<\n DatePickerHookFieldProps<typeof CompensationErrorCodes.REQUIRED>\n>\n\nexport function StartDateField(props: StartDateFieldProps) {\n return <DatePickerHookField {...props} name=\"startDate\" />\n}\n"],"names":["JobTitleField","props","jsx","TextInputHookField","FlsaStatusField","SelectHookField","RateField","NumberInputHookField","PaymentUnitField","AdjustForMinimumWageField","CheckboxHookField","MinimumWageIdField","TwoPercentShareholderField","StateWcCoveredField","RadioGroupHookField","StateWcClassCodeField","StartDateField","DatePickerHookField"],"mappings":";;;;;;;AA6BO,SAASA,EAAcC,GAA2B;AACvD,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,YAAW;AACxD;AAMO,SAASG,EAAgBH,GAA6B;AAC3D,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,cAAa;AACvD;AAIO,SAASK,EAAUL,GAAuB;AAC/C,SAAO,gBAAAC,EAACK,KAAsB,GAAGN,GAAO,MAAK,QAAO,QAAO,YAAW,KAAK,EAAA,CAAG;AAChF;AAMO,SAASO,EAAiBP,GAA8B;AAC7D,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,eAAc;AACxD;AAIO,SAASQ,EAA0BR,GAAuC;AAC/E,SAAO,gBAAAC,EAACQ,GAAA,EAAmB,GAAGT,GAAO,MAAK,wBAAuB;AACnE;AAMO,SAASU,EAAmBV,GAAgC;AACjE,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,iBAAgB;AAC1D;AAIO,SAASW,EAA2BX,GAAwC;AACjF,SAAO,gBAAAC,EAACQ,GAAA,EAAmB,GAAGT,GAAO,MAAK,yBAAwB;AACpE;AAIO,SAASY,EAAoBZ,GAAiC;AACnE,SAAO,gBAAAC,EAACY,GAAA,EAAqB,GAAGb,GAAO,MAAK,kBAAiB;AAC/D;AAMO,SAASc,EAAsBd,GAAmC;AACvE,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,oBAAmB;AAC7D;AAMO,SAASe,EAAef,GAA4B;AACzD,SAAO,gBAAAC,EAACe,GAAA,EAAqB,GAAGhB,GAAO,MAAK,aAAY;AAC1D;"}
@@ -1,7 +1,7 @@
1
1
  import "./types/i18next.d.ts"
2
2
  export { useCompensationForm } from './useCompensationForm';
3
- export type { CompensationSubmitCallbacks, CompensationSubmitOptions, CompensationRequiredFields, UseCompensationFormProps, UseCompensationFormResult, UseCompensationFormReady, CompensationFieldsMetadata, CompensationFormFields, } from './useCompensationForm';
3
+ export type { CompensationSubmitCallbacks, CompensationSubmitOptions, UseCompensationFormProps, UseCompensationFormResult, UseCompensationFormReady, CompensationFieldsMetadata, CompensationFormFields, } from './useCompensationForm';
4
4
  export { CompensationForm } from './CompensationForm';
5
5
  export type { CompensationFormProps } from './CompensationForm';
6
- export { CompensationSchema, createCompensationSchema, CompensationErrorCodes, type CompensationErrorCode, type CompensationField, type CompensationFormData, type CompensationFormOutputs, } from './compensationSchema';
6
+ export { createCompensationSchema, CompensationErrorCodes, type CompensationErrorCode, type CompensationOptionalFieldsToRequire, type CompensationFormData, type CompensationFormOutputs, } from './compensationSchema';
7
7
  export type { RequiredValidation, RateValidation, StartDateFieldProps, JobTitleFieldProps, FlsaStatusFieldProps, RateFieldProps, PaymentUnitFieldProps, AdjustForMinimumWageFieldProps, MinimumWageIdFieldProps, TwoPercentShareholderFieldProps, StateWcCoveredFieldProps, StateWcClassCodeFieldProps, } from './fields';
@@ -3,10 +3,9 @@ import { Compensation, PaymentUnit } from '@gusto/embedded-api/models/components
3
3
  import { Job } from '@gusto/embedded-api/models/components/job';
4
4
  import { FlsaStatusType } from '@gusto/embedded-api/models/components/flsastatustype';
5
5
  import { MinimumWage } from '@gusto/embedded-api/models/components/minimumwage';
6
- import { HookSubmitResult } from '../../types';
7
- import { RequiredFields } from '../../form/resolveRequiredFields';
8
- import { CompensationField, CompensationFormData } from './compensationSchema';
6
+ import { CompensationOptionalFieldsToRequire, CompensationFormData } from './compensationSchema';
9
7
  import { JobTitleField, FlsaStatusField, RateField, PaymentUnitField, AdjustForMinimumWageField, MinimumWageIdField, TwoPercentShareholderField, StateWcCoveredField, StateWcClassCodeField, StartDateField } from './fields';
8
+ import { HookSubmitResult } from '../../../../types/sdkHooks';
10
9
  import { WARiskClassCode } from '../../../../models/WA_RISK_CODES';
11
10
  export interface CompensationSubmitCallbacks {
12
11
  onJobCreated?: (job: Job) => void;
@@ -17,19 +16,18 @@ export interface CompensationSubmitOptions {
17
16
  employeeId?: string;
18
17
  startDate?: string;
19
18
  }
20
- export type CompensationRequiredFields = RequiredFields<CompensationField>;
21
19
  export interface UseCompensationFormProps {
22
20
  employeeId?: string;
23
21
  withStartDateField?: boolean;
24
22
  jobId?: string;
25
- requiredFields?: CompensationRequiredFields;
23
+ optionalFieldsToRequire?: CompensationOptionalFieldsToRequire;
26
24
  defaultValues?: Partial<CompensationFormData>;
27
25
  validationMode?: UseFormProps['mode'];
28
26
  shouldFocusError?: boolean;
29
27
  }
30
- export declare function useCompensationForm({ employeeId, withStartDateField, jobId, requiredFields, defaultValues: partnerDefaults, validationMode, shouldFocusError, }: UseCompensationFormProps): {
28
+ export declare function useCompensationForm({ employeeId, withStartDateField, jobId, optionalFieldsToRequire, defaultValues: partnerDefaults, validationMode, shouldFocusError, }: UseCompensationFormProps): {
31
29
  isLoading: true;
32
- errorHandling: import('../..').HookErrorHandling;
30
+ errorHandling: import('../../../../types/sdkHooks').HookErrorHandling;
33
31
  data?: undefined;
34
32
  status?: undefined;
35
33
  actions?: undefined;
@@ -49,7 +47,7 @@ export declare function useCompensationForm({ employeeId, withStartDateField, jo
49
47
  actions: {
50
48
  onSubmit: (callbacks?: CompensationSubmitCallbacks, options?: CompensationSubmitOptions) => Promise<HookSubmitResult<Compensation | undefined> | undefined>;
51
49
  };
52
- errorHandling: import('../..').HookErrorHandling;
50
+ errorHandling: import('../../../../types/sdkHooks').HookErrorHandling;
53
51
  form: {
54
52
  Fields: {
55
53
  StartDate: typeof StartDateField | undefined;
@@ -64,31 +62,31 @@ export declare function useCompensationForm({ employeeId, withStartDateField, jo
64
62
  StateWcClassCode: typeof StateWcClassCodeField | undefined;
65
63
  };
66
64
  fieldsMetadata: {
67
- startDate: import('../..').FieldMetadata;
68
- jobTitle: import('../..').FieldMetadata;
69
- flsaStatus: import('../..').FieldMetadataWithOptions<FlsaStatusType>;
65
+ startDate: import('../../../../types/sdkHooks').FieldMetadata;
66
+ jobTitle: import('../../../../types/sdkHooks').FieldMetadata;
67
+ flsaStatus: import('../../../../types/sdkHooks').FieldMetadataWithOptions<FlsaStatusType>;
70
68
  rate: {
71
69
  isDisabled: boolean;
72
70
  name: string;
73
71
  isRequired?: boolean;
74
72
  hasRedactedValue?: boolean;
75
73
  };
76
- paymentUnit: import('../..').FieldMetadataWithOptions<PaymentUnit>;
74
+ paymentUnit: import('../../../../types/sdkHooks').FieldMetadataWithOptions<PaymentUnit>;
77
75
  adjustForMinimumWage: {
78
76
  isDisabled: boolean;
79
77
  name: string;
80
78
  isRequired?: boolean;
81
79
  hasRedactedValue?: boolean;
82
80
  };
83
- minimumWageId: import('../..').FieldMetadataWithOptions<MinimumWage>;
81
+ minimumWageId: import('../../../../types/sdkHooks').FieldMetadataWithOptions<MinimumWage>;
84
82
  twoPercentShareholder: {
85
83
  isDisabled: boolean;
86
84
  name: string;
87
85
  isRequired?: boolean;
88
86
  hasRedactedValue?: boolean;
89
87
  };
90
- stateWcCovered: import('../..').FieldMetadataWithOptions<string>;
91
- stateWcClassCode: import('../..').FieldMetadataWithOptions<WARiskClassCode>;
88
+ stateWcCovered: import('../../../../types/sdkHooks').FieldMetadataWithOptions<boolean>;
89
+ stateWcClassCode: import('../../../../types/sdkHooks').FieldMetadataWithOptions<WARiskClassCode>;
92
90
  };
93
91
  hookFormInternals: {
94
92
  formMethods: import('react-hook-form').UseFormReturn<CompensationFormData, unknown, CompensationFormData>;