@gusto/embedded-react-sdk 0.38.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (877) hide show
  1. package/CHANGELOG.md +233 -0
  2. package/dist/assets/icons/percent-circle.svg.js +10 -0
  3. package/dist/assets/icons/percent-circle.svg.js.map +1 -0
  4. package/dist/assets/icons/plus-circle.svg.js +1 -1
  5. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  6. package/dist/components/Base/Base.js +2 -3
  7. package/dist/components/Base/Base.js.map +1 -1
  8. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +5 -3
  9. package/dist/components/Common/DataView/DataCards/DataCards.js +59 -46
  10. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  11. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +9 -7
  12. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  13. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +4 -2
  14. package/dist/components/Common/DataView/DataTable/DataTable.js +95 -76
  15. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  16. package/dist/components/Common/DataView/DataView.d.ts +4 -3
  17. package/dist/components/Common/DataView/DataView.js +24 -22
  18. package/dist/components/Common/DataView/DataView.js.map +1 -1
  19. package/dist/components/Common/DataView/useDataView.d.ts +33 -6
  20. package/dist/components/Common/DataView/useDataView.js +23 -20
  21. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  22. package/dist/components/Common/DataView/useSelectionState.d.ts +5 -0
  23. package/dist/components/Common/DataView/useSelectionState.js +8 -0
  24. package/dist/components/Common/DataView/useSelectionState.js.map +1 -0
  25. package/dist/components/Common/DateRangeFilter/DateRangeFilter.d.ts +3 -1
  26. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +65 -71
  27. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  28. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js +10 -6
  29. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js.map +1 -1
  30. package/dist/components/Common/EmptyData/EmptyData.d.ts +2 -1
  31. package/dist/components/Common/EmptyData/EmptyData.js +15 -13
  32. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  33. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +6 -4
  34. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  35. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  36. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.d.ts +2 -2
  37. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js +2 -2
  38. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -1
  39. package/dist/components/Common/SignatureForm/SignatureForm.js +4 -6
  40. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  41. package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -12
  42. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  43. package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -8
  44. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  45. package/dist/components/Common/UI/Alert/Alert.module.scss.js +12 -12
  46. package/dist/components/Common/UI/Box/Box.d.ts +1 -1
  47. package/dist/components/Common/UI/Box/Box.js +9 -8
  48. package/dist/components/Common/UI/Box/Box.js.map +1 -1
  49. package/dist/components/Common/UI/Box/Box.module.scss.js +12 -8
  50. package/dist/components/Common/UI/Box/Box.module.scss.js.map +1 -1
  51. package/dist/components/Common/UI/Box/BoxTypes.d.ts +2 -9
  52. package/dist/components/Common/UI/BoxHeader/BoxHeader.d.ts +2 -0
  53. package/dist/components/Common/UI/BoxHeader/BoxHeader.js +23 -0
  54. package/dist/components/Common/UI/BoxHeader/BoxHeader.js.map +1 -0
  55. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js +8 -0
  56. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js.map +1 -0
  57. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +10 -0
  58. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js +7 -0
  59. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -0
  60. package/dist/components/Common/UI/BoxHeader/index.d.ts +2 -0
  61. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  62. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  63. package/dist/components/Common/UI/Checkbox/Checkbox.js +60 -49
  64. package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
  65. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +10 -6
  66. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js.map +1 -1
  67. package/dist/components/Common/UI/ComboBox/ComboBox.js +1 -1
  68. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  69. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
  70. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +6 -6
  71. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js +34 -36
  72. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js.map +1 -1
  73. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js +12 -12
  74. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +19 -12
  75. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
  76. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +6 -4
  77. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js.map +1 -1
  78. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +6 -1
  79. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js +4 -1
  80. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
  81. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  82. package/dist/components/Common/UI/Heading/Heading.module.scss.js +15 -15
  83. package/dist/components/Common/UI/Input/Input.js.map +1 -1
  84. package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
  85. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  86. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +1 -1
  87. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  88. package/dist/components/Common/UI/Select/Select.js +22 -22
  89. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  90. package/dist/components/Common/UI/Select/SelectTypes.d.ts +1 -1
  91. package/dist/components/Common/UI/Table/Table.js +12 -12
  92. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  93. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  94. package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -3
  95. package/dist/components/Common/UI/Table/TableTypes.js +3 -3
  96. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  97. package/dist/components/Common/UI/TextArea/TextArea.js +1 -1
  98. package/dist/components/Common/UI/TextArea/TextArea.js.map +1 -1
  99. package/dist/components/Common/UI/TextInput/TextInput.js +13 -13
  100. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  101. package/dist/components/Company/AssignSignatory/AssignSignatory.js +2 -3
  102. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  103. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -8
  104. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  105. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -10
  106. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  107. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +11 -11
  108. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -5
  109. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  110. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -8
  111. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  112. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  113. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -5
  114. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  115. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -3
  116. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  117. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -7
  118. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  119. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
  120. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  121. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -11
  122. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  123. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -5
  124. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  125. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -12
  126. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  127. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +11 -13
  128. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  129. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -6
  130. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  131. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -7
  132. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  133. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +8 -9
  134. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  135. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -5
  136. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  137. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  138. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  139. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -5
  140. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  141. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.d.ts +9 -0
  142. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +14 -0
  143. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js.map +1 -0
  144. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/index.d.ts +5 -0
  145. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.d.ts +25 -0
  146. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.js +24 -0
  147. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.js.map +1 -0
  148. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.d.ts +32 -0
  149. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +106 -0
  150. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -0
  151. package/dist/components/Company/FederalTaxes/Actions.js +7 -9
  152. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  153. package/dist/components/Company/FederalTaxes/FederalTaxes.js +17 -18
  154. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  155. package/dist/components/Company/FederalTaxes/Form.js +4 -6
  156. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  157. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -10
  158. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  159. package/dist/components/Company/Industry/Actions.js +5 -7
  160. package/dist/components/Company/Industry/Actions.js.map +1 -1
  161. package/dist/components/Company/Industry/Context.js +6 -8
  162. package/dist/components/Company/Industry/Context.js.map +1 -1
  163. package/dist/components/Company/Industry/Edit.js +10 -12
  164. package/dist/components/Company/Industry/Edit.js.map +1 -1
  165. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -8
  166. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  167. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  168. package/dist/components/Company/Locations/LocationForm/LocationForm.js +3 -4
  169. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  170. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -5
  171. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  172. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -8
  173. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  174. package/dist/components/Company/Locations/LocationsList/List.js +8 -10
  175. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  176. package/dist/components/Company/Locations/LocationsList/LocationsList.js +2 -3
  177. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  178. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -5
  179. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  180. package/dist/components/Company/OnboardingOverview/Completed.js +12 -14
  181. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  182. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +5 -7
  183. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  184. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -3
  185. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  186. package/dist/components/Company/OnboardingOverview/context.js +3 -5
  187. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  188. package/dist/components/Company/PaySchedule/PaySchedule.js +70 -68
  189. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  190. package/dist/components/Company/PaySchedule/_parts/Actions.js +7 -9
  191. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  192. package/dist/components/Company/PaySchedule/_parts/Edit.js +37 -32
  193. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  194. package/dist/components/Company/PaySchedule/_parts/Head.js +8 -10
  195. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  196. package/dist/components/Company/PaySchedule/_parts/List.js +13 -15
  197. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  198. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +23 -0
  199. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +37 -0
  200. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -0
  201. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +5 -0
  202. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +55 -0
  203. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js +54 -0
  204. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -0
  205. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +33 -0
  206. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +184 -0
  207. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -0
  208. package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +5 -6
  209. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -7
  210. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  211. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -7
  212. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  213. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +33 -33
  214. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  215. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -5
  216. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  217. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -8
  218. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  219. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -7
  220. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  221. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +14 -14
  222. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  223. package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +2 -2
  224. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -5
  225. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  226. package/dist/components/Company/exports/companyOnboarding.d.ts +14 -0
  227. package/dist/components/Company/exports/companyOnboarding.js +31 -0
  228. package/dist/components/Company/exports/companyOnboarding.js.map +1 -0
  229. package/dist/components/Contractor/Address/Address.js +3 -4
  230. package/dist/components/Contractor/Address/Address.js.map +1 -1
  231. package/dist/components/Contractor/Address/Form.js +4 -4
  232. package/dist/components/Contractor/Address/useAddress.js +5 -7
  233. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  234. package/dist/components/Contractor/ContractorList/index.js +19 -20
  235. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  236. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  237. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  238. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +5 -7
  239. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  240. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  241. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  242. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
  243. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  244. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +135 -126
  245. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  246. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +2 -1
  247. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +77 -76
  248. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  249. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  250. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -1
  251. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +5 -7
  252. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  253. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +2 -1
  254. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +83 -84
  255. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  256. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +2 -4
  257. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  258. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +10 -10
  259. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  260. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +67 -79
  261. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  262. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +10 -12
  263. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -1
  264. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +47 -49
  265. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  266. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +63 -65
  267. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  268. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js +4 -4
  269. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  270. package/dist/components/Contractor/Profile/useContractorProfile.js +33 -35
  271. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  272. package/dist/components/Contractor/Submit/Submit.js +73 -51
  273. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  274. package/dist/components/Contractor/exports/contractorOnboarding.d.ts +7 -0
  275. package/dist/components/Contractor/exports/contractorOnboarding.js +17 -0
  276. package/dist/components/Contractor/exports/contractorOnboarding.js.map +1 -0
  277. package/dist/components/Employee/Compensation/Actions.js +5 -6
  278. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  279. package/dist/components/Employee/Compensation/Compensation.js +80 -77
  280. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  281. package/dist/components/Employee/Compensation/Edit.js +27 -28
  282. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  283. package/dist/components/Employee/Compensation/List.js +23 -25
  284. package/dist/components/Employee/Compensation/List.js.map +1 -1
  285. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +103 -0
  286. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +90 -0
  287. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -0
  288. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Compensation/shared}/useCompensationForm/fields.d.ts +9 -9
  289. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Compensation/shared}/useCompensationForm/fields.js +6 -6
  290. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -0
  291. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +5 -0
  292. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +43 -0
  293. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +262 -0
  294. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -0
  295. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +13 -0
  296. package/dist/components/Employee/Dashboard/BasicDetailsView.js +107 -0
  297. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -0
  298. package/dist/components/Employee/Dashboard/Dashboard.d.ts +5 -0
  299. package/dist/components/Employee/Dashboard/Dashboard.js +146 -0
  300. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -0
  301. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +5 -0
  302. package/dist/components/Employee/Dashboard/DashboardComponents.js +12 -0
  303. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -0
  304. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +5 -0
  305. package/dist/components/Employee/Dashboard/DashboardFlow.js +25 -0
  306. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -0
  307. package/dist/components/Employee/Dashboard/DocumentsView.d.ts +7 -0
  308. package/dist/components/Employee/Dashboard/DocumentsView.js +48 -0
  309. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -0
  310. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +22 -0
  311. package/dist/components/Employee/Dashboard/JobAndPayView.js +211 -0
  312. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -0
  313. package/dist/components/Employee/Dashboard/TaxesView.d.ts +13 -0
  314. package/dist/components/Employee/Dashboard/TaxesView.js +97 -0
  315. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -0
  316. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  317. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +8 -0
  318. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -0
  319. package/dist/components/Employee/Dashboard/hooks/index.d.ts +9 -0
  320. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.d.ts +17 -0
  321. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js +29 -0
  322. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js.map +1 -0
  323. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +28 -0
  324. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +52 -0
  325. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -0
  326. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.d.ts +13 -0
  327. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +22 -0
  328. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -0
  329. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.d.ts +17 -0
  330. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js +24 -0
  331. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js.map +1 -0
  332. package/dist/components/Employee/Dashboard/index.d.ts +14 -0
  333. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +10 -12
  334. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  335. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +17 -19
  336. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  337. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -13
  338. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  339. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +7 -8
  340. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  341. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -8
  342. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  343. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +5 -6
  344. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  345. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -4
  346. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  347. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -5
  348. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  349. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +22 -22
  350. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  351. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
  352. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  353. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -10
  354. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  355. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +7 -8
  356. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  357. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -5
  358. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  359. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.d.ts +53 -0
  360. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.js +164 -0
  361. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.js.map +1 -0
  362. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/index.d.ts +5 -0
  363. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +150 -0
  364. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js +152 -0
  365. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -0
  366. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +47 -0
  367. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +179 -0
  368. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -0
  369. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +2 -4
  370. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  371. package/dist/components/Employee/FederalTaxes/Actions.js +6 -8
  372. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  373. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -12
  374. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  375. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -5
  376. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  377. package/dist/components/Employee/Landing/Landing.js +14 -15
  378. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  379. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +1 -1
  380. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  381. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  382. package/dist/components/Employee/PaymentMethod/Actions.js +7 -9
  383. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  384. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -6
  385. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  386. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +6 -7
  387. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  388. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +6 -7
  389. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  390. package/dist/components/Employee/PaymentMethod/Split.js +10 -11
  391. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  392. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -7
  393. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  394. package/dist/components/Employee/Profile/AdminProfile.d.ts +2 -0
  395. package/dist/components/Employee/Profile/AdminProfile.js +360 -0
  396. package/dist/components/Employee/Profile/AdminProfile.js.map +1 -0
  397. package/dist/components/Employee/Profile/AdminProfile.module.scss.js +10 -0
  398. package/dist/components/Employee/Profile/AdminProfile.module.scss.js.map +1 -0
  399. package/dist/components/Employee/Profile/EmployeeProfile.d.ts +2 -0
  400. package/dist/components/Employee/Profile/EmployeeProfile.js +211 -0
  401. package/dist/components/Employee/Profile/EmployeeProfile.js.map +1 -0
  402. package/dist/components/Employee/Profile/EmployeeProfile.module.scss.js +10 -0
  403. package/dist/components/Employee/Profile/EmployeeProfile.module.scss.js.map +1 -0
  404. package/dist/components/Employee/Profile/Profile.d.ts +3 -3
  405. package/dist/components/Employee/Profile/Profile.js +25 -261
  406. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  407. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Profile/shared}/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +13 -4
  408. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js +51 -0
  409. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
  410. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Profile/shared}/useEmployeeDetailsForm/fields.d.ts +8 -7
  411. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Profile/shared}/useEmployeeDetailsForm/fields.js +5 -5
  412. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js.map +1 -0
  413. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Profile/shared}/useEmployeeDetailsForm/index.d.ts +1 -3
  414. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +45 -0
  415. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +154 -0
  416. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
  417. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +22 -0
  418. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +36 -0
  419. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -0
  420. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +41 -0
  421. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js +32 -0
  422. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -0
  423. package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +5 -0
  424. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +44 -0
  425. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +161 -0
  426. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -0
  427. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Profile/shared}/useWorkAddressForm/fields.d.ts +3 -3
  428. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Profile/shared}/useWorkAddressForm/fields.js +2 -2
  429. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js.map +1 -0
  430. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Profile/shared}/useWorkAddressForm/index.d.ts +1 -3
  431. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +46 -0
  432. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +135 -0
  433. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
  434. package/dist/components/{UNSTABLE_Hooks/hooks → Employee/Profile/shared}/useWorkAddressForm/workAddressSchema.d.ts +6 -4
  435. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.js +23 -0
  436. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.js.map +1 -0
  437. package/dist/components/Employee/StateTaxes/Actions.js +8 -10
  438. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  439. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -5
  440. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  441. package/dist/components/Employee/Taxes/Actions.js +8 -10
  442. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  443. package/dist/components/Employee/Taxes/FederalForm.js +10 -12
  444. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  445. package/dist/components/Employee/Taxes/useTaxes.js +3 -5
  446. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  447. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +5 -5
  448. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  449. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +14 -16
  450. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  451. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +12 -13
  452. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  453. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +2 -4
  454. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  455. package/dist/components/Employee/{EmployeeList → employee-list/management}/ManagementEmployeeList.d.ts +1 -1
  456. package/dist/components/Employee/{EmployeeList → employee-list/management}/ManagementEmployeeList.js +7 -7
  457. package/dist/components/Employee/employee-list/management/ManagementEmployeeList.js.map +1 -0
  458. package/dist/components/Employee/{EmployeeList → employee-list/management}/ManagementEmployeeListView.d.ts +1 -1
  459. package/dist/components/Employee/{EmployeeList → employee-list/management}/ManagementEmployeeListView.js +18 -20
  460. package/dist/components/Employee/employee-list/management/ManagementEmployeeListView.js.map +1 -0
  461. package/dist/components/Employee/employee-list/onboarding/EmployeeList.d.ts +6 -0
  462. package/dist/components/Employee/{EmployeeList → employee-list/onboarding}/EmployeeList.js +7 -7
  463. package/dist/components/Employee/employee-list/onboarding/EmployeeList.js.map +1 -0
  464. package/dist/components/Employee/{EmployeeList → employee-list/onboarding}/EmployeeListView.d.ts +1 -1
  465. package/dist/components/Employee/employee-list/onboarding/EmployeeListView.js +130 -0
  466. package/dist/components/Employee/employee-list/onboarding/EmployeeListView.js.map +1 -0
  467. package/dist/components/Employee/employee-list/shared/index.d.ts +2 -0
  468. package/dist/components/Employee/{EmployeeList → employee-list/shared}/useEmployeeList.d.ts +8 -10
  469. package/dist/components/Employee/{EmployeeList → employee-list/shared}/useEmployeeList.js +32 -28
  470. package/dist/components/Employee/employee-list/shared/useEmployeeList.js.map +1 -0
  471. package/dist/components/Employee/exports/employeeManagement.d.ts +6 -0
  472. package/dist/components/Employee/exports/employeeManagement.js +15 -0
  473. package/dist/components/Employee/exports/employeeManagement.js.map +1 -0
  474. package/dist/components/Employee/exports/employeeOnboarding.d.ts +14 -0
  475. package/dist/components/Employee/exports/employeeOnboarding.js +31 -0
  476. package/dist/components/Employee/exports/employeeOnboarding.js.map +1 -0
  477. package/dist/components/Employee/index.d.ts +3 -2
  478. package/dist/components/Employee/index.js +24 -24
  479. package/dist/components/Flow/Flow.js +16 -18
  480. package/dist/components/Flow/Flow.js.map +1 -1
  481. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +28 -29
  482. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  483. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +14 -14
  484. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +11 -12
  485. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  486. package/dist/components/InformationRequests/InformationRequests.js +3 -4
  487. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  488. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -9
  489. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  490. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +8 -10
  491. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  492. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +12 -14
  493. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  494. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +74 -69
  495. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  496. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +30 -32
  497. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  498. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +11 -13
  499. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  500. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +1 -1
  501. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +19 -19
  502. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  503. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +3 -3
  504. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +13 -13
  505. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  506. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -8
  507. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  508. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
  509. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  510. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -13
  511. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  512. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  513. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +17 -17
  514. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  515. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  516. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  517. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -2
  518. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +16 -16
  519. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  520. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  521. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +28 -28
  522. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  523. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +22 -24
  524. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  525. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +78 -79
  526. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  527. package/dist/components/Payroll/PayrollList/PayrollList.js +1 -1
  528. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  529. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  530. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +224 -201
  531. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  532. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -8
  533. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +79 -80
  534. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  535. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  536. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +18 -18
  537. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  538. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -1
  539. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +2 -4
  540. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  541. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +104 -117
  542. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  543. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +16 -18
  544. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js.map +1 -1
  545. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -3
  546. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  547. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +6 -7
  548. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  549. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -4
  550. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  551. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +67 -63
  552. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  553. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +12 -14
  554. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  555. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +1 -1
  556. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +5 -5
  557. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
  558. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +13 -13
  559. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  560. package/dist/components/Payroll/helpers.d.ts +1 -1
  561. package/dist/components/Payroll/helpers.js.map +1 -1
  562. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  563. package/dist/components/Payroll/usePreparedPayrollData.js +10 -12
  564. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  565. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +45 -42
  566. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
  567. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +2 -0
  568. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +55 -0
  569. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  570. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +25 -0
  571. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.d.ts +2 -2
  572. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +100 -43
  573. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +1 -1
  574. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.d.ts +2 -0
  575. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +124 -0
  576. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  577. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js +8 -0
  578. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js.map +1 -0
  579. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListTypes.d.ts +19 -0
  580. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +18 -0
  581. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js.map +1 -0
  582. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +2 -0
  583. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +166 -0
  584. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -0
  585. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsTypes.d.ts +18 -0
  586. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +3 -1
  587. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +25 -55
  588. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
  589. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +2 -0
  590. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +66 -0
  591. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  592. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +6 -0
  593. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +1 -1
  594. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +71 -66
  595. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  596. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +5 -5
  597. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
  598. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +8 -0
  599. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +71 -0
  600. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  601. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +12 -0
  602. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +1 -0
  603. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +2 -0
  604. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +206 -0
  605. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  606. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +20 -0
  607. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/index.d.ts +6 -0
  608. package/dist/components/UNSTABLE_TimeOff/index.d.ts +4 -2
  609. package/dist/components/UNSTABLE_TimeOff/index.js +18 -16
  610. package/dist/components/UNSTABLE_TimeOff/index.js.map +1 -1
  611. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  612. package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/shared → shared}/EmployeeTable/EmployeeTableTypes.d.ts +3 -3
  613. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.d.ts +30 -0
  614. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js +97 -0
  615. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +1 -0
  616. package/dist/components/index.d.ts +7 -0
  617. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +52 -50
  618. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  619. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  620. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +10 -0
  621. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +28 -21
  622. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  623. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  624. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  625. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +10 -12
  626. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  627. package/dist/contexts/ObservabilityProvider/useObservability.js +6 -6
  628. package/dist/contexts/ObservabilityProvider/useObservability.js.map +1 -1
  629. package/dist/contexts/ThemeProvider/theme.d.ts +2 -0
  630. package/dist/contexts/ThemeProvider/theme.js +4 -2
  631. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  632. package/dist/helpers/dateFormatting.d.ts +2 -0
  633. package/dist/helpers/dateFormatting.js +38 -33
  634. package/dist/helpers/dateFormatting.js.map +1 -1
  635. package/dist/helpers/formattedStrings.js +40 -33
  636. package/dist/helpers/formattedStrings.js.map +1 -1
  637. package/dist/hooks/useCompanyPaymentSpeed.d.ts +6 -0
  638. package/dist/hooks/useCompanyPaymentSpeed.js +19 -0
  639. package/dist/hooks/useCompanyPaymentSpeed.js.map +1 -0
  640. package/dist/i18n/I18n.js +1 -1
  641. package/dist/i18n/I18n.js.map +1 -1
  642. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +9 -9
  643. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -12
  644. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  645. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js +28 -0
  646. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js.map +1 -0
  647. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +32 -26
  648. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -1
  649. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -34
  650. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  651. package/dist/i18n/en/Contractor.Submit.json.js +16 -12
  652. package/dist/i18n/en/Contractor.Submit.json.js.map +1 -1
  653. package/dist/i18n/en/Employee.Dashboard.json.js +26 -0
  654. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -0
  655. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +5 -5
  656. package/dist/i18n/en/Payroll.PayrollHistory.json.js +2 -2
  657. package/dist/i18n/en/Payroll.PayrollList.json.js +15 -15
  658. package/dist/i18n/en/Payroll.TransitionCreation.json.js +9 -9
  659. package/dist/i18n/en/common.json.d.ts +4 -1
  660. package/dist/i18n/en/common.json.js +5 -5
  661. package/dist/index.d.ts +16 -0
  662. package/dist/index.js +102 -26
  663. package/dist/index.js.map +1 -1
  664. package/dist/partner-hook-utils/collectErrors.js.map +1 -0
  665. package/dist/partner-hook-utils/composeErrorHandler.d.ts +24 -0
  666. package/dist/partner-hook-utils/composeErrorHandler.js +30 -0
  667. package/dist/partner-hook-utils/composeErrorHandler.js.map +1 -0
  668. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/FormFieldsMetadataContext.d.ts +2 -2
  669. package/dist/partner-hook-utils/form/FormFieldsMetadataContext.js.map +1 -0
  670. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/FormFieldsMetadataProvider.d.ts +2 -2
  671. package/dist/partner-hook-utils/form/FormFieldsMetadataProvider.js.map +1 -0
  672. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/SDKFormProvider.d.ts +2 -2
  673. package/dist/partner-hook-utils/form/SDKFormProvider.js.map +1 -0
  674. package/dist/partner-hook-utils/form/buildFormSchema.d.ts +48 -0
  675. package/dist/partner-hook-utils/form/buildFormSchema.js +94 -0
  676. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -0
  677. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/composeSubmitHandler.d.ts +29 -3
  678. package/dist/partner-hook-utils/form/composeSubmitHandler.js +40 -0
  679. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -0
  680. package/dist/partner-hook-utils/form/composeSubmitHandler.test.d.ts +1 -0
  681. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/CheckboxHookField.d.ts +3 -3
  682. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +34 -0
  683. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -0
  684. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/DatePickerHookField.d.ts +3 -3
  685. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/DatePickerHookField.js +1 -1
  686. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -0
  687. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/NumberInputHookField.d.ts +3 -3
  688. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +40 -0
  689. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -0
  690. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/RadioGroupHookField.d.ts +3 -3
  691. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/RadioGroupHookField.js +10 -12
  692. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -0
  693. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/SelectHookField.d.ts +3 -3
  694. package/dist/partner-hook-utils/form/fields/SelectHookField.js +40 -0
  695. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -0
  696. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/SwitchHookField.d.ts +3 -3
  697. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +34 -0
  698. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -0
  699. package/dist/partner-hook-utils/form/fields/TextInputHookField.d.ts +12 -0
  700. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +38 -0
  701. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -0
  702. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/fields/index.d.ts +7 -7
  703. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/getFieldWithOptions.d.ts +1 -1
  704. package/dist/partner-hook-utils/form/getFieldWithOptions.js.map +1 -0
  705. package/dist/partner-hook-utils/form/getFormSubmissionValues.js.map +1 -0
  706. package/dist/partner-hook-utils/form/getFormSubmissionValues.test.d.ts +1 -0
  707. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/index.d.ts +4 -6
  708. package/dist/partner-hook-utils/form/preprocessors.d.ts +3 -0
  709. package/dist/partner-hook-utils/form/preprocessors.js +15 -0
  710. package/dist/partner-hook-utils/form/preprocessors.js.map +1 -0
  711. package/dist/partner-hook-utils/form/resolveFieldError.d.ts +4 -0
  712. package/dist/partner-hook-utils/form/resolveFieldError.js +14 -0
  713. package/dist/partner-hook-utils/form/resolveFieldError.js.map +1 -0
  714. package/dist/partner-hook-utils/form/useDeriveFieldsMetadata.d.ts +17 -0
  715. package/dist/partner-hook-utils/form/useDeriveFieldsMetadata.js +21 -0
  716. package/dist/partner-hook-utils/form/useDeriveFieldsMetadata.js.map +1 -0
  717. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/useFieldErrorMessage.d.ts +1 -1
  718. package/dist/partner-hook-utils/form/useFieldErrorMessage.js +17 -0
  719. package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +1 -0
  720. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/useHookFieldResolution.d.ts +2 -2
  721. package/dist/partner-hook-utils/form/useHookFieldResolution.js.map +1 -0
  722. package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/withOptions.d.ts +1 -1
  723. package/dist/partner-hook-utils/form/withOptions.js.map +1 -0
  724. package/dist/partner-hook-utils/index.d.ts +5 -0
  725. package/dist/{types/sdkHooks.d.ts → partner-hook-utils/types.d.ts} +38 -12
  726. package/dist/shared/constants.d.ts +11 -1
  727. package/dist/shared/constants.js +30 -26
  728. package/dist/shared/constants.js.map +1 -1
  729. package/dist/style.css +1 -1
  730. package/dist/types/i18next.d.ts +228 -146
  731. package/dist/types/sdkError.js.map +1 -1
  732. package/docs/reference/endpoint-inventory.json +635 -165
  733. package/package.json +27 -31
  734. package/dist/UNSTABLE_Hooks.d.ts +0 -1
  735. package/dist/UNSTABLE_Hooks.js +0 -53
  736. package/dist/UNSTABLE_Hooks.js.map +0 -1
  737. package/dist/components/Employee/EmployeeList/EmployeeList.d.ts +0 -7
  738. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +0 -1
  739. package/dist/components/Employee/EmployeeList/EmployeeListView.js +0 -132
  740. package/dist/components/Employee/EmployeeList/EmployeeListView.js.map +0 -1
  741. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js.map +0 -1
  742. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js.map +0 -1
  743. package/dist/components/Employee/EmployeeList/index.d.ts +0 -3
  744. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +0 -1
  745. package/dist/components/Employee/Profile/Actions.d.ts +0 -1
  746. package/dist/components/Employee/Profile/Actions.js +0 -15
  747. package/dist/components/Employee/Profile/Actions.js.map +0 -1
  748. package/dist/components/Employee/Profile/AdminPersonalDetails.d.ts +0 -33
  749. package/dist/components/Employee/Profile/AdminPersonalDetails.js +0 -60
  750. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +0 -1
  751. package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js +0 -8
  752. package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js.map +0 -1
  753. package/dist/components/Employee/Profile/Head.d.ts +0 -1
  754. package/dist/components/Employee/Profile/Head.js +0 -14
  755. package/dist/components/Employee/Profile/Head.js.map +0 -1
  756. package/dist/components/Employee/Profile/HomeAddress.d.ts +0 -31
  757. package/dist/components/Employee/Profile/HomeAddress.js +0 -128
  758. package/dist/components/Employee/Profile/HomeAddress.js.map +0 -1
  759. package/dist/components/Employee/Profile/PersonalDetailsInputs.d.ts +0 -49
  760. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +0 -146
  761. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +0 -1
  762. package/dist/components/Employee/Profile/SelfPersonalDetails.d.ts +0 -16
  763. package/dist/components/Employee/Profile/SelfPersonalDetails.js +0 -29
  764. package/dist/components/Employee/Profile/SelfPersonalDetails.js.map +0 -1
  765. package/dist/components/Employee/Profile/WorkAddress.d.ts +0 -1
  766. package/dist/components/Employee/Profile/WorkAddress.js +0 -21
  767. package/dist/components/Employee/Profile/WorkAddress.js.map +0 -1
  768. package/dist/components/Employee/Profile/WorkAddress.module.scss.js +0 -8
  769. package/dist/components/Employee/Profile/WorkAddress.module.scss.js.map +0 -1
  770. package/dist/components/Employee/Profile/getEmployeeAddressForProfile.d.ts +0 -2
  771. package/dist/components/Employee/Profile/getEmployeeAddressForProfile.js +0 -8
  772. package/dist/components/Employee/Profile/getEmployeeAddressForProfile.js.map +0 -1
  773. package/dist/components/Employee/Profile/useProfile.d.ts +0 -16
  774. package/dist/components/Employee/Profile/useProfile.js +0 -22
  775. package/dist/components/Employee/Profile/useProfile.js.map +0 -1
  776. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +0 -1
  777. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +0 -1
  778. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +0 -1
  779. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +0 -26
  780. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +0 -24
  781. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +0 -1
  782. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +0 -34
  783. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +0 -1
  784. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +0 -3
  785. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +0 -14
  786. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +0 -1
  787. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +0 -36
  788. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +0 -1
  789. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +0 -1
  790. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +0 -42
  791. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +0 -1
  792. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +0 -1
  793. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +0 -42
  794. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +0 -1
  795. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +0 -36
  796. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +0 -1
  797. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +0 -12
  798. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +0 -40
  799. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +0 -1
  800. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +0 -1
  801. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +0 -1
  802. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +0 -4
  803. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +0 -13
  804. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +0 -1
  805. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +0 -6
  806. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +0 -14
  807. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +0 -1
  808. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +0 -17
  809. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +0 -1
  810. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +0 -4
  811. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +0 -8
  812. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +0 -1
  813. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +0 -1
  814. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +0 -1
  815. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +0 -5
  816. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +0 -150
  817. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +0 -1
  818. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +0 -97
  819. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +0 -118
  820. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +0 -1
  821. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +0 -1
  822. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +0 -7
  823. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +0 -104
  824. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +0 -259
  825. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +0 -1
  826. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +0 -5
  827. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +0 -113
  828. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +0 -1
  829. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +0 -45
  830. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +0 -1
  831. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +0 -1
  832. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +0 -77
  833. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +0 -153
  834. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +0 -1
  835. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +0 -5
  836. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +0 -70
  837. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +0 -1
  838. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +0 -1
  839. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +0 -68
  840. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +0 -129
  841. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +0 -1
  842. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +0 -24
  843. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +0 -1
  844. package/dist/components/UNSTABLE_Hooks/index.d.ts +0 -9
  845. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.d.ts +0 -6
  846. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.js +0 -50
  847. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.js.map +0 -1
  848. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  849. package/dist/helpers/collectErrors.js.map +0 -1
  850. package/dist/helpers/requiredIf.d.ts +0 -13
  851. package/dist/helpers/requiredIf.js +0 -8
  852. package/dist/helpers/requiredIf.js.map +0 -1
  853. package/dist/hooks/useErrorHandling.d.ts +0 -9
  854. package/dist/hooks/useErrorHandling.js +0 -12
  855. package/dist/hooks/useErrorHandling.js.map +0 -1
  856. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +0 -58
  857. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +0 -1
  858. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +0 -34
  859. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +0 -1
  860. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +0 -24
  861. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +0 -1
  862. /package/dist/components/Employee/{Profile/getEmployeeAddressForProfile.test.d.ts → Compensation/shared/useCompensationForm/compensationSchemaParity.test.d.ts} +0 -0
  863. /package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/shared → shared}/EmployeeTable/index.d.ts +0 -0
  864. /package/dist/components/{UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts → UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts} +0 -0
  865. /package/dist/{components/UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts → hooks/useCompanyPaymentSpeed.test.d.ts} +0 -0
  866. /package/dist/{helpers → partner-hook-utils}/collectErrors.d.ts +0 -0
  867. /package/dist/{helpers → partner-hook-utils}/collectErrors.js +0 -0
  868. /package/dist/{components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts → partner-hook-utils/composeErrorHandler.test.d.ts} +0 -0
  869. /package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/FormFieldsMetadataContext.js +0 -0
  870. /package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/FormFieldsMetadataProvider.js +0 -0
  871. /package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/SDKFormProvider.js +0 -0
  872. /package/dist/{hooks/useErrorHandling.test.d.ts → partner-hook-utils/form/buildFormSchema.test.d.ts} +0 -0
  873. /package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/getFieldWithOptions.js +0 -0
  874. /package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/getFormSubmissionValues.d.ts +0 -0
  875. /package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/getFormSubmissionValues.js +0 -0
  876. /package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/useHookFieldResolution.js +0 -0
  877. /package/dist/{components/UNSTABLE_Hooks → partner-hook-utils}/form/withOptions.js +0 -0
