@gusto/embedded-react-sdk 0.40.0 → 0.41.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 (356) hide show
  1. package/CHANGELOG.md +51 -42
  2. package/dist/components/Base/Base.js +3 -2
  3. package/dist/components/Base/Base.js.map +1 -1
  4. package/dist/components/Common/Form/Form.d.ts +1 -1
  5. package/dist/components/Common/Form/Form.js +15 -5
  6. package/dist/components/Common/Form/Form.js.map +1 -1
  7. package/dist/components/Common/SignatureForm/SignatureForm.js +6 -4
  8. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  9. package/dist/components/Common/SignatureForm/SignatureFormActions.js +13 -10
  10. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  11. package/dist/components/Common/SignatureForm/SignatureFormFields.js +13 -10
  12. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  13. package/dist/components/Company/AssignSignatory/AssignSignatory.js +8 -6
  14. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  15. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +8 -6
  16. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  17. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +10 -8
  18. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  19. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +7 -6
  20. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  21. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +3 -2
  22. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  23. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  24. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  25. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +8 -6
  26. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  27. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +6 -5
  28. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  29. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +10 -9
  30. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  31. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  32. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  33. package/dist/components/Company/AssignSignatory/TitleSelect.js +3 -2
  34. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  35. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  36. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  37. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  38. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  39. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +8 -7
  40. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  41. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  42. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  43. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +12 -10
  44. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  45. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +13 -11
  46. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  47. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +5 -4
  48. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  49. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +7 -5
  50. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  51. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +10 -8
  52. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  53. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  54. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  55. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +80 -61
  56. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  57. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/index.d.ts +1 -1
  58. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.d.ts +7 -6
  59. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +54 -54
  60. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  61. package/dist/components/Company/FederalTaxes/Actions.js +9 -7
  62. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  63. package/dist/components/Company/FederalTaxes/FederalTaxes.js +9 -7
  64. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  65. package/dist/components/Company/FederalTaxes/Form.js +3 -2
  66. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  67. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
  68. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  69. package/dist/components/Company/Industry/Actions.js +7 -5
  70. package/dist/components/Company/Industry/Actions.js.map +1 -1
  71. package/dist/components/Company/Industry/Context.js +7 -6
  72. package/dist/components/Company/Industry/Context.js.map +1 -1
  73. package/dist/components/Company/Industry/Edit.js +12 -10
  74. package/dist/components/Company/Industry/Edit.js.map +1 -1
  75. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -6
  76. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  77. package/dist/components/Company/Locations/LocationForm/Form.js +5 -4
  78. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  79. package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -2
  80. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  81. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  82. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  83. package/dist/components/Company/Locations/LocationsList/Actions.js +8 -6
  84. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  85. package/dist/components/Company/Locations/LocationsList/List.js +10 -8
  86. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  87. package/dist/components/Company/Locations/LocationsList/LocationsList.js +8 -6
  88. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  89. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  90. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  91. package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -1
  92. package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  93. package/dist/components/Company/OnboardingOverview/Completed.js +6 -5
  94. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  95. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -5
  96. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  97. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +4 -2
  98. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  99. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  100. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  101. package/dist/components/Company/PaySchedule/PaySchedule.d.ts +6 -1
  102. package/dist/components/Company/PaySchedule/PaySchedule.js +31 -148
  103. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  104. package/dist/components/Company/PaySchedule/PayScheduleComponents.d.ts +10 -0
  105. package/dist/components/Company/PaySchedule/PayScheduleComponents.js +26 -0
  106. package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -0
  107. package/dist/components/Company/PaySchedule/PayScheduleForm.d.ts +8 -0
  108. package/dist/components/Company/PaySchedule/PayScheduleForm.js +199 -0
  109. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -0
  110. package/dist/components/Company/PaySchedule/{_parts/Edit.module.scss.js → PayScheduleForm.module.scss.js} +1 -1
  111. package/dist/components/Company/PaySchedule/PayScheduleForm.module.scss.js.map +1 -0
  112. package/dist/components/Company/PaySchedule/PayScheduleList.d.ts +8 -0
  113. package/dist/components/Company/PaySchedule/PayScheduleList.js +103 -0
  114. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -0
  115. package/dist/components/Company/PaySchedule/{_parts/List.module.scss.js → PayScheduleList.module.scss.js} +1 -1
  116. package/dist/components/Company/PaySchedule/PayScheduleList.module.scss.js.map +1 -0
  117. package/dist/components/Company/PaySchedule/payScheduleStateMachine.d.ts +6 -0
  118. package/dist/components/Company/PaySchedule/payScheduleStateMachine.js +49 -0
  119. package/dist/components/Company/PaySchedule/payScheduleStateMachine.js.map +1 -0
  120. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +7 -5
  121. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  122. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  123. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  124. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +8 -6
  125. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  126. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +7 -5
  127. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  128. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  129. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  130. package/dist/components/Contractor/Address/Address.js +4 -2
  131. package/dist/components/Contractor/Address/Address.js.map +1 -1
  132. package/dist/components/Contractor/Address/Form.js +7 -6
  133. package/dist/components/Contractor/Address/Form.js.map +1 -1
  134. package/dist/components/Contractor/Address/useAddress.js +6 -5
  135. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  136. package/dist/components/Contractor/ContractorList/index.js +3 -2
  137. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  138. package/dist/components/Contractor/NewHireReport/NewHireReport.js +3 -2
  139. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  140. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +6 -4
  141. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  142. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
  143. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  144. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +3 -2
  145. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  146. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +3 -2
  147. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  148. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +3 -2
  149. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  150. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +3 -2
  151. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  152. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -2
  153. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  154. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +3 -2
  155. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  156. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +14 -13
  157. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  158. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +3 -2
  159. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  160. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +3 -2
  161. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  162. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  163. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  164. package/dist/components/Contractor/Submit/Submit.js +3 -2
  165. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  166. package/dist/components/Employee/Compensation/Actions.js +6 -5
  167. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  168. package/dist/components/Employee/Compensation/Edit.js +23 -22
  169. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  170. package/dist/components/Employee/Compensation/List.js +25 -23
  171. package/dist/components/Employee/Compensation/List.js.map +1 -1
  172. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +3 -2
  173. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  174. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +3 -2
  175. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  176. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +3 -2
  177. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  178. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +7 -6
  179. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  180. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +3 -2
  181. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  182. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +8 -6
  183. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  184. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +11 -9
  185. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  186. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
  187. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  188. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  189. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  190. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +8 -7
  191. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  192. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +11 -10
  193. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  194. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +13 -11
  195. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  196. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  197. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  198. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +3 -2
  199. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  200. package/dist/components/Employee/FederalTaxes/Actions.js +8 -6
  201. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  202. package/dist/components/Employee/FederalTaxes/FederalForm.js +6 -4
  203. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  204. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  205. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  206. package/dist/components/Employee/Landing/Landing.js +7 -6
  207. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  208. package/dist/components/Employee/PaymentMethod/Actions.js +9 -7
  209. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  210. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -4
  211. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  212. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +7 -6
  213. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  214. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -6
  215. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  216. package/dist/components/Employee/PaymentMethod/Split.js +4 -3
  217. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  218. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  219. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  220. package/dist/components/Employee/Profile/AdminProfile.js +124 -126
  221. package/dist/components/Employee/Profile/AdminProfile.js.map +1 -1
  222. package/dist/components/Employee/Profile/EmployeeProfile.js +8 -8
  223. package/dist/components/Employee/StateTaxes/Actions.js +10 -8
  224. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  225. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  226. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  227. package/dist/components/Employee/Taxes/Actions.js +10 -8
  228. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  229. package/dist/components/Employee/Taxes/FederalForm.js +6 -4
  230. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  231. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  232. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  233. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +3 -2
  234. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  235. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +9 -8
  236. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  237. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +3 -2
  238. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  239. package/dist/components/Employee/employee-list/management/ManagementEmployeeListView.js +3 -2
  240. package/dist/components/Employee/employee-list/management/ManagementEmployeeListView.js.map +1 -1
  241. package/dist/components/Employee/employee-list/onboarding/EmployeeListView.js +35 -34
  242. package/dist/components/Employee/employee-list/onboarding/EmployeeListView.js.map +1 -1
  243. package/dist/components/Flow/Flow.js +12 -11
  244. package/dist/components/Flow/Flow.js.map +1 -1
  245. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +18 -17
  246. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  247. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +8 -7
  248. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  249. package/dist/components/InformationRequests/InformationRequests.js +3 -2
  250. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  251. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +1 -0
  252. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  253. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +9 -8
  254. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  255. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +3 -2
  256. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  257. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +19 -18
  258. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  259. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +12 -10
  260. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  261. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +8 -6
  262. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  263. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +4 -2
  264. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  265. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +8 -7
  266. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  267. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +3 -2
  268. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  269. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +3 -2
  270. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  271. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +5 -4
  272. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  273. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +3 -2
  274. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  275. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +13 -12
  276. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  277. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +30 -29
  278. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  279. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +3 -2
  280. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  281. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  282. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  283. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +3 -2
  284. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  285. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +1 -0
  286. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  287. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  288. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  289. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +3 -2
  290. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  291. package/dist/components/Payroll/usePreparedPayrollData.js +7 -6
  292. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  293. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +13 -12
  294. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -1
  295. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +3 -2
  296. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
  297. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +3 -2
  298. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -1
  299. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +24 -22
  300. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  301. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +3 -2
  302. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
  303. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +12 -10
  304. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  305. package/dist/i18n/en/Company.PaySchedule.json.js +15 -13
  306. package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
  307. package/dist/index.d.ts +1 -1
  308. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +18 -15
  309. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  310. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +24 -21
  311. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  312. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +18 -15
  313. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  314. package/dist/partner-hook-utils/form/fields/SelectHookField.js +20 -17
  315. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  316. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +19 -16
  317. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  318. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +25 -22
  319. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  320. package/dist/style.css +1 -1
  321. package/dist/types/i18next.d.ts +9 -0
  322. package/docs/reference/endpoint-inventory.json +16 -35
  323. package/package.json +6 -6
  324. package/dist/components/Company/DocumentSigner/SignatureForm/Actions.d.ts +0 -1
  325. package/dist/components/Company/DocumentSigner/SignatureForm/Actions.js +0 -20
  326. package/dist/components/Company/DocumentSigner/SignatureForm/Actions.js.map +0 -1
  327. package/dist/components/Company/DocumentSigner/SignatureForm/Form.d.ts +0 -1
  328. package/dist/components/Company/DocumentSigner/SignatureForm/Form.js +0 -20
  329. package/dist/components/Company/DocumentSigner/SignatureForm/Form.js.map +0 -1
  330. package/dist/components/Company/DocumentSigner/SignatureForm/Head.d.ts +0 -1
  331. package/dist/components/Company/DocumentSigner/SignatureForm/Head.js +0 -35
  332. package/dist/components/Company/DocumentSigner/SignatureForm/Head.js.map +0 -1
  333. package/dist/components/Company/DocumentSigner/SignatureForm/Preview.d.ts +0 -1
  334. package/dist/components/Company/DocumentSigner/SignatureForm/Preview.js +0 -20
  335. package/dist/components/Company/DocumentSigner/SignatureForm/Preview.js.map +0 -1
  336. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.d.ts +0 -9
  337. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +0 -22
  338. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +0 -1
  339. package/dist/components/Company/PaySchedule/_parts/Actions.d.ts +0 -1
  340. package/dist/components/Company/PaySchedule/_parts/Actions.js +0 -62
  341. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +0 -1
  342. package/dist/components/Company/PaySchedule/_parts/Edit.d.ts +0 -1
  343. package/dist/components/Company/PaySchedule/_parts/Edit.js +0 -134
  344. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +0 -1
  345. package/dist/components/Company/PaySchedule/_parts/Edit.module.scss.js.map +0 -1
  346. package/dist/components/Company/PaySchedule/_parts/Head.d.ts +0 -1
  347. package/dist/components/Company/PaySchedule/_parts/Head.js +0 -47
  348. package/dist/components/Company/PaySchedule/_parts/Head.js.map +0 -1
  349. package/dist/components/Company/PaySchedule/_parts/List.d.ts +0 -1
  350. package/dist/components/Company/PaySchedule/_parts/List.js +0 -57
  351. package/dist/components/Company/PaySchedule/_parts/List.js.map +0 -1
  352. package/dist/components/Company/PaySchedule/_parts/List.module.scss.js.map +0 -1
  353. package/dist/components/Company/PaySchedule/_parts/index.d.ts +0 -5
  354. package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +0 -39
  355. package/dist/components/Company/PaySchedule/usePaySchedule.js +0 -30
  356. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +0 -1
