@gusto/embedded-react-sdk 0.40.0 → 0.42.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 +77 -42
- package/dist/assets/icons/house.svg.js +10 -0
- package/dist/assets/icons/house.svg.js.map +1 -0
- package/dist/components/Common/EmptyData/EmptyData.d.ts +3 -0
- package/dist/components/Common/EmptyData/EmptyData.js +11 -11
- package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
- package/dist/components/Common/EmptyData/EmptyData.module.scss.js +8 -6
- package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
- package/dist/components/Common/Form/Form.d.ts +1 -1
- package/dist/components/Common/Form/Form.js +15 -5
- package/dist/components/Common/Form/Form.js.map +1 -1
- package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
- package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
- package/dist/components/Common/UI/TextInput/TextInput.js +37 -35
- package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.d.ts +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +78 -61
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/index.d.ts +1 -1
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.d.ts +7 -6
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +54 -54
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.js +11 -15
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js +37 -35
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.d.ts +6 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +31 -148
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleComponents.d.ts +10 -0
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js +26 -0
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -0
- package/dist/components/Company/PaySchedule/PayScheduleForm.d.ts +8 -0
- package/dist/components/Company/PaySchedule/PayScheduleForm.js +186 -0
- package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -0
- package/dist/components/Company/PaySchedule/PayScheduleForm.module.scss.js +12 -0
- package/dist/components/Company/PaySchedule/PayScheduleForm.module.scss.js.map +1 -0
- package/dist/components/Company/PaySchedule/PayScheduleList.d.ts +8 -0
- package/dist/components/Company/PaySchedule/PayScheduleList.js +102 -0
- package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -0
- package/dist/components/Company/PaySchedule/{_parts/List.module.scss.js → PayScheduleList.module.scss.js} +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleList.module.scss.js.map +1 -0
- package/dist/components/Company/PaySchedule/payScheduleStateMachine.d.ts +6 -0
- package/dist/components/Company/PaySchedule/payScheduleStateMachine.js +49 -0
- package/dist/components/Company/PaySchedule/payScheduleStateMachine.js.map +1 -0
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +11 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js +13 -16
- package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js +61 -63
- package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js +11 -11
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +88 -111
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +8 -8
- package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +2 -0
- package/dist/components/Employee/Dashboard/DashboardComponents.js +18 -6
- package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
- package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +2 -0
- package/dist/components/Employee/Dashboard/dashboardStateMachine.js +55 -4
- package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +0 -33
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +130 -214
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +79 -56
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.d.ts +2 -3
- package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/index.d.ts +2 -2
- package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +0 -1
- package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js +33 -49
- package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +12 -3
- package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -0
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -0
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -0
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -0
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -0
- package/dist/components/Employee/HomeAddress/management/HomeAddress.d.ts +6 -0
- package/dist/components/Employee/HomeAddress/management/HomeAddress.js +48 -0
- package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -0
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +18 -0
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +476 -0
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -0
- package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.d.ts +8 -0
- package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js +36 -0
- package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js.map +1 -0
- package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.test.d.ts +1 -0
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.d.ts +45 -0
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +112 -0
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -0
- package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +1 -1
- package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +22 -21
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/AdminProfile.js +144 -146
- package/dist/components/Employee/Profile/AdminProfile.js.map +1 -1
- package/dist/components/Employee/Profile/EmployeeProfile.js +34 -30
- package/dist/components/Employee/Profile/EmployeeProfile.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +37 -36
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +2 -0
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.d.ts +3 -0
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js +24 -0
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js.map +1 -0
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +9 -3
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +97 -97
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/index.d.ts +2 -0
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.d.ts +3 -0
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js +24 -0
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js.map +1 -0
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +10 -4
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +95 -84
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +11 -9
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +71 -89
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddress.d.ts +6 -0
- package/dist/components/Employee/WorkAddress/management/WorkAddress.js +48 -0
- package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -0
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +16 -0
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +367 -0
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -0
- package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.d.ts +4 -0
- package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js +35 -0
- package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js.map +1 -0
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.d.ts +45 -0
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +143 -0
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -0
- package/dist/components/Employee/exports/employeeManagement.d.ts +3 -1
- package/dist/components/Employee/exports/employeeManagement.js +12 -10
- package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
- package/dist/components/Employee/exports/employeeOnboarding.d.ts +1 -1
- package/dist/components/Employee/exports/employeeOnboarding.js +1 -1
- package/dist/components/Employee/index.d.ts +5 -1
- package/dist/components/Employee/index.js +37 -33
- package/dist/components/Employee/index.js.map +1 -1
- package/dist/components/Flow/Flow.js +23 -50
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/Flow/FlowHeader.d.ts +16 -0
- package/dist/components/Flow/FlowHeader.js +89 -0
- package/dist/components/Flow/FlowHeader.js.map +1 -0
- package/dist/components/Flow/useFlow.d.ts +33 -6
- package/dist/components/Flow/useFlow.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlow.js +20 -18
- package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +10 -10
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +17 -19
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js +13 -11
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +9 -9
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycle/offCycleStateMachine.js +25 -29
- package/dist/components/Payroll/OffCycle/offCycleStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +43 -42
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +38 -42
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +18 -17
- package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +69 -78
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +13 -12
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +51 -82
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +45 -43
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js +17 -15
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +24 -24
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
- package/dist/components/Payroll/Transition/transitionStateMachine.js +25 -29
- package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -1
- package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +1 -0
- package/dist/helpers/breadcrumbHelpers.d.ts +35 -22
- package/dist/helpers/breadcrumbHelpers.js +45 -35
- package/dist/helpers/breadcrumbHelpers.js.map +1 -1
- package/dist/helpers/dateFormatting.d.ts +12 -0
- package/dist/helpers/dateFormatting.js +72 -65
- package/dist/helpers/dateFormatting.js.map +1 -1
- package/dist/helpers/formattedStrings.d.ts +2 -0
- package/dist/helpers/formattedStrings.js +30 -27
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/i18n/I18n.js +130 -35
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +15 -13
- package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
- package/dist/i18n/en/Employee.HomeAddress.Management.json.js +60 -0
- package/dist/i18n/en/Employee.HomeAddress.Management.json.js.map +1 -0
- package/dist/i18n/en/Employee.HomeAddress.json.js +22 -20
- package/dist/i18n/en/Employee.HomeAddress.json.js.map +1 -1
- package/dist/i18n/en/Employee.I9SignatureForm.json.js +79 -75
- package/dist/i18n/en/Employee.I9SignatureForm.json.js.map +1 -1
- package/dist/i18n/en/Employee.PaymentMethod.json.js +13 -13
- package/dist/i18n/en/Employee.WorkAddress.Management.json.js +62 -0
- package/dist/i18n/en/Employee.WorkAddress.Management.json.js.map +1 -0
- package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -10
- package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -1
- package/dist/i18n/en/common.json.d.ts +1 -0
- package/dist/i18n/en/common.json.js +28 -26
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +72 -68
- package/dist/index.js.map +1 -1
- package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +4 -2
- package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +19 -13
- package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
- package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +5 -2
- package/dist/partner-hook-utils/form/fields/SelectHookField.js +21 -17
- package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
- package/dist/shared/constants.d.ts +4 -0
- package/dist/shared/constants.js +14 -12
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +98 -1
- package/docs/reference/endpoint-inventory.json +88 -43
- package/package.json +10 -10
- package/dist/_virtual/dynamic-import-helper.js +0 -17
- package/dist/_virtual/dynamic-import-helper.js.map +0 -1
- package/dist/components/Common/SignatureForm/SignatureForm.d.ts +0 -14
- package/dist/components/Common/SignatureForm/SignatureForm.js +0 -26
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +0 -1
- package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js +0 -10
- package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js.map +0 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.d.ts +0 -8
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +0 -19
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +0 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.d.ts +0 -9
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +0 -36
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +0 -1
- package/dist/components/Common/SignatureForm/index.d.ts +0 -5
- package/dist/components/Company/DocumentSigner/SignatureForm/Actions.d.ts +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Actions.js +0 -20
- package/dist/components/Company/DocumentSigner/SignatureForm/Actions.js.map +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Form.d.ts +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Form.js +0 -20
- package/dist/components/Company/DocumentSigner/SignatureForm/Form.js.map +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Head.d.ts +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Head.js +0 -35
- package/dist/components/Company/DocumentSigner/SignatureForm/Head.js.map +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Preview.d.ts +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Preview.js +0 -20
- package/dist/components/Company/DocumentSigner/SignatureForm/Preview.js.map +0 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.d.ts +0 -9
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +0 -22
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +0 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.d.ts +0 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +0 -62
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +0 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.d.ts +0 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +0 -134
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +0 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.module.scss.js +0 -14
- package/dist/components/Company/PaySchedule/_parts/Edit.module.scss.js.map +0 -1
- package/dist/components/Company/PaySchedule/_parts/Head.d.ts +0 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +0 -47
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +0 -1
- package/dist/components/Company/PaySchedule/_parts/List.d.ts +0 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +0 -57
- package/dist/components/Company/PaySchedule/_parts/List.js.map +0 -1
- package/dist/components/Company/PaySchedule/_parts/List.module.scss.js.map +0 -1
- package/dist/components/Company/PaySchedule/_parts/index.d.ts +0 -5
- package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +0 -39
- package/dist/components/Company/PaySchedule/usePaySchedule.js +0 -30
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.d.ts +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js +0 -20
- package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js.map +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.d.ts +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js +0 -20
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Head.d.ts +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js +0 -35
- package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js.map +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.d.ts +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js +0 -20
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +0 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.d.ts +0 -9
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +0 -20
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +0 -1
- package/dist/components/Employee/employee-list/management/ManagementEmployeeList.js.map +0 -1
- package/dist/components/Employee/employee-list/management/ManagementEmployeeListView.js.map +0 -1
- package/dist/components/Employee/employee-list/onboarding/EmployeeList.js.map +0 -1
- package/dist/components/Employee/employee-list/onboarding/EmployeeListView.js.map +0 -1
- package/dist/components/Employee/employee-list/shared/useEmployeeList.js.map +0 -1
- /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeList.d.ts +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeList.js +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeListView.d.ts +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeListView.js +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeList.d.ts +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeList.js +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeListView.d.ts +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeListView.js +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/shared/index.d.ts +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/shared/useEmployeeList.d.ts +0 -0
- /package/dist/components/Employee/{employee-list → EmployeeList}/shared/useEmployeeList.js +0 -0
package/dist/index.js
CHANGED
|
@@ -10,98 +10,102 @@ import * as i from "./components/Company/exports/companyOnboarding.js";
|
|
|
10
10
|
import * as d from "./components/Contractor/exports/contractorOnboarding.js";
|
|
11
11
|
import { ApiProvider as f } from "./contexts/ApiProvider/ApiProvider.js";
|
|
12
12
|
import { componentEvents as c } from "./shared/constants.js";
|
|
13
|
-
import { SDKInternalError as
|
|
13
|
+
import { SDKInternalError as u, normalizeToSDKError as F } from "./types/sdkError.js";
|
|
14
14
|
import { composeErrorHandler as y } from "./partner-hook-utils/composeErrorHandler.js";
|
|
15
15
|
import { collectErrors as P } from "./partner-hook-utils/collectErrors.js";
|
|
16
|
-
import { useCompensationForm as
|
|
17
|
-
import { CompensationErrorCodes as
|
|
16
|
+
import { useCompensationForm as A } from "./components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js";
|
|
17
|
+
import { CompensationErrorCodes as h, createCompensationSchema as k } from "./components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js";
|
|
18
18
|
import { useEmployeeDetailsForm as v } from "./components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js";
|
|
19
19
|
import { EmployeeDetailsErrorCodes as O, createEmployeeDetailsSchema as R } from "./components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js";
|
|
20
20
|
import { useWorkAddressForm as M } from "./components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
21
|
+
import { useCurrentWorkAddressForm as $ } from "./components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js";
|
|
22
|
+
import { WorkAddressErrorCodes as N, createWorkAddressSchema as T } from "./components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.js";
|
|
23
|
+
import { useHomeAddressForm as K } from "./components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js";
|
|
24
|
+
import { useCurrentHomeAddressForm as B } from "./components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js";
|
|
25
|
+
import { HomeAddressErrorCodes as U, createHomeAddressSchema as X } from "./components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js";
|
|
26
|
+
import { useSignEmployeeForm as z } from "./components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js";
|
|
27
|
+
import { MAX_PREPARERS as j, PREPARER_FIELDS_BY_INDEX as J, SignEmployeeFormErrorCodes as Q, createSignEmployeeFormSchema as V, preparerFieldName as Z } from "./components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js";
|
|
28
|
+
import { usePayScheduleForm as ro } from "./components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js";
|
|
29
|
+
import { PayScheduleErrorCodes as mo, createPayScheduleSchema as to } from "./components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js";
|
|
30
|
+
import { useSignCompanyForm as ao } from "./components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js";
|
|
31
|
+
import { SignCompanyFormErrorCodes as io, createSignCompanyFormSchema as no } from "./components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.js";
|
|
32
|
+
import { CheckboxHookField as fo } from "./partner-hook-utils/form/fields/CheckboxHookField.js";
|
|
33
|
+
import { DatePickerHookField as co } from "./partner-hook-utils/form/fields/DatePickerHookField.js";
|
|
34
|
+
import { FormFieldsMetadataProvider as uo } from "./partner-hook-utils/form/FormFieldsMetadataProvider.js";
|
|
35
|
+
import { GustoApiProvider as So, GustoProvider as yo } from "./contexts/GustoProvider/GustoProvider.js";
|
|
36
|
+
import { GustoProviderCustomUIAdapter as Po } from "./contexts/GustoProvider/GustoProviderCustomUIAdapter.js";
|
|
37
|
+
import { NumberInputHookField as Ao } from "./partner-hook-utils/form/fields/NumberInputHookField.js";
|
|
38
|
+
import { ObservabilityProvider as ho } from "./contexts/ObservabilityProvider/ObservabilityProvider.js";
|
|
39
|
+
import { RadioGroupHookField as Ho } from "./partner-hook-utils/form/fields/RadioGroupHookField.js";
|
|
40
|
+
import { SDKFormProvider as Do } from "./partner-hook-utils/form/SDKFormProvider.js";
|
|
41
|
+
import { SelectHookField as Ro } from "./partner-hook-utils/form/fields/SelectHookField.js";
|
|
42
|
+
import { SwitchHookField as Mo } from "./partner-hook-utils/form/fields/SwitchHookField.js";
|
|
43
|
+
import { TextInputHookField as $o } from "./partner-hook-utils/form/fields/TextInputHookField.js";
|
|
44
|
+
import { composeSubmitHandler as No } from "./partner-hook-utils/form/composeSubmitHandler.js";
|
|
45
|
+
import { useDeriveFieldsMetadata as Wo } from "./partner-hook-utils/form/useDeriveFieldsMetadata.js";
|
|
46
|
+
import { useFieldErrorMessage as wo } from "./partner-hook-utils/form/useFieldErrorMessage.js";
|
|
47
|
+
import { useObservability as Lo } from "./contexts/ObservabilityProvider/useObservability.js";
|
|
48
|
+
import { withOptions as Xo } from "./partner-hook-utils/form/withOptions.js";
|
|
47
49
|
export {
|
|
48
50
|
f as ApiProvider,
|
|
49
|
-
|
|
51
|
+
fo as CheckboxHookField,
|
|
50
52
|
o as Company,
|
|
51
53
|
i as CompanyOnboarding,
|
|
52
|
-
|
|
54
|
+
h as CompensationErrorCodes,
|
|
53
55
|
r as Contractor,
|
|
54
56
|
d as ContractorOnboarding,
|
|
55
|
-
|
|
57
|
+
co as DatePickerHookField,
|
|
56
58
|
e as Employee,
|
|
57
59
|
O as EmployeeDetailsErrorCodes,
|
|
58
60
|
s as EmployeeManagement,
|
|
59
61
|
a as EmployeeOnboarding,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
uo as FormFieldsMetadataProvider,
|
|
63
|
+
So as GustoApiProvider,
|
|
64
|
+
yo as GustoProvider,
|
|
65
|
+
Po as GustoProviderCustomUIAdapter,
|
|
66
|
+
U as HomeAddressErrorCodes,
|
|
65
67
|
m as InformationRequests,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
j as MAX_PREPARERS,
|
|
69
|
+
Ao as NumberInputHookField,
|
|
70
|
+
ho as ObservabilityProvider,
|
|
71
|
+
J as PREPARER_FIELDS_BY_INDEX,
|
|
72
|
+
mo as PayScheduleErrorCodes,
|
|
71
73
|
t as Payroll,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
Ho as RadioGroupHookField,
|
|
75
|
+
Do as SDKFormProvider,
|
|
76
|
+
u as SDKInternalError,
|
|
77
|
+
Ro as SelectHookField,
|
|
78
|
+
io as SignCompanyFormErrorCodes,
|
|
79
|
+
Q as SignEmployeeFormErrorCodes,
|
|
80
|
+
Mo as SwitchHookField,
|
|
81
|
+
$o as TextInputHookField,
|
|
80
82
|
p as UNSTABLE_TimeOff,
|
|
81
|
-
|
|
83
|
+
N as WorkAddressErrorCodes,
|
|
82
84
|
P as collectErrors,
|
|
83
85
|
c as componentEvents,
|
|
84
86
|
y as composeErrorHandler,
|
|
85
|
-
|
|
87
|
+
No as composeSubmitHandler,
|
|
86
88
|
k as createCompensationSchema,
|
|
87
89
|
R as createEmployeeDetailsSchema,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
X as createHomeAddressSchema,
|
|
91
|
+
to as createPayScheduleSchema,
|
|
92
|
+
no as createSignCompanyFormSchema,
|
|
93
|
+
V as createSignEmployeeFormSchema,
|
|
94
|
+
T as createWorkAddressSchema,
|
|
95
|
+
F as normalizeToSDKError,
|
|
96
|
+
Z as preparerFieldName,
|
|
97
|
+
A as useCompensationForm,
|
|
98
|
+
B as useCurrentHomeAddressForm,
|
|
99
|
+
$ as useCurrentWorkAddressForm,
|
|
100
|
+
Wo as useDeriveFieldsMetadata,
|
|
97
101
|
v as useEmployeeDetailsForm,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
wo as useFieldErrorMessage,
|
|
103
|
+
K as useHomeAddressForm,
|
|
104
|
+
Lo as useObservability,
|
|
105
|
+
ro as usePayScheduleForm,
|
|
106
|
+
ao as useSignCompanyForm,
|
|
107
|
+
z as useSignEmployeeForm,
|
|
104
108
|
M as useWorkAddressForm,
|
|
105
|
-
|
|
109
|
+
Xo as withOptions
|
|
106
110
|
};
|
|
107
111
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
import { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types';
|
|
3
3
|
import { DatePickerProps } from '../../../components/Common/UI/DatePicker/DatePickerTypes';
|
|
4
|
-
export interface DatePickerHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {
|
|
4
|
+
export interface DatePickerHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps, Pick<DatePickerProps, 'portalContainer' | 'minDate' | 'maxDate'> {
|
|
5
5
|
name: string;
|
|
6
6
|
formHookResult?: FormHookResult;
|
|
7
7
|
validationMessages?: ValidationMessages<TErrorCode>;
|
|
8
8
|
FieldComponent?: ComponentType<DatePickerProps>;
|
|
9
|
+
/** When used inside a modal, pass the modal backdrop ref's element so the calendar popover stacks correctly. */
|
|
10
|
+
portalContainer?: DatePickerProps['portalContainer'];
|
|
9
11
|
}
|
|
10
|
-
export declare function DatePickerHookField<TErrorCode extends string>({ name, formHookResult, label, description, validationMessages, FieldComponent, }: DatePickerHookFieldProps<TErrorCode>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function DatePickerHookField<TErrorCode extends string>({ name, formHookResult, label, description, validationMessages, FieldComponent, portalContainer, minDate, maxDate, }: DatePickerHookFieldProps<TErrorCode>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useHookFieldResolution as
|
|
3
|
-
import { DatePickerField as
|
|
4
|
-
function
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useHookFieldResolution as k } from "../useHookFieldResolution.js";
|
|
3
|
+
import { DatePickerField as p } from "../../../components/Common/Fields/DatePickerField/DatePickerField.js";
|
|
4
|
+
function b({
|
|
5
5
|
name: e,
|
|
6
6
|
formHookResult: o,
|
|
7
7
|
label: r,
|
|
8
8
|
description: t,
|
|
9
9
|
validationMessages: s,
|
|
10
|
-
FieldComponent: d
|
|
10
|
+
FieldComponent: d,
|
|
11
|
+
portalContainer: a,
|
|
12
|
+
minDate: l,
|
|
13
|
+
maxDate: c
|
|
11
14
|
}) {
|
|
12
|
-
const { metadata:
|
|
15
|
+
const { metadata: u, control: f, errorMessage: m } = k(
|
|
13
16
|
e,
|
|
14
17
|
o,
|
|
15
18
|
s
|
|
16
|
-
), i =
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
19
|
+
), i = u[e];
|
|
20
|
+
return /* @__PURE__ */ n(
|
|
21
|
+
p,
|
|
19
22
|
{
|
|
20
23
|
name: e,
|
|
21
|
-
control:
|
|
24
|
+
control: f,
|
|
22
25
|
label: r,
|
|
23
26
|
description: t,
|
|
24
|
-
errorMessage:
|
|
27
|
+
errorMessage: m,
|
|
25
28
|
isRequired: i?.isRequired,
|
|
26
29
|
isDisabled: i?.isDisabled,
|
|
27
|
-
FieldComponent: d
|
|
30
|
+
FieldComponent: d,
|
|
31
|
+
portalContainer: a,
|
|
32
|
+
minDate: l,
|
|
33
|
+
maxDate: c
|
|
28
34
|
}
|
|
29
35
|
);
|
|
30
36
|
}
|
|
31
37
|
export {
|
|
32
|
-
|
|
38
|
+
b as DatePickerHookField
|
|
33
39
|
};
|
|
34
40
|
//# sourceMappingURL=DatePickerHookField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePickerHookField.js","sources":["../../../../src/partner-hook-utils/form/fields/DatePickerHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport type { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types'\nimport { DatePickerField } from '@/components/Common/Fields/DatePickerField'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\n\nexport interface DatePickerHookFieldProps
|
|
1
|
+
{"version":3,"file":"DatePickerHookField.js","sources":["../../../../src/partner-hook-utils/form/fields/DatePickerHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport type { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types'\nimport { DatePickerField } from '@/components/Common/Fields/DatePickerField'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\n\nexport interface DatePickerHookFieldProps<TErrorCode extends string = never>\n extends BaseFieldProps, Pick<DatePickerProps, 'portalContainer' | 'minDate' | 'maxDate'> {\n name: string\n formHookResult?: FormHookResult\n validationMessages?: ValidationMessages<TErrorCode>\n FieldComponent?: ComponentType<DatePickerProps>\n /** When used inside a modal, pass the modal backdrop ref's element so the calendar popover stacks correctly. */\n portalContainer?: DatePickerProps['portalContainer']\n}\n\nexport function DatePickerHookField<TErrorCode extends string>({\n name,\n formHookResult,\n label,\n description,\n validationMessages,\n FieldComponent,\n portalContainer,\n minDate,\n maxDate,\n}: DatePickerHookFieldProps<TErrorCode>) {\n const { metadata, control, errorMessage } = useHookFieldResolution(\n name,\n formHookResult,\n validationMessages,\n )\n const fieldMetadata = metadata[name]\n\n return (\n <DatePickerField\n name={name}\n control={control}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n FieldComponent={FieldComponent}\n portalContainer={portalContainer}\n minDate={minDate}\n maxDate={maxDate}\n />\n )\n}\n"],"names":["DatePickerHookField","name","formHookResult","label","description","validationMessages","FieldComponent","portalContainer","minDate","maxDate","metadata","control","errorMessage","useHookFieldResolution","fieldMetadata","jsx","DatePickerField"],"mappings":";;;AAgBO,SAASA,EAA+C;AAAA,EAC7D,MAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AACF,GAAyC;AACvC,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,cAAAC,EAAA,IAAiBC;AAAA,IAC1CZ;AAAA,IACAC;AAAA,IACAG;AAAA,EAAA,GAEIS,IAAgBJ,EAAST,CAAI;AAEnC,SACE,gBAAAc;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAf;AAAA,MACA,SAAAU;AAAA,MACA,OAAAR;AAAA,MACA,aAAAC;AAAA,MACA,cAAAQ;AAAA,MACA,YAAYE,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,gBAAAR;AAAA,MACA,iBAAAC;AAAA,MACA,SAAAC;AAAA,MACA,SAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
import { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types';
|
|
3
3
|
import { SelectProps } from '../../../components/Common/UI/Select/SelectTypes';
|
|
4
|
-
export interface SelectHookFieldProps<TErrorCode extends string = never, TEntry = unknown> extends BaseFieldProps {
|
|
4
|
+
export interface SelectHookFieldProps<TErrorCode extends string = never, TEntry = unknown> extends BaseFieldProps, Pick<SelectProps, 'portalContainer'> {
|
|
5
5
|
name: string;
|
|
6
6
|
formHookResult?: FormHookResult;
|
|
7
7
|
validationMessages?: ValidationMessages<TErrorCode>;
|
|
8
8
|
getOptionLabel?: (entry: TEntry) => string;
|
|
9
|
+
placeholder?: string;
|
|
9
10
|
FieldComponent?: ComponentType<SelectProps>;
|
|
11
|
+
/** When used inside a modal, pass the modal backdrop ref’s element so the listbox stacks correctly. */
|
|
12
|
+
portalContainer?: SelectProps['portalContainer'];
|
|
10
13
|
}
|
|
11
|
-
export declare function SelectHookField<TErrorCode extends string, TEntry = unknown>({ name, formHookResult, label, description, validationMessages, getOptionLabel, FieldComponent, }: SelectHookFieldProps<TErrorCode, TEntry>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function SelectHookField<TErrorCode extends string, TEntry = unknown>({ name, formHookResult, label, description, validationMessages, getOptionLabel, placeholder, FieldComponent, portalContainer, }: SelectHookFieldProps<TErrorCode, TEntry>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,40 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useHookFieldResolution as
|
|
3
|
-
import { getFieldWithOptions as
|
|
4
|
-
import { SelectField as
|
|
5
|
-
function
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { useHookFieldResolution as k } from "../useHookFieldResolution.js";
|
|
3
|
+
import { getFieldWithOptions as q } from "../getFieldWithOptions.js";
|
|
4
|
+
import { SelectField as v } from "../../../components/Common/Fields/SelectField/SelectField.js";
|
|
5
|
+
function S({
|
|
6
6
|
name: o,
|
|
7
7
|
formHookResult: s,
|
|
8
8
|
label: r,
|
|
9
9
|
description: l,
|
|
10
10
|
validationMessages: d,
|
|
11
11
|
getOptionLabel: t,
|
|
12
|
-
|
|
12
|
+
placeholder: n,
|
|
13
|
+
FieldComponent: a,
|
|
14
|
+
portalContainer: p
|
|
13
15
|
}) {
|
|
14
|
-
const { metadata:
|
|
16
|
+
const { metadata: u, control: c, errorMessage: m } = k(
|
|
15
17
|
o,
|
|
16
18
|
s,
|
|
17
19
|
d
|
|
18
|
-
), e =
|
|
19
|
-
value: i[
|
|
20
|
-
label: t(
|
|
20
|
+
), e = q(u, o), i = e?.options ?? [], f = t && e?.entries ? e.entries.map((F, R) => ({
|
|
21
|
+
value: i[R]?.value ?? "",
|
|
22
|
+
label: t(F)
|
|
21
23
|
})) : i;
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
|
|
24
|
+
return /* @__PURE__ */ b(
|
|
25
|
+
v,
|
|
24
26
|
{
|
|
25
27
|
name: o,
|
|
26
|
-
control:
|
|
28
|
+
control: c,
|
|
27
29
|
label: r,
|
|
28
30
|
description: l,
|
|
29
|
-
errorMessage:
|
|
31
|
+
errorMessage: m,
|
|
30
32
|
isRequired: e?.isRequired,
|
|
31
33
|
isDisabled: e?.isDisabled,
|
|
32
|
-
options:
|
|
33
|
-
|
|
34
|
+
options: f,
|
|
35
|
+
placeholder: n,
|
|
36
|
+
FieldComponent: a,
|
|
37
|
+
portalContainer: p
|
|
34
38
|
}
|
|
35
39
|
);
|
|
36
40
|
}
|
|
37
41
|
export {
|
|
38
|
-
|
|
42
|
+
S as SelectHookField
|
|
39
43
|
};
|
|
40
44
|
//# sourceMappingURL=SelectHookField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectHookField.js","sources":["../../../../src/partner-hook-utils/form/fields/SelectHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport { getFieldWithOptions } from '../getFieldWithOptions'\nimport type { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types'\nimport { SelectField } from '@/components/Common'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\n\nexport interface SelectHookFieldProps
|
|
1
|
+
{"version":3,"file":"SelectHookField.js","sources":["../../../../src/partner-hook-utils/form/fields/SelectHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport { getFieldWithOptions } from '../getFieldWithOptions'\nimport type { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types'\nimport { SelectField } from '@/components/Common'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\n\nexport interface SelectHookFieldProps<TErrorCode extends string = never, TEntry = unknown>\n extends BaseFieldProps, Pick<SelectProps, 'portalContainer'> {\n name: string\n formHookResult?: FormHookResult\n validationMessages?: ValidationMessages<TErrorCode>\n getOptionLabel?: (entry: TEntry) => string\n placeholder?: string\n FieldComponent?: ComponentType<SelectProps>\n /** When used inside a modal, pass the modal backdrop ref’s element so the listbox stacks correctly. */\n portalContainer?: SelectProps['portalContainer']\n}\n\nexport function SelectHookField<TErrorCode extends string, TEntry = unknown>({\n name,\n formHookResult,\n label,\n description,\n validationMessages,\n getOptionLabel,\n placeholder,\n FieldComponent,\n portalContainer,\n}: SelectHookFieldProps<TErrorCode, TEntry>) {\n const { metadata, control, errorMessage } = useHookFieldResolution(\n name,\n formHookResult,\n validationMessages,\n )\n const fieldMetadata = getFieldWithOptions<TEntry>(metadata, name)\n\n const defaultOptions = fieldMetadata?.options ?? []\n const options =\n getOptionLabel && fieldMetadata?.entries\n ? fieldMetadata.entries.map((entry, index) => ({\n value: defaultOptions[index]?.value ?? '',\n label: getOptionLabel(entry),\n }))\n : defaultOptions\n\n return (\n <SelectField\n name={name}\n control={control}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n options={options}\n placeholder={placeholder}\n FieldComponent={FieldComponent}\n portalContainer={portalContainer}\n />\n )\n}\n"],"names":["SelectHookField","name","formHookResult","label","description","validationMessages","getOptionLabel","placeholder","FieldComponent","portalContainer","metadata","control","errorMessage","useHookFieldResolution","fieldMetadata","getFieldWithOptions","defaultOptions","options","entry","index","jsx","SelectField"],"mappings":";;;;AAmBO,SAASA,EAA6D;AAAA,EAC3E,MAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AACF,GAA6C;AAC3C,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,cAAAC,EAAA,IAAiBC;AAAA,IAC1CZ;AAAA,IACAC;AAAA,IACAG;AAAA,EAAA,GAEIS,IAAgBC,EAA4BL,GAAUT,CAAI,GAE1De,IAAiBF,GAAe,WAAW,CAAA,GAC3CG,IACJX,KAAkBQ,GAAe,UAC7BA,EAAc,QAAQ,IAAI,CAACI,GAAOC,OAAW;AAAA,IAC3C,OAAOH,EAAeG,CAAK,GAAG,SAAS;AAAA,IACvC,OAAOb,EAAeY,CAAK;AAAA,EAAA,EAC3B,IACFF;AAEN,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAApB;AAAA,MACA,SAAAU;AAAA,MACA,OAAAR;AAAA,MACA,aAAAC;AAAA,MACA,cAAAQ;AAAA,MACA,YAAYE,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,SAAAG;AAAA,MACA,aAAAV;AAAA,MACA,gBAAAC;AAAA,MACA,iBAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -11,10 +11,12 @@ export declare const employeeEvents: {
|
|
|
11
11
|
readonly EMPLOYEE_HOME_ADDRESS_UPDATE: "employee/addresses/home/update";
|
|
12
12
|
readonly EMPLOYEE_HOME_ADDRESS_CREATED: "employee/addresses/home/created";
|
|
13
13
|
readonly EMPLOYEE_HOME_ADDRESS_UPDATED: "employee/addresses/home/updated";
|
|
14
|
+
readonly EMPLOYEE_HOME_ADDRESS_DELETED: "employee/addresses/home/deleted";
|
|
14
15
|
readonly EMPLOYEE_WORK_ADDRESS: "employee/addresses/work";
|
|
15
16
|
readonly EMPLOYEE_WORK_ADDRESS_UPDATE: "employee/addresses/work/update";
|
|
16
17
|
readonly EMPLOYEE_WORK_ADDRESS_CREATED: "employee/addresses/work/created";
|
|
17
18
|
readonly EMPLOYEE_WORK_ADDRESS_UPDATED: "employee/addresses/work/updated";
|
|
19
|
+
readonly EMPLOYEE_WORK_ADDRESS_DELETED: "employee/addresses/work/deleted";
|
|
18
20
|
readonly EMPLOYEE_DEDUCTION_ADD: "employee/deductions/add";
|
|
19
21
|
readonly EMPLOYEE_DEDUCTION_CREATED: "employee/deductions/created";
|
|
20
22
|
readonly EMPLOYEE_DEDUCTION_UPDATED: "employee/deductions/updated";
|
|
@@ -390,10 +392,12 @@ export declare const componentEvents: {
|
|
|
390
392
|
readonly EMPLOYEE_HOME_ADDRESS_UPDATE: "employee/addresses/home/update";
|
|
391
393
|
readonly EMPLOYEE_HOME_ADDRESS_CREATED: "employee/addresses/home/created";
|
|
392
394
|
readonly EMPLOYEE_HOME_ADDRESS_UPDATED: "employee/addresses/home/updated";
|
|
395
|
+
readonly EMPLOYEE_HOME_ADDRESS_DELETED: "employee/addresses/home/deleted";
|
|
393
396
|
readonly EMPLOYEE_WORK_ADDRESS: "employee/addresses/work";
|
|
394
397
|
readonly EMPLOYEE_WORK_ADDRESS_UPDATE: "employee/addresses/work/update";
|
|
395
398
|
readonly EMPLOYEE_WORK_ADDRESS_CREATED: "employee/addresses/work/created";
|
|
396
399
|
readonly EMPLOYEE_WORK_ADDRESS_UPDATED: "employee/addresses/work/updated";
|
|
400
|
+
readonly EMPLOYEE_WORK_ADDRESS_DELETED: "employee/addresses/work/deleted";
|
|
397
401
|
readonly EMPLOYEE_DEDUCTION_ADD: "employee/deductions/add";
|
|
398
402
|
readonly EMPLOYEE_DEDUCTION_CREATED: "employee/deductions/created";
|
|
399
403
|
readonly EMPLOYEE_DEDUCTION_UPDATED: "employee/deductions/updated";
|
package/dist/shared/constants.js
CHANGED
|
@@ -13,10 +13,12 @@ const t = {
|
|
|
13
13
|
EMPLOYEE_HOME_ADDRESS_UPDATE: "employee/addresses/home/update",
|
|
14
14
|
EMPLOYEE_HOME_ADDRESS_CREATED: "employee/addresses/home/created",
|
|
15
15
|
EMPLOYEE_HOME_ADDRESS_UPDATED: "employee/addresses/home/updated",
|
|
16
|
+
EMPLOYEE_HOME_ADDRESS_DELETED: "employee/addresses/home/deleted",
|
|
16
17
|
EMPLOYEE_WORK_ADDRESS: "employee/addresses/work",
|
|
17
18
|
EMPLOYEE_WORK_ADDRESS_UPDATE: "employee/addresses/work/update",
|
|
18
19
|
EMPLOYEE_WORK_ADDRESS_CREATED: "employee/addresses/work/created",
|
|
19
20
|
EMPLOYEE_WORK_ADDRESS_UPDATED: "employee/addresses/work/updated",
|
|
21
|
+
EMPLOYEE_WORK_ADDRESS_DELETED: "employee/addresses/work/deleted",
|
|
20
22
|
EMPLOYEE_DEDUCTION_ADD: "employee/deductions/add",
|
|
21
23
|
EMPLOYEE_DEDUCTION_CREATED: "employee/deductions/created",
|
|
22
24
|
EMPLOYEE_DEDUCTION_UPDATED: "employee/deductions/updated",
|
|
@@ -185,17 +187,17 @@ const t = {
|
|
|
185
187
|
PAYROLL_WIRE_INSTRUCTIONS_SELECT: "payroll/wire/instructions/select",
|
|
186
188
|
PAYROLL_WIRE_FORM_DONE: "payroll/wire/form/done",
|
|
187
189
|
PAYROLL_WIRE_FORM_CANCEL: "payroll/wire/form/cancel"
|
|
188
|
-
},
|
|
190
|
+
}, D = {
|
|
189
191
|
INFORMATION_REQUEST_RESPOND: "informationRequest/respond",
|
|
190
192
|
INFORMATION_REQUEST_FORM_SUBMIT: "informationRequest/form/submit",
|
|
191
193
|
INFORMATION_REQUEST_FORM_CANCEL: "informationRequest/form/cancel",
|
|
192
194
|
INFORMATION_REQUEST_FORM_DONE: "informationRequest/form/done"
|
|
193
|
-
},
|
|
195
|
+
}, I = {
|
|
194
196
|
RECOVERY_CASE_RESOLVE: "recoveryCase/resolve",
|
|
195
197
|
RECOVERY_CASE_RESUBMIT: "recoveryCase/resubmit",
|
|
196
198
|
RECOVERY_CASE_RESUBMIT_CANCEL: "recoveryCase/resubmit/cancel",
|
|
197
199
|
RECOVERY_CASE_RESUBMIT_DONE: "recoveryCase/resubmit/done"
|
|
198
|
-
},
|
|
200
|
+
}, P = {
|
|
199
201
|
OFF_CYCLE_CREATED: "offCycle/created",
|
|
200
202
|
DISMISSAL_PAY_PERIOD_SELECTED: "dismissal/payPeriod/selected",
|
|
201
203
|
TRANSITION_CREATED: "transition/created",
|
|
@@ -232,10 +234,10 @@ const t = {
|
|
|
232
234
|
...n,
|
|
233
235
|
...a,
|
|
234
236
|
...r,
|
|
237
|
+
...D,
|
|
235
238
|
...I,
|
|
236
|
-
...P,
|
|
237
239
|
...T,
|
|
238
|
-
...
|
|
240
|
+
...P,
|
|
239
241
|
...N,
|
|
240
242
|
...c
|
|
241
243
|
}, o = {
|
|
@@ -364,9 +366,9 @@ const t = {
|
|
|
364
366
|
C,
|
|
365
367
|
L,
|
|
366
368
|
d
|
|
367
|
-
], K = "Bonus", k = "Paycheck Tips", x = "Correction Payment", X = "Commission", q = "Cash Tips", s = "Reimbursement",
|
|
368
|
-
i,
|
|
369
|
+
], K = "Bonus", k = "Paycheck Tips", x = "Correction Payment", X = "Commission", q = "Cash Tips", s = "Reimbursement", l = "Owner's Draw", S = "Minimum Wage Adjustment", J = [
|
|
369
370
|
l,
|
|
371
|
+
S,
|
|
370
372
|
s
|
|
371
373
|
], j = {
|
|
372
374
|
submitting: "submitting",
|
|
@@ -401,8 +403,8 @@ export {
|
|
|
401
403
|
F as HOURS_PER_PAY_PERIOD_MONTHLY,
|
|
402
404
|
f as HOURS_PER_PAY_PERIOD_WEEKLY,
|
|
403
405
|
g as I9_FORM_NAME,
|
|
404
|
-
|
|
405
|
-
|
|
406
|
+
S as MIN_WAGE_ADJUST,
|
|
407
|
+
l as OWNERS_DRAW,
|
|
406
408
|
H as PAYMENT_METHODS,
|
|
407
409
|
j as PAYROLL_PROCESSING_STATUS,
|
|
408
410
|
Q as PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES,
|
|
@@ -417,11 +419,11 @@ export {
|
|
|
417
419
|
n as contractorEvents,
|
|
418
420
|
T as contractorPaymentEvents,
|
|
419
421
|
t as employeeEvents,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
+
D as informationRequestEvents,
|
|
423
|
+
P as offCycleEvents,
|
|
422
424
|
R as payScheduleEvents,
|
|
423
425
|
r as payrollWireEvents,
|
|
424
|
-
|
|
426
|
+
I as recoveryCasesEvents,
|
|
425
427
|
a as runPayrollEvents,
|
|
426
428
|
N as terminationEvents,
|
|
427
429
|
c as timeOffEvents
|