@gusto/embedded-react-sdk 0.56.1 → 0.56.3
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 +36 -0
- package/dist/components/Common/FieldCaption/FieldCaption.js +18 -24
- package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
- package/dist/components/Common/FieldCaption/FieldCaption.module.scss.js +3 -5
- package/dist/components/Common/FieldCaption/FieldCaption.module.scss.js.map +1 -1
- package/dist/components/Common/PaginationControl/PaginationControl.js +66 -62
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PaySchedule.js +60 -0
- package/dist/components/Company/PaySchedule/management/PaySchedule.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.js +67 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js +59 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js +57 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js +46 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js +101 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js +81 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.js +18 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js +56 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js +34 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js +77 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.module.scss.js +10 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.module.scss.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js +66 -0
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +75 -57
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/shared/requirementSetError.js +15 -0
- package/dist/components/Company/StateTaxes/shared/requirementSetError.js.map +1 -0
- package/dist/components/Company/exports/companyManagement.js +7 -0
- package/dist/components/Company/exports/companyManagement.js.map +1 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +24 -24
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +51 -58
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +12 -7
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +87 -85
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +55 -54
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +81 -67
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +129 -125
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +30 -27
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +41 -30
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +159 -152
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +61 -59
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +32 -31
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +16 -16
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +61 -61
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +192 -193
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js +27 -22
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +55 -53
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +44 -41
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +48 -47
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/helpers.js +72 -67
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +37 -28
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +23 -22
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/informationRequestEnumHook.js +30 -0
- package/dist/contexts/ApiProvider/informationRequestEnumHook.js.map +1 -0
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/helpers/dateFormatting.js.map +1 -1
- package/dist/helpers/formattedStrings.js +9 -8
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/i18n/I18n.js +2 -0
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.Management.PaySchedule.json.js +24 -0
- package/dist/i18n/en/Company.Management.PaySchedule.json.js.map +1 -0
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js +18 -0
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js.map +1 -0
- package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -14
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +1 -1
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js +52 -50
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/common.json.js +36 -38
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/index.js +137 -135
- package/dist/index.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/shared/constants.js +39 -31
- package/dist/shared/constants.js.map +1 -1
- package/dist/src/components/Common/ActionsLayout/ActionsLayout.d.ts +1 -1
- package/dist/src/components/Common/Alert/Alert.d.ts +1 -1
- package/dist/src/components/Common/DataView/DataCards/DataCards.d.ts +1 -1
- package/dist/src/components/Common/DataView/DataTable/DataTable.d.ts +1 -1
- package/dist/src/components/Common/DataView/DataView.d.ts +1 -1
- package/dist/src/components/Common/DateRangeFilter/DateRangeFilter.d.ts +1 -1
- package/dist/src/components/Common/DetailViewLayout/DetailViewLayout.d.ts +1 -1
- package/dist/src/components/Common/DocumentList/DocumentList.d.ts +1 -1
- package/dist/src/components/Common/DocumentViewer/DocumentViewer.d.ts +1 -1
- package/dist/src/components/Common/EmptyData/EmptyData.d.ts +1 -1
- package/dist/src/components/Common/FieldCaption/FieldCaption.d.ts +1 -1
- package/dist/src/components/Common/FieldErrorMessage/FieldErrorMessage.d.ts +1 -1
- package/dist/src/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
- package/dist/src/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
- package/dist/src/components/Common/Fields/PercentageField/PercentageField.d.ts +1 -1
- package/dist/src/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/src/components/Common/Fields/SelectField/SelectField.d.ts +1 -1
- package/dist/src/components/Common/Fields/hooks/FieldElementRegistryProvider.d.ts +1 -1
- package/dist/src/components/Common/Flex/Flex.d.ts +2 -2
- package/dist/src/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.d.ts +1 -1
- package/dist/src/components/Common/Form/Form.d.ts +1 -1
- package/dist/src/components/Common/Grid/Grid.d.ts +1 -1
- package/dist/src/components/Common/HamburgerMenu/HamburgerMenu.d.ts +1 -1
- package/dist/src/components/Common/InlineSpinner/InlineSpinner.d.ts +1 -1
- package/dist/src/components/Common/InternalError/InternalError.d.ts +1 -1
- package/dist/src/components/Common/Loading/Loading.d.ts +1 -1
- package/dist/src/components/Common/OnboardingStatusBadge/index.d.ts +3 -3
- package/dist/src/components/Common/PaginationControl/PaginationControl.d.ts +1 -1
- package/dist/src/components/Common/PayrollLoading/PayrollLoading.d.ts +1 -1
- package/dist/src/components/Common/ReorderableList/ReorderableList.d.ts +1 -1
- package/dist/src/components/Common/RequirementsList/RequirementsList.d.ts +1 -1
- package/dist/src/components/Common/TaxInputs/TaxInputs.d.ts +7 -7
- package/dist/src/components/Common/Toast/Toast.d.ts +1 -1
- package/dist/src/components/Common/UI/Alert/Alert.d.ts +1 -1
- package/dist/src/components/Common/UI/Box/Box.d.ts +1 -1
- package/dist/src/components/Common/UI/BoxHeader/BoxHeader.d.ts +1 -1
- package/dist/src/components/Common/UI/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/src/components/Common/UI/Button/Button.d.ts +1 -1
- package/dist/src/components/Common/UI/Button/ButtonIcon.d.ts +1 -1
- package/dist/src/components/Common/UI/CalendarPreview/CalendarLegend.d.ts +1 -1
- package/dist/src/components/Common/UI/CalendarPreview/CalendarPreview.d.ts +1 -1
- package/dist/src/components/Common/UI/Card/Card.d.ts +1 -1
- package/dist/src/components/Common/UI/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/components/Common/UI/ComboBox/ComboBox.d.ts +1 -1
- package/dist/src/components/Common/UI/DatePicker/DatePicker.d.ts +1 -1
- package/dist/src/components/Common/UI/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/src/components/Common/UI/DescriptionList/DescriptionList.d.ts +1 -1
- package/dist/src/components/Common/UI/Dialog/Dialog.d.ts +1 -1
- package/dist/src/components/Common/UI/FileInput/FileInput.d.ts +1 -1
- package/dist/src/components/Common/UI/FormBox/FormBox.d.ts +1 -1
- package/dist/src/components/Common/UI/FormBoxHeader/FormBoxHeader.d.ts +1 -1
- package/dist/src/components/Common/UI/Heading/Heading.d.ts +1 -1
- package/dist/src/components/Common/UI/Input/Input.d.ts +1 -1
- package/dist/src/components/Common/UI/Link/Link.d.ts +1 -1
- package/dist/src/components/Common/UI/List/OrderedList.d.ts +1 -1
- package/dist/src/components/Common/UI/List/UnorderedList.d.ts +1 -1
- package/dist/src/components/Common/UI/Menu/Menu.d.ts +1 -1
- package/dist/src/components/Common/UI/Modal/Modal.d.ts +1 -1
- package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.d.ts +1 -1
- package/dist/src/components/Common/UI/NumberInput/NumberInput.d.ts +1 -1
- package/dist/src/components/Common/UI/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/src/components/Common/UI/Radio/Radio.d.ts +1 -1
- package/dist/src/components/Common/UI/Select/Select.d.ts +1 -1
- package/dist/src/components/Common/UI/Switch/Switch.d.ts +1 -1
- package/dist/src/components/Common/UI/Table/Table.d.ts +1 -1
- package/dist/src/components/Common/UI/Tabs/Tabs.d.ts +1 -1
- package/dist/src/components/Common/UI/Text/Text.d.ts +1 -1
- package/dist/src/components/Common/UI/TextArea/TextArea.d.ts +1 -1
- package/dist/src/components/Common/UI/TextInput/TextInput.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/AssignSignatory.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/AssignSignatorySelection.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/CreateSignatory/Actions.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/Head.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/InviteSignatory/Actions.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/SignatoryForm.d.ts +1 -1
- package/dist/src/components/Company/AssignSignatory/TitleSelect.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccount.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountComponents.d.ts +3 -3
- package/dist/src/components/Company/BankAccount/BankAccountForm/Actions.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountForm/BankAccountForm.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountForm/Form.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountForm/Head.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountList/AccountView.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountList/Actions.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountList/BankAccountList.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountList/Head.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountVerify/Actions.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountVerify/Form.d.ts +1 -1
- package/dist/src/components/Company/BankAccount/BankAccountVerify/Head.d.ts +1 -1
- package/dist/src/components/Company/DocumentSigner/DocumentList/Actions.d.ts +1 -1
- package/dist/src/components/Company/DocumentSigner/DocumentList/DocumentList.d.ts +1 -1
- package/dist/src/components/Company/DocumentSigner/DocumentList/Head.d.ts +1 -1
- package/dist/src/components/Company/DocumentSigner/DocumentList/List.d.ts +1 -1
- package/dist/src/components/Company/DocumentSigner/DocumentList/ManageSignatories.d.ts +1 -1
- package/dist/src/components/Company/DocumentSigner/DocumentSigner.d.ts +1 -1
- package/dist/src/components/Company/DocumentSigner/SignatureForm/SignatureForm.d.ts +1 -1
- package/dist/src/components/Company/DocumentSigner/documentSignerStateMachine.d.ts +3 -3
- package/dist/src/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.d.ts +2 -2
- package/dist/src/components/Company/FederalTaxes/Actions.d.ts +1 -1
- package/dist/src/components/Company/FederalTaxes/FederalTaxes.d.ts +1 -1
- package/dist/src/components/Company/FederalTaxes/Form.d.ts +1 -1
- package/dist/src/components/Company/FederalTaxes/Head.d.ts +1 -1
- package/dist/src/components/Company/Industry/Actions.d.ts +1 -1
- package/dist/src/components/Company/Industry/Edit.d.ts +1 -1
- package/dist/src/components/Company/Industry/Head.d.ts +1 -1
- package/dist/src/components/Company/Industry/Industry.d.ts +1 -1
- package/dist/src/components/Company/Industry/IndustrySelect.d.ts +1 -1
- package/dist/src/components/Company/Locations/LocationForm/Actions.d.ts +1 -1
- package/dist/src/components/Company/Locations/LocationForm/Form.d.ts +1 -1
- package/dist/src/components/Company/Locations/LocationForm/Head.d.ts +1 -1
- package/dist/src/components/Company/Locations/LocationForm/LocationForm.d.ts +1 -1
- package/dist/src/components/Company/Locations/Locations.d.ts +1 -1
- package/dist/src/components/Company/Locations/LocationsList/Actions.d.ts +1 -1
- package/dist/src/components/Company/Locations/LocationsList/Head.d.ts +1 -1
- package/dist/src/components/Company/Locations/LocationsList/List.d.ts +1 -1
- package/dist/src/components/Company/Locations/LocationsList/LocationsList.d.ts +1 -1
- package/dist/src/components/Company/Locations/locationsStateMachine.d.ts +2 -2
- package/dist/src/components/Company/OnboardingFlow/OnboardingFlow.d.ts +1 -1
- package/dist/src/components/Company/OnboardingFlow/OnboardingFlowComponents.d.ts +9 -9
- package/dist/src/components/Company/OnboardingOverview/Completed.d.ts +1 -1
- package/dist/src/components/Company/OnboardingOverview/MissingRequirements.d.ts +1 -1
- package/dist/src/components/Company/OnboardingOverview/OnboardingOverview.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +2 -2
- package/dist/src/components/Company/PaySchedule/PayScheduleForm.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/PayScheduleList.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/management/PaySchedule.d.ts +24 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.d.ts +10 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.d.ts +11 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.d.ts +9 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.d.ts +35 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.d.ts +29 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/index.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.d.ts +7 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.d.ts +12 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/usePayScheduleAssignment.d.ts +9 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleManagementComponents.d.ts +20 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleOverview.d.ts +11 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.d.ts +18 -0
- package/dist/src/components/Company/PaySchedule/management/index.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/management/payScheduleManagementStateMachine.d.ts +12 -0
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +8 -8
- package/dist/src/components/Company/StateTaxes/StateTaxes.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/StateTaxesComponents.d.ts +3 -3
- package/dist/src/components/Company/StateTaxes/StateTaxesForm/Actions.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/StateTaxesForm/Form.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/StateTaxesForm/Head.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/StateTaxesList/Actions.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/StateTaxesList/Head.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/StateTaxesList/List.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/StateTaxesList/StateTaxesList.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/TaxRateManagement/AddRateAction.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/TaxRateManagement/AddTaxRateDialog.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/TaxRateManagement/TaxRateHistorySection.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/TaxRateManagement/TaxRateManagement.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/shared/RequirementFields.d.ts +1 -1
- package/dist/src/components/Company/StateTaxes/shared/requirementSetError.d.ts +18 -0
- package/dist/src/components/Company/StateTaxes/shared/requirementSetError.test.d.ts +1 -0
- package/dist/src/components/Company/exports/companyManagement.d.ts +2 -0
- package/dist/src/components/Contractor/Address/management/Address.d.ts +1 -1
- package/dist/src/components/Contractor/Address/management/AddressCard/AddressCard.d.ts +1 -1
- package/dist/src/components/Contractor/Address/management/AddressComponents.d.ts +2 -2
- package/dist/src/components/Contractor/Address/management/AddressEditForm.d.ts +1 -1
- package/dist/src/components/Contractor/Address/shared/useContractorAddressForm/fields.d.ts +5 -5
- package/dist/src/components/Contractor/Compensation/management/Compensation.d.ts +1 -1
- package/dist/src/components/Contractor/Compensation/management/CompensationCard/CompensationCard.d.ts +1 -1
- package/dist/src/components/Contractor/Compensation/management/CompensationComponents.d.ts +2 -2
- package/dist/src/components/Contractor/Compensation/management/CompensationEditForm.d.ts +1 -1
- package/dist/src/components/Contractor/Compensation/shared/useContractorPayForm/fields.d.ts +2 -2
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorList.d.ts +1 -1
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +1 -1
- package/dist/src/components/Contractor/ContractorList/onboarding/ContractorList.d.ts +1 -1
- package/dist/src/components/Contractor/ContractorList/onboarding/ContractorListView.d.ts +1 -1
- package/dist/src/components/Contractor/ContractorListFlow/ContractorListFlow.d.ts +1 -1
- package/dist/src/components/Contractor/ContractorListFlow/ContractorListFlowComponents.d.ts +2 -2
- package/dist/src/components/Contractor/Dashboard/Dashboard.d.ts +1 -1
- package/dist/src/components/Contractor/Dashboard/DashboardComponents.d.ts +5 -5
- package/dist/src/components/Contractor/Dashboard/DashboardFlow.d.ts +1 -1
- package/dist/src/components/Contractor/Dashboard/DetailsView.d.ts +1 -1
- package/dist/src/components/Contractor/Dashboard/PayView.d.ts +1 -1
- package/dist/src/components/Contractor/Documents/management/DocumentsCard/DocumentsCard.d.ts +1 -1
- package/dist/src/components/Contractor/Documents/onboarding/DocumentSigner/DocumentSigner.d.ts +1 -1
- package/dist/src/components/Contractor/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +2 -2
- package/dist/src/components/Contractor/Documents/onboarding/DocumentsList/DocumentsList.d.ts +1 -1
- package/dist/src/components/Contractor/Documents/shared/SignatureForm/SignatureForm.d.ts +1 -1
- package/dist/src/components/Contractor/Documents/shared/SignatureForm/useContractorSignatureForm/fields.d.ts +19 -19
- package/dist/src/components/Contractor/Landing/Landing.d.ts +1 -1
- package/dist/src/components/Contractor/NewHireReport/NewHireReport.d.ts +1 -1
- package/dist/src/components/Contractor/OnboardingFlow/OnboardingFlow.d.ts +1 -1
- package/dist/src/components/Contractor/OnboardingFlow/OnboardingFlowComponents.d.ts +7 -7
- package/dist/src/components/Contractor/OnboardingSummary/OnboardingSummary.d.ts +1 -1
- package/dist/src/components/Contractor/PaymentMethod/management/PaymentMethod.d.ts +1 -1
- package/dist/src/components/Contractor/PaymentMethod/management/PaymentMethodCard/PaymentMethodCard.d.ts +1 -1
- package/dist/src/components/Contractor/PaymentMethod/management/PaymentMethodComponents.d.ts +2 -2
- package/dist/src/components/Contractor/PaymentMethod/management/PaymentMethodEditForm.d.ts +1 -1
- package/dist/src/components/Contractor/PaymentMethod/onboarding/PaymentMethod.d.ts +1 -1
- package/dist/src/components/Contractor/PaymentMethod/shared/ContractorBankAccountFields/ContractorBankAccountFields.d.ts +1 -1
- package/dist/src/components/Contractor/PaymentMethod/shared/ContractorBankAccountFormBody/ContractorBankAccountFormBody.d.ts +1 -1
- package/dist/src/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.d.ts +4 -4
- package/dist/src/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/fields.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/CreatePayment.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/CreatePaymentFlow/CreatePaymentFlow.d.ts +2 -2
- package/dist/src/components/Contractor/Payments/CreatePaymentFlow/CreatePaymentFlowComponents.d.ts +2 -2
- package/dist/src/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlow.d.ts +2 -2
- package/dist/src/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlowComponents.d.ts +2 -2
- package/dist/src/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/PaymentFlow/PaymentFlow.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +5 -5
- package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +2 -2
- package/dist/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsList.d.ts +2 -2
- package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/ViewPaymentFlow/ViewPaymentFlow.d.ts +2 -2
- package/dist/src/components/Contractor/Payments/ViewPaymentFlow/ViewPaymentFlowComponents.d.ts +2 -2
- package/dist/src/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/shared/SetPaymentAmounts/EditContractorPaymentPresentation.d.ts +1 -1
- package/dist/src/components/Contractor/Payments/shared/SetPaymentAmounts/SetPaymentAmounts.d.ts +1 -1
- package/dist/src/components/Contractor/Profile/management/Profile.d.ts +1 -1
- package/dist/src/components/Contractor/Profile/management/ProfileCard/ProfileCard.d.ts +1 -1
- package/dist/src/components/Contractor/Profile/management/ProfileComponents.d.ts +2 -2
- package/dist/src/components/Contractor/Profile/management/ProfileEditForm.d.ts +1 -1
- package/dist/src/components/Contractor/Profile/onboarding/BusinessSelfOnboardingProfile.d.ts +1 -1
- package/dist/src/components/Contractor/Profile/onboarding/ContractorProfile.d.ts +1 -1
- package/dist/src/components/Contractor/Profile/onboarding/IndividualSelfOnboardingProfile.d.ts +1 -1
- package/dist/src/components/Contractor/Profile/onboarding/SelfOnboardingContractorProfile.d.ts +1 -1
- package/dist/src/components/Contractor/Profile/shared/useContractorDetailsForm/fields.d.ts +14 -14
- package/dist/src/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +6 -6
- package/dist/src/components/Contractor/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +1 -1
- package/dist/src/components/Contractor/Submit/Submit.d.ts +1 -1
- package/dist/src/components/Contractor/Submit/SubmitDone.d.ts +1 -1
- package/dist/src/components/Contractor/shared/SelectContractors/SelectContractors.d.ts +1 -1
- package/dist/src/components/Contractor/shared/SelectContractors/SelectContractorsPresentation.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/management/Compensation.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/management/CompensationCard/CompensationCard.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/management/CompensationComponents.d.ts +4 -4
- package/dist/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/onboarding/Compensation.d.ts +2 -2
- package/dist/src/components/Employee/Compensation/onboarding/CompensationFlowComponents.d.ts +3 -3
- package/dist/src/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/onboarding/JobsList/JobsList.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/shared/PendingChangesReviewModal.d.ts +1 -1
- package/dist/src/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +7 -7
- package/dist/src/components/Employee/Compensation/shared/useJobForm/fields.d.ts +5 -5
- package/dist/src/components/Employee/Dashboard/BasicDetailsView.d.ts +1 -1
- package/dist/src/components/Employee/Dashboard/Dashboard.d.ts +1 -1
- package/dist/src/components/Employee/Dashboard/DashboardComponents.d.ts +13 -13
- package/dist/src/components/Employee/Dashboard/DashboardFlow.d.ts +1 -1
- package/dist/src/components/Employee/Dashboard/JobAndPayView.d.ts +1 -1
- package/dist/src/components/Employee/Dashboard/TaxesView.d.ts +2 -2
- package/dist/src/components/Employee/Deductions/management/Deductions.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/management/DeductionsComponents.d.ts +2 -2
- package/dist/src/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/onboarding/Deductions.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/onboarding/deductionsContextualComponents.d.ts +2 -2
- package/dist/src/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/shared/DeleteDeductionDialog.d.ts +1 -1
- package/dist/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.d.ts +8 -8
- package/dist/src/components/Employee/Deductions/shared/useDeductionForm/fields.d.ts +7 -7
- package/dist/src/components/Employee/Documents/management/DocumentManager.d.ts +1 -1
- package/dist/src/components/Employee/Documents/management/Documents.d.ts +1 -1
- package/dist/src/components/Employee/Documents/management/DocumentsCard/DocumentsCard.d.ts +1 -1
- package/dist/src/components/Employee/Documents/management/DocumentsComponents.d.ts +2 -2
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Head.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +4 -4
- package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.d.ts +2 -2
- package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +1 -1
- package/dist/src/components/Employee/Documents/shared/SignatureForm/SignatureForm.d.ts +1 -1
- package/dist/src/components/Employee/Documents/shared/useSignEmployeeForm/fields.d.ts +39 -39
- package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeList.d.ts +1 -1
- package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +1 -1
- package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeList.d.ts +1 -1
- package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +1 -1
- package/dist/src/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +1 -1
- package/dist/src/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +4 -4
- package/dist/src/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +1 -1
- package/dist/src/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.d.ts +1 -1
- package/dist/src/components/Employee/FederalTaxes/management/FederalTaxesComponents.d.ts +2 -2
- package/dist/src/components/Employee/FederalTaxes/management/FederalTaxesEditForm.d.ts +1 -1
- package/dist/src/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +1 -1
- package/dist/src/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +1 -1
- package/dist/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +6 -6
- package/dist/src/components/Employee/HomeAddress/management/HomeAddress.d.ts +1 -1
- package/dist/src/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.d.ts +1 -1
- package/dist/src/components/Employee/HomeAddress/management/HomeAddressComponents.d.ts +2 -2
- package/dist/src/components/Employee/HomeAddress/management/HomeAddressEditForm.d.ts +1 -1
- package/dist/src/components/Employee/HomeAddress/management/HomeAddressView.d.ts +1 -1
- package/dist/src/components/Employee/Landing/Landing.d.ts +1 -1
- package/dist/src/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.d.ts +1 -1
- package/dist/src/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.d.ts +3 -3
- package/dist/src/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.d.ts +1 -1
- package/dist/src/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +1 -1
- package/dist/src/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +2 -2
- package/dist/src/components/Employee/OnboardingSummary/OnboardingSummary.d.ts +2 -2
- package/dist/src/components/Employee/PaymentMethod/management/PaymentMethod.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/management/PaymentMethodBankForm.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/management/PaymentMethodCard.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/management/PaymentMethodComponents.d.ts +3 -3
- package/dist/src/components/Employee/PaymentMethod/management/PaymentMethodSplitForm.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/onboarding/BankForm.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/onboarding/ListView.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/onboarding/PaymentMethod.d.ts +2 -2
- package/dist/src/components/Employee/PaymentMethod/onboarding/PaymentMethodComponents.d.ts +3 -3
- package/dist/src/components/Employee/PaymentMethod/onboarding/SplitView.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/shared/DeleteBankAccountDialog.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/shared/useBankForm/fields.d.ts +4 -4
- package/dist/src/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.d.ts +1 -1
- package/dist/src/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/fields.d.ts +1 -1
- package/dist/src/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.d.ts +1 -1
- package/dist/src/components/Employee/Profile/management/Profile.d.ts +1 -1
- package/dist/src/components/Employee/Profile/management/ProfileCard/ProfileCard.d.ts +1 -1
- package/dist/src/components/Employee/Profile/management/ProfileComponents.d.ts +2 -2
- package/dist/src/components/Employee/Profile/management/ProfileEditForm.d.ts +1 -1
- package/dist/src/components/Employee/Profile/onboarding/AdminProfile.d.ts +1 -1
- package/dist/src/components/Employee/Profile/onboarding/EmployeeProfile.d.ts +1 -1
- package/dist/src/components/Employee/Profile/onboarding/Profile.d.ts +2 -2
- package/dist/src/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.d.ts +7 -7
- package/dist/src/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +7 -7
- package/dist/src/components/Employee/Profile/shared/useWorkAddressForm/fields.d.ts +2 -2
- package/dist/src/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +7 -7
- package/dist/src/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +1 -1
- package/dist/src/components/Employee/StateTaxes/management/StateTaxes.d.ts +1 -1
- package/dist/src/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.d.ts +1 -1
- package/dist/src/components/Employee/StateTaxes/management/StateTaxesComponents.d.ts +2 -2
- package/dist/src/components/Employee/StateTaxes/management/StateTaxesEditForm.d.ts +1 -1
- package/dist/src/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +1 -1
- package/dist/src/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +1 -1
- package/dist/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +6 -6
- package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +1 -1
- package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +1 -1
- package/dist/src/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +1 -1
- package/dist/src/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +4 -4
- package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +1 -1
- package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +1 -1
- package/dist/src/components/Employee/WorkAddress/management/WorkAddress.d.ts +1 -1
- package/dist/src/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.d.ts +1 -1
- package/dist/src/components/Employee/WorkAddress/management/WorkAddressComponents.d.ts +2 -2
- package/dist/src/components/Employee/WorkAddress/management/WorkAddressEditForm.d.ts +1 -1
- package/dist/src/components/Employee/WorkAddress/management/WorkAddressView.d.ts +1 -1
- package/dist/src/components/Flow/Flow.d.ts +1 -1
- package/dist/src/components/Flow/FlowHeader.d.ts +1 -1
- package/dist/src/components/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +2 -2
- package/dist/src/components/InformationRequests/InformationRequestList/InformationRequestList.d.ts +1 -1
- package/dist/src/components/InformationRequests/InformationRequests.d.ts +1 -1
- package/dist/src/components/InformationRequests/InformationRequestsComponents.d.ts +1 -1
- package/dist/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.d.ts +1 -1
- package/dist/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.d.ts +1 -1
- package/dist/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.d.ts +2 -2
- package/dist/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.d.ts +1 -1
- package/dist/src/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.d.ts +1 -1
- package/dist/src/components/Payroll/Dismissal/DismissalFlow.d.ts +1 -1
- package/dist/src/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +2 -2
- package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +1 -1
- package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +3 -3
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreation.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.d.ts +1 -1
- package/dist/src/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollBlocker/components/PayrollBlockerList.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +12 -0
- package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +6 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollFlow/PayrollFlow.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +7 -7
- package/dist/src/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollHistory/PayrollHistory.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollLanding/PayrollLanding.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +3 -3
- package/dist/src/components/Payroll/PayrollList/PayrollList.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollOverview/PayrollOverview.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollReceipts/PayrollReceipts.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.d.ts +1 -1
- package/dist/src/components/Payroll/PrintChecks/PrintChecks.d.ts +1 -1
- package/dist/src/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.d.ts +1 -1
- package/dist/src/components/Payroll/PrintChecks/PrintChecksComponents.d.ts +3 -3
- package/dist/src/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.d.ts +1 -1
- package/dist/src/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.d.ts +1 -1
- package/dist/src/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.d.ts +1 -1
- package/dist/src/components/Payroll/RecoveryCases/RecoveryCases.d.ts +1 -1
- package/dist/src/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +1 -1
- package/dist/src/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +1 -1
- package/dist/src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +1 -1
- package/dist/src/components/Payroll/Transition/TransitionFlow.d.ts +1 -1
- package/dist/src/components/Payroll/Transition/TransitionFlowComponents.d.ts +1 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreation.d.ts +1 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayroll.d.ts +1 -1
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollComponents.d.ts +2 -2
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +6 -1
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +7 -1
- package/dist/src/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts +1 -1
- package/dist/src/components/Payroll/helpers.d.ts +34 -0
- package/dist/src/components/Payroll/usePreparedPayrollData.d.ts +6 -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/HolidayPolicyDetail.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyList/PolicyList.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyList/PolicyListPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicySettings/PolicySettings.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffFlow/TimeOffFlow.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +12 -12
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +1 -1
- package/dist/src/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +1 -1
- package/dist/src/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +1 -1
- package/dist/src/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +1 -1
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +1 -1
- package/dist/src/components/index.d.ts +12 -0
- package/dist/src/contexts/ApiProvider/ApiProvider.d.ts +1 -1
- package/dist/src/contexts/ApiProvider/informationRequestEnumHook.d.ts +14 -0
- package/dist/src/contexts/ApiProvider/informationRequestEnumHook.test.d.ts +1 -0
- package/dist/src/contexts/LoadingIndicatorProvider/LoadingIndicatorProvider.d.ts +1 -1
- package/dist/src/contexts/LocaleProvider/LocaleProvider.d.ts +1 -1
- package/dist/src/contexts/ObservabilityProvider/ObservabilityProvider.d.ts +1 -1
- package/dist/src/contexts/ThemeProvider/customRender.d.ts +1 -1
- package/dist/src/contexts/UnstableFeaturesProvider/UnstableFeaturesProvider.d.ts +1 -1
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +2 -0
- package/dist/src/helpers/dateFormatting.d.ts +2 -2
- package/dist/src/helpers/formattedStrings.d.ts +15 -0
- package/dist/src/i18n/en/common.json.d.ts +0 -1
- package/dist/src/i18n/types.d.ts +99 -7
- package/dist/src/models/external.d.ts +12 -0
- package/dist/src/partner-hook-utils/form/FormFieldsMetadataProvider.d.ts +1 -1
- package/dist/src/partner-hook-utils/form/SDKFormProvider.d.ts +1 -1
- package/dist/src/shared/constants.d.ts +16 -0
- package/dist/src/test-utils/renderWithProviders.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/types/sdkError.js +32 -21
- package/dist/types/sdkError.js.map +1 -1
- package/docs/guides/endpoint-inventory.json +59 -10
- package/package.json +11 -11
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { useForm as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import
|
|
2
|
+
import { useForm as ne, useFieldArray as Me, useWatch as Oe, FormProvider as te } from "react-hook-form";
|
|
3
|
+
import { useRef as ve, useMemo as V, useState as Re } from "react";
|
|
4
|
+
import xe from "classnames";
|
|
5
5
|
import { PayrollEmployeeCompensationsTypePaymentMethod as M } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
|
|
6
|
-
import { useTranslation as
|
|
6
|
+
import { useTranslation as Se } from "react-i18next";
|
|
7
7
|
import { z as s } from "zod";
|
|
8
|
-
import { zodResolver as
|
|
8
|
+
import { zodResolver as ie } from "@hookform/resolvers/zod";
|
|
9
9
|
import c from "./PayrollEditEmployeePresentation.module.scss.js";
|
|
10
|
-
import { TimeOffField as
|
|
10
|
+
import { TimeOffField as Ie, PayoutTimeOffField as Fe } from "./TimeOffField.js";
|
|
11
11
|
import { Flex as P } from "../../Common/Flex/Flex.js";
|
|
12
12
|
import { Grid as x } from "../../Common/Grid/Grid.js";
|
|
13
|
-
import { EmptyData as
|
|
14
|
-
import { useComponentContext as
|
|
15
|
-
import { useI18n as
|
|
16
|
-
import { Form as
|
|
17
|
-
import { formatNumberAsCurrency as
|
|
18
|
-
import { getAdditionalEarningsCompensations as
|
|
19
|
-
import { PayrollCategory as F, isOffCyclePayroll as
|
|
20
|
-
import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
13
|
+
import { EmptyData as De } from "../../Common/EmptyData/EmptyData.js";
|
|
14
|
+
import { useComponentContext as _e } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
15
|
+
import { useI18n as Le } from "../../../i18n/I18n.js";
|
|
16
|
+
import { Form as ke } from "../../Common/Form/Form.js";
|
|
17
|
+
import { formatNumberAsCurrency as re, firstLastName as Ue, stripLeadingZeros as k } from "../../../helpers/formattedStrings.js";
|
|
18
|
+
import { getAdditionalEarningsCompensations as je, calculateGrossPay as se } from "../helpers.js";
|
|
19
|
+
import { PayrollCategory as F, isOffCyclePayroll as ue } from "../payrollTypes.js";
|
|
20
|
+
import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as oe, EXCLUDED_ADDITIONAL_EARNINGS as Ge, COMPENSATION_NAME_DOUBLE_OVERTIME as He, COMPENSATION_NAME_OVERTIME as we, COMPENSATION_NAME_REGULAR_HOURS as $e, COMPENSATION_NAME_CASH_TIPS as Ve, COMPENSATION_NAME_COMMISSION as Be, COMPENSATION_NAME_CORRECTION_PAYMENT as ze, COMPENSATION_NAME_PAYCHECK_TIPS as We, COMPENSATION_NAME_BONUS as qe } from "../../../shared/constants.js";
|
|
21
|
+
import Ye from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
22
|
+
import ae from "../../../assets/icons/plus-circle.svg.js";
|
|
23
|
+
import Ke from "../../../assets/icons/trashcan.svg.js";
|
|
24
24
|
import { TextInputField as I } from "../../Common/Fields/TextInputField/TextInputField.js";
|
|
25
|
-
import { RadioGroupField as
|
|
26
|
-
import { useDataView as
|
|
25
|
+
import { RadioGroupField as Xe } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
|
|
26
|
+
import { useDataView as Ze } from "../../Common/DataView/useDataView.js";
|
|
27
27
|
import { DataView as Qe } from "../../Common/DataView/DataView.js";
|
|
28
|
-
const
|
|
28
|
+
const Je = s.object({
|
|
29
29
|
uuid: s.string().nullable().optional(),
|
|
30
30
|
description: s.string(),
|
|
31
31
|
amount: s.string(),
|
|
32
32
|
recurring: s.boolean().optional()
|
|
33
|
-
}),
|
|
33
|
+
}), en = s.object({
|
|
34
34
|
description: s.string(),
|
|
35
35
|
amount: s.string().refine(
|
|
36
36
|
(l) => {
|
|
@@ -39,14 +39,14 @@ const Ze = s.object({
|
|
|
39
39
|
},
|
|
40
40
|
{ message: "validations.reimbursementAmount" }
|
|
41
41
|
)
|
|
42
|
-
}),
|
|
42
|
+
}), nn = s.string().optional().refine((l) => !l || parseFloat(l) >= 0, { message: "validations.negativeAmount" }), tn = s.object({
|
|
43
43
|
hourlyCompensations: s.record(s.string(), s.record(s.string(), s.string().optional())),
|
|
44
44
|
timeOffCompensations: s.record(s.string(), s.string().optional()),
|
|
45
45
|
finalPayoutCompensations: s.record(s.string(), s.string().optional()),
|
|
46
|
-
fixedCompensations: s.record(s.string(),
|
|
47
|
-
reimbursements: s.array(
|
|
46
|
+
fixedCompensations: s.record(s.string(), nn),
|
|
47
|
+
reimbursements: s.array(Je),
|
|
48
48
|
paymentMethod: s.enum(M).optional()
|
|
49
|
-
}),
|
|
49
|
+
}), me = (l, C, U, p, o = F.Regular) => {
|
|
50
50
|
const y = {
|
|
51
51
|
...C,
|
|
52
52
|
paymentMethod: l.paymentMethod
|
|
@@ -59,7 +59,7 @@ const Ze = s.object({
|
|
|
59
59
|
hours: m
|
|
60
60
|
} : r;
|
|
61
61
|
}
|
|
62
|
-
), y.paidTimeOff =
|
|
62
|
+
), y.paidTimeOff = U.map((r) => {
|
|
63
63
|
const m = o === F.Dismissal, { finalPayoutUnusedHoursInput: O, ...h } = r;
|
|
64
64
|
if (m) {
|
|
65
65
|
const u = l.finalPayoutCompensations[r.name] ?? r.finalPayoutUnusedHoursInput;
|
|
@@ -74,12 +74,12 @@ const Ze = s.object({
|
|
|
74
74
|
hours: l.timeOffCompensations[r.name] || "0"
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
|
-
const D = !
|
|
77
|
+
const D = !ue(o), T = [];
|
|
78
78
|
return Object.entries(l.fixedCompensations).forEach(([r, m]) => {
|
|
79
79
|
if (r.toLowerCase() === S.toLowerCase() && D)
|
|
80
80
|
return;
|
|
81
81
|
const h = C?.fixedCompensations?.find(
|
|
82
|
-
(
|
|
82
|
+
(j) => j.name?.toLowerCase() === r.toLowerCase()
|
|
83
83
|
), u = m === "" && h ? "0" : m;
|
|
84
84
|
u !== void 0 && u !== "" && (h ? T.push({
|
|
85
85
|
name: h.name,
|
|
@@ -96,10 +96,10 @@ const Ze = s.object({
|
|
|
96
96
|
uuid: r.uuid ?? null,
|
|
97
97
|
recurring: r.recurring
|
|
98
98
|
})) : y.reimbursements = [], y;
|
|
99
|
-
},
|
|
99
|
+
}, Fn = ({
|
|
100
100
|
className: l,
|
|
101
101
|
onSave: C,
|
|
102
|
-
onCancel:
|
|
102
|
+
onCancel: U,
|
|
103
103
|
employee: p,
|
|
104
104
|
employeeCompensation: o,
|
|
105
105
|
isPending: y = !1,
|
|
@@ -110,70 +110,70 @@ const Ze = s.object({
|
|
|
110
110
|
withReimbursements: O = !0,
|
|
111
111
|
hasDirectDepositSetup: h = !0
|
|
112
112
|
}) => {
|
|
113
|
-
const { Button: u, ButtonIcon:
|
|
114
|
-
|
|
115
|
-
const b = p.jobs?.find((e) => e.primary),
|
|
113
|
+
const { Button: u, ButtonIcon: j, Heading: f, Text: B } = _e(), { t: n } = Se("Payroll.PayrollEditEmployee");
|
|
114
|
+
Le("Payroll.PayrollEditEmployee");
|
|
115
|
+
const b = p.jobs?.find((e) => e.primary), le = o?.hourlyCompensations?.some(
|
|
116
116
|
(e) => e.jobUuid === b?.uuid
|
|
117
|
-
), v = b &&
|
|
118
|
-
ref:
|
|
117
|
+
), v = b && le ? [b] : [], z = ve(null), g = Ye({
|
|
118
|
+
ref: z
|
|
119
119
|
}).includes("small");
|
|
120
120
|
o?.hourlyCompensations?.forEach((e) => {
|
|
121
121
|
const i = p.jobs?.find((d) => d.uuid === e.jobUuid);
|
|
122
122
|
i && !v.find((d) => d.uuid === i.uuid) && v.push(i);
|
|
123
123
|
});
|
|
124
|
-
const A = (o?.paidTimeOff || []).filter((e) => e.name),
|
|
124
|
+
const A = (o?.paidTimeOff || []).filter((e) => e.name), G = je({
|
|
125
125
|
flsaStatus: b?.compensations?.[0]?.flsaStatus,
|
|
126
126
|
existingFixedCompensations: o?.fixedCompensations || [],
|
|
127
127
|
primaryJobUuid: b?.uuid,
|
|
128
128
|
fixedCompensationTypes: D,
|
|
129
|
-
excludedTypes:
|
|
130
|
-
}), _ = !
|
|
129
|
+
excludedTypes: Ge
|
|
130
|
+
}), _ = !ue(m), de = V(
|
|
131
131
|
() => O && _ ? o?.reimbursements ?? [] : [],
|
|
132
132
|
[O, _, o?.reimbursements]
|
|
133
|
-
),
|
|
133
|
+
), ce = V(
|
|
134
134
|
() => o?.fixedCompensations?.find(
|
|
135
135
|
(e) => e.name?.toLowerCase() === S.toLowerCase()
|
|
136
136
|
),
|
|
137
137
|
[o?.fixedCompensations]
|
|
138
|
-
),
|
|
138
|
+
), W = O && !_ && !!b?.uuid, q = (e, i) => o?.hourlyCompensations?.find(
|
|
139
139
|
(d) => d.jobUuid === e && d.name?.toLowerCase() === i.toLowerCase()
|
|
140
|
-
),
|
|
140
|
+
), pe = (e) => {
|
|
141
141
|
switch (e) {
|
|
142
|
-
case
|
|
142
|
+
case $e:
|
|
143
143
|
return n("compensationNames.regularHours");
|
|
144
|
-
case
|
|
144
|
+
case we:
|
|
145
145
|
return n("compensationNames.overtime");
|
|
146
|
-
case
|
|
146
|
+
case He:
|
|
147
147
|
return n("compensationNames.doubleOvertime");
|
|
148
148
|
default:
|
|
149
149
|
return e;
|
|
150
150
|
}
|
|
151
|
-
},
|
|
151
|
+
}, Y = (e) => {
|
|
152
152
|
switch (e) {
|
|
153
|
-
case
|
|
153
|
+
case qe:
|
|
154
154
|
return n("fixedCompensationNames.bonus");
|
|
155
|
-
case
|
|
155
|
+
case We:
|
|
156
156
|
return n("fixedCompensationNames.paycheckTips");
|
|
157
|
-
case
|
|
157
|
+
case ze:
|
|
158
158
|
return n("fixedCompensationNames.correctionPayment");
|
|
159
|
-
case
|
|
159
|
+
case Be:
|
|
160
160
|
return n("fixedCompensationNames.commission");
|
|
161
|
-
case
|
|
161
|
+
case Ve:
|
|
162
162
|
return n("fixedCompensationNames.cashTips");
|
|
163
163
|
case S:
|
|
164
164
|
return n("fixedCompensationNames.reimbursement");
|
|
165
165
|
default:
|
|
166
166
|
return e;
|
|
167
167
|
}
|
|
168
|
-
},
|
|
168
|
+
}, fe = () => {
|
|
169
169
|
const e = o?.paymentMethod;
|
|
170
170
|
return e ? !h && e === M.DirectDeposit ? M.Check : e : h ? M.DirectDeposit : M.Check;
|
|
171
|
-
},
|
|
171
|
+
}, he = {
|
|
172
172
|
hourlyCompensations: (() => {
|
|
173
173
|
const e = {};
|
|
174
174
|
return v.forEach((i) => {
|
|
175
|
-
|
|
176
|
-
const R =
|
|
175
|
+
oe.forEach((d) => {
|
|
176
|
+
const R = q(i.uuid, d);
|
|
177
177
|
R && (e[i.uuid] || (e[i.uuid] = {}), e[i.uuid][R.name] = R.hours ? parseFloat(R.hours).toString() : "");
|
|
178
178
|
});
|
|
179
179
|
}), e;
|
|
@@ -192,46 +192,46 @@ const Ze = s.object({
|
|
|
192
192
|
})(),
|
|
193
193
|
fixedCompensations: (() => {
|
|
194
194
|
const e = {};
|
|
195
|
-
return
|
|
195
|
+
return G.forEach((i) => {
|
|
196
196
|
e[i.name] = i.amount ?? "";
|
|
197
|
-
}),
|
|
197
|
+
}), W && (e[S] = ce?.amount ?? "0.00"), e;
|
|
198
198
|
})(),
|
|
199
|
-
reimbursements:
|
|
199
|
+
reimbursements: de.map((e) => ({
|
|
200
200
|
uuid: e.uuid ?? null,
|
|
201
201
|
description: e.description ?? "",
|
|
202
202
|
amount: e.amount,
|
|
203
203
|
recurring: e.recurring ?? !1
|
|
204
204
|
})),
|
|
205
|
-
paymentMethod:
|
|
206
|
-
}, L =
|
|
207
|
-
resolver:
|
|
208
|
-
defaultValues:
|
|
205
|
+
paymentMethod: fe()
|
|
206
|
+
}, L = ne({
|
|
207
|
+
resolver: ie(tn),
|
|
208
|
+
defaultValues: he
|
|
209
209
|
}), {
|
|
210
|
-
fields:
|
|
211
|
-
append:
|
|
212
|
-
remove:
|
|
213
|
-
update:
|
|
214
|
-
} =
|
|
210
|
+
fields: K,
|
|
211
|
+
append: be,
|
|
212
|
+
remove: ge,
|
|
213
|
+
update: Ce
|
|
214
|
+
} = Me({
|
|
215
215
|
control: L.control,
|
|
216
216
|
name: "reimbursements"
|
|
217
|
-
}),
|
|
218
|
-
const i =
|
|
219
|
-
i && (i.uuid ?
|
|
220
|
-
},
|
|
221
|
-
resolver:
|
|
217
|
+
}), ye = (e) => {
|
|
218
|
+
const i = K[e];
|
|
219
|
+
i && (i.uuid ? Ce(e, { ...i, amount: "0" }) : ge(e));
|
|
220
|
+
}, H = K.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [X, w] = Re(!1), $ = ne({
|
|
221
|
+
resolver: ie(en),
|
|
222
222
|
defaultValues: { description: "", amount: "" }
|
|
223
|
-
}),
|
|
224
|
-
|
|
225
|
-
},
|
|
223
|
+
}), Z = () => {
|
|
224
|
+
w(!1), $.reset();
|
|
225
|
+
}, Ne = (e) => {
|
|
226
226
|
const i = parseFloat(e.amount);
|
|
227
|
-
|
|
227
|
+
be({
|
|
228
228
|
uuid: null,
|
|
229
229
|
description: e.description.trim(),
|
|
230
230
|
amount: i.toFixed(2),
|
|
231
231
|
recurring: !1
|
|
232
|
-
}),
|
|
233
|
-
},
|
|
234
|
-
data:
|
|
232
|
+
}), Z();
|
|
233
|
+
}, Ee = Ze({
|
|
234
|
+
data: H,
|
|
235
235
|
columns: [
|
|
236
236
|
{
|
|
237
237
|
key: "description",
|
|
@@ -242,7 +242,7 @@ const Ze = s.object({
|
|
|
242
242
|
key: "amount",
|
|
243
243
|
title: n("reimbursementAmountColumn"),
|
|
244
244
|
justify: "end",
|
|
245
|
-
render: (e) =>
|
|
245
|
+
render: (e) => re(parseFloat(e.amount || "0"))
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
key: "recurring",
|
|
@@ -254,35 +254,35 @@ const Ze = s.object({
|
|
|
254
254
|
if (e.recurring) return null;
|
|
255
255
|
const i = e.description.trim() || n("reimbursementUnnamedFallback");
|
|
256
256
|
return /* @__PURE__ */ t(
|
|
257
|
-
|
|
257
|
+
j,
|
|
258
258
|
{
|
|
259
259
|
variant: "tertiary",
|
|
260
260
|
onClick: () => {
|
|
261
|
-
|
|
261
|
+
ye(e.originalIndex);
|
|
262
262
|
},
|
|
263
263
|
"aria-label": n("removeReimbursementLabel", { description: i }),
|
|
264
|
-
children: /* @__PURE__ */ t(
|
|
264
|
+
children: /* @__PURE__ */ t(Ke, { "aria-hidden": !0 })
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
267
|
},
|
|
268
|
-
emptyState: () => /* @__PURE__ */ t(
|
|
268
|
+
emptyState: () => /* @__PURE__ */ t(De, { title: n("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(
|
|
269
269
|
u,
|
|
270
270
|
{
|
|
271
271
|
variant: "secondary",
|
|
272
272
|
onClick: () => {
|
|
273
|
-
|
|
273
|
+
w(!0);
|
|
274
274
|
},
|
|
275
|
-
icon: /* @__PURE__ */ t(
|
|
275
|
+
icon: /* @__PURE__ */ t(ae, { "aria-hidden": !0 }),
|
|
276
276
|
children: n("addReimbursementCta")
|
|
277
277
|
}
|
|
278
278
|
) })
|
|
279
|
-
}), N =
|
|
279
|
+
}), N = Oe({
|
|
280
280
|
control: L.control
|
|
281
|
-
}),
|
|
281
|
+
}), Pe = V(() => {
|
|
282
282
|
try {
|
|
283
283
|
const e = {};
|
|
284
|
-
N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([E,
|
|
285
|
-
|
|
284
|
+
N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([E, ee]) => {
|
|
285
|
+
ee && (e[E] = ee);
|
|
286
286
|
});
|
|
287
287
|
const i = (N.reimbursements ?? []).map((E) => ({
|
|
288
288
|
uuid: E.uuid ?? null,
|
|
@@ -296,14 +296,14 @@ const Ze = s.object({
|
|
|
296
296
|
fixedCompensations: N.fixedCompensations || {},
|
|
297
297
|
reimbursements: i,
|
|
298
298
|
paymentMethod: N.paymentMethod
|
|
299
|
-
}, R =
|
|
299
|
+
}, R = me(
|
|
300
300
|
d,
|
|
301
301
|
o,
|
|
302
302
|
(o?.paidTimeOff || []).filter((E) => E.name),
|
|
303
303
|
b?.uuid,
|
|
304
304
|
m
|
|
305
305
|
);
|
|
306
|
-
return
|
|
306
|
+
return se(
|
|
307
307
|
R,
|
|
308
308
|
p,
|
|
309
309
|
T,
|
|
@@ -311,7 +311,7 @@ const Ze = s.object({
|
|
|
311
311
|
m
|
|
312
312
|
);
|
|
313
313
|
} catch {
|
|
314
|
-
return o ?
|
|
314
|
+
return o ? se(
|
|
315
315
|
o,
|
|
316
316
|
p,
|
|
317
317
|
T,
|
|
@@ -327,11 +327,11 @@ const Ze = s.object({
|
|
|
327
327
|
T,
|
|
328
328
|
r,
|
|
329
329
|
m
|
|
330
|
-
]),
|
|
330
|
+
]), Te = Ue({
|
|
331
331
|
first_name: p.firstName,
|
|
332
332
|
last_name: p.lastName
|
|
333
|
-
}),
|
|
334
|
-
const i =
|
|
333
|
+
}), Ae = (e) => {
|
|
334
|
+
const i = me(
|
|
335
335
|
e,
|
|
336
336
|
o,
|
|
337
337
|
A,
|
|
@@ -339,7 +339,7 @@ const Ze = s.object({
|
|
|
339
339
|
m
|
|
340
340
|
);
|
|
341
341
|
C(i);
|
|
342
|
-
}, Q =
|
|
342
|
+
}, Q = re(Pe || 0), J = /* @__PURE__ */ a(
|
|
343
343
|
P,
|
|
344
344
|
{
|
|
345
345
|
flexDirection: g ? "row" : "column",
|
|
@@ -347,11 +347,11 @@ const Ze = s.object({
|
|
|
347
347
|
alignItems: g ? "flex-start" : "stretch",
|
|
348
348
|
gap: 12,
|
|
349
349
|
children: [
|
|
350
|
-
/* @__PURE__ */ t(u, { variant: "secondary", onClick:
|
|
350
|
+
/* @__PURE__ */ t(u, { variant: "secondary", onClick: U, title: n("cancelCta"), children: n("cancelCta") }),
|
|
351
351
|
/* @__PURE__ */ t(
|
|
352
352
|
u,
|
|
353
353
|
{
|
|
354
|
-
onClick: L.handleSubmit(
|
|
354
|
+
onClick: L.handleSubmit(Ae),
|
|
355
355
|
title: n("saveCta"),
|
|
356
356
|
isLoading: y,
|
|
357
357
|
children: n("saveCta")
|
|
@@ -360,31 +360,31 @@ const Ze = s.object({
|
|
|
360
360
|
]
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
|
-
return /* @__PURE__ */ a("div", { ref:
|
|
363
|
+
return /* @__PURE__ */ a("div", { ref: z, className: xe(c.container, l), children: [
|
|
364
364
|
/* @__PURE__ */ t(
|
|
365
365
|
"div",
|
|
366
366
|
{
|
|
367
367
|
className: `${c.headerSection} ${g ? "" : c.headerSectionSticky}`,
|
|
368
368
|
children: /* @__PURE__ */ a(P, { justifyContent: "space-between", children: [
|
|
369
369
|
/* @__PURE__ */ a(P, { flexDirection: "column", alignItems: "stretch", gap: g ? 8 : 2, children: [
|
|
370
|
-
/* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName:
|
|
370
|
+
/* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName: Te }) }),
|
|
371
371
|
g ? /* @__PURE__ */ a(P, { flexDirection: "column", gap: 6, children: [
|
|
372
372
|
/* @__PURE__ */ t(f, { as: "h2", styledAs: "h3", children: Q }),
|
|
373
|
-
/* @__PURE__ */ t(
|
|
373
|
+
/* @__PURE__ */ t(B, { className: c.grossPayLabel, children: n("grossPayLabel") })
|
|
374
374
|
] }) : /* @__PURE__ */ t(f, { as: "h2", styledAs: "h6", className: c.grossPayLabel, children: n("grossPayLabelMobile", { grossPay: Q }) })
|
|
375
375
|
] }),
|
|
376
|
-
g &&
|
|
376
|
+
g && J
|
|
377
377
|
] })
|
|
378
378
|
}
|
|
379
379
|
),
|
|
380
|
-
/* @__PURE__ */ a(
|
|
381
|
-
/* @__PURE__ */ a(
|
|
380
|
+
/* @__PURE__ */ a(te, { ...L, children: [
|
|
381
|
+
/* @__PURE__ */ a(ke, { children: [
|
|
382
382
|
v.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
383
383
|
/* @__PURE__ */ t(f, { as: "h3", children: n("regularHoursTitle") }),
|
|
384
384
|
v.map((e) => /* @__PURE__ */ a(P, { flexDirection: "column", gap: 8, children: [
|
|
385
385
|
v.length > 1 && /* @__PURE__ */ t(f, { as: "h4", children: e.title }),
|
|
386
|
-
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children:
|
|
387
|
-
const d =
|
|
386
|
+
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: oe.map((i) => {
|
|
387
|
+
const d = q(
|
|
388
388
|
e.uuid,
|
|
389
389
|
i
|
|
390
390
|
);
|
|
@@ -394,8 +394,9 @@ const Ze = s.object({
|
|
|
394
394
|
{
|
|
395
395
|
type: "number",
|
|
396
396
|
min: 0,
|
|
397
|
+
transform: k,
|
|
397
398
|
adornmentEnd: n("hoursUnit"),
|
|
398
|
-
label:
|
|
399
|
+
label: pe(i),
|
|
399
400
|
name: `hourlyCompensations.${e.uuid}.${d.name}`
|
|
400
401
|
},
|
|
401
402
|
i
|
|
@@ -406,7 +407,7 @@ const Ze = s.object({
|
|
|
406
407
|
A.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
407
408
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: m === F.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle") }),
|
|
408
409
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: A.map((e) => /* @__PURE__ */ t(
|
|
409
|
-
|
|
410
|
+
Ie,
|
|
410
411
|
{
|
|
411
412
|
timeOff: e,
|
|
412
413
|
employee: p
|
|
@@ -417,10 +418,10 @@ const Ze = s.object({
|
|
|
417
418
|
m === F.Dismissal && A.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
418
419
|
/* @__PURE__ */ a(P, { flexDirection: "column", gap: 4, children: [
|
|
419
420
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("finalPayoutTitle") }),
|
|
420
|
-
/* @__PURE__ */ t(
|
|
421
|
+
/* @__PURE__ */ t(B, { variant: "supporting", children: n("finalPayoutDescription") })
|
|
421
422
|
] }),
|
|
422
423
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: A.map((e) => /* @__PURE__ */ t(
|
|
423
|
-
|
|
424
|
+
Fe,
|
|
424
425
|
{
|
|
425
426
|
timeOff: e,
|
|
426
427
|
employee: p
|
|
@@ -428,20 +429,21 @@ const Ze = s.object({
|
|
|
428
429
|
`payout-${e.name}`
|
|
429
430
|
)) })
|
|
430
431
|
] }),
|
|
431
|
-
|
|
432
|
+
G.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
432
433
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("additionalEarningsTitle") }),
|
|
433
434
|
/* @__PURE__ */ t(
|
|
434
435
|
x,
|
|
435
436
|
{
|
|
436
437
|
gridTemplateColumns: { base: "1fr", small: [320, 320], large: [320, 320, 320] },
|
|
437
438
|
gap: 20,
|
|
438
|
-
children:
|
|
439
|
+
children: G.map((e) => /* @__PURE__ */ t(
|
|
439
440
|
I,
|
|
440
441
|
{
|
|
441
442
|
type: "number",
|
|
442
443
|
min: 0,
|
|
444
|
+
transform: k,
|
|
443
445
|
adornmentStart: "$",
|
|
444
|
-
label:
|
|
446
|
+
label: Y(e.name),
|
|
445
447
|
name: `fixedCompensations.${e.name}`,
|
|
446
448
|
errorMessage: n("validations.negativeAmount")
|
|
447
449
|
},
|
|
@@ -450,15 +452,16 @@ const Ze = s.object({
|
|
|
450
452
|
}
|
|
451
453
|
)
|
|
452
454
|
] }),
|
|
453
|
-
|
|
455
|
+
W && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
454
456
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
|
|
455
457
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ t(
|
|
456
458
|
I,
|
|
457
459
|
{
|
|
458
460
|
type: "number",
|
|
459
461
|
min: 0,
|
|
462
|
+
transform: k,
|
|
460
463
|
adornmentStart: "$",
|
|
461
|
-
label:
|
|
464
|
+
label: Y(S),
|
|
462
465
|
name: `fixedCompensations.${S}`,
|
|
463
466
|
errorMessage: n("validations.negativeAmount")
|
|
464
467
|
}
|
|
@@ -466,8 +469,8 @@ const Ze = s.object({
|
|
|
466
469
|
] }),
|
|
467
470
|
O && _ && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
468
471
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
|
|
469
|
-
!(
|
|
470
|
-
|
|
472
|
+
!(H.length === 0 && X) && /* @__PURE__ */ t(Qe, { label: n("reimbursementsTableLabel"), ...Ee }),
|
|
473
|
+
X ? /* @__PURE__ */ t(te, { ...$, children: /* @__PURE__ */ a(P, { flexDirection: "column", gap: 12, children: [
|
|
471
474
|
/* @__PURE__ */ a(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
|
|
472
475
|
/* @__PURE__ */ t(
|
|
473
476
|
I,
|
|
@@ -483,6 +486,7 @@ const Ze = s.object({
|
|
|
483
486
|
name: "amount",
|
|
484
487
|
type: "number",
|
|
485
488
|
min: 0,
|
|
489
|
+
transform: k,
|
|
486
490
|
adornmentStart: "$",
|
|
487
491
|
isRequired: !0,
|
|
488
492
|
label: n("reimbursementAmountLabel"),
|
|
@@ -491,18 +495,18 @@ const Ze = s.object({
|
|
|
491
495
|
)
|
|
492
496
|
] }),
|
|
493
497
|
/* @__PURE__ */ a(P, { gap: 12, children: [
|
|
494
|
-
/* @__PURE__ */ t(u, { onClick:
|
|
495
|
-
/* @__PURE__ */ t(u, { variant: "secondary", onClick:
|
|
498
|
+
/* @__PURE__ */ t(u, { onClick: $.handleSubmit(Ne), children: n("saveReimbursementCta") }),
|
|
499
|
+
/* @__PURE__ */ t(u, { variant: "secondary", onClick: Z, children: n("cancelReimbursementCta") })
|
|
496
500
|
] })
|
|
497
|
-
] }) }) :
|
|
501
|
+
] }) }) : H.length > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
498
502
|
u,
|
|
499
503
|
{
|
|
500
504
|
variant: "secondary",
|
|
501
505
|
onClick: () => {
|
|
502
|
-
|
|
506
|
+
w(!0);
|
|
503
507
|
},
|
|
504
508
|
title: n("addReimbursementLink"),
|
|
505
|
-
icon: /* @__PURE__ */ t(
|
|
509
|
+
icon: /* @__PURE__ */ t(ae, { "aria-hidden": !0 }),
|
|
506
510
|
children: n("addReimbursementLink")
|
|
507
511
|
}
|
|
508
512
|
) })
|
|
@@ -510,7 +514,7 @@ const Ze = s.object({
|
|
|
510
514
|
h && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
511
515
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("paymentMethodTitle") }),
|
|
512
516
|
/* @__PURE__ */ t(
|
|
513
|
-
|
|
517
|
+
Xe,
|
|
514
518
|
{
|
|
515
519
|
name: "paymentMethod",
|
|
516
520
|
isRequired: !0,
|
|
@@ -530,11 +534,11 @@ const Ze = s.object({
|
|
|
530
534
|
)
|
|
531
535
|
] })
|
|
532
536
|
] }),
|
|
533
|
-
!g &&
|
|
537
|
+
!g && J
|
|
534
538
|
] })
|
|
535
539
|
] });
|
|
536
540
|
};
|
|
537
541
|
export {
|
|
538
|
-
|
|
542
|
+
Fn as PayrollEditEmployeePresentation
|
|
539
543
|
};
|
|
540
544
|
//# sourceMappingURL=PayrollEditEmployeePresentation.js.map
|