@gusto/embedded-react-sdk 0.49.0 → 0.51.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 +90 -0
- package/README.md +0 -8
- package/dist/components/Base/createCompoundContext.d.ts +1 -1
- package/dist/components/Base/createCompoundContext.js.map +1 -1
- package/dist/components/Base/index.d.ts +0 -1
- package/dist/components/Base/useBase.d.ts +1 -0
- package/dist/components/Base/useBase.js.map +1 -1
- package/dist/components/Base/useBaseSubmit.js +4 -4
- package/dist/components/Base/useBaseSubmit.js.map +1 -1
- package/dist/components/Common/ActionsLayout/index.d.ts +0 -1
- package/dist/components/Common/DataView/DataCards/index.d.ts +0 -1
- package/dist/components/Common/DataView/index.d.ts +0 -1
- package/dist/components/Common/DetailViewLayout/index.d.ts +0 -1
- package/dist/components/Common/DocumentList/index.d.ts +0 -1
- package/dist/components/Common/DocumentViewer/index.d.ts +0 -1
- package/dist/components/Common/FieldCaption/index.d.ts +0 -1
- package/dist/components/Common/FieldDescription/index.d.ts +0 -1
- package/dist/components/Common/FieldErrorMessage/index.d.ts +0 -1
- package/dist/components/Common/FieldLayout/FieldLayoutTypes.d.ts +1 -0
- package/dist/components/Common/FieldLayout/index.d.ts +0 -1
- package/dist/components/Common/Fields/CheckboxField/index.d.ts +0 -1
- package/dist/components/Common/Fields/CheckboxGroupField/index.d.ts +0 -1
- package/dist/components/Common/Fields/ComboBoxField/index.d.ts +0 -1
- package/dist/components/Common/Fields/DatePickerField/index.d.ts +0 -1
- package/dist/components/Common/Fields/FileInputField/index.d.ts +0 -1
- package/dist/components/Common/Fields/MultiSelectComboBoxField/index.d.ts +0 -1
- package/dist/components/Common/Fields/NumberInputField/index.d.ts +0 -1
- package/dist/components/Common/Fields/RadioGroupField/index.d.ts +0 -1
- package/dist/components/Common/Fields/SelectField/index.d.ts +0 -1
- package/dist/components/Common/Fields/SwitchField/index.d.ts +0 -1
- package/dist/components/Common/Fields/TextAreaField/index.d.ts +0 -1
- package/dist/components/Common/Fields/TextInputField/index.d.ts +0 -1
- package/dist/components/Common/Fieldset/index.d.ts +0 -1
- package/dist/components/Common/Flex/index.d.ts +0 -1
- package/dist/components/Common/FlowBreadcrumbs/index.d.ts +0 -1
- package/dist/components/Common/Form/index.d.ts +0 -1
- package/dist/components/Common/HamburgerMenu/index.d.ts +0 -1
- package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayoutTypes.d.ts +1 -0
- package/dist/components/Common/HorizontalFieldLayout/index.d.ts +0 -1
- package/dist/components/Common/InlineSpinner/index.d.ts +0 -1
- package/dist/components/Common/OnboardingStatusBadge/index.d.ts +2 -3
- package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
- package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +2 -2
- package/dist/components/Common/PaginationControl/index.d.ts +0 -1
- package/dist/components/Common/PayrollLoading/PayrollLoadingTypes.d.ts +1 -1
- package/dist/components/Common/PayrollLoading/index.d.ts +0 -1
- package/dist/components/Common/ReorderableList/index.d.ts +0 -1
- package/dist/components/Common/TaxInputs/TaxInputs.d.ts +2 -2
- package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
- package/dist/components/Common/TaxInputs/index.d.ts +0 -1
- package/dist/components/Common/UI/Alert/AlertTypes.d.ts +1 -1
- package/dist/components/Common/UI/Alert/AlertTypes.js.map +1 -1
- package/dist/components/Common/UI/Badge/Badge.module.scss.js +5 -5
- package/dist/components/Common/UI/Badge/BadgeTypes.d.ts +1 -1
- package/dist/components/Common/UI/Badge/BadgeTypes.js.map +1 -1
- package/dist/components/Common/UI/Banner/BannerTypes.d.ts +1 -1
- package/dist/components/Common/UI/Banner/BannerTypes.js.map +1 -1
- package/dist/components/Common/UI/Box/BoxTypes.d.ts +1 -1
- package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +1 -1
- package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -1
- package/dist/components/Common/UI/BoxHeader/index.d.ts +0 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +2 -2
- package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/index.d.ts +0 -1
- package/dist/components/Common/UI/Button/ButtonTypes.d.ts +2 -2
- package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
- package/dist/components/Common/UI/Button/index.d.ts +0 -1
- package/dist/components/Common/UI/CalendarPreview/CalendarLegend.d.ts +1 -1
- package/dist/components/Common/UI/CalendarPreview/CalendarLegend.js.map +1 -1
- package/dist/components/Common/UI/CalendarPreview/CalendarPreviewTypes.d.ts +1 -1
- package/dist/components/Common/UI/CalendarPreview/index.d.ts +0 -1
- package/dist/components/Common/UI/Card/CardTypes.d.ts +1 -1
- package/dist/components/Common/UI/Checkbox/CheckboxTypes.d.ts +1 -1
- package/dist/components/Common/UI/Checkbox/CheckboxTypes.js.map +1 -1
- package/dist/components/Common/UI/Checkbox/index.d.ts +0 -1
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.d.ts +2 -2
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.js.map +1 -1
- package/dist/components/Common/UI/CheckboxGroup/index.d.ts +0 -1
- package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +2 -2
- package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +1 -1
- package/dist/components/Common/UI/DatePicker/index.d.ts +0 -1
- package/dist/components/Common/UI/DateRangePicker/DateRangePickerTypes.d.ts +2 -2
- package/dist/components/Common/UI/DateRangePicker/index.d.ts +0 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +2 -2
- package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
- package/dist/components/Common/UI/DescriptionList/index.d.ts +0 -1
- package/dist/components/Common/UI/Dialog/DialogTypes.d.ts +1 -1
- package/dist/components/Common/UI/Dialog/DialogTypes.js.map +1 -1
- package/dist/components/Common/UI/Dialog/index.d.ts +0 -1
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +1 -1
- package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -1
- package/dist/components/Common/UI/FileInput/index.d.ts +0 -1
- package/dist/components/Common/UI/Heading/HeadingTypes.d.ts +1 -1
- package/dist/components/Common/UI/Heading/index.d.ts +0 -1
- package/dist/components/Common/UI/Input/index.d.ts +0 -1
- package/dist/components/Common/UI/Link/LinkTypes.d.ts +1 -1
- package/dist/components/Common/UI/Link/index.d.ts +0 -1
- package/dist/components/Common/UI/List/ListTypes.d.ts +3 -3
- package/dist/components/Common/UI/List/index.d.ts +0 -1
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.d.ts +1 -1
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.js.map +1 -1
- package/dist/components/Common/UI/LoadingSpinner/index.d.ts +0 -1
- package/dist/components/Common/UI/Menu/MenuTypes.d.ts +2 -2
- package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
- package/dist/components/Common/UI/Menu/index.d.ts +0 -1
- package/dist/components/Common/UI/Modal/ModalTypes.d.ts +1 -1
- package/dist/components/Common/UI/Modal/ModalTypes.js.map +1 -1
- package/dist/components/Common/UI/Modal/index.d.ts +0 -1
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes.d.ts +2 -2
- package/dist/components/Common/UI/NumberInput/NumberInputTypes.d.ts +1 -1
- package/dist/components/Common/UI/NumberInput/index.d.ts +0 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Common/UI/ProgressBar/ProgressBarTypes.d.ts +1 -1
- package/dist/components/Common/UI/ProgressBar/index.d.ts +0 -1
- package/dist/components/Common/UI/Radio/RadioTypes.d.ts +1 -1
- package/dist/components/Common/UI/Radio/RadioTypes.js.map +1 -1
- package/dist/components/Common/UI/Radio/index.d.ts +0 -1
- package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +2 -2
- package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
- package/dist/components/Common/UI/RadioGroup/index.d.ts +0 -1
- package/dist/components/Common/UI/Select/SelectTypes.d.ts +2 -2
- package/dist/components/Common/UI/Select/index.d.ts +0 -1
- package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +1 -1
- package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
- package/dist/components/Common/UI/Switch/index.d.ts +0 -1
- package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -3
- package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
- package/dist/components/Common/UI/Table/index.d.ts +0 -1
- package/dist/components/Common/UI/Tabs/TabsTypes.d.ts +2 -2
- package/dist/components/Common/UI/Tabs/index.d.ts +0 -1
- package/dist/components/Common/UI/Text/TextTypes.d.ts +1 -1
- package/dist/components/Common/UI/Text/TextTypes.js.map +1 -1
- package/dist/components/Common/UI/Text/index.d.ts +0 -1
- package/dist/components/Common/UI/TextArea/TextAreaTypes.d.ts +1 -1
- package/dist/components/Common/UI/TextArea/TextAreaTypes.js.map +1 -1
- package/dist/components/Common/UI/TextArea/index.d.ts +0 -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/Common/UI/TextInput/index.d.ts +0 -1
- package/dist/components/Common/VisuallyHidden/index.d.ts +0 -1
- package/dist/components/Common/index.d.ts +0 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +5 -5
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/index.d.ts +0 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.d.ts +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -5
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +3 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/index.d.ts +0 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.d.ts +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/index.d.ts +0 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -5
- package/dist/components/Company/BankAccount/BankAccount.d.ts +5 -5
- package/dist/components/Company/BankAccount/BankAccount.js +1 -1
- package/dist/components/Company/BankAccount/BankAccount.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountComponents.d.ts +1 -1
- package/dist/components/Company/BankAccount/BankAccountComponents.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -5
- package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/context.d.ts +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +2 -2
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/index.d.ts +0 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.d.ts +2 -2
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -5
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentSigner.js +1 -1
- package/dist/components/Company/DocumentSigner/DocumentSigner.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/index.d.ts +0 -1
- package/dist/components/Company/DocumentSigner/documentSignerStateMachine.d.ts +2 -2
- package/dist/components/Company/DocumentSigner/documentSignerStateMachine.js.map +1 -1
- package/dist/components/Company/DocumentSigner/index.d.ts +0 -1
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.d.ts +2 -22
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js.map +1 -1
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/index.d.ts +1 -2
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.d.ts +2 -5
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.js.map +1 -1
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.d.ts +10 -9
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +41 -38
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -2
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +1 -1
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/index.d.ts +0 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.d.ts +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -6
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +5 -5
- package/dist/components/Company/Industry/Industry.js +2 -2
- package/dist/components/Company/Industry/Industry.js.map +1 -1
- package/dist/components/Company/Industry/index.d.ts +0 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -4
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/index.d.ts +0 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -5
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/index.d.ts +0 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -5
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.d.ts +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +25 -25
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.d.ts +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +5 -5
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleList.js +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
- package/dist/components/Company/PaySchedule/index.d.ts +0 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +7 -83
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +2 -4
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +3 -8
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +22 -27
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +93 -90
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +2 -2
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/applicableIf.d.ts +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/applicableIf.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.d.ts +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -5
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/index.d.ts +0 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -5
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/index.d.ts +0 -1
- package/dist/components/Company/index.d.ts +0 -1
- package/dist/components/Contractor/Address/Address.js +39 -39
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/index.d.ts +0 -1
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/contractorAddressSchema.d.ts +2 -6
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/contractorAddressSchema.js.map +1 -1
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/fields.d.ts +5 -52
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/fields.js.map +1 -1
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/index.d.ts +2 -4
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.d.ts +63 -24
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js +102 -98
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.d.ts +0 -1
- package/dist/components/Contractor/ContractorList/index.js +1 -1
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/ContractorList/useContractorList.d.ts +1 -1
- package/dist/components/Contractor/ContractorList/useContractorList.js +1 -1
- package/dist/components/Contractor/ContractorList/useContractorList.js.map +1 -1
- package/dist/components/Contractor/Documents/DocumentSigner/DocumentSigner.d.ts +41 -0
- package/dist/components/Contractor/Documents/DocumentSigner/DocumentSigner.js +32 -0
- package/dist/components/Contractor/Documents/DocumentSigner/DocumentSigner.js.map +1 -0
- package/dist/components/Contractor/Documents/DocumentSigner/documentSignerStateMachine.d.ts +22 -0
- package/dist/components/Contractor/Documents/DocumentSigner/documentSignerStateMachine.js +25 -0
- package/dist/components/Contractor/Documents/DocumentSigner/documentSignerStateMachine.js.map +1 -0
- package/dist/components/Contractor/Documents/DocumentSigner/index.d.ts +1 -0
- package/dist/components/Contractor/Documents/DocumentSigner/stateMachine.d.ts +6 -0
- package/dist/components/Contractor/Documents/DocumentSigner/stateMachine.js +44 -0
- package/dist/components/Contractor/Documents/DocumentSigner/stateMachine.js.map +1 -0
- package/dist/components/Contractor/Documents/DocumentsList/DocumentsList.js.map +1 -1
- package/dist/components/Contractor/Documents/DocumentsList/index.d.ts +0 -1
- package/dist/components/Contractor/Documents/DocumentsList/useContractorDocumentsList/index.d.ts +0 -1
- package/dist/components/Contractor/Documents/DocumentsList/useContractorDocumentsList/useContractorDocumentsList.d.ts +2 -1
- package/dist/components/Contractor/Documents/DocumentsList/useContractorDocumentsList/useContractorDocumentsList.js +1 -1
- package/dist/components/Contractor/Documents/DocumentsList/useContractorDocumentsList/useContractorDocumentsList.js.map +1 -1
- package/dist/components/Contractor/Documents/SignatureForm/SignatureForm.d.ts +30 -0
- package/dist/components/Contractor/Documents/SignatureForm/SignatureForm.js +280 -0
- package/dist/components/Contractor/Documents/SignatureForm/SignatureForm.js.map +1 -0
- package/dist/components/Contractor/Documents/SignatureForm/index.d.ts +2 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.d.ts +175 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.js +110 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.js.map +1 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.test.d.ts +1 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/fields.d.ts +259 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/fields.js +85 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/fields.js.map +1 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/index.d.ts +5 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/useContractorSignatureForm.d.ts +129 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/useContractorSignatureForm.js +182 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/useContractorSignatureForm.js.map +1 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.d.ts +223 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.js +162 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.js.map +1 -0
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.test.d.ts +1 -0
- package/dist/components/Contractor/Landing/Landing.js +2 -2
- package/dist/components/Contractor/Landing/Landing.js.map +1 -1
- package/dist/components/Contractor/Landing/index.d.ts +0 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -2
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.d.ts +3 -3
- package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Contractor/OnboardingSummary/index.d.ts +0 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.d.ts +5 -5
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +106 -107
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.module.scss.js +8 -0
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.module.scss.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/shared/index.d.ts +1 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.d.ts +57 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.js +22 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/index.d.ts +4 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountForm.d.ts +128 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountForm.js +113 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountForm.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountFormSchema.d.ts +85 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountFormSchema.js +42 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountFormSchema.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/contractorPaymentMethodSchema.d.ts +60 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/contractorPaymentMethodSchema.js +21 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/contractorPaymentMethodSchema.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/fields.d.ts +11 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/fields.js +9 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/fields.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/index.d.ts +4 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/useContractorPaymentMethodForm.d.ts +118 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/useContractorPaymentMethodForm.js +94 -0
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/useContractorPaymentMethodForm.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/types.d.ts +0 -5
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +5 -5
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +2 -2
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -2
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +4 -4
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/helpers.d.ts +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/helpers.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.d.ts +2 -2
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/index.d.ts +0 -1
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +3 -3
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +2 -2
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +4 -4
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +3 -3
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +3 -3
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +3 -3
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/index.d.ts +0 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +3 -3
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/SelfOnboardingContractorProfile.js +1 -1
- package/dist/components/Contractor/Profile/SelfOnboardingContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Profile/index.d.ts +0 -1
- package/dist/components/Contractor/Profile/shared/index.d.ts +0 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.d.ts +3 -7
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js +9 -9
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/fields.d.ts +14 -163
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/fields.js +16 -16
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/fields.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/index.d.ts +2 -4
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.d.ts +76 -28
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js +142 -128
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js.map +1 -1
- package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +30 -0
- package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js +57 -0
- package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -0
- package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +45 -0
- package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingFlow.js +30 -0
- package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -0
- package/dist/components/Contractor/SelfOnboardingFlow/selfOnboardingMachine.d.ts +8 -0
- package/dist/components/Contractor/SelfOnboardingFlow/selfOnboardingMachine.js +59 -0
- package/dist/components/Contractor/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -0
- package/dist/components/Contractor/Submit/Submit.js +3 -3
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Contractor/exports/contractorOnboarding.d.ts +3 -0
- package/dist/components/Contractor/exports/contractorOnboarding.js +20 -14
- package/dist/components/Contractor/exports/contractorOnboarding.js.map +1 -1
- package/dist/components/Employee/Compensation/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/management/Compensation.d.ts +1 -1
- package/dist/components/Employee/Compensation/management/Compensation.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.d.ts +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.d.ts +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.d.ts +1 -1
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +1 -1
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationCard/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +1 -1
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationEditForm/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js +1 -1
- package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js.map +1 -1
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -1
- package/dist/components/Employee/Compensation/management/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/onboarding/Compensation.d.ts +3 -3
- package/dist/components/Employee/Compensation/onboarding/Compensation.js +1 -1
- package/dist/components/Employee/Compensation/onboarding/Compensation.js.map +1 -1
- package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.d.ts +2 -2
- package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.js.map +1 -1
- package/dist/components/Employee/Compensation/onboarding/EditCompensation/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.d.ts +20 -1
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.js +2 -2
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.js.map +1 -1
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.d.ts +1 -1
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
- package/dist/components/Employee/Compensation/onboarding/JobsList/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/onboarding/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.d.ts +1 -1
- package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.d.ts +2 -2
- package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +3 -11
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +10 -109
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +1 -3
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +24 -21
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +191 -177
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationManagement/index.d.ts +0 -1
- package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.d.ts +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js +4 -4
- package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +5 -66
- package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
- package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +1 -3
- package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +2 -10
- package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +20 -17
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +121 -112
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +2 -2
- package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -1
- package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
- package/dist/components/Employee/Dashboard/index.d.ts +0 -1
- package/dist/components/Employee/Deductions/index.d.ts +0 -1
- package/dist/components/Employee/Deductions/management/Deductions.d.ts +1 -1
- package/dist/components/Employee/Deductions/management/Deductions.js.map +1 -1
- package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.js.map +1 -1
- package/dist/components/Employee/Deductions/management/DeductionsCard/index.d.ts +0 -1
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/index.d.ts +0 -1
- package/dist/components/Employee/Deductions/management/deductionsStateMachine.js.map +1 -1
- package/dist/components/Employee/Deductions/management/index.d.ts +0 -1
- package/dist/components/Employee/Deductions/onboarding/Deductions.d.ts +1 -1
- package/dist/components/Employee/Deductions/onboarding/Deductions.js.map +1 -1
- package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.d.ts +1 -1
- package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.d.ts +1 -1
- package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.js.map +1 -1
- package/dist/components/Employee/Deductions/onboarding/index.d.ts +0 -1
- package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/DeductionsForm/index.d.ts +0 -1
- package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/formatDeductionAmount.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/formatDeductionAmount.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +3 -7
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.d.ts +9 -97
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/index.d.ts +1 -3
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.d.ts +26 -23
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js +119 -106
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.d.ts +2 -5
- package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.js +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.d.ts +8 -86
- package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
- package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionForm/index.d.ts +1 -3
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +20 -19
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js +129 -120
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionsList.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionsList.js +2 -2
- package/dist/components/Employee/Deductions/shared/useDeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useDeleteDeduction.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/useDeleteDeduction.js.map +1 -1
- package/dist/components/Employee/Documents/management/DocumentManager.js +2 -2
- package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
- package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.js.map +1 -1
- package/dist/components/Employee/Documents/management/DocumentsCard/index.d.ts +0 -1
- package/dist/components/Employee/Documents/management/index.d.ts +0 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/index.d.ts +0 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.d.ts +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +5 -5
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js +2 -2
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +3 -3
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/index.d.ts +0 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/index.d.ts +0 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/index.d.ts +0 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +2 -2
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/index.d.ts +0 -1
- package/dist/components/Employee/Documents/shared/SignatureForm/index.d.ts +0 -1
- package/dist/components/Employee/Documents/shared/useDocumentsList/index.d.ts +0 -1
- package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.d.ts +1 -1
- package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.js +1 -1
- package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.js.map +1 -1
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.d.ts +39 -287
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js.map +1 -1
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/index.d.ts +2 -4
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +2 -6
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +75 -25
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.js +91 -90
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/shared/index.d.ts +0 -1
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +3 -3
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +3 -3
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +3 -3
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/index.d.ts +0 -1
- package/dist/components/Employee/FederalTaxes/index.d.ts +0 -1
- package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +1 -1
- package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/index.d.ts +0 -1
- package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.d.ts +1 -1
- package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/management/index.d.ts +0 -1
- package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +1 -1
- package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
- package/dist/components/Employee/FederalTaxes/shared/index.d.ts +0 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +2 -5
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +6 -73
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +2 -4
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +20 -30
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js +78 -69
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/index.d.ts +0 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.d.ts +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.js +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressCard/index.d.ts +0 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.d.ts +1 -1
- package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/index.d.ts +0 -1
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.d.ts +1 -1
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +3 -3
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
- package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/index.d.ts +0 -1
- package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.d.ts +1 -1
- package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.js +1 -1
- package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +2 -2
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/Landing/index.d.ts +0 -1
- package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.d.ts +3 -3
- package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.js.map +1 -1
- package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.d.ts +1 -1
- package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.js.map +1 -1
- package/dist/components/Employee/OnboardingExecutionFlow/index.d.ts +0 -1
- package/dist/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +4 -4
- package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +78 -53
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/index.d.ts +0 -1
- package/dist/components/Employee/PaymentMethod/index.d.ts +0 -1
- package/dist/components/Employee/PaymentMethod/management/index.d.ts +0 -1
- package/dist/components/Employee/PaymentMethod/onboarding/index.d.ts +0 -1
- package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.d.ts +1 -1
- package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/BankFormBody/index.d.ts +0 -1
- package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.d.ts +1 -1
- package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/index.d.ts +0 -1
- package/dist/components/Employee/PaymentMethod/shared/index.d.ts +0 -1
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.d.ts +4 -45
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/index.d.ts +2 -3
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.d.ts +15 -13
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.js +71 -66
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.d.ts +3 -6
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.js +7 -6
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.d.ts +1 -12
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/index.d.ts +2 -3
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.d.ts +9 -7
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.js +56 -49
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.d.ts +2 -5
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.d.ts +2 -2
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.js +4 -4
- package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/index.d.ts +1 -2
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.d.ts +21 -7
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.js +3 -3
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.js.map +1 -1
- package/dist/components/Employee/Paystubs/management/PaystubsCard/index.d.ts +0 -1
- package/dist/components/Employee/Paystubs/management/index.d.ts +0 -1
- package/dist/components/Employee/Paystubs/shared/usePaystubsList/index.d.ts +0 -1
- package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.d.ts +1 -1
- package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.js +3 -3
- package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.js.map +1 -1
- package/dist/components/Employee/Profile/management/ProfileCard/index.d.ts +0 -1
- package/dist/components/Employee/Profile/management/ProfileEditForm.js +24 -25
- package/dist/components/Employee/Profile/management/ProfileEditForm.js.map +1 -1
- package/dist/components/Employee/Profile/management/index.d.ts +0 -1
- package/dist/components/Employee/Profile/onboarding/AdminProfile.js +31 -32
- package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -1
- package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js +1 -1
- package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +4 -9
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js +19 -29
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.d.ts +12 -92
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/index.d.ts +1 -4
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +25 -31
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +91 -80
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/index.d.ts +0 -1
- package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.d.ts +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +7 -77
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +2 -5
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +2 -4
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +57 -26
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +64 -61
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.d.ts +3 -25
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/index.d.ts +2 -4
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +43 -17
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +68 -63
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.d.ts +2 -5
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +3 -3
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
- package/dist/components/Employee/StateTaxes/index.d.ts +0 -1
- package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.js.map +1 -1
- package/dist/components/Employee/StateTaxes/management/StateTaxesCard/index.d.ts +0 -1
- package/dist/components/Employee/StateTaxes/management/index.d.ts +0 -1
- package/dist/components/Employee/StateTaxes/onboarding/index.d.ts +0 -1
- package/dist/components/Employee/StateTaxes/shared/index.d.ts +0 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.d.ts +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.d.ts +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +36 -18
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +115 -15
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/index.d.ts +2 -3
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +14 -12
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js +3 -6
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/index.d.ts +0 -1
- package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.d.ts +1 -1
- package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.js +1 -1
- package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +9 -9
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +6 -2
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +4 -4
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressCard/index.d.ts +0 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.d.ts +2 -2
- package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/index.d.ts +0 -1
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.d.ts +1 -1
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +3 -3
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
- package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/index.d.ts +0 -1
- package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.d.ts +1 -1
- package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.js +1 -1
- package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.js.map +1 -1
- package/dist/components/Employee/index.d.ts +0 -1
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +4 -4
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestForm/index.d.ts +0 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +2 -2
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestList/index.d.ts +0 -1
- package/dist/components/InformationRequests/InformationRequests.d.ts +3 -3
- package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
- package/dist/components/InformationRequests/index.d.ts +0 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +2 -2
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/index.d.ts +0 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +3 -3
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/index.d.ts +0 -1
- package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +2 -2
- package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/index.d.ts +0 -1
- package/dist/components/Payroll/ConfirmWireDetails/index.d.ts +0 -1
- package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +4 -0
- package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +4 -4
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +0 -1
- package/dist/components/Payroll/Dismissal/index.d.ts +0 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +5 -5
- package/dist/components/Payroll/GrossUpModal/index.d.ts +0 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycle/index.d.ts +0 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +4 -4
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/index.d.ts +0 -1
- package/dist/components/Payroll/OffCycleDeductionsSetting/index.d.ts +0 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/index.d.ts +0 -1
- package/dist/components/Payroll/OffCycleReasonSelection/index.d.ts +0 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/index.d.ts +0 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js.map +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/index.d.ts +0 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +4 -4
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/index.d.ts +0 -1
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +2 -2
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +7 -7
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +5 -5
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +4 -4
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +5 -5
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +3 -3
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +4 -4
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +2 -2
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +0 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +2 -2
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +4 -4
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +2 -2
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +8 -8
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +3 -3
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +7 -7
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +4 -4
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -2
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/index.d.ts +0 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollStatusBadges/index.d.ts +0 -1
- package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.d.ts +1 -1
- package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js +2 -2
- package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +0 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +2 -2
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +0 -1
- package/dist/components/Payroll/RecoveryCases/index.d.ts +0 -1
- package/dist/components/Payroll/Transition/TransitionFlow.d.ts +5 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +1 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
- package/dist/components/Payroll/Transition/index.d.ts +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +4 -4
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/index.d.ts +0 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +3 -3
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +0 -1
- package/dist/components/Payroll/helpers.d.ts +6 -6
- package/dist/components/Payroll/helpers.js +1 -1
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +0 -1
- package/dist/components/Payroll/payrollTypes.js +1 -1
- package/dist/components/Payroll/payrollTypes.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.d.ts +3 -4
- package/dist/components/Payroll/usePreparedPayrollData.js +7 -7
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.d.ts +1 -1
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js +3 -3
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +3 -3
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +0 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +3 -3
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyList.js +6 -6
- package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js +4 -4
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
- package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.d.ts +1 -4
- package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -1
- package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +4 -4
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +2 -2
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +5 -5
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +3 -3
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +6 -6
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +0 -1
- package/dist/components/TimeOff/index.d.ts +0 -1
- package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +0 -1
- package/dist/components/index.d.ts +32 -2
- package/dist/contexts/ApiProvider/ApiProvider.d.ts +3 -3
- package/dist/contexts/ApiProvider/ApiProvider.js +3 -3
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/apiVersionHook.js +1 -1
- package/dist/contexts/ApiProvider/apiVersionHook.js.map +1 -1
- package/dist/contexts/ApiProvider/createSdkQueryClient.d.ts +1 -1
- package/dist/contexts/ApiProvider/createSdkQueryClient.js +2 -2
- package/dist/contexts/ApiProvider/createSdkQueryClient.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +1 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +2 -2
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/GustoProvider/index.d.ts +0 -1
- package/dist/contexts/LocaleProvider/index.d.ts +0 -1
- package/dist/contexts/ObservabilityProvider/index.d.ts +0 -1
- package/dist/contexts/ThemeProvider/index.d.ts +0 -1
- package/dist/contexts/ThemeProvider/theme.js +1 -1
- package/dist/contexts/ThemeProvider/theme.js.map +1 -1
- package/dist/contexts/index.d.ts +0 -1
- package/dist/helpers/apiErrorToList.d.ts +1 -1
- package/dist/helpers/apiErrorToList.js.map +1 -1
- package/dist/helpers/formattedStrings.d.ts +2 -2
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/helpers/validations.d.ts +20 -0
- package/dist/helpers/validations.js +6 -3
- package/dist/helpers/validations.js.map +1 -1
- package/dist/hooks/useCompanyPaymentSpeed.d.ts +1 -1
- package/dist/hooks/useCompanyPaymentSpeed.js +1 -1
- package/dist/hooks/useCompanyPaymentSpeed.js.map +1 -1
- package/dist/i18n/I18n.d.ts +3 -2
- package/dist/i18n/I18n.js +1 -0
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.Address.json.js +10 -8
- package/dist/i18n/en/Contractor.Address.json.js.map +1 -1
- package/dist/i18n/en/Contractor.PaymentMethod.json.js +3 -1
- package/dist/i18n/en/Contractor.PaymentMethod.json.js.map +1 -1
- package/dist/i18n/en/Contractor.SignatureForm.json.js +38 -0
- package/dist/i18n/en/Contractor.SignatureForm.json.js.map +1 -0
- package/dist/i18n/index.d.ts +0 -1
- package/dist/i18n/types.d.ts +7470 -0
- package/dist/index.d.ts +46 -42
- package/dist/index.js +145 -267
- package/dist/index.js.map +1 -1
- package/dist/models/external.d.ts +214 -194
- package/dist/partner-hook-utils/composeErrorHandler.d.ts +2 -2
- package/dist/partner-hook-utils/composeErrorHandler.js.map +1 -1
- package/dist/partner-hook-utils/form/FormFieldsMetadataContext.js +3 -3
- package/dist/partner-hook-utils/form/buildFormSchema.d.ts +19 -9
- package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
- package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +1 -1
- package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
- package/dist/partner-hook-utils/form/fields/index.d.ts +0 -1
- package/dist/partner-hook-utils/form/index.d.ts +0 -4
- package/dist/partner-hook-utils/form/withFlags.d.ts +18 -0
- package/dist/partner-hook-utils/form/withFlags.js +7 -0
- package/dist/partner-hook-utils/form/withFlags.js.map +1 -0
- package/dist/partner-hook-utils/index.d.ts +0 -1
- package/dist/partner-hook-utils/types.d.ts +6 -3
- package/dist/shared/constants.d.ts +18 -4
- package/dist/shared/constants.js +3 -2
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/Helpers.d.ts +21 -8
- package/dist/types/hooks.d.ts +2 -2
- package/dist/types/sdkError.js +16 -9
- package/dist/types/sdkError.js.map +1 -1
- package/docs/{appendix → guides}/endpoint-inventory.json +29 -0
- package/package.json +14 -14
- package/dist/assets/icons/unchecked_circular.svg.js +0 -10
- package/dist/assets/icons/unchecked_circular.svg.js.map +0 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.d.ts +0 -3
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +0 -56
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +0 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.d.ts +0 -2
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +0 -33
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +0 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js +0 -16
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js.map +0 -1
- package/dist/partner-hook-utils/form/useFieldErrorMessage.js +0 -20
- package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +0 -1
- package/dist/types/i18next.d.ts +0 -4075
|
@@ -28,14 +28,14 @@ export type NameValidation = (typeof EmployeeDetailsErrorCodes)['REQUIRED' | 'IN
|
|
|
28
28
|
* Validation error codes emitted by the `email` field of {@link useEmployeeDetailsForm}.
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
* Use these as keys in `validationMessages` on `Fields.Email`. The
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* {@link EmployeeDetailsErrorCodes}.
|
|
31
|
+
* Use these as keys in `validationMessages` on `Fields.Email`. The `REQUIRED`
|
|
32
|
+
* code fires when the email is empty and required — either because
|
|
33
|
+
* self-onboarding is enabled or because the field was promoted via
|
|
34
|
+
* `optionalFieldsToRequire`. See {@link EmployeeDetailsErrorCodes}.
|
|
35
35
|
*
|
|
36
36
|
* @public
|
|
37
37
|
*/
|
|
38
|
-
export type EmailValidation = (typeof EmployeeDetailsErrorCodes)['REQUIRED' | 'INVALID_EMAIL'
|
|
38
|
+
export type EmailValidation = (typeof EmployeeDetailsErrorCodes)['REQUIRED' | 'INVALID_EMAIL'];
|
|
39
39
|
/**
|
|
40
40
|
* The format-validation error code emitted by the `ssn` field of {@link useEmployeeDetailsForm}.
|
|
41
41
|
*
|
|
@@ -62,17 +62,7 @@ export type SsnRequiredValidation = typeof EmployeeDetailsErrorCodes.REQUIRED;
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
export type FirstNameFieldProps = HookFieldProps<TextInputHookFieldProps<NameValidation>>;
|
|
65
|
-
/**
|
|
66
|
-
* Text input bound to the `firstName` field of {@link useEmployeeDetailsForm}.
|
|
67
|
-
*
|
|
68
|
-
* @remarks
|
|
69
|
-
* Available on the hook result as `form.Fields.FirstName`. Required on
|
|
70
|
-
* create; can be made required on update via `optionalFieldsToRequire`.
|
|
71
|
-
*
|
|
72
|
-
* @param props - {@link FirstNameFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
|
|
73
|
-
* @returns The rendered text input bound to `firstName`.
|
|
74
|
-
* @public
|
|
75
|
-
*/
|
|
65
|
+
/** @internal */
|
|
76
66
|
export declare function FirstNameField(props: FirstNameFieldProps): import("react").JSX.Element;
|
|
77
67
|
/**
|
|
78
68
|
* Props accepted by {@link useEmployeeDetailsForm}'s `Fields.MiddleInitial` component.
|
|
@@ -80,17 +70,7 @@ export declare function FirstNameField(props: FirstNameFieldProps): import("reac
|
|
|
80
70
|
* @public
|
|
81
71
|
*/
|
|
82
72
|
export type MiddleInitialFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>;
|
|
83
|
-
/**
|
|
84
|
-
* Text input bound to the `middleInitial` field of {@link useEmployeeDetailsForm}.
|
|
85
|
-
*
|
|
86
|
-
* @remarks
|
|
87
|
-
* Available on the hook result as `form.Fields.MiddleInitial`. Always
|
|
88
|
-
* optional.
|
|
89
|
-
*
|
|
90
|
-
* @param props - {@link MiddleInitialFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
|
|
91
|
-
* @returns The rendered text input bound to `middleInitial`.
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
73
|
+
/** @internal */
|
|
94
74
|
export declare function MiddleInitialField(props: MiddleInitialFieldProps): import("react").JSX.Element;
|
|
95
75
|
/**
|
|
96
76
|
* Props accepted by {@link useEmployeeDetailsForm}'s `Fields.LastName` component.
|
|
@@ -98,17 +78,7 @@ export declare function MiddleInitialField(props: MiddleInitialFieldProps): impo
|
|
|
98
78
|
* @public
|
|
99
79
|
*/
|
|
100
80
|
export type LastNameFieldProps = HookFieldProps<TextInputHookFieldProps<NameValidation>>;
|
|
101
|
-
/**
|
|
102
|
-
* Text input bound to the `lastName` field of {@link useEmployeeDetailsForm}.
|
|
103
|
-
*
|
|
104
|
-
* @remarks
|
|
105
|
-
* Available on the hook result as `form.Fields.LastName`. Required on
|
|
106
|
-
* create; can be made required on update via `optionalFieldsToRequire`.
|
|
107
|
-
*
|
|
108
|
-
* @param props - {@link LastNameFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
|
|
109
|
-
* @returns The rendered text input bound to `lastName`.
|
|
110
|
-
* @public
|
|
111
|
-
*/
|
|
81
|
+
/** @internal */
|
|
112
82
|
export declare function LastNameField(props: LastNameFieldProps): import("react").JSX.Element;
|
|
113
83
|
/**
|
|
114
84
|
* Props accepted by {@link useEmployeeDetailsForm}'s `Fields.Email` component.
|
|
@@ -116,19 +86,7 @@ export declare function LastNameField(props: LastNameFieldProps): import("react"
|
|
|
116
86
|
* @public
|
|
117
87
|
*/
|
|
118
88
|
export type EmailFieldProps = HookFieldProps<TextInputHookFieldProps<EmailValidation>>;
|
|
119
|
-
/**
|
|
120
|
-
* Text input bound to the `email` field of {@link useEmployeeDetailsForm}.
|
|
121
|
-
*
|
|
122
|
-
* @remarks
|
|
123
|
-
* Available on the hook result as `form.Fields.Email`. Optional by default
|
|
124
|
-
* — opt in via `optionalFieldsToRequire`. Also enforces a required rule
|
|
125
|
-
* whenever the self-onboarding toggle is enabled in create mode, reported
|
|
126
|
-
* via the `EMAIL_REQUIRED_FOR_SELF_ONBOARDING` code.
|
|
127
|
-
*
|
|
128
|
-
* @param props - {@link EmailFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
|
|
129
|
-
* @returns The rendered text input bound to `email`.
|
|
130
|
-
* @public
|
|
131
|
-
*/
|
|
89
|
+
/** @internal */
|
|
132
90
|
export declare function EmailField(props: EmailFieldProps): import("react").JSX.Element;
|
|
133
91
|
/**
|
|
134
92
|
* Props accepted by {@link useEmployeeDetailsForm}'s `Fields.DateOfBirth` component.
|
|
@@ -136,17 +94,7 @@ export declare function EmailField(props: EmailFieldProps): import("react").JSX.
|
|
|
136
94
|
* @public
|
|
137
95
|
*/
|
|
138
96
|
export type DateOfBirthFieldProps = HookFieldProps<DatePickerHookFieldProps<RequiredValidation>>;
|
|
139
|
-
/**
|
|
140
|
-
* Date picker bound to the `dateOfBirth` field of {@link useEmployeeDetailsForm}.
|
|
141
|
-
*
|
|
142
|
-
* @remarks
|
|
143
|
-
* Available on the hook result as `form.Fields.DateOfBirth`. Optional by
|
|
144
|
-
* default — opt in via `optionalFieldsToRequire`.
|
|
145
|
-
*
|
|
146
|
-
* @param props - {@link DateOfBirthFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
|
|
147
|
-
* @returns The rendered date picker bound to `dateOfBirth`.
|
|
148
|
-
* @public
|
|
149
|
-
*/
|
|
97
|
+
/** @internal */
|
|
150
98
|
export declare function DateOfBirthField(props: DateOfBirthFieldProps): import("react").JSX.Element;
|
|
151
99
|
/**
|
|
152
100
|
* Props accepted by {@link useEmployeeDetailsForm}'s `Fields.Ssn` component.
|
|
@@ -154,20 +102,7 @@ export declare function DateOfBirthField(props: DateOfBirthFieldProps): import("
|
|
|
154
102
|
* @public
|
|
155
103
|
*/
|
|
156
104
|
export type SsnFieldProps = HookFieldProps<TextInputHookFieldProps<SsnValidation, SsnRequiredValidation>>;
|
|
157
|
-
/**
|
|
158
|
-
* Text input bound to the `ssn` field of {@link useEmployeeDetailsForm}.
|
|
159
|
-
*
|
|
160
|
-
* @remarks
|
|
161
|
-
* Available on the hook result as `form.Fields.Ssn`. Auto-formats input
|
|
162
|
-
* with dashes (`XXX-XX-XXXX`). When the employee already has an SSN on
|
|
163
|
-
* file, the field shows a masked placeholder and the required rule is
|
|
164
|
-
* automatically waived even if `ssn` is listed in
|
|
165
|
-
* `optionalFieldsToRequire`.
|
|
166
|
-
*
|
|
167
|
-
* @param props - {@link SsnFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).
|
|
168
|
-
* @returns The rendered text input bound to `ssn`.
|
|
169
|
-
* @public
|
|
170
|
-
*/
|
|
105
|
+
/** @internal */
|
|
171
106
|
export declare function SsnField(props: SsnFieldProps): import("react").JSX.Element;
|
|
172
107
|
/**
|
|
173
108
|
* Props accepted by {@link useEmployeeDetailsForm}'s `Fields.SelfOnboarding` component.
|
|
@@ -175,20 +110,5 @@ export declare function SsnField(props: SsnFieldProps): import("react").JSX.Elem
|
|
|
175
110
|
* @public
|
|
176
111
|
*/
|
|
177
112
|
export type SelfOnboardingFieldProps = HookFieldProps<SwitchHookFieldProps>;
|
|
178
|
-
/**
|
|
179
|
-
* Switch bound to the `selfOnboarding` field of {@link useEmployeeDetailsForm}.
|
|
180
|
-
*
|
|
181
|
-
* @remarks
|
|
182
|
-
* Available on the hook result as `form.Fields.SelfOnboarding` when the
|
|
183
|
-
* field is toggleable. The field is `undefined` when
|
|
184
|
-
* `withSelfOnboardingField` is `false`, or when the employee's
|
|
185
|
-
* onboarding status no longer allows toggling (e.g. self-onboarding is
|
|
186
|
-
* already in progress or completed). Always null-check before rendering.
|
|
187
|
-
* When enabled, the employee receives an invitation to enter their own
|
|
188
|
-
* personal, tax, and banking details.
|
|
189
|
-
*
|
|
190
|
-
* @param props - {@link SelfOnboardingFieldProps} — accepts the standard hook field props (label, description, FieldComponent override).
|
|
191
|
-
* @returns The rendered switch bound to `selfOnboarding`.
|
|
192
|
-
* @public
|
|
193
|
-
*/
|
|
113
|
+
/** @internal */
|
|
194
114
|
export declare function SelfOnboardingField(props: SelfOnboardingFieldProps): import("react").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useFormFieldsMetadataContext as r } from "../../../../../partner-hook-utils/form/FormFieldsMetadataContext.js";
|
|
3
|
+
import { usePlaceholderSSN as m, normalizeSSN as l } from "../../../../../helpers/ssn.js";
|
|
4
|
+
import { SwitchHookField as d } from "../../../../../partner-hook-utils/form/fields/SwitchHookField.js";
|
|
2
5
|
import { TextInputHookField as a } from "../../../../../partner-hook-utils/form/fields/TextInputHookField.js";
|
|
3
|
-
import { DatePickerHookField as
|
|
4
|
-
import { SwitchHookField as m } from "../../../../../partner-hook-utils/form/fields/SwitchHookField.js";
|
|
5
|
-
import { useFormFieldsMetadataContext as l } from "../../../../../partner-hook-utils/form/FormFieldsMetadataContext.js";
|
|
6
|
-
import { usePlaceholderSSN as d, normalizeSSN as f } from "../../../../../helpers/ssn.js";
|
|
6
|
+
import { DatePickerHookField as f } from "../../../../../partner-hook-utils/form/fields/DatePickerHookField.js";
|
|
7
7
|
function h(e) {
|
|
8
8
|
return /* @__PURE__ */ t(a, { ...e, name: "firstName" });
|
|
9
9
|
}
|
|
@@ -17,22 +17,22 @@ function x(e) {
|
|
|
17
17
|
return /* @__PURE__ */ t(a, { ...e, name: "email" });
|
|
18
18
|
}
|
|
19
19
|
function H(e) {
|
|
20
|
-
return /* @__PURE__ */ t(
|
|
20
|
+
return /* @__PURE__ */ t(f, { ...e, name: "dateOfBirth" });
|
|
21
21
|
}
|
|
22
22
|
function O(e) {
|
|
23
|
-
const n =
|
|
23
|
+
const n = r(), i = e.formHookResult?.form.fieldsMetadata ?? n?.metadata ?? {}, o = m(i.ssn?.hasRedactedValue);
|
|
24
24
|
return /* @__PURE__ */ t(
|
|
25
25
|
a,
|
|
26
26
|
{
|
|
27
27
|
...e,
|
|
28
28
|
name: "ssn",
|
|
29
|
-
transform:
|
|
29
|
+
transform: l,
|
|
30
30
|
placeholder: o
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
function I(e) {
|
|
35
|
-
return /* @__PURE__ */ t(
|
|
35
|
+
return /* @__PURE__ */ t(d, { ...e, name: "selfOnboarding" });
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
38
|
H as DateOfBirthField,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sources":["../../../../../../src/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.tsx"],"sourcesContent":["import type { EmployeeDetailsErrorCodes } from './employeeDetailsSchema'\nimport type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField'\nimport type { DatePickerHookFieldProps } from '@/partner-hook-utils/form/fields/DatePickerHookField'\nimport type { SwitchHookFieldProps } from '@/partner-hook-utils/form/fields/SwitchHookField'\nimport {\n TextInputHookField,\n DatePickerHookField,\n SwitchHookField,\n} from '@/partner-hook-utils/form/fields'\nimport { useFormFieldsMetadataContext } from '@/partner-hook-utils/form/FormFieldsMetadataContext'\nimport type { HookFieldProps } from '@/partner-hook-utils/types'\nimport { normalizeSSN, usePlaceholderSSN } from '@/helpers/ssn'\n\n/**\n * The required-field error code produced by {@link useEmployeeDetailsForm} fields that only emit `REQUIRED`.\n *\n * @remarks\n * Used as the `validationMessages` key for the middle initial and date of\n * birth fields. See {@link EmployeeDetailsErrorCodes}.\n *\n * @public\n */\nexport type RequiredValidation = typeof EmployeeDetailsErrorCodes.REQUIRED\n\n/**\n * Validation error codes emitted by the name fields of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.FirstName` and\n * `Fields.LastName`. See {@link EmployeeDetailsErrorCodes} for the full\n * description of each code.\n *\n * @public\n */\nexport type NameValidation = (typeof EmployeeDetailsErrorCodes)['REQUIRED' | 'INVALID_NAME']\n\n/**\n * Validation error codes emitted by the `email` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.Email`. The\n * `EMAIL_REQUIRED_FOR_SELF_ONBOARDING` code fires when self-onboarding is\n * enabled but the email is empty (create mode only). See\n * {@link EmployeeDetailsErrorCodes}.\n *\n * @public\n */\nexport type EmailValidation = (typeof EmployeeDetailsErrorCodes)[\n 'REQUIRED' | 'INVALID_EMAIL' | 'EMAIL_REQUIRED_FOR_SELF_ONBOARDING']\n\n/**\n * The format-validation error code emitted by the `ssn` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Use as a key in `validationMessages` on `Fields.Ssn`. See\n * {@link EmployeeDetailsErrorCodes}.\n *\n * @public\n */\nexport type SsnValidation = typeof EmployeeDetailsErrorCodes.INVALID_SSN\n\n/**\n * The required-field error code for the `ssn` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * The required rule is automatically waived when the employee already has\n * an SSN on file, even if `ssn` is included in `optionalFieldsToRequire`.\n *\n * @public\n */\nexport type SsnRequiredValidation = typeof EmployeeDetailsErrorCodes.REQUIRED\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.FirstName` component.\n *\n * @public\n */\nexport type FirstNameFieldProps = HookFieldProps<TextInputHookFieldProps<NameValidation>>\n\n/**\n * Text input bound to the `firstName` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.FirstName`. Required on\n * create; can be made required on update via `optionalFieldsToRequire`.\n *\n * @param props - {@link FirstNameFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `firstName`.\n * @public\n */\nexport function FirstNameField(props: FirstNameFieldProps) {\n return <TextInputHookField {...props} name=\"firstName\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.MiddleInitial` component.\n *\n * @public\n */\nexport type MiddleInitialFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/**\n * Text input bound to the `middleInitial` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.MiddleInitial`. Always\n * optional.\n *\n * @param props - {@link MiddleInitialFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `middleInitial`.\n * @public\n */\nexport function MiddleInitialField(props: MiddleInitialFieldProps) {\n return <TextInputHookField {...props} name=\"middleInitial\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.LastName` component.\n *\n * @public\n */\nexport type LastNameFieldProps = HookFieldProps<TextInputHookFieldProps<NameValidation>>\n\n/**\n * Text input bound to the `lastName` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.LastName`. Required on\n * create; can be made required on update via `optionalFieldsToRequire`.\n *\n * @param props - {@link LastNameFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `lastName`.\n * @public\n */\nexport function LastNameField(props: LastNameFieldProps) {\n return <TextInputHookField {...props} name=\"lastName\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.Email` component.\n *\n * @public\n */\nexport type EmailFieldProps = HookFieldProps<TextInputHookFieldProps<EmailValidation>>\n\n/**\n * Text input bound to the `email` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.Email`. Optional by default\n * — opt in via `optionalFieldsToRequire`. Also enforces a required rule\n * whenever the self-onboarding toggle is enabled in create mode, reported\n * via the `EMAIL_REQUIRED_FOR_SELF_ONBOARDING` code.\n *\n * @param props - {@link EmailFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `email`.\n * @public\n */\nexport function EmailField(props: EmailFieldProps) {\n return <TextInputHookField {...props} name=\"email\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.DateOfBirth` component.\n *\n * @public\n */\nexport type DateOfBirthFieldProps = HookFieldProps<DatePickerHookFieldProps<RequiredValidation>>\n\n/**\n * Date picker bound to the `dateOfBirth` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.DateOfBirth`. Optional by\n * default — opt in via `optionalFieldsToRequire`.\n *\n * @param props - {@link DateOfBirthFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered date picker bound to `dateOfBirth`.\n * @public\n */\nexport function DateOfBirthField(props: DateOfBirthFieldProps) {\n return <DatePickerHookField {...props} name=\"dateOfBirth\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.Ssn` component.\n *\n * @public\n */\nexport type SsnFieldProps = HookFieldProps<\n TextInputHookFieldProps<SsnValidation, SsnRequiredValidation>\n>\n\n/**\n * Text input bound to the `ssn` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.Ssn`. Auto-formats input\n * with dashes (`XXX-XX-XXXX`). When the employee already has an SSN on\n * file, the field shows a masked placeholder and the required rule is\n * automatically waived even if `ssn` is listed in\n * `optionalFieldsToRequire`.\n *\n * @param props - {@link SsnFieldProps} — accepts the standard hook field props (label, description, validationMessages, FieldComponent override).\n * @returns The rendered text input bound to `ssn`.\n * @public\n */\nexport function SsnField(props: SsnFieldProps) {\n const metadataContext = useFormFieldsMetadataContext()\n const metadata = props.formHookResult?.form.fieldsMetadata ?? metadataContext?.metadata ?? {}\n const placeholderSSN = usePlaceholderSSN(metadata.ssn?.hasRedactedValue)\n return (\n <TextInputHookField\n {...props}\n name=\"ssn\"\n transform={normalizeSSN}\n placeholder={placeholderSSN}\n />\n )\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.SelfOnboarding` component.\n *\n * @public\n */\nexport type SelfOnboardingFieldProps = HookFieldProps<SwitchHookFieldProps>\n\n/**\n * Switch bound to the `selfOnboarding` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Available on the hook result as `form.Fields.SelfOnboarding` when the\n * field is toggleable. The field is `undefined` when\n * `withSelfOnboardingField` is `false`, or when the employee's\n * onboarding status no longer allows toggling (e.g. self-onboarding is\n * already in progress or completed). Always null-check before rendering.\n * When enabled, the employee receives an invitation to enter their own\n * personal, tax, and banking details.\n *\n * @param props - {@link SelfOnboardingFieldProps} — accepts the standard hook field props (label, description, FieldComponent override).\n * @returns The rendered switch bound to `selfOnboarding`.\n * @public\n */\nexport function SelfOnboardingField(props: SelfOnboardingFieldProps) {\n return <SwitchHookField {...props} name=\"selfOnboarding\" />\n}\n"],"names":["FirstNameField","props","jsx","TextInputHookField","MiddleInitialField","LastNameField","EmailField","DateOfBirthField","DatePickerHookField","SsnField","metadataContext","useFormFieldsMetadataContext","metadata","placeholderSSN","usePlaceholderSSN","normalizeSSN","SelfOnboardingField","SwitchHookField"],"mappings":";;;;;;AA0FO,SAASA,EAAeC,GAA4B;AACzD,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,aAAY;AACzD;AAoBO,SAASG,EAAmBH,GAAgC;AACjE,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,iBAAgB;AAC7D;AAoBO,SAASI,EAAcJ,GAA2B;AACvD,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,YAAW;AACxD;AAsBO,SAASK,EAAWL,GAAwB;AACjD,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,SAAQ;AACrD;AAoBO,SAASM,EAAiBN,GAA8B;AAC7D,SAAO,gBAAAC,EAACM,GAAA,EAAqB,GAAGP,GAAO,MAAK,eAAc;AAC5D;AAyBO,SAASQ,EAASR,GAAsB;AAC7C,QAAMS,IAAkBC,EAAA,GAClBC,IAAWX,EAAM,gBAAgB,KAAK,kBAAkBS,GAAiB,YAAY,CAAA,GACrFG,IAAiBC,EAAkBF,EAAS,KAAK,gBAAgB;AACvE,SACE,gBAAAV;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,MAAK;AAAA,MACL,WAAWc;AAAA,MACX,aAAaF;AAAA,IAAA;AAAA,EAAA;AAGnB;AAyBO,SAASG,EAAoBf,GAAiC;AACnE,SAAO,gBAAAC,EAACe,GAAA,EAAiB,GAAGhB,GAAO,MAAK,kBAAiB;AAC3D;"}
|
|
1
|
+
{"version":3,"file":"fields.js","sources":["../../../../../../src/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.tsx"],"sourcesContent":["import type { EmployeeDetailsErrorCodes } from './employeeDetailsSchema'\nimport type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField'\nimport type { DatePickerHookFieldProps } from '@/partner-hook-utils/form/fields/DatePickerHookField'\nimport type { SwitchHookFieldProps } from '@/partner-hook-utils/form/fields/SwitchHookField'\nimport {\n TextInputHookField,\n DatePickerHookField,\n SwitchHookField,\n} from '@/partner-hook-utils/form/fields'\nimport { useFormFieldsMetadataContext } from '@/partner-hook-utils/form/FormFieldsMetadataContext'\nimport type { HookFieldProps } from '@/partner-hook-utils/types'\nimport { normalizeSSN, usePlaceholderSSN } from '@/helpers/ssn'\n\n/**\n * The required-field error code produced by {@link useEmployeeDetailsForm} fields that only emit `REQUIRED`.\n *\n * @remarks\n * Used as the `validationMessages` key for the middle initial and date of\n * birth fields. See {@link EmployeeDetailsErrorCodes}.\n *\n * @public\n */\nexport type RequiredValidation = typeof EmployeeDetailsErrorCodes.REQUIRED\n\n/**\n * Validation error codes emitted by the name fields of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.FirstName` and\n * `Fields.LastName`. See {@link EmployeeDetailsErrorCodes} for the full\n * description of each code.\n *\n * @public\n */\nexport type NameValidation = (typeof EmployeeDetailsErrorCodes)['REQUIRED' | 'INVALID_NAME']\n\n/**\n * Validation error codes emitted by the `email` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Use these as keys in `validationMessages` on `Fields.Email`. The `REQUIRED`\n * code fires when the email is empty and required — either because\n * self-onboarding is enabled or because the field was promoted via\n * `optionalFieldsToRequire`. See {@link EmployeeDetailsErrorCodes}.\n *\n * @public\n */\nexport type EmailValidation = (typeof EmployeeDetailsErrorCodes)['REQUIRED' | 'INVALID_EMAIL']\n\n/**\n * The format-validation error code emitted by the `ssn` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * Use as a key in `validationMessages` on `Fields.Ssn`. See\n * {@link EmployeeDetailsErrorCodes}.\n *\n * @public\n */\nexport type SsnValidation = typeof EmployeeDetailsErrorCodes.INVALID_SSN\n\n/**\n * The required-field error code for the `ssn` field of {@link useEmployeeDetailsForm}.\n *\n * @remarks\n * The required rule is automatically waived when the employee already has\n * an SSN on file, even if `ssn` is included in `optionalFieldsToRequire`.\n *\n * @public\n */\nexport type SsnRequiredValidation = typeof EmployeeDetailsErrorCodes.REQUIRED\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.FirstName` component.\n *\n * @public\n */\nexport type FirstNameFieldProps = HookFieldProps<TextInputHookFieldProps<NameValidation>>\n\n/** @internal */\nexport function FirstNameField(props: FirstNameFieldProps) {\n return <TextInputHookField {...props} name=\"firstName\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.MiddleInitial` component.\n *\n * @public\n */\nexport type MiddleInitialFieldProps = HookFieldProps<TextInputHookFieldProps<RequiredValidation>>\n\n/** @internal */\nexport function MiddleInitialField(props: MiddleInitialFieldProps) {\n return <TextInputHookField {...props} name=\"middleInitial\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.LastName` component.\n *\n * @public\n */\nexport type LastNameFieldProps = HookFieldProps<TextInputHookFieldProps<NameValidation>>\n\n/** @internal */\nexport function LastNameField(props: LastNameFieldProps) {\n return <TextInputHookField {...props} name=\"lastName\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.Email` component.\n *\n * @public\n */\nexport type EmailFieldProps = HookFieldProps<TextInputHookFieldProps<EmailValidation>>\n\n/** @internal */\nexport function EmailField(props: EmailFieldProps) {\n return <TextInputHookField {...props} name=\"email\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.DateOfBirth` component.\n *\n * @public\n */\nexport type DateOfBirthFieldProps = HookFieldProps<DatePickerHookFieldProps<RequiredValidation>>\n\n/** @internal */\nexport function DateOfBirthField(props: DateOfBirthFieldProps) {\n return <DatePickerHookField {...props} name=\"dateOfBirth\" />\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.Ssn` component.\n *\n * @public\n */\nexport type SsnFieldProps = HookFieldProps<\n TextInputHookFieldProps<SsnValidation, SsnRequiredValidation>\n>\n\n/** @internal */\nexport function SsnField(props: SsnFieldProps) {\n const metadataContext = useFormFieldsMetadataContext()\n const metadata = props.formHookResult?.form.fieldsMetadata ?? metadataContext?.metadata ?? {}\n const placeholderSSN = usePlaceholderSSN(metadata.ssn?.hasRedactedValue)\n return (\n <TextInputHookField\n {...props}\n name=\"ssn\"\n transform={normalizeSSN}\n placeholder={placeholderSSN}\n />\n )\n}\n\n/**\n * Props accepted by {@link useEmployeeDetailsForm}'s `Fields.SelfOnboarding` component.\n *\n * @public\n */\nexport type SelfOnboardingFieldProps = HookFieldProps<SwitchHookFieldProps>\n\n/** @internal */\nexport function SelfOnboardingField(props: SelfOnboardingFieldProps) {\n return <SwitchHookField {...props} name=\"selfOnboarding\" />\n}\n"],"names":["FirstNameField","props","jsx","TextInputHookField","MiddleInitialField","LastNameField","EmailField","DateOfBirthField","DatePickerHookField","SsnField","metadataContext","useFormFieldsMetadataContext","metadata","placeholderSSN","usePlaceholderSSN","normalizeSSN","SelfOnboardingField","SwitchHookField"],"mappings":";;;;;;AA+EO,SAASA,EAAeC,GAA4B;AACzD,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,aAAY;AACzD;AAUO,SAASG,EAAmBH,GAAgC;AACjE,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,iBAAgB;AAC7D;AAUO,SAASI,EAAcJ,GAA2B;AACvD,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,YAAW;AACxD;AAUO,SAASK,EAAWL,GAAwB;AACjD,SAAO,gBAAAC,EAACC,GAAA,EAAoB,GAAGF,GAAO,MAAK,SAAQ;AACrD;AAUO,SAASM,EAAiBN,GAA8B;AAC7D,SAAO,gBAAAC,EAACM,GAAA,EAAqB,GAAGP,GAAO,MAAK,eAAc;AAC5D;AAYO,SAASQ,EAASR,GAAsB;AAC7C,QAAMS,IAAkBC,EAAA,GAClBC,IAAWX,EAAM,gBAAgB,KAAK,kBAAkBS,GAAiB,YAAY,CAAA,GACrFG,IAAiBC,EAAkBF,EAAS,KAAK,gBAAgB;AACvE,SACE,gBAAAV;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,MAAK;AAAA,MACL,WAAWc;AAAA,MACX,aAAaF;AAAA,IAAA;AAAA,EAAA;AAGnB;AAUO,SAASG,EAAoBf,GAAiC;AACnE,SAAO,gBAAAC,EAACe,GAAA,EAAiB,GAAGhB,GAAO,MAAK,kBAAiB;AAC3D;"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import "./types/i18next.d.ts"
|
|
2
1
|
export { useEmployeeDetailsForm } from './useEmployeeDetailsForm';
|
|
3
2
|
export type { EmployeeDetailsSubmitCallbacks, EmployeeDetailsOptionalFieldsToRequire, UseEmployeeDetailsFormSharedProps, UseEmployeeDetailsFormProps, UseEmployeeDetailsFormResult, UseEmployeeDetailsFormReady, EmployeeDetailsFieldsMetadata, EmployeeDetailsFormFields, } from './useEmployeeDetailsForm';
|
|
4
|
-
export {
|
|
5
|
-
export { FirstNameField, MiddleInitialField, LastNameField, EmailField, DateOfBirthField, SsnField, SelfOnboardingField, } from './fields';
|
|
3
|
+
export { EmployeeDetailsErrorCodes, type EmployeeDetailsErrorCode, type EmployeeDetailsFormData, type EmployeeDetailsField, } from './employeeDetailsSchema';
|
|
6
4
|
export type { RequiredValidation as EmployeeDetailsRequiredValidation, NameValidation, EmailValidation, SsnValidation, SsnRequiredValidation, FirstNameFieldProps, MiddleInitialFieldProps, LastNameFieldProps, EmailFieldProps, DateOfBirthFieldProps, SsnFieldProps, SelfOnboardingFieldProps, } from './fields';
|
|
7
|
-
export type { EmployeeDetailsFields } from './useEmployeeDetailsForm';
|
package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
1
2
|
import { UseFormProps } from 'react-hook-form';
|
|
2
|
-
import { Employee } from '@gusto/embedded-api-v-
|
|
3
|
+
import { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee';
|
|
3
4
|
import { EmployeeDetailsOptionalFieldsToRequire, EmployeeDetailsFormData } from './employeeDetailsSchema';
|
|
4
|
-
import {
|
|
5
|
-
import { BaseFormHookReady,
|
|
5
|
+
import { FirstNameFieldProps, MiddleInitialFieldProps, LastNameFieldProps, EmailFieldProps, DateOfBirthFieldProps, SsnFieldProps, SelfOnboardingFieldProps } from './fields';
|
|
6
|
+
import { BaseFormHookReady, FieldMetadata, HookLoadingResult, HookSubmitResult } from '../../../../../partner-hook-utils/types';
|
|
6
7
|
export type { EmployeeDetailsOptionalFieldsToRequire } from './employeeDetailsSchema';
|
|
7
8
|
/**
|
|
8
9
|
* Optional callbacks passed to {@link UseEmployeeDetailsFormReady.actions.onSubmit | onSubmit}.
|
|
@@ -14,6 +15,7 @@ export type { EmployeeDetailsOptionalFieldsToRequire } from './employeeDetailsSc
|
|
|
14
15
|
* switch changes the employee's onboarding status as part of an update.
|
|
15
16
|
*
|
|
16
17
|
* @public
|
|
18
|
+
* @group Utility types
|
|
17
19
|
*/
|
|
18
20
|
export interface EmployeeDetailsSubmitCallbacks {
|
|
19
21
|
/** Fired after a new employee is successfully created. */
|
|
@@ -49,6 +51,7 @@ export type UseEmployeeDetailsFormSharedProps = {
|
|
|
49
51
|
* `companyId`).
|
|
50
52
|
*
|
|
51
53
|
* @public
|
|
54
|
+
* @group Utility types
|
|
52
55
|
*/
|
|
53
56
|
export type UseEmployeeDetailsFormProps = (UseEmployeeDetailsFormSharedProps & {
|
|
54
57
|
companyId: string;
|
|
@@ -61,29 +64,26 @@ export type UseEmployeeDetailsFormProps = (UseEmployeeDetailsFormSharedProps & {
|
|
|
61
64
|
* The Field components exposed by {@link useEmployeeDetailsForm} as `form.Fields`.
|
|
62
65
|
*
|
|
63
66
|
* @remarks
|
|
64
|
-
* Each entry is a component bound to a specific form field
|
|
65
|
-
*
|
|
66
|
-
* {@link EmailField}, {@link DateOfBirthField}, {@link SsnField}, and
|
|
67
|
-
* {@link SelfOnboardingField}. `SelfOnboarding` may be `undefined` when
|
|
68
|
-
* the field is not toggleable.
|
|
67
|
+
* Each entry is a component bound to a specific form field. `SelfOnboarding`
|
|
68
|
+
* may be `undefined` when the field is not toggleable.
|
|
69
69
|
*
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
|
-
export interface
|
|
73
|
-
/**
|
|
74
|
-
FirstName:
|
|
75
|
-
/**
|
|
76
|
-
MiddleInitial:
|
|
77
|
-
/**
|
|
78
|
-
LastName:
|
|
79
|
-
/**
|
|
80
|
-
Email:
|
|
81
|
-
/**
|
|
82
|
-
DateOfBirth:
|
|
83
|
-
/**
|
|
84
|
-
Ssn:
|
|
85
|
-
/**
|
|
86
|
-
SelfOnboarding:
|
|
72
|
+
export interface EmployeeDetailsFormFields {
|
|
73
|
+
/** Bound to `firstName`. Text input. */
|
|
74
|
+
FirstName: ComponentType<FirstNameFieldProps>;
|
|
75
|
+
/** Bound to `middleInitial`. Text input. */
|
|
76
|
+
MiddleInitial: ComponentType<MiddleInitialFieldProps>;
|
|
77
|
+
/** Bound to `lastName`. Text input. */
|
|
78
|
+
LastName: ComponentType<LastNameFieldProps>;
|
|
79
|
+
/** Bound to `email`. Text input. */
|
|
80
|
+
Email: ComponentType<EmailFieldProps>;
|
|
81
|
+
/** Bound to `dateOfBirth`. Date picker. */
|
|
82
|
+
DateOfBirth: ComponentType<DateOfBirthFieldProps>;
|
|
83
|
+
/** Bound to `ssn`. Text input. */
|
|
84
|
+
Ssn: ComponentType<SsnFieldProps>;
|
|
85
|
+
/** Bound to `selfOnboarding`. Switch, or `undefined` when the field is not toggleable. */
|
|
86
|
+
SelfOnboarding: ComponentType<SelfOnboardingFieldProps> | undefined;
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* The ready-state result returned by {@link useEmployeeDetailsForm} once data has loaded.
|
|
@@ -94,7 +94,7 @@ export interface EmployeeDetailsFields {
|
|
|
94
94
|
*
|
|
95
95
|
* @public
|
|
96
96
|
*/
|
|
97
|
-
export interface UseEmployeeDetailsFormReady extends BaseFormHookReady<
|
|
97
|
+
export interface UseEmployeeDetailsFormReady extends BaseFormHookReady<EmployeeDetailsFieldsMetadata, EmployeeDetailsFormData, EmployeeDetailsFormFields> {
|
|
98
98
|
/** The loaded employee data, or `null` in create mode. */
|
|
99
99
|
data: {
|
|
100
100
|
/** The employee being edited, or `null` in create mode. */
|
|
@@ -180,10 +180,4 @@ export type UseEmployeeDetailsFormResult = HookLoadingResult | UseEmployeeDetail
|
|
|
180
180
|
*
|
|
181
181
|
* @public
|
|
182
182
|
*/
|
|
183
|
-
export type EmployeeDetailsFieldsMetadata =
|
|
184
|
-
/**
|
|
185
|
-
* Shape of `form.Fields` returned by {@link useEmployeeDetailsForm}.
|
|
186
|
-
*
|
|
187
|
-
* @public
|
|
188
|
-
*/
|
|
189
|
-
export type EmployeeDetailsFormFields = UseEmployeeDetailsFormReady['form']['Fields'];
|
|
183
|
+
export type EmployeeDetailsFieldsMetadata = { firstName: FieldMetadata; middleInitial: FieldMetadata; lastName: FieldMetadata; email: FieldMetadata; dateOfBirth: FieldMetadata; ssn: FieldMetadata; selfOnboarding: FieldMetadata; };
|
package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js
CHANGED
|
@@ -1,80 +1,91 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
import { useForm as
|
|
3
|
-
import { zodResolver as
|
|
4
|
-
import { useEmployeesGet as
|
|
5
|
-
import { useEmployeesCreateMutation as
|
|
6
|
-
import { useEmployeesUpdateMutation as
|
|
7
|
-
import { useEmployeesUpdateOnboardingStatusMutation as
|
|
8
|
-
import { RFCDate as
|
|
9
|
-
import { createEmployeeDetailsSchema as
|
|
10
|
-
import { SelfOnboardingField as
|
|
11
|
-
import { normalizeToISOString as
|
|
12
|
-
import { useDeriveFieldsMetadata as
|
|
1
|
+
import { useMemo as k } from "react";
|
|
2
|
+
import { useForm as x } from "react-hook-form";
|
|
3
|
+
import { zodResolver as K } from "@hookform/resolvers/zod";
|
|
4
|
+
import { useEmployeesGet as Q } from "@gusto/embedded-api-v-2026-02-01/react-query/employeesGet";
|
|
5
|
+
import { useEmployeesCreateMutation as j } from "@gusto/embedded-api-v-2026-02-01/react-query/employeesCreate";
|
|
6
|
+
import { useEmployeesUpdateMutation as J } from "@gusto/embedded-api-v-2026-02-01/react-query/employeesUpdate";
|
|
7
|
+
import { useEmployeesUpdateOnboardingStatusMutation as X } from "@gusto/embedded-api-v-2026-02-01/react-query/employeesUpdateOnboardingStatus";
|
|
8
|
+
import { RFCDate as Z } from "@gusto/embedded-api-v-2026-02-01/types/rfcdate";
|
|
9
|
+
import { createEmployeeDetailsSchema as $ } from "./employeeDetailsSchema.js";
|
|
10
|
+
import { SelfOnboardingField as ee, SsnField as te, DateOfBirthField as oe, EmailField as ie, LastNameField as ae, MiddleInitialField as ne, FirstNameField as se } from "./fields.js";
|
|
11
|
+
import { normalizeToISOString as re } from "../../../../../helpers/dateFormatting.js";
|
|
12
|
+
import { useDeriveFieldsMetadata as de } from "../../../../../partner-hook-utils/form/useDeriveFieldsMetadata.js";
|
|
13
13
|
import { useHookFormInternals as me } from "../../../../../partner-hook-utils/form/useHookFormInternals.js";
|
|
14
|
-
import { createGetFormSubmissionValues as
|
|
15
|
-
import { composeErrorHandler as
|
|
16
|
-
import { EmployeeOnboardingStatus as
|
|
17
|
-
import { useBaseSubmit as
|
|
14
|
+
import { createGetFormSubmissionValues as le } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
|
|
15
|
+
import { composeErrorHandler as ue } from "../../../../../partner-hook-utils/composeErrorHandler.js";
|
|
16
|
+
import { EmployeeOnboardingStatus as o } from "../../../../../shared/constants.js";
|
|
17
|
+
import { useBaseSubmit as fe } from "../../../../Base/useBaseSubmit.js";
|
|
18
18
|
import { SDKInternalError as l } from "../../../../../types/sdkError.js";
|
|
19
|
-
import { removeNonDigits as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
import { removeNonDigits as Ee } from "../../../../../helpers/formattedStrings.js";
|
|
20
|
+
function Ne(e) {
|
|
21
|
+
return {
|
|
22
|
+
firstName: e.firstName,
|
|
23
|
+
middleInitial: e.middleInitial,
|
|
24
|
+
lastName: e.lastName,
|
|
25
|
+
email: e.email,
|
|
26
|
+
dateOfBirth: e.dateOfBirth,
|
|
27
|
+
ssn: e.ssn,
|
|
28
|
+
selfOnboarding: e.selfOnboarding
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const Oe = (e) => e?.onboardingStatus ? [
|
|
32
|
+
o.SELF_ONBOARDING_PENDING_INVITE,
|
|
33
|
+
o.SELF_ONBOARDING_INVITED,
|
|
34
|
+
o.SELF_ONBOARDING_INVITED_STARTED,
|
|
35
|
+
o.SELF_ONBOARDING_INVITED_OVERDUE,
|
|
36
|
+
o.SELF_ONBOARDING_COMPLETED_BY_EMPLOYEE,
|
|
37
|
+
o.SELF_ONBOARDING_AWAITING_ADMIN_REVIEW
|
|
38
|
+
].includes(e.onboardingStatus) : !1, ce = (e) => e ? e.onboardingStatus === o.ADMIN_ONBOARDING_INCOMPLETE || e.onboardingStatus === o.SELF_ONBOARDING_PENDING_INVITE : !0;
|
|
39
|
+
function Ce({
|
|
40
|
+
companyId: e,
|
|
30
41
|
employeeId: i,
|
|
31
|
-
withSelfOnboardingField:
|
|
42
|
+
withSelfOnboardingField: A = !0,
|
|
32
43
|
optionalFieldsToRequire: O,
|
|
33
44
|
defaultValues: a,
|
|
34
|
-
validationMode:
|
|
45
|
+
validationMode: L = "onSubmit",
|
|
35
46
|
shouldFocusError: G = !0
|
|
36
47
|
}) {
|
|
37
|
-
const u =
|
|
38
|
-
() =>
|
|
39
|
-
[p, O,
|
|
40
|
-
),
|
|
41
|
-
firstName:
|
|
42
|
-
middleInitial:
|
|
43
|
-
lastName:
|
|
44
|
-
email:
|
|
45
|
-
dateOfBirth:
|
|
48
|
+
const u = Q({ employeeId: i ?? "" }, { enabled: !!i }), t = u.data?.employee, r = !i, c = ce(t), p = r ? "create" : "update", [I, w] = k(
|
|
49
|
+
() => $({ mode: p, optionalFieldsToRequire: O, hasSsn: t?.hasSsn }),
|
|
50
|
+
[p, O, t?.hasSsn]
|
|
51
|
+
), S = {
|
|
52
|
+
firstName: t?.firstName ?? a?.firstName ?? "",
|
|
53
|
+
middleInitial: t?.middleInitial ?? a?.middleInitial ?? "",
|
|
54
|
+
lastName: t?.lastName ?? a?.lastName ?? "",
|
|
55
|
+
email: t?.email ?? a?.email ?? "",
|
|
56
|
+
dateOfBirth: t?.dateOfBirth ?? re(a?.dateOfBirth),
|
|
46
57
|
ssn: a?.ssn ?? "",
|
|
47
|
-
selfOnboarding: a?.selfOnboarding ??
|
|
48
|
-
},
|
|
49
|
-
resolver:
|
|
50
|
-
mode:
|
|
58
|
+
selfOnboarding: a?.selfOnboarding ?? Oe(t)
|
|
59
|
+
}, d = x({
|
|
60
|
+
resolver: K(I),
|
|
61
|
+
mode: L,
|
|
51
62
|
shouldFocusError: G,
|
|
52
|
-
defaultValues:
|
|
53
|
-
values:
|
|
63
|
+
defaultValues: S,
|
|
64
|
+
values: S,
|
|
54
65
|
resetOptions: { keepDirtyValues: !0 }
|
|
55
|
-
}), g =
|
|
66
|
+
}), g = j(), y = J(), b = X(), R = g.isPending || y.isPending || b.isPending, {
|
|
56
67
|
baseSubmitHandler: v,
|
|
57
68
|
error: T,
|
|
58
69
|
setError: V
|
|
59
|
-
} =
|
|
70
|
+
} = fe("EmployeeDetailsForm"), D = ue(i ? [u] : [], { submitError: T, setSubmitError: V }), P = de(w, d.control), C = Ne(P), q = async (f) => {
|
|
60
71
|
let _;
|
|
61
72
|
return await new Promise((F) => {
|
|
62
|
-
|
|
63
|
-
async (
|
|
64
|
-
await v(
|
|
65
|
-
const { selfOnboarding: E, dateOfBirth: N, ssn: B, ...h } =
|
|
73
|
+
d.handleSubmit(
|
|
74
|
+
async (H) => {
|
|
75
|
+
await v(H, async (z) => {
|
|
76
|
+
const { selfOnboarding: E, dateOfBirth: N, ssn: B, ...h } = z, m = B ? Ee(B) : void 0, M = m && m.length > 0;
|
|
66
77
|
let n;
|
|
67
78
|
if (r) {
|
|
68
|
-
if (!
|
|
79
|
+
if (!e)
|
|
69
80
|
throw new l("companyId is required to create an employee");
|
|
70
81
|
const s = await g.mutateAsync({
|
|
71
82
|
request: {
|
|
72
|
-
companyId:
|
|
83
|
+
companyId: e,
|
|
73
84
|
requestBody: {
|
|
74
85
|
...h,
|
|
75
86
|
selfOnboarding: E,
|
|
76
|
-
dateOfBirth: N ? new
|
|
77
|
-
ssn:
|
|
87
|
+
dateOfBirth: N ? new Z(new Date(N)) : void 0,
|
|
88
|
+
ssn: M ? m : void 0
|
|
78
89
|
}
|
|
79
90
|
}
|
|
80
91
|
});
|
|
@@ -82,30 +93,30 @@ function Ve({
|
|
|
82
93
|
throw new l("Employee creation failed");
|
|
83
94
|
n = s.employee, f?.onEmployeeCreated?.(n);
|
|
84
95
|
} else {
|
|
85
|
-
if (!
|
|
96
|
+
if (!t)
|
|
86
97
|
throw new l("Employee data is not available");
|
|
87
98
|
if (c) {
|
|
88
|
-
const
|
|
89
|
-
if (E !==
|
|
90
|
-
const { employeeOnboardingStatus:
|
|
99
|
+
const W = t.onboardingStatus === o.SELF_ONBOARDING_PENDING_INVITE;
|
|
100
|
+
if (E !== W) {
|
|
101
|
+
const { employeeOnboardingStatus: Y } = await b.mutateAsync({
|
|
91
102
|
request: {
|
|
92
|
-
employeeId:
|
|
103
|
+
employeeId: t.uuid,
|
|
93
104
|
requestBody: {
|
|
94
|
-
onboardingStatus: E ?
|
|
105
|
+
onboardingStatus: E ? o.SELF_ONBOARDING_PENDING_INVITE : o.ADMIN_ONBOARDING_INCOMPLETE
|
|
95
106
|
}
|
|
96
107
|
}
|
|
97
108
|
});
|
|
98
|
-
f?.onOnboardingStatusUpdated?.(
|
|
109
|
+
f?.onOnboardingStatusUpdated?.(Y);
|
|
99
110
|
}
|
|
100
111
|
}
|
|
101
|
-
const s = await
|
|
112
|
+
const s = await y.mutateAsync({
|
|
102
113
|
request: {
|
|
103
|
-
employeeId:
|
|
114
|
+
employeeId: t.uuid,
|
|
104
115
|
requestBody: {
|
|
105
|
-
version:
|
|
116
|
+
version: t.version,
|
|
106
117
|
...h,
|
|
107
118
|
dateOfBirth: N || void 0,
|
|
108
|
-
ssn:
|
|
119
|
+
ssn: M ? m : void 0
|
|
109
120
|
}
|
|
110
121
|
}
|
|
111
122
|
});
|
|
@@ -124,35 +135,35 @@ function Ve({
|
|
|
124
135
|
}
|
|
125
136
|
)();
|
|
126
137
|
}), _;
|
|
127
|
-
},
|
|
128
|
-
return (i ? u.isLoading : !1) || i && !
|
|
138
|
+
}, U = me(d);
|
|
139
|
+
return (i ? u.isLoading : !1) || i && !t ? { isLoading: !0, errorHandling: D } : {
|
|
129
140
|
isLoading: !1,
|
|
130
141
|
data: {
|
|
131
|
-
employee:
|
|
142
|
+
employee: t ?? null
|
|
132
143
|
},
|
|
133
144
|
status: {
|
|
134
145
|
isPending: R,
|
|
135
146
|
mode: r ? "create" : "update"
|
|
136
147
|
},
|
|
137
|
-
actions: { onSubmit:
|
|
148
|
+
actions: { onSubmit: q },
|
|
138
149
|
errorHandling: D,
|
|
139
150
|
form: {
|
|
140
151
|
Fields: {
|
|
141
|
-
FirstName:
|
|
142
|
-
MiddleInitial:
|
|
143
|
-
LastName:
|
|
144
|
-
Email:
|
|
145
|
-
DateOfBirth:
|
|
146
|
-
Ssn:
|
|
147
|
-
SelfOnboarding:
|
|
152
|
+
FirstName: se,
|
|
153
|
+
MiddleInitial: ne,
|
|
154
|
+
LastName: ae,
|
|
155
|
+
Email: ie,
|
|
156
|
+
DateOfBirth: oe,
|
|
157
|
+
Ssn: te,
|
|
158
|
+
SelfOnboarding: A && c ? ee : void 0
|
|
148
159
|
},
|
|
149
|
-
fieldsMetadata:
|
|
150
|
-
hookFormInternals:
|
|
151
|
-
getFormSubmissionValues:
|
|
160
|
+
fieldsMetadata: C,
|
|
161
|
+
hookFormInternals: U,
|
|
162
|
+
getFormSubmissionValues: le(d, I)
|
|
152
163
|
}
|
|
153
164
|
};
|
|
154
165
|
}
|
|
155
166
|
export {
|
|
156
|
-
|
|
167
|
+
Ce as useEmployeeDetailsForm
|
|
157
168
|
};
|
|
158
169
|
//# sourceMappingURL=useEmployeeDetailsForm.js.map
|