@@ -103,25 +103,6 @@
103
103
  "companyUuid"
104
104
  ]
105
105
  },
106
- "Company.SignatureForm": {
107
- "endpoints": [
108
- {
109
- "method": "GET",
110
- "path": "/v1/forms/:formId"
111
- },
112
- {
113
- "method": "PUT",
114
- "path": "/v1/forms/:formId/sign"
115
- },
116
- {
117
- "method": "GET",
118
- "path": "/v1/forms/:formId/pdf"
119
- }
120
- ],
121
- "variables": [
122
- "formId"
123
- ]
124
- },
125
106
  "Company.DocumentSigner": {
126
107
  "endpoints": [
127
108
  {
@@ -136,13 +117,13 @@
136
117
  "method": "GET",
137
118
  "path": "/v1/forms/:formId"
138
119
  },
139
- {
140
- "method": "PUT",
141
- "path": "/v1/forms/:formId/sign"
142
- },
143
120
  {
144
121
  "method": "GET",
145
122
  "path": "/v1/forms/:formId/pdf"
123
+ },
124
+ {
125
+ "method": "PUT",
126
+ "path": "/v1/forms/:formId/sign"
146
127
  }
147
128
  ],
148
129
  "variables": [
@@ -190,22 +171,22 @@
190
171
  "endpoints": [
191
172
  {
192
173
  "method": "GET",
193
- "path": "/v1/companies/:companyId/pay_schedules/preview"
174
+ "path": "/v1/companies/:companyId/pay_schedules"
194
175
  },
195
176
  {
196
- "method": "PUT",
177
+ "method": "GET",
197
178
  "path": "/v1/companies/:companyId/pay_schedules/:payScheduleId"
198
179
  },
199
180
  {
200
181
  "method": "GET",
201
- "path": "/v1/companies/:companyId/pay_schedules"
182
+ "path": "/v1/companies/:companyId/pay_schedules/preview"
202
183
  },
203
184
  {
204
185
  "method": "POST",
205
186
  "path": "/v1/companies/:companyId/pay_schedules"
206
187
  },
207
188
  {
208
- "method": "GET",
189
+ "method": "PUT",
209
190
  "path": "/v1/companies/:companyId/pay_schedules/:payScheduleId"
210
191
  },
211
192
  {
@@ -1827,14 +1808,14 @@
1827
1808
  "method": "GET",
1828
1809
  "path": "/v1/forms/:formId"
1829
1810
  },
1830
- {
1831
- "method": "PUT",
1832
- "path": "/v1/forms/:formId/sign"
1833
- },
1834
1811
  {
1835
1812
  "method": "GET",
1836
1813
  "path": "/v1/forms/:formId/pdf"
1837
1814
  },
1815
+ {
1816
+ "method": "PUT",
1817
+ "path": "/v1/forms/:formId/sign"
1818
+ },
1838
1819
  {
1839
1820
  "method": "PUT",
1840
1821
  "path": "/v1/companies/:companyId/federal_tax_details"
@@ -1873,22 +1854,22 @@
1873
1854
  },
1874
1855
  {
1875
1856
  "method": "GET",
1876
- "path": "/v1/companies/:companyId/pay_schedules/preview"
1857
+ "path": "/v1/companies/:companyId/pay_schedules"
1877
1858
  },
1878
1859
  {
1879
- "method": "PUT",
1860
+ "method": "GET",
1880
1861
  "path": "/v1/companies/:companyId/pay_schedules/:payScheduleId"
1881
1862
  },
1882
1863
  {
1883
1864
  "method": "GET",
1884
- "path": "/v1/companies/:companyId/pay_schedules"
1865
+ "path": "/v1/companies/:companyId/pay_schedules/preview"
1885
1866
  },
1886
1867
  {
1887
1868
  "method": "POST",
1888
1869
  "path": "/v1/companies/:companyId/pay_schedules"
1889
1870
  },
1890
1871
  {
1891
- "method": "GET",
1872
+ "method": "PUT",
1892
1873
  "path": "/v1/companies/:companyId/pay_schedules/:payScheduleId"
1893
1874
  },
1894
1875
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gusto/embedded-react-sdk",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "homepage": "https://github.com/Gusto/embedded-react-sdk",
5
5
  "bugs": {
6
6
  "url": "https://github.com/Gusto/embedded-react-sdk/issues"
@@ -99,7 +99,7 @@
99
99
  "@types/react": "^19.2.14",
100
100
  "@types/react-dom": "^19.2.3",
101
101
  "@vitejs/plugin-react-swc": "^4.3.0",
102
- "@vitest/coverage-v8": "^4.1.3",
102
+ "@vitest/coverage-v8": "^4.1.5",
103
103
  "axe-core": "^4.11.3",
104
104
  "dotenv": "^17.4.2",
105
105
  "eslint": "^9.39.4",
@@ -123,13 +123,13 @@
123
123
  "prettier": "^3.8.3",
124
124
  "react-dnd": "^16.0.1",
125
125
  "react-dnd-html5-backend": "^16.0.1",
126
- "react-router-dom": "^7.14.1",
126
+ "react-router-dom": "^7.14.2",
127
127
  "sass-embedded": "^1.99.0",
128
128
  "storybook": "^10.3.4",
129
129
  "stylelint-config-standard": "^40.0.0",
130
130
  "ts-morph": "^28.0.0",
131
131
  "tsx": "^4.21.0",
132
- "typescript-eslint": "^8.58.2",
132
+ "typescript-eslint": "^8.59.0",
133
133
  "vite": "^6.4.2",
134
134
  "vite-plugin-checker": "^0.13.0",
135
135
  "vite-plugin-circular-dependency": "^0.5.0",
@@ -153,12 +153,12 @@
153
153
  "@internationalized/number": "^3.6.6",
154
154
  "classnames": "^2.5.1",
155
155
  "deepmerge": "^4.3.1",
156
- "dompurify": "^3.4.0",
156
+ "dompurify": "^3.4.1",
157
157
  "i18next": "^26.0.6",
158
158
  "react-aria": "^3.47.0",
159
159
  "react-aria-components": "1.16.0",
160
160
  "react-error-boundary": "^6.1.1",
161
- "react-hook-form": "^7.72.1",
161
+ "react-hook-form": "^7.73.1",
162
162
  "react-i18next": "^17.0.4",
163
163
  "react-robot": "^1.2.1",
164
164
  "robot3": "^1.2.0",
@@ -1 +0,0 @@
1
- export declare function Actions(): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { useTranslation as n } from "react-i18next";
3
- import { useSignatureForm as a } from "./useSignatureForm.js";
4
- import { SignatureFormActions as m } from "../../../Common/SignatureForm/SignatureFormActions.js";
5
- function b() {
6
- const { onBack: t, isPending: r } = a(), { t: o } = n("Company.SignatureForm");
7
- return /* @__PURE__ */ i(
8
- m,
9
- {
10
- onBack: t,
11
- backLabel: o("backCta"),
12
- submitLabel: o("submitCta"),
13
- isLoading: r
14
- }
15
- );
16
- }
17
- export {
18
- b as Actions
19
- };
20
- //# sourceMappingURL=Actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useSignatureForm } from './useSignatureForm'\nimport { SignatureFormActions } from '@/components/Common/SignatureForm'\n\nexport function Actions() {\n const { onBack, isPending } = useSignatureForm()\n const { t } = useTranslation('Company.SignatureForm')\n\n return (\n <SignatureFormActions\n onBack={onBack}\n backLabel={t('backCta')}\n submitLabel={t('submitCta')}\n isLoading={isPending}\n />\n )\n}\n"],"names":["Actions","onBack","isPending","useSignatureForm","t","useTranslation","jsx","SignatureFormActions"],"mappings":";;;;AAIO,SAASA,IAAU;AACxB,QAAM,EAAE,QAAAC,GAAQ,WAAAC,EAAA,IAAcC,EAAA,GACxB,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB;AAEpD,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAAN;AAAA,MACA,WAAWG,EAAE,SAAS;AAAA,MACtB,aAAaA,EAAE,WAAW;AAAA,MAC1B,WAAWF;AAAA,IAAA;AAAA,EAAA;AAGjB;"}
@@ -1 +0,0 @@
1
- export declare function Form(): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as i } from "react-i18next";
3
- import { SignatureFormFields as n } from "../../../Common/SignatureForm/SignatureFormFields.js";
4
- function m() {
5
- const { t: r } = i("Company.SignatureForm");
6
- return /* @__PURE__ */ o(
7
- n,
8
- {
9
- signatureLabel: r("signatureLabel"),
10
- signatureDescription: r("signatureDescription"),
11
- signatureError: r("signatureError"),
12
- confirmationLabel: r("confirmationLabel"),
13
- confirmationError: r("confirmationError")
14
- }
15
- );
16
- }
17
- export {
18
- m as Form
19
- };
20
- //# sourceMappingURL=Form.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/Form.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { SignatureFormFields } from '@/components/Common/SignatureForm'\n\nexport function Form() {\n const { t } = useTranslation('Company.SignatureForm')\n\n return (\n <SignatureFormFields\n signatureLabel={t('signatureLabel')}\n signatureDescription={t('signatureDescription')}\n signatureError={t('signatureError')}\n confirmationLabel={t('confirmationLabel')}\n confirmationError={t('confirmationError')}\n />\n )\n}\n"],"names":["Form","t","useTranslation","jsx","SignatureFormFields"],"mappings":";;;AAGO,SAASA,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB;AAEpD,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgBH,EAAE,gBAAgB;AAAA,MAClC,sBAAsBA,EAAE,sBAAsB;AAAA,MAC9C,gBAAgBA,EAAE,gBAAgB;AAAA,MAClC,mBAAmBA,EAAE,mBAAmB;AAAA,MACxC,mBAAmBA,EAAE,mBAAmB;AAAA,IAAA;AAAA,EAAA;AAG9C;"}
@@ -1 +0,0 @@
1
- export declare function Head(): import("react/jsx-runtime").JSX.Element;
@@ -1,35 +0,0 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as m, Trans as s } from "react-i18next";
3
- import { useSignatureForm as a } from "./useSignatureForm.js";
4
- import { useComponentContext as d } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
5
- function u() {
6
- const { form: n, pdfUrl: e } = a(), { t } = m("Company.SignatureForm"), r = d();
7
- return /* @__PURE__ */ i("section", { children: [
8
- /* @__PURE__ */ o(r.Heading, { as: "h2", children: t("signatureFormTitle", { formTitle: n.title }) }),
9
- e && /* @__PURE__ */ o(r.Text, { children: /* @__PURE__ */ o(
10
- s,
11
- {
12
- t,
13
- i18nKey: "downloadPrompt",
14
- values: {
15
- description: n.description
16
- },
17
- components: {
18
- downloadLink: /* @__PURE__ */ o(
19
- r.Link,
20
- {
21
- href: e,
22
- target: "_blank",
23
- rel: "noopener noreferrer",
24
- download: `${n.title || "form"}.pdf`
25
- }
26
- )
27
- }
28
- }
29
- ) })
30
- ] });
31
- }
32
- export {
33
- u as Head
34
- };
35
- //# sourceMappingURL=Head.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Head.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/Head.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { useSignatureForm } from './useSignatureForm'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Head() {\n const { form, pdfUrl } = useSignatureForm()\n const { t } = useTranslation('Company.SignatureForm')\n const Components = useComponentContext()\n\n return (\n <section>\n <Components.Heading as=\"h2\">\n {t('signatureFormTitle', { formTitle: form.title })}\n </Components.Heading>\n {pdfUrl && (\n <Components.Text>\n <Trans\n t={t}\n i18nKey=\"downloadPrompt\"\n values={{\n description: form.description,\n }}\n components={{\n downloadLink: (\n <Components.Link\n href={pdfUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n download={`${form.title || 'form'}.pdf`}\n />\n ),\n }}\n />\n </Components.Text>\n )}\n </section>\n )\n}\n"],"names":["Head","form","pdfUrl","useSignatureForm","useTranslation","Components","useComponentContext","jsx","Trans"],"mappings":";;;;AAIO,SAASA,IAAO;AACrB,QAAM,EAAE,MAAAC,GAAM,QAAAC,EAAA,IAAWC,EAAA,GACnB,EAAE,EAAA,IAAMC,EAAe,uBAAuB,GAC9CC,IAAaC,EAAA;AAEnB,2BACG,WAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACF,EAAW,SAAX,EAAmB,IAAG,MACpB,UAAA,EAAE,sBAAsB,EAAE,WAAWJ,EAAK,MAAA,CAAO,EAAA,CACpD;AAAA,IACCC,KACC,gBAAAK,EAACF,EAAW,MAAX,EACC,UAAA,gBAAAE;AAAA,MAACC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,SAAQ;AAAA,QACR,QAAQ;AAAA,UACN,aAAaP,EAAK;AAAA,QAAA;AAAA,QAEpB,YAAY;AAAA,UACV,cACE,gBAAAM;AAAA,YAACF,EAAW;AAAA,YAAX;AAAA,cACC,MAAMH;AAAA,cACN,QAAO;AAAA,cACP,KAAI;AAAA,cACJ,UAAU,GAAGD,EAAK,SAAS,MAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QACnC;AAAA,MAEJ;AAAA,IAAA,EACF,CACF;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -1 +0,0 @@
1
- export declare function Preview(): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { useTranslation as e } from "react-i18next";
3
- import { useSignatureForm as i } from "./useSignatureForm.js";
4
- import { DocumentViewer as m } from "../../../Common/DocumentViewer/DocumentViewer.js";
5
- function l() {
6
- const { form: t, pdfUrl: r } = i(), { t: o } = e("Company.SignatureForm");
7
- return /* @__PURE__ */ n(
8
- m,
9
- {
10
- url: r,
11
- title: t.title,
12
- downloadInstructions: o("downloadInstructions"),
13
- viewDocumentLabel: o("viewDocumentCta")
14
- }
15
- );
16
- }
17
- export {
18
- l as Preview
19
- };
20
- //# sourceMappingURL=Preview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Preview.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/Preview.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useSignatureForm } from './useSignatureForm'\nimport { DocumentViewer } from '@/components/Common/DocumentViewer'\n\nexport function Preview() {\n const { form, pdfUrl } = useSignatureForm()\n const { t } = useTranslation('Company.SignatureForm')\n\n return (\n <DocumentViewer\n url={pdfUrl}\n title={form.title}\n downloadInstructions={t('downloadInstructions')}\n viewDocumentLabel={t('viewDocumentCta')}\n />\n )\n}\n"],"names":["Preview","form","pdfUrl","useSignatureForm","t","useTranslation","jsx","DocumentViewer"],"mappings":";;;;AAIO,SAASA,IAAU;AACxB,QAAM,EAAE,MAAAC,GAAM,QAAAC,EAAA,IAAWC,EAAA,GACnB,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB;AAEpD,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAKL;AAAA,MACL,OAAOD,EAAK;AAAA,MACZ,sBAAsBG,EAAE,sBAAsB;AAAA,MAC9C,mBAAmBA,EAAE,iBAAiB;AAAA,IAAA;AAAA,EAAA;AAG5C;"}
@@ -1,9 +0,0 @@
1
- import { Form as FormSchema } from '@gusto/embedded-api/models/components/form';
2
- type SignatureFormContextType = {
3
- form: FormSchema;
4
- pdfUrl?: string | null;
5
- isPending: boolean;
6
- onBack: () => void;
7
- };
8
- declare const useSignatureForm: () => SignatureFormContextType, SignatureFormProvider: import('react').Provider<SignatureFormContextType | null>;
9
- export { useSignatureForm, SignatureFormProvider };
@@ -1,22 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import "react-error-boundary";
4
- import "react-i18next";
5
- import "@tanstack/react-query";
6
- import "../../../Base/useBase.js";
7
- import "@gusto/embedded-api/models/errors/apierror";
8
- import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
- import "@gusto/embedded-api/models/errors/httpclienterrors";
12
- import "../../../../shared/constants.js";
13
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
- import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [c, d] = o(
16
- "CompanySignatureFormContext"
17
- );
18
- export {
19
- d as SignatureFormProvider,
20
- c as useSignatureForm
21
- };
22
- //# sourceMappingURL=useSignatureForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/useSignatureForm.ts"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype SignatureFormContextType = {\n form: FormSchema\n pdfUrl?: string | null\n isPending: boolean\n onBack: () => void\n}\n\nconst [useSignatureForm, SignatureFormProvider] = createCompoundContext<SignatureFormContextType>(\n 'CompanySignatureFormContext',\n)\n\nexport { useSignatureForm, SignatureFormProvider }\n"],"names":["useSignatureForm","SignatureFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -1 +0,0 @@
1
- export declare const Actions: () => import("react/jsx-runtime").JSX.Element;
@@ -1,62 +0,0 @@
1
- import { jsxs as e, Fragment as l, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as m } from "react-i18next";
3
- import { usePaySchedule as u } from "../usePaySchedule.js";
4
- import { ActionsLayout as a } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
- import { useComponentContext as h } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- const E = () => {
7
- const { t: n } = m("Company.PaySchedule"), { mode: i, handleAdd: s, handleCancel: c, handleContinue: d, isPending: r } = u(), t = h();
8
- return /* @__PURE__ */ e(l, { children: [
9
- i === "LIST_PAY_SCHEDULES" && /* @__PURE__ */ e(a, { children: [
10
- /* @__PURE__ */ o(
11
- t.Button,
12
- {
13
- variant: "secondary",
14
- onClick: () => {
15
- s();
16
- },
17
- children: n("addAnotherPayScheduleCta")
18
- }
19
- ),
20
- /* @__PURE__ */ o(
21
- t.Button,
22
- {
23
- variant: "primary",
24
- onClick: () => {
25
- d();
26
- },
27
- children: n("continueCta")
28
- }
29
- )
30
- ] }),
31
- i === "ADD_PAY_SCHEDULE" && /* @__PURE__ */ e(a, { children: [
32
- /* @__PURE__ */ o(
33
- t.Button,
34
- {
35
- variant: "secondary",
36
- onClick: () => {
37
- c();
38
- },
39
- children: n("actions.cancel")
40
- }
41
- ),
42
- /* @__PURE__ */ o(t.Button, { type: "submit", isLoading: r, children: n("actions.save") })
43
- ] }),
44
- i === "EDIT_PAY_SCHEDULE" && /* @__PURE__ */ e(a, { children: [
45
- /* @__PURE__ */ o(
46
- t.Button,
47
- {
48
- variant: "secondary",
49
- onClick: () => {
50
- c();
51
- },
52
- children: n("actions.cancel")
53
- }
54
- ),
55
- /* @__PURE__ */ o(t.Button, { type: "submit", isLoading: r, children: n("actions.save") })
56
- ] })
57
- ] });
58
- };
59
- export {
60
- E as Actions
61
- };
62
- //# sourceMappingURL=Actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/PaySchedule/_parts/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { usePaySchedule } from '../usePaySchedule'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.PaySchedule')\n const { mode, handleAdd, handleCancel, handleContinue, isPending } = usePaySchedule()\n const Components = useComponentContext()\n\n return (\n <>\n {mode === 'LIST_PAY_SCHEDULES' && (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n onClick={() => {\n handleAdd()\n }}\n >\n {t('addAnotherPayScheduleCta')}\n </Components.Button>\n <Components.Button\n variant=\"primary\"\n onClick={() => {\n handleContinue()\n }}\n >\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )}\n {mode === 'ADD_PAY_SCHEDULE' && (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n onClick={() => {\n handleCancel()\n }}\n >\n {t('actions.cancel')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('actions.save')}\n </Components.Button>\n </ActionsLayout>\n )}\n {mode === 'EDIT_PAY_SCHEDULE' && (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n onClick={() => {\n handleCancel()\n }}\n >\n {t('actions.cancel')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('actions.save')}\n </Components.Button>\n </ActionsLayout>\n )}\n </>\n )\n}\n"],"names":["Actions","t","useTranslation","mode","handleAdd","handleCancel","handleContinue","isPending","usePaySchedule","Components","useComponentContext","jsxs","Fragment","ActionsLayout","jsx"],"mappings":";;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,MAAAC,GAAM,WAAAC,GAAW,cAAAC,GAAc,gBAAAC,GAAgB,WAAAC,EAAA,IAAcC,EAAA,GAC/DC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAAAC,GAAA,EACG,UAAA;AAAA,IAAAT,MAAS,0CACPU,GAAA,EACC,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAACL,EAAW;AAAA,QAAX;AAAA,UACC,SAAQ;AAAA,UACR,SAAS,MAAM;AACb,YAAAL,EAAA;AAAA,UACF;AAAA,UAEC,YAAE,0BAA0B;AAAA,QAAA;AAAA,MAAA;AAAA,MAE/B,gBAAAU;AAAA,QAACL,EAAW;AAAA,QAAX;AAAA,UACC,SAAQ;AAAA,UACR,SAAS,MAAM;AACb,YAAAH,EAAA;AAAA,UACF;AAAA,UAEC,YAAE,aAAa;AAAA,QAAA;AAAA,MAAA;AAAA,IAClB,GACF;AAAA,IAEDH,MAAS,sBACR,gBAAAQ,EAACE,GAAA,EACC,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAACL,EAAW;AAAA,QAAX;AAAA,UACC,SAAQ;AAAA,UACR,SAAS,MAAM;AACb,YAAAJ,EAAA;AAAA,UACF;AAAA,UAEC,YAAE,gBAAgB;AAAA,QAAA;AAAA,MAAA;AAAA,MAErB,gBAAAS,EAACL,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAAN,EAAE,cAAc,EAAA,CACnB;AAAA,IAAA,GACF;AAAA,IAEDE,MAAS,uBACR,gBAAAQ,EAACE,GAAA,EACC,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAACL,EAAW;AAAA,QAAX;AAAA,UACC,SAAQ;AAAA,UACR,SAAS,MAAM;AACb,YAAAJ,EAAA;AAAA,UACF;AAAA,UAEC,YAAE,gBAAgB;AAAA,QAAA;AAAA,MAAA;AAAA,MAErB,gBAAAS,EAACL,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAAN,EAAE,cAAc,EAAA,CACnB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -1 +0,0 @@
1
- export declare const Edit: () => import("react/jsx-runtime").JSX.Element | null;
@@ -1,134 +0,0 @@
1
- import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
- import { useFormContext as S, useWatch as p } from "react-hook-form";
3
- import { useTranslation as q } from "react-i18next";
4
- import { useState as C, useEffect as T } from "react";
5
- import { usePaySchedule as x } from "../usePaySchedule.js";
6
- import n from "./Edit.module.scss.js";
7
- import { Flex as y } from "../../../Common/Flex/Flex.js";
8
- import { Grid as E } from "../../../Common/Grid/Grid.js";
9
- import { useComponentContext as N } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
- import { useDateFormatter as F } from "../../../../hooks/useDateFormatter.js";
11
- import { TextInputField as R } from "../../../Common/Fields/TextInputField/TextInputField.js";
12
- import { SelectField as O } from "../../../Common/Fields/SelectField/SelectField.js";
13
- import { RadioGroupField as M } from "../../../Common/Fields/RadioGroupField/RadioGroupField.js";
14
- import { NumberInputField as h } from "../../../Common/Fields/NumberInputField/NumberInputField.js";
15
- import { DatePickerField as f } from "../../../Common/Fields/DatePickerField/DatePickerField.js";
16
- const K = () => {
17
- const o = N(), { t: e } = q("Company.PaySchedule"), P = F(), { payPeriodPreview: r, mode: u, payPreviewLoading: D, paymentSpeedDays: v } = x(), { setValue: d } = S(), [a, b] = C(0), i = p({ name: "frequency" }), l = p({ name: "customTwicePerMonth" }), w = i === "Twice per month" && l === "custom" || i === "Monthly", g = i === "Twice per month" && l === "custom";
18
- return T(() => {
19
- i === "Twice per month" && l === "1st15th" && (d("day1", 15), d("day2", 31));
20
- }, [i, l, d]), u !== "EDIT_PAY_SCHEDULE" && u !== "ADD_PAY_SCHEDULE" ? null : /* @__PURE__ */ t("div", { className: n.payScheduleContainer, children: /* @__PURE__ */ m(E, { gap: 32, gridTemplateColumns: { base: "1fr", small: "1fr 1fr" }, children: [
21
- /* @__PURE__ */ t("div", { className: n.payScheduleForm, children: /* @__PURE__ */ m(y, { flexDirection: "column", children: [
22
- /* @__PURE__ */ t(R, { name: "customName", label: e("labels.name"), isRequired: !0 }),
23
- /* @__PURE__ */ t(
24
- O,
25
- {
26
- name: "frequency",
27
- label: e("labels.frequency"),
28
- options: [
29
- { value: "Every week", label: e("frequencies.everyWeek") },
30
- { value: "Every other week", label: e("frequencies.everyOtherWeek") },
31
- { value: "Twice per month", label: e("frequencies.twicePerMonth") },
32
- { value: "Monthly", label: e("frequencies.monthly") }
33
- ],
34
- isRequired: !0
35
- }
36
- ),
37
- i === "Twice per month" && /* @__PURE__ */ t(
38
- M,
39
- {
40
- name: "customTwicePerMonth",
41
- label: e("labels.frequencyOptions"),
42
- description: e("descriptions.frequencyOptionsDescription"),
43
- options: [
44
- { value: "1st15th", label: e("frequencyOptions.15thAndLast") },
45
- { value: "custom", label: e("frequencyOptions.custom") }
46
- ]
47
- }
48
- ),
49
- /* @__PURE__ */ t(
50
- f,
51
- {
52
- name: "anchorPayDate",
53
- label: e("labels.firstPayDate"),
54
- description: e("descriptions.anchorPayDateDescription", {
55
- count: v
56
- }),
57
- isRequired: !0,
58
- minDate: /* @__PURE__ */ new Date()
59
- }
60
- ),
61
- /* @__PURE__ */ t(
62
- f,
63
- {
64
- name: "anchorEndOfPayPeriod",
65
- label: e("labels.firstPayPeriodEndDate"),
66
- description: e("descriptions.anchorEndOfPayPeriodDescription"),
67
- isRequired: !0
68
- }
69
- ),
70
- /* @__PURE__ */ t("div", { className: w ? "" : n.visuallyHidden, children: /* @__PURE__ */ t(h, { name: "day1", label: e("labels.firstPayDayOfTheMonth"), isRequired: !0 }) }),
71
- /* @__PURE__ */ t("div", { className: g ? "" : n.visuallyHidden, children: /* @__PURE__ */ t(h, { name: "day2", label: e("labels.lastPayDayOfTheMonth"), isRequired: !0 }) })
72
- ] }) }),
73
- /* @__PURE__ */ t(y, { flexDirection: "column", gap: 4, justifyContent: "center", alignItems: "center", children: r && r[a] ? /* @__PURE__ */ m("div", { className: n.calendarContainer, children: [
74
- !D && /* @__PURE__ */ t(
75
- o.Select,
76
- {
77
- label: e("labels.preview"),
78
- isRequired: !0,
79
- options: r.map((s, c) => ({
80
- value: String(c),
81
- label: P.formatPayPeriodRange(
82
- s.startDate.toString(),
83
- s.endDate.toString()
84
- )
85
- })),
86
- value: String(a),
87
- onChange: (s) => {
88
- const c = Number(s);
89
- isNaN(c) || b(c);
90
- }
91
- }
92
- ),
93
- /* @__PURE__ */ t(
94
- o.CalendarPreview,
95
- {
96
- dateRange: {
97
- start: new Date(r[a].startDate.toString()),
98
- end: new Date(r[a].endDate.toString()),
99
- label: e("payPreview.payPeriod") || "Pay Period"
100
- },
101
- highlightDates: [
102
- {
103
- date: new Date(r[a].checkDate.toString()),
104
- highlightColor: "primary",
105
- label: e("payPreview.payday") || "Payday"
106
- },
107
- {
108
- date: new Date(
109
- r[a].runPayrollBy.toString()
110
- ),
111
- highlightColor: "secondary",
112
- label: e("payPreview.payrollDeadline") || "Payroll Deadline"
113
- }
114
- ]
115
- },
116
- a
117
- )
118
- ] }) : /* @__PURE__ */ t("div", { className: n.calendarContainer, children: /* @__PURE__ */ t(
119
- o.Alert,
120
- {
121
- status: "info",
122
- label: e("previewAlert.title", "Pay Schedule Preview"),
123
- children: /* @__PURE__ */ t(o.Text, { children: e(
124
- "previewAlert.description",
125
- "Complete all the required fields on the left to see a preview of your pay schedule."
126
- ) })
127
- }
128
- ) }) })
129
- ] }) });
130
- };
131
- export {
132
- K as Edit
133
- };
134
- //# sourceMappingURL=Edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Edit.js","sources":["../../../../../src/components/Company/PaySchedule/_parts/Edit.tsx"],"sourcesContent":["import { useFormContext, useWatch } from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { useEffect, useState } from 'react'\nimport type { PayScheduleInputs } from '../usePaySchedule'\nimport { usePaySchedule } from '../usePaySchedule'\nimport style from './Edit.module.scss'\nimport {\n Flex,\n SelectField,\n RadioGroupField,\n Grid,\n TextInputField,\n NumberInputField,\n DatePickerField,\n} from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\n\nexport const Edit = () => {\n const Components = useComponentContext()\n const { t } = useTranslation('Company.PaySchedule')\n const dateFormatter = useDateFormatter()\n const { payPeriodPreview, mode, payPreviewLoading, paymentSpeedDays } = usePaySchedule()\n const { setValue } = useFormContext<PayScheduleInputs>()\n const [selectedPayPeriodIndex, setSelectedPayPeriodIndex] = useState(0)\n\n const frequency = useWatch({ name: 'frequency' })\n const customTwicePerMonth = useWatch({ name: 'customTwicePerMonth' })\n\n const shouldShowDay1 =\n (frequency === 'Twice per month' && customTwicePerMonth === 'custom') || frequency === 'Monthly'\n const shouldShowDay2 = frequency === 'Twice per month' && customTwicePerMonth === 'custom'\n\n useEffect(() => {\n if (frequency === 'Twice per month' && customTwicePerMonth === '1st15th') {\n setValue('day1', 15)\n setValue('day2', 31)\n }\n }, [frequency, customTwicePerMonth, setValue])\n\n if (mode !== 'EDIT_PAY_SCHEDULE' && mode !== 'ADD_PAY_SCHEDULE') {\n return null\n }\n\n return (\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 <TextInputField name=\"customName\" label={t('labels.name')} isRequired />\n <SelectField\n name=\"frequency\"\n label={t('labels.frequency')}\n options={[\n { value: 'Every week', label: t('frequencies.everyWeek') },\n { value: 'Every other week', label: t('frequencies.everyOtherWeek') },\n { value: 'Twice per month', label: t('frequencies.twicePerMonth') },\n { value: 'Monthly', label: t('frequencies.monthly') },\n ]}\n isRequired\n />\n {frequency === 'Twice per month' && (\n <RadioGroupField\n name=\"customTwicePerMonth\"\n label={t('labels.frequencyOptions')}\n description={t('descriptions.frequencyOptionsDescription')}\n options={[\n { value: '1st15th', label: t('frequencyOptions.15thAndLast') },\n { value: 'custom', label: t('frequencyOptions.custom') },\n ]}\n />\n )}\n <DatePickerField\n name=\"anchorPayDate\"\n label={t('labels.firstPayDate')}\n description={t('descriptions.anchorPayDateDescription', {\n count: paymentSpeedDays,\n })}\n isRequired\n minDate={new Date()}\n />\n <DatePickerField\n name=\"anchorEndOfPayPeriod\"\n label={t('labels.firstPayPeriodEndDate')}\n description={t('descriptions.anchorEndOfPayPeriodDescription')}\n isRequired\n />\n <div className={shouldShowDay1 ? '' : style.visuallyHidden}>\n <NumberInputField name=\"day1\" label={t('labels.firstPayDayOfTheMonth')} isRequired />\n </div>\n <div className={shouldShowDay2 ? '' : style.visuallyHidden}>\n <NumberInputField name=\"day2\" label={t('labels.lastPayDayOfTheMonth')} isRequired />\n </div>\n </Flex>\n </div>\n <Flex flexDirection=\"column\" gap={4} justifyContent=\"center\" alignItems=\"center\">\n {payPeriodPreview && payPeriodPreview[selectedPayPeriodIndex] ? (\n <div className={style.calendarContainer}>\n {!payPreviewLoading && (\n <Components.Select\n label={t('labels.preview')}\n isRequired\n options={payPeriodPreview.map((period, index) => {\n return {\n value: String(index),\n label: dateFormatter.formatPayPeriodRange(\n period.startDate.toString(),\n period.endDate.toString(),\n ),\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(payPeriodPreview[selectedPayPeriodIndex].startDate.toString()),\n end: new Date(payPeriodPreview[selectedPayPeriodIndex].endDate.toString()),\n label: t('payPreview.payPeriod') || 'Pay Period',\n }}\n highlightDates={[\n {\n date: new Date(payPeriodPreview[selectedPayPeriodIndex].checkDate.toString()),\n highlightColor: 'primary',\n label: t('payPreview.payday') || 'Payday',\n },\n {\n date: new Date(\n payPeriodPreview[selectedPayPeriodIndex].runPayrollBy.toString(),\n ),\n highlightColor: 'secondary',\n label: t('payPreview.payrollDeadline') || 'Payroll Deadline',\n },\n ]}\n />\n </div>\n ) : (\n <div className={style.calendarContainer}>\n <Components.Alert\n status=\"info\"\n label={t('previewAlert.title', 'Pay Schedule Preview')}\n >\n <Components.Text>\n {t(\n 'previewAlert.description',\n 'Complete all the required fields on the left to see a preview of your pay schedule.',\n )}\n </Components.Text>\n </Components.Alert>\n </div>\n )}\n </Flex>\n </Grid>\n </div>\n )\n}\n"],"names":["Edit","Components","useComponentContext","t","useTranslation","dateFormatter","useDateFormatter","payPeriodPreview","mode","payPreviewLoading","paymentSpeedDays","usePaySchedule","setValue","useFormContext","selectedPayPeriodIndex","setSelectedPayPeriodIndex","useState","frequency","useWatch","customTwicePerMonth","shouldShowDay1","shouldShowDay2","useEffect","jsx","style","jsxs","Grid","Flex","TextInputField","SelectField","RadioGroupField","DatePickerField","NumberInputField","period","index","value","numericValue"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Edit.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1 +0,0 @@
1
- export declare const Head: () => import("react/jsx-runtime").JSX.Element;
@@ -1,47 +0,0 @@
1
- import { jsx as e, jsxs as s, Fragment as a } from "react/jsx-runtime";
2
- import { useTranslation as c, Trans as o } from "react-i18next";
3
- import { usePaySchedule as d } from "../usePaySchedule.js";
4
- import { Flex as h } from "../../../Common/Flex/Flex.js";
5
- import { useComponentContext as l } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- const y = () => {
7
- const { t: i } = c("Company.PaySchedule"), n = l(), { mode: r } = d();
8
- let t = /* @__PURE__ */ e(a, {});
9
- switch (r) {
10
- case "LIST_PAY_SCHEDULES":
11
- t = /* @__PURE__ */ s(a, { children: [
12
- /* @__PURE__ */ e(n.Heading, { as: "h2", children: i("headings.pageTitle") }),
13
- /* @__PURE__ */ e(n.Text, { children: /* @__PURE__ */ e(
14
- o,
15
- {
16
- i18nKey: "listDescription",
17
- t: i,
18
- components: {
19
- ScheduleLink: /* @__PURE__ */ e(n.Link, {})
20
- }
21
- }
22
- ) }),
23
- /* @__PURE__ */ e(n.Text, { children: /* @__PURE__ */ e(
24
- o,
25
- {
26
- i18nKey: "listDescription2",
27
- t: i,
28
- components: {
29
- PaymentLawLink: /* @__PURE__ */ e(n.Link, {})
30
- }
31
- }
32
- ) })
33
- ] });
34
- break;
35
- case "ADD_PAY_SCHEDULE":
36
- t = /* @__PURE__ */ e(n.Heading, { as: "h2", children: i("headings.addPaySchedule") });
37
- break;
38
- case "EDIT_PAY_SCHEDULE":
39
- t = /* @__PURE__ */ e(n.Heading, { as: "h2", children: i("headings.editPaySchedule") });
40
- break;
41
- }
42
- return /* @__PURE__ */ e(h, { justifyContent: "space-between", flexDirection: "column", gap: 4, children: /* @__PURE__ */ e("header", { children: t }) });
43
- };
44
- export {
45
- y as Head
46
- };
47
- //# sourceMappingURL=Head.js.map