@@ -1,150 +0,0 @@
1
- import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
- import { useTranslation as R, Trans as C } from "react-i18next";
3
- import { SDKFormProvider as D } from "../../form/SDKFormProvider.js";
4
- import { useCompensationForm as f } from "./useCompensationForm.js";
5
- import { useComponentContext as b } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- import { BaseBoundaries as L, BaseLayout as d } from "../../../Base/Base.js";
7
- import "../../../Base/useBase.js";
8
- import { Form as M } from "../../../Common/Form/Form.js";
9
- import { FLSA_OVERTIME_SALARY_LIMIT as U, componentEvents as r } from "../../../../shared/constants.js";
10
- import "classnames";
11
- import { ActionsLayout as T } from "../../../Common/ActionsLayout/ActionsLayout.js";
12
- import { useI18n as I, useComponentDictionary as S } from "../../../../i18n/I18n.js";
13
- import g from "../../../../hooks/useNumberFormatter.js";
14
- function W({ onEvent: n, dictionary: l, ...E }) {
15
- I("UNSTABLE.CompensationForm"), S("UNSTABLE.CompensationForm", l);
16
- const { t: e } = R("UNSTABLE.CompensationForm"), m = b(), c = g("currency"), a = f(E);
17
- if (a.isLoading)
18
- return /* @__PURE__ */ t(d, { isLoading: !0, error: a.errorHandling.errors });
19
- const { Fields: i } = a.form, p = async () => {
20
- const o = await a.actions.onSubmit({
21
- onJobCreated: (s) => {
22
- n(r.EMPLOYEE_JOB_CREATED, s);
23
- },
24
- onJobUpdated: (s) => {
25
- n(r.EMPLOYEE_JOB_UPDATED, s);
26
- },
27
- onCompensationUpdated: (s) => {
28
- n(r.EMPLOYEE_COMPENSATION_UPDATED, s);
29
- }
30
- });
31
- o && n(r.EMPLOYEE_COMPENSATION_DONE, o.data);
32
- };
33
- return /* @__PURE__ */ t(d, { error: a.errorHandling.errors, children: /* @__PURE__ */ t(D, { formHookResult: a, children: /* @__PURE__ */ u(
34
- M,
35
- {
36
- onSubmit: (o) => {
37
- o.preventDefault(), p();
38
- },
39
- children: [
40
- /* @__PURE__ */ t(m.Heading, { as: "h2", children: a.status.mode === "create" ? e("addTitle") : e("editTitle") }),
41
- i.StartDate && /* @__PURE__ */ t(
42
- i.StartDate,
43
- {
44
- label: e("startDateLabel"),
45
- validationMessages: {
46
- REQUIRED: e("fieldValidations.startDate.REQUIRED")
47
- }
48
- }
49
- ),
50
- /* @__PURE__ */ t(
51
- i.JobTitle,
52
- {
53
- label: e("jobTitle"),
54
- validationMessages: {
55
- REQUIRED: e("fieldValidations.jobTitle.REQUIRED")
56
- }
57
- }
58
- ),
59
- i.FlsaStatus && /* @__PURE__ */ t(
60
- i.FlsaStatus,
61
- {
62
- label: e("employeeClassification"),
63
- description: /* @__PURE__ */ t(
64
- C,
65
- {
66
- t: e,
67
- i18nKey: "classificationLink",
68
- components: {
69
- ClassificationLink: /* @__PURE__ */ t(m.Link, {})
70
- }
71
- }
72
- ),
73
- getOptionLabel: (o) => e(`flsaStatusLabels.${o}`, o),
74
- validationMessages: {
75
- REQUIRED: e("fieldValidations.flsaStatus.REQUIRED")
76
- }
77
- }
78
- ),
79
- /* @__PURE__ */ t(
80
- i.Rate,
81
- {
82
- label: e("amount"),
83
- validationMessages: {
84
- REQUIRED: e("fieldValidations.rate.REQUIRED"),
85
- RATE_MINIMUM: e("fieldValidations.rate.RATE_MINIMUM"),
86
- RATE_EXEMPT_THRESHOLD: e("fieldValidations.rate.RATE_EXEMPT_THRESHOLD", {
87
- limit: c(U)
88
- })
89
- }
90
- }
91
- ),
92
- /* @__PURE__ */ t(
93
- i.PaymentUnit,
94
- {
95
- label: e("paymentUnitLabel"),
96
- description: e("paymentUnitDescription"),
97
- getOptionLabel: (o) => e(`paymentUnitOptions.${o}`, o),
98
- validationMessages: {
99
- REQUIRED: e("fieldValidations.paymentUnit.REQUIRED")
100
- }
101
- }
102
- ),
103
- i.AdjustForMinimumWage && /* @__PURE__ */ t(
104
- i.AdjustForMinimumWage,
105
- {
106
- label: e("adjustForMinimumWage"),
107
- description: e("adjustForMinimumWageDescription")
108
- }
109
- ),
110
- i.MinimumWageId && /* @__PURE__ */ t(
111
- i.MinimumWageId,
112
- {
113
- label: e("minimumWageLabel"),
114
- description: e("minimumWageDescription"),
115
- validationMessages: {
116
- REQUIRED: e("fieldValidations.minimumWageId.REQUIRED")
117
- }
118
- }
119
- ),
120
- i.TwoPercentShareholder && /* @__PURE__ */ t(i.TwoPercentShareholder, { label: e("twoPercentStakeholderLabel") }),
121
- i.StateWcCovered && /* @__PURE__ */ t(
122
- i.StateWcCovered,
123
- {
124
- label: e("stateWcCoveredLabel"),
125
- description: e("stateWcCoveredDescription"),
126
- getOptionLabel: (o) => e(o === "yes" ? "stateWcCoveredYes" : "stateWcCoveredNo")
127
- }
128
- ),
129
- i.StateWcClassCode && /* @__PURE__ */ t(
130
- i.StateWcClassCode,
131
- {
132
- label: e("stateWcClassCodeLabel"),
133
- description: e("stateWcClassCodeDescription"),
134
- validationMessages: {
135
- REQUIRED: e("fieldValidations.stateWcClassCode.REQUIRED")
136
- }
137
- }
138
- ),
139
- /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(m.Button, { type: "submit", isLoading: a.status.isPending, children: e("saveNewJobCta") }) })
140
- ]
141
- }
142
- ) }) });
143
- }
144
- function H({ FallbackComponent: n, ...l }) {
145
- return /* @__PURE__ */ t(L, { componentName: "UNSTABLE.CompensationForm", FallbackComponent: n, children: /* @__PURE__ */ t(W, { ...l }) });
146
- }
147
- export {
148
- H as CompensationForm
149
- };
150
- //# sourceMappingURL=CompensationForm.js.map
@@ -1 +0,0 @@
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,97 +0,0 @@
1
- import { z } from 'zod';
2
- import { RequiredFields } from '../../form/resolveRequiredFields';
3
- export declare const CompensationErrorCodes: {
4
- readonly REQUIRED: "REQUIRED";
5
- readonly RATE_MINIMUM: "RATE_MINIMUM";
6
- readonly RATE_EXEMPT_THRESHOLD: "RATE_EXEMPT_THRESHOLD";
7
- readonly PAYMENT_UNIT_OWNER: "PAYMENT_UNIT_OWNER";
8
- readonly PAYMENT_UNIT_COMMISSION: "PAYMENT_UNIT_COMMISSION";
9
- readonly RATE_COMMISSION_ZERO: "RATE_COMMISSION_ZERO";
10
- };
11
- export type CompensationErrorCode = (typeof CompensationErrorCodes)[keyof typeof CompensationErrorCodes];
12
- declare const fieldValidators: {
13
- jobTitle: z.ZodString;
14
- flsaStatus: z.ZodEnum<{
15
- Exempt: "Exempt";
16
- "Salaried Nonexempt": "Salaried Nonexempt";
17
- Nonexempt: "Nonexempt";
18
- Owner: "Owner";
19
- "Commission Only Exempt": "Commission Only Exempt";
20
- "Commission Only Nonexempt": "Commission Only Nonexempt";
21
- }>;
22
- paymentUnit: z.ZodEnum<{
23
- Hour: "Hour";
24
- Week: "Week";
25
- Month: "Month";
26
- Year: "Year";
27
- Paycheck: "Paycheck";
28
- }>;
29
- rate: z.ZodOptional<z.ZodNumber>;
30
- startDate: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
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>;
36
- };
37
- export type CompensationField = Exclude<keyof typeof fieldValidators, 'adjustForMinimumWage' | 'minimumWageId' | 'stateWcCovered' | 'stateWcClassCode' | 'twoPercentShareholder'>;
38
- export type CompensationFormData = {
39
- [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>;
40
- };
41
- export type CompensationFormOutputs = CompensationFormData;
42
- interface CompensationSchemaOptions {
43
- mode?: 'create' | 'update';
44
- requiredFields?: RequiredFields<CompensationField>;
45
- withStartDateField?: boolean;
46
- }
47
- export declare function createCompensationSchema(options?: CompensationSchemaOptions): z.ZodObject<{
48
- rate: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodNumber>;
49
- startDate: z.ZodPipe<z.ZodTransform<{} | null | undefined, unknown>, z.ZodNullable<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>, z.ZodNumber>;
74
- startDate: z.ZodPipe<z.ZodTransform<{} | null | undefined, unknown>, z.ZodNullable<z.ZodISODate>>;
75
- stateWcCovered: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
76
- jobTitle: z.ZodString;
77
- flsaStatus: z.ZodEnum<{
78
- Exempt: "Exempt";
79
- "Salaried Nonexempt": "Salaried Nonexempt";
80
- Nonexempt: "Nonexempt";
81
- Owner: "Owner";
82
- "Commission Only Exempt": "Commission Only Exempt";
83
- "Commission Only Nonexempt": "Commission Only Nonexempt";
84
- }>;
85
- paymentUnit: z.ZodEnum<{
86
- Hour: "Hour";
87
- Week: "Week";
88
- Month: "Month";
89
- Year: "Year";
90
- Paycheck: "Paycheck";
91
- }>;
92
- 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>;
97
- export {};
@@ -1,118 +0,0 @@
1
- import { z as e } from "zod";
2
- import { composeFormSchema as T } from "../../form/composeFormSchema.js";
3
- import { filterRequiredFields as _, resolveRequiredFields as C } from "../../form/resolveRequiredFields.js";
4
- import { FlsaStatus as s, FLSA_OVERTIME_SALARY_LIMIT as p, PAY_PERIODS as i } from "../../../../shared/constants.js";
5
- import { yearlyRate as f } from "../../../../helpers/payRateCalculator.js";
6
- const o = {
7
- REQUIRED: "REQUIRED",
8
- RATE_MINIMUM: "RATE_MINIMUM",
9
- RATE_EXEMPT_THRESHOLD: "RATE_EXEMPT_THRESHOLD",
10
- PAYMENT_UNIT_OWNER: "PAYMENT_UNIT_OWNER",
11
- PAYMENT_UNIT_COMMISSION: "PAYMENT_UNIT_COMMISSION",
12
- RATE_COMMISSION_ZERO: "RATE_COMMISSION_ZERO"
13
- }, D = {
14
- jobTitle: e.string().min(1, { message: o.REQUIRED }),
15
- flsaStatus: e.enum([
16
- s.EXEMPT,
17
- s.SALARIED_NONEXEMPT,
18
- s.NONEXEMPT,
19
- s.OWNER,
20
- s.COMMISSION_ONLY_EXEMPT,
21
- s.COMMISSION_ONLY_NONEXEMPT
22
- ]),
23
- paymentUnit: e.enum([
24
- i.HOUR,
25
- i.WEEK,
26
- i.MONTH,
27
- i.YEAR,
28
- i.PAYCHECK
29
- ]),
30
- rate: e.number().optional(),
31
- startDate: e.iso.date().nullable().optional(),
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
- }, A = /* @__PURE__ */ new Set([
38
- "adjustForMinimumWage",
39
- "minimumWageId",
40
- "stateWcCovered",
41
- "stateWcClassCode",
42
- "twoPercentShareholder"
43
- ]), U = {
44
- ...D,
45
- rate: e.preprocess(
46
- (t) => t == null || Number.isNaN(t) ? 0 : t,
47
- e.number({ error: () => o.REQUIRED })
48
- ),
49
- startDate: e.preprocess(
50
- (t) => t instanceof Date ? t.toISOString().split("T")[0] : t === null || t === "" || t === void 0 ? null : t,
51
- e.iso.date({ error: () => o.REQUIRED }).nullable()
52
- ),
53
- stateWcCovered: e.preprocess((t) => typeof t == "string" ? t === "true" : t, e.boolean()).optional()
54
- }, P = /* @__PURE__ */ new Set([
55
- "jobTitle",
56
- "flsaStatus",
57
- "rate",
58
- "paymentUnit"
59
- ]), N = /* @__PURE__ */ new Set([]);
60
- function g(t = {}) {
61
- const { mode: n = "create", requiredFields: m, withStartDateField: M = !0 } = t, R = M ? m : _(m, "startDate"), u = new Set(P);
62
- M && u.add("startDate");
63
- const c = T({
64
- fieldValidators: U,
65
- fixedFields: A,
66
- requiredOnCreate: u,
67
- requiredOnUpdate: N,
68
- mode: n,
69
- requiredFields: R
70
- }), O = n === "create" ? u : N, l = new Set(C(R, n)), S = O.has("startDate") || l.has("startDate");
71
- return c.superRefine((a, r) => {
72
- S && a.startDate == null && r.addIssue({
73
- code: e.ZodIssueCode.custom,
74
- path: ["startDate"],
75
- message: o.REQUIRED
76
- }), a.adjustForMinimumWage && (!a.minimumWageId || a.minimumWageId.trim() === "") && r.addIssue({
77
- code: e.ZodIssueCode.custom,
78
- path: ["minimumWageId"],
79
- message: o.REQUIRED
80
- }), a.stateWcCovered === !0 && (!a.stateWcClassCode || a.stateWcClassCode.trim() === "") && r.addIssue({
81
- code: e.ZodIssueCode.custom,
82
- path: ["stateWcClassCode"],
83
- message: o.REQUIRED
84
- });
85
- const { flsaStatus: E, paymentUnit: I } = a, d = a.rate;
86
- E === s.EXEMPT || E === s.SALARIED_NONEXEMPT || E === s.NONEXEMPT ? d < 1 ? r.addIssue({
87
- code: e.ZodIssueCode.custom,
88
- path: ["rate"],
89
- message: o.RATE_MINIMUM
90
- }) : E === s.EXEMPT && f(d, I) < p && r.addIssue({
91
- code: e.ZodIssueCode.custom,
92
- path: ["rate"],
93
- message: o.RATE_EXEMPT_THRESHOLD
94
- }) : E === s.OWNER ? (I !== i.PAYCHECK && r.addIssue({
95
- code: e.ZodIssueCode.custom,
96
- path: ["paymentUnit"],
97
- message: o.PAYMENT_UNIT_OWNER
98
- }), d < 1 && r.addIssue({
99
- code: e.ZodIssueCode.custom,
100
- path: ["rate"],
101
- message: o.RATE_MINIMUM
102
- })) : [s.COMMISSION_ONLY_EXEMPT, s.COMMISSION_ONLY_NONEXEMPT].includes(E) && (I !== i.YEAR && r.addIssue({
103
- code: e.ZodIssueCode.custom,
104
- path: ["paymentUnit"],
105
- message: o.PAYMENT_UNIT_COMMISSION
106
- }), d !== 0 && r.addIssue({
107
- code: e.ZodIssueCode.custom,
108
- path: ["rate"],
109
- message: o.RATE_COMMISSION_ZERO
110
- }));
111
- });
112
- }
113
- g();
114
- export {
115
- o as CompensationErrorCodes,
116
- g as createCompensationSchema
117
- };
118
- //# sourceMappingURL=compensationSchema.js.map
@@ -1 +0,0 @@
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 {\n filterRequiredFields,\n resolveRequiredFields,\n type RequiredFields,\n} 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(\n val => {\n if (val === undefined || val === null || Number.isNaN(val)) return 0\n return val\n },\n z.number({ error: () => CompensationErrorCodes.REQUIRED }),\n ),\n startDate: z.preprocess(\n val => {\n if (val instanceof Date) return val.toISOString().split('T')[0]\n if (val === null || val === '' || val === undefined) return null\n return val\n },\n z.iso.date({ error: () => CompensationErrorCodes.REQUIRED }).nullable(),\n ),\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\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 const modeDefaults = mode === 'create' ? effectiveRequiredOnCreate : REQUIRED_ON_UPDATE\n const partnerRequired = new Set(resolveRequiredFields(effectiveRequiredFields, mode))\n const isStartDateRequired = modeDefaults.has('startDate') || partnerRequired.has('startDate')\n\n return baseSchema.superRefine((data, ctx) => {\n if (isStartDateRequired && data.startDate == null) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['startDate'],\n message: CompensationErrorCodes.REQUIRED,\n })\n }\n\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 } = data\n const rate = data.rate\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 } 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}\n\nexport const CompensationSchema = createCompensationSchema()\n"],"names":["CompensationErrorCodes","fieldValidators","z","FlsaStatus","PAY_PERIODS","FIXED_FIELDS","runtimeFieldValidators","val","REQUIRED_ON_CREATE","REQUIRED_ON_UPDATE","createCompensationSchema","options","mode","requiredFields","withStartDateField","effectiveRequiredFields","filterRequiredFields","effectiveRequiredOnCreate","baseSchema","composeFormSchema","modeDefaults","partnerRequired","resolveRequiredFields","isStartDateRequired","data","ctx","flsaStatus","paymentUnit","rate","yearlyRate","FLSA_OVERTIME_SALARY_LIMIT"],"mappings":"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"}
@@ -1 +0,0 @@
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, 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,7 +0,0 @@
1
- import "./types/i18next.d.ts"
2
- export { useCompensationForm } from './useCompensationForm';
3
- export type { CompensationSubmitCallbacks, CompensationSubmitOptions, CompensationRequiredFields, UseCompensationFormProps, UseCompensationFormResult, UseCompensationFormReady, CompensationFieldsMetadata, CompensationFormFields, } from './useCompensationForm';
4
- export { CompensationForm } from './CompensationForm';
5
- export type { CompensationFormProps } from './CompensationForm';
6
- export { CompensationSchema, createCompensationSchema, CompensationErrorCodes, type CompensationErrorCode, type CompensationField, type CompensationFormData, type CompensationFormOutputs, } from './compensationSchema';
7
- export type { RequiredValidation, RateValidation, StartDateFieldProps, JobTitleFieldProps, FlsaStatusFieldProps, RateFieldProps, PaymentUnitFieldProps, AdjustForMinimumWageFieldProps, MinimumWageIdFieldProps, TwoPercentShareholderFieldProps, StateWcCoveredFieldProps, StateWcClassCodeFieldProps, } from './fields';
@@ -1,104 +0,0 @@
1
- import { UseFormProps } from 'react-hook-form';
2
- import { Compensation, PaymentUnit } from '@gusto/embedded-api/models/components/compensation';
3
- import { Job } from '@gusto/embedded-api/models/components/job';
4
- import { FlsaStatusType } from '@gusto/embedded-api/models/components/flsastatustype';
5
- import { MinimumWage } from '@gusto/embedded-api/models/components/minimumwage';
6
- import { RequiredFields } from '../../form/resolveRequiredFields';
7
- import { CompensationField, CompensationFormData } from './compensationSchema';
8
- import { JobTitleField, FlsaStatusField, RateField, PaymentUnitField, AdjustForMinimumWageField, MinimumWageIdField, TwoPercentShareholderField, StateWcCoveredField, StateWcClassCodeField, StartDateField } from './fields';
9
- import { HookSubmitResult } from '../../../../types/sdkHooks';
10
- import { WARiskClassCode } from '../../../../models/WA_RISK_CODES';
11
- export interface CompensationSubmitCallbacks {
12
- onJobCreated?: (job: Job) => void;
13
- onJobUpdated?: (job: Job) => void;
14
- onCompensationUpdated?: (compensation: Compensation | undefined) => void;
15
- }
16
- export interface CompensationSubmitOptions {
17
- employeeId?: string;
18
- startDate?: string;
19
- }
20
- export type CompensationRequiredFields = RequiredFields<CompensationField>;
21
- export interface UseCompensationFormProps {
22
- employeeId?: string;
23
- withStartDateField?: boolean;
24
- jobId?: string;
25
- requiredFields?: CompensationRequiredFields;
26
- defaultValues?: Partial<CompensationFormData>;
27
- validationMode?: UseFormProps['mode'];
28
- shouldFocusError?: boolean;
29
- }
30
- export declare function useCompensationForm({ employeeId, withStartDateField, jobId, requiredFields, defaultValues: partnerDefaults, validationMode, shouldFocusError, }: UseCompensationFormProps): {
31
- isLoading: true;
32
- errorHandling: import('../../../../types/sdkHooks').HookErrorHandling;
33
- data?: undefined;
34
- status?: undefined;
35
- actions?: undefined;
36
- form?: undefined;
37
- } | {
38
- isLoading: false;
39
- data: {
40
- compensation: Compensation | null;
41
- jobs: Job[] | undefined;
42
- currentJob: Job | null;
43
- minimumWages: MinimumWage[];
44
- };
45
- status: {
46
- isPending: boolean;
47
- mode: string;
48
- };
49
- actions: {
50
- onSubmit: (callbacks?: CompensationSubmitCallbacks, options?: CompensationSubmitOptions) => Promise<HookSubmitResult<Compensation | undefined> | undefined>;
51
- };
52
- errorHandling: import('../../../../types/sdkHooks').HookErrorHandling;
53
- form: {
54
- Fields: {
55
- StartDate: typeof StartDateField | undefined;
56
- JobTitle: typeof JobTitleField;
57
- FlsaStatus: typeof FlsaStatusField | undefined;
58
- Rate: typeof RateField;
59
- PaymentUnit: typeof PaymentUnitField;
60
- AdjustForMinimumWage: typeof AdjustForMinimumWageField | undefined;
61
- MinimumWageId: typeof MinimumWageIdField | undefined;
62
- TwoPercentShareholder: typeof TwoPercentShareholderField | undefined;
63
- StateWcCovered: typeof StateWcCoveredField | undefined;
64
- StateWcClassCode: typeof StateWcClassCodeField | undefined;
65
- };
66
- fieldsMetadata: {
67
- startDate: import('../../../../types/sdkHooks').FieldMetadata;
68
- jobTitle: import('../../../../types/sdkHooks').FieldMetadata;
69
- flsaStatus: import('../../../../types/sdkHooks').FieldMetadataWithOptions<FlsaStatusType>;
70
- rate: {
71
- isDisabled: boolean;
72
- name: string;
73
- isRequired?: boolean;
74
- hasRedactedValue?: boolean;
75
- };
76
- paymentUnit: import('../../../../types/sdkHooks').FieldMetadataWithOptions<PaymentUnit>;
77
- adjustForMinimumWage: {
78
- isDisabled: boolean;
79
- name: string;
80
- isRequired?: boolean;
81
- hasRedactedValue?: boolean;
82
- };
83
- minimumWageId: import('../../../../types/sdkHooks').FieldMetadataWithOptions<MinimumWage>;
84
- twoPercentShareholder: {
85
- isDisabled: boolean;
86
- name: string;
87
- isRequired?: boolean;
88
- hasRedactedValue?: boolean;
89
- };
90
- stateWcCovered: import('../../../../types/sdkHooks').FieldMetadataWithOptions<string>;
91
- stateWcClassCode: import('../../../../types/sdkHooks').FieldMetadataWithOptions<WARiskClassCode>;
92
- };
93
- hookFormInternals: {
94
- formMethods: import('react-hook-form').UseFormReturn<CompensationFormData, unknown, CompensationFormData>;
95
- };
96
- getFormSubmissionValues: () => CompensationFormData | undefined;
97
- };
98
- };
99
- export type UseCompensationFormResult = ReturnType<typeof useCompensationForm>;
100
- export type UseCompensationFormReady = Extract<UseCompensationFormResult, {
101
- data: object;
102
- }>;
103
- export type CompensationFieldsMetadata = UseCompensationFormReady['form']['fieldsMetadata'];
104
- export type CompensationFormFields = UseCompensationFormReady['form']['Fields'];