@gusto/embedded-react-sdk 0.25.0 → 0.26.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.
- package/CHANGELOG.md +49 -0
- package/dist/assets/icons/icon-file-jpg.svg.js +10 -0
- package/dist/assets/icons/icon-file-jpg.svg.js.map +1 -0
- package/dist/assets/icons/icon-file-pdf.svg.js +10 -0
- package/dist/assets/icons/icon-file-pdf.svg.js.map +1 -0
- package/dist/assets/icons/icon-file-png.svg.js +10 -0
- package/dist/assets/icons/icon-file-png.svg.js.map +1 -0
- package/dist/assets/icons/icon-trashcan.svg.js +10 -0
- package/dist/assets/icons/icon-trashcan.svg.js.map +1 -0
- package/dist/components/Base/Base.js +12 -13
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +10 -12
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +3 -4
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -7
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.js +10 -10
- package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.module.scss.js +14 -14
- package/dist/components/Common/UI/Badge/Badge.module.scss.js +1 -1
- package/dist/components/Common/UI/Banner/Banner.module.scss.js +4 -4
- package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +6 -6
- package/dist/components/Common/UI/FileInput/FileInput.js +105 -106
- package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +30 -28
- package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Input/Input.module.scss.js +7 -7
- package/dist/components/Common/UI/List/List.module.scss.js +1 -1
- package/dist/components/Common/UI/Modal/Modal.js +41 -40
- package/dist/components/Common/UI/Modal/Modal.js.map +1 -1
- package/dist/components/Common/UI/Modal/Modal.module.scss.js +4 -4
- package/dist/components/Common/UI/Select/Select.module.scss.js +6 -6
- package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +4 -4
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +2 -3
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +5 -6
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +4 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/TitleSelect.js +3 -4
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +4 -6
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +2 -3
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +6 -7
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -6
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +8 -9
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +3 -4
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +6 -7
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +3 -4
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +2 -4
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +1 -1
- package/dist/components/Company/Industry/Actions.js +7 -8
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +1 -1
- package/dist/components/Company/Industry/Edit.js +2 -3
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +3 -4
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +2 -3
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +6 -7
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +7 -8
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +10 -12
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -8
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +7 -8
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +3 -4
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +2 -3
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +9 -10
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +11 -13
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +13 -15
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +1 -1
- package/dist/components/Contractor/Address/Address.js +4 -5
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +6 -7
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +1 -1
- package/dist/components/Contractor/ContractorList/index.js +31 -32
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +13 -14
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -11
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +102 -88
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +2 -4
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +13 -14
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +8 -0
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +58 -0
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -0
- package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +6 -0
- package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js +18 -0
- package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js.map +1 -0
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +86 -56
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +2 -0
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +35 -22
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +1 -0
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +82 -65
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +9 -11
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +8 -0
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +45 -0
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +15 -0
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +125 -0
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentSummary/index.d.ts +3 -0
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +37 -28
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +5 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +52 -49
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/useContractorProfile.js +2 -3
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +20 -21
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Employee/Compensation/Actions.js +12 -13
- package/dist/components/Employee/Compensation/Actions.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +2 -3
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +22 -23
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +2 -2
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +2 -2
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +2 -2
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +3 -4
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +2 -3
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +2 -3
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -4
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +6 -7
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -4
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +5 -7
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +2 -3
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +1 -1
- package/dist/components/Employee/EmploymentEligibility/EmploymentEligibility.d.ts +3 -0
- package/dist/components/Employee/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +37 -0
- package/dist/components/Employee/EmploymentEligibility/index.d.ts +4 -0
- package/dist/components/Employee/FederalTaxes/Actions.js +5 -6
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +4 -5
- package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +1 -1
- package/dist/components/Employee/Landing/Landing.js +10 -11
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
- package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -3
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +2 -3
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +5 -6
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +2 -3
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +1 -1
- package/dist/components/Employee/Profile/Actions.js +5 -6
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +4 -5
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +8 -9
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +8 -9
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +5 -6
- package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +1 -1
- package/dist/components/Employee/Taxes/Actions.js +6 -7
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +6 -7
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +1 -1
- package/dist/components/Flow/Flow.js +7 -9
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestForm/InformationRequestForm.d.ts +4 -4
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +162 -0
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +20 -0
- package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -1
- package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestList/InformationRequestList.d.ts +3 -2
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +96 -0
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
- package/dist/components/InformationRequests/InformationRequests.d.ts +7 -0
- package/dist/components/InformationRequests/InformationRequests.js +68 -0
- package/dist/components/InformationRequests/InformationRequests.js.map +1 -0
- package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestsComponents.d.ts +4 -4
- package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestsComponents.js +2 -2
- package/dist/components/InformationRequests/InformationRequestsComponents.js.map +1 -0
- package/dist/components/InformationRequests/index.d.ts +4 -0
- package/dist/components/InformationRequests/index.js +9 -0
- package/dist/components/InformationRequests/index.js.map +1 -0
- package/dist/components/{Payroll/InformationRequests → InformationRequests}/informationRequestsStateMachine.d.ts +1 -1
- package/dist/components/{Payroll/InformationRequests → InformationRequests}/informationRequestsStateMachine.js +1 -1
- package/dist/components/InformationRequests/informationRequestsStateMachine.js.map +1 -0
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +69 -59
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +0 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +61 -52
- package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +22 -24
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.d.ts +5 -13
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +102 -28
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/index.d.ts +0 -1
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +14 -14
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +132 -131
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +2 -3
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +14 -16
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +45 -38
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +54 -40
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +36 -38
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +26 -24
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +2 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +70 -48
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +72 -36
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +14 -17
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -2
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +89 -96
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +29 -30
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +3 -3
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +242 -243
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -2
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +2 -4
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +2 -2
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js +8 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +83 -52
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +2 -4
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +59 -36
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.d.ts +7 -0
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +65 -0
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -0
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +1 -1
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +1 -2
- package/dist/components/Payroll/index.js +8 -10
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.d.ts +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +1 -1
- package/dist/contexts/ThemeProvider/theme.js +5 -5
- package/dist/contexts/ThemeProvider/theme.js.map +1 -1
- package/dist/helpers/formattedStrings.js +12 -11
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/i18n/I18n.js +8 -8
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +30 -26
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
- package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js +58 -0
- package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js.map +1 -0
- package/dist/i18n/en/Employee.EmploymentEligibility.json.js +28 -0
- package/dist/i18n/en/Employee.EmploymentEligibility.json.js.map +1 -0
- package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js +20 -0
- package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js.map +1 -0
- package/dist/i18n/en/{Payroll.InformationRequestList.json.js → InformationRequests.InformationRequestList.json.js} +6 -6
- package/dist/i18n/en/InformationRequests.InformationRequestList.json.js.map +1 -0
- package/dist/i18n/en/Payroll.ConfirmWireDetailsBanner.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollBlocker.json.js +24 -20
- package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollLanding.json.js +5 -3
- package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
- package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -10
- package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +5 -3
- package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -1
- package/dist/i18n/en/Payroll.WireInstructions.json.js +20 -16
- package/dist/i18n/en/Payroll.WireInstructions.json.js.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/shared/constants.d.ts +6 -0
- package/dist/shared/constants.js +12 -9
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +248 -46
- package/package.json +16 -16
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js +0 -142
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +0 -1
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +0 -18
- package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js +0 -88
- package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js.map +0 -1
- package/dist/components/Payroll/InformationRequests/InformationRequests.d.ts +0 -6
- package/dist/components/Payroll/InformationRequests/InformationRequests.js +0 -55
- package/dist/components/Payroll/InformationRequests/InformationRequests.js.map +0 -1
- package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js.map +0 -1
- package/dist/components/Payroll/InformationRequests/index.d.ts +0 -3
- package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js.map +0 -1
- package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.d.ts +0 -6
- package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js +0 -32
- package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js.map +0 -1
- package/dist/i18n/en/Payroll.InformationRequestForm.json.js +0 -18
- package/dist/i18n/en/Payroll.InformationRequestForm.json.js.map +0 -1
- package/dist/i18n/en/Payroll.InformationRequestList.json.js.map +0 -1
- /package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestForm/index.d.ts +0 -0
- /package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestList/index.d.ts +0 -0
package/dist/types/i18next.d.ts
CHANGED
|
@@ -471,6 +471,20 @@ export interface ContractorPaymentsCreatePayment{
|
|
|
471
471
|
"historicalPayment":string;
|
|
472
472
|
};
|
|
473
473
|
};
|
|
474
|
+
"wireDetailsBanner":{
|
|
475
|
+
"title":string;
|
|
476
|
+
"titleFallback":string;
|
|
477
|
+
"description":string;
|
|
478
|
+
"startWireTransferCta":string;
|
|
479
|
+
"confirmationDescription":string;
|
|
480
|
+
};
|
|
481
|
+
"successState":{
|
|
482
|
+
"title":string;
|
|
483
|
+
"message":string;
|
|
484
|
+
"message_other":string;
|
|
485
|
+
"doneCta":string;
|
|
486
|
+
"wireDetailsSubmittedTitle":string;
|
|
487
|
+
};
|
|
474
488
|
"previewPresentation":{
|
|
475
489
|
"breadcrumbLabel":string;
|
|
476
490
|
"reviewAndSubmitTitle":string;
|
|
@@ -511,6 +525,26 @@ export interface ContractorPaymentsCreatePayment{
|
|
|
511
525
|
"submitPaymentsDeadline":string;
|
|
512
526
|
};
|
|
513
527
|
"naDebitAccount":string;
|
|
528
|
+
"submissionBlockers":{
|
|
529
|
+
"genericBlockerTitle":string;
|
|
530
|
+
"genericBlockerMessage":string;
|
|
531
|
+
"fastAchOptions":{
|
|
532
|
+
"description":string;
|
|
533
|
+
"fundingOptionsLabel":string;
|
|
534
|
+
"wireLabel":string;
|
|
535
|
+
"wireFastestBadge":string;
|
|
536
|
+
"wireDescription":string;
|
|
537
|
+
"directDepositLabel":string;
|
|
538
|
+
"directDepositDescription":string;
|
|
539
|
+
"contractorPayDate":string;
|
|
540
|
+
};
|
|
541
|
+
"fast_ach_threshold_exceeded":{
|
|
542
|
+
"title":string;
|
|
543
|
+
};
|
|
544
|
+
"needs_earned_access_for_fast_ach":{
|
|
545
|
+
"title":string;
|
|
546
|
+
};
|
|
547
|
+
};
|
|
514
548
|
};
|
|
515
549
|
};
|
|
516
550
|
export interface ContractorPaymentsPaymentHistory{
|
|
@@ -563,6 +597,37 @@ export interface ContractorPaymentsPaymentStatement{
|
|
|
563
597
|
"contractorNotFound":string;
|
|
564
598
|
};
|
|
565
599
|
};
|
|
600
|
+
export interface ContractorPaymentsPaymentSummary{
|
|
601
|
+
"breadcrumbLabel":string;
|
|
602
|
+
"successTitle":string;
|
|
603
|
+
"successMessage_one":string;
|
|
604
|
+
"successMessage_other":string;
|
|
605
|
+
"summaryTitle":string;
|
|
606
|
+
"summarySubtitle":string;
|
|
607
|
+
"doneCta":string;
|
|
608
|
+
"wireDetailsSubmittedTitle":string;
|
|
609
|
+
"paymentSummaryTitle":string;
|
|
610
|
+
"totalAmount":string;
|
|
611
|
+
"debitAmount":string;
|
|
612
|
+
"debitAccount":string;
|
|
613
|
+
"debitDate":string;
|
|
614
|
+
"contractorPayDate":string;
|
|
615
|
+
"contractorPaymentsTitle":string;
|
|
616
|
+
"contractor":string;
|
|
617
|
+
"wageType":string;
|
|
618
|
+
"paymentMethod":string;
|
|
619
|
+
"paymentMethods":{
|
|
620
|
+
"directDeposit":string;
|
|
621
|
+
"check":string;
|
|
622
|
+
};
|
|
623
|
+
"hours":string;
|
|
624
|
+
"wage":string;
|
|
625
|
+
"bonus":string;
|
|
626
|
+
"reimbursement":string;
|
|
627
|
+
"total":string;
|
|
628
|
+
"totalsLabel":string;
|
|
629
|
+
"notAvailable":string;
|
|
630
|
+
};
|
|
566
631
|
export interface ContractorPaymentsPaymentsList{
|
|
567
632
|
"title":string;
|
|
568
633
|
"subtitle":string;
|
|
@@ -891,6 +956,57 @@ export interface EmployeeEmployeeList{
|
|
|
891
956
|
"statusLabel":string;
|
|
892
957
|
"title":string;
|
|
893
958
|
};
|
|
959
|
+
export interface EmployeeEmploymentEligibility{
|
|
960
|
+
"title":string;
|
|
961
|
+
"subtitle":string;
|
|
962
|
+
"select":{
|
|
963
|
+
"label":string;
|
|
964
|
+
"description":string;
|
|
965
|
+
"placeholder":string;
|
|
966
|
+
"options":{
|
|
967
|
+
"citizen":string;
|
|
968
|
+
"lawfulPermanentResident":string;
|
|
969
|
+
"noncitizen":string;
|
|
970
|
+
"noncitizen_authorized":string;
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
"statusDescriptions":{
|
|
974
|
+
"citizen":string;
|
|
975
|
+
"lawfulPermanentResident":string;
|
|
976
|
+
"noncitizen":string;
|
|
977
|
+
"noncitizen_authorized":string;
|
|
978
|
+
};
|
|
979
|
+
"authorizedToWorkUntil":{
|
|
980
|
+
"label":string;
|
|
981
|
+
"error":{
|
|
982
|
+
"futureDate":string;
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
"authorizationDocument":{
|
|
986
|
+
"label":string;
|
|
987
|
+
"options":{
|
|
988
|
+
"uscis":string;
|
|
989
|
+
"i94":string;
|
|
990
|
+
"foreignPassport":string;
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
"uscisNumber":{
|
|
994
|
+
"label":string;
|
|
995
|
+
"description":string;
|
|
996
|
+
};
|
|
997
|
+
"i94AdmissionNumber":{
|
|
998
|
+
"label":string;
|
|
999
|
+
"description":string;
|
|
1000
|
+
};
|
|
1001
|
+
"foreignPassport":{
|
|
1002
|
+
"label":string;
|
|
1003
|
+
};
|
|
1004
|
+
"countryOfIssuance":{
|
|
1005
|
+
"label":string;
|
|
1006
|
+
"description":string;
|
|
1007
|
+
};
|
|
1008
|
+
"submit":string;
|
|
1009
|
+
};
|
|
894
1010
|
export interface EmployeeFederalTaxes{
|
|
895
1011
|
"additionalWithholding":string;
|
|
896
1012
|
"deductions":string;
|
|
@@ -1144,6 +1260,69 @@ export interface EmployeeTaxes{
|
|
|
1144
1260
|
"federalTwoJobs":string;
|
|
1145
1261
|
};
|
|
1146
1262
|
};
|
|
1263
|
+
export interface InformationRequestsInformationRequestForm{
|
|
1264
|
+
"title":string;
|
|
1265
|
+
"blockingAlert":{
|
|
1266
|
+
"title":string;
|
|
1267
|
+
"description":string;
|
|
1268
|
+
};
|
|
1269
|
+
"questionTypes":{
|
|
1270
|
+
"document":string;
|
|
1271
|
+
"answer":string;
|
|
1272
|
+
};
|
|
1273
|
+
"fields":{
|
|
1274
|
+
"textAnswer":{
|
|
1275
|
+
"label":string;
|
|
1276
|
+
"placeholder":string;
|
|
1277
|
+
};
|
|
1278
|
+
"fileUpload":{
|
|
1279
|
+
"label":string;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
"validation":{
|
|
1283
|
+
"required":string;
|
|
1284
|
+
"fileRequired":string;
|
|
1285
|
+
};
|
|
1286
|
+
"cta":{
|
|
1287
|
+
"cancel":string;
|
|
1288
|
+
"submit":string;
|
|
1289
|
+
"close":string;
|
|
1290
|
+
};
|
|
1291
|
+
"unsupported":{
|
|
1292
|
+
"persona":{
|
|
1293
|
+
"title":string;
|
|
1294
|
+
"description":string;
|
|
1295
|
+
};
|
|
1296
|
+
"generic":{
|
|
1297
|
+
"title":string;
|
|
1298
|
+
"description":string;
|
|
1299
|
+
};
|
|
1300
|
+
"contactSupport":string;
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
export interface InformationRequestsInformationRequestList{
|
|
1304
|
+
"title":string;
|
|
1305
|
+
"description":string;
|
|
1306
|
+
"columns":{
|
|
1307
|
+
"type":string;
|
|
1308
|
+
"status":string;
|
|
1309
|
+
};
|
|
1310
|
+
"types":{
|
|
1311
|
+
"companyOnboarding":string;
|
|
1312
|
+
"accountProtection":string;
|
|
1313
|
+
"paymentRequest":string;
|
|
1314
|
+
"paymentError":string;
|
|
1315
|
+
"unknown":string;
|
|
1316
|
+
};
|
|
1317
|
+
"status":{
|
|
1318
|
+
"incomplete":string;
|
|
1319
|
+
"underReview":string;
|
|
1320
|
+
"payrollBlocking":string;
|
|
1321
|
+
};
|
|
1322
|
+
"cta":{
|
|
1323
|
+
"respond":string;
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1147
1326
|
export interface PayrollCommon{
|
|
1148
1327
|
"status":{
|
|
1149
1328
|
"processed":string;
|
|
@@ -1174,6 +1353,8 @@ export interface PayrollConfirmWireDetailsBanner{
|
|
|
1174
1353
|
"titleWithPayroll":string;
|
|
1175
1354
|
"titleMultiple":string;
|
|
1176
1355
|
"description":string;
|
|
1356
|
+
"requestLabelPayroll":string;
|
|
1357
|
+
"requestLabelContractorPaymentGroup":string;
|
|
1177
1358
|
};
|
|
1178
1359
|
"cta":{
|
|
1179
1360
|
"startWireTransfer":string;
|
|
@@ -1206,64 +1387,25 @@ export interface PayrollConfirmWireDetailsForm{
|
|
|
1206
1387
|
"content":string;
|
|
1207
1388
|
};
|
|
1208
1389
|
};
|
|
1209
|
-
export interface
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1390
|
+
export interface PayrollPayrollBlocker{
|
|
1391
|
+
"breadcrumbLabel":string;
|
|
1392
|
+
"alerts":{
|
|
1393
|
+
"recoveryCaseResubmitted":{
|
|
1212
1394
|
"title":string;
|
|
1213
1395
|
"description":string;
|
|
1214
1396
|
};
|
|
1215
|
-
"
|
|
1216
|
-
"document":string;
|
|
1217
|
-
"answer":string;
|
|
1218
|
-
};
|
|
1219
|
-
"fields":{
|
|
1220
|
-
"textAnswer":{
|
|
1221
|
-
"label":string;
|
|
1222
|
-
"placeholder":string;
|
|
1223
|
-
};
|
|
1224
|
-
"fileUpload":{
|
|
1225
|
-
"label":string;
|
|
1226
|
-
};
|
|
1227
|
-
};
|
|
1228
|
-
"validation":{
|
|
1229
|
-
"required":string;
|
|
1230
|
-
"fileRequired":string;
|
|
1231
|
-
};
|
|
1232
|
-
"cta":{
|
|
1233
|
-
"cancel":string;
|
|
1234
|
-
"submit":string;
|
|
1235
|
-
};
|
|
1236
|
-
};
|
|
1237
|
-
export interface PayrollInformationRequestList{
|
|
1397
|
+
"informationRequestResponded":{
|
|
1238
1398
|
"title":string;
|
|
1239
1399
|
"description":string;
|
|
1240
|
-
"columns":{
|
|
1241
|
-
"type":string;
|
|
1242
|
-
"status":string;
|
|
1243
|
-
};
|
|
1244
|
-
"types":{
|
|
1245
|
-
"companyOnboarding":string;
|
|
1246
|
-
"accountProtection":string;
|
|
1247
|
-
"paymentRequest":string;
|
|
1248
|
-
"paymentError":string;
|
|
1249
|
-
"unknown":string;
|
|
1250
1400
|
};
|
|
1251
|
-
"status":{
|
|
1252
|
-
"incomplete":string;
|
|
1253
|
-
"underReview":string;
|
|
1254
1401
|
};
|
|
1255
|
-
"cta":{
|
|
1256
|
-
"respond":string;
|
|
1257
|
-
};
|
|
1258
|
-
};
|
|
1259
|
-
export interface PayrollPayrollBlocker{
|
|
1260
|
-
"breadcrumbLabel":string;
|
|
1261
1402
|
"exitFlowCta":string;
|
|
1262
1403
|
"multipleIssuesTitle":string;
|
|
1263
1404
|
"viewAllBlockers":string;
|
|
1264
1405
|
"blockersListTitle":string;
|
|
1265
1406
|
"blockerSectionLabel":string;
|
|
1266
1407
|
"blockersListDescription":string;
|
|
1408
|
+
"noBlockersMessage":string;
|
|
1267
1409
|
"estimatedTime":string;
|
|
1268
1410
|
"defaultBlockerDescription":string;
|
|
1269
1411
|
"defaultBlockerHelp":string;
|
|
@@ -1542,6 +1684,9 @@ export interface PayrollPayrollLanding{
|
|
|
1542
1684
|
"overview":string;
|
|
1543
1685
|
"receipt":string;
|
|
1544
1686
|
};
|
|
1687
|
+
"alerts":{
|
|
1688
|
+
"payrollCancelled":string;
|
|
1689
|
+
};
|
|
1545
1690
|
};
|
|
1546
1691
|
export interface PayrollPayrollList{
|
|
1547
1692
|
"emptyState":string;
|
|
@@ -1737,6 +1882,10 @@ export interface PayrollPayrollReceipts{
|
|
|
1737
1882
|
export interface PayrollRecoveryCasesList{
|
|
1738
1883
|
"title":string;
|
|
1739
1884
|
"description":string;
|
|
1885
|
+
"labels":{
|
|
1886
|
+
"noLatestErrorCode":string;
|
|
1887
|
+
"noLatestErrorCodeAriaLabel":string;
|
|
1888
|
+
};
|
|
1740
1889
|
"columns":{
|
|
1741
1890
|
"originalDebitDate":string;
|
|
1742
1891
|
"totalAmount":string;
|
|
@@ -1744,6 +1893,13 @@ export interface PayrollRecoveryCasesList{
|
|
|
1744
1893
|
"latestErrorCode":string;
|
|
1745
1894
|
"status":string;
|
|
1746
1895
|
};
|
|
1896
|
+
"status":{
|
|
1897
|
+
"open":string;
|
|
1898
|
+
"redebit_initiated":string;
|
|
1899
|
+
"wire_initiated":string;
|
|
1900
|
+
"recovered":string;
|
|
1901
|
+
"lost":string;
|
|
1902
|
+
};
|
|
1747
1903
|
"cta":{
|
|
1748
1904
|
"resolve":string;
|
|
1749
1905
|
};
|
|
@@ -1753,11 +1909,57 @@ export interface PayrollRecoveryCasesResubmit{
|
|
|
1753
1909
|
"cancel":string;
|
|
1754
1910
|
"resubmit":string;
|
|
1755
1911
|
};
|
|
1912
|
+
"errorCodes":{
|
|
1913
|
+
"R01":{
|
|
1914
|
+
"title":string;
|
|
1915
|
+
"subtitle":string;
|
|
1916
|
+
"body":string;
|
|
1917
|
+
"instruction":string;
|
|
1918
|
+
};
|
|
1919
|
+
"R02":{
|
|
1920
|
+
"title":string;
|
|
1921
|
+
"subtitle":string;
|
|
1922
|
+
"body":string;
|
|
1923
|
+
"instruction":string;
|
|
1924
|
+
};
|
|
1925
|
+
"R16":{
|
|
1926
|
+
"title":string;
|
|
1927
|
+
"subtitle":string;
|
|
1928
|
+
"body":string;
|
|
1929
|
+
"instruction":string;
|
|
1930
|
+
};
|
|
1931
|
+
"R29":{
|
|
1932
|
+
"title":string;
|
|
1933
|
+
"subtitle":string;
|
|
1934
|
+
"body":string;
|
|
1935
|
+
"listDescription":string;
|
|
1936
|
+
"achCodes":{
|
|
1937
|
+
"0":string;
|
|
1938
|
+
"1":string;
|
|
1939
|
+
"2":string;
|
|
1940
|
+
"3":string;
|
|
1941
|
+
"4":string;
|
|
1942
|
+
"5":string;
|
|
1943
|
+
"6":string;
|
|
1944
|
+
"7":string;
|
|
1945
|
+
"8":string;
|
|
1946
|
+
};
|
|
1947
|
+
"instruction":string;
|
|
1948
|
+
};
|
|
1949
|
+
"bankError":{
|
|
1950
|
+
"title":string;
|
|
1951
|
+
"subtitle":string;
|
|
1952
|
+
"body":string;
|
|
1953
|
+
"instruction":string;
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1756
1956
|
};
|
|
1757
1957
|
export interface PayrollWireInstructions{
|
|
1758
1958
|
"title":string;
|
|
1759
1959
|
"subtitle":string;
|
|
1760
1960
|
"selectLabel":string;
|
|
1961
|
+
"selectLabelPayroll":string;
|
|
1962
|
+
"selectLabelContractorPaymentGroup":string;
|
|
1761
1963
|
"selectFallback":string;
|
|
1762
1964
|
"requirementsTitle":string;
|
|
1763
1965
|
"requirements":{
|
|
@@ -1969,6 +2171,6 @@ export interface common{
|
|
|
1969
2171
|
|
|
1970
2172
|
interface CustomTypeOptions {
|
|
1971
2173
|
defaultNS: 'common';
|
|
1972
|
-
resources: { 'Company.Addresses': CompanyAddresses, 'Company.AssignSignatory': CompanyAssignSignatory, 'Company.BankAccount': CompanyBankAccount, 'Company.DocumentList': CompanyDocumentList, 'Company.FederalTaxes': CompanyFederalTaxes, 'Company.Industry': CompanyIndustry, 'Company.Locations': CompanyLocations, 'Company.OnboardingOverview': CompanyOnboardingOverview, 'Company.PaySchedule': CompanyPaySchedule, 'Company.SignatureForm': CompanySignatureForm, 'Company.StateTaxes': CompanyStateTaxes, 'Contractor.Address': ContractorAddress, 'Contractor.ContractorList': ContractorContractorList, 'Contractor.NewHireReport': ContractorNewHireReport, 'Contractor.PaymentMethod': ContractorPaymentMethod, 'Contractor.Payments.CreatePayment': ContractorPaymentsCreatePayment, 'Contractor.Payments.PaymentHistory': ContractorPaymentsPaymentHistory, 'Contractor.Payments.PaymentStatement': ContractorPaymentsPaymentStatement, 'Contractor.Payments.PaymentsList': ContractorPaymentsPaymentsList, 'Contractor.Profile': ContractorProfile, 'Contractor.Submit': ContractorSubmit, 'Employee.BankAccount': EmployeeBankAccount, 'Employee.Compensation': EmployeeCompensation, 'Employee.Deductions': EmployeeDeductions, 'Employee.DocumentSigner': EmployeeDocumentSigner, 'Employee.EmployeeList': EmployeeEmployeeList, 'Employee.FederalTaxes': EmployeeFederalTaxes, 'Employee.HomeAddress': EmployeeHomeAddress, 'Employee.Landing': EmployeeLanding, 'Employee.OnboardingSummary': EmployeeOnboardingSummary, 'Employee.PaySchedules': EmployeePaySchedules, 'Employee.PaymentMethod': EmployeePaymentMethod, 'Employee.Profile': EmployeeProfile, 'Employee.SplitPaycheck': EmployeeSplitPaycheck, 'Employee.StateTaxes': EmployeeStateTaxes, 'Employee.Taxes': EmployeeTaxes, '
|
|
2174
|
+
resources: { 'Company.Addresses': CompanyAddresses, 'Company.AssignSignatory': CompanyAssignSignatory, 'Company.BankAccount': CompanyBankAccount, 'Company.DocumentList': CompanyDocumentList, 'Company.FederalTaxes': CompanyFederalTaxes, 'Company.Industry': CompanyIndustry, 'Company.Locations': CompanyLocations, 'Company.OnboardingOverview': CompanyOnboardingOverview, 'Company.PaySchedule': CompanyPaySchedule, 'Company.SignatureForm': CompanySignatureForm, 'Company.StateTaxes': CompanyStateTaxes, 'Contractor.Address': ContractorAddress, 'Contractor.ContractorList': ContractorContractorList, 'Contractor.NewHireReport': ContractorNewHireReport, 'Contractor.PaymentMethod': ContractorPaymentMethod, 'Contractor.Payments.CreatePayment': ContractorPaymentsCreatePayment, 'Contractor.Payments.PaymentHistory': ContractorPaymentsPaymentHistory, 'Contractor.Payments.PaymentStatement': ContractorPaymentsPaymentStatement, 'Contractor.Payments.PaymentSummary': ContractorPaymentsPaymentSummary, 'Contractor.Payments.PaymentsList': ContractorPaymentsPaymentsList, 'Contractor.Profile': ContractorProfile, 'Contractor.Submit': ContractorSubmit, 'Employee.BankAccount': EmployeeBankAccount, 'Employee.Compensation': EmployeeCompensation, 'Employee.Deductions': EmployeeDeductions, 'Employee.DocumentSigner': EmployeeDocumentSigner, 'Employee.EmployeeList': EmployeeEmployeeList, 'Employee.EmploymentEligibility': EmployeeEmploymentEligibility, 'Employee.FederalTaxes': EmployeeFederalTaxes, 'Employee.HomeAddress': EmployeeHomeAddress, 'Employee.Landing': EmployeeLanding, 'Employee.OnboardingSummary': EmployeeOnboardingSummary, 'Employee.PaySchedules': EmployeePaySchedules, 'Employee.PaymentMethod': EmployeePaymentMethod, 'Employee.Profile': EmployeeProfile, 'Employee.SplitPaycheck': EmployeeSplitPaycheck, 'Employee.StateTaxes': EmployeeStateTaxes, 'Employee.Taxes': EmployeeTaxes, 'InformationRequests.InformationRequestForm': InformationRequestsInformationRequestForm, 'InformationRequests.InformationRequestList': InformationRequestsInformationRequestList, 'Payroll.Common': PayrollCommon, 'Payroll.ConfirmWireDetailsBanner': PayrollConfirmWireDetailsBanner, 'Payroll.ConfirmWireDetailsForm': PayrollConfirmWireDetailsForm, 'Payroll.PayrollBlocker': PayrollPayrollBlocker, 'Payroll.PayrollConfiguration': PayrollPayrollConfiguration, 'Payroll.PayrollEditEmployee': PayrollPayrollEditEmployee, 'Payroll.PayrollFlow': PayrollPayrollFlow, 'Payroll.PayrollHistory': PayrollPayrollHistory, 'Payroll.PayrollLanding': PayrollPayrollLanding, 'Payroll.PayrollList': PayrollPayrollList, 'Payroll.PayrollOverview': PayrollPayrollOverview, 'Payroll.PayrollReceipts': PayrollPayrollReceipts, 'Payroll.RecoveryCasesList': PayrollRecoveryCasesList, 'Payroll.RecoveryCasesResubmit': PayrollRecoveryCasesResubmit, 'Payroll.WireInstructions': PayrollWireInstructions, 'common': common, }
|
|
1973
2175
|
};
|
|
1974
2176
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gusto/embedded-react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.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"
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"build-storybook": "storybook build"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@commitlint/cli": "^20.
|
|
69
|
-
"@commitlint/config-conventional": "^20.
|
|
68
|
+
"@commitlint/cli": "^20.4.1",
|
|
69
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
70
70
|
"@eslint/js": "^9.39.2",
|
|
71
|
-
"@playwright/test": "^1.58.
|
|
72
|
-
"@storybook/addon-a11y": "^10.2.
|
|
73
|
-
"@storybook/addon-docs": "^10.2.
|
|
74
|
-
"@storybook/addon-onboarding": "^10.2.
|
|
75
|
-
"@storybook/react-vite": "^10.2.
|
|
71
|
+
"@playwright/test": "^1.58.1",
|
|
72
|
+
"@storybook/addon-a11y": "^10.2.7",
|
|
73
|
+
"@storybook/addon-docs": "^10.2.7",
|
|
74
|
+
"@storybook/addon-onboarding": "^10.2.7",
|
|
75
|
+
"@storybook/react-vite": "^10.2.7",
|
|
76
76
|
"@storybook/test-runner": "^0.24.2",
|
|
77
77
|
"@testing-library/jest-dom": "^6.9.1",
|
|
78
78
|
"@testing-library/react": "^16.3.2",
|
|
@@ -81,26 +81,26 @@
|
|
|
81
81
|
"@types/jest-axe": "^3.5.9",
|
|
82
82
|
"@types/js-yaml": "^4.0.9",
|
|
83
83
|
"@types/pngjs": "^6.0.5",
|
|
84
|
-
"@types/react": "^19.2.
|
|
84
|
+
"@types/react": "^19.2.13",
|
|
85
85
|
"@vitejs/plugin-react-swc": "^3.9.0",
|
|
86
86
|
"@vitest/coverage-v8": "^3.2.4",
|
|
87
87
|
"axe-core": "^4.11.1",
|
|
88
|
-
"dotenv": "^17.2.
|
|
88
|
+
"dotenv": "^17.2.4",
|
|
89
89
|
"eslint": "^9.39.2",
|
|
90
90
|
"eslint-plugin-import": "^2.31.0",
|
|
91
91
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
92
92
|
"eslint-plugin-react": "^7.37.5",
|
|
93
93
|
"eslint-plugin-react-hooks": "^6.1.1",
|
|
94
94
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
95
|
-
"eslint-plugin-storybook": "^10.2.
|
|
96
|
-
"globals": "^17.
|
|
95
|
+
"eslint-plugin-storybook": "^10.2.7",
|
|
96
|
+
"globals": "^17.3.0",
|
|
97
97
|
"husky": "^9.1.7",
|
|
98
98
|
"jest-axe": "^9.0.0",
|
|
99
99
|
"js-yaml": "^4.1.1",
|
|
100
100
|
"jsdom": "^26.1.0",
|
|
101
101
|
"jsdom-testing-mocks": "^1.16.0",
|
|
102
102
|
"lint-staged": "^16.2.7",
|
|
103
|
-
"msw": "^2.12.
|
|
103
|
+
"msw": "^2.12.8",
|
|
104
104
|
"npm-run-all": "^4.1.5",
|
|
105
105
|
"pixelmatch": "^7.1.0",
|
|
106
106
|
"pngjs": "^7.0.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"typescript": "^5.8.3"
|
|
129
129
|
},
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@gusto/embedded-api": "^0.11.
|
|
131
|
+
"@gusto/embedded-api": "^0.11.11",
|
|
132
132
|
"@hookform/error-message": "^2.0.1",
|
|
133
133
|
"@hookform/resolvers": "^5.2.2",
|
|
134
134
|
"@internationalized/date": "^3.10.0",
|
|
@@ -136,12 +136,12 @@
|
|
|
136
136
|
"classnames": "^2.5.1",
|
|
137
137
|
"deepmerge": "^4.3.1",
|
|
138
138
|
"dompurify": "^3.3.1",
|
|
139
|
-
"i18next": "^25.8.
|
|
139
|
+
"i18next": "^25.8.4",
|
|
140
140
|
"react-aria": "^3.44.0",
|
|
141
141
|
"react-aria-components": "1.13.0",
|
|
142
142
|
"react-error-boundary": "^6.1.0",
|
|
143
143
|
"react-hook-form": "^7.71.1",
|
|
144
|
-
"react-i18next": "^16.5.
|
|
144
|
+
"react-i18next": "^16.5.4",
|
|
145
145
|
"react-robot": "^1.2.0",
|
|
146
146
|
"robot3": "^1.2.0",
|
|
147
147
|
"zod": "^3.25.17"
|
package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as x } from "react-i18next";
|
|
3
|
-
import { useForm as Q, FormProvider as k } from "react-hook-form";
|
|
4
|
-
import { zodResolver as L } from "@hookform/resolvers/zod";
|
|
5
|
-
import { z as m } from "zod";
|
|
6
|
-
import { useIsMutating as B } from "@tanstack/react-query";
|
|
7
|
-
import { useInformationRequestsGetInformationRequestsSuspense as j } from "@gusto/embedded-api/react-query/informationRequestsGetInformationRequests";
|
|
8
|
-
import { useInformationRequestsSubmitMutation as z, mutationKeyInformationRequestsSubmit as H } from "@gusto/embedded-api/react-query/informationRequestsSubmit";
|
|
9
|
-
import { ResponseType as p } from "@gusto/embedded-api/models/components/informationrequest";
|
|
10
|
-
import { ResponseType as b } from "@gusto/embedded-api/models/operations/submitinformationrequest";
|
|
11
|
-
import s from "./InformationRequestForm.module.scss.js";
|
|
12
|
-
import { BaseComponent as K } from "../../../Base/Base.js";
|
|
13
|
-
import { useBase as V } from "../../../Base/useBase.js";
|
|
14
|
-
import { Flex as v } from "../../../Common/Flex/Flex.js";
|
|
15
|
-
import "classnames";
|
|
16
|
-
import { informationRequestEvents as U } from "../../../../shared/constants.js";
|
|
17
|
-
import { ActionsLayout as W } from "../../../Common/ActionsLayout/ActionsLayout.js";
|
|
18
|
-
import { useComponentContext as N } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
19
|
-
import "react";
|
|
20
|
-
import { FileInputField as G } from "../../../Common/Fields/FileInputField/FileInputField.js";
|
|
21
|
-
import { Form as Y } from "../../../Common/Form/Form.js";
|
|
22
|
-
import { useComponentDictionary as $, useI18n as E } from "../../../../i18n/I18n.js";
|
|
23
|
-
import { TextInputField as J } from "../../../Common/Fields/TextInputField/TextInputField.js";
|
|
24
|
-
const A = "gusto-sdk-information-request-form", X = ["image/jpeg", "image/png", "application/pdf"], Z = m.record(
|
|
25
|
-
m.string(),
|
|
26
|
-
m.union([m.string().min(1), m.instanceof(File)])
|
|
27
|
-
);
|
|
28
|
-
function ee(n) {
|
|
29
|
-
return /* @__PURE__ */ o(K, { ...n, children: /* @__PURE__ */ o(te, { ...n, children: n.children }) });
|
|
30
|
-
}
|
|
31
|
-
const oe = (n) => new Promise((r, i) => {
|
|
32
|
-
const t = new FileReader();
|
|
33
|
-
t.onload = () => {
|
|
34
|
-
r(t.result);
|
|
35
|
-
}, t.onerror = i, t.readAsDataURL(n);
|
|
36
|
-
});
|
|
37
|
-
function te({ companyId: n, requestId: r, dictionary: i }) {
|
|
38
|
-
$("Payroll.InformationRequestForm", i), E("Payroll.InformationRequestForm");
|
|
39
|
-
const { t } = x("Payroll.InformationRequestForm"), { Alert: u, Heading: T, Text: q } = N(), { onEvent: D, baseSubmitHandler: M } = V(), { data: P } = j({
|
|
40
|
-
companyUuid: n
|
|
41
|
-
}), F = P.informationRequestList?.find((e) => e.uuid === r), I = F?.requiredQuestions ?? [], S = F?.blockingPayroll ?? !1, { mutateAsync: C } = z(), R = {}, y = [];
|
|
42
|
-
I.forEach((e) => {
|
|
43
|
-
!e.questionUuid || !e.responseType || (e.responseType === p.Text ? (y.push(e.questionUuid), R[e.questionUuid] = "") : e.responseType === p.Document && (y.push(e.questionUuid), R[e.questionUuid] = void 0));
|
|
44
|
-
});
|
|
45
|
-
const g = Q({
|
|
46
|
-
resolver: L(Z),
|
|
47
|
-
defaultValues: R
|
|
48
|
-
}), w = async (e) => {
|
|
49
|
-
await M(e, async () => {
|
|
50
|
-
const d = (await Promise.all(
|
|
51
|
-
y.map(async (a) => {
|
|
52
|
-
const l = e[a];
|
|
53
|
-
if (typeof l == "string")
|
|
54
|
-
return {
|
|
55
|
-
questionUuid: a,
|
|
56
|
-
responseType: b.Text,
|
|
57
|
-
textResponse: l
|
|
58
|
-
};
|
|
59
|
-
if (l instanceof File) {
|
|
60
|
-
const O = await oe(l);
|
|
61
|
-
return {
|
|
62
|
-
questionUuid: a,
|
|
63
|
-
responseType: b.Document,
|
|
64
|
-
fileResponse: O,
|
|
65
|
-
fileName: l.name
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
return null;
|
|
69
|
-
})
|
|
70
|
-
)).filter((a) => a !== null), h = await C({
|
|
71
|
-
request: {
|
|
72
|
-
informationRequestUuid: r,
|
|
73
|
-
requestBody: {
|
|
74
|
-
requiredQuestions: d
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
D(U.INFORMATION_REQUEST_FORM_DONE, h.informationRequest);
|
|
79
|
-
});
|
|
80
|
-
}, _ = (e) => {
|
|
81
|
-
if (!e.questionUuid || !e.responseType) return null;
|
|
82
|
-
const c = e.questionUuid, d = e.responseType === p.Document, h = e.responseType === p.Text;
|
|
83
|
-
return /* @__PURE__ */ f("div", { className: s.questionCard, children: [
|
|
84
|
-
/* @__PURE__ */ f("div", { className: s.questionDescription, children: [
|
|
85
|
-
/* @__PURE__ */ o(q, { weight: "medium", children: t(d ? "questionTypes.document" : "questionTypes.answer") }),
|
|
86
|
-
/* @__PURE__ */ o(q, { children: e.questionText })
|
|
87
|
-
] }),
|
|
88
|
-
/* @__PURE__ */ o("hr", { className: s.divider }),
|
|
89
|
-
h && /* @__PURE__ */ o("div", { className: s.textInputWrapper, children: /* @__PURE__ */ o(
|
|
90
|
-
J,
|
|
91
|
-
{
|
|
92
|
-
name: c,
|
|
93
|
-
label: t("fields.textAnswer.label"),
|
|
94
|
-
placeholder: t("fields.textAnswer.placeholder"),
|
|
95
|
-
isRequired: !0,
|
|
96
|
-
errorMessage: t("validation.required")
|
|
97
|
-
}
|
|
98
|
-
) }),
|
|
99
|
-
d && /* @__PURE__ */ o("div", { className: s.fileInputWrapper, children: /* @__PURE__ */ o(
|
|
100
|
-
G,
|
|
101
|
-
{
|
|
102
|
-
name: c,
|
|
103
|
-
label: t("fields.fileUpload.label"),
|
|
104
|
-
accept: X,
|
|
105
|
-
isRequired: !0,
|
|
106
|
-
errorMessage: t("validation.required")
|
|
107
|
-
}
|
|
108
|
-
) })
|
|
109
|
-
] }, c);
|
|
110
|
-
};
|
|
111
|
-
return /* @__PURE__ */ o("div", { className: s.root, children: /* @__PURE__ */ f(v, { flexDirection: "column", gap: 16, children: [
|
|
112
|
-
/* @__PURE__ */ o(T, { as: "h2", children: t("title") }),
|
|
113
|
-
S && /* @__PURE__ */ o(u, { status: "error", label: t("blockingAlert.title"), disableScrollIntoView: !0, children: t("blockingAlert.description") }),
|
|
114
|
-
/* @__PURE__ */ o(k, { ...g, children: /* @__PURE__ */ o(Y, { id: A, onSubmit: g.handleSubmit(w), children: /* @__PURE__ */ o(v, { flexDirection: "column", gap: 16, children: I.map(_) }) }) })
|
|
115
|
-
] }) });
|
|
116
|
-
}
|
|
117
|
-
const ne = ({ onEvent: n }) => {
|
|
118
|
-
E("Payroll.InformationRequestForm");
|
|
119
|
-
const { t: r } = x("Payroll.InformationRequestForm"), { Button: i } = N(), u = B({
|
|
120
|
-
mutationKey: H()
|
|
121
|
-
}) > 0;
|
|
122
|
-
return /* @__PURE__ */ f(W, { children: [
|
|
123
|
-
/* @__PURE__ */ o(i, { variant: "secondary", onClick: () => {
|
|
124
|
-
n(U.INFORMATION_REQUEST_FORM_CANCEL);
|
|
125
|
-
}, isDisabled: u, children: r("cta.cancel") }),
|
|
126
|
-
/* @__PURE__ */ o(
|
|
127
|
-
i,
|
|
128
|
-
{
|
|
129
|
-
variant: "primary",
|
|
130
|
-
type: "submit",
|
|
131
|
-
form: A,
|
|
132
|
-
isLoading: u,
|
|
133
|
-
children: r("cta.submit")
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
] });
|
|
137
|
-
};
|
|
138
|
-
ee.Footer = ne;
|
|
139
|
-
export {
|
|
140
|
-
ee as InformationRequestForm
|
|
141
|
-
};
|
|
142
|
-
//# sourceMappingURL=InformationRequestForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InformationRequestForm.js","sources":["../../../../../src/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport { useIsMutating } from '@tanstack/react-query'\nimport { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api/react-query/informationRequestsGetInformationRequests'\nimport {\n useInformationRequestsSubmitMutation,\n mutationKeyInformationRequestsSubmit,\n} from '@gusto/embedded-api/react-query/informationRequestsSubmit'\nimport type { RequiredQuestions } from '@gusto/embedded-api/models/components/informationrequest'\nimport { ResponseType } from '@gusto/embedded-api/models/components/informationrequest'\nimport { ResponseType as SubmitResponseType } from '@gusto/embedded-api/models/operations/submitinformationrequest'\nimport styles from './InformationRequestForm.module.scss'\nimport { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { ActionsLayout, Flex, TextInputField } from '@/components/Common'\nimport { FileInputField } from '@/components/Common/Fields/FileInputField'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { informationRequestEvents, type EventType } from '@/shared/constants'\n\nconst INFORMATION_REQUEST_FORM_ID = 'gusto-sdk-information-request-form'\nconst ACCEPTED_FILE_TYPES = ['image/jpeg', 'image/png', 'application/pdf']\n\nconst InformationRequestFormSchema = z.record(\n z.string(),\n z.union([z.string().min(1), z.instanceof(File)]),\n)\n\ntype InformationRequestFormValues = z.infer<typeof InformationRequestFormSchema>\n\ninterface InformationRequestFormProps extends BaseComponentInterface<'Payroll.InformationRequestForm'> {\n companyId: string\n requestId: string\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport function InformationRequestForm(props: InformationRequestFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nconst convertFileToDataUrl = (file: File) => {\n return new Promise<string>((resolve, reject) => {\n const reader = new FileReader()\n reader.onload = () => {\n resolve(reader.result as string)\n }\n reader.onerror = reject\n reader.readAsDataURL(file)\n })\n}\n\nfunction Root({ companyId, requestId, dictionary }: InformationRequestFormProps) {\n useComponentDictionary('Payroll.InformationRequestForm', dictionary)\n useI18n('Payroll.InformationRequestForm')\n const { t } = useTranslation('Payroll.InformationRequestForm')\n const { Alert, Heading, Text } = useComponentContext()\n const { onEvent, baseSubmitHandler } = useBase()\n\n const { data } = useInformationRequestsGetInformationRequestsSuspense({\n companyUuid: companyId,\n })\n\n const informationRequest = data.informationRequestList?.find(req => req.uuid === requestId)\n const requiredQuestions = informationRequest?.requiredQuestions ?? []\n const isBlockingPayroll = informationRequest?.blockingPayroll ?? false\n\n const { mutateAsync: submitInformationRequest } = useInformationRequestsSubmitMutation()\n\n const defaultValues: Record<string, string | File | undefined> = {}\n const questionUuids: string[] = []\n\n requiredQuestions.forEach(question => {\n if (!question.questionUuid || !question.responseType) return\n\n if (question.responseType === ResponseType.Text) {\n questionUuids.push(question.questionUuid)\n defaultValues[question.questionUuid] = ''\n } else if (question.responseType === ResponseType.Document) {\n questionUuids.push(question.questionUuid)\n defaultValues[question.questionUuid] = undefined\n }\n })\n\n const formMethods = useForm<InformationRequestFormValues>({\n resolver: zodResolver(InformationRequestFormSchema),\n defaultValues,\n })\n\n const onSubmit = async (formData: InformationRequestFormValues) => {\n await baseSubmitHandler(formData, async () => {\n const questionResponses = await Promise.all(\n questionUuids.map(async uuid => {\n const value = formData[uuid]\n\n if (typeof value === 'string') {\n return {\n questionUuid: uuid,\n responseType: SubmitResponseType.Text,\n textResponse: value,\n }\n }\n\n if (value instanceof File) {\n const fileResponse = await convertFileToDataUrl(value)\n return {\n questionUuid: uuid,\n responseType: SubmitResponseType.Document,\n fileResponse,\n fileName: value.name,\n }\n }\n\n return null\n }),\n )\n\n const validResponses = questionResponses.filter(response => response !== null)\n\n const response = await submitInformationRequest({\n request: {\n informationRequestUuid: requestId,\n requestBody: {\n requiredQuestions: validResponses,\n },\n },\n })\n\n onEvent(informationRequestEvents.INFORMATION_REQUEST_FORM_DONE, response.informationRequest)\n })\n }\n\n const renderQuestion = (question: RequiredQuestions) => {\n if (!question.questionUuid || !question.responseType) return null\n\n const fieldName = question.questionUuid\n const isDocumentType = question.responseType === ResponseType.Document\n const isTextType = question.responseType === ResponseType.Text\n\n return (\n <div key={fieldName} className={styles.questionCard}>\n <div className={styles.questionDescription}>\n <Text weight=\"medium\">\n {isDocumentType ? t('questionTypes.document') : t('questionTypes.answer')}\n </Text>\n <Text>{question.questionText}</Text>\n </div>\n\n <hr className={styles.divider} />\n\n {isTextType && (\n <div className={styles.textInputWrapper}>\n <TextInputField\n name={fieldName}\n label={t('fields.textAnswer.label')}\n placeholder={t('fields.textAnswer.placeholder')}\n isRequired\n errorMessage={t('validation.required')}\n />\n </div>\n )}\n\n {isDocumentType && (\n <div className={styles.fileInputWrapper}>\n <FileInputField\n name={fieldName}\n label={t('fields.fileUpload.label')}\n accept={ACCEPTED_FILE_TYPES}\n isRequired\n errorMessage={t('validation.required')}\n />\n </div>\n )}\n </div>\n )\n }\n\n return (\n <div className={styles.root}>\n <Flex flexDirection=\"column\" gap={16}>\n <Heading as=\"h2\">{t('title')}</Heading>\n\n {isBlockingPayroll && (\n <Alert status=\"error\" label={t('blockingAlert.title')} disableScrollIntoView>\n {t('blockingAlert.description')}\n </Alert>\n )}\n\n <FormProvider {...formMethods}>\n <Form id={INFORMATION_REQUEST_FORM_ID} onSubmit={formMethods.handleSubmit(onSubmit)}>\n <Flex flexDirection=\"column\" gap={16}>\n {requiredQuestions.map(renderQuestion)}\n </Flex>\n </Form>\n </FormProvider>\n </Flex>\n </div>\n )\n}\n\nconst Footer = ({ onEvent }: { onEvent: OnEventType<EventType, unknown> }) => {\n useI18n('Payroll.InformationRequestForm')\n const { t } = useTranslation('Payroll.InformationRequestForm')\n const { Button } = useComponentContext()\n const isMutating = useIsMutating({\n mutationKey: mutationKeyInformationRequestsSubmit(),\n })\n const isPending = isMutating > 0\n\n const handleCancel = () => {\n onEvent(informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL)\n }\n\n return (\n <ActionsLayout>\n <Button variant=\"secondary\" onClick={handleCancel} isDisabled={isPending}>\n {t('cta.cancel')}\n </Button>\n <Button\n variant=\"primary\"\n type=\"submit\"\n form={INFORMATION_REQUEST_FORM_ID}\n isLoading={isPending}\n >\n {t('cta.submit')}\n </Button>\n </ActionsLayout>\n )\n}\n\nInformationRequestForm.Footer = Footer\n"],"names":["INFORMATION_REQUEST_FORM_ID","ACCEPTED_FILE_TYPES","InformationRequestFormSchema","z","InformationRequestForm","props","jsx","BaseComponent","Root","convertFileToDataUrl","file","resolve","reject","reader","companyId","requestId","dictionary","useComponentDictionary","useI18n","useTranslation","Alert","Heading","Text","useComponentContext","onEvent","baseSubmitHandler","useBase","data","useInformationRequestsGetInformationRequestsSuspense","informationRequest","req","requiredQuestions","isBlockingPayroll","submitInformationRequest","useInformationRequestsSubmitMutation","defaultValues","questionUuids","question","ResponseType","formMethods","useForm","zodResolver","onSubmit","formData","validResponses","uuid","value","SubmitResponseType","fileResponse","response","informationRequestEvents","renderQuestion","fieldName","isDocumentType","isTextType","jsxs","styles","TextInputField","FileInputField","Flex","FormProvider","Form","Footer","t","Button","isPending","useIsMutating","mutationKeyInformationRequestsSubmit","ActionsLayout"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,IAA8B,sCAC9BC,IAAsB,CAAC,cAAc,aAAa,iBAAiB,GAEnEC,IAA+BC,EAAE;AAAA,EACrCA,EAAE,OAAA;AAAA,EACFA,EAAE,MAAM,CAACA,EAAE,OAAA,EAAS,IAAI,CAAC,GAAGA,EAAE,WAAW,IAAI,CAAC,CAAC;AACjD;AAUO,SAASC,GAAuBC,GAAoC;AACzE,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,MAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,MAAMI,KAAuB,CAACC,MACrB,IAAI,QAAgB,CAACC,GAASC,MAAW;AAC9C,QAAMC,IAAS,IAAI,WAAA;AACnB,EAAAA,EAAO,SAAS,MAAM;AACpB,IAAAF,EAAQE,EAAO,MAAgB;AAAA,EACjC,GACAA,EAAO,UAAUD,GACjBC,EAAO,cAAcH,CAAI;AAC3B,CAAC;AAGH,SAASF,GAAK,EAAE,WAAAM,GAAW,WAAAC,GAAW,YAAAC,KAA2C;AAC/E,EAAAC,EAAuB,kCAAkCD,CAAU,GACnEE,EAAQ,gCAAgC;AACxC,QAAM,EAAE,EAAA,IAAMC,EAAe,gCAAgC,GACvD,EAAE,OAAAC,GAAO,SAAAC,GAAS,MAAAC,EAAA,IAASC,EAAA,GAC3B,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GAEjC,EAAE,MAAAC,EAAA,IAASC,EAAqD;AAAA,IACpE,aAAad;AAAA,EAAA,CACd,GAEKe,IAAqBF,EAAK,wBAAwB,KAAK,CAAAG,MAAOA,EAAI,SAASf,CAAS,GACpFgB,IAAoBF,GAAoB,qBAAqB,CAAA,GAC7DG,IAAoBH,GAAoB,mBAAmB,IAE3D,EAAE,aAAaI,EAAA,IAA6BC,EAAA,GAE5CC,IAA2D,CAAA,GAC3DC,IAA0B,CAAA;AAEhC,EAAAL,EAAkB,QAAQ,CAAAM,MAAY;AACpC,IAAI,CAACA,EAAS,gBAAgB,CAACA,EAAS,iBAEpCA,EAAS,iBAAiBC,EAAa,QACzCF,EAAc,KAAKC,EAAS,YAAY,GACxCF,EAAcE,EAAS,YAAY,IAAI,MAC9BA,EAAS,iBAAiBC,EAAa,aAChDF,EAAc,KAAKC,EAAS,YAAY,GACxCF,EAAcE,EAAS,YAAY,IAAI;AAAA,EAE3C,CAAC;AAED,QAAME,IAAcC,EAAsC;AAAA,IACxD,UAAUC,EAAYvC,CAA4B;AAAA,IAClD,eAAAiC;AAAA,EAAA,CACD,GAEKO,IAAW,OAAOC,MAA2C;AACjE,UAAMlB,EAAkBkB,GAAU,YAAY;AA2B5C,YAAMC,KA1BoB,MAAM,QAAQ;AAAA,QACtCR,EAAc,IAAI,OAAMS,MAAQ;AAC9B,gBAAMC,IAAQH,EAASE,CAAI;AAE3B,cAAI,OAAOC,KAAU;AACnB,mBAAO;AAAA,cACL,cAAcD;AAAA,cACd,cAAcE,EAAmB;AAAA,cACjC,cAAcD;AAAA,YAAA;AAIlB,cAAIA,aAAiB,MAAM;AACzB,kBAAME,IAAe,MAAMvC,GAAqBqC,CAAK;AACrD,mBAAO;AAAA,cACL,cAAcD;AAAA,cACd,cAAcE,EAAmB;AAAA,cACjC,cAAAC;AAAA,cACA,UAAUF,EAAM;AAAA,YAAA;AAAA,UAEpB;AAEA,iBAAO;AAAA,QACT,CAAC;AAAA,MAAA,GAGsC,OAAO,CAAAG,MAAYA,MAAa,IAAI,GAEvEA,IAAW,MAAMhB,EAAyB;AAAA,QAC9C,SAAS;AAAA,UACP,wBAAwBlB;AAAA,UACxB,aAAa;AAAA,YACX,mBAAmB6B;AAAA,UAAA;AAAA,QACrB;AAAA,MACF,CACD;AAED,MAAApB,EAAQ0B,EAAyB,+BAA+BD,EAAS,kBAAkB;AAAA,IAC7F,CAAC;AAAA,EACH,GAEME,IAAiB,CAACd,MAAgC;AACtD,QAAI,CAACA,EAAS,gBAAgB,CAACA,EAAS,aAAc,QAAO;AAE7D,UAAMe,IAAYf,EAAS,cACrBgB,IAAiBhB,EAAS,iBAAiBC,EAAa,UACxDgB,IAAajB,EAAS,iBAAiBC,EAAa;AAE1D,WACE,gBAAAiB,EAAC,OAAA,EAAoB,WAAWC,EAAO,cACrC,UAAA;AAAA,MAAA,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,qBACrB,UAAA;AAAA,QAAA,gBAAAlD,EAACgB,GAAA,EAAK,QAAO,UACV,UAAiB,EAAjB+B,IAAmB,2BAA8B,sBAAN,EAA4B,CAC1E;AAAA,QACA,gBAAA/C,EAACgB,GAAA,EAAM,UAAAe,EAAS,aAAA,CAAa;AAAA,MAAA,GAC/B;AAAA,MAEA,gBAAA/B,EAAC,MAAA,EAAG,WAAWkD,EAAO,QAAA,CAAS;AAAA,MAE9BF,KACC,gBAAAhD,EAAC,OAAA,EAAI,WAAWkD,EAAO,kBACrB,UAAA,gBAAAlD;AAAA,QAACmD;AAAA,QAAA;AAAA,UACC,MAAML;AAAA,UACN,OAAO,EAAE,yBAAyB;AAAA,UAClC,aAAa,EAAE,+BAA+B;AAAA,UAC9C,YAAU;AAAA,UACV,cAAc,EAAE,qBAAqB;AAAA,QAAA;AAAA,MAAA,GAEzC;AAAA,MAGDC,KACC,gBAAA/C,EAAC,OAAA,EAAI,WAAWkD,EAAO,kBACrB,UAAA,gBAAAlD;AAAA,QAACoD;AAAA,QAAA;AAAA,UACC,MAAMN;AAAA,UACN,OAAO,EAAE,yBAAyB;AAAA,UAClC,QAAQnD;AAAA,UACR,YAAU;AAAA,UACV,cAAc,EAAE,qBAAqB;AAAA,QAAA;AAAA,MAAA,EACvC,CACF;AAAA,IAAA,EAAA,GA/BMmD,CAiCV;AAAA,EAEJ;AAEA,SACE,gBAAA9C,EAAC,OAAA,EAAI,WAAWkD,EAAO,MACrB,4BAACG,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAArD,EAACe,GAAA,EAAQ,IAAG,MAAM,UAAA,EAAE,OAAO,GAAE;AAAA,IAE5BW,KACC,gBAAA1B,EAACc,GAAA,EAAM,QAAO,SAAQ,OAAO,EAAE,qBAAqB,GAAG,uBAAqB,IACzE,UAAA,EAAE,2BAA2B,GAChC;AAAA,IAGF,gBAAAd,EAACsD,GAAA,EAAc,GAAGrB,GAChB,UAAA,gBAAAjC,EAACuD,KAAK,IAAI7D,GAA6B,UAAUuC,EAAY,aAAaG,CAAQ,GAChF,UAAA,gBAAApC,EAACqD,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,YAAkB,IAAIR,CAAc,EAAA,CACvC,EAAA,CACF,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;AAEA,MAAMW,KAAS,CAAC,EAAE,SAAAtC,QAA4D;AAC5E,EAAAN,EAAQ,gCAAgC;AACxC,QAAM,EAAE,GAAA6C,EAAA,IAAM5C,EAAe,gCAAgC,GACvD,EAAE,QAAA6C,EAAA,IAAWzC,EAAA,GAIb0C,IAHaC,EAAc;AAAA,IAC/B,aAAaC,EAAA;AAAA,EAAqC,CACnD,IAC8B;AAM/B,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAA9D,EAAC0D,GAAA,EAAO,SAAQ,aAAY,SANX,MAAM;AACzB,MAAAxC,EAAQ0B,EAAyB,+BAA+B;AAAA,IAClE,GAIuD,YAAYe,GAC5D,UAAAF,EAAE,YAAY,EAAA,CACjB;AAAA,IACA,gBAAAzD;AAAA,MAAC0D;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,MAAMhE;AAAA,QACN,WAAWiE;AAAA,QAEV,YAAE,YAAY;AAAA,MAAA;AAAA,IAAA;AAAA,EACjB,GACF;AAEJ;AAEA7D,GAAuB,SAAS0D;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const t = "_root_11yro_1", r = "_questionCard_11yro_5", o = "_questionDescription_11yro_15", e = "_textInputWrapper_11yro_22", n = "_fileInputWrapper_11yro_26", p = "_divider_11yro_31", i = {
|
|
2
|
-
root: t,
|
|
3
|
-
questionCard: r,
|
|
4
|
-
questionDescription: o,
|
|
5
|
-
textInputWrapper: e,
|
|
6
|
-
fileInputWrapper: n,
|
|
7
|
-
divider: p
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
i as default,
|
|
11
|
-
p as divider,
|
|
12
|
-
n as fileInputWrapper,
|
|
13
|
-
r as questionCard,
|
|
14
|
-
o as questionDescription,
|
|
15
|
-
t as root,
|
|
16
|
-
e as textInputWrapper
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=InformationRequestForm.module.scss.js.map
|