@gusto/embedded-react-sdk 0.57.3 → 0.58.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 +88 -0
- package/dist/components/Common/DataView/DataCards/DataCards.js +98 -66
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +11 -9
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js +86 -75
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataView.js.map +1 -1
- package/dist/components/Common/DataView/getSortControls.js +22 -0
- package/dist/components/Common/DataView/getSortControls.js.map +1 -0
- package/dist/components/Common/DataView/useDataView.js +30 -24
- package/dist/components/Common/DataView/useDataView.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.js +65 -25
- package/dist/components/Common/UI/Table/Table.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.module.scss.js +8 -4
- package/dist/components/Common/UI/Table/Table.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -7
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -4
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +30 -45
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js +11 -12
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +78 -83
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +3 -4
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/Compensation/management/CompensationEditForm.js +45 -54
- package/dist/components/Contractor/Compensation/management/CompensationEditForm.js.map +1 -1
- package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js +17 -22
- package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +1 -0
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +122 -113
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
- package/dist/components/Contractor/ContractorList/shared/useContractorList.js +63 -54
- package/dist/components/Contractor/ContractorList/shared/useContractorList.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js +39 -48
- package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js +76 -69
- package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js +27 -29
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js +14 -12
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js.map +1 -1
- package/dist/components/Contractor/shared/hourlyRate.js +14 -0
- package/dist/components/Contractor/shared/hourlyRate.js.map +1 -0
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +63 -63
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/onboarding/ListView.js +65 -74
- package/dist/components/Employee/PaymentMethod/onboarding/ListView.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +16 -16
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +84 -82
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js +8 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js.map +1 -0
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +91 -88
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +16 -16
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +146 -134
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +14 -12
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +34 -33
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +49 -48
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +0 -4
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +51 -38
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +121 -102
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +79 -74
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +92 -83
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +23 -27
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +82 -75
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js +416 -0
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js.map +1 -0
- package/dist/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js → RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js} +1 -1
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js +97 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js +106 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js.map +1 -0
- package/dist/components/Payroll/{TransitionCreation/TransitionCreationPresentation.module.scss.js → TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js} +1 -1
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js +10 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +86 -64
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +126 -77
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/index.js +16 -20
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js +11 -14
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +18 -17
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js +31 -0
- package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js.map +1 -0
- package/dist/contexts/FeaturesProvider/FeaturesProvider.js +14 -0
- package/dist/contexts/FeaturesProvider/FeaturesProvider.js.map +1 -0
- package/dist/contexts/FeaturesProvider/useFeature.js +7 -0
- package/dist/contexts/FeaturesProvider/useFeature.js.map +1 -0
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +32 -30
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/i18n/I18n.js +2 -3
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.Profile.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -23
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollLanding.json.js +1 -1
- package/dist/i18n/en/{Payroll.UNSTABLE_PayrollEditEmployee.json.js → Payroll.RropPayrollEditEmployee.json.js} +42 -38
- package/dist/i18n/en/Payroll.RropPayrollEditEmployee.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionConfiguration.json.js +28 -0
- package/dist/i18n/en/Payroll.TransitionConfiguration.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +16 -12
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -1
- package/dist/i18n/en/common.json.js +1 -1
- package/dist/package.json.js +1 -1
- package/dist/partner-hook-utils/form/composeSubmitHandler.js +55 -48
- package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
- package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +31 -29
- package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
- package/dist/shared/constants.js +2 -1
- package/dist/shared/constants.js.map +1 -1
- package/dist/src/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
- package/dist/src/components/Common/DataView/DataTable/DataTable.d.ts +3 -1
- package/dist/src/components/Common/DataView/DataView.d.ts +2 -0
- package/dist/src/components/Common/DataView/getSortControls.d.ts +24 -0
- package/dist/src/components/Common/DataView/useDataView.d.ts +22 -1
- package/dist/src/components/Common/UI/Table/TableTypes.d.ts +71 -2
- package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +1 -9
- package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +0 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +3 -14
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +2 -2
- package/dist/src/components/Contractor/ContractorList/shared/index.d.ts +1 -1
- package/dist/src/components/Contractor/ContractorList/shared/useContractorList.d.ts +38 -0
- package/dist/src/components/Contractor/shared/hourlyRate.d.ts +23 -0
- package/dist/src/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.d.ts +9 -0
- package/dist/src/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +2 -0
- package/dist/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +8 -6
- package/dist/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +0 -8
- package/dist/src/components/Payroll/PayrollFlow/PayrollFlow.d.ts +5 -3
- package/dist/src/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +2 -3
- package/dist/src/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollLanding/PayrollLanding.d.ts +18 -5
- package/dist/src/components/Payroll/PayrollList/PayrollList.d.ts +11 -5
- package/dist/src/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts → RropPayrollEditEmployee/RropPayrollEditEmployee.d.ts} +9 -5
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfiguration.d.ts +55 -0
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.d.ts +9 -0
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.d.ts +52 -0
- package/dist/src/components/Payroll/TransitionConfiguration/index.d.ts +2 -0
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +5 -2
- package/dist/src/components/Payroll/index.d.ts +2 -6
- package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.d.ts +14 -0
- package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.test.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -1
- package/dist/src/contexts/FeaturesProvider/FeaturesProvider.d.ts +21 -0
- package/dist/src/contexts/FeaturesProvider/useFeature.d.ts +53 -0
- package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +3 -0
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +38 -10
- package/dist/src/contexts/index.d.ts +1 -0
- package/dist/src/i18n/en/common.json.d.ts +5 -1
- package/dist/src/i18n/types.d.ts +113 -66
- package/dist/src/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +9 -7
- package/dist/src/shared/constants.d.ts +4 -2
- package/dist/src/test-utils/renderWithProviders.d.ts +2 -0
- package/dist/style.css +1 -1
- package/docs/guides/endpoint-inventory.json +24 -27
- package/package.json +15 -14
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +0 -29
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +0 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js +0 -60
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +0 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +0 -31
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +0 -1
- package/dist/components/Payroll/Transition/transitionStateMachine.js +0 -49
- package/dist/components/Payroll/Transition/transitionStateMachine.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +0 -100
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +0 -110
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +0 -21
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js +0 -48
- package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js +0 -35
- package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js +0 -23
- package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js +0 -29
- package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +0 -411
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +0 -1
- package/dist/i18n/en/Payroll.Transition.json.js +0 -8
- package/dist/i18n/en/Payroll.Transition.json.js.map +0 -1
- package/dist/i18n/en/Payroll.TransitionCreation.json.js +0 -26
- package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +0 -1
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +0 -1
- package/dist/src/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +0 -7
- package/dist/src/components/Payroll/Transition/TransitionFlow.d.ts +0 -55
- package/dist/src/components/Payroll/Transition/TransitionFlowComponents.d.ts +0 -52
- package/dist/src/components/Payroll/Transition/index.d.ts +0 -2
- package/dist/src/components/Payroll/Transition/transitionStateMachine.d.ts +0 -29
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreation.d.ts +0 -22
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +0 -9
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +0 -57
- package/dist/src/components/Payroll/TransitionCreation/index.d.ts +0 -2
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayroll.d.ts +0 -55
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollComponents.d.ts +0 -24
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollTypes.d.ts +0 -23
- package/dist/src/components/Payroll/TransitionPayroll/index.d.ts +0 -2
- package/dist/src/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.d.ts +0 -15
- package/dist/src/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.d.ts +0 -28
- /package/dist/src/components/{Payroll/Transition/transitionStateMachine.test.d.ts → Common/DataView/getSortControls.test.d.ts} +0 -0
|
@@ -4,24 +4,52 @@
|
|
|
4
4
|
* @remarks
|
|
5
5
|
* Pass to {@link GustoProvider} via the `unstableFeatures` prop to enable a feature ahead of its
|
|
6
6
|
* public release. Every flag defaults to disabled when omitted. When a feature graduates to
|
|
7
|
-
* public release, its flag is deleted from this interface
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* public release, its flag is deleted from this interface — there is no deprecation step. The
|
|
8
|
+
* conditional checks that read it are deleted too, or moved to a {@link Features} flag when the
|
|
9
|
+
* released feature still needs a way to turn it off. This interface may have no flags at all
|
|
10
|
+
* at any given time — e.g. immediately after the last active flag graduates and before the next
|
|
11
|
+
* one is added — the opt-in mechanism itself is permanent even when nothing is currently gated
|
|
12
|
+
* behind it.
|
|
11
13
|
*
|
|
12
14
|
* @alpha
|
|
13
15
|
*/
|
|
14
16
|
export interface UnstableFeatures {
|
|
15
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Recording contractor payments that were made outside of Gusto.
|
|
19
|
+
*
|
|
20
|
+
* When `true`, `ContractorManagement.PaymentsList` (and `ContractorManagement.PaymentFlow`, which
|
|
21
|
+
* renders it) shows a "Record a historical payment" call to action that opens the historical
|
|
22
|
+
* payment flow. `ContractorManagement.HistoricalPaymentFlow`,
|
|
23
|
+
* `ContractorManagement.CreateHistoricalPayment`, and
|
|
24
|
+
* `ContractorManagement.HistoricalPaymentSummary` can be mounted.
|
|
25
|
+
*
|
|
26
|
+
* When `false`, the call to action is hidden and those three components throw when mounted.
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue `false`
|
|
29
|
+
*/
|
|
16
30
|
historicalPayments?: boolean;
|
|
17
31
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
32
|
+
* Managing pay schedules and their employee assignments after onboarding.
|
|
33
|
+
*
|
|
34
|
+
* When `true`, `CompanyManagement.PaySchedule` and `CompanyManagement.PayScheduleAssignment` can
|
|
35
|
+
* be mounted.
|
|
36
|
+
*
|
|
37
|
+
* When `false`, both components throw when mounted. `CompanyOnboarding.PaySchedule` is not
|
|
38
|
+
* affected.
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue `false`
|
|
20
41
|
*/
|
|
21
|
-
payrollRegularRateOfPay?: boolean;
|
|
22
|
-
/** Enables the in-development `CompanyManagement.PaySchedule` flow for managing pay schedules and their assignments after onboarding. */
|
|
23
42
|
managePaySchedules?: boolean;
|
|
24
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Reviewing a company's tax payments and their liabilities.
|
|
45
|
+
*
|
|
46
|
+
* When `true`, `CompanyManagement.TaxPaymentsFlow`, `CompanyManagement.TaxPaymentsList`, and
|
|
47
|
+
* `CompanyManagement.TaxPaymentDetail` can be mounted.
|
|
48
|
+
*
|
|
49
|
+
* When `false`, all three components throw when mounted.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue `false`
|
|
52
|
+
*/
|
|
25
53
|
taxPayments?: boolean;
|
|
26
54
|
}
|
|
27
55
|
/**
|
|
@@ -6,3 +6,4 @@ export * from './ComponentAdapter/componentAdapterTypes';
|
|
|
6
6
|
export type { GustoSDKTheme, GustoSDKThemeColors } from './ThemeProvider/theme';
|
|
7
7
|
export { useNonce } from './NonceProvider';
|
|
8
8
|
export type { UnstableFeatures } from './UnstableFeaturesProvider/useUnstableFeature';
|
|
9
|
+
export type { Features } from './FeaturesProvider/useFeature';
|
|
@@ -160,7 +160,11 @@ declare const _default: {
|
|
|
160
160
|
},
|
|
161
161
|
"card": {
|
|
162
162
|
"selectRowLabel": "Select row",
|
|
163
|
-
"selectAllRowsLabel": "Select all rows"
|
|
163
|
+
"selectAllRowsLabel": "Select all rows",
|
|
164
|
+
"sortByLabel": "Sort by",
|
|
165
|
+
"sortDefaultOption": "Default order",
|
|
166
|
+
"sortAscendingOption": "{{column}} (A\u2013Z)",
|
|
167
|
+
"sortDescendingOption": "{{column}} (Z\u2013A)"
|
|
164
168
|
},
|
|
165
169
|
"signatoryTitles": {
|
|
166
170
|
"owner": "Owner",
|
package/dist/src/i18n/types.d.ts
CHANGED
|
@@ -258,14 +258,12 @@ export interface Resources {
|
|
|
258
258
|
'Payroll.RecoveryCasesList': Translations.PayrollRecoveryCasesList
|
|
259
259
|
/** */
|
|
260
260
|
'Payroll.RecoveryCasesResubmit': Translations.PayrollRecoveryCasesResubmit
|
|
261
|
+
/** @internal */
|
|
262
|
+
'Payroll.RropPayrollEditEmployee': Translations.PayrollRropPayrollEditEmployee
|
|
261
263
|
/** */
|
|
262
|
-
'Payroll.
|
|
263
|
-
/** */
|
|
264
|
-
'Payroll.TransitionCreation': Translations.PayrollTransitionCreation
|
|
264
|
+
'Payroll.TransitionConfiguration': Translations.PayrollTransitionConfiguration
|
|
265
265
|
/** */
|
|
266
266
|
'Payroll.TransitionPayrollAlert': Translations.PayrollTransitionPayrollAlert
|
|
267
|
-
/** @internal */
|
|
268
|
-
'Payroll.UNSTABLE_PayrollEditEmployee': Translations.PayrollUNSTABLE_PayrollEditEmployee
|
|
269
267
|
/** */
|
|
270
268
|
'Payroll.WireInstructions': Translations.PayrollWireInstructions
|
|
271
269
|
/** */
|
|
@@ -4077,6 +4075,14 @@ export namespace Translations {
|
|
|
4077
4075
|
wageType: {
|
|
4078
4076
|
/** @defaultValue `"Wage Type"` */
|
|
4079
4077
|
label: string
|
|
4078
|
+
/** @defaultValue `"Fixed"` */
|
|
4079
|
+
fixedLabel: string
|
|
4080
|
+
/** @defaultValue `"Hourly"` */
|
|
4081
|
+
hourlyLabel: string
|
|
4082
|
+
/** @defaultValue `"Pay a fixed amount each pay period."` */
|
|
4083
|
+
fixedDescription: string
|
|
4084
|
+
/** @defaultValue `"Pay based on hours worked."` */
|
|
4085
|
+
hourlyDescription: string
|
|
4080
4086
|
}
|
|
4081
4087
|
hourlyRate: {
|
|
4082
4088
|
/** @defaultValue `"Hourly Rate"` */
|
|
@@ -8146,6 +8152,12 @@ export namespace Translations {
|
|
|
8146
8152
|
/** @defaultValue `"Hours must be less than or equal to 99,999"` */
|
|
8147
8153
|
maxHours: string
|
|
8148
8154
|
}
|
|
8155
|
+
/** @defaultValue `"Preapproved hours"` */
|
|
8156
|
+
preapprovedHoursColumn: string
|
|
8157
|
+
/** @defaultValue `"Additional hours"` */
|
|
8158
|
+
additionalHoursColumn: string
|
|
8159
|
+
/** @defaultValue `"Type"` */
|
|
8160
|
+
timeOffTypeColumn: string
|
|
8149
8161
|
}
|
|
8150
8162
|
/** Translation keys for the `Payroll.PayrollFlow` i18n namespace. */
|
|
8151
8163
|
export interface PayrollPayrollFlow {
|
|
@@ -8246,6 +8258,8 @@ export namespace Translations {
|
|
|
8246
8258
|
breadcrumbs: {
|
|
8247
8259
|
/** @defaultValue `"Run payroll"` */
|
|
8248
8260
|
landing: string
|
|
8261
|
+
/** @defaultValue `"Transition payroll"` */
|
|
8262
|
+
transitionConfiguration: string
|
|
8249
8263
|
/** @defaultValue `"Summary for {{startDate}}-{{endDate}}"` */
|
|
8250
8264
|
overview: string
|
|
8251
8265
|
/** @defaultValue `"Payroll receipt for {{startDate}}-{{endDate}}"` */
|
|
@@ -8849,67 +8863,8 @@ export namespace Translations {
|
|
|
8849
8863
|
}
|
|
8850
8864
|
}
|
|
8851
8865
|
}
|
|
8852
|
-
/** Translation keys for the `Payroll.
|
|
8853
|
-
export interface
|
|
8854
|
-
/** @defaultValue `"Transition Payroll"` */
|
|
8855
|
-
breadcrumbLabel: string
|
|
8856
|
-
}
|
|
8857
|
-
/** Translation keys for the `Payroll.TransitionCreation` i18n namespace. */
|
|
8858
|
-
export interface PayrollTransitionCreation {
|
|
8859
|
-
/** @defaultValue `"Transition Payroll"` */
|
|
8860
|
-
breadcrumbLabel: string
|
|
8861
|
-
/** @defaultValue `"Transition Payroll"` */
|
|
8862
|
-
pageTitle: string
|
|
8863
|
-
/** @defaultValue `"A transition payroll covers the gap between your old and new pay schedules."` */
|
|
8864
|
-
pageDescription: string
|
|
8865
|
-
/** @defaultValue `"When a pay schedule changes, there may be workdays that fall between the end of the old schedule and the start of the new one. This transition payroll ensures employees are paid for those days."` */
|
|
8866
|
-
transitionExplanation: string
|
|
8867
|
-
/** @defaultValue `"Transition Details"` */
|
|
8868
|
-
detailsHeading: string
|
|
8869
|
-
/** @defaultValue `"Pay period"` */
|
|
8870
|
-
payPeriodLabel: string
|
|
8871
|
-
/** @defaultValue `"Pay schedule"` */
|
|
8872
|
-
payScheduleLabel: string
|
|
8873
|
-
/** @defaultValue `"Check date"` */
|
|
8874
|
-
checkDateLabel: string
|
|
8875
|
-
/** @defaultValue `"Continue"` */
|
|
8876
|
-
continueCta: string
|
|
8877
|
-
errors: {
|
|
8878
|
-
/** @defaultValue `"Transition payroll was created but no payroll ID was returned"` */
|
|
8879
|
-
missingPayrollId: string
|
|
8880
|
-
/** @defaultValue `"Check date is required"` */
|
|
8881
|
-
checkDateRequired: string
|
|
8882
|
-
/** @defaultValue `"Check date must be at least {{count}} business day from today"` */
|
|
8883
|
-
checkDateAchLeadTime_one: string
|
|
8884
|
-
/** @defaultValue `"Check date must be at least {{count}} business days from today"` */
|
|
8885
|
-
checkDateAchLeadTime_other: string
|
|
8886
|
-
}
|
|
8887
|
-
}
|
|
8888
|
-
/** Translation keys for the `Payroll.TransitionPayrollAlert` i18n namespace. */
|
|
8889
|
-
export interface PayrollTransitionPayrollAlert {
|
|
8890
|
-
/** @defaultValue `"Transition payroll - {{dateRange}}"` */
|
|
8891
|
-
alertTitle: string
|
|
8892
|
-
/** @defaultValue `"Because you changed your pay schedule, you'll need to run some transition payrolls. Transition payrolls let you pay employees for any workdays during gaps between pay schedules. You may choose to skip them, but it is your responsibility to ensure employees are paid properly. Regular payroll functionality is blocked until you either run or skip transition payrolls."` */
|
|
8893
|
-
alertDescription: string
|
|
8894
|
-
/** @defaultValue `"Run Transition Payroll"` */
|
|
8895
|
-
runPayroll: string
|
|
8896
|
-
/** @defaultValue `"Skip this payroll"` */
|
|
8897
|
-
skipPayroll: string
|
|
8898
|
-
/** @defaultValue `"Transition payroll skipped"` */
|
|
8899
|
-
skipSuccessAlert: string
|
|
8900
|
-
skipDialog: {
|
|
8901
|
-
/** @defaultValue `"Skip {{dateRange}} transition payroll?"` */
|
|
8902
|
-
title: string
|
|
8903
|
-
/** @defaultValue `"Skipping this payroll means employees will not be paid for the transition period. It is your responsibility to ensure employees are paid properly."` */
|
|
8904
|
-
body: string
|
|
8905
|
-
/** @defaultValue `"Skip payroll"` */
|
|
8906
|
-
confirmCta: string
|
|
8907
|
-
/** @defaultValue `"Cancel"` */
|
|
8908
|
-
cancelCta: string
|
|
8909
|
-
}
|
|
8910
|
-
}
|
|
8911
|
-
/** Translation keys for the `Payroll.UNSTABLE_PayrollEditEmployee` i18n namespace. @internal */
|
|
8912
|
-
export interface PayrollUNSTABLE_PayrollEditEmployee {
|
|
8866
|
+
/** Translation keys for the `Payroll.RropPayrollEditEmployee` i18n namespace. @internal */
|
|
8867
|
+
export interface PayrollRropPayrollEditEmployee {
|
|
8913
8868
|
/** @defaultValue `"Edit payroll for {{employeeName}}"` */
|
|
8914
8869
|
pageTitle: string
|
|
8915
8870
|
/** @defaultValue `"{{firstName}} {{lastName}}"` */
|
|
@@ -9042,6 +8997,90 @@ export namespace Translations {
|
|
|
9042
8997
|
/** @defaultValue `"Hours must be less than or equal to 99,999"` */
|
|
9043
8998
|
maxHours: string
|
|
9044
8999
|
}
|
|
9000
|
+
/** @defaultValue `"Preapproved hours"` */
|
|
9001
|
+
preapprovedHoursColumn: string
|
|
9002
|
+
/** @defaultValue `"Additional hours"` */
|
|
9003
|
+
additionalHoursColumn: string
|
|
9004
|
+
}
|
|
9005
|
+
/** Translation keys for the `Payroll.TransitionConfiguration` i18n namespace. */
|
|
9006
|
+
export interface PayrollTransitionConfiguration {
|
|
9007
|
+
/** @defaultValue `"Edit transition payroll"` */
|
|
9008
|
+
pageTitle: string
|
|
9009
|
+
/** @defaultValue `"A transition payroll covers the gap between your old and new pay schedules."` */
|
|
9010
|
+
pageDescription: string
|
|
9011
|
+
/** @defaultValue `"When a pay schedule changes, there may be workdays that fall between the end of the old schedule and the start of the new one. This transition payroll ensures employees are paid for those days."` */
|
|
9012
|
+
transitionExplanation: string
|
|
9013
|
+
/** @defaultValue `"Transition Details"` */
|
|
9014
|
+
detailsHeading: string
|
|
9015
|
+
/** @defaultValue `"Pay period"` */
|
|
9016
|
+
payPeriodLabel: string
|
|
9017
|
+
/** @defaultValue `"Pay schedule"` */
|
|
9018
|
+
payScheduleLabel: string
|
|
9019
|
+
/** @defaultValue `"Payment date"` */
|
|
9020
|
+
checkDateLabel: string
|
|
9021
|
+
/** @defaultValue `"Continue"` */
|
|
9022
|
+
continueCta: string
|
|
9023
|
+
errors: {
|
|
9024
|
+
/** @defaultValue `"This transition payroll has no employees to update, so its settings could not be saved."` */
|
|
9025
|
+
noEmployeeCompensations: string
|
|
9026
|
+
}
|
|
9027
|
+
deductions: {
|
|
9028
|
+
/** @defaultValue `"Deductions and contributions"` */
|
|
9029
|
+
title: string
|
|
9030
|
+
/** @defaultValue `"Employers often block deductions and contributions from certain checks (i.e. bonus checks), since they are calculated on a per-pay-period basis. Deductions and contributions include loan repayments, garnishments, benefits, etc. Taxes will be included regardless of what is chosen."` */
|
|
9031
|
+
description: string
|
|
9032
|
+
options: {
|
|
9033
|
+
/** @defaultValue `"Make all the regular deductions and contributions."` */
|
|
9034
|
+
include: string
|
|
9035
|
+
/** @defaultValue `"Block all deductions and contributions, except 401(k). Taxes will be included."` */
|
|
9036
|
+
skip: string
|
|
9037
|
+
}
|
|
9038
|
+
}
|
|
9039
|
+
wageTypeGroups: {
|
|
9040
|
+
regular: {
|
|
9041
|
+
/** @defaultValue `"Regular hours, regular wages, and tips"` */
|
|
9042
|
+
label: string
|
|
9043
|
+
/** @defaultValue `"These earnings should be taxed at a rate that matches your employees' regular pay schedule."` */
|
|
9044
|
+
description: string
|
|
9045
|
+
}
|
|
9046
|
+
supplemental: {
|
|
9047
|
+
/** @defaultValue `"Supplemental wages, bonus wages, commission"` */
|
|
9048
|
+
label: string
|
|
9049
|
+
/** @defaultValue `"These are typically taxed at the rate required by the IRS for federal income taxes and by the state for state income taxes."` */
|
|
9050
|
+
description: string
|
|
9051
|
+
}
|
|
9052
|
+
reimbursement: {
|
|
9053
|
+
/** @defaultValue `"Reimbursements"` */
|
|
9054
|
+
label: string
|
|
9055
|
+
}
|
|
9056
|
+
}
|
|
9057
|
+
}
|
|
9058
|
+
/** Translation keys for the `Payroll.TransitionPayrollAlert` i18n namespace. */
|
|
9059
|
+
export interface PayrollTransitionPayrollAlert {
|
|
9060
|
+
/** @defaultValue `"Transition payroll - {{dateRange}}"` */
|
|
9061
|
+
alertTitle: string
|
|
9062
|
+
/** @defaultValue `"You have {{count}} transition payrolls to run or skip"` */
|
|
9063
|
+
multipleAlertTitle: string
|
|
9064
|
+
/** @defaultValue `"Because you changed your pay schedule, you'll need to run some transition payrolls. Transition payrolls let you pay employees for any workdays during gaps between pay schedules. You may choose to skip them, but it is your responsibility to ensure employees are paid properly. Regular payroll functionality is blocked until you either run or skip transition payrolls."` */
|
|
9065
|
+
alertDescription: string
|
|
9066
|
+
/** @defaultValue `"Run Transition Payroll"` */
|
|
9067
|
+
runPayroll: string
|
|
9068
|
+
/** @defaultValue `"Review and submit"` */
|
|
9069
|
+
reviewPayroll: string
|
|
9070
|
+
/** @defaultValue `"Skip this payroll"` */
|
|
9071
|
+
skipPayroll: string
|
|
9072
|
+
/** @defaultValue `"Transition payroll skipped"` */
|
|
9073
|
+
skipSuccessAlert: string
|
|
9074
|
+
skipDialog: {
|
|
9075
|
+
/** @defaultValue `"Skip {{dateRange}} transition payroll?"` */
|
|
9076
|
+
title: string
|
|
9077
|
+
/** @defaultValue `"Skipping this payroll means employees will not be paid for the transition period. It is your responsibility to ensure employees are paid properly."` */
|
|
9078
|
+
body: string
|
|
9079
|
+
/** @defaultValue `"Skip payroll"` */
|
|
9080
|
+
confirmCta: string
|
|
9081
|
+
/** @defaultValue `"Cancel"` */
|
|
9082
|
+
cancelCta: string
|
|
9083
|
+
}
|
|
9045
9084
|
}
|
|
9046
9085
|
/** Translation keys for the `Payroll.WireInstructions` i18n namespace. */
|
|
9047
9086
|
export interface PayrollWireInstructions {
|
|
@@ -9399,6 +9438,14 @@ export namespace Translations {
|
|
|
9399
9438
|
selectRowLabel: string
|
|
9400
9439
|
/** @defaultValue `"Select all rows"` */
|
|
9401
9440
|
selectAllRowsLabel: string
|
|
9441
|
+
/** @defaultValue `"Sort by"` */
|
|
9442
|
+
sortByLabel: string
|
|
9443
|
+
/** @defaultValue `"Default order"` */
|
|
9444
|
+
sortDefaultOption: string
|
|
9445
|
+
/** @defaultValue `"{{column}} (A–Z)"` */
|
|
9446
|
+
sortAscendingOption: string
|
|
9447
|
+
/** @defaultValue `"{{column}} (Z–A)"` */
|
|
9448
|
+
sortDescendingOption: string
|
|
9402
9449
|
}
|
|
9403
9450
|
signatoryTitles: {
|
|
9404
9451
|
/** @defaultValue `"Owner"` */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types';
|
|
3
3
|
import { RadioGroupProps } from '../../../components/Common/UI/RadioGroup/RadioGroupTypes';
|
|
4
4
|
/**
|
|
5
5
|
* Props accepted by a radio group field surfaced through a form hook.
|
|
6
|
-
* Exposes `getOptionLabel` to customize how option entries are
|
|
7
|
-
* and `validationMessages` for custom error text alongside the shared base field
|
|
6
|
+
* Exposes `getOptionLabel` and `getOptionDescription` to customize how option entries are
|
|
7
|
+
* rendered, and `validationMessages` for custom error text alongside the shared base field
|
|
8
8
|
* attributes (`label`, `description`).
|
|
9
9
|
*
|
|
10
10
|
* @typeParam TErrorCode - Validation error code keys mapped via `validationMessages`.
|
|
11
|
-
* @typeParam TEntry - Shape of each option entry consumed by `getOptionLabel`.
|
|
11
|
+
* @typeParam TEntry - Shape of each option entry consumed by `getOptionLabel` and `getOptionDescription`.
|
|
12
12
|
* @public
|
|
13
13
|
* @group Hook field props
|
|
14
14
|
*/
|
|
@@ -21,6 +21,8 @@ export interface RadioGroupHookFieldProps<TErrorCode extends string = never, TEn
|
|
|
21
21
|
validationMessages?: ValidationMessages<TErrorCode>;
|
|
22
22
|
/** Maps a raw option entry to its display label; when omitted, options use the labels provided by the hook. */
|
|
23
23
|
getOptionLabel?: (entry: TEntry) => string;
|
|
24
|
+
/** Maps a raw option entry to supporting text rendered beneath that radio option; when omitted, no per-option description is rendered. */
|
|
25
|
+
getOptionDescription?: (entry: TEntry) => ReactNode;
|
|
24
26
|
/** Replaces the default radio group UI component; must accept the same props as `RadioGroupProps`. */
|
|
25
27
|
FieldComponent?: ComponentType<RadioGroupProps>;
|
|
26
28
|
}
|
|
@@ -28,9 +30,9 @@ export interface RadioGroupHookFieldProps<TErrorCode extends string = never, TEn
|
|
|
28
30
|
* Radio group field connected to a partner form hook result via `useHookFieldResolution`.
|
|
29
31
|
*
|
|
30
32
|
* @typeParam TErrorCode - Validation error code keys mapped via `validationMessages`.
|
|
31
|
-
* @typeParam TEntry - Shape of each option entry consumed by `getOptionLabel`.
|
|
32
|
-
* @param props - Field configuration including `name`, `formHookResult`, and
|
|
33
|
+
* @typeParam TEntry - Shape of each option entry consumed by `getOptionLabel` and `getOptionDescription`.
|
|
34
|
+
* @param props - Field configuration including `name`, `formHookResult`, and optional `getOptionLabel` / `getOptionDescription`.
|
|
33
35
|
* @returns The rendered radio group field wrapped in the field element registry.
|
|
34
36
|
* @internal
|
|
35
37
|
*/
|
|
36
|
-
export declare function RadioGroupHookField<TErrorCode extends string, TEntry = unknown>({ name, formHookResult, label, description, validationMessages, getOptionLabel, FieldComponent, }: RadioGroupHookFieldProps<TErrorCode, TEntry>): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
38
|
+
export declare function RadioGroupHookField<TErrorCode extends string, TEntry = unknown>({ name, formHookResult, label, description, validationMessages, getOptionLabel, getOptionDescription, FieldComponent, }: RadioGroupHookFieldProps<TErrorCode, TEntry>): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -475,8 +475,9 @@ export declare const offCycleEvents: {
|
|
|
475
475
|
readonly OFF_CYCLE_CREATED: "offCycle/created";
|
|
476
476
|
readonly OFF_CYCLE_BLOCKERS_VIEW_ALL: "offCycle/blockers/viewAll";
|
|
477
477
|
readonly DISMISSAL_PAY_PERIOD_SELECTED: "dismissal/payPeriod/selected";
|
|
478
|
-
readonly
|
|
478
|
+
readonly TRANSITION_CONFIGURED: "transition/configured";
|
|
479
479
|
readonly RUN_TRANSITION_PAYROLL: "transition/runPayroll";
|
|
480
|
+
readonly TRANSITION_PAYROLL_SELECTED: "transition/payrollSelected";
|
|
480
481
|
readonly TRANSITION_PAYROLL_SKIPPED: "transition/payrollSkipped";
|
|
481
482
|
};
|
|
482
483
|
/**
|
|
@@ -589,8 +590,9 @@ export declare const componentEvents: {
|
|
|
589
590
|
readonly OFF_CYCLE_CREATED: "offCycle/created";
|
|
590
591
|
readonly OFF_CYCLE_BLOCKERS_VIEW_ALL: "offCycle/blockers/viewAll";
|
|
591
592
|
readonly DISMISSAL_PAY_PERIOD_SELECTED: "dismissal/payPeriod/selected";
|
|
592
|
-
readonly
|
|
593
|
+
readonly TRANSITION_CONFIGURED: "transition/configured";
|
|
593
594
|
readonly RUN_TRANSITION_PAYROLL: "transition/runPayroll";
|
|
595
|
+
readonly TRANSITION_PAYROLL_SELECTED: "transition/payrollSelected";
|
|
594
596
|
readonly TRANSITION_PAYROLL_SKIPPED: "transition/payrollSkipped";
|
|
595
597
|
readonly CONTRACTOR_HISTORICAL_PAYMENT_CREATE: "contractor/historicalPayments/create";
|
|
596
598
|
readonly CONTRACTOR_HISTORICAL_PAYMENT_EDIT: "contractor/historicalPayments/edit";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { RenderOptions } from '@testing-library/react';
|
|
3
3
|
import { UnstableFeatures } from '../contexts/UnstableFeaturesProvider/useUnstableFeature';
|
|
4
|
+
import { Features } from '../contexts/FeaturesProvider/useFeature';
|
|
4
5
|
/**
|
|
5
6
|
* Custom render function that wraps the component with necessary providers
|
|
6
7
|
* - ComponentsProvider: Provides UI components
|
|
@@ -8,5 +9,6 @@ import { UnstableFeatures } from '../contexts/UnstableFeaturesProvider/useUnstab
|
|
|
8
9
|
* - I18nextProvider: Provides translation functions
|
|
9
10
|
*/
|
|
10
11
|
export declare const renderWithProviders: (ui: ReactElement, options?: Omit<RenderOptions, "wrapper"> & {
|
|
12
|
+
features?: Features;
|
|
11
13
|
unstableFeatures?: UnstableFeatures;
|
|
12
14
|
}) => import('@testing-library/react').RenderResult<typeof import('@testing-library/dom/types/queries'), HTMLElement, HTMLElement>;
|