@gusto/embedded-react-sdk 0.7.0 → 0.8.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 +35 -0
- package/dist/_virtual/dynamic-import-helper.js +17 -0
- package/dist/_virtual/dynamic-import-helper.js.map +1 -0
- package/dist/assets/icons/alert-circle.svg.js +10 -0
- package/dist/assets/icons/alert-circle.svg.js.map +1 -0
- package/dist/assets/icons/caret-down.svg.js +10 -0
- package/dist/assets/icons/caret-down.svg.js.map +1 -0
- package/dist/assets/icons/caret-left.svg.js +10 -0
- package/dist/assets/icons/caret-left.svg.js.map +1 -0
- package/dist/assets/icons/caret-right.svg.js +10 -0
- package/dist/assets/icons/caret-right.svg.js.map +1 -0
- package/dist/assets/icons/checkbox.svg.js +10 -0
- package/dist/assets/icons/checkbox.svg.js.map +1 -0
- package/dist/assets/icons/error.svg.js +10 -0
- package/dist/assets/icons/error.svg.js.map +1 -0
- package/dist/assets/icons/hamburger.svg.js +10 -0
- package/dist/assets/icons/hamburger.svg.js.map +1 -0
- package/dist/assets/icons/info.svg.js +10 -0
- package/dist/assets/icons/info.svg.js.map +1 -0
- package/dist/assets/icons/list.svg.js +10 -0
- package/dist/assets/icons/list.svg.js.map +1 -0
- package/dist/assets/icons/magnifyingGlass.png.js +5 -0
- package/dist/assets/icons/magnifyingGlass.png.js.map +1 -0
- package/dist/assets/icons/pagination_first.svg.js +10 -0
- package/dist/assets/icons/pagination_first.svg.js.map +1 -0
- package/dist/assets/icons/pagination_last.svg.js +10 -0
- package/dist/assets/icons/pagination_last.svg.js.map +1 -0
- package/dist/assets/icons/pagination_next.svg.js +10 -0
- package/dist/assets/icons/pagination_next.svg.js.map +1 -0
- package/dist/assets/icons/pagination_previous.svg.js +10 -0
- package/dist/assets/icons/pagination_previous.svg.js.map +1 -0
- package/dist/assets/icons/pencil.svg.js +10 -0
- package/dist/assets/icons/pencil.svg.js.map +1 -0
- package/dist/assets/icons/success_check.svg.js +10 -0
- package/dist/assets/icons/success_check.svg.js.map +1 -0
- package/dist/assets/icons/trashcan.svg.js +10 -0
- package/dist/assets/icons/trashcan.svg.js.map +1 -0
- package/dist/assets/icons/unchecked_circular.svg.js +10 -0
- package/dist/assets/icons/unchecked_circular.svg.js.map +1 -0
- package/dist/assets/icons/verification_pending.svg.js +10 -0
- package/dist/assets/icons/verification_pending.svg.js.map +1 -0
- package/dist/assets/icons/warning.svg.js +10 -0
- package/dist/assets/icons/warning.svg.js.map +1 -0
- package/dist/components/Base/Base.d.ts +16 -0
- package/dist/components/Base/Base.js +78 -0
- package/dist/components/Base/Base.js.map +1 -0
- package/dist/components/Base/createCompoundContext.d.ts +1 -0
- package/dist/components/Base/createCompoundContext.js +14 -0
- package/dist/components/Base/createCompoundContext.js.map +1 -0
- package/dist/components/Base/index.d.ts +3 -0
- package/dist/components/Base/useBase.d.ts +20 -0
- package/dist/components/Base/useBase.js +12 -0
- package/dist/components/Base/useBase.js.map +1 -0
- package/dist/components/Common/ActionsLayout/ActionsLayout.d.ts +7 -0
- package/dist/components/Common/ActionsLayout/ActionsLayout.js +22 -0
- package/dist/components/Common/ActionsLayout/ActionsLayout.js.map +1 -0
- package/dist/components/Common/ActionsLayout/index.d.ts +1 -0
- package/dist/components/Common/Alert/Alert.d.ts +9 -0
- package/dist/components/Common/DataView/DataCards/DataCards.d.ts +9 -0
- package/dist/components/Common/DataView/DataCards/DataCards.js +36 -0
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -0
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +8 -0
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -0
- package/dist/components/Common/DataView/DataCards/index.d.ts +1 -0
- package/dist/components/Common/DataView/DataTable/DataTable.d.ts +10 -0
- package/dist/components/Common/DataView/DataTable/DataTable.js +86 -0
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -0
- package/dist/components/Common/DataView/DataView.d.ts +12 -0
- package/dist/components/Common/DataView/DataView.js +34 -0
- package/dist/components/Common/DataView/DataView.js.map +1 -0
- package/dist/components/Common/DataView/DataView.module.scss.js +8 -0
- package/dist/components/Common/DataView/DataView.module.scss.js.map +1 -0
- package/dist/components/Common/DataView/index.d.ts +4 -0
- package/dist/components/Common/DataView/useDataView.d.ts +28 -0
- package/dist/components/Common/DataView/useDataView.js +20 -0
- package/dist/components/Common/DataView/useDataView.js.map +1 -0
- package/dist/components/Common/DocumentList/DocumentList.d.ts +26 -0
- package/dist/components/Common/DocumentList/DocumentList.js +40 -0
- package/dist/components/Common/DocumentList/DocumentList.js.map +1 -0
- package/dist/components/Common/DocumentList/DocumentList.module.scss.js +16 -0
- package/dist/components/Common/DocumentList/DocumentList.module.scss.js.map +1 -0
- package/dist/components/Common/DocumentList/index.d.ts +1 -0
- package/dist/components/Common/DocumentViewer/DocumentViewer.d.ts +9 -0
- package/dist/components/Common/DocumentViewer/DocumentViewer.js +48 -0
- package/dist/components/Common/DocumentViewer/DocumentViewer.js.map +1 -0
- package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +18 -0
- package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js.map +1 -0
- package/dist/components/Common/DocumentViewer/index.d.ts +1 -0
- package/dist/components/Common/EmptyData/EmptyData.d.ts +7 -0
- package/dist/components/Common/EmptyData/EmptyData.js +19 -0
- package/dist/components/Common/EmptyData/EmptyData.js.map +1 -0
- package/dist/components/Common/EmptyData/EmptyData.module.scss.js +10 -0
- package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -0
- package/dist/components/Common/FadeIn/FadeIn.d.ts +4 -0
- package/dist/components/Common/FadeIn/FadeIn.js +18 -0
- package/dist/components/Common/FadeIn/FadeIn.js.map +1 -0
- package/dist/components/Common/FadeIn/FadeIn.module.scss.js +10 -0
- package/dist/components/Common/FadeIn/FadeIn.module.scss.js.map +1 -0
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +5 -0
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +28 -0
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -0
- package/dist/components/Common/Fields/CheckboxField/index.d.ts +1 -0
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +10 -0
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +36 -0
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -0
- package/dist/components/Common/Fields/CheckboxGroupField/index.d.ts +1 -0
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +10 -0
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -0
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -0
- package/dist/components/Common/Fields/ComboBoxField/index.d.ts +2 -0
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +6 -0
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +28 -0
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -0
- package/dist/components/Common/Fields/DatePickerField/index.d.ts +1 -0
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +5 -0
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +31 -0
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -0
- package/dist/components/Common/Fields/NumberInputField/index.d.ts +1 -0
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +10 -0
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +36 -0
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -0
- package/dist/components/Common/Fields/RadioGroupField/index.d.ts +2 -0
- package/dist/components/Common/Fields/SelectField/SelectField.d.ts +10 -0
- package/dist/components/Common/Fields/SelectField/SelectField.js +36 -0
- package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -0
- package/dist/components/Common/Fields/SelectField/index.d.ts +2 -0
- package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +5 -0
- package/dist/components/Common/Fields/SwitchField/SwitchField.js +28 -0
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -0
- package/dist/components/Common/Fields/SwitchField/index.d.ts +1 -0
- package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +5 -0
- package/dist/components/Common/Fields/TextInputField/TextInputField.js +28 -0
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -0
- package/dist/components/Common/Fields/TextInputField/index.d.ts +1 -0
- package/dist/components/Common/Fields/hooks/useField.d.ts +22 -0
- package/dist/components/Common/Fields/hooks/useField.js +36 -0
- package/dist/components/Common/Fields/hooks/useField.js.map +1 -0
- package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.d.ts +31 -0
- package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js +73 -0
- package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -0
- package/dist/components/Common/Flex/Flex.d.ts +14 -0
- package/dist/components/Common/Flex/Flex.js +22 -0
- package/dist/components/Common/Flex/Flex.js.map +1 -0
- package/dist/components/Common/Flex/Flex.module.scss.js +10 -0
- package/dist/components/Common/Flex/Flex.module.scss.js.map +1 -0
- package/dist/components/Common/Flex/index.d.ts +1 -0
- package/dist/components/Common/Form/Form.d.ts +2 -0
- package/dist/components/Common/Form/Form.js +8 -0
- package/dist/components/Common/Form/Form.js.map +1 -0
- package/dist/components/Common/Form/Form.module.scss.js +8 -0
- package/dist/components/Common/Form/Form.module.scss.js.map +1 -0
- package/dist/components/Common/Form/index.d.ts +2 -0
- package/dist/components/Common/Grid/Grid.d.ts +18 -0
- package/dist/components/Common/Grid/Grid.js +32 -0
- package/dist/components/Common/Grid/Grid.js.map +1 -0
- package/dist/components/Common/Grid/Grid.module.scss.js +10 -0
- package/dist/components/Common/Grid/Grid.module.scss.js.map +1 -0
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.d.ts +2 -0
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.js +40 -0
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.js.map +1 -0
- package/dist/components/Common/HamburgerMenu/HamburgerMenuTypes.d.ts +9 -0
- package/dist/components/Common/HamburgerMenu/index.d.ts +1 -0
- package/dist/components/Common/InternalError/InternalError.d.ts +2 -0
- package/dist/components/Common/InternalError/InternalError.js +26 -0
- package/dist/components/Common/InternalError/InternalError.js.map +1 -0
- package/dist/components/Common/InternalError/InternalError.module.scss.js +12 -0
- package/dist/components/Common/InternalError/InternalError.module.scss.js.map +1 -0
- package/dist/components/Common/Loading/Loading.d.ts +1 -0
- package/dist/components/Common/Loading/Loading.js +22 -0
- package/dist/components/Common/Loading/Loading.js.map +1 -0
- package/dist/components/Common/Loading/Loading.module.scss.js +12 -0
- package/dist/components/Common/Loading/Loading.module.scss.js.map +1 -0
- package/dist/components/Common/PaginationControl/PaginationControl.d.ts +2 -0
- package/dist/components/Common/PaginationControl/PaginationControl.js +86 -0
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -0
- package/dist/components/Common/PaginationControl/PaginationControl.module.scss.js +12 -0
- package/dist/components/Common/PaginationControl/PaginationControl.module.scss.js.map +1 -0
- package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +9 -0
- package/dist/components/Common/PaginationControl/index.d.ts +2 -0
- package/dist/components/Common/ReorderableList/DropZone.d.ts +11 -0
- package/dist/components/Common/ReorderableList/DropZone.js +62 -0
- package/dist/components/Common/ReorderableList/DropZone.js.map +1 -0
- package/dist/components/Common/ReorderableList/ReorderableItem.d.ts +28 -0
- package/dist/components/Common/ReorderableList/ReorderableItem.js +139 -0
- package/dist/components/Common/ReorderableList/ReorderableItem.js.map +1 -0
- package/dist/components/Common/ReorderableList/ReorderableList.d.ts +25 -0
- package/dist/components/Common/ReorderableList/ReorderableList.js +192 -0
- package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -0
- package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js +28 -0
- package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js.map +1 -0
- package/dist/components/Common/ReorderableList/ReorderableListTypes.d.ts +6 -0
- package/dist/components/Common/ReorderableList/constants.d.ts +4 -0
- package/dist/components/Common/ReorderableList/constants.js +5 -0
- package/dist/components/Common/ReorderableList/constants.js.map +1 -0
- package/dist/components/Common/ReorderableList/index.d.ts +2 -0
- package/dist/components/Common/RequirementsList/RequirementsList.d.ts +9 -0
- package/dist/components/Common/RequirementsList/RequirementsList.js +21 -0
- package/dist/components/Common/RequirementsList/RequirementsList.js.map +1 -0
- package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +14 -0
- package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js.map +1 -0
- package/dist/components/Common/SignatureForm/SignatureForm.d.ts +14 -0
- package/dist/components/Common/SignatureForm/SignatureForm.js +26 -0
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -0
- package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js +10 -0
- package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js.map +1 -0
- package/dist/components/Common/SignatureForm/SignatureFormActions.d.ts +8 -0
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +19 -0
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -0
- package/dist/components/Common/SignatureForm/SignatureFormFields.d.ts +9 -0
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +36 -0
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -0
- package/dist/components/Common/SignatureForm/index.d.ts +4 -0
- package/dist/components/Common/TaxInputs/TaxInputs.d.ts +25 -0
- package/dist/components/Common/TaxInputs/TaxInputs.js +144 -0
- package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -0
- package/dist/components/Common/TaxInputs/index.d.ts +1 -0
- package/dist/components/Common/Toast/Toast.d.ts +4 -0
- package/dist/components/Common/UI/Alert/Alert.d.ts +2 -0
- package/dist/components/Common/UI/Alert/Alert.js +31 -0
- package/dist/components/Common/UI/Alert/Alert.js.map +1 -0
- package/dist/components/Common/UI/Alert/Alert.module.scss.js +14 -0
- package/dist/components/Common/UI/Alert/Alert.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Alert/AlertTypes.d.ts +11 -0
- package/dist/components/Common/UI/Alert/index.d.ts +1 -0
- package/dist/components/Common/UI/Badge/Badge.d.ts +3 -0
- package/dist/components/Common/UI/Badge/Badge.js +13 -0
- package/dist/components/Common/UI/Badge/Badge.js.map +1 -0
- package/dist/components/Common/UI/Badge/Badge.module.scss.js +8 -0
- package/dist/components/Common/UI/Badge/Badge.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Badge/BadgeTypes.d.ts +5 -0
- package/dist/components/Common/UI/Button/Button.d.ts +2 -0
- package/dist/components/Common/UI/Button/Button.js +39 -0
- package/dist/components/Common/UI/Button/Button.js.map +1 -0
- package/dist/components/Common/UI/Button/Button.module.scss.js +8 -0
- package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Button/ButtonIcon.d.ts +2 -0
- package/dist/components/Common/UI/Button/ButtonIcon.js +9 -0
- package/dist/components/Common/UI/Button/ButtonIcon.js.map +1 -0
- package/dist/components/Common/UI/Button/ButtonTypes.d.ts +16 -0
- package/dist/components/Common/UI/Button/index.d.ts +3 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarLegend.d.ts +3 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarLegend.js +37 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarLegend.js.map +1 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarPreview.d.ts +2 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarPreview.js +64 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarPreview.js.map +1 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js +14 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js.map +1 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarPreviewTypes.d.ts +12 -0
- package/dist/components/Common/UI/CalendarPreview/index.d.ts +3 -0
- package/dist/components/Common/UI/Card/Card.d.ts +2 -0
- package/dist/components/Common/UI/Card/Card.js +25 -0
- package/dist/components/Common/UI/Card/Card.js.map +1 -0
- package/dist/components/Common/UI/Card/Card.module.scss.js +8 -0
- package/dist/components/Common/UI/Card/Card.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Card/CardTypes.d.ts +11 -0
- package/dist/components/Common/UI/Checkbox/Checkbox.d.ts +2 -0
- package/dist/components/Common/UI/Checkbox/Checkbox.js +68 -0
- package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +14 -0
- package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Checkbox/CheckboxTypes.d.ts +9 -0
- package/dist/components/Common/UI/Checkbox/index.d.ts +1 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.d.ts +2 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.js +105 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.module.scss.js +8 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.module.scss.js.map +1 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.d.ts +16 -0
- package/dist/components/Common/UI/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/Common/UI/ComboBox/ComboBox.d.ts +2 -0
- package/dist/components/Common/UI/ComboBox/ComboBox.js +90 -0
- package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -0
- package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +12 -0
- package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js.map +1 -0
- package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +16 -0
- package/dist/components/Common/UI/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/Common/UI/DatePicker/DatePicker.js +102 -0
- package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -0
- package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +14 -0
- package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js.map +1 -0
- package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +12 -0
- package/dist/components/Common/UI/DatePicker/index.d.ts +1 -0
- package/dist/components/Common/UI/FieldCaption/FieldCaption.d.ts +9 -0
- package/dist/components/Common/UI/FieldCaption/FieldCaption.js +30 -0
- package/dist/components/Common/UI/FieldCaption/FieldCaption.js.map +1 -0
- package/dist/components/Common/UI/FieldCaption/FieldCaption.module.scss.js +10 -0
- package/dist/components/Common/UI/FieldCaption/FieldCaption.module.scss.js.map +1 -0
- package/dist/components/Common/UI/FieldCaption/index.d.ts +1 -0
- package/dist/components/Common/UI/FieldDescription/FieldDescription.d.ts +7 -0
- package/dist/components/Common/UI/FieldDescription/FieldDescription.js +19 -0
- package/dist/components/Common/UI/FieldDescription/FieldDescription.js.map +1 -0
- package/dist/components/Common/UI/FieldDescription/FieldDescription.module.scss.js +8 -0
- package/dist/components/Common/UI/FieldDescription/FieldDescription.module.scss.js.map +1 -0
- package/dist/components/Common/UI/FieldDescription/index.d.ts +1 -0
- package/dist/components/Common/UI/FieldErrorMessage/FieldErrorMessage.d.ts +6 -0
- package/dist/components/Common/UI/FieldErrorMessage/FieldErrorMessage.js +28 -0
- package/dist/components/Common/UI/FieldErrorMessage/FieldErrorMessage.js.map +1 -0
- package/dist/components/Common/UI/FieldErrorMessage/FieldErrorMessage.module.scss.js +10 -0
- package/dist/components/Common/UI/FieldErrorMessage/FieldErrorMessage.module.scss.js.map +1 -0
- package/dist/components/Common/UI/FieldErrorMessage/index.d.ts +1 -0
- package/dist/components/Common/UI/FieldLayout/FieldLayout.d.ts +2 -0
- package/dist/components/Common/UI/FieldLayout/FieldLayout.js +57 -0
- package/dist/components/Common/UI/FieldLayout/FieldLayout.js.map +1 -0
- package/dist/components/Common/UI/FieldLayout/FieldLayout.module.scss.js +16 -0
- package/dist/components/Common/UI/FieldLayout/FieldLayout.module.scss.js.map +1 -0
- package/dist/components/Common/UI/FieldLayout/FieldLayoutTypes.d.ts +19 -0
- package/dist/components/Common/UI/FieldLayout/index.d.ts +1 -0
- package/dist/components/Common/UI/Fieldset/Fieldset.d.ts +11 -0
- package/dist/components/Common/UI/Fieldset/Fieldset.js +66 -0
- package/dist/components/Common/UI/Fieldset/Fieldset.js.map +1 -0
- package/dist/components/Common/UI/Fieldset/Fieldset.module.scss.js +16 -0
- package/dist/components/Common/UI/Fieldset/Fieldset.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Fieldset/index.d.ts +1 -0
- package/dist/components/Common/UI/Heading/Heading.d.ts +2 -0
- package/dist/components/Common/UI/Heading/Heading.js +28 -0
- package/dist/components/Common/UI/Heading/Heading.js.map +1 -0
- package/dist/components/Common/UI/Heading/Heading.module.scss.js +23 -0
- package/dist/components/Common/UI/Heading/Heading.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Heading/HeadingTypes.d.ts +7 -0
- package/dist/components/Common/UI/Heading/index.d.ts +2 -0
- package/dist/components/Common/UI/HorizontalFieldLayout/HorizontalFieldLayout.d.ts +2 -0
- package/dist/components/Common/UI/HorizontalFieldLayout/HorizontalFieldLayout.js +45 -0
- package/dist/components/Common/UI/HorizontalFieldLayout/HorizontalFieldLayout.js.map +1 -0
- package/dist/components/Common/UI/HorizontalFieldLayout/HorizontalFieldLayout.module.scss.js +20 -0
- package/dist/components/Common/UI/HorizontalFieldLayout/HorizontalFieldLayout.module.scss.js.map +1 -0
- package/dist/components/Common/UI/HorizontalFieldLayout/HorizontalFieldLayoutTypes.d.ts +3 -0
- package/dist/components/Common/UI/HorizontalFieldLayout/index.d.ts +1 -0
- package/dist/components/Common/UI/Input/Input.d.ts +2 -0
- package/dist/components/Common/UI/Input/Input.js +41 -0
- package/dist/components/Common/UI/Input/Input.js.map +1 -0
- package/dist/components/Common/UI/Input/Input.module.scss.js +20 -0
- package/dist/components/Common/UI/Input/Input.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Input/InputTypes.d.ts +19 -0
- package/dist/components/Common/UI/Input/index.d.ts +2 -0
- package/dist/components/Common/UI/Link/Link.d.ts +2 -0
- package/dist/components/Common/UI/Link/Link.js +11 -0
- package/dist/components/Common/UI/Link/Link.js.map +1 -0
- package/dist/components/Common/UI/Link/Link.module.scss.js +8 -0
- package/dist/components/Common/UI/Link/Link.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Link/LinkTypes.d.ts +2 -0
- package/dist/components/Common/UI/Link/index.d.ts +1 -0
- package/dist/components/Common/UI/List/List.module.scss.js +10 -0
- package/dist/components/Common/UI/List/List.module.scss.js.map +1 -0
- package/dist/components/Common/UI/List/ListTypes.d.ts +27 -0
- package/dist/components/Common/UI/List/OrderedList.d.ts +2 -0
- package/dist/components/Common/UI/List/OrderedList.js +13 -0
- package/dist/components/Common/UI/List/OrderedList.js.map +1 -0
- package/dist/components/Common/UI/List/UnorderedList.d.ts +2 -0
- package/dist/components/Common/UI/List/UnorderedList.js +13 -0
- package/dist/components/Common/UI/List/UnorderedList.js.map +1 -0
- package/dist/components/Common/UI/List/index.d.ts +3 -0
- package/dist/components/Common/UI/Menu/Menu.d.ts +2 -0
- package/dist/components/Common/UI/Menu/Menu.js +52 -0
- package/dist/components/Common/UI/Menu/Menu.js.map +1 -0
- package/dist/components/Common/UI/Menu/Menu.module.scss.js +12 -0
- package/dist/components/Common/UI/Menu/Menu.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Menu/MenuTypes.d.ts +16 -0
- package/dist/components/Common/UI/Menu/index.d.ts +1 -0
- package/dist/components/Common/UI/NumberInput/NumberInput.d.ts +2 -0
- package/dist/components/Common/UI/NumberInput/NumberInput.js +99 -0
- package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -0
- package/dist/components/Common/UI/NumberInput/NumberInput.module.scss.js +8 -0
- package/dist/components/Common/UI/NumberInput/NumberInput.module.scss.js.map +1 -0
- package/dist/components/Common/UI/NumberInput/NumberInputTypes.d.ts +16 -0
- package/dist/components/Common/UI/NumberInput/index.d.ts +1 -0
- package/dist/components/Common/UI/ProgressBar/ProgressBar.d.ts +2 -0
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +14 -0
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/Common/UI/ProgressBar/ProgressBar.module.scss.js +8 -0
- package/dist/components/Common/UI/ProgressBar/ProgressBar.module.scss.js.map +1 -0
- package/dist/components/Common/UI/ProgressBar/ProgressBarTypes.d.ts +6 -0
- package/dist/components/Common/UI/ProgressBar/index.d.ts +2 -0
- package/dist/components/Common/UI/Radio/Radio.d.ts +2 -0
- package/dist/components/Common/UI/Radio/Radio.js +67 -0
- package/dist/components/Common/UI/Radio/Radio.js.map +1 -0
- package/dist/components/Common/UI/Radio/Radio.module.scss.js +16 -0
- package/dist/components/Common/UI/Radio/Radio.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Radio/RadioTypes.d.ts +9 -0
- package/dist/components/Common/UI/Radio/index.d.ts +1 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroup.d.ts +2 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroup.js +103 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroup.module.scss.js +8 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroup.module.scss.js.map +1 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +16 -0
- package/dist/components/Common/UI/RadioGroup/index.d.ts +1 -0
- package/dist/components/Common/UI/Select/Select.d.ts +2 -0
- package/dist/components/Common/UI/Select/Select.js +91 -0
- package/dist/components/Common/UI/Select/Select.js.map +1 -0
- package/dist/components/Common/UI/Select/Select.module.scss.js +12 -0
- package/dist/components/Common/UI/Select/Select.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Select/SelectTypes.d.ts +17 -0
- package/dist/components/Common/UI/Select/index.d.ts +1 -0
- package/dist/components/Common/UI/Switch/Switch.d.ts +2 -0
- package/dist/components/Common/UI/Switch/Switch.js +65 -0
- package/dist/components/Common/UI/Switch/Switch.js.map +1 -0
- package/dist/components/Common/UI/Switch/Switch.module.scss.js +12 -0
- package/dist/components/Common/UI/Switch/Switch.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +12 -0
- package/dist/components/Common/UI/Switch/index.d.ts +1 -0
- package/dist/components/Common/UI/Table/Table.d.ts +2 -0
- package/dist/components/Common/UI/Table/Table.js +14 -0
- package/dist/components/Common/UI/Table/Table.js.map +1 -0
- package/dist/components/Common/UI/Table/Table.module.scss.js +8 -0
- package/dist/components/Common/UI/Table/Table.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Table/TableTypes.d.ts +14 -0
- package/dist/components/Common/UI/Table/index.d.ts +2 -0
- package/dist/components/Common/UI/Text/Text.d.ts +2 -0
- package/dist/components/Common/UI/Text/Text.js +29 -0
- package/dist/components/Common/UI/Text/Text.js.map +1 -0
- package/dist/components/Common/UI/Text/Text.module.scss.js +26 -0
- package/dist/components/Common/UI/Text/Text.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Text/TextTypes.d.ts +9 -0
- package/dist/components/Common/UI/Text/index.d.ts +2 -0
- package/dist/components/Common/UI/TextInput/TextInput.d.ts +2 -0
- package/dist/components/Common/UI/TextInput/TextInput.js +71 -0
- package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -0
- package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +12 -0
- package/dist/components/Common/UI/TextInput/index.d.ts +1 -0
- package/dist/components/Common/UI/hooks/useFieldIds.d.ts +14 -0
- package/dist/components/Common/UI/hooks/useFieldIds.js +20 -0
- package/dist/components/Common/UI/hooks/useFieldIds.js.map +1 -0
- package/dist/components/Common/UI/hooks/useFieldIds.test.d.ts +1 -0
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.d.ts +13 -0
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.js +15 -0
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.module.scss.js +8 -0
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.module.scss.js.map +1 -0
- package/dist/components/Common/VisuallyHidden/index.d.ts +2 -0
- package/dist/components/Common/hooks/useAsyncError.d.ts +5 -0
- package/dist/components/Common/hooks/useAsyncError.js +17 -0
- package/dist/components/Common/hooks/useAsyncError.js.map +1 -0
- package/dist/components/Common/hooks/useMenu.d.ts +13 -0
- package/dist/components/Common/hooks/useMenu.js +25 -0
- package/dist/components/Common/hooks/useMenu.js.map +1 -0
- package/dist/components/Common/hooks/useNumberFormatter.d.ts +3 -0
- package/dist/components/Common/hooks/useNumberFormatter.js +16 -0
- package/dist/components/Common/hooks/useNumberFormatter.js.map +1 -0
- package/dist/components/Common/index.d.ts +23 -0
- package/dist/components/Company/AssignSignatory/AssignSignatory.d.ts +14 -0
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +65 -0
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -0
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.d.ts +1 -0
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +31 -0
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -0
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.module.scss.js +8 -0
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.module.scss.js.map +1 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.d.ts +1 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +13 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.d.ts +13 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +120 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.module.scss.js +8 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.module.scss.js.map +1 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.d.ts +4 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +139 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/Schema.d.ts +15 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/Schema.js +24 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/Schema.js.map +1 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/index.d.ts +2 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.d.ts +11 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +17 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -0
- package/dist/components/Company/AssignSignatory/Head.d.ts +1 -0
- package/dist/components/Company/AssignSignatory/Head.js +14 -0
- package/dist/components/Company/AssignSignatory/Head.js.map +1 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.d.ts +1 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +13 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.d.ts +12 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +72 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.module.scss.js +8 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.module.scss.js.map +1 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.d.ts +28 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +83 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/index.d.ts +2 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.d.ts +10 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +17 -0
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -0
- package/dist/components/Company/AssignSignatory/SignatoryForm.d.ts +1 -0
- package/dist/components/Company/AssignSignatory/SignatoryForm.js +28 -0
- package/dist/components/Company/AssignSignatory/SignatoryForm.js.map +1 -0
- package/dist/components/Company/AssignSignatory/TitleSelect.d.ts +2 -0
- package/dist/components/Company/AssignSignatory/TitleSelect.js +25 -0
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -0
- package/dist/components/Company/AssignSignatory/index.d.ts +6 -0
- package/dist/components/Company/AssignSignatory/useAssignSignatory.d.ts +21 -0
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +21 -0
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountComponents.d.ts +16 -0
- package/dist/components/Company/BankAccount/BankAccountComponents.js +38 -0
- package/dist/components/Company/BankAccount/BankAccountComponents.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountFlow.d.ts +5 -0
- package/dist/components/Company/BankAccount/BankAccountFlow.js +24 -0
- package/dist/components/Company/BankAccount/BankAccountFlow.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.d.ts +1 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +13 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.d.ts +11 -0
- package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js +44 -0
- package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Form.d.ts +7 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +39 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Head.d.ts +1 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Head.js +14 -0
- package/dist/components/Company/BankAccount/BankAccountForm/Head.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountForm/context.d.ts +5 -0
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +17 -0
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountList/AccountView.d.ts +1 -0
- package/dist/components/Company/BankAccount/BankAccountList/AccountView.js +20 -0
- package/dist/components/Company/BankAccount/BankAccountList/AccountView.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountList/Actions.d.ts +1 -0
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +16 -0
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.d.ts +12 -0
- package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js +55 -0
- package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountList/Head.d.ts +1 -0
- package/dist/components/Company/BankAccount/BankAccountList/Head.js +44 -0
- package/dist/components/Company/BankAccount/BankAccountList/Head.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountList/context.d.ts +10 -0
- package/dist/components/Company/BankAccount/BankAccountList/context.js +7 -0
- package/dist/components/Company/BankAccount/BankAccountList/context.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.d.ts +1 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +33 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.d.ts +12 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js +54 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.d.ts +7 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +41 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Head.d.ts +1 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Head.js +14 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/Head.js.map +1 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/context.d.ts +6 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/context.js +7 -0
- package/dist/components/Company/BankAccount/BankAccountVerify/context.js.map +1 -0
- package/dist/components/Company/BankAccount/stateMachine.d.ts +6 -0
- package/dist/components/Company/BankAccount/stateMachine.js +66 -0
- package/dist/components/Company/BankAccount/stateMachine.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/Actions.d.ts +5 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/Actions.js +13 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/Actions.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/DocumentList.d.ts +13 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/DocumentList.js +69 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/DocumentList.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/Head.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/Head.js +11 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/Head.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/List.d.ts +2 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/List.js +40 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/List.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/ManageSignatories.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/ManageSignatories.js +35 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/ManageSignatories.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/ManageSignatories.module.scss.js +8 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/ManageSignatories.module.scss.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/index.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/useDocumentList.d.ts +13 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/useDocumentList.js +19 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentList/useDocumentList.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentSignerFlow.d.ts +6 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentSignerFlow.js +35 -0
- package/dist/components/Company/DocumentSignerFlow/DocumentSignerFlow.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Actions.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Actions.js +20 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Actions.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Form.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Form.js +20 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Form.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Head.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Head.js +35 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Head.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Preview.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Preview.js +20 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/Preview.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/SignatureForm.d.ts +17 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/SignatureForm.js +78 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/SignatureForm.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/index.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/useSignatureForm.d.ts +9 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/useSignatureForm.js +19 -0
- package/dist/components/Company/DocumentSignerFlow/SignatureForm/useSignatureForm.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/assignSignatoryState.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/assignSignatoryState.js +41 -0
- package/dist/components/Company/DocumentSignerFlow/assignSignatoryState.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/documentSignerStateMachine.d.ts +11 -0
- package/dist/components/Company/DocumentSignerFlow/documentSignerStateMachine.js +45 -0
- package/dist/components/Company/DocumentSignerFlow/documentSignerStateMachine.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/index.d.ts +1 -0
- package/dist/components/Company/DocumentSignerFlow/stateMachine.d.ts +7 -0
- package/dist/components/Company/DocumentSignerFlow/stateMachine.js +59 -0
- package/dist/components/Company/DocumentSignerFlow/stateMachine.js.map +1 -0
- package/dist/components/Company/DocumentSignerFlow/useDocumentSignerFlow.d.ts +6 -0
- package/dist/components/Company/FederalTaxes/Actions.d.ts +1 -0
- package/dist/components/Company/FederalTaxes/Actions.js +13 -0
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -0
- package/dist/components/Company/FederalTaxes/FederalTaxes.d.ts +11 -0
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +67 -0
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -0
- package/dist/components/Company/FederalTaxes/Form.d.ts +1 -0
- package/dist/components/Company/FederalTaxes/Form.js +104 -0
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -0
- package/dist/components/Company/FederalTaxes/Head.d.ts +1 -0
- package/dist/components/Company/FederalTaxes/Head.js +30 -0
- package/dist/components/Company/FederalTaxes/Head.js.map +1 -0
- package/dist/components/Company/FederalTaxes/index.d.ts +1 -0
- package/dist/components/Company/FederalTaxes/useFederalTaxes.d.ts +21 -0
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +31 -0
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -0
- package/dist/components/Company/Industry/Actions.d.ts +1 -0
- package/dist/components/Company/Industry/Actions.js +13 -0
- package/dist/components/Company/Industry/Actions.js.map +1 -0
- package/dist/components/Company/Industry/Context.d.ts +12 -0
- package/dist/components/Company/Industry/Context.js +23 -0
- package/dist/components/Company/Industry/Context.js.map +1 -0
- package/dist/components/Company/Industry/Edit.d.ts +4 -0
- package/dist/components/Company/Industry/Edit.js +21 -0
- package/dist/components/Company/Industry/Edit.js.map +1 -0
- package/dist/components/Company/Industry/Head.d.ts +1 -0
- package/dist/components/Company/Industry/Head.js +14 -0
- package/dist/components/Company/Industry/Head.js.map +1 -0
- package/dist/components/Company/Industry/Industry.d.ts +11 -0
- package/dist/components/Company/Industry/Industry.js +40 -0
- package/dist/components/Company/Industry/Industry.js.map +1 -0
- package/dist/components/Company/Industry/IndustrySelect.d.ts +8 -0
- package/dist/components/Company/Industry/IndustrySelect.js +36 -0
- package/dist/components/Company/Industry/IndustrySelect.js.map +1 -0
- package/dist/components/Company/Industry/index.d.ts +1 -0
- package/dist/components/Company/Locations/LocationForm/Actions.d.ts +1 -0
- package/dist/components/Company/Locations/LocationForm/Actions.js +16 -0
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -0
- package/dist/components/Company/Locations/LocationForm/Form.d.ts +12 -0
- package/dist/components/Company/Locations/LocationForm/Form.js +110 -0
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -0
- package/dist/components/Company/Locations/LocationForm/Head.d.ts +1 -0
- package/dist/components/Company/Locations/LocationForm/Head.js +14 -0
- package/dist/components/Company/Locations/LocationForm/Head.js.map +1 -0
- package/dist/components/Company/Locations/LocationForm/LocationForm.d.ts +12 -0
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +99 -0
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -0
- package/dist/components/Company/Locations/LocationForm/useLocationForm.d.ts +6 -0
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +19 -0
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -0
- package/dist/components/Company/Locations/LocationsFlow.d.ts +5 -0
- package/dist/components/Company/Locations/LocationsFlow.js +21 -0
- package/dist/components/Company/Locations/LocationsFlow.js.map +1 -0
- package/dist/components/Company/Locations/LocationsList/Actions.d.ts +1 -0
- package/dist/components/Company/Locations/LocationsList/Actions.js +16 -0
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -0
- package/dist/components/Company/Locations/LocationsList/Head.d.ts +1 -0
- package/dist/components/Company/Locations/LocationsList/Head.js +14 -0
- package/dist/components/Company/Locations/LocationsList/Head.js.map +1 -0
- package/dist/components/Company/Locations/LocationsList/List.d.ts +2 -0
- package/dist/components/Company/Locations/LocationsList/List.js +78 -0
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -0
- package/dist/components/Company/Locations/LocationsList/LocationsList.d.ts +11 -0
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +72 -0
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -0
- package/dist/components/Company/Locations/LocationsList/index.d.ts +1 -0
- package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +16 -0
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +19 -0
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -0
- package/dist/components/Company/Locations/locationsStateMachine.d.ts +15 -0
- package/dist/components/Company/Locations/locationsStateMachine.js +18 -0
- package/dist/components/Company/Locations/locationsStateMachine.js.map +1 -0
- package/dist/components/Company/Locations/stateMachine.d.ts +6 -0
- package/dist/components/Company/Locations/stateMachine.js +61 -0
- package/dist/components/Company/Locations/stateMachine.js.map +1 -0
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.d.ts +2 -0
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.js +26 -0
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -0
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.d.ts +26 -0
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js +74 -0
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js.map +1 -0
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.d.ts +12 -0
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js +83 -0
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -0
- package/dist/components/Company/OnboardingOverview/Completed.d.ts +1 -0
- package/dist/components/Company/OnboardingOverview/Completed.js +17 -0
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -0
- package/dist/components/Company/OnboardingOverview/MissingRequirements.d.ts +1 -0
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +32 -0
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -0
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.d.ts +6 -0
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +39 -0
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -0
- package/dist/components/Company/OnboardingOverview/context.d.ts +9 -0
- package/dist/components/Company/OnboardingOverview/context.js +17 -0
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -0
- package/dist/components/Company/PaySchedule/PaySchedule.d.ts +14 -0
- package/dist/components/Company/PaySchedule/PaySchedule.js +168 -0
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -0
- package/dist/components/Company/PaySchedule/_parts/Actions.d.ts +1 -0
- package/dist/components/Company/PaySchedule/_parts/Actions.js +62 -0
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -0
- package/dist/components/Company/PaySchedule/_parts/Edit.d.ts +1 -0
- package/dist/components/Company/PaySchedule/_parts/Edit.js +115 -0
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -0
- package/dist/components/Company/PaySchedule/_parts/Edit.module.scss.js +14 -0
- package/dist/components/Company/PaySchedule/_parts/Edit.module.scss.js.map +1 -0
- package/dist/components/Company/PaySchedule/_parts/Head.d.ts +1 -0
- package/dist/components/Company/PaySchedule/_parts/Head.js +47 -0
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -0
- package/dist/components/Company/PaySchedule/_parts/List.d.ts +1 -0
- package/dist/components/Company/PaySchedule/_parts/List.js +60 -0
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -0
- package/dist/components/Company/PaySchedule/_parts/index.d.ts +4 -0
- package/dist/components/Company/PaySchedule/index.d.ts +1 -0
- package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +34 -0
- package/dist/components/Company/PaySchedule/usePaySchedule.js +33 -0
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesFlow.d.ts +5 -0
- package/dist/components/Company/StateTaxes/StateTaxesFlow.js +21 -0
- package/dist/components/Company/StateTaxes/StateTaxesFlow.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesFlowComponents.d.ts +8 -0
- package/dist/components/Company/StateTaxes/StateTaxesFlowComponents.js +25 -0
- package/dist/components/Company/StateTaxes/StateTaxesFlowComponents.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.d.ts +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +16 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Form.d.ts +4 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +34 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Head.d.ts +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Head.js +12 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/Head.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.d.ts +12 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +111 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.d.ts +9 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +17 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.d.ts +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +13 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/Head.d.ts +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/Head.js +11 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/Head.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/List.d.ts +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +40 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.d.ts +11 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +45 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +9 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +17 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -0
- package/dist/components/Company/StateTaxes/stateTaxesStateMachine.d.ts +5 -0
- package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js +48 -0
- package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js.map +1 -0
- package/dist/components/Company/index.d.ts +12 -0
- package/dist/components/Company/index.js +27 -0
- package/dist/components/Company/index.js.map +1 -0
- package/dist/components/Employee/Compensation/Actions.d.ts +1 -0
- package/dist/components/Employee/Compensation/Actions.js +38 -0
- package/dist/components/Employee/Compensation/Actions.js.map +1 -0
- package/dist/components/Employee/Compensation/Compensation.d.ts +25 -0
- package/dist/components/Employee/Compensation/Compensation.js +207 -0
- package/dist/components/Employee/Compensation/Compensation.js.map +1 -0
- package/dist/components/Employee/Compensation/Edit.d.ts +5 -0
- package/dist/components/Employee/Compensation/Edit.js +166 -0
- package/dist/components/Employee/Compensation/Edit.js.map +1 -0
- package/dist/components/Employee/Compensation/Head.d.ts +1 -0
- package/dist/components/Employee/Compensation/Head.js +22 -0
- package/dist/components/Employee/Compensation/Head.js.map +1 -0
- package/dist/components/Employee/Compensation/List.d.ts +1 -0
- package/dist/components/Employee/Compensation/List.js +71 -0
- package/dist/components/Employee/Compensation/List.js.map +1 -0
- package/dist/components/Employee/Compensation/index.d.ts +1 -0
- package/dist/components/Employee/Compensation/useCompensation.d.ts +68 -0
- package/dist/components/Employee/Compensation/useCompensation.js +73 -0
- package/dist/components/Employee/Compensation/useCompensation.js.map +1 -0
- package/dist/components/Employee/Deductions/Actions.d.ts +1 -0
- package/dist/components/Employee/Deductions/Actions.js +25 -0
- package/dist/components/Employee/Deductions/Actions.js.map +1 -0
- package/dist/components/Employee/Deductions/DeductionForm.d.ts +1 -0
- package/dist/components/Employee/Deductions/DeductionForm.js +68 -0
- package/dist/components/Employee/Deductions/DeductionForm.js.map +1 -0
- package/dist/components/Employee/Deductions/Deductions.d.ts +13 -0
- package/dist/components/Employee/Deductions/Deductions.js +155 -0
- package/dist/components/Employee/Deductions/Deductions.js.map +1 -0
- package/dist/components/Employee/Deductions/DeductionsList.d.ts +2 -0
- package/dist/components/Employee/Deductions/DeductionsList.js +58 -0
- package/dist/components/Employee/Deductions/DeductionsList.js.map +1 -0
- package/dist/components/Employee/Deductions/Head.d.ts +1 -0
- package/dist/components/Employee/Deductions/Head.js +13 -0
- package/dist/components/Employee/Deductions/Head.js.map +1 -0
- package/dist/components/Employee/Deductions/IncludeDeductionsForm.d.ts +1 -0
- package/dist/components/Employee/Deductions/IncludeDeductionsForm.js +24 -0
- package/dist/components/Employee/Deductions/IncludeDeductionsForm.js.map +1 -0
- package/dist/components/Employee/Deductions/index.d.ts +1 -0
- package/dist/components/Employee/Deductions/useDeductions.d.ts +29 -0
- package/dist/components/Employee/Deductions/useDeductions.js +48 -0
- package/dist/components/Employee/Deductions/useDeductions.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +13 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.d.ts +11 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +46 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/Head.d.ts +2 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/Head.js +11 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/Head.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/List.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +37 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.d.ts +11 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +17 -0
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/DocumentSignerFlow.d.ts +5 -0
- package/dist/components/Employee/DocumentSigner/DocumentSignerFlow.js +21 -0
- package/dist/components/Employee/DocumentSigner/DocumentSignerFlow.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js +20 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js +20 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Head.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js +35 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js +20 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.d.ts +14 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +73 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.d.ts +9 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +17 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.d.ts +16 -0
- package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js +25 -0
- package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/index.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/stateMachine.d.ts +5 -0
- package/dist/components/Employee/DocumentSigner/stateMachine.js +48 -0
- package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -0
- package/dist/components/Employee/EmployeeList/Actions.d.ts +1 -0
- package/dist/components/Employee/EmployeeList/Actions.js +13 -0
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -0
- package/dist/components/Employee/EmployeeList/EmployeeList.d.ts +15 -0
- package/dist/components/Employee/EmployeeList/EmployeeList.js +107 -0
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -0
- package/dist/components/Employee/EmployeeList/Head.d.ts +1 -0
- package/dist/components/Employee/EmployeeList/Head.js +12 -0
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -0
- package/dist/components/Employee/EmployeeList/List.d.ts +2 -0
- package/dist/components/Employee/EmployeeList/List.js +113 -0
- package/dist/components/Employee/EmployeeList/List.js.map +1 -0
- package/dist/components/Employee/EmployeeList/List.module.scss.js +8 -0
- package/dist/components/Employee/EmployeeList/List.module.scss.js.map +1 -0
- package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +19 -0
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +17 -0
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -0
- package/dist/components/Employee/Landing/Landing.d.ts +7 -0
- package/dist/components/Employee/Landing/Landing.js +53 -0
- package/dist/components/Employee/Landing/Landing.js.map +1 -0
- package/dist/components/Employee/Landing/Landing.module.scss.js +8 -0
- package/dist/components/Employee/Landing/Landing.module.scss.js.map +1 -0
- package/dist/components/Employee/Landing/index.d.ts +1 -0
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.d.ts +8 -0
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +83 -0
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -0
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js +16 -0
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js.map +1 -0
- package/dist/components/Employee/OnboardingSummary/index.d.ts +1 -0
- package/dist/components/Employee/PaymentMethod/Actions.d.ts +1 -0
- package/dist/components/Employee/PaymentMethod/Actions.js +18 -0
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/BankAccount.d.ts +10 -0
- package/dist/components/Employee/PaymentMethod/BankAccount.js +13 -0
- package/dist/components/Employee/PaymentMethod/BankAccount.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.d.ts +1 -0
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +56 -0
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/BankAccountsList.d.ts +1 -0
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +47 -0
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/Constants.d.ts +8 -0
- package/dist/components/Employee/PaymentMethod/Constants.js +6 -0
- package/dist/components/Employee/PaymentMethod/Constants.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/Head.d.ts +1 -0
- package/dist/components/Employee/PaymentMethod/Head.js +13 -0
- package/dist/components/Employee/PaymentMethod/Head.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/PaymentMethod.d.ts +8 -0
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js +174 -0
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.d.ts +7 -0
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +37 -0
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/Split.d.ts +1 -0
- package/dist/components/Employee/PaymentMethod/Split.js +161 -0
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -0
- package/dist/components/Employee/PaymentMethod/index.d.ts +1 -0
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +53 -0
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +63 -0
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -0
- package/dist/components/Employee/Profile/Actions.d.ts +1 -0
- package/dist/components/Employee/Profile/Actions.js +13 -0
- package/dist/components/Employee/Profile/Actions.js.map +1 -0
- package/dist/components/Employee/Profile/AdminPersonalDetails.d.ts +32 -0
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +58 -0
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -0
- package/dist/components/Employee/Profile/Head.d.ts +1 -0
- package/dist/components/Employee/Profile/Head.js +14 -0
- package/dist/components/Employee/Profile/Head.js.map +1 -0
- package/dist/components/Employee/Profile/HomeAddress.d.ts +14 -0
- package/dist/components/Employee/Profile/HomeAddress.js +105 -0
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -0
- package/dist/components/Employee/Profile/PersonalDetailsInputs.d.ts +49 -0
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +153 -0
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -0
- package/dist/components/Employee/Profile/Profile.d.ts +36 -0
- package/dist/components/Employee/Profile/Profile.js +265 -0
- package/dist/components/Employee/Profile/Profile.js.map +1 -0
- package/dist/components/Employee/Profile/SelfPersonalDetails.d.ts +16 -0
- package/dist/components/Employee/Profile/SelfPersonalDetails.js +29 -0
- package/dist/components/Employee/Profile/SelfPersonalDetails.js.map +1 -0
- package/dist/components/Employee/Profile/WorkAddress.d.ts +1 -0
- package/dist/components/Employee/Profile/WorkAddress.js +21 -0
- package/dist/components/Employee/Profile/WorkAddress.js.map +1 -0
- package/dist/components/Employee/Profile/WorkAddress.module.scss.js +8 -0
- package/dist/components/Employee/Profile/WorkAddress.module.scss.js.map +1 -0
- package/dist/components/Employee/Profile/getEmployeeAddressForProfile.d.ts +2 -0
- package/dist/components/Employee/Profile/getEmployeeAddressForProfile.js +8 -0
- package/dist/components/Employee/Profile/getEmployeeAddressForProfile.js.map +1 -0
- package/dist/components/Employee/Profile/getEmployeeAddressForProfile.test.d.ts +1 -0
- package/dist/components/Employee/Profile/index.d.ts +1 -0
- package/dist/components/Employee/Profile/useProfile.d.ts +15 -0
- package/dist/components/Employee/Profile/useProfile.js +17 -0
- package/dist/components/Employee/Profile/useProfile.js.map +1 -0
- package/dist/components/Employee/Taxes/Actions.d.ts +1 -0
- package/dist/components/Employee/Taxes/Actions.js +13 -0
- package/dist/components/Employee/Taxes/Actions.js.map +1 -0
- package/dist/components/Employee/Taxes/FederalForm.d.ts +13 -0
- package/dist/components/Employee/Taxes/FederalForm.js +106 -0
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -0
- package/dist/components/Employee/Taxes/FederalHead.d.ts +1 -0
- package/dist/components/Employee/Taxes/FederalHead.js +24 -0
- package/dist/components/Employee/Taxes/FederalHead.js.map +1 -0
- package/dist/components/Employee/Taxes/StateForm.d.ts +6 -0
- package/dist/components/Employee/Taxes/StateForm.js +32 -0
- package/dist/components/Employee/Taxes/StateForm.js.map +1 -0
- package/dist/components/Employee/Taxes/Taxes.d.ts +14 -0
- package/dist/components/Employee/Taxes/Taxes.js +127 -0
- package/dist/components/Employee/Taxes/Taxes.js.map +1 -0
- package/dist/components/Employee/Taxes/index.d.ts +1 -0
- package/dist/components/Employee/Taxes/useTaxes.d.ts +8 -0
- package/dist/components/Employee/Taxes/useTaxes.js +17 -0
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -0
- package/dist/components/Employee/index.d.ts +9 -0
- package/dist/components/Employee/index.js +21 -0
- package/dist/components/Employee/index.js.map +1 -0
- package/dist/components/Flow/EmployeeOnboardingFlow.d.ts +27 -0
- package/dist/components/Flow/EmployeeOnboardingFlow.js +29 -0
- package/dist/components/Flow/EmployeeOnboardingFlow.js.map +1 -0
- package/dist/components/Flow/EmployeeSelfOnboardingFlow/EmployeeSelfOnboardingComponents.d.ts +5 -0
- package/dist/components/Flow/EmployeeSelfOnboardingFlow/EmployeeSelfOnboardingComponents.js +58 -0
- package/dist/components/Flow/EmployeeSelfOnboardingFlow/EmployeeSelfOnboardingComponents.js.map +1 -0
- package/dist/components/Flow/EmployeeSelfOnboardingFlow/EmployeeSelfOnboardingFlow.d.ts +13 -0
- package/dist/components/Flow/EmployeeSelfOnboardingFlow/EmployeeSelfOnboardingFlow.js +26 -0
- package/dist/components/Flow/EmployeeSelfOnboardingFlow/EmployeeSelfOnboardingFlow.js.map +1 -0
- package/dist/components/Flow/Flow.d.ts +10 -0
- package/dist/components/Flow/Flow.js +37 -0
- package/dist/components/Flow/Flow.js.map +1 -0
- package/dist/components/Flow/StateMachines/employeeOnboarding.d.ts +10 -0
- package/dist/components/Flow/StateMachines/employeeOnboarding.js +136 -0
- package/dist/components/Flow/StateMachines/employeeOnboarding.js.map +1 -0
- package/dist/components/Flow/StateMachines/employeeSelfOnboarding.d.ts +7 -0
- package/dist/components/Flow/StateMachines/employeeSelfOnboarding.js +73 -0
- package/dist/components/Flow/StateMachines/employeeSelfOnboarding.js.map +1 -0
- package/dist/components/Flow/StateMachines/index.d.ts +2 -0
- package/dist/components/Flow/index.d.ts +2 -0
- package/dist/components/Flow/index.js +7 -0
- package/dist/components/Flow/index.js.map +1 -0
- package/dist/components/Flow/useFlow.d.ts +12 -0
- package/dist/components/Flow/useFlow.js +13 -0
- package/dist/components/Flow/useFlow.js.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/contexts/ComponentAdapter/ComponentsProvider.d.ts +8 -0
- package/dist/contexts/ComponentAdapter/ComponentsProvider.js +11 -0
- package/dist/contexts/ComponentAdapter/ComponentsProvider.js.map +1 -0
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +55 -0
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -0
- package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +18 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +53 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js +12 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -0
- package/dist/contexts/GustoApiProvider/index.d.ts +2 -0
- package/dist/contexts/GustoProvider/GustoProvider.d.ts +11 -0
- package/dist/contexts/GustoProvider/GustoProvider.js +16 -0
- package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -0
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +32 -0
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +39 -0
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -0
- package/dist/contexts/GustoProvider/SDKI18next.d.ts +4 -0
- package/dist/contexts/GustoProvider/SDKI18next.js +17 -0
- package/dist/contexts/GustoProvider/SDKI18next.js.map +1 -0
- package/dist/contexts/GustoProvider/index.d.ts +3 -0
- package/dist/contexts/LocaleProvider/LocaleProvider.d.ts +5 -0
- package/dist/contexts/LocaleProvider/LocaleProvider.js +13 -0
- package/dist/contexts/LocaleProvider/LocaleProvider.js.map +1 -0
- package/dist/contexts/LocaleProvider/index.d.ts +2 -0
- package/dist/contexts/LocaleProvider/useLocale.d.ts +7 -0
- package/dist/contexts/LocaleProvider/useLocale.js +22 -0
- package/dist/contexts/LocaleProvider/useLocale.js.map +1 -0
- package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +8 -0
- package/dist/contexts/ThemeProvider/ThemeProvider.js +37 -0
- package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -0
- package/dist/contexts/ThemeProvider/createTheme.d.ts +22 -0
- package/dist/contexts/ThemeProvider/createTheme.js +271 -0
- package/dist/contexts/ThemeProvider/createTheme.js.map +1 -0
- package/dist/contexts/ThemeProvider/createTheme.test.d.ts +1 -0
- package/dist/contexts/ThemeProvider/customRender.d.ts +4 -0
- package/dist/contexts/ThemeProvider/index.d.ts +3 -0
- package/dist/contexts/ThemeProvider/test-utils.d.ts +4 -0
- package/dist/contexts/ThemeProvider/useTheme.d.ts +5 -0
- package/dist/contexts/ThemeProvider/useTheme.js +7 -0
- package/dist/contexts/ThemeProvider/useTheme.js.map +1 -0
- package/dist/contexts/index.d.ts +4 -0
- package/dist/helpers/LRUCache.d.ts +7 -0
- package/dist/helpers/LRUCache.js +22 -0
- package/dist/helpers/LRUCache.js.map +1 -0
- package/dist/helpers/dateFormatting.d.ts +2 -0
- package/dist/helpers/dateFormatting.js +10 -0
- package/dist/helpers/dateFormatting.js.map +1 -0
- package/dist/helpers/ensureRequired.d.ts +1 -0
- package/dist/helpers/ensureRequired.js +10 -0
- package/dist/helpers/ensureRequired.js.map +1 -0
- package/dist/helpers/ensureRequired.test.d.ts +1 -0
- package/dist/helpers/federalEin.d.ts +8 -0
- package/dist/helpers/federalEin.js +11 -0
- package/dist/helpers/federalEin.js.map +1 -0
- package/dist/helpers/federalEin.test.d.ts +1 -0
- package/dist/helpers/formattedStrings.d.ts +19 -0
- package/dist/helpers/formattedStrings.js +22 -0
- package/dist/helpers/formattedStrings.js.map +1 -0
- package/dist/helpers/formattedStrings.test.d.ts +1 -0
- package/dist/helpers/getDataProps.d.ts +2 -0
- package/dist/helpers/getDataProps.js +17 -0
- package/dist/helpers/getDataProps.js.map +1 -0
- package/dist/helpers/getDataProps.test.d.ts +1 -0
- package/dist/helpers/mask.d.ts +23 -0
- package/dist/helpers/mask.js +37 -0
- package/dist/helpers/mask.js.map +1 -0
- package/dist/helpers/mask.test.d.ts +1 -0
- package/dist/helpers/payRateCalculator.d.ts +2 -0
- package/dist/helpers/payRateCalculator.js +20 -0
- package/dist/helpers/payRateCalculator.js.map +1 -0
- package/dist/helpers/rem.d.ts +7 -0
- package/dist/helpers/rem.js +17 -0
- package/dist/helpers/rem.js.map +1 -0
- package/dist/helpers/responsive.d.ts +15 -0
- package/dist/helpers/responsive.js +43 -0
- package/dist/helpers/responsive.js.map +1 -0
- package/dist/helpers/responsive.test.d.ts +1 -0
- package/dist/helpers/ssn.d.ts +3 -0
- package/dist/helpers/ssn.js +11 -0
- package/dist/helpers/ssn.js.map +1 -0
- package/dist/helpers/validations.d.ts +7 -0
- package/dist/helpers/validations.js +21 -0
- package/dist/helpers/validations.js.map +1 -0
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.d.ts +12 -0
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.js +30 -0
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.js.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts +2 -0
- package/dist/hooks/useDebounce/useDebounce.js +19 -0
- package/dist/hooks/useDebounce/useDebounce.js.map +1 -0
- package/dist/hooks/useForkRef/index.d.ts +1 -0
- package/dist/hooks/useForkRef/useForkRef.d.ts +7 -0
- package/dist/hooks/useForkRef/useForkRef.js +12 -0
- package/dist/hooks/useForkRef/useForkRef.js.map +1 -0
- package/dist/i18n/I18n.d.ts +7 -0
- package/dist/i18n/I18n.js +35 -0
- package/dist/i18n/I18n.js.map +1 -0
- package/dist/{Company.AddBank--N4kK8CC.js → i18n/en/Company.AddBank.json.js} +1 -1
- package/dist/i18n/en/Company.AddBank.json.js.map +1 -0
- package/dist/{Company.Addresses-BLDgBmOD.js → i18n/en/Company.Addresses.json.js} +1 -1
- package/dist/i18n/en/Company.Addresses.json.js.map +1 -0
- package/dist/{Company.AssignSignatory-CUCZtm6s.js → i18n/en/Company.AssignSignatory.json.js} +1 -1
- package/dist/i18n/en/Company.AssignSignatory.json.js.map +1 -0
- package/dist/i18n/en/Company.BankAccount.json.js +63 -0
- package/dist/i18n/en/Company.BankAccount.json.js.map +1 -0
- package/dist/{Company.DocumentList-D-h6c4bI.js → i18n/en/Company.DocumentList.json.js} +1 -1
- package/dist/i18n/en/Company.DocumentList.json.js.map +1 -0
- package/dist/{Company.FederalTaxes-BuTN_7W0.js → i18n/en/Company.FederalTaxes.json.js} +1 -1
- package/dist/i18n/en/Company.FederalTaxes.json.js.map +1 -0
- package/dist/{Company.Industry-DLXwZPaw.js → i18n/en/Company.Industry.json.js} +1 -1
- package/dist/i18n/en/Company.Industry.json.js.map +1 -0
- package/dist/{Company.Locations-Cp9h8ZGu.js → i18n/en/Company.Locations.json.js} +1 -1
- package/dist/i18n/en/Company.Locations.json.js.map +1 -0
- package/dist/i18n/en/Company.OnboardingOverview.json.js +50 -0
- package/dist/i18n/en/Company.OnboardingOverview.json.js.map +1 -0
- package/dist/{Company.PaySchedule-CxoupNmN.js → i18n/en/Company.PaySchedule.json.js} +32 -30
- package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -0
- package/dist/i18n/en/Company.SignatureForm.json.js +28 -0
- package/dist/i18n/en/Company.SignatureForm.json.js.map +1 -0
- package/dist/i18n/en/Company.StateTaxes.json.js +33 -0
- package/dist/i18n/en/Company.StateTaxes.json.js.map +1 -0
- package/dist/{Employee.BankAccount-DFNmm0eF.js → i18n/en/Employee.BankAccount.json.js} +1 -1
- package/dist/i18n/en/Employee.BankAccount.json.js.map +1 -0
- package/dist/i18n/en/Employee.Compensation.json.js +98 -0
- package/dist/i18n/en/Employee.Compensation.json.js.map +1 -0
- package/dist/{Employee.Deductions-yskR0evJ.js → i18n/en/Employee.Deductions.json.js} +1 -1
- package/dist/i18n/en/Employee.Deductions.json.js.map +1 -0
- package/dist/{Employee.DocumentSigner-DgbuxBnJ.js → i18n/en/Employee.DocumentSigner.json.js} +17 -19
- package/dist/i18n/en/Employee.DocumentSigner.json.js.map +1 -0
- package/dist/i18n/en/Employee.EmployeeList.json.js +44 -0
- package/dist/i18n/en/Employee.EmployeeList.json.js.map +1 -0
- package/dist/{Employee.HomeAddress-DQ-CWfZA.js → i18n/en/Employee.HomeAddress.json.js} +1 -1
- package/dist/i18n/en/Employee.HomeAddress.json.js.map +1 -0
- package/dist/{Employee.Landing-Hpn09zPP.js → i18n/en/Employee.Landing.json.js} +1 -1
- package/dist/i18n/en/Employee.Landing.json.js.map +1 -0
- package/dist/{Employee.OnboardingSummary-CmxhPw5V.js → i18n/en/Employee.OnboardingSummary.json.js} +21 -23
- package/dist/i18n/en/Employee.OnboardingSummary.json.js.map +1 -0
- package/dist/{Employee.PaySchedules-C3chTJFz.js → i18n/en/Employee.PaySchedules.json.js} +1 -1
- package/dist/i18n/en/Employee.PaySchedules.json.js.map +1 -0
- package/dist/{Employee.PaymentMethod-B1tieS6Y.js → i18n/en/Employee.PaymentMethod.json.js} +1 -1
- package/dist/i18n/en/Employee.PaymentMethod.json.js.map +1 -0
- package/dist/{Employee.Profile-u_Zt7QkR.js → i18n/en/Employee.Profile.json.js} +1 -1
- package/dist/i18n/en/Employee.Profile.json.js.map +1 -0
- package/dist/{Employee.SplitPaycheck-DuzIuN4Y.js → i18n/en/Employee.SplitPaycheck.json.js} +1 -1
- package/dist/i18n/en/Employee.SplitPaycheck.json.js.map +1 -0
- package/dist/{Employee.StateTaxes-5hNQeRZm.js → i18n/en/Employee.StateTaxes.json.js} +1 -1
- package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -0
- package/dist/i18n/en/Employee.Taxes.json.js +55 -0
- package/dist/i18n/en/Employee.Taxes.json.js.map +1 -0
- package/dist/{Payroll.PayrollHistoryList-vkBomN9P.js → i18n/en/Payroll.PayrollHistoryList.json.js} +1 -1
- package/dist/i18n/en/Payroll.PayrollHistoryList.json.js.map +1 -0
- package/dist/{Payroll.PayrollSchedule-DR1oc4YN.js → i18n/en/Payroll.PayrollSchedule.json.js} +1 -1
- package/dist/i18n/en/Payroll.PayrollSchedule.json.js.map +1 -0
- package/dist/i18n/en/common.json.d.ts +153 -0
- package/dist/i18n/en/common.json.js +168 -0
- package/dist/i18n/en/common.json.js.map +1 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/index.d.ts +5 -1516
- package/dist/index.js +17 -49644
- package/dist/index.js.map +1 -1
- package/dist/models/NAICSCodes.d.ts +4 -0
- package/dist/models/NAICSCodes.js +5 -0
- package/dist/models/NAICSCodes.js.map +1 -0
- package/dist/models/NAICSValues.d.ts +2 -0
- package/dist/{NAICSValues-DHi955wK.js → models/NAICSValues.js} +1 -1
- package/dist/models/NAICSValues.js.map +1 -0
- package/dist/models/PayPeriod.d.ts +18 -0
- package/dist/models/Payroll.d.ts +40 -0
- package/dist/models/PayrollTotals.d.ts +24 -0
- package/dist/models/WA_RISK_CODES.d.ts +2866 -0
- package/dist/models/WA_RISK_CODES.js +3826 -0
- package/dist/models/WA_RISK_CODES.js.map +1 -0
- package/dist/shared/constants.d.ts +234 -0
- package/dist/shared/constants.js +208 -0
- package/dist/shared/constants.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/test-utils/renderWithProviders.d.ts +9 -0
- package/dist/types/GTheme.d.ts +255 -0
- package/dist/types/Helpers.d.ts +27 -0
- package/dist/types/i18next.d.ts +918 -0
- package/dist/types/sass.d.ts +4 -0
- package/dist/types/svg.d.ts +14 -0
- package/package.json +35 -26
- package/dist/Company.AddBank--N4kK8CC.js.map +0 -1
- package/dist/Company.Addresses-BLDgBmOD.js.map +0 -1
- package/dist/Company.AssignSignatory-CUCZtm6s.js.map +0 -1
- package/dist/Company.DocumentList-D-h6c4bI.js.map +0 -1
- package/dist/Company.FederalTaxes-BuTN_7W0.js.map +0 -1
- package/dist/Company.Industry-DLXwZPaw.js.map +0 -1
- package/dist/Company.Locations-Cp9h8ZGu.js.map +0 -1
- package/dist/Company.PaySchedule-CxoupNmN.js.map +0 -1
- package/dist/Company.SignatureForm-DC4MsbLt.js +0 -30
- package/dist/Company.SignatureForm-DC4MsbLt.js.map +0 -1
- package/dist/Employee.BankAccount-DFNmm0eF.js.map +0 -1
- package/dist/Employee.Compensation-TuS8Bmv_.js +0 -83
- package/dist/Employee.Compensation-TuS8Bmv_.js.map +0 -1
- package/dist/Employee.Deductions-yskR0evJ.js.map +0 -1
- package/dist/Employee.DocumentSigner-DgbuxBnJ.js.map +0 -1
- package/dist/Employee.EmployeeList-BGB23n1N.js +0 -40
- package/dist/Employee.EmployeeList-BGB23n1N.js.map +0 -1
- package/dist/Employee.HomeAddress-DQ-CWfZA.js.map +0 -1
- package/dist/Employee.Landing-Hpn09zPP.js.map +0 -1
- package/dist/Employee.OnboardingSummary-CmxhPw5V.js.map +0 -1
- package/dist/Employee.PaySchedules-C3chTJFz.js.map +0 -1
- package/dist/Employee.PaymentMethod-B1tieS6Y.js.map +0 -1
- package/dist/Employee.Profile-u_Zt7QkR.js.map +0 -1
- package/dist/Employee.SplitPaycheck-DuzIuN4Y.js.map +0 -1
- package/dist/Employee.StateTaxes-5hNQeRZm.js.map +0 -1
- package/dist/Employee.Taxes-DQX-wk0E.js +0 -53
- package/dist/Employee.Taxes-DQX-wk0E.js.map +0 -1
- package/dist/NAICSValues-DHi955wK.js.map +0 -1
- package/dist/Payroll.PayrollHistoryList-vkBomN9P.js.map +0 -1
- package/dist/Payroll.PayrollSchedule-DR1oc4YN.js.map +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Job } from '@gusto/embedded-api/models/components/job';
|
|
2
|
+
import { MinimumWage } from '@gusto/embedded-api/models/components/minimumwage';
|
|
3
|
+
import * as v from 'valibot';
|
|
4
|
+
export declare const CompensationSchema: v.IntersectSchema<[v.ObjectSchema<{
|
|
5
|
+
readonly jobTitle: v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
|
|
6
|
+
}, undefined>, v.VariantSchema<"adjustForMinimumWage", [v.ObjectSchema<{
|
|
7
|
+
readonly adjustForMinimumWage: v.LiteralSchema<true, undefined>;
|
|
8
|
+
readonly minimumWageId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
|
|
9
|
+
}, undefined>, v.ObjectSchema<{
|
|
10
|
+
readonly adjustForMinimumWage: v.LiteralSchema<false, undefined>;
|
|
11
|
+
}, undefined>], undefined>, v.VariantSchema<"stateWcCovered", [v.ObjectSchema<{
|
|
12
|
+
readonly stateWcCovered: v.LiteralSchema<true, undefined>;
|
|
13
|
+
readonly stateWcClassCode: v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
|
|
14
|
+
}, undefined>, v.ObjectSchema<{
|
|
15
|
+
readonly stateWcCovered: v.LiteralSchema<false, undefined>;
|
|
16
|
+
}, undefined>, v.ObjectSchema<{
|
|
17
|
+
readonly stateWcCovered: v.UndefinedSchema<undefined>;
|
|
18
|
+
}, undefined>], undefined>, v.VariantSchema<"twoPercentShareholder", [v.ObjectSchema<{
|
|
19
|
+
readonly twoPercentShareholder: v.BooleanSchema<undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly twoPercentShareholder: v.UndefinedSchema<undefined>;
|
|
22
|
+
}, undefined>], undefined>, v.VariantSchema<"flsaStatus", [v.SchemaWithPipe<[v.ObjectSchema<{
|
|
23
|
+
readonly flsaStatus: v.UnionSchema<[v.LiteralSchema<"Exempt", undefined>, v.LiteralSchema<"Salaried Nonexempt", undefined>, v.LiteralSchema<"Nonexempt", undefined>], undefined>;
|
|
24
|
+
readonly paymentUnit: v.UnionSchema<[v.LiteralSchema<"Hour", undefined>, v.LiteralSchema<"Week", undefined>, v.LiteralSchema<"Month", undefined>, v.LiteralSchema<"Year", undefined>], undefined>;
|
|
25
|
+
readonly rate: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.TransformAction<any, string>]>;
|
|
26
|
+
}, undefined>, v.BaseValidation<{
|
|
27
|
+
paymentUnit: "Hour" | "Week" | "Month" | "Year";
|
|
28
|
+
rate: string;
|
|
29
|
+
flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
30
|
+
}, {
|
|
31
|
+
paymentUnit: "Hour" | "Week" | "Month" | "Year";
|
|
32
|
+
rate: string;
|
|
33
|
+
flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
34
|
+
}, v.CheckIssue<{
|
|
35
|
+
paymentUnit: "Hour" | "Week" | "Month" | "Year";
|
|
36
|
+
rate: string;
|
|
37
|
+
flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
38
|
+
}>>]>, v.ObjectSchema<{
|
|
39
|
+
readonly flsaStatus: v.LiteralSchema<"Owner", undefined>;
|
|
40
|
+
readonly paymentUnit: v.LiteralSchema<"Paycheck", undefined>;
|
|
41
|
+
readonly rate: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.TransformAction<any, string>]>;
|
|
42
|
+
}, undefined>, v.ObjectSchema<{
|
|
43
|
+
readonly flsaStatus: v.UnionSchema<[v.LiteralSchema<"Commission Only Exempt", undefined>, v.LiteralSchema<"Commission Only Nonexempt", undefined>], undefined>;
|
|
44
|
+
readonly paymentUnit: v.LiteralSchema<"Year", undefined>;
|
|
45
|
+
readonly rate: v.SchemaWithPipe<[v.LiteralSchema<0, undefined>, v.TransformAction<any, string>]>;
|
|
46
|
+
}, undefined>], undefined>], undefined>;
|
|
47
|
+
export type CompensationInputs = v.InferInput<typeof CompensationSchema>;
|
|
48
|
+
export type CompensationOutputs = v.InferOutput<typeof CompensationSchema>;
|
|
49
|
+
export type MODE = 'LIST' | 'ADD_ADDITIONAL_JOB' | 'ADD_INITIAL_JOB' | 'EDIT_ADDITIONAL_JOB' | 'EDIT_INITIAL_JOB' | 'PROCEED';
|
|
50
|
+
type CompensationContextType = {
|
|
51
|
+
employeeJobs: Job[];
|
|
52
|
+
currentJob?: Job | null;
|
|
53
|
+
primaryFlsaStatus?: string;
|
|
54
|
+
isPending: boolean;
|
|
55
|
+
mode: MODE;
|
|
56
|
+
showFlsaChangeWarning: boolean;
|
|
57
|
+
minimumWages: MinimumWage[];
|
|
58
|
+
state?: string;
|
|
59
|
+
showTwoPercentStakeholder?: boolean;
|
|
60
|
+
submitWithEffect: (newMode: MODE) => void;
|
|
61
|
+
handleAdd: () => void;
|
|
62
|
+
handleEdit: (uuid: string) => void;
|
|
63
|
+
handleDelete: (uuid: string) => void;
|
|
64
|
+
handleFlsaChange: (status: string | number) => void;
|
|
65
|
+
handleCancelAddJob: () => void;
|
|
66
|
+
};
|
|
67
|
+
declare const useCompensation: () => CompensationContextType, CompensationProvider: import('react').Provider<CompensationContextType | null>;
|
|
68
|
+
export { useCompensation, CompensationProvider };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as e from "valibot";
|
|
2
|
+
import { createCompoundContext as r } from "../../Base/createCompoundContext.js";
|
|
3
|
+
import { FlsaStatus as t, FLSA_OVERTIME_SALARY_LIMIT as o } from "../../../shared/constants.js";
|
|
4
|
+
import { yearlyRate as n } from "../../../helpers/payRateCalculator.js";
|
|
5
|
+
const m = e.intersect([
|
|
6
|
+
e.object({
|
|
7
|
+
jobTitle: e.pipe(e.string(), e.nonEmpty())
|
|
8
|
+
}),
|
|
9
|
+
e.variant("adjustForMinimumWage", [
|
|
10
|
+
e.object({
|
|
11
|
+
adjustForMinimumWage: e.literal(!0),
|
|
12
|
+
minimumWageId: e.pipe(e.string(), e.nonEmpty())
|
|
13
|
+
}),
|
|
14
|
+
e.object({ adjustForMinimumWage: e.literal(!1) })
|
|
15
|
+
]),
|
|
16
|
+
e.variant("stateWcCovered", [
|
|
17
|
+
e.object({
|
|
18
|
+
stateWcCovered: e.literal(!0),
|
|
19
|
+
stateWcClassCode: e.pipe(e.string(), e.nonEmpty())
|
|
20
|
+
}),
|
|
21
|
+
e.object({ stateWcCovered: e.literal(!1) }),
|
|
22
|
+
e.object({ stateWcCovered: e.undefined() })
|
|
23
|
+
]),
|
|
24
|
+
e.variant("twoPercentShareholder", [
|
|
25
|
+
e.object({ twoPercentShareholder: e.boolean() }),
|
|
26
|
+
e.object({ twoPercentShareholder: e.undefined() })
|
|
27
|
+
]),
|
|
28
|
+
e.variant("flsaStatus", [
|
|
29
|
+
e.pipe(
|
|
30
|
+
e.object({
|
|
31
|
+
flsaStatus: e.union([
|
|
32
|
+
e.literal(t.EXEMPT),
|
|
33
|
+
e.literal(t.SALARIED_NONEXEMPT),
|
|
34
|
+
e.literal(t.NONEXEMPT)
|
|
35
|
+
]),
|
|
36
|
+
paymentUnit: e.union([
|
|
37
|
+
e.literal("Hour"),
|
|
38
|
+
e.literal("Week"),
|
|
39
|
+
e.literal("Month"),
|
|
40
|
+
e.literal("Year")
|
|
41
|
+
]),
|
|
42
|
+
rate: e.pipe(e.number(), e.minValue(1), e.transform(String))
|
|
43
|
+
}),
|
|
44
|
+
//Exempt salary threshold validation:
|
|
45
|
+
e.forward(
|
|
46
|
+
e.check((a) => (
|
|
47
|
+
//TODO: this should not be validated for non-primary jobs for NONEXEMPT
|
|
48
|
+
a.flsaStatus !== t.EXEMPT || n(Number(a.rate), a.paymentUnit) >= o
|
|
49
|
+
)),
|
|
50
|
+
["flsaStatus"]
|
|
51
|
+
)
|
|
52
|
+
),
|
|
53
|
+
e.object({
|
|
54
|
+
flsaStatus: e.literal(t.OWNER),
|
|
55
|
+
paymentUnit: e.literal("Paycheck"),
|
|
56
|
+
rate: e.pipe(e.number(), e.minValue(1), e.transform(String))
|
|
57
|
+
}),
|
|
58
|
+
e.object({
|
|
59
|
+
flsaStatus: e.union([
|
|
60
|
+
e.literal(t.COMMISSION_ONLY_EXEMPT),
|
|
61
|
+
e.literal(t.COMISSION_ONLY_NONEXEMPT)
|
|
62
|
+
]),
|
|
63
|
+
paymentUnit: e.literal("Year"),
|
|
64
|
+
rate: e.pipe(e.literal(0), e.transform(String))
|
|
65
|
+
})
|
|
66
|
+
])
|
|
67
|
+
]), [p, c] = r("CompensationContext");
|
|
68
|
+
export {
|
|
69
|
+
c as CompensationProvider,
|
|
70
|
+
m as CompensationSchema,
|
|
71
|
+
p as useCompensation
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=useCompensation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompensation.js","sources":["../../../../src/components/Employee/Compensation/useCompensation.ts"],"sourcesContent":["import type { Job } from '@gusto/embedded-api/models/components/job'\nimport type { MinimumWage } from '@gusto/embedded-api/models/components/minimumwage'\nimport * as v from 'valibot'\nimport { createCompoundContext } from '@/components/Base/createCompoundContext'\nimport { FLSA_OVERTIME_SALARY_LIMIT, FlsaStatus } from '@/shared/constants'\nimport { yearlyRate } from '@/helpers/payRateCalculator'\n\nexport const CompensationSchema = v.intersect([\n v.object({\n jobTitle: v.pipe(v.string(), v.nonEmpty()),\n }),\n v.variant('adjustForMinimumWage', [\n v.object({\n adjustForMinimumWage: v.literal(true),\n minimumWageId: v.pipe(v.string(), v.nonEmpty()),\n }),\n v.object({ adjustForMinimumWage: v.literal(false) }),\n ]),\n v.variant('stateWcCovered', [\n v.object({\n stateWcCovered: v.literal(true),\n stateWcClassCode: v.pipe(v.string(), v.nonEmpty()),\n }),\n v.object({ stateWcCovered: v.literal(false) }),\n v.object({ stateWcCovered: v.undefined() }),\n ]),\n v.variant('twoPercentShareholder', [\n v.object({ twoPercentShareholder: v.boolean() }),\n v.object({ twoPercentShareholder: v.undefined() }),\n ]),\n v.variant('flsaStatus', [\n v.pipe(\n v.object({\n flsaStatus: v.union([\n v.literal(FlsaStatus.EXEMPT),\n v.literal(FlsaStatus.SALARIED_NONEXEMPT),\n v.literal(FlsaStatus.NONEXEMPT),\n ]),\n paymentUnit: v.union([\n v.literal('Hour'),\n v.literal('Week'),\n v.literal('Month'),\n v.literal('Year'),\n ]),\n rate: v.pipe(v.number(), v.minValue(1), v.transform(String)),\n }),\n //Exempt salary threshold validation:\n v.forward(\n v.check(input => {\n return (\n //TODO: this should not be validated for non-primary jobs for NONEXEMPT\n input.flsaStatus !== FlsaStatus.EXEMPT ||\n yearlyRate(Number(input.rate), input.paymentUnit) >= FLSA_OVERTIME_SALARY_LIMIT\n )\n }),\n ['flsaStatus'],\n ),\n ),\n v.object({\n flsaStatus: v.literal(FlsaStatus.OWNER),\n paymentUnit: v.literal('Paycheck'),\n rate: v.pipe(v.number(), v.minValue(1), v.transform(String)),\n }),\n v.object({\n flsaStatus: v.union([\n v.literal(FlsaStatus.COMMISSION_ONLY_EXEMPT),\n v.literal(FlsaStatus.COMISSION_ONLY_NONEXEMPT),\n ]),\n paymentUnit: v.literal('Year'),\n rate: v.pipe(v.literal(0), v.transform(String)),\n }),\n ]),\n])\nexport type CompensationInputs = v.InferInput<typeof CompensationSchema>\nexport type CompensationOutputs = v.InferOutput<typeof CompensationSchema>\n\nexport type MODE =\n | 'LIST'\n | 'ADD_ADDITIONAL_JOB'\n | 'ADD_INITIAL_JOB'\n | 'EDIT_ADDITIONAL_JOB'\n | 'EDIT_INITIAL_JOB'\n | 'PROCEED'\n\ntype CompensationContextType = {\n employeeJobs: Job[]\n currentJob?: Job | null\n primaryFlsaStatus?: string\n isPending: boolean\n mode: MODE\n showFlsaChangeWarning: boolean\n minimumWages: MinimumWage[]\n state?: string\n showTwoPercentStakeholder?: boolean\n submitWithEffect: (newMode: MODE) => void\n handleAdd: () => void\n handleEdit: (uuid: string) => void\n handleDelete: (uuid: string) => void\n handleFlsaChange: (status: string | number) => void\n handleCancelAddJob: () => void\n}\nconst [useCompensation, CompensationProvider] =\n createCompoundContext<CompensationContextType>('CompensationContext')\nexport { useCompensation, CompensationProvider }\n"],"names":["CompensationSchema","v","FlsaStatus","input","yearlyRate","FLSA_OVERTIME_SALARY_LIMIT","useCompensation","CompensationProvider","createCompoundContext"],"mappings":";;;;AAOa,MAAAA,IAAqBC,EAAE,UAAU;AAAA,EAC5CA,EAAE,OAAO;AAAA,IACP,UAAUA,EAAE,KAAKA,EAAE,OAAU,GAAAA,EAAE,SAAU,CAAA;AAAA,EAAA,CAC1C;AAAA,EACDA,EAAE,QAAQ,wBAAwB;AAAA,IAChCA,EAAE,OAAO;AAAA,MACP,sBAAsBA,EAAE,QAAQ,EAAI;AAAA,MACpC,eAAeA,EAAE,KAAKA,EAAE,OAAU,GAAAA,EAAE,SAAU,CAAA;AAAA,IAAA,CAC/C;AAAA,IACDA,EAAE,OAAO,EAAE,sBAAsBA,EAAE,QAAQ,EAAK,EAAG,CAAA;AAAA,EAAA,CACpD;AAAA,EACDA,EAAE,QAAQ,kBAAkB;AAAA,IAC1BA,EAAE,OAAO;AAAA,MACP,gBAAgBA,EAAE,QAAQ,EAAI;AAAA,MAC9B,kBAAkBA,EAAE,KAAKA,EAAE,OAAU,GAAAA,EAAE,SAAU,CAAA;AAAA,IAAA,CAClD;AAAA,IACDA,EAAE,OAAO,EAAE,gBAAgBA,EAAE,QAAQ,EAAK,GAAG;AAAA,IAC7CA,EAAE,OAAO,EAAE,gBAAgBA,EAAE,UAAA,EAAa,CAAA;AAAA,EAAA,CAC3C;AAAA,EACDA,EAAE,QAAQ,yBAAyB;AAAA,IACjCA,EAAE,OAAO,EAAE,uBAAuBA,EAAE,WAAW;AAAA,IAC/CA,EAAE,OAAO,EAAE,uBAAuBA,EAAE,UAAA,EAAa,CAAA;AAAA,EAAA,CAClD;AAAA,EACDA,EAAE,QAAQ,cAAc;AAAA,IACtBA,EAAE;AAAA,MACAA,EAAE,OAAO;AAAA,QACP,YAAYA,EAAE,MAAM;AAAA,UAClBA,EAAE,QAAQC,EAAW,MAAM;AAAA,UAC3BD,EAAE,QAAQC,EAAW,kBAAkB;AAAA,UACvCD,EAAE,QAAQC,EAAW,SAAS;AAAA,QAAA,CAC/B;AAAA,QACD,aAAaD,EAAE,MAAM;AAAA,UACnBA,EAAE,QAAQ,MAAM;AAAA,UAChBA,EAAE,QAAQ,MAAM;AAAA,UAChBA,EAAE,QAAQ,OAAO;AAAA,UACjBA,EAAE,QAAQ,MAAM;AAAA,QAAA,CACjB;AAAA,QACD,MAAMA,EAAE,KAAKA,EAAE,OAAO,GAAGA,EAAE,SAAS,CAAC,GAAGA,EAAE,UAAU,MAAM,CAAC;AAAA,MAAA,CAC5D;AAAA;AAAA,MAEDA,EAAE;AAAA,QACAA,EAAE,MAAM,CAASE;AAAA;AAAA,UAGbA,EAAM,eAAeD,EAAW,UAChCE,EAAW,OAAOD,EAAM,IAAI,GAAGA,EAAM,WAAW,KAAKE;AAAA,SAExD;AAAA,QACD,CAAC,YAAY;AAAA,MAAA;AAAA,IAEjB;AAAA,IACAJ,EAAE,OAAO;AAAA,MACP,YAAYA,EAAE,QAAQC,EAAW,KAAK;AAAA,MACtC,aAAaD,EAAE,QAAQ,UAAU;AAAA,MACjC,MAAMA,EAAE,KAAKA,EAAE,OAAO,GAAGA,EAAE,SAAS,CAAC,GAAGA,EAAE,UAAU,MAAM,CAAC;AAAA,IAAA,CAC5D;AAAA,IACDA,EAAE,OAAO;AAAA,MACP,YAAYA,EAAE,MAAM;AAAA,QAClBA,EAAE,QAAQC,EAAW,sBAAsB;AAAA,QAC3CD,EAAE,QAAQC,EAAW,wBAAwB;AAAA,MAAA,CAC9C;AAAA,MACD,aAAaD,EAAE,QAAQ,MAAM;AAAA,MAC7B,MAAMA,EAAE,KAAKA,EAAE,QAAQ,CAAC,GAAGA,EAAE,UAAU,MAAM,CAAC;AAAA,IAC/C,CAAA;AAAA,EACF,CAAA;AACH,CAAC,GA6BK,CAACK,GAAiBC,CAAoB,IAC1CC,EAA+C,qBAAqB;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Actions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as d } from "react-i18next";
|
|
3
|
+
import { useDeductions as m } from "./useDeductions.js";
|
|
4
|
+
import { ActionsLayout as u } from "../../Common/ActionsLayout/ActionsLayout.js";
|
|
5
|
+
import { useComponentContext as l } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
6
|
+
const y = () => {
|
|
7
|
+
const { mode: n, handleAdd: i, handleCancel: r, handlePassthrough: s, isPending: c } = m(), { t: o } = d("Employee.Deductions"), t = l();
|
|
8
|
+
return /* @__PURE__ */ a(u, { children: [
|
|
9
|
+
(n === "ADD" || n === "EDIT") && /* @__PURE__ */ e(t.Button, { variant: "secondary", onClick: r, children: o("cancelCta") }),
|
|
10
|
+
n === "LIST" && /* @__PURE__ */ e(t.Button, { variant: "secondary", onClick: i, children: o("addDeductionCta") }),
|
|
11
|
+
/* @__PURE__ */ e(
|
|
12
|
+
t.Button,
|
|
13
|
+
{
|
|
14
|
+
type: n === "LIST" ? "button" : "submit",
|
|
15
|
+
isLoading: c,
|
|
16
|
+
onClick: n === "LIST" ? s : void 0,
|
|
17
|
+
children: o("continueCta")
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
] });
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
y as Actions
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Actions.js","sources":["../../../../src/components/Employee/Deductions/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDeductions } from './useDeductions'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { mode, handleAdd, handleCancel, handlePassthrough, isPending } = useDeductions()\n const { t } = useTranslation('Employee.Deductions')\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {(mode === 'ADD' || mode === 'EDIT') && (\n <Components.Button variant=\"secondary\" onClick={handleCancel}>\n {t('cancelCta')}\n </Components.Button>\n )}\n {mode === 'LIST' && (\n <Components.Button variant=\"secondary\" onClick={handleAdd}>\n {t('addDeductionCta')}\n </Components.Button>\n )}\n <Components.Button\n type={mode === 'LIST' ? 'button' : 'submit'}\n isLoading={isPending}\n onClick={mode === 'LIST' ? handlePassthrough : undefined}\n >\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","mode","handleAdd","handleCancel","handlePassthrough","isPending","useDeductions","t","useTranslation","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,MAAAC,GAAM,WAAAC,GAAW,cAAAC,GAAc,mBAAAC,GAAmB,WAAAC,MAAcC,EAAc,GAChF,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAoB;AAEvC,2BACGC,GACG,EAAA,UAAA;AAAA,KAAAV,MAAS,SAASA,MAAS,WAC3B,gBAAAW,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASN,GAC7C,UAAAI,EAAE,WAAW,GAChB;AAAA,IAEDN,MAAS,UACP,gBAAAW,EAAAH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASP,GAC7C,UAAEK,EAAA,iBAAiB,EACtB,CAAA;AAAA,IAEF,gBAAAK;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAMR,MAAS,SAAS,WAAW;AAAA,QACnC,WAAWI;AAAA,QACX,SAASJ,MAAS,SAASG,IAAoB;AAAA,QAE9C,YAAE,aAAa;AAAA,MAAA;AAAA,IAAA;AAAA,EAClB,GACF;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DeductionForm: () => import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsxs as l, Fragment as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useFormContext as s, useWatch as i } from "react-hook-form";
|
|
3
|
+
import { useTranslation as p } from "react-i18next";
|
|
4
|
+
import { useDeductions as b } from "./useDeductions.js";
|
|
5
|
+
import { useI18n as f } from "../../../i18n/I18n.js";
|
|
6
|
+
import { useComponentContext as D } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
7
|
+
import { TextInputField as g } from "../../Common/Fields/TextInputField/TextInputField.js";
|
|
8
|
+
import { RadioGroupField as a } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
|
|
9
|
+
import { NumberInputField as u } from "../../Common/Fields/NumberInputField/NumberInputField.js";
|
|
10
|
+
import { CheckboxField as T } from "../../Common/Fields/CheckboxField/CheckboxField.js";
|
|
11
|
+
const I = () => {
|
|
12
|
+
const { mode: n } = b(), { control: r } = s();
|
|
13
|
+
f("Employee.Deductions");
|
|
14
|
+
const { t: e } = p("Employee.Deductions"), o = D(), c = i({ control: r, name: "recurring" }), d = i({ control: r, name: "deductAsPercentage" });
|
|
15
|
+
if (!(n !== "ADD" && n !== "EDIT"))
|
|
16
|
+
return /* @__PURE__ */ l(m, { children: [
|
|
17
|
+
/* @__PURE__ */ t(o.Heading, { as: "h2", children: e(n === "EDIT" ? "editDeductionTitle" : "addDeductionTitle") }),
|
|
18
|
+
/* @__PURE__ */ t(o.Text, { children: e("addDeuctionDescription") }),
|
|
19
|
+
/* @__PURE__ */ t(
|
|
20
|
+
g,
|
|
21
|
+
{
|
|
22
|
+
name: "description",
|
|
23
|
+
label: e("descriptionLabel"),
|
|
24
|
+
isRequired: !0,
|
|
25
|
+
errorMessage: e("validations.description")
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ t(
|
|
29
|
+
a,
|
|
30
|
+
{
|
|
31
|
+
name: "recurring",
|
|
32
|
+
label: e("frequencyLabel"),
|
|
33
|
+
options: [
|
|
34
|
+
{ value: "true", label: e("frequencyRecurringOption") },
|
|
35
|
+
{ value: "false", label: e("frequencyOneTimeOption") }
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ t(
|
|
40
|
+
a,
|
|
41
|
+
{
|
|
42
|
+
name: "deductAsPercentage",
|
|
43
|
+
label: e("deductionTypeLabel"),
|
|
44
|
+
options: [
|
|
45
|
+
{ value: "true", label: e("deductionTypePercentageOption") },
|
|
46
|
+
{ value: "false", label: e("deductionTypeFixedAmountOption") }
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ t("div", { className: "deduction-amount-section", children: /* @__PURE__ */ t(
|
|
51
|
+
u,
|
|
52
|
+
{
|
|
53
|
+
name: "amount",
|
|
54
|
+
isRequired: !0,
|
|
55
|
+
label: e("deductionAmountLabel"),
|
|
56
|
+
format: d === "true" ? "percent" : "currency",
|
|
57
|
+
min: 0,
|
|
58
|
+
errorMessage: e("validations.amount")
|
|
59
|
+
}
|
|
60
|
+
) }),
|
|
61
|
+
c === "true" && /* @__PURE__ */ t(u, { name: "limit", label: e("annualMaxLabel"), format: "currency", min: 0 }),
|
|
62
|
+
/* @__PURE__ */ t(T, { name: "courtOrdered", label: e("courtOrderedLabel") })
|
|
63
|
+
] });
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
I as DeductionForm
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=DeductionForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeductionForm.js","sources":["../../../../src/components/Employee/Deductions/DeductionForm.tsx"],"sourcesContent":["import { useFormContext, useWatch } from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { useDeductions, type DeductionInputs } from './useDeductions'\nimport {\n CheckboxField,\n NumberInputField,\n RadioGroupField,\n TextInputField,\n} from '@/components/Common'\nimport { useI18n } from '@/i18n'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const DeductionForm = () => {\n const { mode } = useDeductions()\n const { control } = useFormContext<DeductionInputs>()\n useI18n('Employee.Deductions')\n const { t } = useTranslation('Employee.Deductions')\n const Components = useComponentContext()\n\n const watchedRecurring = useWatch({ control, name: 'recurring' })\n const watchedDeductAsPercentage = useWatch({ control, name: 'deductAsPercentage' })\n\n if (mode !== 'ADD' && mode !== 'EDIT') return\n\n return (\n <>\n <Components.Heading as=\"h2\">\n {mode === 'EDIT' ? t('editDeductionTitle') : t('addDeductionTitle')}\n </Components.Heading>\n <Components.Text>{t('addDeuctionDescription')}</Components.Text>\n <TextInputField\n name=\"description\"\n label={t('descriptionLabel')}\n isRequired\n errorMessage={t('validations.description')}\n />\n <RadioGroupField\n name=\"recurring\"\n label={t('frequencyLabel')}\n options={[\n { value: 'true', label: t('frequencyRecurringOption') },\n { value: 'false', label: t('frequencyOneTimeOption') },\n ]}\n />\n <RadioGroupField\n name=\"deductAsPercentage\"\n label={t('deductionTypeLabel')}\n options={[\n { value: 'true', label: t('deductionTypePercentageOption') },\n { value: 'false', label: t('deductionTypeFixedAmountOption') },\n ]}\n />\n <div className=\"deduction-amount-section\">\n <NumberInputField\n name=\"amount\"\n isRequired\n label={t('deductionAmountLabel')}\n format={watchedDeductAsPercentage === 'true' ? 'percent' : 'currency'}\n min={0}\n errorMessage={t('validations.amount')}\n />\n </div>\n {watchedRecurring === 'true' && (\n <NumberInputField name=\"limit\" label={t('annualMaxLabel')} format=\"currency\" min={0} />\n )}\n <CheckboxField name=\"courtOrdered\" label={t('courtOrderedLabel')} />\n </>\n )\n}\n"],"names":["DeductionForm","mode","useDeductions","control","useFormContext","useI18n","t","useTranslation","Components","useComponentContext","watchedRecurring","useWatch","watchedDeductAsPercentage","jsxs","Fragment","jsx","TextInputField","RadioGroupField","NumberInputField","CheckboxField"],"mappings":";;;;;;;;;;AAYO,MAAMA,IAAgB,MAAM;AAC3B,QAAA,EAAE,MAAAC,EAAK,IAAIC,EAAc,GACzB,EAAE,SAAAC,EAAQ,IAAIC,EAAgC;AACpD,EAAAC,EAAQ,qBAAqB;AAC7B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAoB,GAEjCC,IAAmBC,EAAS,EAAE,SAAAR,GAAS,MAAM,aAAa,GAC1DS,IAA4BD,EAAS,EAAE,SAAAR,GAAS,MAAM,sBAAsB;AAE9E,MAAA,EAAAF,MAAS,SAASA,MAAS;AAE/B,WAEI,gBAAAY,EAAAC,GAAA,EAAA,UAAA;AAAA,MAAA,gBAAAC,EAACP,EAAW,SAAX,EAAmB,IAAG,MACpB,UAAkBF,EAAlBL,MAAS,SAAW,uBAA0B,mBAAN,EAC3C,CAAA;AAAA,wBACCO,EAAW,MAAX,EAAiB,UAAAF,EAAE,wBAAwB,GAAE;AAAA,MAC9C,gBAAAS;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAOV,EAAE,kBAAkB;AAAA,UAC3B,YAAU;AAAA,UACV,cAAcA,EAAE,yBAAyB;AAAA,QAAA;AAAA,MAC3C;AAAA,MACA,gBAAAS;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAOX,EAAE,gBAAgB;AAAA,UACzB,SAAS;AAAA,YACP,EAAE,OAAO,QAAQ,OAAOA,EAAE,0BAA0B,EAAE;AAAA,YACtD,EAAE,OAAO,SAAS,OAAOA,EAAE,wBAAwB,EAAE;AAAA,UAAA;AAAA,QACvD;AAAA,MACF;AAAA,MACA,gBAAAS;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAOX,EAAE,oBAAoB;AAAA,UAC7B,SAAS;AAAA,YACP,EAAE,OAAO,QAAQ,OAAOA,EAAE,+BAA+B,EAAE;AAAA,YAC3D,EAAE,OAAO,SAAS,OAAOA,EAAE,gCAAgC,EAAE;AAAA,UAAA;AAAA,QAC/D;AAAA,MACF;AAAA,MACA,gBAAAS,EAAC,OAAI,EAAA,WAAU,4BACb,UAAA,gBAAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,YAAU;AAAA,UACV,OAAOZ,EAAE,sBAAsB;AAAA,UAC/B,QAAQM,MAA8B,SAAS,YAAY;AAAA,UAC3D,KAAK;AAAA,UACL,cAAcN,EAAE,oBAAoB;AAAA,QAAA;AAAA,MAAA,GAExC;AAAA,MACCI,MAAqB,UACnB,gBAAAK,EAAAG,GAAA,EAAiB,MAAK,SAAQ,OAAOZ,EAAE,gBAAgB,GAAG,QAAO,YAAW,KAAK,EAAG,CAAA;AAAA,wBAEtFa,GAAc,EAAA,MAAK,gBAAe,OAAOb,EAAE,mBAAmB,EAAG,CAAA;AAAA,IAAA,GACpE;AAEJ;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseComponentInterface, CommonComponentInterface } from '../../Base';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
interface DeductionsProps extends CommonComponentInterface {
|
|
4
|
+
employeeId: string;
|
|
5
|
+
}
|
|
6
|
+
declare const IncludeDeductionsSchema: v.ObjectSchema<{
|
|
7
|
+
readonly includeDeductions: v.PicklistSchema<["Yes", "No"], undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
export type IncludeDeductionsPayload = v.InferOutput<typeof IncludeDeductionsSchema>;
|
|
10
|
+
export declare function Deductions(props: DeductionsProps & BaseComponentInterface): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const Root: ({ employeeId, className }: DeductionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const DeductionsContextual: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as t, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as Y } from "react-i18next";
|
|
3
|
+
import { useState as M, useMemo as q, useEffect as B } from "react";
|
|
4
|
+
import * as A from "valibot";
|
|
5
|
+
import { useForm as C, FormProvider as O } from "react-hook-form";
|
|
6
|
+
import { valibotResolver as R } from "@hookform/resolvers/valibot";
|
|
7
|
+
import { useGarnishmentsListSuspense as y, invalidateGarnishmentsList as T } from "@gusto/embedded-api/react-query/garnishmentsList";
|
|
8
|
+
import { useGarnishmentsCreateMutation as G } from "@gusto/embedded-api/react-query/garnishmentsCreate";
|
|
9
|
+
import { useGarnishmentsUpdateMutation as j } from "@gusto/embedded-api/react-query/garnishmentsUpdate";
|
|
10
|
+
import { useQueryClient as H } from "@gusto/embedded-api/ReactSDKProvider";
|
|
11
|
+
import { DeductionSchema as V, DeductionsProvider as k } from "./useDeductions.js";
|
|
12
|
+
import { BaseComponent as Q } from "../../Base/Base.js";
|
|
13
|
+
import { useBase as z } from "../../Base/useBase.js";
|
|
14
|
+
import { Form as L } from "../../Common/Form/Form.js";
|
|
15
|
+
import { useI18n as J } from "../../../i18n/I18n.js";
|
|
16
|
+
import { componentEvents as s } from "../../../shared/constants.js";
|
|
17
|
+
import { Actions as S } from "./Actions.js";
|
|
18
|
+
import { IncludeDeductionsForm as K } from "./IncludeDeductionsForm.js";
|
|
19
|
+
import { Head as N } from "./Head.js";
|
|
20
|
+
import { DeductionForm as W } from "./DeductionForm.js";
|
|
21
|
+
import { DeductionsList as X } from "./DeductionsList.js";
|
|
22
|
+
import { useFlow as Z } from "../../Flow/useFlow.js";
|
|
23
|
+
A.object({ includeDeductions: A.picklist(["Yes", "No"]) });
|
|
24
|
+
function $(n) {
|
|
25
|
+
return /* @__PURE__ */ t(Q, { ...n, children: /* @__PURE__ */ t(ee, { ...n, children: n.children }) });
|
|
26
|
+
}
|
|
27
|
+
const ee = ({ employeeId: n, className: d }) => {
|
|
28
|
+
const { onEvent: r, baseSubmitHandler: E } = z(), h = H(), { data: b } = y({ employeeId: n }), f = b.garnishmentList, { mutateAsync: p, isPending: _ } = j({
|
|
29
|
+
onSettled: () => T(h, [n])
|
|
30
|
+
}), { mutateAsync: x, isPending: w } = G({
|
|
31
|
+
onSettled: () => T(h, [n])
|
|
32
|
+
}), F = f.filter((i) => i.active), [u, m] = M(F.length < 1 ? "INITIAL" : "LIST"), [e, a] = M(null);
|
|
33
|
+
J("Employee.Deductions");
|
|
34
|
+
const l = q(() => ({
|
|
35
|
+
amount: e?.amount ? Number(e.amount) : 0,
|
|
36
|
+
description: e?.description ?? "",
|
|
37
|
+
times: e?.times ?? null,
|
|
38
|
+
recurring: e?.recurring?.toString() ?? "true",
|
|
39
|
+
annualMaximum: e?.annualMaximum ? Number(e.annualMaximum) : null,
|
|
40
|
+
payPeriodMaximum: e?.payPeriodMaximum ? Number(e.payPeriodMaximum) : null,
|
|
41
|
+
deductAsPercentage: e?.deductAsPercentage?.toString() ?? "true",
|
|
42
|
+
active: !0,
|
|
43
|
+
courtOrdered: e?.courtOrdered ?? !1
|
|
44
|
+
}), [e]), g = C({
|
|
45
|
+
// resolver: valibotResolver(IncludeDeductionsSchema),
|
|
46
|
+
defaultValues: { includeDeductions: "No" }
|
|
47
|
+
}), D = C({
|
|
48
|
+
resolver: R(V),
|
|
49
|
+
defaultValues: l
|
|
50
|
+
}), { reset: P } = D;
|
|
51
|
+
B(() => {
|
|
52
|
+
P(l);
|
|
53
|
+
}, [e, l, P, u]);
|
|
54
|
+
const U = async (i) => {
|
|
55
|
+
await E(i, async (o) => {
|
|
56
|
+
const { garnishment: c } = await p({
|
|
57
|
+
request: {
|
|
58
|
+
garnishmentId: o.uuid,
|
|
59
|
+
requestBody: {
|
|
60
|
+
...o,
|
|
61
|
+
totalAmount: o.totalAmount ?? void 0,
|
|
62
|
+
active: !1,
|
|
63
|
+
version: o.version
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
r(s.EMPLOYEE_DEDUCTION_DELETED, c);
|
|
68
|
+
});
|
|
69
|
+
}, v = async (i) => {
|
|
70
|
+
await E(i, async (o) => {
|
|
71
|
+
if ("includeDeductions" in o)
|
|
72
|
+
if (o.includeDeductions === "Yes")
|
|
73
|
+
m("ADD"), r(s.EMPLOYEE_DEDUCTION_ADD);
|
|
74
|
+
else {
|
|
75
|
+
r(s.EMPLOYEE_DEDUCTION_DONE);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (!("includeDeductions" in o)) {
|
|
79
|
+
if (u === "ADD") {
|
|
80
|
+
const { garnishment: c } = await x({
|
|
81
|
+
request: {
|
|
82
|
+
employeeId: n,
|
|
83
|
+
requestBody: { ...o, times: o.recurring ? null : 1 }
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
r(s.EMPLOYEE_DEDUCTION_CREATED, c);
|
|
87
|
+
} else if (u === "EDIT") {
|
|
88
|
+
const { garnishment: c } = await p({
|
|
89
|
+
request: {
|
|
90
|
+
garnishmentId: e?.uuid ?? "",
|
|
91
|
+
requestBody: {
|
|
92
|
+
...o,
|
|
93
|
+
version: e?.version,
|
|
94
|
+
times: o.recurring ? null : 1
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
r(s.EMPLOYEE_DEDUCTION_UPDATED, c), a(null);
|
|
99
|
+
}
|
|
100
|
+
m("LIST");
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
return /* @__PURE__ */ t("section", { className: d, children: /* @__PURE__ */ t(
|
|
105
|
+
k,
|
|
106
|
+
{
|
|
107
|
+
value: {
|
|
108
|
+
isPending: w || _,
|
|
109
|
+
employeeId: n,
|
|
110
|
+
mode: u,
|
|
111
|
+
deductions: f,
|
|
112
|
+
handleAdd: () => {
|
|
113
|
+
m("ADD");
|
|
114
|
+
},
|
|
115
|
+
handleCancel: () => {
|
|
116
|
+
m("LIST"), a(null);
|
|
117
|
+
},
|
|
118
|
+
handleDelete: U,
|
|
119
|
+
handleEdit: (i) => {
|
|
120
|
+
m("EDIT"), a(i);
|
|
121
|
+
},
|
|
122
|
+
handlePassthrough: () => {
|
|
123
|
+
r(s.EMPLOYEE_DEDUCTION_DONE);
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
children: u === "INITIAL" ? /* @__PURE__ */ t(O, { ...g, children: /* @__PURE__ */ I(L, { onSubmit: g.handleSubmit(v), children: [
|
|
127
|
+
/* @__PURE__ */ t(N, {}),
|
|
128
|
+
/* @__PURE__ */ t(K, {}),
|
|
129
|
+
/* @__PURE__ */ t(S, {})
|
|
130
|
+
] }) }) : /* @__PURE__ */ t(O, { ...D, children: /* @__PURE__ */ I(L, { onSubmit: D.handleSubmit(v), children: [
|
|
131
|
+
/* @__PURE__ */ t(N, {}),
|
|
132
|
+
/* @__PURE__ */ t(X, {}),
|
|
133
|
+
/* @__PURE__ */ t(W, {}),
|
|
134
|
+
/* @__PURE__ */ t(S, {})
|
|
135
|
+
] }) })
|
|
136
|
+
}
|
|
137
|
+
) });
|
|
138
|
+
}, Te = () => {
|
|
139
|
+
const { employeeId: n, onEvent: d } = Z(), { t: r } = Y("common");
|
|
140
|
+
if (!n)
|
|
141
|
+
throw new Error(
|
|
142
|
+
r("errors.missingParamsOrContext", {
|
|
143
|
+
component: "Deductions",
|
|
144
|
+
param: "employeeId",
|
|
145
|
+
provider: "FlowProvider"
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
return /* @__PURE__ */ t($, { employeeId: n, onEvent: d });
|
|
149
|
+
};
|
|
150
|
+
export {
|
|
151
|
+
$ as Deductions,
|
|
152
|
+
Te as DeductionsContextual,
|
|
153
|
+
ee as Root
|
|
154
|
+
};
|
|
155
|
+
//# sourceMappingURL=Deductions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Deductions.js","sources":["../../../../src/components/Employee/Deductions/Deductions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useEffect, useMemo, useState } from 'react'\nimport * as v from 'valibot'\nimport { FormProvider, useForm, type SubmitHandler } from 'react-hook-form'\nimport { valibotResolver } from '@hookform/resolvers/valibot'\nimport {\n useGarnishmentsListSuspense,\n invalidateGarnishmentsList,\n} from '@gusto/embedded-api/react-query/garnishmentsList'\nimport { type Garnishment } from '@gusto/embedded-api/models/components/garnishment'\nimport { useGarnishmentsCreateMutation } from '@gusto/embedded-api/react-query/garnishmentsCreate'\nimport { useGarnishmentsUpdateMutation } from '@gusto/embedded-api/react-query/garnishmentsUpdate'\nimport { useQueryClient } from '@gusto/embedded-api/ReactSDKProvider'\nimport {\n type DeductionInputs,\n type DeductionPayload,\n DeductionSchema,\n DeductionsProvider,\n type MODE,\n} from './useDeductions'\nimport {\n useBase,\n BaseComponent,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { Form } from '@/components/Common/Form'\nimport { useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\nimport { Actions } from '@/components/Employee/Deductions/Actions'\nimport { IncludeDeductionsForm } from '@/components/Employee/Deductions/IncludeDeductionsForm'\nimport { Head } from '@/components/Employee/Deductions/Head'\nimport { DeductionForm } from '@/components/Employee/Deductions/DeductionForm'\nimport { DeductionsList } from '@/components/Employee/Deductions/DeductionsList'\nimport type { EmployeeOnboardingContextInterface } from '@/components/Flow/EmployeeOnboardingFlow'\nimport { useFlow } from '@/components/Flow/useFlow'\n\ninterface DeductionsProps extends CommonComponentInterface {\n employeeId: string\n}\n\nconst IncludeDeductionsSchema = v.object({ includeDeductions: v.picklist(['Yes', 'No']) })\nexport type IncludeDeductionsPayload = v.InferOutput<typeof IncludeDeductionsSchema>\n\nexport function Deductions(props: DeductionsProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\nexport const Root = ({ employeeId, className }: DeductionsProps) => {\n const { onEvent, baseSubmitHandler } = useBase()\n const queryClient = useQueryClient()\n\n const { data } = useGarnishmentsListSuspense({ employeeId })\n const deductions = data.garnishmentList!\n\n // Used for deletion or edit of deduction\n const { mutateAsync: updateDeduction, isPending: isPendingUpdate } =\n useGarnishmentsUpdateMutation({\n onSettled: () => invalidateGarnishmentsList(queryClient, [employeeId]),\n })\n const { mutateAsync: createDeduction, isPending: isPendingCreate } =\n useGarnishmentsCreateMutation({\n onSettled: () => invalidateGarnishmentsList(queryClient, [employeeId]),\n })\n\n const activeDeductions = deductions.filter(deduction => deduction.active)\n const [mode, setMode] = useState<MODE>(activeDeductions.length < 1 ? 'INITIAL' : 'LIST')\n const [currentDeduction, setCurrentDeduction] = useState<Garnishment | null>(null)\n useI18n('Employee.Deductions')\n\n const defaultValues: DeductionInputs = useMemo(() => {\n return {\n amount: currentDeduction?.amount ? Number(currentDeduction.amount) : 0,\n description: currentDeduction?.description ?? '',\n times: currentDeduction?.times ?? null,\n recurring: currentDeduction?.recurring?.toString() ?? 'true',\n annualMaximum: currentDeduction?.annualMaximum\n ? Number(currentDeduction.annualMaximum)\n : null,\n payPeriodMaximum: currentDeduction?.payPeriodMaximum\n ? Number(currentDeduction.payPeriodMaximum)\n : null,\n deductAsPercentage: currentDeduction?.deductAsPercentage?.toString() ?? 'true',\n active: true,\n courtOrdered: currentDeduction?.courtOrdered ?? false,\n } as DeductionInputs\n }, [currentDeduction])\n\n const includeDeductionsFormMethods = useForm<IncludeDeductionsPayload>({\n // resolver: valibotResolver(IncludeDeductionsSchema),\n defaultValues: { includeDeductions: 'No' },\n })\n\n const formMethods = useForm<DeductionInputs, unknown, DeductionPayload>({\n resolver: valibotResolver(DeductionSchema),\n defaultValues,\n })\n\n const { reset: resetForm } = formMethods\n\n useEffect(() => {\n resetForm(defaultValues)\n }, [currentDeduction, defaultValues, resetForm, mode])\n\n const handleDelete = async (deduction: Garnishment) => {\n await baseSubmitHandler(deduction, async payload => {\n //Deletion of deduction is simply updating it with active: false\n const { garnishment } = await updateDeduction({\n request: {\n garnishmentId: payload.uuid,\n requestBody: {\n ...payload,\n totalAmount: payload.totalAmount ?? undefined,\n active: false,\n version: payload.version as string,\n },\n },\n })\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_DELETED, garnishment)\n })\n }\n const onSubmit: SubmitHandler<DeductionPayload | IncludeDeductionsPayload> = async data => {\n await baseSubmitHandler(data, async payload => {\n if ('includeDeductions' in payload) {\n if (payload.includeDeductions === 'Yes') {\n setMode('ADD')\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_ADD)\n } else {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_DONE)\n return\n }\n }\n if (!('includeDeductions' in payload)) {\n if (mode === 'ADD') {\n const { garnishment: createDeductionResponse } = await createDeduction({\n request: {\n employeeId: employeeId,\n requestBody: { ...payload, times: payload.recurring ? null : 1 },\n },\n })\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_CREATED, createDeductionResponse)\n } else if (mode === 'EDIT') {\n const { garnishment: updateDeductionResponse } = await updateDeduction({\n request: {\n garnishmentId: currentDeduction?.uuid ?? '',\n requestBody: {\n ...payload,\n version: currentDeduction?.version as string,\n times: payload.recurring ? null : 1,\n },\n },\n })\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_UPDATED, updateDeductionResponse)\n setCurrentDeduction(null)\n }\n setMode('LIST')\n }\n })\n }\n const handleAdd = () => {\n setMode('ADD')\n }\n const handleCancel = () => {\n setMode('LIST')\n setCurrentDeduction(null)\n }\n const handleEdit = (deduction: Garnishment) => {\n setMode('EDIT')\n setCurrentDeduction(deduction)\n }\n const handlePassthrough = () => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_DONE)\n }\n return (\n <section className={className}>\n <DeductionsProvider\n value={{\n isPending: isPendingCreate || isPendingUpdate,\n employeeId,\n mode,\n deductions,\n handleAdd,\n handleCancel,\n handleDelete,\n handleEdit,\n handlePassthrough,\n }}\n >\n {mode === 'INITIAL' ? (\n <FormProvider {...includeDeductionsFormMethods}>\n <Form onSubmit={includeDeductionsFormMethods.handleSubmit(onSubmit)}>\n <Head />\n <IncludeDeductionsForm />\n <Actions />\n </Form>\n </FormProvider>\n ) : (\n <FormProvider {...formMethods}>\n <Form onSubmit={formMethods.handleSubmit(onSubmit)}>\n <Head />\n <DeductionsList />\n <DeductionForm />\n <Actions />\n </Form>\n </FormProvider>\n )}\n </DeductionsProvider>\n </section>\n )\n}\n\nexport const DeductionsContextual = () => {\n const { employeeId, onEvent } = useFlow<EmployeeOnboardingContextInterface>()\n const { t } = useTranslation('common')\n\n if (!employeeId) {\n throw new Error(\n t('errors.missingParamsOrContext', {\n component: 'Deductions',\n param: 'employeeId',\n provider: 'FlowProvider',\n }),\n )\n }\n return <Deductions employeeId={employeeId} onEvent={onEvent} />\n}\n"],"names":["v","Deductions","props","jsx","BaseComponent","Root","employeeId","className","onEvent","baseSubmitHandler","useBase","queryClient","useQueryClient","data","useGarnishmentsListSuspense","deductions","updateDeduction","isPendingUpdate","useGarnishmentsUpdateMutation","invalidateGarnishmentsList","createDeduction","isPendingCreate","useGarnishmentsCreateMutation","activeDeductions","deduction","mode","setMode","useState","currentDeduction","setCurrentDeduction","useI18n","defaultValues","useMemo","includeDeductionsFormMethods","useForm","formMethods","valibotResolver","DeductionSchema","resetForm","useEffect","handleDelete","payload","garnishment","componentEvents","onSubmit","createDeductionResponse","updateDeductionResponse","DeductionsProvider","FormProvider","jsxs","Form","Head","IncludeDeductionsForm","Actions","DeductionsList","DeductionForm","DeductionsContextual","useFlow","t","useTranslation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAyCgCA,EAAE,OAAO,EAAE,mBAAmBA,EAAE,SAAS,CAAC,OAAO,IAAI,CAAC,EAAG,CAAA;AAGlF,SAASC,EAAWC,GAAiD;AAExE,SAAA,gBAAAC,EAACC,GAAe,EAAA,GAAGF,GACjB,UAAA,gBAAAC,EAACE,MAAM,GAAGH,GAAQ,UAAMA,EAAA,SAAA,CAAS,EACnC,CAAA;AAEJ;AACO,MAAMG,KAAO,CAAC,EAAE,YAAAC,GAAY,WAAAC,QAAiC;AAClE,QAAM,EAAE,SAAAC,GAAS,mBAAAC,EAAkB,IAAIC,EAAQ,GACzCC,IAAcC,EAAe,GAE7B,EAAE,MAAAC,EAAK,IAAIC,EAA4B,EAAE,YAAAR,GAAY,GACrDS,IAAaF,EAAK,iBAGlB,EAAE,aAAaG,GAAiB,WAAWC,EAAA,IAC/CC,EAA8B;AAAA,IAC5B,WAAW,MAAMC,EAA2BR,GAAa,CAACL,CAAU,CAAC;AAAA,EAAA,CACtE,GACG,EAAE,aAAac,GAAiB,WAAWC,EAAA,IAC/CC,EAA8B;AAAA,IAC5B,WAAW,MAAMH,EAA2BR,GAAa,CAACL,CAAU,CAAC;AAAA,EAAA,CACtE,GAEGiB,IAAmBR,EAAW,OAAO,CAAAS,MAAaA,EAAU,MAAM,GAClE,CAACC,GAAMC,CAAO,IAAIC,EAAeJ,EAAiB,SAAS,IAAI,YAAY,MAAM,GACjF,CAACK,GAAkBC,CAAmB,IAAIF,EAA6B,IAAI;AACjF,EAAAG,EAAQ,qBAAqB;AAEvB,QAAAC,IAAiCC,EAAQ,OACtC;AAAA,IACL,QAAQJ,GAAkB,SAAS,OAAOA,EAAiB,MAAM,IAAI;AAAA,IACrE,aAAaA,GAAkB,eAAe;AAAA,IAC9C,OAAOA,GAAkB,SAAS;AAAA,IAClC,WAAWA,GAAkB,WAAW,SAAc,KAAA;AAAA,IACtD,eAAeA,GAAkB,gBAC7B,OAAOA,EAAiB,aAAa,IACrC;AAAA,IACJ,kBAAkBA,GAAkB,mBAChC,OAAOA,EAAiB,gBAAgB,IACxC;AAAA,IACJ,oBAAoBA,GAAkB,oBAAoB,SAAc,KAAA;AAAA,IACxE,QAAQ;AAAA,IACR,cAAcA,GAAkB,gBAAgB;AAAA,EAClD,IACC,CAACA,CAAgB,CAAC,GAEfK,IAA+BC,EAAkC;AAAA;AAAA,IAErE,eAAe,EAAE,mBAAmB,KAAK;AAAA,EAAA,CAC1C,GAEKC,IAAcD,EAAoD;AAAA,IACtE,UAAUE,EAAgBC,CAAe;AAAA,IACzC,eAAAN;AAAA,EAAA,CACD,GAEK,EAAE,OAAOO,EAAA,IAAcH;AAE7B,EAAAI,EAAU,MAAM;AACd,IAAAD,EAAUP,CAAa;AAAA,KACtB,CAACH,GAAkBG,GAAeO,GAAWb,CAAI,CAAC;AAE/C,QAAAe,IAAe,OAAOhB,MAA2B;AAC/C,UAAAf,EAAkBe,GAAW,OAAMiB,MAAW;AAElD,YAAM,EAAE,aAAAC,MAAgB,MAAM1B,EAAgB;AAAA,QAC5C,SAAS;AAAA,UACP,eAAeyB,EAAQ;AAAA,UACvB,aAAa;AAAA,YACX,GAAGA;AAAA,YACH,aAAaA,EAAQ,eAAe;AAAA,YACpC,QAAQ;AAAA,YACR,SAASA,EAAQ;AAAA,UAAA;AAAA,QACnB;AAAA,MACF,CACD;AACO,MAAAjC,EAAAmC,EAAgB,4BAA4BD,CAAW;AAAA,IAAA,CAChE;AAAA,EACH,GACME,IAAuE,OAAM/B,MAAQ;AACnF,UAAAJ,EAAkBI,GAAM,OAAM4B,MAAW;AAC7C,UAAI,uBAAuBA;AACrB,YAAAA,EAAQ,sBAAsB;AAChC,UAAAf,EAAQ,KAAK,GACblB,EAAQmC,EAAgB,sBAAsB;AAAA,aACzC;AACL,UAAAnC,EAAQmC,EAAgB,uBAAuB;AAC/C;AAAA,QAAA;AAGA,UAAA,EAAE,uBAAuBF,IAAU;AACrC,YAAIhB,MAAS,OAAO;AAClB,gBAAM,EAAE,aAAaoB,EAAwB,IAAI,MAAMzB,EAAgB;AAAA,YACrE,SAAS;AAAA,cACP,YAAAd;AAAA,cACA,aAAa,EAAE,GAAGmC,GAAS,OAAOA,EAAQ,YAAY,OAAO,EAAE;AAAA,YAAA;AAAA,UACjE,CACD;AACO,UAAAjC,EAAAmC,EAAgB,4BAA4BE,CAAuB;AAAA,QAAA,WAClEpB,MAAS,QAAQ;AAC1B,gBAAM,EAAE,aAAaqB,EAAwB,IAAI,MAAM9B,EAAgB;AAAA,YACrE,SAAS;AAAA,cACP,eAAeY,GAAkB,QAAQ;AAAA,cACzC,aAAa;AAAA,gBACX,GAAGa;AAAA,gBACH,SAASb,GAAkB;AAAA,gBAC3B,OAAOa,EAAQ,YAAY,OAAO;AAAA,cAAA;AAAA,YACpC;AAAA,UACF,CACD;AACO,UAAAjC,EAAAmC,EAAgB,4BAA4BG,CAAuB,GAC3EjB,EAAoB,IAAI;AAAA,QAAA;AAE1B,QAAAH,EAAQ,MAAM;AAAA,MAAA;AAAA,IAChB,CACD;AAAA,EACH;AAgBE,SAAA,gBAAAvB,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAAC4C;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,WAAW1B,KAAmBJ;AAAA,QAC9B,YAAAX;AAAA,QACA,MAAAmB;AAAA,QACA,YAAAV;AAAA,QACA,WAtBU,MAAM;AACtB,UAAAW,EAAQ,KAAK;AAAA,QACf;AAAA,QAqBQ,cApBa,MAAM;AACzB,UAAAA,EAAQ,MAAM,GACdG,EAAoB,IAAI;AAAA,QAC1B;AAAA,QAkBQ,cAAAW;AAAA,QACA,YAlBW,CAAChB,MAA2B;AAC7C,UAAAE,EAAQ,MAAM,GACdG,EAAoBL,CAAS;AAAA,QAC/B;AAAA,QAgBQ,mBAfkB,MAAM;AAC9B,UAAAhB,EAAQmC,EAAgB,uBAAuB;AAAA,QACjD;AAAA,MAcM;AAAA,MAEC,UAASlB,MAAA,YACP,gBAAAtB,EAAA6C,GAAA,EAAc,GAAGf,GAChB,UAAC,gBAAAgB,EAAAC,GAAA,EAAK,UAAUjB,EAA6B,aAAaW,CAAQ,GAChE,UAAA;AAAA,QAAA,gBAAAzC,EAACgD,GAAK,EAAA;AAAA,0BACLC,GAAsB,EAAA;AAAA,0BACtBC,GAAQ,CAAA,CAAA;AAAA,MAAA,EACX,CAAA,EACF,CAAA,IAEC,gBAAAlD,EAAA6C,GAAA,EAAc,GAAGb,GAChB,UAAC,gBAAAc,EAAAC,GAAA,EAAK,UAAUf,EAAY,aAAaS,CAAQ,GAC/C,UAAA;AAAA,QAAA,gBAAAzC,EAACgD,GAAK,EAAA;AAAA,0BACLG,GAAe,EAAA;AAAA,0BACfC,GAAc,EAAA;AAAA,0BACdF,GAAQ,CAAA,CAAA;AAAA,MAAA,EAAA,CACX,EACF,CAAA;AAAA,IAAA;AAAA,EAAA,GAGN;AAEJ,GAEaG,KAAuB,MAAM;AACxC,QAAM,EAAE,YAAAlD,GAAY,SAAAE,EAAQ,IAAIiD,EAA4C,GACtE,EAAE,GAAAC,EAAA,IAAMC,EAAe,QAAQ;AAErC,MAAI,CAACrD;AACH,UAAM,IAAI;AAAA,MACRoD,EAAE,iCAAiC;AAAA,QACjC,WAAW;AAAA,QACX,OAAO;AAAA,QACP,UAAU;AAAA,MACX,CAAA;AAAA,IACH;AAEK,SAAA,gBAAAvD,EAACF,GAAW,EAAA,YAAAK,GAAwB,SAAAE,EAAkB,CAAA;AAC/D;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as p } from "react-i18next";
|
|
3
|
+
import { useDeductions as g } from "./useDeductions.js";
|
|
4
|
+
import o from "../../Common/hooks/useNumberFormatter.js";
|
|
5
|
+
import b from "../../../assets/icons/pencil.svg.js";
|
|
6
|
+
import C from "../../../assets/icons/trashcan.svg.js";
|
|
7
|
+
import { HamburgerMenu as h } from "../../Common/HamburgerMenu/HamburgerMenu.js";
|
|
8
|
+
import { useDataView as y } from "../../Common/DataView/useDataView.js";
|
|
9
|
+
import { DataView as D } from "../../Common/DataView/DataView.js";
|
|
10
|
+
const S = () => {
|
|
11
|
+
const { mode: i, deductions: m, handleDelete: a, handleEdit: u, isPending: c } = g(), { t: r } = p("Employee.Deductions"), s = o("currency"), l = o("percent"), d = m.filter((e) => e.active), { ...f } = y({
|
|
12
|
+
data: d,
|
|
13
|
+
columns: [
|
|
14
|
+
{ key: "description", title: r("nameColumn") },
|
|
15
|
+
{
|
|
16
|
+
key: "recurring",
|
|
17
|
+
title: r("frequencyColumn"),
|
|
18
|
+
render: (e) => e.recurring ? r("recurringText") : r("nonRecurringText")
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: "amount",
|
|
22
|
+
title: r("withheldColumn"),
|
|
23
|
+
render: (e) => {
|
|
24
|
+
const n = e.deductAsPercentage ? l(Number(e.amount)) : s(Number(e.amount));
|
|
25
|
+
return e.recurring ? r("recurringAmount", { value: n }) : n;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
itemMenu: (e) => /* @__PURE__ */ t(
|
|
30
|
+
h,
|
|
31
|
+
{
|
|
32
|
+
isLoading: c,
|
|
33
|
+
items: [
|
|
34
|
+
{
|
|
35
|
+
label: r("editCta"),
|
|
36
|
+
onClick: () => {
|
|
37
|
+
u(e);
|
|
38
|
+
},
|
|
39
|
+
icon: /* @__PURE__ */ t(b, { "aria-hidden": !0 })
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: r("deleteCta"),
|
|
43
|
+
onClick: () => {
|
|
44
|
+
a(e);
|
|
45
|
+
},
|
|
46
|
+
icon: /* @__PURE__ */ t(C, { "aria-hidden": !0 })
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
});
|
|
52
|
+
if (i === "LIST")
|
|
53
|
+
return /* @__PURE__ */ t(D, { label: r("deductionsTableLabel"), ...f });
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
S as DeductionsList
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=DeductionsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeductionsList.js","sources":["../../../../src/components/Employee/Deductions/DeductionsList.tsx"],"sourcesContent":["import type React from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { useDeductions } from './useDeductions'\nimport { useDataView, DataView } from '@/components/Common'\nimport useNumberFormatter from '@/components/Common/hooks/useNumberFormatter'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport TrashCanSvg from '@/assets/icons/trashcan.svg?react'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\n\nexport const DeductionsList: React.FC = () => {\n const { mode, deductions, handleDelete, handleEdit, isPending } = useDeductions()\n const { t } = useTranslation('Employee.Deductions')\n const formatCurrency = useNumberFormatter('currency')\n const formatPercent = useNumberFormatter('percent')\n\n const activeDeductions = deductions.filter(deduction => deduction.active)\n\n const { ...dataViewProps } = useDataView({\n data: activeDeductions,\n columns: [\n { key: 'description', title: t('nameColumn') },\n {\n key: 'recurring',\n title: t('frequencyColumn'),\n render: deduction => {\n return deduction.recurring ? t('recurringText') : t('nonRecurringText')\n },\n },\n {\n key: 'amount',\n title: t('withheldColumn'),\n render: deduction => {\n const formattedAmount = deduction.deductAsPercentage\n ? formatPercent(Number(deduction.amount))\n : formatCurrency(Number(deduction.amount))\n return deduction.recurring\n ? t('recurringAmount', { value: formattedAmount })\n : formattedAmount\n },\n },\n ],\n itemMenu: deduction => {\n return (\n <HamburgerMenu\n isLoading={isPending}\n items={[\n {\n label: t('editCta'),\n onClick: () => {\n handleEdit(deduction)\n },\n icon: <PencilSvg aria-hidden />,\n },\n {\n label: t('deleteCta'),\n onClick: () => {\n handleDelete(deduction)\n },\n icon: <TrashCanSvg aria-hidden />,\n },\n ]}\n />\n )\n },\n })\n\n if (mode !== 'LIST') return\n return <DataView label={t('deductionsTableLabel')} {...dataViewProps} />\n}\n"],"names":["DeductionsList","mode","deductions","handleDelete","handleEdit","isPending","useDeductions","t","useTranslation","formatCurrency","useNumberFormatter","formatPercent","activeDeductions","deduction","dataViewProps","useDataView","formattedAmount","jsx","HamburgerMenu","PencilSvg","TrashCanSvg","DataView"],"mappings":";;;;;;;;;AASO,MAAMA,IAA2B,MAAM;AAC5C,QAAM,EAAE,MAAAC,GAAM,YAAAC,GAAY,cAAAC,GAAc,YAAAC,GAAY,WAAAC,MAAcC,EAAc,GAC1E,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAiBC,EAAmB,UAAU,GAC9CC,IAAgBD,EAAmB,SAAS,GAE5CE,IAAmBV,EAAW,OAAO,CAAAW,MAAaA,EAAU,MAAM,GAElE,EAAE,GAAGC,EAAc,IAAIC,EAAY;AAAA,IACvC,MAAMH;AAAA,IACN,SAAS;AAAA,MACP,EAAE,KAAK,eAAe,OAAOL,EAAE,YAAY,EAAE;AAAA,MAC7C;AAAA,QACE,KAAK;AAAA,QACL,OAAOA,EAAE,iBAAiB;AAAA,QAC1B,QAAQ,CAAaM,MACZA,EAAU,YAAYN,EAAE,eAAe,IAAIA,EAAE,kBAAkB;AAAA,MAE1E;AAAA,MACA;AAAA,QACE,KAAK;AAAA,QACL,OAAOA,EAAE,gBAAgB;AAAA,QACzB,QAAQ,CAAaM,MAAA;AACnB,gBAAMG,IAAkBH,EAAU,qBAC9BF,EAAc,OAAOE,EAAU,MAAM,CAAC,IACtCJ,EAAe,OAAOI,EAAU,MAAM,CAAC;AACpC,iBAAAA,EAAU,YACbN,EAAE,mBAAmB,EAAE,OAAOS,EAAiB,CAAA,IAC/CA;AAAA,QAAA;AAAA,MACN;AAAA,IAEJ;AAAA,IACA,UAAU,CAAaH,MAEnB,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAWb;AAAA,QACX,OAAO;AAAA,UACL;AAAA,YACE,OAAOE,EAAE,SAAS;AAAA,YAClB,SAAS,MAAM;AACb,cAAAH,EAAWS,CAAS;AAAA,YACtB;AAAA,YACA,MAAM,gBAAAI,EAACE,GAAU,EAAA,eAAW,GAAC,CAAA;AAAA,UAC/B;AAAA,UACA;AAAA,YACE,OAAOZ,EAAE,WAAW;AAAA,YACpB,SAAS,MAAM;AACb,cAAAJ,EAAaU,CAAS;AAAA,YACxB;AAAA,YACA,MAAM,gBAAAI,EAACG,GAAY,EAAA,eAAW,GAAC,CAAA;AAAA,UAAA;AAAA,QACjC;AAAA,MACF;AAAA,IACF;AAAA,EAEJ,CACD;AAED,MAAInB,MAAS;AACb,6BAAQoB,GAAS,EAAA,OAAOd,EAAE,sBAAsB,GAAI,GAAGO,GAAe;AACxE;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Head(): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as e, Fragment as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as i } from "react-i18next";
|
|
3
|
+
import { useDeductions as m } from "./useDeductions.js";
|
|
4
|
+
import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
5
|
+
function d() {
|
|
6
|
+
const { t } = i("Employee.Deductions"), { mode: o } = m(), n = s();
|
|
7
|
+
if (!(o !== "INITIAL" && o !== "LIST"))
|
|
8
|
+
return /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(n.Heading, { as: "h2", children: t("pageTitle") }) });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
d as Head
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=Head.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Head.js","sources":["../../../../src/components/Employee/Deductions/Head.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDeductions } from './useDeductions'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Head() {\n const { t } = useTranslation('Employee.Deductions')\n const { mode } = useDeductions()\n const Components = useComponentContext()\n\n if (mode !== 'INITIAL' && mode !== 'LIST') return\n return (\n <>\n <Components.Heading as=\"h2\">{t('pageTitle')}</Components.Heading>\n </>\n )\n}\n"],"names":["Head","useTranslation","mode","useDeductions","Components","useComponentContext","jsx","Fragment"],"mappings":";;;;AAIO,SAASA,IAAO;AACrB,QAAM,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,MAAAC,EAAK,IAAIC,EAAc,GACzBC,IAAaC,EAAoB;AAEnC,MAAA,EAAAH,MAAS,aAAaA,MAAS;AAEjC,WAAA,gBAAAI,EAAAC,GAAA,EACE,UAAC,gBAAAD,EAAAF,EAAW,SAAX,EAAmB,IAAG,MAAM,UAAA,EAAE,WAAW,EAAA,CAAE,EAC9C,CAAA;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IncludeDeductionsForm: () => import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as n } from "react-i18next";
|
|
3
|
+
import { useDeductions as t } from "./useDeductions.js";
|
|
4
|
+
import { RadioGroupField as u } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
|
|
5
|
+
const l = () => {
|
|
6
|
+
const { mode: o } = t(), { t: e } = n("Employee.Deductions");
|
|
7
|
+
if (o === "INITIAL")
|
|
8
|
+
return /* @__PURE__ */ i(
|
|
9
|
+
u,
|
|
10
|
+
{
|
|
11
|
+
name: "includeDeductions",
|
|
12
|
+
label: e("includeDeductionsFormLabel"),
|
|
13
|
+
description: e("includeDeductionsDescription"),
|
|
14
|
+
options: [
|
|
15
|
+
{ value: "Yes", label: e("includeDeductionsYes") },
|
|
16
|
+
{ value: "No", label: e("includeDeductionsNo") }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
l as IncludeDeductionsForm
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=IncludeDeductionsForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IncludeDeductionsForm.js","sources":["../../../../src/components/Employee/Deductions/IncludeDeductionsForm.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDeductions } from './useDeductions'\nimport { RadioGroupField } from '@/components/Common'\n\nexport const IncludeDeductionsForm = () => {\n const { mode } = useDeductions()\n const { t } = useTranslation('Employee.Deductions')\n if (mode !== 'INITIAL') return\n return (\n <RadioGroupField\n name=\"includeDeductions\"\n label={t('includeDeductionsFormLabel')}\n description={t('includeDeductionsDescription')}\n options={[\n { value: 'Yes', label: t('includeDeductionsYes') },\n { value: 'No', label: t('includeDeductionsNo') },\n ]}\n />\n )\n}\n"],"names":["IncludeDeductionsForm","mode","useDeductions","t","useTranslation","jsx","RadioGroupField"],"mappings":";;;;AAIO,MAAMA,IAAwB,MAAM;AACnC,QAAA,EAAE,MAAAC,EAAK,IAAIC,EAAc,GACzB,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAClD,MAAIH,MAAS;AAEX,WAAA,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOH,EAAE,4BAA4B;AAAA,QACrC,aAAaA,EAAE,8BAA8B;AAAA,QAC7C,SAAS;AAAA,UACP,EAAE,OAAO,OAAO,OAAOA,EAAE,sBAAsB,EAAE;AAAA,UACjD,EAAE,OAAO,MAAM,OAAOA,EAAE,qBAAqB,EAAE;AAAA,QAAA;AAAA,MACjD;AAAA,IACF;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Deductions';
|