@gusto/embedded-react-sdk 0.38.0 → 0.39.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 (696) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  3. package/dist/UNSTABLE_Hooks.js +64 -46
  4. package/dist/UNSTABLE_Hooks.js.map +1 -1
  5. package/dist/assets/icons/percent-circle.svg.js +10 -0
  6. package/dist/assets/icons/percent-circle.svg.js.map +1 -0
  7. package/dist/assets/icons/plus-circle.svg.js +1 -1
  8. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  9. package/dist/components/Base/Base.js +2 -3
  10. package/dist/components/Base/Base.js.map +1 -1
  11. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +5 -3
  12. package/dist/components/Common/DataView/DataCards/DataCards.js +59 -46
  13. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  14. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +9 -7
  15. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  16. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +4 -2
  17. package/dist/components/Common/DataView/DataTable/DataTable.js +95 -76
  18. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  19. package/dist/components/Common/DataView/DataView.d.ts +4 -3
  20. package/dist/components/Common/DataView/DataView.js +24 -22
  21. package/dist/components/Common/DataView/DataView.js.map +1 -1
  22. package/dist/components/Common/DataView/useDataView.d.ts +33 -6
  23. package/dist/components/Common/DataView/useDataView.js +23 -20
  24. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  25. package/dist/components/Common/DataView/useSelectionState.d.ts +5 -0
  26. package/dist/components/Common/DataView/useSelectionState.js +8 -0
  27. package/dist/components/Common/DataView/useSelectionState.js.map +1 -0
  28. package/dist/components/Common/DateRangeFilter/DateRangeFilter.d.ts +3 -1
  29. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +65 -71
  30. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  31. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js +10 -6
  32. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js.map +1 -1
  33. package/dist/components/Common/EmptyData/EmptyData.d.ts +2 -1
  34. package/dist/components/Common/EmptyData/EmptyData.js +15 -13
  35. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  36. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +6 -4
  37. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  38. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.d.ts +2 -2
  39. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js +2 -2
  40. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -1
  41. package/dist/components/Common/SignatureForm/SignatureForm.js +4 -6
  42. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  43. package/dist/components/Common/SignatureForm/SignatureFormActions.js +5 -6
  44. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  45. package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -7
  46. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  47. package/dist/components/Common/UI/Box/Box.d.ts +1 -1
  48. package/dist/components/Common/UI/Box/Box.js +9 -8
  49. package/dist/components/Common/UI/Box/Box.js.map +1 -1
  50. package/dist/components/Common/UI/Box/Box.module.scss.js +12 -8
  51. package/dist/components/Common/UI/Box/Box.module.scss.js.map +1 -1
  52. package/dist/components/Common/UI/Box/BoxTypes.d.ts +2 -9
  53. package/dist/components/Common/UI/BoxHeader/BoxHeader.d.ts +2 -0
  54. package/dist/components/Common/UI/BoxHeader/BoxHeader.js +23 -0
  55. package/dist/components/Common/UI/BoxHeader/BoxHeader.js.map +1 -0
  56. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js +8 -0
  57. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js.map +1 -0
  58. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +10 -0
  59. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js +7 -0
  60. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -0
  61. package/dist/components/Common/UI/BoxHeader/index.d.ts +2 -0
  62. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  63. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  64. package/dist/components/Common/UI/Checkbox/Checkbox.js +60 -49
  65. package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
  66. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +10 -6
  67. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js.map +1 -1
  68. package/dist/components/Common/UI/ComboBox/ComboBox.js +1 -1
  69. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  70. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
  71. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +6 -6
  72. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js +34 -36
  73. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js.map +1 -1
  74. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js +12 -12
  75. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +19 -12
  76. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
  77. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +6 -4
  78. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js.map +1 -1
  79. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +6 -1
  80. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js +4 -1
  81. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
  82. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  83. package/dist/components/Common/UI/Heading/Heading.module.scss.js +15 -15
  84. package/dist/components/Common/UI/Input/Input.js.map +1 -1
  85. package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
  86. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  87. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +1 -1
  88. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  89. package/dist/components/Common/UI/Select/Select.js +22 -22
  90. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  91. package/dist/components/Common/UI/Select/SelectTypes.d.ts +1 -1
  92. package/dist/components/Common/UI/Table/Table.js +12 -12
  93. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  94. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  95. package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -3
  96. package/dist/components/Common/UI/Table/TableTypes.js +3 -3
  97. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  98. package/dist/components/Common/UI/TextArea/TextArea.js +1 -1
  99. package/dist/components/Common/UI/TextArea/TextArea.js.map +1 -1
  100. package/dist/components/Common/UI/TextInput/TextInput.js +13 -13
  101. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  102. package/dist/components/Company/AssignSignatory/AssignSignatory.js +2 -3
  103. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  104. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
  105. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  106. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
  107. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  108. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +1 -1
  109. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -5
  110. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  111. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
  112. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  113. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  114. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -5
  115. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  116. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -3
  117. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  118. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -7
  119. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  120. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +2 -3
  121. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  122. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -11
  123. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  124. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -5
  125. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  126. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +8 -9
  127. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  128. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -8
  129. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  130. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -6
  131. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  132. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
  133. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  134. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +8 -9
  135. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  136. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -5
  137. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  138. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  139. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  140. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -5
  141. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  142. package/dist/components/Company/FederalTaxes/Actions.js +5 -6
  143. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  144. package/dist/components/Company/FederalTaxes/FederalTaxes.js +17 -18
  145. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  146. package/dist/components/Company/FederalTaxes/Form.js +4 -6
  147. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  148. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -10
  149. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  150. package/dist/components/Company/Industry/Actions.js +2 -3
  151. package/dist/components/Company/Industry/Actions.js.map +1 -1
  152. package/dist/components/Company/Industry/Context.js +6 -8
  153. package/dist/components/Company/Industry/Context.js.map +1 -1
  154. package/dist/components/Company/Industry/Edit.js +4 -5
  155. package/dist/components/Company/Industry/Edit.js.map +1 -1
  156. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
  157. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  158. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  159. package/dist/components/Company/Locations/LocationForm/LocationForm.js +3 -4
  160. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  161. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -5
  162. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  163. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -7
  164. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  165. package/dist/components/Company/Locations/LocationsList/List.js +6 -7
  166. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  167. package/dist/components/Company/Locations/LocationsList/LocationsList.js +2 -3
  168. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  169. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -5
  170. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  171. package/dist/components/Company/OnboardingOverview/Completed.js +12 -14
  172. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  173. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +5 -7
  174. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  175. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -3
  176. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  177. package/dist/components/Company/OnboardingOverview/context.js +3 -5
  178. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  179. package/dist/components/Company/PaySchedule/PaySchedule.js +70 -68
  180. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  181. package/dist/components/Company/PaySchedule/_parts/Actions.js +7 -8
  182. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  183. package/dist/components/Company/PaySchedule/_parts/Edit.js +40 -35
  184. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  185. package/dist/components/Company/PaySchedule/_parts/Head.js +8 -10
  186. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  187. package/dist/components/Company/PaySchedule/_parts/List.js +13 -15
  188. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  189. package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +5 -6
  190. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -7
  191. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  192. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
  193. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  194. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +33 -33
  195. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  196. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -5
  197. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  198. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
  199. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  200. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -6
  201. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  202. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +14 -14
  203. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  204. package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +2 -2
  205. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -5
  206. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  207. package/dist/components/Contractor/Address/Address.js +3 -4
  208. package/dist/components/Contractor/Address/Address.js.map +1 -1
  209. package/dist/components/Contractor/Address/useAddress.js +5 -7
  210. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  211. package/dist/components/Contractor/ContractorList/index.js +19 -20
  212. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  213. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  214. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  215. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +5 -6
  216. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  217. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  218. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  219. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
  220. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  221. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +135 -126
  222. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  223. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +2 -1
  224. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +77 -76
  225. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  226. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  227. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -1
  228. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +5 -7
  229. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  230. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +2 -1
  231. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +83 -84
  232. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  233. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +2 -4
  234. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  235. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +10 -10
  236. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  237. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +67 -79
  238. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  239. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +10 -12
  240. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -1
  241. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +47 -49
  242. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  243. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +63 -65
  244. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  245. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js +4 -4
  246. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  247. package/dist/components/Contractor/Profile/useContractorProfile.js +33 -35
  248. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  249. package/dist/components/Contractor/Submit/Submit.js +7 -8
  250. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  251. package/dist/components/Employee/Compensation/Actions.js +4 -5
  252. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  253. package/dist/components/Employee/Compensation/Compensation.js +80 -77
  254. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  255. package/dist/components/Employee/Compensation/Edit.js +27 -28
  256. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  257. package/dist/components/Employee/Compensation/List.js +22 -23
  258. package/dist/components/Employee/Compensation/List.js.map +1 -1
  259. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +13 -0
  260. package/dist/components/Employee/Dashboard/BasicDetailsView.js +107 -0
  261. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -0
  262. package/dist/components/Employee/Dashboard/Dashboard.d.ts +5 -0
  263. package/dist/components/Employee/Dashboard/Dashboard.js +146 -0
  264. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -0
  265. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +5 -0
  266. package/dist/components/Employee/Dashboard/DashboardComponents.js +12 -0
  267. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -0
  268. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +5 -0
  269. package/dist/components/Employee/Dashboard/DashboardFlow.js +25 -0
  270. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -0
  271. package/dist/components/Employee/Dashboard/DocumentsView.d.ts +7 -0
  272. package/dist/components/Employee/Dashboard/DocumentsView.js +51 -0
  273. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -0
  274. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +22 -0
  275. package/dist/components/Employee/Dashboard/JobAndPayView.js +211 -0
  276. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -0
  277. package/dist/components/Employee/Dashboard/TaxesView.d.ts +13 -0
  278. package/dist/components/Employee/Dashboard/TaxesView.js +97 -0
  279. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -0
  280. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  281. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +8 -0
  282. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -0
  283. package/dist/components/Employee/Dashboard/hooks/index.d.ts +9 -0
  284. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.d.ts +20 -0
  285. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js +29 -0
  286. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js.map +1 -0
  287. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +30 -0
  288. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +52 -0
  289. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -0
  290. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.d.ts +16 -0
  291. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +22 -0
  292. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -0
  293. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.d.ts +20 -0
  294. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js +24 -0
  295. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js.map +1 -0
  296. package/dist/components/Employee/Dashboard/index.d.ts +14 -0
  297. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +10 -12
  298. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  299. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +17 -19
  300. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  301. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -13
  302. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  303. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +7 -8
  304. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  305. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -7
  306. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  307. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +5 -6
  308. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  309. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -4
  310. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  311. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -5
  312. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  313. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +22 -22
  314. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  315. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
  316. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  317. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +11 -12
  318. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  319. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +7 -8
  320. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  321. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -5
  322. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  323. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +2 -4
  324. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  325. package/dist/components/Employee/EmployeeList/EmployeeList.d.ts +2 -3
  326. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  327. package/dist/components/Employee/EmployeeList/EmployeeListView.js +40 -42
  328. package/dist/components/Employee/EmployeeList/EmployeeListView.js.map +1 -1
  329. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js +7 -9
  330. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js.map +1 -1
  331. package/dist/components/Employee/FederalTaxes/Actions.js +6 -7
  332. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  333. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -11
  334. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  335. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -5
  336. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  337. package/dist/components/Employee/Landing/Landing.js +14 -15
  338. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  339. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  340. package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
  341. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  342. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -6
  343. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  344. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +2 -3
  345. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  346. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +6 -7
  347. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  348. package/dist/components/Employee/PaymentMethod/Split.js +10 -11
  349. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  350. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -7
  351. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  352. package/dist/components/Employee/Profile/Actions.js +6 -7
  353. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  354. package/dist/components/Employee/Profile/AdminPersonalDetails.js +4 -5
  355. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  356. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  357. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +1 -1
  358. package/dist/components/Employee/Profile/useProfile.js +3 -5
  359. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  360. package/dist/components/Employee/StateTaxes/Actions.js +7 -8
  361. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  362. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -5
  363. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  364. package/dist/components/Employee/Taxes/Actions.js +8 -9
  365. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  366. package/dist/components/Employee/Taxes/FederalForm.js +10 -11
  367. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  368. package/dist/components/Employee/Taxes/useTaxes.js +3 -5
  369. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  370. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +14 -16
  371. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  372. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +12 -13
  373. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  374. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +2 -4
  375. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  376. package/dist/components/Employee/index.d.ts +2 -0
  377. package/dist/components/Employee/index.js +28 -26
  378. package/dist/components/Employee/index.js.map +1 -1
  379. package/dist/components/Flow/Flow.js +16 -18
  380. package/dist/components/Flow/Flow.js.map +1 -1
  381. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +28 -29
  382. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  383. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +14 -14
  384. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +11 -12
  385. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  386. package/dist/components/InformationRequests/InformationRequests.js +3 -4
  387. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  388. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +10 -11
  389. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  390. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +8 -10
  391. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  392. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +12 -14
  393. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  394. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +74 -69
  395. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  396. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +30 -32
  397. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  398. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +0 -1
  399. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  400. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +1 -1
  401. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +19 -19
  402. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  403. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +3 -3
  404. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +13 -13
  405. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  406. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -7
  407. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  408. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -13
  409. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  410. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -13
  411. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  412. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  413. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  414. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  415. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -2
  416. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +16 -16
  417. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  418. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  419. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +28 -28
  420. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  421. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +22 -24
  422. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  423. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +78 -79
  424. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  425. package/dist/components/Payroll/PayrollList/PayrollList.js +1 -1
  426. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  427. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  428. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +224 -201
  429. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  430. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -8
  431. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +79 -80
  432. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  433. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  434. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +18 -18
  435. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  436. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -1
  437. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +2 -4
  438. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  439. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +103 -114
  440. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  441. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +16 -18
  442. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js.map +1 -1
  443. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -3
  444. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  445. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +6 -7
  446. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  447. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -4
  448. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  449. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +67 -63
  450. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  451. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +8 -10
  452. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  453. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +1 -1
  454. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +5 -5
  455. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
  456. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +13 -13
  457. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  458. package/dist/components/Payroll/helpers.d.ts +1 -1
  459. package/dist/components/Payroll/helpers.js.map +1 -1
  460. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  461. package/dist/components/Payroll/usePreparedPayrollData.js +7 -9
  462. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  463. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +3 -3
  464. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.d.ts +48 -0
  465. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js +94 -0
  466. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js.map +1 -0
  467. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +9 -10
  468. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -1
  469. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +10 -11
  470. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -1
  471. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +9 -10
  472. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -1
  473. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +12 -13
  474. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -1
  475. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +13 -14
  476. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -1
  477. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +3 -3
  478. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +14 -15
  479. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -1
  480. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +2 -4
  481. package/dist/components/UNSTABLE_Hooks/form/preprocessors.d.ts +3 -0
  482. package/dist/components/UNSTABLE_Hooks/form/preprocessors.js +15 -0
  483. package/dist/components/UNSTABLE_Hooks/form/preprocessors.js.map +1 -0
  484. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +1 -1
  485. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +8 -7
  486. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -1
  487. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.d.ts +17 -0
  488. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js +21 -0
  489. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js.map +1 -0
  490. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +7 -7
  491. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
  492. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +1 -1
  493. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -1
  494. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +3 -4
  495. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -1
  496. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +48 -42
  497. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +73 -101
  498. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -1
  499. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchemaParity.test.d.ts +1 -0
  500. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +1 -1
  501. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -1
  502. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +2 -2
  503. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +4 -6
  504. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +111 -112
  505. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
  506. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +3 -4
  507. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -1
  508. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +13 -4
  509. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +31 -25
  510. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
  511. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +4 -3
  512. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -1
  513. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +1 -1
  514. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +5 -19
  515. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +83 -86
  516. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  517. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.d.ts +5 -0
  518. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js +172 -0
  519. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js.map +1 -0
  520. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js +14 -0
  521. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js.map +1 -0
  522. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.d.ts +23 -0
  523. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js +37 -0
  524. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js.map +1 -0
  525. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/index.d.ts +7 -0
  526. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.d.ts +55 -0
  527. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js +54 -0
  528. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js.map +1 -0
  529. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.d.ts +69 -0
  530. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js +180 -0
  531. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js.map +1 -0
  532. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.d.ts +5 -0
  533. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js +69 -0
  534. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js.map +1 -0
  535. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.d.ts +9 -0
  536. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js +14 -0
  537. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js.map +1 -0
  538. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/index.d.ts +7 -0
  539. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.d.ts +25 -0
  540. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js +24 -0
  541. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js.map +1 -0
  542. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.d.ts +57 -0
  543. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js +101 -0
  544. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js.map +1 -0
  545. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.d.ts +5 -0
  546. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js +71 -0
  547. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js.map +1 -0
  548. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.d.ts +5 -0
  549. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js +179 -0
  550. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js.map +1 -0
  551. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.d.ts +53 -0
  552. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js +164 -0
  553. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js.map +1 -0
  554. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/index.d.ts +9 -0
  555. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.d.ts +150 -0
  556. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js +152 -0
  557. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -0
  558. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.d.ts +151 -0
  559. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js +172 -0
  560. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -0
  561. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +6 -7
  562. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -1
  563. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +1 -1
  564. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +4 -5
  565. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +85 -83
  566. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  567. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +8 -4
  568. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +18 -17
  569. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -1
  570. package/dist/components/UNSTABLE_Hooks/index.d.ts +7 -4
  571. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +45 -42
  572. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
  573. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +2 -0
  574. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +55 -0
  575. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  576. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +25 -0
  577. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.d.ts +1 -1
  578. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +69 -46
  579. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +1 -1
  580. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.d.ts +2 -0
  581. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +122 -0
  582. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  583. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js +8 -0
  584. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js.map +1 -0
  585. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListTypes.d.ts +17 -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 +2 -2
  609. package/dist/components/UNSTABLE_TimeOff/index.js +20 -20
  610. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  611. package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/shared → shared}/EmployeeTable/EmployeeTableTypes.d.ts +3 -3
  612. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.d.ts +30 -0
  613. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js +97 -0
  614. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +1 -0
  615. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  616. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +52 -50
  617. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  618. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  619. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +10 -0
  620. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +28 -21
  621. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  622. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  623. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  624. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +10 -11
  625. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  626. package/dist/contexts/ThemeProvider/theme.d.ts +2 -0
  627. package/dist/contexts/ThemeProvider/theme.js +4 -2
  628. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  629. package/dist/helpers/buildQueryErrorHandling.d.ts +22 -0
  630. package/dist/helpers/buildQueryErrorHandling.js +11 -0
  631. package/dist/helpers/buildQueryErrorHandling.js.map +1 -0
  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/hooks/useCompanyPaymentSpeed.test.d.ts +1 -0
  641. package/dist/i18n/I18n.js +9 -9
  642. package/dist/i18n/I18n.js.map +1 -1
  643. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +9 -9
  644. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -12
  645. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  646. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js +28 -0
  647. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js.map +1 -0
  648. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +32 -26
  649. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -1
  650. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -34
  651. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  652. package/dist/i18n/en/Employee.Dashboard.json.js +26 -0
  653. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -0
  654. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +5 -5
  655. package/dist/i18n/en/Payroll.PayrollHistory.json.js +2 -2
  656. package/dist/i18n/en/Payroll.PayrollList.json.js +15 -15
  657. package/dist/i18n/en/Payroll.TransitionCreation.json.js +9 -9
  658. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js +24 -0
  659. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js.map +1 -0
  660. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js +20 -0
  661. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js.map +1 -0
  662. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js +22 -0
  663. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js.map +1 -0
  664. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js +70 -0
  665. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js.map +1 -0
  666. package/dist/i18n/en/common.json.d.ts +3 -1
  667. package/dist/i18n/en/common.json.js +5 -5
  668. package/dist/shared/constants.d.ts +10 -0
  669. package/dist/shared/constants.js +15 -10
  670. package/dist/shared/constants.js.map +1 -1
  671. package/dist/style.css +1 -1
  672. package/dist/types/i18next.d.ts +348 -29
  673. package/dist/types/sdkHooks.d.ts +2 -4
  674. package/docs/reference/endpoint-inventory.json +119 -29
  675. package/package.json +19 -19
  676. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +0 -26
  677. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +0 -24
  678. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +0 -1
  679. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +0 -3
  680. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +0 -14
  681. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +0 -1
  682. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +0 -6
  683. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +0 -14
  684. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +0 -1
  685. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +0 -4
  686. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +0 -8
  687. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +0 -1
  688. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.d.ts +0 -6
  689. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.js +0 -50
  690. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.js.map +0 -1
  691. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  692. package/dist/helpers/requiredIf.d.ts +0 -13
  693. package/dist/helpers/requiredIf.js +0 -8
  694. package/dist/helpers/requiredIf.js.map +0 -1
  695. /package/dist/components/UNSTABLE_Hooks/form/{deriveFieldsMetadata.test.d.ts → buildFormSchema.test.d.ts} +0 -0
  696. /package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/shared → shared}/EmployeeTable/index.d.ts +0 -0
