@gusto/embedded-react-sdk 0.55.7 → 0.56.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 +63 -0
- package/dist/components/Common/FadeIn/FadeIn.module.scss.js +4 -4
- package/dist/components/Common/FieldCaption/FieldCaption.js +22 -18
- package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
- package/dist/components/Common/Flex/Flex.js +17 -15
- package/dist/components/Common/Flex/Flex.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/Heading/Heading.module.scss.js +7 -7
- package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +43 -42
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -5
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -3
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -3
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +27 -27
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -8
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +8 -6
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -3
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -3
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +5 -3
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +45 -30
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js +12 -11
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleForm.js +72 -55
- package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +24 -20
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js +33 -29
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +131 -115
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +5 -3
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +31 -29
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +110 -109
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
- package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js +21 -19
- package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js +56 -55
- package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js.map +1 -1
- package/dist/components/Contractor/Dashboard/Dashboard.js +34 -33
- package/dist/components/Contractor/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +117 -115
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +77 -75
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +44 -43
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +40 -39
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +35 -29
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +21 -20
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +41 -40
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +21 -20
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +33 -32
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +80 -78
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +44 -43
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +113 -105
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Contractor/Submit/SubmitDone.js +11 -11
- package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js +20 -18
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +18 -15
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +33 -32
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js +21 -19
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
- package/dist/components/Employee/Documents/management/DocumentManager.js +34 -26
- package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +5 -3
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +30 -29
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +54 -53
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +29 -28
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js +16 -15
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +27 -25
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +121 -111
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js +22 -20
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +24 -23
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +52 -43
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +29 -26
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js +19 -17
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +79 -78
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +40 -39
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +31 -30
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +43 -41
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +20 -19
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js +19 -17
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +49 -48
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +28 -28
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +37 -36
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +36 -35
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +35 -28
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +23 -22
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +48 -45
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +85 -77
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +63 -59
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js +23 -21
- package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +26 -19
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +14 -12
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +184 -162
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +67 -65
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/useCalculationPoll.js +48 -34
- package/dist/components/Payroll/PayrollConfiguration/useCalculationPoll.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +43 -41
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +225 -223
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +78 -75
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js +27 -27
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js +19 -19
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +51 -48
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +58 -48
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +58 -57
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +83 -69
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +62 -60
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +119 -117
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +187 -171
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +120 -110
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/useSubmissionPoll.js +45 -34
- package/dist/components/Payroll/PayrollOverview/useSubmissionPoll.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +20 -14
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +62 -61
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +14 -14
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js +24 -17
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js +22 -22
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +88 -80
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/useGenerationPoll.js +52 -37
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/useGenerationPoll.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js +26 -26
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +32 -32
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +50 -48
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +34 -33
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +28 -24
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +255 -228
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js +8 -4
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +10 -8
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +5 -5
- package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +8 -7
- package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +51 -50
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +20 -18
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +51 -49
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +20 -20
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyList.js +50 -49
- package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +34 -33
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js +46 -45
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +152 -143
- package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +14 -13
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +44 -35
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +88 -71
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +164 -155
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +57 -55
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +25 -24
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +94 -92
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +156 -155
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +21 -19
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +28 -26
- package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +29 -28
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/apiVersionMismatchHook.js +15 -0
- package/dist/contexts/ApiProvider/apiVersionMismatchHook.js.map +1 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/ThemeProvider/ThemeProvider.js +32 -26
- package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/hooks/usePollingTask/usePollingTask.js +53 -41
- package/dist/hooks/usePollingTask/usePollingTask.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +22 -20
- package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +28 -24
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +8 -8
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +15 -15
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js +62 -58
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/src/components/Common/FieldCaption/FieldCaption.d.ts +2 -16
- package/dist/src/components/Common/FieldCaption/FieldCaptionTypes.d.ts +22 -0
- package/dist/src/components/Common/FieldCaption/index.d.ts +1 -0
- package/dist/src/components/Common/Flex/Flex.d.ts +3 -1
- package/dist/src/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
- package/dist/src/components/Common/UI/DatePicker/DatePickerTypes.d.ts +2 -1
- package/dist/src/components/Common/UI/Menu/MenuTypes.d.ts +1 -1
- package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.d.ts +1 -1
- package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes.d.ts +5 -0
- package/dist/src/components/Common/UI/Select/SelectTypes.d.ts +2 -1
- package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +10 -2
- package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +9 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +2 -2
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +21 -5
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +21 -3
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +3 -1
- package/dist/src/components/Contractor/ContractorList/onboarding/ContractorListView.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Submit/SubmitDone.d.ts +3 -1
- package/dist/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +3 -1
- package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +11 -2
- package/dist/src/components/Employee/EmployeeListFlow/employeeListStateMachine.test.d.ts +1 -0
- package/dist/src/components/Employee/HomeAddress/management/HomeAddressView.d.ts +3 -1
- package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +3 -1
- package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +3 -1
- package/dist/src/components/Employee/WorkAddress/management/WorkAddressView.d.ts +3 -1
- package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +8 -0
- package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollConfiguration/useCalculationPoll.d.ts +6 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +9 -9
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.d.ts +4 -4
- package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
- package/dist/src/components/Payroll/PayrollOverview/useSubmissionPoll.d.ts +10 -1
- package/dist/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +2 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +2 -0
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +3 -1
- package/dist/src/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts +1 -1
- package/dist/src/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +1 -1
- package/dist/src/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicyList/PolicyListPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyList/PolicyListTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +3 -0
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +1 -1
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +2 -0
- package/dist/src/contexts/ApiProvider/ApiProvider.d.ts +5 -3
- package/dist/src/contexts/ApiProvider/apiVersionMismatchHook.d.ts +3 -0
- package/dist/src/contexts/ApiProvider/apiVersionMismatchHook.test.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/useComponentContext.d.ts +4 -1
- package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +9 -1
- package/dist/src/contexts/ThemeProvider/ThemeProvider.d.ts +8 -3
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +4 -1
- package/dist/src/hooks/usePollingTask/usePollingTask.d.ts +55 -14
- package/dist/src/i18n/types.d.ts +42 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/models/external.d.ts +1 -0
- package/dist/style.css +1 -1
- package/docs/guides/endpoint-inventory.json +5 -0
- package/package.json +20 -19
package/dist/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { SetPaymentAmountsDictionary } from '../shared/SetPaymentAmounts';
|
|
|
5
5
|
import { UsePaymentAmountsEditorReturn } from '../shared/usePaymentAmountsEditor';
|
|
6
6
|
import { ApiPayrollBlocker } from '../../../Payroll/PayrollBlocker/payrollHelpers';
|
|
7
7
|
interface ContractorPaymentCreatePaymentPresentationProps {
|
|
8
|
+
/** CSS class name applied to the root element. */
|
|
9
|
+
className?: string;
|
|
8
10
|
contractors: Contractor[];
|
|
9
11
|
contractorPayments: (ContractorPayments & {
|
|
10
12
|
isTouched?: boolean;
|
|
@@ -28,5 +30,5 @@ interface ContractorPaymentCreatePaymentPresentationProps {
|
|
|
28
30
|
paymentSpeedDays: number;
|
|
29
31
|
}
|
|
30
32
|
/** @internal */
|
|
31
|
-
export declare const CreatePaymentPresentation: ({ contractors, paymentDate, contractorPayments, onPaymentDateChange, onSaveAndContinue, editModal, allowedPaymentMethods, paymentAmountsDictionary, totals, alerts, payrollBlockers, onViewBlockers, isLoading, paymentSpeedDays, }: ContractorPaymentCreatePaymentPresentationProps) => import("react").JSX.Element;
|
|
33
|
+
export declare const CreatePaymentPresentation: ({ className, contractors, paymentDate, contractorPayments, onPaymentDateChange, onSaveAndContinue, editModal, allowedPaymentMethods, paymentAmountsDictionary, totals, alerts, payrollBlockers, onViewBlockers, isLoading, paymentSpeedDays, }: ContractorPaymentCreatePaymentPresentationProps) => import("react").JSX.Element;
|
|
32
34
|
export {};
|
|
@@ -3,6 +3,8 @@ import { Contractor } from '@gusto/embedded-api/models/components/contractor';
|
|
|
3
3
|
import { CompanyBankAccount } from '@gusto/embedded-api/models/components/companybankaccount';
|
|
4
4
|
import { PaymentSpeed } from '@gusto/embedded-api/models/components/paymentconfigs';
|
|
5
5
|
interface PreviewPresentationProps {
|
|
6
|
+
/** CSS class name applied to the root element. */
|
|
7
|
+
className?: string;
|
|
6
8
|
contractorPaymentGroup: ContractorPaymentGroupPreview;
|
|
7
9
|
contractors: Contractor[];
|
|
8
10
|
onBackToEdit: () => void;
|
|
@@ -14,5 +16,5 @@ interface PreviewPresentationProps {
|
|
|
14
16
|
paymentSpeed?: PaymentSpeed;
|
|
15
17
|
}
|
|
16
18
|
/** @internal */
|
|
17
|
-
export declare const PreviewPresentation: ({ contractorPaymentGroup, contractors, onBackToEdit, onSubmit, isLoading, bankAccount, selectedUnblockOptions, onUnblockOptionChange, paymentSpeed, }: PreviewPresentationProps) => import("react").JSX.Element;
|
|
19
|
+
export declare const PreviewPresentation: ({ className, contractorPaymentGroup, contractors, onBackToEdit, onSubmit, isLoading, bankAccount, selectedUnblockOptions, onUnblockOptionChange, paymentSpeed, }: PreviewPresentationProps) => import("react").JSX.Element;
|
|
18
20
|
export {};
|
package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ContractorPaymentGroup } from '@gusto/embedded-api/models/components/contractorpaymentgroup';
|
|
2
2
|
import { Contractor } from '@gusto/embedded-api/models/components/contractor';
|
|
3
3
|
interface PaymentHistoryPresentationProps {
|
|
4
|
+
/** CSS class name applied to the root element. */
|
|
5
|
+
className?: string;
|
|
4
6
|
paymentGroup: ContractorPaymentGroup;
|
|
5
7
|
contractors: Contractor[];
|
|
6
8
|
onViewPayment: (paymentId: string) => void;
|
|
@@ -8,5 +10,5 @@ interface PaymentHistoryPresentationProps {
|
|
|
8
10
|
isCancelling: boolean;
|
|
9
11
|
}
|
|
10
12
|
/** @internal */
|
|
11
|
-
export declare const PaymentHistoryPresentation: ({ paymentGroup, contractors, onViewPayment, onCancelPayment, isCancelling, }: PaymentHistoryPresentationProps) => import("react").JSX.Element;
|
|
13
|
+
export declare const PaymentHistoryPresentation: ({ className, paymentGroup, contractors, onViewPayment, onCancelPayment, isCancelling, }: PaymentHistoryPresentationProps) => import("react").JSX.Element;
|
|
12
14
|
export {};
|
package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { ContractorPaymentForGroup } from '@gusto/embedded-api/models/components
|
|
|
2
2
|
import { Contractor } from '@gusto/embedded-api/models/components/contractor';
|
|
3
3
|
import { ContractorPaymentReceipt } from '@gusto/embedded-api/models/components/contractorpaymentreceipt';
|
|
4
4
|
interface PaymentStatementPresentationProps {
|
|
5
|
+
/** CSS class name applied to the root element. */
|
|
6
|
+
className?: string;
|
|
5
7
|
payment: ContractorPaymentForGroup;
|
|
6
8
|
contractor: Contractor;
|
|
7
9
|
paymentReceipt?: ContractorPaymentReceipt;
|
|
8
10
|
checkDate: string;
|
|
9
11
|
}
|
|
10
12
|
/** @internal */
|
|
11
|
-
export declare const PaymentStatementPresentation: ({ payment, contractor, checkDate, paymentReceipt, }: PaymentStatementPresentationProps) => import("react").JSX.Element;
|
|
13
|
+
export declare const PaymentStatementPresentation: ({ className, payment, contractor, checkDate, paymentReceipt, }: PaymentStatementPresentationProps) => import("react").JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -3,6 +3,8 @@ import { InternalAlert } from '../types';
|
|
|
3
3
|
import { EventType } from '../../../../shared/constants';
|
|
4
4
|
import { PaginationControlProps } from '../../../Common/PaginationControl/PaginationControlTypes';
|
|
5
5
|
interface ContractorPaymentPaymentsListPresentationProps {
|
|
6
|
+
/** CSS class name applied to the root element. */
|
|
7
|
+
className?: string;
|
|
6
8
|
numberOfMonths: number;
|
|
7
9
|
contractorPayments: ContractorPaymentGroupWithBlockers[];
|
|
8
10
|
onCreatePayment: () => void;
|
|
@@ -16,5 +18,5 @@ interface ContractorPaymentPaymentsListPresentationProps {
|
|
|
16
18
|
paginationProps?: PaginationControlProps;
|
|
17
19
|
}
|
|
18
20
|
/** @internal */
|
|
19
|
-
export declare const PaymentsListPresentation: ({ contractorPayments, numberOfMonths, onCreatePayment, onCreateHistoricalPayment, onDateRangeChange, onViewPayment, alerts, companyId, hasUnresolvedWireInRequests, onEvent, paginationProps, }: ContractorPaymentPaymentsListPresentationProps) => import("react").JSX.Element;
|
|
21
|
+
export declare const PaymentsListPresentation: ({ className, contractorPayments, numberOfMonths, onCreatePayment, onCreateHistoricalPayment, onDateRangeChange, onViewPayment, alerts, companyId, hasUnresolvedWireInRequests, onEvent, paginationProps, }: ContractorPaymentPaymentsListPresentationProps) => import("react").JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
interface SubmitDoneProps {
|
|
2
2
|
onDone: () => void;
|
|
3
|
+
/** CSS class name applied to the root element. */
|
|
4
|
+
className?: string;
|
|
3
5
|
}
|
|
4
6
|
/** @internal */
|
|
5
|
-
export declare const SubmitDone: ({ onDone }: SubmitDoneProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const SubmitDone: ({ onDone, className }: SubmitDoneProps) => import("react").JSX.Element;
|
|
6
8
|
export {};
|
|
@@ -38,4 +38,4 @@ export interface CompensationEditFormProps extends CommonComponentInterface<'Emp
|
|
|
38
38
|
* @public
|
|
39
39
|
* @group Block components
|
|
40
40
|
*/
|
|
41
|
-
export declare function CompensationEditForm({ employeeId, jobId, onEvent, dictionary, LoaderComponent, }: CompensationEditFormProps): import("react").JSX.Element;
|
|
41
|
+
export declare function CompensationEditForm({ employeeId, jobId, onEvent, dictionary, LoaderComponent, className, }: CompensationEditFormProps): import("react").JSX.Element;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { SubmitHandler } from 'react-hook-form';
|
|
2
2
|
import { EmploymentEligibilityInputs, EmploymentEligibilityPayload } from './EmploymentEligibilitySchema';
|
|
3
3
|
interface EmploymentEligibilityPresentationProps {
|
|
4
|
+
/** CSS class name applied to the root element. */
|
|
5
|
+
className?: string;
|
|
4
6
|
onSubmit: SubmitHandler<EmploymentEligibilityPayload>;
|
|
5
7
|
defaultValues?: Partial<EmploymentEligibilityInputs>;
|
|
6
8
|
hasDocumentNumber?: boolean | null;
|
|
7
9
|
isPending?: boolean;
|
|
8
10
|
}
|
|
9
11
|
/** @internal */
|
|
10
|
-
export declare const EmploymentEligibilityPresentation: ({ onSubmit, defaultValues, hasDocumentNumber, isPending, }: EmploymentEligibilityPresentationProps) => import("react").JSX.Element;
|
|
12
|
+
export declare const EmploymentEligibilityPresentation: ({ className, onSubmit, defaultValues, hasDocumentNumber, isPending, }: EmploymentEligibilityPresentationProps) => import("react").JSX.Element;
|
|
11
13
|
export {};
|
|
@@ -3,6 +3,8 @@ import { z } from 'zod';
|
|
|
3
3
|
export type EmployeeDocumentsFormValues = { includeI9: boolean; };
|
|
4
4
|
/** @internal */
|
|
5
5
|
export interface EmployeeDocumentsPresentationProps {
|
|
6
|
+
/** CSS class name applied to the root element. */
|
|
7
|
+
className?: string;
|
|
6
8
|
isEmployeeSelfOnboarding: boolean;
|
|
7
9
|
currentI9Status: boolean;
|
|
8
10
|
onSubmit: (formData: EmployeeDocumentsFormValues) => Promise<void>;
|
|
@@ -10,5 +12,5 @@ export interface EmployeeDocumentsPresentationProps {
|
|
|
10
12
|
isPending: boolean;
|
|
11
13
|
}
|
|
12
14
|
/** @internal */
|
|
13
|
-
export declare const EmployeeDocumentsPresentation: ({ isEmployeeSelfOnboarding, currentI9Status, onSubmit, onDone, isPending, }: EmployeeDocumentsPresentationProps) => import("react").JSX.Element;
|
|
15
|
+
export declare const EmployeeDocumentsPresentation: ({ className, isEmployeeSelfOnboarding, currentI9Status, onSubmit, onDone, isPending, }: EmployeeDocumentsPresentationProps) => import("react").JSX.Element;
|
|
14
16
|
export {};
|
package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ export interface ManagementEmployeeListViewProps extends Pick<Extract<UseEmploye
|
|
|
12
12
|
onDismiss: (employeeId: string) => void;
|
|
13
13
|
onDelete: (employeeId: string) => Promise<void>;
|
|
14
14
|
onAddEmployee: () => void;
|
|
15
|
+
/** CSS class name applied to the root element. */
|
|
16
|
+
className?: string;
|
|
15
17
|
}
|
|
16
18
|
/** @internal */
|
|
17
|
-
export declare function ManagementEmployeeListView({ selectedTab, onTabChange, employees, isFetching, status, onEdit, onDismiss, onDelete, onAddEmployee, pagination, }: ManagementEmployeeListViewProps): import("react").JSX.Element;
|
|
19
|
+
export declare function ManagementEmployeeListView({ selectedTab, onTabChange, employees, isFetching, status, onEdit, onDismiss, onDelete, onAddEmployee, pagination, className, }: ManagementEmployeeListViewProps): import("react").JSX.Element;
|
|
18
20
|
export {};
|
|
@@ -13,6 +13,8 @@ export interface EmployeeListViewProps extends Pick<Extract<UseEmployeeListResul
|
|
|
13
13
|
onAddEmployee: () => void;
|
|
14
14
|
onSkip: () => void;
|
|
15
15
|
showContinueButton: boolean;
|
|
16
|
+
/** CSS class name applied to the root element. */
|
|
17
|
+
className?: string;
|
|
16
18
|
}
|
|
17
19
|
/** @internal */
|
|
18
|
-
export declare function EmployeeListView({ employees, isFetching, pagination, status, onEdit, onDelete, onCancelSelfOnboarding, onReview, onAddEmployee, onSkip, showContinueButton, }: EmployeeListViewProps): import("react").JSX.Element;
|
|
20
|
+
export declare function EmployeeListView({ employees, isFetching, pagination, status, onEdit, onDelete, onCancelSelfOnboarding, onReview, onAddEmployee, onSkip, showContinueButton, className, }: EmployeeListViewProps): import("react").JSX.Element;
|
|
@@ -20,6 +20,8 @@ export interface EmployeeWithActions extends Employee {
|
|
|
20
20
|
allowedActions: EmployeeAction[];
|
|
21
21
|
/** The employee's primary job, if one is marked primary. */
|
|
22
22
|
primaryJob?: Job;
|
|
23
|
+
/** Effective date of a termination that hasn't gone into effect yet, if one is scheduled. */
|
|
24
|
+
pendingDismissalDate?: string;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Filter applied to {@link useEmployeeList} that scopes the result set and tailors the per-row action list.
|
|
@@ -73,8 +75,15 @@ export type UseEmployeeListResult = HookLoadingResult | UseEmployeeListReady;
|
|
|
73
75
|
*
|
|
74
76
|
* @remarks
|
|
75
77
|
* `employeeType` maps to a server-side filter and changes which actions appear on each row:
|
|
76
|
-
* `'active'` adds `dismiss
|
|
77
|
-
* to list every employee.
|
|
78
|
+
* `'active'` adds `dismiss` unless the employee already has a termination scheduled for a future
|
|
79
|
+
* date, `'terminated'` adds `rehire`, `'onboarding'` adds none. Omit it to list every employee.
|
|
80
|
+
*
|
|
81
|
+
* An `'active'` row with a pending termination carries its effective date on
|
|
82
|
+
* `pendingDismissalDate` instead of the `dismiss` action.
|
|
83
|
+
*
|
|
84
|
+
* `'onboarding'` includes employees who haven't completed onboarding as well as employees who
|
|
85
|
+
* have completed onboarding but whose primary job's hire date hasn't arrived yet, so `onboarded`
|
|
86
|
+
* may be `true` for rows in this filter.
|
|
78
87
|
*
|
|
79
88
|
* Page changes use placeholder data: the previous page stays rendered while the next one loads,
|
|
80
89
|
* and `status.isFetching` flips to `true` during the request.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,6 +16,8 @@ export interface HomeAddressViewProps {
|
|
|
16
16
|
onConfirmDelete: (homeAddressUuid: string) => Promise<boolean>;
|
|
17
17
|
onBack: () => void;
|
|
18
18
|
isDeletePending?: boolean;
|
|
19
|
+
/** CSS class name applied to the root element. */
|
|
20
|
+
className?: string;
|
|
19
21
|
}
|
|
20
22
|
/** @internal */
|
|
21
|
-
export declare function HomeAddressView({ editHomeAddressForm, createHomeAddressForm, employeeHomeAddresses, employeeDisplayName, editingHomeAddressUuid, onEditAddressTargetChange, onSaved, onConfirmDelete, onBack, isDeletePending, }: HomeAddressViewProps): import("react").JSX.Element;
|
|
23
|
+
export declare function HomeAddressView({ editHomeAddressForm, createHomeAddressForm, employeeHomeAddresses, employeeDisplayName, editingHomeAddressUuid, onEditAddressTargetChange, onSaved, onConfirmDelete, onBack, isDeletePending, className, }: HomeAddressViewProps): import("react").JSX.Element;
|
|
@@ -6,7 +6,9 @@ interface TerminateEmployeePresentationProps {
|
|
|
6
6
|
onSubmit: (data: TerminateEmployeeFormData) => void;
|
|
7
7
|
onCancel: () => void;
|
|
8
8
|
isLoading: boolean;
|
|
9
|
+
/** CSS class name applied to the root element. */
|
|
10
|
+
className?: string;
|
|
9
11
|
}
|
|
10
12
|
/** @internal */
|
|
11
|
-
export declare function TerminateEmployeePresentation({ employeeName, existingTermination, onSubmit, onCancel, isLoading, }: TerminateEmployeePresentationProps): import("react").JSX.Element;
|
|
13
|
+
export declare function TerminateEmployeePresentation({ employeeName, existingTermination, onSubmit, onCancel, isLoading, className, }: TerminateEmployeePresentationProps): import("react").JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -15,7 +15,9 @@ interface TerminationSummaryPresentationProps {
|
|
|
15
15
|
onDialogClose: () => void;
|
|
16
16
|
onDialogConfirm: () => void;
|
|
17
17
|
isCancelling: boolean;
|
|
18
|
+
/** CSS class name applied to the root element. */
|
|
19
|
+
className?: string;
|
|
18
20
|
}
|
|
19
21
|
/** @internal */
|
|
20
|
-
export declare function TerminationSummaryPresentation({ employeeName, effectiveDate, canCancel, canEdit, showRunPayroll, showRunOffCyclePayroll, showSuccessAlert, onCancelClick, onEditDismissal, onRunDismissalPayroll, onRunOffCyclePayroll, isLoading, isCancelDialogOpen, onDialogClose, onDialogConfirm, isCancelling, }: TerminationSummaryPresentationProps): import("react").JSX.Element;
|
|
22
|
+
export declare function TerminationSummaryPresentation({ employeeName, effectiveDate, canCancel, canEdit, showRunPayroll, showRunOffCyclePayroll, showSuccessAlert, onCancelClick, onEditDismissal, onRunDismissalPayroll, onRunOffCyclePayroll, isLoading, isCancelDialogOpen, onDialogClose, onDialogConfirm, isCancelling, className, }: TerminationSummaryPresentationProps): import("react").JSX.Element;
|
|
21
23
|
export {};
|
|
@@ -14,6 +14,8 @@ export interface WorkAddressViewProps {
|
|
|
14
14
|
onWorkAddressSaved: (result: HookSubmitResult<EmployeeWorkAddress>) => void;
|
|
15
15
|
onBack: () => void;
|
|
16
16
|
isDeletePending?: boolean;
|
|
17
|
+
/** CSS class name applied to the root element. */
|
|
18
|
+
className?: string;
|
|
17
19
|
}
|
|
18
20
|
/** @internal */
|
|
19
|
-
export declare function WorkAddressView({ editWorkAddressForm, changeWorkAddressForm, workAddresses, editTargetUuid, onEditTargetUuidChange, employeeDisplayName, onConfirmDelete, onWorkAddressSaved, onBack, isDeletePending, }: WorkAddressViewProps): import("react").JSX.Element;
|
|
21
|
+
export declare function WorkAddressView({ editWorkAddressForm, changeWorkAddressForm, workAddresses, editTargetUuid, onEditTargetUuidChange, employeeDisplayName, onConfirmDelete, onWorkAddressSaved, onBack, isDeletePending, className, }: WorkAddressViewProps): import("react").JSX.Element;
|
|
@@ -11,6 +11,8 @@ export interface DismissalPayPeriodSelectionPresentationProps {
|
|
|
11
11
|
onSubmit: () => void;
|
|
12
12
|
/** Whether the submit action is in flight. */
|
|
13
13
|
isPending: boolean;
|
|
14
|
+
/** CSS class name applied to the root element. */
|
|
15
|
+
className?: string;
|
|
14
16
|
}
|
|
15
17
|
/** @internal */
|
|
16
|
-
export declare function DismissalPayPeriodSelectionPresentation({ payPeriodOptions, selectedPeriodKey, onSelectPeriod, onSubmit, isPending, }: DismissalPayPeriodSelectionPresentationProps): import("react").JSX.Element;
|
|
18
|
+
export declare function DismissalPayPeriodSelectionPresentation({ payPeriodOptions, selectedPeriodKey, onSelectPeriod, onSubmit, isPending, className, }: DismissalPayPeriodSelectionPresentationProps): import("react").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OffCycleCreationPresentationProps } from './OffCycleCreationTypes';
|
|
2
2
|
/** @internal */
|
|
3
|
-
export declare function OffCycleCreationPresentation({ employees, isPending, minCheckDate, minCheckOnlyDate, maxDate, minPayPeriodDate, taxWithholdingConfig, isTaxWithholdingModalOpen, onTaxWithholdingEditClick, onTaxWithholdingModalDone, onTaxWithholdingModalCancel, }: OffCycleCreationPresentationProps): import("react").JSX.Element;
|
|
3
|
+
export declare function OffCycleCreationPresentation({ employees, blockers, isPending, minCheckDate, minCheckOnlyDate, maxDate, minPayPeriodDate, taxWithholdingConfig, isTaxWithholdingModalOpen, onTaxWithholdingEditClick, onTaxWithholdingModalDone, onTaxWithholdingModalCancel, className, }: OffCycleCreationPresentationProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OffCycleReason } from '../OffCycleReasonSelection';
|
|
2
2
|
import { OffCyclePayPeriodDateFormData, OffCyclePayrollDateType } from '../OffCyclePayPeriodDateForm';
|
|
3
3
|
import { OffCycleTaxWithholdingConfig } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes';
|
|
4
|
+
import { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers';
|
|
4
5
|
import { MultiSelectComboBoxOption } from '../../Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes';
|
|
5
6
|
import { BaseComponentInterface } from '../../Base/Base';
|
|
6
7
|
/**
|
|
@@ -33,6 +34,11 @@ export interface OffCycleCreationFormData extends OffCyclePayPeriodDateFormData
|
|
|
33
34
|
export interface OffCycleCreationPresentationProps {
|
|
34
35
|
/** Selectable employees rendered in the multi-select. */
|
|
35
36
|
employees: MultiSelectComboBoxOption[];
|
|
37
|
+
/**
|
|
38
|
+
* Run-payroll blockers for the company. When non-empty, a blocker alert is shown and the
|
|
39
|
+
* submit action is disabled so the off-cycle payroll cannot be created while a blocker is active.
|
|
40
|
+
*/
|
|
41
|
+
blockers: ApiPayrollBlocker[];
|
|
36
42
|
/** Whether the off-cycle create mutation is in flight. */
|
|
37
43
|
isPending?: boolean;
|
|
38
44
|
/** Earliest selectable payment date for direct deposit (today plus the ACH lead time). */
|
|
@@ -53,4 +59,6 @@ export interface OffCycleCreationPresentationProps {
|
|
|
53
59
|
onTaxWithholdingModalDone: (config: OffCycleTaxWithholdingConfig) => void;
|
|
54
60
|
/** Fires when the user dismisses the tax withholding modal without saving. */
|
|
55
61
|
onTaxWithholdingModalCancel: () => void;
|
|
62
|
+
/** CSS class name applied to the root element. */
|
|
63
|
+
className?: string;
|
|
56
64
|
}
|
package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { OffCycleReason } from './types';
|
|
|
2
2
|
interface OffCycleReasonSelectionPresentationProps {
|
|
3
3
|
name: string;
|
|
4
4
|
onChange?: (value: OffCycleReason) => void;
|
|
5
|
+
/** CSS class name applied to the root element. */
|
|
6
|
+
className?: string;
|
|
5
7
|
}
|
|
6
8
|
/** @internal */
|
|
7
|
-
export declare function OffCycleReasonSelectionPresentation({ name, onChange, }: OffCycleReasonSelectionPresentationProps): import("react").JSX.Element;
|
|
9
|
+
export declare function OffCycleReasonSelectionPresentation({ name, onChange, className, }: OffCycleReasonSelectionPresentationProps): import("react").JSX.Element;
|
|
8
10
|
export {};
|
package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { PayrollCategory } from '../payrollTypes';
|
|
|
7
7
|
import { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers';
|
|
8
8
|
import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
|
|
9
9
|
interface PayrollConfigurationPresentationProps {
|
|
10
|
+
/** CSS class name applied to the root element. */
|
|
11
|
+
className?: string;
|
|
10
12
|
employeeCompensations: PayrollEmployeeCompensationsType[];
|
|
11
13
|
employeeDetails: Employee[];
|
|
12
14
|
payPeriod?: PayrollPayPeriodType;
|
|
@@ -32,5 +34,5 @@ interface PayrollConfigurationPresentationProps {
|
|
|
32
34
|
onGrossUpSelect?: (employeeUuid: string) => void;
|
|
33
35
|
}
|
|
34
36
|
/** @internal */
|
|
35
|
-
export declare const PayrollConfigurationPresentation: ({ employeeCompensations, employeeDetails, payPeriod, paySchedule, onEdit, onToggleExclude, onCalculatePayroll, onViewBlockers, payrollCategory, alerts, payrollAlert, isPending, isCalculating, payrollBlockers, pagination, withReimbursements, isCalculateDisabled, grossUpEnabled, onGrossUpSelect, }: PayrollConfigurationPresentationProps) => import("react").JSX.Element;
|
|
37
|
+
export declare const PayrollConfigurationPresentation: ({ className, employeeCompensations, employeeDetails, payPeriod, paySchedule, onEdit, onToggleExclude, onCalculatePayroll, onViewBlockers, payrollCategory, alerts, payrollAlert, isPending, isCalculating, payrollBlockers, pagination, withReimbursements, isCalculateDisabled, grossUpEnabled, onGrossUpSelect, }: PayrollConfigurationPresentationProps) => import("react").JSX.Element;
|
|
36
38
|
export {};
|
|
@@ -35,6 +35,11 @@ export interface UseCalculationPollOptions {
|
|
|
35
35
|
refetch: () => Promise<QueryObserverResult<PayrollsGetQueryData, PayrollsGetQueryError>>;
|
|
36
36
|
onCalculated: (payroll: PayrollShow | undefined) => void;
|
|
37
37
|
onProcessingFailed: (payroll: PayrollShow | undefined) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Called when the poll gives up on a non-retryable read error, without ever confirming a
|
|
40
|
+
* calculated/failed outcome. The raw error is reported to observability by this hook already.
|
|
41
|
+
*/
|
|
42
|
+
onError: () => void;
|
|
38
43
|
}
|
|
39
44
|
/** @internal */
|
|
40
45
|
export interface CalculationPoll {
|
|
@@ -46,5 +51,5 @@ export interface CalculationPoll {
|
|
|
46
51
|
*
|
|
47
52
|
* @internal
|
|
48
53
|
*/
|
|
49
|
-
export declare function useCalculationPoll({ refetch, onCalculated, onProcessingFailed, }: UseCalculationPollOptions): CalculationPoll;
|
|
54
|
+
export declare function useCalculationPoll({ refetch, onCalculated, onProcessingFailed, onError, }: UseCalculationPollOptions): CalculationPoll;
|
|
50
55
|
export {};
|
package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { PayrollCategory } from '../payrollTypes';
|
|
7
7
|
interface PayrollEditEmployeeProps {
|
|
8
|
+
/** CSS class name applied to the root element. */
|
|
9
|
+
className?: string;
|
|
8
10
|
onSave: (updatedCompensation: PayrollEmployeeCompensationsType) => void;
|
|
9
11
|
onCancel: () => void;
|
|
10
12
|
employee: Employee;
|
|
@@ -21,5 +23,5 @@ interface PayrollEditEmployeeProps {
|
|
|
21
23
|
/** @internal */
|
|
22
24
|
export type PayrollEditEmployeeFormValues = { hourlyCompensations: Record<string, Record<string, string | undefined>>; timeOffCompensations: Record<string, string | undefined>; finalPayoutCompensations: Record<string, string | undefined>; fixedCompensations: Record<string, string | undefined>; reimbursements: { description: string; amount: string; uuid?: string | null | undefined; recurring?: boolean | undefined; }[]; paymentMethod?: "Check" | "Historical" | "Direct Deposit" | undefined; };
|
|
23
25
|
/** @internal */
|
|
24
|
-
export declare const PayrollEditEmployeePresentation: ({ onSave, onCancel, employee, employeeCompensation, isPending, fixedCompensationTypes, payPeriodStartDate, paySchedule, payrollCategory, withReimbursements, hasDirectDepositSetup, }: PayrollEditEmployeeProps) => import("react").JSX.Element;
|
|
26
|
+
export declare const PayrollEditEmployeePresentation: ({ className, onSave, onCancel, employee, employeeCompensation, isPending, fixedCompensationTypes, payPeriodStartDate, paySchedule, payrollCategory, withReimbursements, hasDirectDepositSetup, }: PayrollEditEmployeeProps) => import("react").JSX.Element;
|
|
25
27
|
export {};
|
|
@@ -111,10 +111,10 @@ export interface TimeOffEntry {
|
|
|
111
111
|
remaining: number | null;
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
-
* One entry in the flat `
|
|
114
|
+
* One entry in the flat `overtimeExcludedEarnings` section.
|
|
115
115
|
*
|
|
116
116
|
* @remarks
|
|
117
|
-
* Intentionally opaque: `
|
|
117
|
+
* Intentionally opaque: `overtimeExcludedEarnings` collects earnings that are not overtime-affecting
|
|
118
118
|
* and whose input type the partner does not need to reason about. Render each
|
|
119
119
|
* entry's `Field` keyed by `key`; use `id` as a reach-in handle for labeling.
|
|
120
120
|
*
|
|
@@ -138,8 +138,8 @@ export interface OtherEntry {
|
|
|
138
138
|
* The value type is the signal — array is flat, object is split by workweek; use
|
|
139
139
|
* {@link isSplitByWorkweek} to discriminate. `title` is the job's display title
|
|
140
140
|
* (entity data, not copy) for rendering a per-job heading. Earnings are not
|
|
141
|
-
* job-scoped: they live in the employee-level `
|
|
142
|
-
* `
|
|
141
|
+
* job-scoped: they live in the employee-level `overtimeIncludedEarnings` and
|
|
142
|
+
* `overtimeExcludedEarnings` sections on {@link PayrollEditEmployeeFields}.
|
|
143
143
|
*
|
|
144
144
|
* @public
|
|
145
145
|
*/
|
|
@@ -217,8 +217,8 @@ export interface ReimbursementRow {
|
|
|
217
217
|
* @remarks
|
|
218
218
|
* Hours are grouped under `jobs`, one entry per job, so multi-job employees
|
|
219
219
|
* render correctly. All earnings and the remaining sections are employee-scoped
|
|
220
|
-
* and stay top-level: `
|
|
221
|
-
* `
|
|
220
|
+
* and stay top-level: `overtimeIncludedEarnings` (overtime-affecting) and
|
|
221
|
+
* `overtimeExcludedEarnings` (non-overtime) each render as a single section spanning every
|
|
222
222
|
* job, alongside time off, final payout, payment method, and reimbursements.
|
|
223
223
|
*
|
|
224
224
|
* @public
|
|
@@ -231,9 +231,9 @@ export interface PayrollEditEmployeeFields {
|
|
|
231
231
|
* section. Flat `Entry[]` when unsplit, or `Record<workweekStart, Entry[]>`
|
|
232
232
|
* when split by workweek; use {@link isSplitByWorkweek} to discriminate.
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
overtimeIncludedEarnings: EarningEntry[] | Record<string, EarningEntry[]>;
|
|
235
235
|
/** Non-overtime earnings (e.g. tips), always flat; opaque render entries. */
|
|
236
|
-
|
|
236
|
+
overtimeExcludedEarnings: OtherEntry[];
|
|
237
237
|
/** Time-off inputs (never workweek-breakdown). */
|
|
238
238
|
timeOff: TimeOffEntry[];
|
|
239
239
|
/** Final-payout inputs, present only for dismissal payrolls. */
|
|
@@ -317,7 +317,7 @@ export declare function computeTimeOffRemaining(accrualBalance: string | undefin
|
|
|
317
317
|
* compensations are split by whether their earning type is included in the
|
|
318
318
|
* regular-rate-of-pay overtime calculation (`overtimeEarningNames`): included
|
|
319
319
|
* earnings become each job's additional earnings, the rest become the flat,
|
|
320
|
-
* employee-level `
|
|
320
|
+
* employee-level `overtimeExcludedEarnings` section. Time off comes from the paid-time-off list,
|
|
321
321
|
* final payout is added only for dismissal payrolls, and the payment-method
|
|
322
322
|
* selector appears only when direct deposit is set up.
|
|
323
323
|
*
|
|
@@ -40,7 +40,7 @@ export declare function normalizeWorkweeks(workweeks: Array<{
|
|
|
40
40
|
/**
|
|
41
41
|
* Collects the names of earning types included in the regular-rate-of-pay
|
|
42
42
|
* overtime calculation. These earnings render in the workweek-breakdown
|
|
43
|
-
* additional-earnings section; all others fall into the flat `
|
|
43
|
+
* additional-earnings section; all others fall into the flat `overtimeExcludedEarnings` section.
|
|
44
44
|
*
|
|
45
45
|
* @param earningTypeList - The company's default and custom earning types.
|
|
46
46
|
* @returns A set of earning-type names with `includedInOvertimePay` set.
|
|
@@ -60,7 +60,7 @@ export declare function collectOvertimeEarningNames(earningTypeList: EarningType
|
|
|
60
60
|
* handled elsewhere or never shown as additional earnings
|
|
61
61
|
* ({@link EXCLUDED_ADDITIONAL_EARNINGS}) and inactive types are skipped. The
|
|
62
62
|
* result is sorted alphabetically by name. The regular-rate-of-pay split between
|
|
63
|
-
* additional earnings and `
|
|
63
|
+
* additional earnings and `overtimeExcludedEarnings` happens downstream via `overtimeEarningNames`;
|
|
64
64
|
* this helper only decides which earning lines exist.
|
|
65
65
|
*
|
|
66
66
|
* @param existingFixedCompensations - The prepared compensation's fixed compensations.
|
|
@@ -47,13 +47,13 @@ export declare const reimbursementDraftSchema: z.ZodObject<{
|
|
|
47
47
|
* Overtime-affecting values are keyed by workweek internally: hours and
|
|
48
48
|
* additional earnings are job-then-name-then-workweekStart records, so the
|
|
49
49
|
* single-workweek (or not-yet-split) case is just the degenerate one-key form
|
|
50
|
-
* of the multi-workweek shape. Non-overtime earnings (
|
|
50
|
+
* of the multi-workweek shape. Non-overtime earnings (`overtimeExcludedEarnings`) are flat
|
|
51
51
|
* job-then-name-to-amount records with no per-workweek breakdown, since they do
|
|
52
52
|
* not feed the blended rate. Time off and final payout are keyed by
|
|
53
53
|
* compensation name. This keeps one schema and one submit path.
|
|
54
54
|
*
|
|
55
55
|
* A `superRefine` enforces per-row completeness on `hours` and
|
|
56
|
-
* `
|
|
56
|
+
* `overtimeIncludedEarnings`: once any workweek cell in a job+name row is filled, every
|
|
57
57
|
* other cell in that row must be filled too, surfaced per empty cell as
|
|
58
58
|
* {@link PayrollEditEmployeeErrorCodes.REQUIRED_WORKWEEK}. A row with nothing
|
|
59
59
|
* filled is left alone (still submittable as untouched). This needs no
|
|
@@ -66,8 +66,8 @@ export declare const reimbursementDraftSchema: z.ZodObject<{
|
|
|
66
66
|
*/
|
|
67
67
|
export declare function createPayrollEditEmployeeSchema(): z.ZodObject<{
|
|
68
68
|
hours: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
overtimeIncludedEarnings: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
70
|
+
overtimeExcludedEarnings: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
71
71
|
timeOff: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
72
72
|
finalPayout: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
73
73
|
reimbursements: z.ZodArray<z.ZodObject<{
|
|
@@ -3,6 +3,8 @@ import { WireInRequest } from '@gusto/embedded-api/models/components/wireinreque
|
|
|
3
3
|
import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
|
|
4
4
|
import { UseDateRangeFilterResult } from '../../../hooks/useDateRangeFilter/useDateRangeFilter';
|
|
5
5
|
interface PayrollHistoryPresentationProps {
|
|
6
|
+
/** CSS class name applied to the root element. */
|
|
7
|
+
className?: string;
|
|
6
8
|
payrollHistory: Payroll[];
|
|
7
9
|
wireInRequests: WireInRequest[];
|
|
8
10
|
pagination: PaginationControlProps;
|
|
@@ -16,5 +18,5 @@ interface PayrollHistoryPresentationProps {
|
|
|
16
18
|
dateRangeFilter: UseDateRangeFilterResult;
|
|
17
19
|
}
|
|
18
20
|
/** @internal */
|
|
19
|
-
export declare const PayrollHistoryPresentation: ({ payrollHistory, wireInRequests, pagination, onViewSummary, onViewReceipt, onCancelPayroll, cancelDialogItem, onCancelDialogOpen, onCancelDialogClose, isLoading, dateRangeFilter, }: PayrollHistoryPresentationProps) => import("react").JSX.Element;
|
|
21
|
+
export declare const PayrollHistoryPresentation: ({ className, payrollHistory, wireInRequests, pagination, onViewSummary, onViewReceipt, onCancelPayroll, cancelDialogItem, onCancelDialogOpen, onCancelDialogClose, isLoading, dateRangeFilter, }: PayrollHistoryPresentationProps) => import("react").JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -5,6 +5,8 @@ import { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers';
|
|
|
5
5
|
import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
|
|
6
6
|
import { UseDateRangeFilterResult } from '../../../hooks/useDateRangeFilter/useDateRangeFilter';
|
|
7
7
|
interface PayrollListPresentationProps {
|
|
8
|
+
/** CSS class name applied to the root element. */
|
|
9
|
+
className?: string;
|
|
8
10
|
onRunPayroll: ({ payrollUuid, payPeriod }: Pick<Payroll, 'payrollUuid' | 'payPeriod'>) => void;
|
|
9
11
|
onSubmitPayroll: ({ payrollUuid, payPeriod }: Pick<Payroll, 'payrollUuid' | 'payPeriod'>) => void;
|
|
10
12
|
onSkipPayroll: ({ payrollUuid }: Pick<Payroll, 'payrollUuid'>) => void;
|
|
@@ -26,5 +28,5 @@ interface PayrollListPresentationProps {
|
|
|
26
28
|
withOffcyclePayroll?: boolean;
|
|
27
29
|
}
|
|
28
30
|
/** @internal */
|
|
29
|
-
export declare const PayrollListPresentation: ({ onRunPayroll, onSubmitPayroll, onSkipPayroll, onDeletePayroll, onRunOffCyclePayroll, payrolls, pagination, paySchedules, showSkipSuccessAlert, onDismissSkipSuccessAlert, showDeleteSuccessAlert, onDismissDeleteSuccessAlert, skippingPayrollId, deletingPayrollId, blockers, wireInRequests, dateRangeFilter, hasUnprocessedTransitions, withOffcyclePayroll, }: PayrollListPresentationProps) => import("react").JSX.Element;
|
|
31
|
+
export declare const PayrollListPresentation: ({ className, onRunPayroll, onSubmitPayroll, onSkipPayroll, onDeletePayroll, onRunOffCyclePayroll, payrolls, pagination, paySchedules, showSkipSuccessAlert, onDismissSkipSuccessAlert, showDeleteSuccessAlert, onDismissDeleteSuccessAlert, skippingPayrollId, deletingPayrollId, blockers, wireInRequests, dateRangeFilter, hasUnprocessedTransitions, withOffcyclePayroll, }: PayrollListPresentationProps) => import("react").JSX.Element;
|
|
30
32
|
export {};
|
|
@@ -6,6 +6,7 @@ import { PayrollFlowAlert } from '../PayrollFlow/PayrollFlowComponents';
|
|
|
6
6
|
import { PayrollOverviewStatus } from './PayrollOverviewTypes';
|
|
7
7
|
import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
|
|
8
8
|
interface PayrollOverviewProps {
|
|
9
|
+
className?: string;
|
|
9
10
|
payrollData: PayrollShow;
|
|
10
11
|
employeeFlsaStatusByUuid?: Record<string, string | undefined>;
|
|
11
12
|
bankAccount?: CompanyBankAccount;
|
|
@@ -34,5 +35,5 @@ interface PayrollOverviewProps {
|
|
|
34
35
|
downloadingEmployeeIds?: ReadonlySet<string>;
|
|
35
36
|
}
|
|
36
37
|
/** @internal */
|
|
37
|
-
export declare const PayrollOverviewPresentation: ({ onEdit, onSubmit, onCancel, onPayrollReceipt, onPaystubDownload, payrollData, employeeFlsaStatusByUuid, bankAccount, taxes, status, isProcessed, canCancel, canEdit, alerts, submissionBlockers, selectedUnblockOptions, onUnblockOptionChange, wireInConfirmationRequest, printChecksBanner, withReimbursements, paymentSpeed, pagination, downloadingEmployeeIds, }: PayrollOverviewProps) => import("react").JSX.Element;
|
|
38
|
+
export declare const PayrollOverviewPresentation: ({ className, onEdit, onSubmit, onCancel, onPayrollReceipt, onPaystubDownload, payrollData, employeeFlsaStatusByUuid, bankAccount, taxes, status, isProcessed, canCancel, canEdit, alerts, submissionBlockers, selectedUnblockOptions, onUnblockOptionChange, wireInConfirmationRequest, printChecksBanner, withReimbursements, paymentSpeed, pagination, downloadingEmployeeIds, }: PayrollOverviewProps) => import("react").JSX.Element;
|
|
38
39
|
export {};
|
|
@@ -25,6 +25,15 @@ export interface UseSubmissionPollOptions {
|
|
|
25
25
|
refetch: () => Promise<QueryObserverResult<PayrollsGetQueryData, PayrollsGetQueryError>>;
|
|
26
26
|
onProcessed: (payroll: PayrollShow | undefined) => void;
|
|
27
27
|
onProcessingFailed: (payroll: PayrollShow | undefined) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Called when the poll gives up on a non-retryable read error, but only for a run that was
|
|
30
|
+
* actually tracking a submission (`baseline` set, or a `submitting` status observed mid-run).
|
|
31
|
+
* A baseline-less mount poll that never saw `submitting` swallows the error here -- it was only
|
|
32
|
+
* guarding the initial render, not watching a real submission, so surfacing it as a processing
|
|
33
|
+
* failure would be a false failure. The raw error is reported to observability by this hook
|
|
34
|
+
* either way.
|
|
35
|
+
*/
|
|
36
|
+
onError: () => void;
|
|
28
37
|
}
|
|
29
38
|
/** @internal */
|
|
30
39
|
export interface SubmissionPoll {
|
|
@@ -36,4 +45,4 @@ export interface SubmissionPoll {
|
|
|
36
45
|
*
|
|
37
46
|
* @internal
|
|
38
47
|
*/
|
|
39
|
-
export declare function useSubmissionPoll({ refetch, onProcessed, onProcessingFailed, }: UseSubmissionPollOptions): SubmissionPoll;
|
|
48
|
+
export declare function useSubmissionPoll({ refetch, onProcessed, onProcessingFailed, onError, }: UseSubmissionPollOptions): SubmissionPoll;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PayrollReceipt } from '@gusto/embedded-api/models/components/payrollreceipt';
|
|
2
2
|
interface PayrollReceiptsPresentationProps {
|
|
3
|
+
className?: string;
|
|
3
4
|
receiptData: PayrollReceipt;
|
|
4
5
|
withReimbursements?: boolean;
|
|
5
6
|
}
|
|
6
7
|
/** @internal */
|
|
7
|
-
export declare const PayrollReceiptsPresentation: ({ receiptData, withReimbursements, }: PayrollReceiptsPresentationProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const PayrollReceiptsPresentation: ({ className, receiptData, withReimbursements, }: PayrollReceiptsPresentationProps) => import("react").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -6,4 +6,4 @@ import { TransitionCreationPresentationProps } from './TransitionCreationTypes';
|
|
|
6
6
|
* @returns The transition payroll creation form layout.
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export declare function TransitionCreationPresentation({ startDate, endDate, payScheduleName, isPending, taxWithholdingConfig, isTaxWithholdingModalOpen, onTaxWithholdingEditClick, onTaxWithholdingModalDone, onTaxWithholdingModalCancel, }: TransitionCreationPresentationProps): import("react").JSX.Element;
|
|
9
|
+
export declare function TransitionCreationPresentation({ className, startDate, endDate, payScheduleName, isPending, taxWithholdingConfig, isTaxWithholdingModalOpen, onTaxWithholdingEditClick, onTaxWithholdingModalDone, onTaxWithholdingModalCancel, }: TransitionCreationPresentationProps): import("react").JSX.Element;
|
|
@@ -34,6 +34,8 @@ export declare function createTransitionCreationSchema(t: (key: string, options?
|
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
/** @internal */
|
|
36
36
|
export interface TransitionCreationPresentationProps {
|
|
37
|
+
/** CSS class name applied to the component's root element. */
|
|
38
|
+
className?: string;
|
|
37
39
|
/** The start date of the transition pay period (YYYY-MM-DD). */
|
|
38
40
|
startDate: string;
|
|
39
41
|
/** The end date of the transition pay period (YYYY-MM-DD). */
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { LoaderComponentType } from '../../Base/Base';
|
|
1
2
|
import { OnEventType } from '../../Base/useBase';
|
|
2
3
|
import { EventType } from '../../../shared/constants';
|
|
3
4
|
interface TransitionPayrollAlertProps {
|
|
4
5
|
companyId: string;
|
|
5
6
|
onEvent: OnEventType<EventType, unknown>;
|
|
7
|
+
LoaderComponent?: LoaderComponentType;
|
|
6
8
|
}
|
|
7
9
|
/** @internal */
|
|
8
|
-
export declare function TransitionPayrollAlert({ companyId, onEvent }: TransitionPayrollAlertProps): import("react").JSX.Element;
|
|
10
|
+
export declare function TransitionPayrollAlert({ companyId, onEvent, LoaderComponent, }: TransitionPayrollAlertProps): import("react").JSX.Element;
|
|
9
11
|
export {};
|
package/dist/src/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { PayrollEditEmployeeProps } from '../PayrollEditEmployee/PayrollEditEmpl
|
|
|
6
6
|
* Gated behind the `payrollRegularRateOfPay` unstable feature flag and not part of the public
|
|
7
7
|
* SDK surface. `PayrollEditEmployee` renders this in place of the stable editor when the flag is
|
|
8
8
|
* enabled. Consumes {@link usePayrollEditEmployeeForm} and renders the header, the hours /
|
|
9
|
-
* additional-earnings / time-off /
|
|
9
|
+
* additional-earnings / time-off / payment-method sections, and the
|
|
10
10
|
* `Cancel`/`Save` controls, performing a real payroll update on save. For an overtime-eligible
|
|
11
11
|
* employee on a multi-workweek payroll, Overtime/Double-overtime rows start hidden behind a single,
|
|
12
12
|
* employee-level "Add overtime" control (`form.data.withOvertime` / `form.actions.addOvertime`)
|
|
@@ -21,4 +21,4 @@ export interface AddEmployeesHolidayProps extends BaseComponentInterface<never>
|
|
|
21
21
|
* @returns The rendered holiday employee selection screen.
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
24
|
-
export declare function AddEmployeesHoliday(props: AddEmployeesHolidayProps): import("react").JSX.Element;
|
|
24
|
+
export declare function AddEmployeesHoliday({ className, ...props }: AddEmployeesHolidayProps): import("react").JSX.Element;
|
|
@@ -50,4 +50,4 @@ export interface AddEmployeesToPolicyProps extends BaseComponentInterface<never>
|
|
|
50
50
|
* }
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
export declare function AddEmployeesToPolicy(props: AddEmployeesToPolicyProps): import("react").JSX.Element;
|
|
53
|
+
export declare function AddEmployeesToPolicy({ className, ...props }: AddEmployeesToPolicyProps): import("react").JSX.Element;
|
package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HolidayPolicyDetailPresentationProps } from './HolidayPolicyDetailTypes';
|
|
2
2
|
/** @internal */
|
|
3
|
-
export declare function HolidayPolicyDetailPresentation({ title, subtitle, onBack, backLabel, actions, holidays, selectedTabId, onTabChange, employees, onAddEmployee, removeDialog, successAlert, onDismissAlert, }: HolidayPolicyDetailPresentationProps): import("react").JSX.Element;
|
|
3
|
+
export declare function HolidayPolicyDetailPresentation({ title, subtitle, onBack, backLabel, actions, holidays, selectedTabId, onTabChange, employees, onAddEmployee, removeDialog, successAlert, onDismissAlert, className, }: HolidayPolicyDetailPresentationProps): import("react").JSX.Element;
|