@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "Submit", a = "Back", t = "Save and exit", o = "Review payroll", l = "Payroll summary", s = "{{payrollType}} payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", i = "{{payrollType}} payroll", n = "Submit", r = "Edit", y = "Cancel payroll", p = "Cancel {{startDate}} - {{endDate}} payroll?", c = "Cancel payroll?", d = "You may cancel this payroll and run it again later. Your changes will be saved.", m = "Run this payroll by {{deadline}} to pay your employees on time.", u = "Yes, cancel payroll", b = "No, go back", T = "View payroll receipt", g = "Download paystub pdf",
|
|
1
|
+
const e = "Submit", a = "Back", t = "Save and exit", o = "Review payroll", l = "Payroll summary", s = "{{payrollType}} payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", i = "{{payrollType}} payroll", n = "Submit", r = "Edit", y = "Cancel payroll", p = "Cancel {{startDate}} - {{endDate}} payroll?", c = "Cancel payroll?", d = "You may cancel this payroll and run it again later. Your changes will be saved.", m = "Run this payroll by {{deadline}} to pay your employees on time.", u = "Yes, cancel payroll", b = "No, go back", T = "View payroll receipt", g = "Download paystub pdf", h = "Generating paystub…", D = "Submitting payroll...", f = "This may take a minute or two. You can navigate away while this happens.", w = "Loading payroll...", P = "Cancelling payroll...", x = "This payroll has been cancelled.", k = "Skipped", C = { payrollNotCalculated: "Payroll is not calculated", payrollLoadFailed: "There was an issue loading this payroll. Please try again.", directDepositDeadline: "To pay your employees with direct deposit by {{payDate}}, you'll need to run payroll by {{time}} on {{date}}.", directDepositDeadlineText: "Make sure to submit before the deadline to ensure timely payments.", paystubPdfError: "There was an issue generating the paystub PDF. Please try again later.", payrollProcessedTitle: "Payroll submitted", payrollProcessedMessage: "{{amount}} will be debited on {{date}}. Make sure you have these funds available.", payrollProcessingFailedTitle: "There was an error submitting payroll", payrollProcessingFailedCtaLabel: "Recalculate payroll", wireDetailsSubmittedTitle: "Wire details submitted", wireDetailsSubmittedMessage: "Once we receive the funds from your bank we'll pay your team on {{checkDate}}" }, L = "Payroll Summary", S = "Payroll summary (Wire funds)", v = "Payroll summary (4-day direct deposit)", E = "Payroll summary table", B = { label: "Payroll details", companyPaysTab: "Company pays", companyPaysTable: "Company pays by employee", hoursWorkedTab: "Hours worked", hoursWorkedTable: "Hours worked by employee", employeeTakeHomeTab: "Employee take home", employeeTakeHomeTable: "Employee take home by employee", taxesTab: "Taxed and debited", taxesTable: "Taxes breakdown", debitedTable: "Debited totals by company" }, W = { totalPayroll: "Total payroll", debitAmount: "Debit amount", wireAmount: "Wire amount", wireTransferDeadline: "Wire transfer deadline", employees: "Employees", grossPay: "Gross Pay", reimbursements: "Reimbursements", debitAccount: "Debit account", debitDate: "Debit date", employeePayDate: "Employee pay date", companyTaxes: "Company taxes", companyBenefits: "Company benefits", companyPays: "Company pays", compensationType: "Compensation type", regular: "Regular", overtime: "Overtime (1.5x)", doubleOT: "Overtime (2x)", timeOff: "Paid time off", totalHours: "Total hours", paymentType: "Payment type", employeeTaxes: "Employee taxes", employeeBenefits: "Employee benefits", payment: "Payment", deductions: "Deductions", taxDescription: "Tax description", byYourEmployees: "By your employees", byYourCompany: "By your company", debitedByGusto: "Debited by Gusto", taxesTotal: "Total", paystub: "Paystub", footerTotalsLabel: "Totals", footerTotalsDescription: "All employees in this payroll" }, F = "Totals", _ = "Direct deposits", O = "Reimbursements", Y = "Garnishments", H = "Taxes (Employees and Employers)", R = { exempt: "Salaried / Exempt", nonexempt: "Hourly / Nonexempt" }, M = { genericBlockerTitle: "Submission blocked", genericBlockerMessage: "This payroll cannot be submitted. Please contact support for assistance.", fastAchOptions: { description: "Payroll can still be funded by selecting one of the options below. The selected funding method will only be used for this cycle and will not apply to future payroll.", fundingOptionsLabel: "Funding options", wireLabel: "Wire funds", wireFastestBadge: "Fastest", wireDescription: "Pay your employees on time by sending a wire transfer. We'll provide instructions on the next step.", directDepositLabel: "Switch to 4-day direct deposit", directDepositDescription: "Delay your employees pay date by four days and process using regular debits.", employeePayDate: "Employee pay date: {{date}}" }, fast_ach_threshold_exceeded: { title: "You have exceeded the limit at which you can process {{days}} payroll." }, needs_earned_access_for_fast_ach: { title: "You have not yet earned access to faster payroll." } }, A = {
|
|
2
2
|
breadcrumbLabel: e,
|
|
3
3
|
backCta: a,
|
|
4
4
|
exitFlowCta: t,
|
|
@@ -17,22 +17,22 @@ const e = "Submit", a = "Back", t = "Save and exit", o = "Review payroll", l = "
|
|
|
17
17
|
declineCancelCta: b,
|
|
18
18
|
payrollReceiptCta: T,
|
|
19
19
|
downloadPaystubLabel: g,
|
|
20
|
-
downloadLoadingMessage:
|
|
21
|
-
loadingTitle:
|
|
20
|
+
downloadLoadingMessage: h,
|
|
21
|
+
loadingTitle: D,
|
|
22
22
|
loadingDescription: f,
|
|
23
23
|
dataLoadingTitle: w,
|
|
24
24
|
cancellingTitle: P,
|
|
25
25
|
cancelledEmptyState: x,
|
|
26
26
|
skippedBadge: k,
|
|
27
27
|
alerts: C,
|
|
28
|
-
payrollSummaryTitle:
|
|
29
|
-
payrollSummaryTitleWire:
|
|
30
|
-
payrollSummaryTitleFourDay:
|
|
28
|
+
payrollSummaryTitle: L,
|
|
29
|
+
payrollSummaryTitleWire: S,
|
|
30
|
+
payrollSummaryTitleFourDay: v,
|
|
31
31
|
payrollSummaryLabel: E,
|
|
32
32
|
dataViews: B,
|
|
33
33
|
tableHeaders: W,
|
|
34
|
-
totalsLabel:
|
|
35
|
-
directDepositLabel:
|
|
34
|
+
totalsLabel: F,
|
|
35
|
+
directDepositLabel: _,
|
|
36
36
|
reimbursementLabel: O,
|
|
37
37
|
garnishmentsLabel: Y,
|
|
38
38
|
taxesLabel: H,
|
|
@@ -56,22 +56,22 @@ export {
|
|
|
56
56
|
B as dataViews,
|
|
57
57
|
b as declineCancelCta,
|
|
58
58
|
A as default,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
_ as directDepositLabel,
|
|
60
|
+
h as downloadLoadingMessage,
|
|
61
61
|
g as downloadPaystubLabel,
|
|
62
62
|
r as editCta,
|
|
63
63
|
t as exitFlowCta,
|
|
64
64
|
Y as garnishmentsLabel,
|
|
65
65
|
f as loadingDescription,
|
|
66
|
-
|
|
66
|
+
D as loadingTitle,
|
|
67
67
|
o as overviewTitle,
|
|
68
68
|
s as pageSubtitle,
|
|
69
69
|
i as pageSubtitleDismissal,
|
|
70
70
|
T as payrollReceiptCta,
|
|
71
71
|
E as payrollSummaryLabel,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
L as payrollSummaryTitle,
|
|
73
|
+
v as payrollSummaryTitleFourDay,
|
|
74
|
+
S as payrollSummaryTitleWire,
|
|
75
75
|
O as reimbursementLabel,
|
|
76
76
|
k as skippedBadge,
|
|
77
77
|
M as submissionBlockers,
|
|
@@ -79,6 +79,6 @@ export {
|
|
|
79
79
|
l as summaryTitle,
|
|
80
80
|
W as tableHeaders,
|
|
81
81
|
H as taxesLabel,
|
|
82
|
-
|
|
82
|
+
F as totalsLabel
|
|
83
83
|
};
|
|
84
84
|
//# sourceMappingURL=Payroll.PayrollOverview.json.js.map
|
|
@@ -1,98 +1,102 @@
|
|
|
1
|
-
const e = "Edit payroll for {{employeeName}}", t = "{{firstName}} {{lastName}}", n = "Regular and overtime hours", o = "Regular hours", r = "Add overtime",
|
|
1
|
+
const e = "Edit payroll for {{employeeName}}", t = "{{firstName}} {{lastName}}", n = "Regular and overtime hours", o = "Regular hours", r = "Add overtime", i = "When adding overtime hours, you must record hours and earnings by work week so {{employeeName}}'s pay is calculated correctly.", s = "Hours", m = "Save", a = "Cancel", u = "Hour type", c = "Type", l = "Amount", p = "Hours", d = { regularHours: "Regular Hours", overtime: "Overtime", doubleOvertime: "Double overtime" }, b = "Time off", y = "Time off hours used this pay period", h = "Unused time off payout", g = "Enter the unused hours to pay out on the final paycheck. This is separate from time off hours used during the pay period.", f = { remaining: "{{balance}} remaining" }, v = "Additional earnings", T = "Earnings entered here factor into the overtime multiplier used to calculate {{employeeName}}'s total pay.", C = "Included in overtime multiplier calculation", R = "Not a factor for overtime calculation", A = "Reimbursements", k = "Description", E = "e.g., Office supplies", D = "Amount", L = "Reimbursement", O = "Reimbursements", N = "Description", P = "Amount", w = "Type", H = "Recurring", M = "One-time", U = "No reimbursements", W = "Add one-time reimbursement", x = "Add one-time reimbursement", B = "Save reimbursement", S = "Cancel reimbursement", G = "Remove {{description}} reimbursement", I = "{{description}} (recurring reimbursement)", _ = "Recurring reimbursements are managed outside of payroll.", q = { bonus: "Bonus", paycheckTips: "Paycheck tips", correctionPayment: "Correction payment", commission: "Commission", cashTips: "Cash tips", reimbursement: "Reimbursement" }, z = "Payment", F = "Payment method", j = "Changing the default payment method will only apply to this payroll.", J = { directDeposit: "Direct deposit", check: "Check" }, K = { reimbursementAmount: "Amount must be greater than zero", negativeAmount: "Amount cannot be negative", requiredWorkweek: "Enter an amount for every workweek" }, Q = {
|
|
2
2
|
pageTitle: e,
|
|
3
3
|
breadcrumbLabel: t,
|
|
4
4
|
regularHoursTitle: n,
|
|
5
5
|
regularHoursTitleWithoutOvertime: o,
|
|
6
6
|
addOvertimeCta: r,
|
|
7
|
-
overtimeWorkweekAlert:
|
|
8
|
-
hoursUnit:
|
|
7
|
+
overtimeWorkweekAlert: i,
|
|
8
|
+
hoursUnit: s,
|
|
9
9
|
saveCta: m,
|
|
10
10
|
cancelCta: a,
|
|
11
11
|
hourTypeColumn: u,
|
|
12
12
|
typeColumn: c,
|
|
13
13
|
amountColumn: l,
|
|
14
14
|
hoursColumn: p,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
finalPayoutTitle: f,
|
|
15
|
+
compensationNames: d,
|
|
16
|
+
timeOffTitle: b,
|
|
17
|
+
timeOffTitleDismissal: y,
|
|
18
|
+
finalPayoutTitle: h,
|
|
20
19
|
finalPayoutDescription: g,
|
|
21
|
-
timeOffBalance:
|
|
22
|
-
additionalEarningsTitle:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
timeOffBalance: f,
|
|
21
|
+
additionalEarningsTitle: v,
|
|
22
|
+
overtimeMultiplierEarningsAlert: T,
|
|
23
|
+
overtimeIncludedEarningsGroupLabel: C,
|
|
24
|
+
overtimeExcludedEarningsGroupLabel: R,
|
|
25
|
+
reimbursementTitle: A,
|
|
26
|
+
reimbursementDescriptionLabel: k,
|
|
27
|
+
reimbursementDescriptionPlaceholder: E,
|
|
28
|
+
reimbursementAmountLabel: D,
|
|
29
|
+
reimbursementUnnamedFallback: L,
|
|
30
|
+
reimbursementsTableLabel: O,
|
|
31
|
+
reimbursementDescriptionColumn: N,
|
|
30
32
|
reimbursementAmountColumn: P,
|
|
31
|
-
reimbursementTypeColumn:
|
|
32
|
-
reimbursementTypeRecurring:
|
|
33
|
-
reimbursementTypeOneTime:
|
|
34
|
-
reimbursementEmptyTitle:
|
|
35
|
-
addReimbursementCta:
|
|
36
|
-
addReimbursementLink:
|
|
37
|
-
saveReimbursementCta:
|
|
38
|
-
cancelReimbursementCta:
|
|
39
|
-
removeReimbursementLabel:
|
|
40
|
-
recurringReimbursementLabel:
|
|
33
|
+
reimbursementTypeColumn: w,
|
|
34
|
+
reimbursementTypeRecurring: H,
|
|
35
|
+
reimbursementTypeOneTime: M,
|
|
36
|
+
reimbursementEmptyTitle: U,
|
|
37
|
+
addReimbursementCta: W,
|
|
38
|
+
addReimbursementLink: x,
|
|
39
|
+
saveReimbursementCta: B,
|
|
40
|
+
cancelReimbursementCta: S,
|
|
41
|
+
removeReimbursementLabel: G,
|
|
42
|
+
recurringReimbursementLabel: I,
|
|
41
43
|
recurringReimbursementTooltip: _,
|
|
42
44
|
fixedCompensationNames: q,
|
|
43
45
|
paymentMethodTitle: z,
|
|
44
46
|
paymentMethodLabel: F,
|
|
45
47
|
paymentMethodDescription: j,
|
|
46
|
-
paymentMethodOptions:
|
|
47
|
-
validations:
|
|
48
|
+
paymentMethodOptions: J,
|
|
49
|
+
validations: K
|
|
48
50
|
};
|
|
49
51
|
export {
|
|
50
52
|
r as addOvertimeCta,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
W as addReimbursementCta,
|
|
54
|
+
x as addReimbursementLink,
|
|
55
|
+
v as additionalEarningsTitle,
|
|
54
56
|
l as amountColumn,
|
|
55
57
|
t as breadcrumbLabel,
|
|
56
58
|
a as cancelCta,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
S as cancelReimbursementCta,
|
|
60
|
+
d as compensationNames,
|
|
61
|
+
Q as default,
|
|
60
62
|
g as finalPayoutDescription,
|
|
61
|
-
|
|
63
|
+
h as finalPayoutTitle,
|
|
62
64
|
q as fixedCompensationNames,
|
|
63
65
|
u as hourTypeColumn,
|
|
64
66
|
p as hoursColumn,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
s as hoursUnit,
|
|
68
|
+
R as overtimeExcludedEarningsGroupLabel,
|
|
69
|
+
C as overtimeIncludedEarningsGroupLabel,
|
|
70
|
+
T as overtimeMultiplierEarningsAlert,
|
|
71
|
+
i as overtimeWorkweekAlert,
|
|
68
72
|
e as pageTitle,
|
|
69
73
|
j as paymentMethodDescription,
|
|
70
74
|
F as paymentMethodLabel,
|
|
71
|
-
|
|
75
|
+
J as paymentMethodOptions,
|
|
72
76
|
z as paymentMethodTitle,
|
|
73
|
-
|
|
77
|
+
I as recurringReimbursementLabel,
|
|
74
78
|
_ as recurringReimbursementTooltip,
|
|
75
79
|
n as regularHoursTitle,
|
|
76
80
|
o as regularHoursTitleWithoutOvertime,
|
|
77
81
|
P as reimbursementAmountColumn,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
D as reimbursementAmountLabel,
|
|
83
|
+
N as reimbursementDescriptionColumn,
|
|
84
|
+
k as reimbursementDescriptionLabel,
|
|
85
|
+
E as reimbursementDescriptionPlaceholder,
|
|
86
|
+
U as reimbursementEmptyTitle,
|
|
87
|
+
A as reimbursementTitle,
|
|
88
|
+
w as reimbursementTypeColumn,
|
|
89
|
+
M as reimbursementTypeOneTime,
|
|
90
|
+
H as reimbursementTypeRecurring,
|
|
91
|
+
L as reimbursementUnnamedFallback,
|
|
92
|
+
O as reimbursementsTableLabel,
|
|
93
|
+
G as removeReimbursementLabel,
|
|
90
94
|
m as saveCta,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
B as saveReimbursementCta,
|
|
96
|
+
f as timeOffBalance,
|
|
97
|
+
b as timeOffTitle,
|
|
98
|
+
y as timeOffTitleDismissal,
|
|
95
99
|
c as typeColumn,
|
|
96
|
-
|
|
100
|
+
K as validations
|
|
97
101
|
};
|
|
98
102
|
//# sourceMappingURL=Payroll.UNSTABLE_PayrollEditEmployee.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payroll.UNSTABLE_PayrollEditEmployee.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Payroll.UNSTABLE_PayrollEditEmployee.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/package.json.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
+
import { FieldCaptionProps } from './FieldCaptionTypes';
|
|
1
2
|
/** @internal */
|
|
2
|
-
export
|
|
3
|
-
/** Caption content rendered inside the label or legend element. */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** HTML element to render as — `label` for individual inputs, `legend` for fieldsets. */
|
|
6
|
-
as?: 'label' | 'legend';
|
|
7
|
-
/** Associates a `label` with an input by id. Ignored when `as` is `legend`. */
|
|
8
|
-
htmlFor?: string;
|
|
9
|
-
/** When false, appends a localized optional indicator after the caption. */
|
|
10
|
-
isRequired?: boolean;
|
|
11
|
-
/** Visually hides the caption while keeping it available to assistive technology. */
|
|
12
|
-
isVisuallyHidden?: boolean;
|
|
13
|
-
/** Additional class names appended to the root element. */
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const FieldCaption: React.FC<FieldCaptionProps>;
|
|
3
|
+
export declare const FieldCaption: (props: FieldCaptionProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props your `FieldCaption` implementation must accept from the component adapter.
|
|
4
|
+
* Renders the label or legend caption for a form control, including the optional/required indicator.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
* @group Component props
|
|
8
|
+
*/
|
|
9
|
+
export interface FieldCaptionProps {
|
|
10
|
+
/** Caption content rendered inside the label or legend element. */
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/** HTML element to render as — `label` for individual inputs, `legend` for fieldsets. */
|
|
13
|
+
as?: 'label' | 'legend';
|
|
14
|
+
/** Associates a `label` with an input by id. Ignored when `as` is `legend`. */
|
|
15
|
+
htmlFor?: string;
|
|
16
|
+
/** When false, appends a localized optional indicator after the caption. */
|
|
17
|
+
isRequired?: boolean;
|
|
18
|
+
/** Visually hides the caption while keeping it available to assistive technology. */
|
|
19
|
+
isVisuallyHidden?: boolean;
|
|
20
|
+
/** Additional class names appended to the root element. */
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
@@ -2,6 +2,8 @@ import { Responsive, CustomPropertyValue } from '../../../helpers/responsive';
|
|
|
2
2
|
/** @internal */
|
|
3
3
|
export interface FlexProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
+
/** CSS class name applied to the root element. */
|
|
6
|
+
className?: string;
|
|
5
7
|
flexDirection?: Responsive<'row' | 'column'>;
|
|
6
8
|
justifyContent?: Responsive<'space-between' | 'center' | 'flex-start' | 'flex-end' | 'space-around' | 'space-evenly' | 'normal'>;
|
|
7
9
|
alignItems?: Responsive<'center' | 'flex-start' | 'flex-end' | 'stretch'>;
|
|
@@ -9,7 +11,7 @@ export interface FlexProps {
|
|
|
9
11
|
gap?: Responsive<CustomPropertyValue>;
|
|
10
12
|
}
|
|
11
13
|
/** @internal */
|
|
12
|
-
export declare function Flex({ children, flexDirection, justifyContent, alignItems, flexWrap, gap, }: FlexProps): import("react").JSX.Element;
|
|
14
|
+
export declare function Flex({ children, className, flexDirection, justifyContent, alignItems, flexWrap, gap, }: FlexProps): import("react").JSX.Element;
|
|
13
15
|
/** @internal */
|
|
14
16
|
export interface FlexItemProps {
|
|
15
17
|
flexGrow?: number | 'initial';
|
|
@@ -64,7 +64,7 @@ export interface ComboBoxProps extends SharedFieldLayoutProps, Pick<InputHTMLAtt
|
|
|
64
64
|
allowsCustomValue?: boolean;
|
|
65
65
|
/**
|
|
66
66
|
* Element to use as the portal container for the dropdown popover.
|
|
67
|
-
* Overrides the default
|
|
67
|
+
* Overrides the SDK's default portal root (a themed element appended to `document.body`).
|
|
68
68
|
*/
|
|
69
69
|
portalContainer?: HTMLElement;
|
|
70
70
|
}
|
|
@@ -41,7 +41,8 @@ export interface DatePickerProps extends SharedFieldLayoutProps, Pick<InputHTMLA
|
|
|
41
41
|
*/
|
|
42
42
|
placeholder?: string;
|
|
43
43
|
/**
|
|
44
|
-
* Element to use as the portal container
|
|
44
|
+
* Element to use as the portal container for the popover.
|
|
45
|
+
* Overrides the SDK's default portal root (a themed element appended to `document.body`).
|
|
45
46
|
*/
|
|
46
47
|
portalContainer?: HTMLElement;
|
|
47
48
|
/**
|
|
@@ -61,7 +61,7 @@ export interface MenuProps extends DataAttributes {
|
|
|
61
61
|
'aria-label': string;
|
|
62
62
|
/**
|
|
63
63
|
* Element to use as the portal container for the menu popover.
|
|
64
|
-
* Overrides the default
|
|
64
|
+
* Overrides the SDK's default portal root (a themed element appended to `document.body`).
|
|
65
65
|
*/
|
|
66
66
|
portalContainer?: HTMLElement;
|
|
67
67
|
/**
|
|
@@ -6,4 +6,4 @@ import { MultiSelectComboBoxProps } from './MultiSelectComboBoxTypes';
|
|
|
6
6
|
* @returns The rendered multi-select combo box field.
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export declare function MultiSelectComboBox({ className, description, errorMessage, id, inputRef: inputRefFromProps, isDisabled, isInvalid, isLoading, isRequired, label, name, onBlur, onChange, options, placeholder, value: selectedValues, shouldVisuallyHideLabel, }: MultiSelectComboBoxProps): import("react").JSX.Element;
|
|
9
|
+
export declare function MultiSelectComboBox({ className, description, errorMessage, id, inputRef: inputRefFromProps, isDisabled, isInvalid, isLoading, isRequired, label, name, onBlur, onChange, options, placeholder, portalContainer, value: selectedValues, shouldVisuallyHideLabel, }: MultiSelectComboBoxProps): import("react").JSX.Element;
|
|
@@ -65,4 +65,9 @@ export interface MultiSelectComboBoxProps extends SharedFieldLayoutProps, Pick<I
|
|
|
65
65
|
* Handler for blur events
|
|
66
66
|
*/
|
|
67
67
|
onBlur?: () => void;
|
|
68
|
+
/**
|
|
69
|
+
* Element to use as the portal container for the dropdown popover.
|
|
70
|
+
* Overrides the SDK's default portal root (a themed element appended to `document.body`).
|
|
71
|
+
*/
|
|
72
|
+
portalContainer?: HTMLElement;
|
|
68
73
|
}
|
|
@@ -62,7 +62,8 @@ export interface SelectProps extends SharedFieldLayoutProps, Pick<SelectHTMLAttr
|
|
|
62
62
|
*/
|
|
63
63
|
inputRef?: Ref<HTMLButtonElement>;
|
|
64
64
|
/**
|
|
65
|
-
* Element to use as the portal container
|
|
65
|
+
* Element to use as the portal container for the popover.
|
|
66
|
+
* Overrides the SDK's default portal root (a themed element appended to `document.body`).
|
|
66
67
|
*/
|
|
67
68
|
portalContainer?: HTMLElement;
|
|
68
69
|
}
|
|
@@ -7,7 +7,7 @@ import { RequireAtLeastOne } from '../../../types/Helpers';
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export type PayScheduleDefaultFields = {
|
|
10
|
-
[K in keyof Pick<PayScheduleFormData, 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'>]: NonNullable<PayScheduleFormData[K]>;
|
|
10
|
+
[K in keyof Pick<PayScheduleFormData, 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency' | 'workweekStartDay'>]: NonNullable<PayScheduleFormData[K]>;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Default values for the {@link PaySchedule} form fields. Server data for an existing pay schedule
|
|
@@ -26,6 +26,14 @@ export interface PayScheduleProps extends BaseComponentInterface<'Company.PaySch
|
|
|
26
26
|
companyId: string;
|
|
27
27
|
/** Default values used to pre-fill the create form. Ignored fields not listed in {@link PayScheduleDefaultValues}. */
|
|
28
28
|
defaultValues?: PayScheduleDefaultValues;
|
|
29
|
+
/**
|
|
30
|
+
* Renders the workweek start day field disabled while still submitting its current value,
|
|
31
|
+
* for partners that compute the workweek start day themselves and don't want end users
|
|
32
|
+
* editing it directly. Defaults to `false`.
|
|
33
|
+
*
|
|
34
|
+
* @alpha
|
|
35
|
+
*/
|
|
36
|
+
disableWorkweekStartDayEditing?: boolean;
|
|
29
37
|
}
|
|
30
38
|
/**
|
|
31
39
|
* Manages a company's pay schedules, including listing existing schedules and creating or editing one.
|
|
@@ -44,4 +52,4 @@ export interface PayScheduleProps extends BaseComponentInterface<'Company.PaySch
|
|
|
44
52
|
* @returns The pay schedule list or form depending on whether any schedules exist.
|
|
45
53
|
* @public
|
|
46
54
|
*/
|
|
47
|
-
export declare const PaySchedule: ({ companyId, defaultValues, dictionary, ...props }: PayScheduleProps) => import("react").JSX.Element;
|
|
55
|
+
export declare const PaySchedule: ({ companyId, defaultValues, disableWorkweekStartDayEditing, dictionary, ...props }: PayScheduleProps) => import("react").JSX.Element;
|
|
@@ -5,6 +5,7 @@ export interface PayScheduleContextInterface extends FlowContextInterface {
|
|
|
5
5
|
companyId: string;
|
|
6
6
|
payScheduleId?: string;
|
|
7
7
|
defaultValues?: PayScheduleDefaultValues;
|
|
8
|
+
disableWorkweekStartDayEditing?: boolean;
|
|
8
9
|
component: React.ComponentType | null;
|
|
9
10
|
}
|
|
10
11
|
/** @internal */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PayScheduleErrorCodes, PayScheduleFrequency } from './payScheduleSchema';
|
|
1
|
+
import { PayScheduleErrorCodes, PayScheduleFrequency, PayScheduleWorkweekStartDay } from './payScheduleSchema';
|
|
2
2
|
import { TextInputHookFieldProps } from '../../../../../partner-hook-utils/form/fields/TextInputHookField';
|
|
3
3
|
import { SelectHookFieldProps } from '../../../../../partner-hook-utils/form/fields/SelectHookField';
|
|
4
4
|
import { RadioGroupHookFieldProps } from '../../../../../partner-hook-utils/form/fields/RadioGroupHookField';
|
|
@@ -81,3 +81,11 @@ export declare function Day1Field(props: Day1FieldProps): import("react").JSX.El
|
|
|
81
81
|
export type Day2FieldProps = HookFieldProps<NumberInputHookFieldProps<DayValidation>>;
|
|
82
82
|
/** @internal */
|
|
83
83
|
export declare function Day2Field(props: Day2FieldProps): import("react").JSX.Element;
|
|
84
|
+
/**
|
|
85
|
+
* Props accepted by {@link usePayScheduleForm}'s `Fields.WorkweekStartDay` component.
|
|
86
|
+
*
|
|
87
|
+
* @alpha
|
|
88
|
+
*/
|
|
89
|
+
export type WorkweekStartDayFieldProps = HookFieldProps<SelectHookFieldProps<never, PayScheduleWorkweekStartDay>>;
|
|
90
|
+
/** @internal */
|
|
91
|
+
export declare function WorkweekStartDayField(props: WorkweekStartDayFieldProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { usePayScheduleForm } from './usePayScheduleForm';
|
|
2
2
|
export type { PayScheduleOptionalFieldsToRequire, UsePayScheduleFormProps, UsePayScheduleFormResult, UsePayScheduleFormReady, PayScheduleFieldsMetadata, PayScheduleFormFields, } from './usePayScheduleForm';
|
|
3
|
-
export { PayScheduleErrorCodes, type PayScheduleErrorCode, type PayScheduleFormData, type PayScheduleField, type PayScheduleFrequency, } from './payScheduleSchema';
|
|
4
|
-
export type { RequiredValidation as PayScheduleRequiredValidation, DayValidation, CustomNameFieldProps, FrequencyFieldProps, CustomTwicePerMonthFieldProps, AnchorPayDateFieldProps, AnchorEndOfPayPeriodFieldProps, Day1FieldProps, Day2FieldProps, } from './fields';
|
|
3
|
+
export { PayScheduleErrorCodes, type PayScheduleErrorCode, type PayScheduleFormData, type PayScheduleField, type PayScheduleFrequency, type PayScheduleWorkweekStartDay, } from './payScheduleSchema';
|
|
4
|
+
export type { RequiredValidation as PayScheduleRequiredValidation, DayValidation, CustomNameFieldProps, FrequencyFieldProps, CustomTwicePerMonthFieldProps, AnchorPayDateFieldProps, AnchorEndOfPayPeriodFieldProps, Day1FieldProps, Day2FieldProps, WorkweekStartDayFieldProps, } from './fields';
|
package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WorkweekStartDay } from '@gusto/embedded-api/models/components/payschedulecreaterequest';
|
|
2
3
|
import { OptionalFieldsToRequire } from '../../../../../partner-hook-utils/form/buildFormSchema';
|
|
3
4
|
/**
|
|
4
5
|
* Validation error codes emitted by {@link usePayScheduleForm} fields.
|
|
@@ -24,31 +25,37 @@ export type PayScheduleErrorCode = (typeof PayScheduleErrorCodes)[keyof typeof P
|
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
26
27
|
export type PayScheduleFrequency = "Every other week" | "Every week" | "Monthly" | "Twice per month";
|
|
28
|
+
/**
|
|
29
|
+
* Pay schedule workweek start day values accepted by {@link usePayScheduleForm}.
|
|
30
|
+
*
|
|
31
|
+
* @alpha
|
|
32
|
+
*/
|
|
33
|
+
export type PayScheduleWorkweekStartDay = WorkweekStartDay;
|
|
27
34
|
/**
|
|
28
35
|
* Union of field names managed by the pay schedule form.
|
|
29
36
|
*
|
|
30
37
|
* @public
|
|
31
38
|
*/
|
|
32
|
-
export type PayScheduleField = "anchorEndOfPayPeriod" | "anchorPayDate" | "customName" | "customTwicePerMonth" | "day1" | "day2" | "frequency";
|
|
39
|
+
export type PayScheduleField = "anchorEndOfPayPeriod" | "anchorPayDate" | "customName" | "customTwicePerMonth" | "day1" | "day2" | "frequency" | "workweekStartDay";
|
|
33
40
|
/**
|
|
34
41
|
* Shape of the values managed by the pay schedule form.
|
|
35
42
|
*
|
|
36
43
|
* @public
|
|
37
44
|
* @interface
|
|
38
45
|
*/
|
|
39
|
-
export type PayScheduleFormData = { customName: string; frequency: "Every other week" | "Every week" | "Monthly" | "Twice per month"; customTwicePerMonth: string; anchorPayDate: string | null; anchorEndOfPayPeriod: string | null; day1: number; day2: number; };
|
|
46
|
+
export type PayScheduleFormData = { customName: string; frequency: "Every other week" | "Every week" | "Monthly" | "Twice per month"; customTwicePerMonth: string; anchorPayDate: string | null; anchorEndOfPayPeriod: string | null; day1: number; day2: number; workweekStartDay: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | null; };
|
|
40
47
|
/** @internal */
|
|
41
48
|
export type PayScheduleFormOutputs = PayScheduleFormData;
|
|
42
49
|
/**
|
|
43
50
|
* Configuration for promoting optional pay schedule fields to required in a given mode.
|
|
44
51
|
*
|
|
45
52
|
* @remarks
|
|
46
|
-
* Only fields that are optional by default can be promoted
|
|
47
|
-
* `customTwicePerMonth`
|
|
53
|
+
* Only fields that are optional by default can be promoted:
|
|
54
|
+
* `customTwicePerMonth`, `day1`, `day2`, and `workweekStartDay`.
|
|
48
55
|
*
|
|
49
56
|
* @public
|
|
50
57
|
*/
|
|
51
|
-
export type PayScheduleOptionalFieldsToRequire = { create?: ("customTwicePerMonth" | "day1" | "day2")[] | undefined; update?: ("customTwicePerMonth" | "day1" | "day2")[] | undefined; };
|
|
58
|
+
export type PayScheduleOptionalFieldsToRequire = { create?: ("customTwicePerMonth" | "day1" | "day2" | "workweekStartDay")[] | undefined; update?: ("customTwicePerMonth" | "day1" | "day2" | "workweekStartDay")[] | undefined; };
|
|
52
59
|
/** @internal */
|
|
53
60
|
interface PayScheduleSchemaOptions {
|
|
54
61
|
mode?: 'create' | 'update';
|
|
@@ -68,5 +75,14 @@ export declare function createPayScheduleSchema(options?: PayScheduleSchemaOptio
|
|
|
68
75
|
anchorEndOfPayPeriod: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
|
|
69
76
|
day1: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
|
|
70
77
|
day2: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
|
|
78
|
+
workweekStartDay: z.ZodNullable<z.ZodEnum<{
|
|
79
|
+
readonly Sunday: "Sunday";
|
|
80
|
+
readonly Monday: "Monday";
|
|
81
|
+
readonly Tuesday: "Tuesday";
|
|
82
|
+
readonly Wednesday: "Wednesday";
|
|
83
|
+
readonly Thursday: "Thursday";
|
|
84
|
+
readonly Friday: "Friday";
|
|
85
|
+
readonly Saturday: "Saturday";
|
|
86
|
+
}>>;
|
|
71
87
|
}>;
|
|
72
88
|
export {};
|
package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import { ComponentType } from 'react';
|
|
|
2
2
|
import { UseFormProps } from 'react-hook-form';
|
|
3
3
|
import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
|
|
4
4
|
import { PaySchedulePreviewPayPeriod } from '@gusto/embedded-api/models/components/payschedulepreviewpayperiod';
|
|
5
|
+
import { WorkweekStartDay } from '@gusto/embedded-api/models/components/payschedulecreaterequest';
|
|
5
6
|
import { PayScheduleOptionalFieldsToRequire, PayScheduleFormData } from './payScheduleSchema';
|
|
6
|
-
import { CustomNameFieldProps, FrequencyFieldProps, CustomTwicePerMonthFieldProps, AnchorPayDateFieldProps, AnchorEndOfPayPeriodFieldProps, Day1FieldProps, Day2FieldProps } from './fields';
|
|
7
|
+
import { CustomNameFieldProps, FrequencyFieldProps, CustomTwicePerMonthFieldProps, AnchorPayDateFieldProps, AnchorEndOfPayPeriodFieldProps, Day1FieldProps, Day2FieldProps, WorkweekStartDayFieldProps } from './fields';
|
|
7
8
|
import { BaseFormHookReady, FieldMetadata, HookLoadingResult, HookSubmitResult } from '../../../../../partner-hook-utils/types';
|
|
8
9
|
export type { PayScheduleOptionalFieldsToRequire } from './payScheduleSchema';
|
|
9
10
|
/**
|
|
@@ -30,6 +31,15 @@ export interface UsePayScheduleFormProps {
|
|
|
30
31
|
validationMode?: UseFormProps['mode'];
|
|
31
32
|
/** Auto-focus the first invalid field on submit. Set to `false` when using `composeSubmitHandler` so submit-time focus is coordinated across multiple forms. Defaults to `true`. */
|
|
32
33
|
shouldFocusError?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Renders `Fields.WorkweekStartDay` disabled while still submitting its current value,
|
|
36
|
+
* for partners that compute the workweek start day themselves and don't want end users
|
|
37
|
+
* editing it directly. Defaults to `false`. Has no effect unless the `payrollRegularRateOfPay`
|
|
38
|
+
* unstable feature is enabled.
|
|
39
|
+
*
|
|
40
|
+
* @alpha
|
|
41
|
+
*/
|
|
42
|
+
disableWorkweekStartDayEditing?: boolean;
|
|
33
43
|
}
|
|
34
44
|
/**
|
|
35
45
|
* Pre-bound field components exposed on `usePayScheduleForm().form.Fields`.
|
|
@@ -56,6 +66,14 @@ export interface PayScheduleFormFields {
|
|
|
56
66
|
Day1: ComponentType<Day1FieldProps> | undefined;
|
|
57
67
|
/** Bound to `day2`. Last-pay-day-of-month number input. Available when frequency is `'Twice per month'` with `'custom'` strategy. */
|
|
58
68
|
Day2: ComponentType<Day2FieldProps> | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Bound to `workweekStartDay`. Workweek start day selector, used for regular rate of pay
|
|
71
|
+
* overtime calculations. `undefined` unless the `payrollRegularRateOfPay` unstable feature
|
|
72
|
+
* is enabled.
|
|
73
|
+
*
|
|
74
|
+
* @alpha
|
|
75
|
+
*/
|
|
76
|
+
WorkweekStartDay: ComponentType<WorkweekStartDayFieldProps> | undefined;
|
|
59
77
|
}
|
|
60
78
|
/**
|
|
61
79
|
* Ready-state shape returned by {@link usePayScheduleForm} once data has loaded.
|
|
@@ -157,7 +175,7 @@ export interface UsePayScheduleFormReady extends BaseFormHookReady<PayScheduleFi
|
|
|
157
175
|
* }
|
|
158
176
|
* ```
|
|
159
177
|
*/
|
|
160
|
-
export declare function usePayScheduleForm({ companyId, payScheduleId, optionalFieldsToRequire, defaultValues: partnerDefaults, validationMode, shouldFocusError, }: UsePayScheduleFormProps): HookLoadingResult | UsePayScheduleFormReady;
|
|
178
|
+
export declare function usePayScheduleForm({ companyId, payScheduleId, optionalFieldsToRequire, defaultValues: partnerDefaults, validationMode, shouldFocusError, disableWorkweekStartDayEditing, }: UsePayScheduleFormProps): HookLoadingResult | UsePayScheduleFormReady;
|
|
161
179
|
/**
|
|
162
180
|
* Discriminated union returned by {@link usePayScheduleForm}.
|
|
163
181
|
*
|
|
@@ -169,4 +187,4 @@ export type UsePayScheduleFormResult = HookLoadingResult | UsePayScheduleFormRea
|
|
|
169
187
|
*
|
|
170
188
|
* @public
|
|
171
189
|
*/
|
|
172
|
-
export type PayScheduleFieldsMetadata = { customName: FieldMetadata; frequency: import("../../../../../partner-hook-utils/types").FieldMetadataWithOptions<"Every other week" | "Every week" | "Monthly" | "Twice per month">; customTwicePerMonth: import("../../../../../partner-hook-utils/types").FieldMetadataWithOptions<string>; anchorPayDate: FieldMetadata; anchorEndOfPayPeriod: FieldMetadata; day1: FieldMetadata; day2: FieldMetadata; };
|
|
190
|
+
export type PayScheduleFieldsMetadata = { customName: FieldMetadata; frequency: import("../../../../../partner-hook-utils/types").FieldMetadataWithOptions<"Every other week" | "Every week" | "Monthly" | "Twice per month">; customTwicePerMonth: import("../../../../../partner-hook-utils/types").FieldMetadataWithOptions<string>; anchorPayDate: FieldMetadata; anchorEndOfPayPeriod: FieldMetadata; day1: FieldMetadata; day2: FieldMetadata; workweekStartDay: import("../../../../../partner-hook-utils/types").FieldMetadataWithOptions<WorkweekStartDay>; };
|
package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { ContractorTab } from './ManagementContractorList';
|
|
|
4
4
|
export interface ManagementContractorListViewProps extends Pick<Extract<UseContractorListResult, {
|
|
5
5
|
isLoading: false;
|
|
6
6
|
}>, 'pagination' | 'status'> {
|
|
7
|
+
/** CSS class name applied to the root element. */
|
|
8
|
+
className?: string;
|
|
7
9
|
contractors: ContractorWithActions[];
|
|
8
10
|
isFetching: boolean;
|
|
9
11
|
selectedTab: ContractorTab;
|
|
@@ -19,4 +21,4 @@ export interface ManagementContractorListViewProps extends Pick<Extract<UseContr
|
|
|
19
21
|
onAddContractor: () => void;
|
|
20
22
|
}
|
|
21
23
|
/** @internal */
|
|
22
|
-
export declare function ManagementContractorListView({ contractors, isFetching, selectedTab, onTabChange, status, pagination, onEdit, onView, onDismiss, onRehire, onDelete, onCancelSelfOnboarding, onCancelDismissal, onCancelRehire, onAddContractor, }: ManagementContractorListViewProps): import("react").JSX.Element;
|
|
24
|
+
export declare function ManagementContractorListView({ className, contractors, isFetching, selectedTab, onTabChange, status, pagination, onEdit, onView, onDismiss, onRehire, onDelete, onCancelSelfOnboarding, onCancelDismissal, onCancelRehire, onAddContractor, }: ManagementContractorListViewProps): import("react").JSX.Element;
|
|
@@ -3,6 +3,8 @@ import { UseContractorListResult, ContractorWithActions } from '../shared/useCon
|
|
|
3
3
|
export interface ContractorListViewProps extends Pick<Extract<UseContractorListResult, {
|
|
4
4
|
isLoading: false;
|
|
5
5
|
}>, 'pagination' | 'status'> {
|
|
6
|
+
/** CSS class name applied to the root element. */
|
|
7
|
+
className?: string;
|
|
6
8
|
contractors: ContractorWithActions[];
|
|
7
9
|
isFetching: boolean;
|
|
8
10
|
successMessage?: string;
|
|
@@ -13,4 +15,4 @@ export interface ContractorListViewProps extends Pick<Extract<UseContractorListR
|
|
|
13
15
|
onContinue: () => void;
|
|
14
16
|
}
|
|
15
17
|
/** @internal */
|
|
16
|
-
export declare function ContractorListView({ contractors, isFetching, pagination, status, successMessage, onEdit, onDelete, onCancelSelfOnboarding, onAddContractor, onContinue, }: ContractorListViewProps): import("react").JSX.Element;
|
|
18
|
+
export declare function ContractorListView({ className, contractors, isFetching, pagination, status, successMessage, onEdit, onDelete, onCancelSelfOnboarding, onAddContractor, onContinue, }: ContractorListViewProps): import("react").JSX.Element;
|