@@ -0,0 +1,172 @@
1
+ import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
+ import { useState as v } from "react";
3
+ import { useTranslation as b } from "react-i18next";
4
+ import { SDKFormProvider as A } from "../../form/SDKFormProvider.js";
5
+ import { usePayScheduleForm as C } from "./usePayScheduleForm.js";
6
+ import n from "./PayScheduleForm.module.scss.js";
7
+ import { useComponentContext as N } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
+ import { BaseBoundaries as U, BaseLayout as p } from "../../../Base/Base.js";
9
+ import "../../../Base/useBase.js";
10
+ import { Form as w } from "../../../Common/Form/Form.js";
11
+ import { Flex as D } from "../../../Common/Flex/Flex.js";
12
+ import { Grid as I } from "../../../Common/Grid/Grid.js";
13
+ import { ActionsLayout as F } from "../../../Common/ActionsLayout/ActionsLayout.js";
14
+ import { componentEvents as f } from "../../../../shared/constants.js";
15
+ import { useI18n as T, useComponentDictionary as L } from "../../../../i18n/I18n.js";
16
+ import { useDateFormatter as Q } from "../../../../hooks/useDateFormatter.js";
17
+ function x({ onEvent: c, dictionary: m, ...h }) {
18
+ T("UNSTABLE.PayScheduleForm"), L("UNSTABLE.PayScheduleForm", m);
19
+ const { t: e } = b("UNSTABLE.PayScheduleForm"), o = N(), E = Q(), r = C(h), [u, P] = v(0);
20
+ if (r.isLoading)
21
+ return /* @__PURE__ */ a(p, { isLoading: !0, error: r.errorHandling.errors });
22
+ const { Fields: i } = r.form, { payPeriodPreview: y, payPreviewLoading: g, paymentSpeedDays: R } = r.data, S = async () => {
23
+ const t = await r.actions.onSubmit();
24
+ t && c(
25
+ t.mode === "create" ? f.PAY_SCHEDULE_CREATED : f.PAY_SCHEDULE_UPDATED,
26
+ t.data
27
+ );
28
+ }, l = y?.[u];
29
+ return /* @__PURE__ */ a(p, { error: r.errorHandling.errors, children: /* @__PURE__ */ a(A, { formHookResult: r, children: /* @__PURE__ */ d(
30
+ w,
31
+ {
32
+ onSubmit: (t) => {
33
+ t.preventDefault(), S();
34
+ },
35
+ children: [
36
+ /* @__PURE__ */ a(o.Heading, { as: "h2", children: r.status.mode === "create" ? e("addTitle") : e("editTitle") }),
37
+ /* @__PURE__ */ a("div", { className: n.payScheduleContainer, children: /* @__PURE__ */ d(I, { gap: 32, gridTemplateColumns: { base: "1fr", small: "1fr 1fr" }, children: [
38
+ /* @__PURE__ */ a("div", { className: n.payScheduleForm, children: /* @__PURE__ */ d(D, { flexDirection: "column", children: [
39
+ /* @__PURE__ */ a(
40
+ i.CustomName,
41
+ {
42
+ label: e("labels.name"),
43
+ validationMessages: {
44
+ REQUIRED: e("fieldValidations.customName.REQUIRED")
45
+ }
46
+ }
47
+ ),
48
+ /* @__PURE__ */ a(
49
+ i.Frequency,
50
+ {
51
+ label: e("labels.frequency"),
52
+ getOptionLabel: (t) => e(`frequencies.${t}`, t),
53
+ validationMessages: {
54
+ REQUIRED: e("fieldValidations.frequency.REQUIRED")
55
+ }
56
+ }
57
+ ),
58
+ i.CustomTwicePerMonth && /* @__PURE__ */ a(
59
+ i.CustomTwicePerMonth,
60
+ {
61
+ label: e("labels.frequencyOptions"),
62
+ description: e("descriptions.frequencyOptionsDescription")
63
+ }
64
+ ),
65
+ /* @__PURE__ */ a(
66
+ i.AnchorPayDate,
67
+ {
68
+ label: e("labels.firstPayDate"),
69
+ description: e("descriptions.anchorPayDateDescription", {
70
+ count: R
71
+ }),
72
+ validationMessages: {
73
+ REQUIRED: e("fieldValidations.anchorPayDate.REQUIRED")
74
+ }
75
+ }
76
+ ),
77
+ /* @__PURE__ */ a(
78
+ i.AnchorEndOfPayPeriod,
79
+ {
80
+ label: e("labels.firstPayPeriodEndDate"),
81
+ description: e("descriptions.anchorEndOfPayPeriodDescription"),
82
+ validationMessages: {
83
+ REQUIRED: e("fieldValidations.anchorEndOfPayPeriod.REQUIRED")
84
+ }
85
+ }
86
+ ),
87
+ i.Day1 ? /* @__PURE__ */ a(
88
+ i.Day1,
89
+ {
90
+ label: e("labels.firstPayDayOfTheMonth"),
91
+ validationMessages: {
92
+ REQUIRED: e("fieldValidations.day1.REQUIRED"),
93
+ DAY_RANGE: e("fieldValidations.day1.DAY_RANGE")
94
+ }
95
+ }
96
+ ) : /* @__PURE__ */ a("div", { className: n.visuallyHidden }),
97
+ i.Day2 ? /* @__PURE__ */ a(
98
+ i.Day2,
99
+ {
100
+ label: e("labels.lastPayDayOfTheMonth"),
101
+ validationMessages: {
102
+ REQUIRED: e("fieldValidations.day2.REQUIRED"),
103
+ DAY_RANGE: e("fieldValidations.day2.DAY_RANGE")
104
+ }
105
+ }
106
+ ) : /* @__PURE__ */ a("div", { className: n.visuallyHidden })
107
+ ] }) }),
108
+ /* @__PURE__ */ a(D, { flexDirection: "column", gap: 4, justifyContent: "center", alignItems: "center", children: y && l ? /* @__PURE__ */ d("div", { className: n.calendarContainer, children: [
109
+ !g && /* @__PURE__ */ a(
110
+ o.Select,
111
+ {
112
+ label: e("labels.preview"),
113
+ isRequired: !0,
114
+ options: y.map((t, s) => ({
115
+ value: String(s),
116
+ label: E.formatPayPeriodRange(
117
+ t.startDate.toString(),
118
+ t.endDate.toString()
119
+ )
120
+ })),
121
+ value: String(u),
122
+ onChange: (t) => {
123
+ const s = Number(t);
124
+ isNaN(s) || P(s);
125
+ }
126
+ }
127
+ ),
128
+ /* @__PURE__ */ a(
129
+ o.CalendarPreview,
130
+ {
131
+ dateRange: {
132
+ start: new Date(l.startDate.toString()),
133
+ end: new Date(l.endDate.toString()),
134
+ label: e("payPreview.payPeriod")
135
+ },
136
+ highlightDates: [
137
+ {
138
+ date: new Date(l.checkDate.toString()),
139
+ highlightColor: "primary",
140
+ label: e("payPreview.payday")
141
+ },
142
+ {
143
+ date: new Date(l.runPayrollBy.toString()),
144
+ highlightColor: "secondary",
145
+ label: e("payPreview.payrollDeadline")
146
+ }
147
+ ]
148
+ },
149
+ u
150
+ )
151
+ ] }) : /* @__PURE__ */ a("div", { className: n.calendarContainer, children: /* @__PURE__ */ a(
152
+ o.Alert,
153
+ {
154
+ status: "info",
155
+ label: e("previewAlert.title"),
156
+ disableScrollIntoView: !0,
157
+ children: /* @__PURE__ */ a(o.Text, { children: e("previewAlert.description") })
158
+ }
159
+ ) }) })
160
+ ] }) }),
161
+ /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(o.Button, { type: "submit", isLoading: r.status.isPending, children: e("saveCta") }) })
162
+ ]
163
+ }
164
+ ) }) });
165
+ }
166
+ function X({ FallbackComponent: c, ...m }) {
167
+ return /* @__PURE__ */ a(U, { componentName: "UNSTABLE.PayScheduleForm", FallbackComponent: c, children: /* @__PURE__ */ a(x, { ...m }) });
168
+ }
169
+ export {
170
+ X as PayScheduleForm
171
+ };
172
+ //# sourceMappingURL=PayScheduleForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayScheduleForm.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { SDKFormProvider } from '../../form/SDKFormProvider'\nimport { usePayScheduleForm } from './usePayScheduleForm'\nimport type { UsePayScheduleFormProps } from './usePayScheduleForm'\nimport style from './PayScheduleForm.module.scss'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { BaseBoundaries, BaseLayout, type BaseComponentInterface } from '@/components/Base'\nimport { Form } from '@/components/Common/Form'\nimport { Flex, Grid, ActionsLayout } from '@/components/Common'\nimport { componentEvents } from '@/shared/constants'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\n\nexport interface PayScheduleFormProps\n extends UsePayScheduleFormProps, Omit<BaseComponentInterface, 'defaultValues'> {}\n\nfunction PayScheduleFormRoot({ onEvent, dictionary, ...hookProps }: PayScheduleFormProps) {\n useI18n('UNSTABLE.PayScheduleForm')\n useComponentDictionary('UNSTABLE.PayScheduleForm', dictionary)\n const { t } = useTranslation('UNSTABLE.PayScheduleForm')\n const Components = useComponentContext()\n const dateFormatter = useDateFormatter()\n const paySchedule = usePayScheduleForm(hookProps)\n\n const [selectedPayPeriodIndex, setSelectedPayPeriodIndex] = useState(0)\n\n if (paySchedule.isLoading) {\n return <BaseLayout isLoading error={paySchedule.errorHandling.errors} />\n }\n\n const { Fields } = paySchedule.form\n const { payPeriodPreview, payPreviewLoading, paymentSpeedDays } = paySchedule.data\n\n const handleSubmit = async () => {\n const result = await paySchedule.actions.onSubmit()\n if (result) {\n onEvent(\n result.mode === 'create'\n ? componentEvents.PAY_SCHEDULE_CREATED\n : componentEvents.PAY_SCHEDULE_UPDATED,\n result.data,\n )\n }\n }\n\n const selectedPeriod = payPeriodPreview?.[selectedPayPeriodIndex]\n\n return (\n <BaseLayout error={paySchedule.errorHandling.errors}>\n <SDKFormProvider formHookResult={paySchedule}>\n <Form\n onSubmit={e => {\n e.preventDefault()\n void handleSubmit()\n }}\n >\n <Components.Heading as=\"h2\">\n {paySchedule.status.mode === 'create' ? t('addTitle') : t('editTitle')}\n </Components.Heading>\n\n <div className={style.payScheduleContainer}>\n <Grid gap={32} gridTemplateColumns={{ base: '1fr', small: '1fr 1fr' }}>\n <div className={style.payScheduleForm}>\n <Flex flexDirection=\"column\">\n <Fields.CustomName\n label={t('labels.name')}\n validationMessages={{\n REQUIRED: t('fieldValidations.customName.REQUIRED'),\n }}\n />\n\n <Fields.Frequency\n label={t('labels.frequency')}\n getOptionLabel={freq => t(`frequencies.${freq}`, freq)}\n validationMessages={{\n REQUIRED: t('fieldValidations.frequency.REQUIRED'),\n }}\n />\n\n {Fields.CustomTwicePerMonth && (\n <Fields.CustomTwicePerMonth\n label={t('labels.frequencyOptions')}\n description={t('descriptions.frequencyOptionsDescription')}\n />\n )}\n\n <Fields.AnchorPayDate\n label={t('labels.firstPayDate')}\n description={t('descriptions.anchorPayDateDescription', {\n count: paymentSpeedDays,\n })}\n validationMessages={{\n REQUIRED: t('fieldValidations.anchorPayDate.REQUIRED'),\n }}\n />\n\n <Fields.AnchorEndOfPayPeriod\n label={t('labels.firstPayPeriodEndDate')}\n description={t('descriptions.anchorEndOfPayPeriodDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.anchorEndOfPayPeriod.REQUIRED'),\n }}\n />\n\n {Fields.Day1 ? (\n <Fields.Day1\n label={t('labels.firstPayDayOfTheMonth')}\n validationMessages={{\n REQUIRED: t('fieldValidations.day1.REQUIRED'),\n DAY_RANGE: t('fieldValidations.day1.DAY_RANGE'),\n }}\n />\n ) : (\n <div className={style.visuallyHidden} />\n )}\n\n {Fields.Day2 ? (\n <Fields.Day2\n label={t('labels.lastPayDayOfTheMonth')}\n validationMessages={{\n REQUIRED: t('fieldValidations.day2.REQUIRED'),\n DAY_RANGE: t('fieldValidations.day2.DAY_RANGE'),\n }}\n />\n ) : (\n <div className={style.visuallyHidden} />\n )}\n </Flex>\n </div>\n\n <Flex flexDirection=\"column\" gap={4} justifyContent=\"center\" alignItems=\"center\">\n {payPeriodPreview && selectedPeriod ? (\n <div className={style.calendarContainer}>\n {!payPreviewLoading && (\n <Components.Select\n label={t('labels.preview')}\n isRequired\n options={payPeriodPreview.map((period, index) => ({\n value: String(index),\n label: dateFormatter.formatPayPeriodRange(\n period.startDate.toString(),\n period.endDate.toString(),\n ),\n }))}\n value={String(selectedPayPeriodIndex)}\n onChange={(value: string) => {\n const numericValue = Number(value)\n if (!isNaN(numericValue)) {\n setSelectedPayPeriodIndex(numericValue)\n }\n }}\n />\n )}\n <Components.CalendarPreview\n key={selectedPayPeriodIndex}\n dateRange={{\n start: new Date(selectedPeriod.startDate.toString()),\n end: new Date(selectedPeriod.endDate.toString()),\n label: t('payPreview.payPeriod'),\n }}\n highlightDates={[\n {\n date: new Date(selectedPeriod.checkDate.toString()),\n highlightColor: 'primary',\n label: t('payPreview.payday'),\n },\n {\n date: new Date(selectedPeriod.runPayrollBy.toString()),\n highlightColor: 'secondary',\n label: t('payPreview.payrollDeadline'),\n },\n ]}\n />\n </div>\n ) : (\n <div className={style.calendarContainer}>\n <Components.Alert\n status=\"info\"\n label={t('previewAlert.title')}\n disableScrollIntoView\n >\n <Components.Text>{t('previewAlert.description')}</Components.Text>\n </Components.Alert>\n </div>\n )}\n </Flex>\n </Grid>\n </div>\n\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={paySchedule.status.isPending}>\n {t('saveCta')}\n </Components.Button>\n </ActionsLayout>\n </Form>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n\nexport function PayScheduleForm({ FallbackComponent, ...props }: PayScheduleFormProps) {\n return (\n <BaseBoundaries componentName=\"UNSTABLE.PayScheduleForm\" FallbackComponent={FallbackComponent}>\n <PayScheduleFormRoot {...props} />\n </BaseBoundaries>\n )\n}\n"],"names":["PayScheduleFormRoot","onEvent","dictionary","hookProps","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","dateFormatter","useDateFormatter","paySchedule","usePayScheduleForm","selectedPayPeriodIndex","setSelectedPayPeriodIndex","useState","BaseLayout","Fields","payPeriodPreview","payPreviewLoading","paymentSpeedDays","handleSubmit","result","componentEvents","selectedPeriod","jsx","SDKFormProvider","jsxs","Form","e","style","Grid","Flex","freq","period","index","value","numericValue","ActionsLayout","PayScheduleForm","FallbackComponent","props","BaseBoundaries"],"mappings":"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"}
@@ -0,0 +1,14 @@
1
+ const a = "_payScheduleContainer_masn5_1", e = "_payScheduleForm_masn5_5", n = "_visuallyHidden_masn5_9", l = "_calendarContainer_masn5_13", d = {
2
+ payScheduleContainer: a,
3
+ payScheduleForm: e,
4
+ visuallyHidden: n,
5
+ calendarContainer: l
6
+ };
7
+ export {
8
+ l as calendarContainer,
9
+ d as default,
10
+ a as payScheduleContainer,
11
+ e as payScheduleForm,
12
+ n as visuallyHidden
13
+ };
14
+ //# sourceMappingURL=PayScheduleForm.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayScheduleForm.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -0,0 +1,23 @@
1
+ import { TextInputHookFieldProps } from '../../form/fields/TextInputHookField';
2
+ import { SelectHookFieldProps } from '../../form/fields/SelectHookField';
3
+ import { RadioGroupHookFieldProps } from '../../form/fields/RadioGroupHookField';
4
+ import { DatePickerHookFieldProps } from '../../form/fields/DatePickerHookField';
5
+ import { NumberInputHookFieldProps } from '../../form/fields/NumberInputHookField';
6
+ import { PayScheduleErrorCodes, PayScheduleFrequency } from './payScheduleSchema';
7
+ import { HookFieldProps } from '../../../../types/sdkHooks';
8
+ export type RequiredValidation = typeof PayScheduleErrorCodes.REQUIRED;
9
+ export type DayValidation = (typeof PayScheduleErrorCodes)['REQUIRED' | 'DAY_RANGE'];
10
+ export type CustomNameFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>;
11
+ export declare function CustomNameField(props: CustomNameFieldProps): import("react/jsx-runtime").JSX.Element;
12
+ export type FrequencyFieldProps = HookFieldProps<SelectHookFieldProps<RequiredValidation, PayScheduleFrequency>>;
13
+ export declare function FrequencyField(props: FrequencyFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export type CustomTwicePerMonthFieldProps = HookFieldProps<RadioGroupHookFieldProps<never, string>>;
15
+ export declare function CustomTwicePerMonthField(props: CustomTwicePerMonthFieldProps): import("react/jsx-runtime").JSX.Element;
16
+ export type AnchorPayDateFieldProps = HookFieldProps<DatePickerHookFieldProps<RequiredValidation>>;
17
+ export declare function AnchorPayDateField(props: AnchorPayDateFieldProps): import("react/jsx-runtime").JSX.Element;
18
+ export type AnchorEndOfPayPeriodFieldProps = HookFieldProps<DatePickerHookFieldProps<RequiredValidation>>;
19
+ export declare function AnchorEndOfPayPeriodField(props: AnchorEndOfPayPeriodFieldProps): import("react/jsx-runtime").JSX.Element;
20
+ export type Day1FieldProps = HookFieldProps<NumberInputHookFieldProps<DayValidation>>;
21
+ export declare function Day1Field(props: Day1FieldProps): import("react/jsx-runtime").JSX.Element;
22
+ export type Day2FieldProps = HookFieldProps<NumberInputHookFieldProps<DayValidation>>;
23
+ export declare function Day2Field(props: Day2FieldProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,37 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { NumberInputHookField as n } from "../../form/fields/NumberInputHookField.js";
3
+ import { DatePickerHookField as r } from "../../form/fields/DatePickerHookField.js";
4
+ import { RadioGroupHookField as t } from "../../form/fields/RadioGroupHookField.js";
5
+ import { SelectHookField as i } from "../../form/fields/SelectHookField.js";
6
+ import { TextInputHookField as m } from "../../form/fields/TextInputHookField.js";
7
+ function F(e) {
8
+ return /* @__PURE__ */ o(m, { ...e, name: "customName" });
9
+ }
10
+ function p(e) {
11
+ return /* @__PURE__ */ o(i, { ...e, name: "frequency" });
12
+ }
13
+ function y(e) {
14
+ return /* @__PURE__ */ o(t, { ...e, name: "customTwicePerMonth" });
15
+ }
16
+ function P(e) {
17
+ return /* @__PURE__ */ o(r, { ...e, name: "anchorPayDate" });
18
+ }
19
+ function h(e) {
20
+ return /* @__PURE__ */ o(r, { ...e, name: "anchorEndOfPayPeriod" });
21
+ }
22
+ function k(e) {
23
+ return /* @__PURE__ */ o(n, { ...e, name: "day1", min: 1, max: 31 });
24
+ }
25
+ function s(e) {
26
+ return /* @__PURE__ */ o(n, { ...e, name: "day2", min: 1, max: 31 });
27
+ }
28
+ export {
29
+ h as AnchorEndOfPayPeriodField,
30
+ P as AnchorPayDateField,
31
+ F as CustomNameField,
32
+ y as CustomTwicePerMonthField,
33
+ k as Day1Field,
34
+ s as Day2Field,
35
+ p as FrequencyField
36
+ };
37
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.tsx"],"sourcesContent":["import type { TextInputHookFieldProps } from '../../form/fields/TextInputHookField'\nimport type { SelectHookFieldProps } from '../../form/fields/SelectHookField'\nimport type { RadioGroupHookFieldProps } from '../../form/fields/RadioGroupHookField'\nimport type { DatePickerHookFieldProps } from '../../form/fields/DatePickerHookField'\nimport type { NumberInputHookFieldProps } from '../../form/fields/NumberInputHookField'\nimport {\n TextInputHookField,\n SelectHookField,\n RadioGroupHookField,\n DatePickerHookField,\n NumberInputHookField,\n} from '../../form/fields'\nimport type { PayScheduleErrorCodes, PayScheduleFrequency } from './payScheduleSchema'\nimport type { HookFieldProps } from '@/types/sdkHooks'\n\nexport type RequiredValidation = typeof PayScheduleErrorCodes.REQUIRED\nexport type DayValidation = (typeof PayScheduleErrorCodes)['REQUIRED' | 'DAY_RANGE']\n\nexport type CustomNameFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\nexport function CustomNameField(props: CustomNameFieldProps) {\n return <TextInputHookField {...props} name=\"customName\" />\n}\n\nexport type FrequencyFieldProps = HookFieldProps<\n SelectHookFieldProps<RequiredValidation, PayScheduleFrequency>\n>\n\nexport function FrequencyField(props: FrequencyFieldProps) {\n return <SelectHookField {...props} name=\"frequency\" />\n}\n\nexport type CustomTwicePerMonthFieldProps = HookFieldProps<RadioGroupHookFieldProps<never, string>>\n\nexport function CustomTwicePerMonthField(props: CustomTwicePerMonthFieldProps) {\n return <RadioGroupHookField {...props} name=\"customTwicePerMonth\" />\n}\n\nexport type AnchorPayDateFieldProps = HookFieldProps<DatePickerHookFieldProps<RequiredValidation>>\n\nexport function AnchorPayDateField(props: AnchorPayDateFieldProps) {\n return <DatePickerHookField {...props} name=\"anchorPayDate\" />\n}\n\nexport type AnchorEndOfPayPeriodFieldProps = HookFieldProps<\n DatePickerHookFieldProps<RequiredValidation>\n>\n\nexport function AnchorEndOfPayPeriodField(props: AnchorEndOfPayPeriodFieldProps) {\n return <DatePickerHookField {...props} name=\"anchorEndOfPayPeriod\" />\n}\n\nexport type Day1FieldProps = HookFieldProps<NumberInputHookFieldProps<DayValidation>>\n\nexport function Day1Field(props: Day1FieldProps) {\n return <NumberInputHookField {...props} name=\"day1\" min={1} max={31} />\n}\n\nexport type Day2FieldProps = HookFieldProps<NumberInputHookFieldProps<DayValidation>>\n\nexport function Day2Field(props: Day2FieldProps) {\n return <NumberInputHookField {...props} name=\"day2\" min={1} max={31} />\n}\n"],"names":["CustomNameField","props","jsx","TextInputHookField","FrequencyField","SelectHookField","CustomTwicePerMonthField","RadioGroupHookField","AnchorPayDateField","DatePickerHookField","AnchorEndOfPayPeriodField","Day1Field","NumberInputHookField","Day2Field"],"mappings":";;;;;;AAoBO,SAASA,EAAgBC,GAA6B;AAC3D,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,cAAa;AAC1D;AAMO,SAASG,EAAeH,GAA4B;AACzD,SAAO,gBAAAC,EAACG,GAAA,EAAiB,GAAGJ,GAAO,MAAK,aAAY;AACtD;AAIO,SAASK,EAAyBL,GAAsC;AAC7E,SAAO,gBAAAC,EAACK,GAAA,EAAqB,GAAGN,GAAO,MAAK,uBAAsB;AACpE;AAIO,SAASO,EAAmBP,GAAgC;AACjE,SAAO,gBAAAC,EAACO,GAAA,EAAqB,GAAGR,GAAO,MAAK,iBAAgB;AAC9D;AAMO,SAASS,EAA0BT,GAAuC;AAC/E,SAAO,gBAAAC,EAACO,GAAA,EAAqB,GAAGR,GAAO,MAAK,wBAAuB;AACrE;AAIO,SAASU,EAAUV,GAAuB;AAC/C,SAAO,gBAAAC,EAACU,KAAsB,GAAGX,GAAO,MAAK,QAAO,KAAK,GAAG,KAAK,GAAA,CAAI;AACvE;AAIO,SAASY,EAAUZ,GAAuB;AAC/C,SAAO,gBAAAC,EAACU,KAAsB,GAAGX,GAAO,MAAK,QAAO,KAAK,GAAG,KAAK,GAAA,CAAI;AACvE;"}
@@ -0,0 +1,7 @@
1
+ import "./types/i18next.d.ts"
2
+ export { usePayScheduleForm } from './usePayScheduleForm';
3
+ export type { PayScheduleOptionalFieldsToRequire, UsePayScheduleFormProps, UsePayScheduleFormResult, UsePayScheduleFormReady, PayScheduleFieldsMetadata, PayScheduleFormFields, } from './usePayScheduleForm';
4
+ export { PayScheduleForm } from './PayScheduleForm';
5
+ export type { PayScheduleFormProps } from './PayScheduleForm';
6
+ export { createPayScheduleSchema, PayScheduleErrorCodes, type PayScheduleErrorCode, type PayScheduleFormData, type PayScheduleFormOutputs, type PayScheduleField, type PayScheduleFrequency, } from './payScheduleSchema';
7
+ export type { RequiredValidation as PayScheduleRequiredValidation, DayValidation, CustomNameFieldProps, FrequencyFieldProps, CustomTwicePerMonthFieldProps, AnchorPayDateFieldProps, AnchorEndOfPayPeriodFieldProps, Day1FieldProps, Day2FieldProps, } from './fields';
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ import { OptionalFieldsToRequire } from '../../form/buildFormSchema';
3
+ export declare const PayScheduleErrorCodes: {
4
+ readonly REQUIRED: "REQUIRED";
5
+ readonly DAY_RANGE: "DAY_RANGE";
6
+ };
7
+ export type PayScheduleErrorCode = (typeof PayScheduleErrorCodes)[keyof typeof PayScheduleErrorCodes];
8
+ declare const FREQUENCY_VALUES: readonly ["Every week", "Every other week", "Twice per month", "Monthly"];
9
+ export type PayScheduleFrequency = (typeof FREQUENCY_VALUES)[number];
10
+ declare const fieldValidators: {
11
+ customName: z.ZodString;
12
+ frequency: z.ZodEnum<{
13
+ "Every week": "Every week";
14
+ "Every other week": "Every other week";
15
+ "Twice per month": "Twice per month";
16
+ Monthly: "Monthly";
17
+ }>;
18
+ customTwicePerMonth: z.ZodString;
19
+ anchorPayDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
20
+ anchorEndOfPayPeriod: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
21
+ day1: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
22
+ day2: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
23
+ };
24
+ export type PayScheduleField = keyof typeof fieldValidators;
25
+ export type PayScheduleFormData = {
26
+ [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>;
27
+ };
28
+ export type PayScheduleFormOutputs = PayScheduleFormData;
29
+ declare function needsDay1(data: PayScheduleFormData): boolean;
30
+ declare function needsDay2(data: PayScheduleFormData): boolean;
31
+ declare const requiredFieldsConfig: {
32
+ customTwicePerMonth: "never";
33
+ day1: typeof needsDay1;
34
+ day2: typeof needsDay2;
35
+ };
36
+ export type PayScheduleOptionalFieldsToRequire = OptionalFieldsToRequire<typeof requiredFieldsConfig>;
37
+ interface PayScheduleSchemaOptions {
38
+ mode?: 'create' | 'update';
39
+ optionalFieldsToRequire?: PayScheduleOptionalFieldsToRequire;
40
+ }
41
+ export declare function createPayScheduleSchema(options?: PayScheduleSchemaOptions): import('../../form').BuildFormSchemaResult<{
42
+ customName: z.ZodString;
43
+ frequency: z.ZodEnum<{
44
+ "Every week": "Every week";
45
+ "Every other week": "Every other week";
46
+ "Twice per month": "Twice per month";
47
+ Monthly: "Monthly";
48
+ }>;
49
+ customTwicePerMonth: z.ZodString;
50
+ anchorPayDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
51
+ anchorEndOfPayPeriod: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
52
+ day1: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
53
+ day2: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
54
+ }>;
55
+ export {};
@@ -0,0 +1,54 @@
1
+ import { z as o } from "zod";
2
+ import { buildFormSchema as d } from "../../form/buildFormSchema.js";
3
+ import { coerceNaN as n, coerceToISODate as t } from "../../form/preprocessors.js";
4
+ const c = {
5
+ REQUIRED: "REQUIRED",
6
+ DAY_RANGE: "DAY_RANGE"
7
+ }, m = ["Every week", "Every other week", "Twice per month", "Monthly"], a = {
8
+ customName: o.string(),
9
+ frequency: o.enum(m),
10
+ customTwicePerMonth: o.string(),
11
+ anchorPayDate: o.preprocess(t, o.iso.date().nullable()),
12
+ anchorEndOfPayPeriod: o.preprocess(t, o.iso.date().nullable()),
13
+ day1: o.preprocess(n(0), o.number()),
14
+ day2: o.preprocess(n(0), o.number())
15
+ };
16
+ function u(e) {
17
+ const r = e.frequency, s = e.customTwicePerMonth;
18
+ return r === "Monthly" || r === "Twice per month" && s === "custom";
19
+ }
20
+ function i(e) {
21
+ const r = e.frequency, s = e.customTwicePerMonth;
22
+ return r === "Twice per month" && s === "custom";
23
+ }
24
+ const y = {
25
+ customTwicePerMonth: "never",
26
+ day1: u,
27
+ day2: i
28
+ };
29
+ function E(e, r) {
30
+ u(e) && (e.day1 < 1 || e.day1 > 31) && r.addIssue({
31
+ code: o.ZodIssueCode.custom,
32
+ path: ["day1"],
33
+ message: e.day1 < 1 ? c.REQUIRED : c.DAY_RANGE
34
+ }), i(e) && (e.day2 < 1 || e.day2 > 31) && r.addIssue({
35
+ code: o.ZodIssueCode.custom,
36
+ path: ["day2"],
37
+ message: e.day2 < 1 ? c.REQUIRED : c.DAY_RANGE
38
+ });
39
+ }
40
+ function R(e = {}) {
41
+ const { mode: r = "create", optionalFieldsToRequire: s } = e;
42
+ return d(a, {
43
+ requiredFieldsConfig: y,
44
+ requiredErrorCode: c.REQUIRED,
45
+ mode: r,
46
+ optionalFieldsToRequire: s,
47
+ superRefine: E
48
+ });
49
+ }
50
+ export {
51
+ c as PayScheduleErrorCodes,
52
+ R as createPayScheduleSchema
53
+ };
54
+ //# sourceMappingURL=payScheduleSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payScheduleSchema.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n buildFormSchema,\n type RequiredFieldConfig,\n type OptionalFieldsToRequire,\n} from '../../form/buildFormSchema'\nimport { coerceNaN, coerceToISODate } from '../../form/preprocessors'\n\n// ── Error codes ────────────────────────────────────────────────────────\n\nexport const PayScheduleErrorCodes = {\n REQUIRED: 'REQUIRED',\n DAY_RANGE: 'DAY_RANGE',\n} as const\n\nexport type PayScheduleErrorCode =\n (typeof PayScheduleErrorCodes)[keyof typeof PayScheduleErrorCodes]\n\n// ── Field validators ───────────────────────────────────────────────────\n\nconst FREQUENCY_VALUES = ['Every week', 'Every other week', 'Twice per month', 'Monthly'] as const\nexport type PayScheduleFrequency = (typeof FREQUENCY_VALUES)[number]\n\nconst fieldValidators = {\n customName: z.string(),\n frequency: z.enum(FREQUENCY_VALUES),\n customTwicePerMonth: z.string(),\n anchorPayDate: z.preprocess(coerceToISODate, z.iso.date().nullable()),\n anchorEndOfPayPeriod: z.preprocess(coerceToISODate, z.iso.date().nullable()),\n day1: z.preprocess(coerceNaN(0), z.number()),\n day2: z.preprocess(coerceNaN(0), z.number()),\n}\n\nexport type PayScheduleField = keyof typeof fieldValidators\n\nexport type PayScheduleFormData = {\n [K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>\n}\nexport type PayScheduleFormOutputs = PayScheduleFormData\n\n// ── Required fields config ─────────────────────────────────────────────\n\nfunction needsDay1(data: PayScheduleFormData): boolean {\n const freq = data.frequency\n const custom = data.customTwicePerMonth\n return freq === 'Monthly' || (freq === 'Twice per month' && custom === 'custom')\n}\n\nfunction needsDay2(data: PayScheduleFormData): boolean {\n const freq = data.frequency\n const custom = data.customTwicePerMonth\n return freq === 'Twice per month' && custom === 'custom'\n}\n\nconst requiredFieldsConfig = {\n customTwicePerMonth: 'never',\n day1: needsDay1,\n day2: needsDay2,\n} satisfies RequiredFieldConfig<typeof fieldValidators>\n\n/**\n * coerceNaN(0) maps empty inputs to 0, which `isEmpty` does not catch\n * (it only recognizes undefined/null/blank-string). This superRefine\n * enforces the 1–31 range when the field is applicable, which also\n * rejects the 0 sentinel from empty inputs.\n */\nfunction validateDayRanges(data: PayScheduleFormData, ctx: z.RefinementCtx) {\n if (needsDay1(data) && (data.day1 < 1 || data.day1 > 31)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['day1'],\n message: data.day1 < 1 ? PayScheduleErrorCodes.REQUIRED : PayScheduleErrorCodes.DAY_RANGE,\n })\n }\n if (needsDay2(data) && (data.day2 < 1 || data.day2 > 31)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['day2'],\n message: data.day2 < 1 ? PayScheduleErrorCodes.REQUIRED : PayScheduleErrorCodes.DAY_RANGE,\n })\n }\n}\n\n// ── Schema factory ─────────────────────────────────────────────────────\n\nexport type PayScheduleOptionalFieldsToRequire = OptionalFieldsToRequire<\n typeof requiredFieldsConfig\n>\n\ninterface PayScheduleSchemaOptions {\n mode?: 'create' | 'update'\n optionalFieldsToRequire?: PayScheduleOptionalFieldsToRequire\n}\n\nexport function createPayScheduleSchema(options: PayScheduleSchemaOptions = {}) {\n const { mode = 'create', optionalFieldsToRequire } = options\n\n return buildFormSchema(fieldValidators, {\n requiredFieldsConfig,\n requiredErrorCode: PayScheduleErrorCodes.REQUIRED,\n mode,\n optionalFieldsToRequire,\n superRefine: validateDayRanges,\n })\n}\n"],"names":["PayScheduleErrorCodes","FREQUENCY_VALUES","fieldValidators","z","coerceToISODate","coerceNaN","needsDay1","data","freq","custom","needsDay2","requiredFieldsConfig","validateDayRanges","ctx","createPayScheduleSchema","options","mode","optionalFieldsToRequire","buildFormSchema"],"mappings":";;;AAUO,MAAMA,IAAwB;AAAA,EACnC,UAAU;AAAA,EACV,WAAW;AACb,GAOMC,IAAmB,CAAC,cAAc,oBAAoB,mBAAmB,SAAS,GAGlFC,IAAkB;AAAA,EACtB,YAAYC,EAAE,OAAA;AAAA,EACd,WAAWA,EAAE,KAAKF,CAAgB;AAAA,EAClC,qBAAqBE,EAAE,OAAA;AAAA,EACvB,eAAeA,EAAE,WAAWC,GAAiBD,EAAE,IAAI,OAAO,UAAU;AAAA,EACpE,sBAAsBA,EAAE,WAAWC,GAAiBD,EAAE,IAAI,OAAO,UAAU;AAAA,EAC3E,MAAMA,EAAE,WAAWE,EAAU,CAAC,GAAGF,EAAE,QAAQ;AAAA,EAC3C,MAAMA,EAAE,WAAWE,EAAU,CAAC,GAAGF,EAAE,QAAQ;AAC7C;AAWA,SAASG,EAAUC,GAAoC;AACrD,QAAMC,IAAOD,EAAK,WACZE,IAASF,EAAK;AACpB,SAAOC,MAAS,aAAcA,MAAS,qBAAqBC,MAAW;AACzE;AAEA,SAASC,EAAUH,GAAoC;AACrD,QAAMC,IAAOD,EAAK,WACZE,IAASF,EAAK;AACpB,SAAOC,MAAS,qBAAqBC,MAAW;AAClD;AAEA,MAAME,IAAuB;AAAA,EAC3B,qBAAqB;AAAA,EACrB,MAAML;AAAA,EACN,MAAMI;AACR;AAQA,SAASE,EAAkBL,GAA2BM,GAAsB;AAC1E,EAAIP,EAAUC,CAAI,MAAMA,EAAK,OAAO,KAAKA,EAAK,OAAO,OACnDM,EAAI,SAAS;AAAA,IACX,MAAMV,EAAE,aAAa;AAAA,IACrB,MAAM,CAAC,MAAM;AAAA,IACb,SAASI,EAAK,OAAO,IAAIP,EAAsB,WAAWA,EAAsB;AAAA,EAAA,CACjF,GAECU,EAAUH,CAAI,MAAMA,EAAK,OAAO,KAAKA,EAAK,OAAO,OACnDM,EAAI,SAAS;AAAA,IACX,MAAMV,EAAE,aAAa;AAAA,IACrB,MAAM,CAAC,MAAM;AAAA,IACb,SAASI,EAAK,OAAO,IAAIP,EAAsB,WAAWA,EAAsB;AAAA,EAAA,CACjF;AAEL;AAaO,SAASc,EAAwBC,IAAoC,IAAI;AAC9E,QAAM,EAAE,MAAAC,IAAO,UAAU,yBAAAC,EAAA,IAA4BF;AAErD,SAAOG,EAAgBhB,GAAiB;AAAA,IACtC,sBAAAS;AAAA,IACA,mBAAmBX,EAAsB;AAAA,IACzC,MAAAgB;AAAA,IACA,yBAAAC;AAAA,IACA,aAAaL;AAAA,EAAA,CACd;AACH;"}
@@ -0,0 +1,69 @@
1
+ import { UseFormProps } from 'react-hook-form';
2
+ import { PaySchedule } from '@gusto/embedded-api/models/components/payschedule';
3
+ import { PaySchedulePreviewPayPeriod } from '@gusto/embedded-api/models/components/payschedulepreviewpayperiod';
4
+ import { PayScheduleOptionalFieldsToRequire, PayScheduleFormData } from './payScheduleSchema';
5
+ import { CustomNameField, FrequencyField, CustomTwicePerMonthField, AnchorPayDateField, AnchorEndOfPayPeriodField, Day1Field, Day2Field } from './fields';
6
+ import { HookSubmitResult } from '../../../../types/sdkHooks';
7
+ export type { PayScheduleOptionalFieldsToRequire } from './payScheduleSchema';
8
+ export interface UsePayScheduleFormProps {
9
+ companyId: string;
10
+ payScheduleId?: string;
11
+ optionalFieldsToRequire?: PayScheduleOptionalFieldsToRequire;
12
+ defaultValues?: Partial<PayScheduleFormData>;
13
+ validationMode?: UseFormProps['mode'];
14
+ shouldFocusError?: boolean;
15
+ }
16
+ export declare function usePayScheduleForm({ companyId, payScheduleId, optionalFieldsToRequire, defaultValues: partnerDefaults, validationMode, shouldFocusError, }: UsePayScheduleFormProps): {
17
+ isLoading: true;
18
+ errorHandling: import('../../../../types/sdkHooks').HookErrorHandling;
19
+ data?: undefined;
20
+ status?: undefined;
21
+ actions?: undefined;
22
+ form?: undefined;
23
+ } | {
24
+ isLoading: false;
25
+ data: {
26
+ paySchedule: PaySchedule | null;
27
+ payPeriodPreview: PaySchedulePreviewPayPeriod[] | null;
28
+ payPreviewLoading: boolean;
29
+ paymentSpeedDays: number;
30
+ };
31
+ status: {
32
+ isPending: boolean;
33
+ mode: "create" | "update";
34
+ };
35
+ actions: {
36
+ onSubmit: () => Promise<HookSubmitResult<PaySchedule> | undefined>;
37
+ };
38
+ errorHandling: import('../../../../types/sdkHooks').HookErrorHandling;
39
+ form: {
40
+ Fields: {
41
+ CustomName: typeof CustomNameField;
42
+ Frequency: typeof FrequencyField;
43
+ CustomTwicePerMonth: typeof CustomTwicePerMonthField | undefined;
44
+ AnchorPayDate: typeof AnchorPayDateField;
45
+ AnchorEndOfPayPeriod: typeof AnchorEndOfPayPeriodField;
46
+ Day1: typeof Day1Field | undefined;
47
+ Day2: typeof Day2Field | undefined;
48
+ };
49
+ fieldsMetadata: {
50
+ customName: import('../../../../types/sdkHooks').FieldMetadata;
51
+ frequency: import('../../../../types/sdkHooks').FieldMetadataWithOptions<"Every week" | "Every other week" | "Twice per month" | "Monthly">;
52
+ customTwicePerMonth: import('../../../../types/sdkHooks').FieldMetadataWithOptions<string>;
53
+ anchorPayDate: import('../../../../types/sdkHooks').FieldMetadata;
54
+ anchorEndOfPayPeriod: import('../../../../types/sdkHooks').FieldMetadata;
55
+ day1: import('../../../../types/sdkHooks').FieldMetadata;
56
+ day2: import('../../../../types/sdkHooks').FieldMetadata;
57
+ };
58
+ hookFormInternals: {
59
+ formMethods: import('react-hook-form').UseFormReturn<PayScheduleFormData, unknown, PayScheduleFormData>;
60
+ };
61
+ getFormSubmissionValues: () => PayScheduleFormData | undefined;
62
+ };
63
+ };
64
+ export type UsePayScheduleFormResult = ReturnType<typeof usePayScheduleForm>;
65
+ export type UsePayScheduleFormReady = Extract<UsePayScheduleFormResult, {
66
+ data: object;
67
+ }>;
68
+ export type PayScheduleFieldsMetadata = UsePayScheduleFormReady['form']['fieldsMetadata'];
69
+ export type PayScheduleFormFields = UsePayScheduleFormReady['form']['Fields'];