@gusto/embedded-react-sdk 0.11.1 → 0.11.2
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 +13 -0
- package/dist/assets/icons/alert-circle.svg.js.map +1 -1
- package/dist/assets/icons/caret-down.svg.js +1 -1
- package/dist/assets/icons/caret-down.svg.js.map +1 -1
- package/dist/assets/icons/caret-left.svg.js.map +1 -1
- package/dist/assets/icons/caret-right.svg.js.map +1 -1
- package/dist/assets/icons/checkbox.svg.js.map +1 -1
- package/dist/assets/icons/error.svg.js.map +1 -1
- package/dist/assets/icons/hamburger.svg.js.map +1 -1
- package/dist/assets/icons/info.svg.js.map +1 -1
- package/dist/assets/icons/list.svg.js.map +1 -1
- package/dist/assets/icons/magnifyingGlass.png.js.map +1 -1
- package/dist/assets/icons/pagination_next.svg.js.map +1 -1
- package/dist/assets/icons/pagination_previous.svg.js.map +1 -1
- package/dist/assets/icons/pencil.svg.js.map +1 -1
- package/dist/assets/icons/success_check.svg.js.map +1 -1
- package/dist/assets/icons/trashcan.svg.js.map +1 -1
- package/dist/assets/icons/unchecked_circular.svg.js.map +1 -1
- package/dist/assets/icons/verification_pending.svg.js.map +1 -1
- package/dist/assets/icons/warning.svg.js.map +1 -1
- package/dist/components/Base/Base.js +19 -18
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Base/createCompoundContext.js.map +1 -1
- package/dist/components/Base/useBase.js.map +1 -1
- package/dist/components/Common/ActionsLayout/ActionsLayout.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataView.js.map +1 -1
- package/dist/components/Common/DataView/useDataView.js.map +1 -1
- package/dist/components/Common/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Common/DocumentViewer/DocumentViewer.js.map +1 -1
- package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
- package/dist/components/Common/FadeIn/FadeIn.js.map +1 -1
- package/dist/components/Common/FieldCaption/FieldCaption.js +7 -4
- package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
- package/dist/components/Common/FieldCaption/FieldCaption.module.scss.js +1 -1
- package/dist/components/Common/FieldDescription/FieldDescription.js.map +1 -1
- package/dist/components/Common/FieldDescription/FieldDescription.module.scss.js +1 -1
- package/dist/components/Common/FieldErrorMessage/FieldErrorMessage.js.map +1 -1
- package/dist/components/Common/FieldErrorMessage/FieldErrorMessage.module.scss.js +1 -1
- package/dist/components/Common/FieldLayout/FieldLayout.js.map +1 -1
- package/dist/components/Common/FieldLayout/FieldLayout.module.scss.js +11 -11
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +1 -0
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +35 -20
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
- package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
- package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
- package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -1
- package/dist/components/Common/Fieldset/Fieldset.js.map +1 -1
- package/dist/components/Common/Flex/Flex.js.map +1 -1
- package/dist/components/Common/Form/Form.js.map +1 -1
- package/dist/components/Common/Grid/Grid.js.map +1 -1
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.js.map +1 -1
- package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.js.map +1 -1
- package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.module.scss.js +1 -1
- package/dist/components/Common/InternalError/InternalError.js.map +1 -1
- package/dist/components/Common/Loading/Loading.js.map +1 -1
- package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- package/dist/components/Common/ReorderableList/DropZone.js.map +1 -1
- package/dist/components/Common/ReorderableList/ReorderableItem.js.map +1 -1
- package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
- package/dist/components/Common/RequirementsList/RequirementsList.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +6 -4
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +12 -10
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +8 -6
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
- package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.module.scss.js +1 -1
- package/dist/components/Common/UI/Badge/Badge.js +4 -4
- package/dist/components/Common/UI/Badge/Badge.js.map +1 -1
- package/dist/components/Common/UI/Badge/Badge.module.scss.js +4 -4
- package/dist/components/Common/UI/Button/Button.d.ts +1 -1
- package/dist/components/Common/UI/Button/Button.js +22 -24
- package/dist/components/Common/UI/Button/Button.js.map +1 -1
- package/dist/components/Common/UI/Button/Button.module.scss.js +1 -1
- package/dist/components/Common/UI/Button/ButtonIcon.d.ts +1 -1
- package/dist/components/Common/UI/Button/ButtonIcon.js +7 -5
- package/dist/components/Common/UI/Button/ButtonIcon.js.map +1 -1
- package/dist/components/Common/UI/Button/ButtonIcon.module.scss.js +8 -0
- package/dist/components/Common/UI/Button/ButtonIcon.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Button/ButtonTypes.d.ts +2 -6
- package/dist/components/Common/UI/CalendarPreview/CalendarLegend.js.map +1 -1
- package/dist/components/Common/UI/CalendarPreview/CalendarPreview.js.map +1 -1
- package/dist/components/Common/UI/Card/Card.js.map +1 -1
- package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +8 -8
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.module.scss.js +1 -1
- package/dist/components/Common/UI/ComboBox/ComboBox.js +36 -36
- package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +1 -1
- package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +8 -8
- package/dist/components/Common/UI/Heading/Heading.js.map +1 -1
- package/dist/components/Common/UI/Heading/Heading.module.scss.js +11 -11
- package/dist/components/Common/UI/Input/Input.js.map +1 -1
- package/dist/components/Common/UI/Input/Input.module.scss.js +10 -10
- package/dist/components/Common/UI/Link/Link.js.map +1 -1
- package/dist/components/Common/UI/List/OrderedList.js.map +1 -1
- package/dist/components/Common/UI/List/UnorderedList.js.map +1 -1
- package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/Common/UI/Radio/Radio.js.map +1 -1
- package/dist/components/Common/UI/Radio/Radio.module.scss.js +1 -1
- package/dist/components/Common/UI/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/Common/UI/RadioGroup/RadioGroup.module.scss.js +1 -1
- package/dist/components/Common/UI/Select/Select.js +13 -13
- package/dist/components/Common/UI/Select/Select.js.map +1 -1
- package/dist/components/Common/UI/Select/Select.module.scss.js +1 -1
- package/dist/components/Common/UI/Switch/Switch.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.js.map +1 -1
- package/dist/components/Common/UI/Text/Text.js.map +1 -1
- package/dist/components/Common/UI/Text/Text.module.scss.js +16 -20
- package/dist/components/Common/UI/Text/Text.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Text/TextTypes.d.ts +1 -1
- package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
- package/dist/components/Common/UI/hooks/useFieldIds.js.map +1 -1
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/dist/components/Common/hooks/useAsyncError.js.map +1 -1
- package/dist/components/Common/hooks/useMenu.js.map +1 -1
- package/dist/components/Common/hooks/useNumberFormatter.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +3 -2
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +8 -6
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +10 -8
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +11 -11
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Schema.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/Head.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +8 -6
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/SignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/TitleSelect.js +8 -7
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +1 -1
- package/dist/components/Company/BankAccount/BankAccount.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountComponents.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +11 -9
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Head.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/AccountView.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +12 -10
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Head.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +13 -11
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -4
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Head.js.map +1 -1
- package/dist/components/Company/BankAccount/stateMachine.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +7 -5
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +7 -6
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Head.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/ManageSignatories.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentSigner.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Head.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/Preview.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +3 -2
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/assignSignatoryState.js.map +1 -1
- package/dist/components/Company/DocumentSigner/documentSignerStateMachine.js.map +1 -1
- package/dist/components/Company/DocumentSigner/stateMachine.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +9 -7
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +7 -6
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +5 -3
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Head.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +7 -5
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +1 -1
- package/dist/components/Company/Industry/Edit.js +12 -10
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Industry/Head.js.map +1 -1
- package/dist/components/Company/Industry/Industry.js.map +1 -1
- package/dist/components/Company/Industry/IndustrySelect.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +8 -6
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Head.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -3
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/Locations.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +8 -6
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Head.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +4 -2
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +9 -8
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/Locations/locationsStateMachine.js.map +1 -1
- package/dist/components/Company/Locations/stateMachine.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +14 -12
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +8 -6
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +3 -2
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +33 -31
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +12 -10
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +51 -52
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +8 -6
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +15 -13
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +0 -3
- package/dist/components/Company/PaySchedule/usePaySchedule.js +8 -9
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxes.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesComponents.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +7 -5
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Head.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +8 -6
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Head.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +7 -5
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +1 -1
- package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js.map +1 -1
- package/dist/components/Contractor/Address/Actions.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +5 -4
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +1 -1
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/Head.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +1 -1
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/List/index.js.map +1 -1
- package/dist/components/Contractor/List/useContractorList.js.map +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +17 -16
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +7 -5
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +3 -2
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +10 -10
- package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
- package/dist/components/Contractor/Profile/useContractorProfile.js +1 -1
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/ContractorSubmitWithApi.js.map +1 -1
- package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
- package/dist/components/Contractor/Submit/index.js +11 -9
- package/dist/components/Contractor/Submit/index.js.map +1 -1
- package/dist/components/Employee/Compensation/Actions.js +6 -5
- package/dist/components/Employee/Compensation/Actions.js.map +1 -1
- package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +15 -14
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/Head.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +25 -23
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Compensation/useCompensation.js.map +1 -1
- package/dist/components/Employee/Deductions/Actions.js +12 -10
- package/dist/components/Employee/Deductions/Actions.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionForm.js +12 -10
- package/dist/components/Employee/Deductions/DeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsList.js +7 -5
- package/dist/components/Employee/Deductions/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/Head.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductionsForm.js +9 -7
- package/dist/components/Employee/Deductions/IncludeDeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/useDeductions.js +1 -1
- package/dist/components/Employee/Deductions/useDeductions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +8 -6
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +7 -6
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Head.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +8 -7
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +1 -1
- package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +6 -4
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +7 -5
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +15 -14
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +1 -1
- package/dist/components/Employee/Landing/Landing.js +13 -12
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Actions.js +9 -7
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccount.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +6 -5
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +10 -8
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Head.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +3 -2
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +11 -10
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/Actions.js +9 -7
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +10 -9
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/Head.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/SelfPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/WorkAddress.js.map +1 -1
- package/dist/components/Employee/Profile/getEmployeeAddressForProfile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +10 -8
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +14 -12
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalHead.js.map +1 -1
- package/dist/components/Employee/Taxes/StateForm.js.map +1 -1
- package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +1 -1
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/Flow/useFlow.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.d.ts +5 -2
- package/dist/contexts/ApiProvider/ApiProvider.js +34 -30
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ComponentAdapter/ComponentsProvider.js.map +1 -1
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +3 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +16 -14
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/GustoProvider/SDKI18next.js.map +1 -1
- package/dist/contexts/GustoProvider/index.d.ts +2 -0
- package/dist/contexts/LoadingIndicatorProvider/LoadingIndicatorProvider.js.map +1 -1
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
- package/dist/contexts/LocaleProvider/LocaleProvider.js.map +1 -1
- package/dist/contexts/LocaleProvider/useLocale.js.map +1 -1
- package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +4 -1
- package/dist/contexts/ThemeProvider/ThemeProvider.js +60 -22
- package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/contexts/ThemeProvider/createTheme.d.ts +0 -1
- package/dist/contexts/ThemeProvider/createTheme.js +14 -16
- package/dist/contexts/ThemeProvider/createTheme.js.map +1 -1
- package/dist/contexts/ThemeProvider/theme.d.ts +59 -0
- package/dist/contexts/ThemeProvider/theme.js +101 -0
- package/dist/contexts/ThemeProvider/theme.js.map +1 -0
- package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
- package/dist/contexts/index.d.ts +4 -0
- package/dist/helpers/LRUCache.js.map +1 -1
- package/dist/helpers/dateFormatting.d.ts +10 -2
- package/dist/helpers/dateFormatting.js +30 -7
- package/dist/helpers/dateFormatting.js.map +1 -1
- package/dist/helpers/dateFormatting.test.d.ts +1 -0
- package/dist/helpers/ensureRequired.js.map +1 -1
- package/dist/helpers/federalEin.js.map +1 -1
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/helpers/getDataProps.js.map +1 -1
- package/dist/helpers/mask.js.map +1 -1
- package/dist/helpers/payRateCalculator.js.map +1 -1
- package/dist/helpers/rem.js +2 -3
- package/dist/helpers/rem.js.map +1 -1
- package/dist/helpers/responsive.js.map +1 -1
- package/dist/helpers/ssn.js.map +1 -1
- package/dist/helpers/validations.js.map +1 -1
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.js.map +1 -1
- package/dist/hooks/useForkRef/useForkRef.js.map +1 -1
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.AddBank.json.js +12 -12
- package/dist/i18n/en/Company.Addresses.json.js +12 -12
- package/dist/i18n/en/Company.AssignSignatory.json.js +5 -54
- package/dist/i18n/en/Company.AssignSignatory.json.js.map +1 -1
- package/dist/i18n/en/Company.BankAccount.json.js +19 -40
- package/dist/i18n/en/Company.BankAccount.json.js.map +1 -1
- package/dist/i18n/en/Company.DocumentList.json.js +15 -15
- package/dist/i18n/en/Company.FederalTaxes.json.js +16 -32
- package/dist/i18n/en/Company.FederalTaxes.json.js.map +1 -1
- package/dist/i18n/en/Company.Locations.json.js +43 -49
- package/dist/i18n/en/Company.Locations.json.js.map +1 -1
- package/dist/i18n/en/Company.OnboardingOverview.json.js +14 -36
- package/dist/i18n/en/Company.OnboardingOverview.json.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +1 -44
- package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
- package/dist/i18n/en/Company.SignatureForm.json.js +9 -9
- package/dist/i18n/en/Company.StateTaxes.json.js +1 -25
- package/dist/i18n/en/Company.StateTaxes.json.js.map +1 -1
- package/dist/i18n/en/Contractor.Address.json.js +19 -24
- package/dist/i18n/en/Contractor.Address.json.js.map +1 -1
- package/dist/i18n/en/Contractor.ContractorList.json.js +9 -12
- package/dist/i18n/en/Contractor.ContractorList.json.js.map +1 -1
- package/dist/i18n/en/Contractor.ContractorSubmit.json.js +10 -14
- package/dist/i18n/en/Contractor.ContractorSubmit.json.js.map +1 -1
- package/dist/i18n/en/Contractor.NewHireReport.json.js +5 -7
- package/dist/i18n/en/Contractor.NewHireReport.json.js.map +1 -1
- package/dist/i18n/en/Contractor.PaymentMethod.json.js +4 -17
- package/dist/i18n/en/Contractor.PaymentMethod.json.js.map +1 -1
- package/dist/i18n/en/Contractor.Profile.json.js +1 -58
- package/dist/i18n/en/Contractor.Profile.json.js.map +1 -1
- package/dist/i18n/en/Employee.BankAccount.json.js +17 -19
- package/dist/i18n/en/Employee.BankAccount.json.js.map +1 -1
- package/dist/i18n/en/Employee.Compensation.json.js +31 -65
- package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
- package/dist/i18n/en/Employee.Deductions.json.js +56 -59
- package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
- package/dist/i18n/en/Employee.DocumentSigner.json.js +23 -23
- package/dist/i18n/en/Employee.EmployeeList.json.js +29 -29
- package/dist/i18n/en/Employee.HomeAddress.json.js +23 -28
- package/dist/i18n/en/Employee.HomeAddress.json.js.map +1 -1
- package/dist/i18n/en/Employee.Landing.json.js +11 -15
- package/dist/i18n/en/Employee.Landing.json.js.map +1 -1
- package/dist/i18n/en/Employee.OnboardingSummary.json.js +6 -28
- package/dist/i18n/en/Employee.OnboardingSummary.json.js.map +1 -1
- package/dist/i18n/en/Employee.PaySchedules.json.js +1 -5
- package/dist/i18n/en/Employee.PaySchedules.json.js.map +1 -1
- package/dist/i18n/en/Employee.PaymentMethod.json.js +29 -36
- package/dist/i18n/en/Employee.PaymentMethod.json.js.map +1 -1
- package/dist/i18n/en/Employee.Profile.json.js +16 -22
- package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
- package/dist/i18n/en/Employee.SplitPaycheck.json.js +21 -25
- package/dist/i18n/en/Employee.SplitPaycheck.json.js.map +1 -1
- package/dist/i18n/en/Employee.StateTaxes.json.js +4 -4
- package/dist/i18n/en/Employee.Taxes.json.js +26 -29
- package/dist/i18n/en/Employee.Taxes.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollHistoryList.json.js +9 -9
- package/dist/i18n/en/common.json.d.ts +1 -1
- package/dist/i18n/en/common.json.js +1 -147
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/models/NAICSValues.js.map +1 -1
- package/dist/models/WA_RISK_CODES.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/GTheme.d.ts +0 -1
- package/dist/types/hooks.d.ts +36 -0
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formattedStrings.js","sources":["../../src/helpers/formattedStrings.ts"],"sourcesContent":["import DOMPurify from 'dompurify'\nimport { type Location } from '@gusto/embedded-api/models/components/location'\nimport { type EmployeeAddress } from '@gusto/embedded-api/models/components/employeeaddress'\n\nconst capitalize = (word: string) => word.charAt(0).toLocaleUpperCase() + word.slice(1)\n\nexport const firstLastName = ({\n first_name,\n last_name,\n}: {\n first_name?: string | null\n last_name?: string | null\n}) =>\n `${first_name ? capitalize(first_name) : ''}${last_name ? maybeString(capitalize(last_name)) : ''}`\n\nconst maybeString = (str: string | null | undefined) => {\n return str ? ` ${str}` : ''\n}\n\nexport const getStreet = (address: EmployeeAddress | Location) => {\n const street1 = maybeString(address.street1)\n const street2 = maybeString(address.street2)\n\n return `${street1},${street2}`\n}\n\nexport const getCityStateZip = (address: EmployeeAddress | Location) =>\n `${maybeString(address.city)}, ${maybeString(address.state)} ${maybeString(address.zip)}`\n\nexport const addressInline = (address: EmployeeAddress | Location) =>\n `${getStreet(address)} ${getCityStateZip(address)}`\n\nexport const currentDateString = () => {\n const d = new Date()\n const dateString = `${String(d.getFullYear())}-${('0' + String(d.getMonth() + 1)).slice(-2)}-${('0' + String(d.getDate())).slice(-2)}`\n return dateString\n}\n\nexport function isNumberKey({ which, keyCode }: KeyboardEvent) {\n const charCode = which ? which : keyCode\n if (charCode > 31 && charCode != 46 && (charCode < 48 || charCode > 57)) return false\n return true\n}\n\nexport const booleanToString = (value: boolean) => (value ? 'true' : 'false')\n\nexport const amountStr = (amount: string, isPercentage: boolean) =>\n isPercentage ? `${amount}%` : `$${amount}`\n\nconst dompurifyConfig = { ALLOWED_TAGS: ['a', 'b', 'strong'], ALLOWED_ATTR: ['href', 'target'] }\nexport function createMarkup(dirty: string) {\n if (!dirty) return { __html: '' }\n return { __html: DOMPurify.sanitize(dirty, dompurifyConfig) }\n}\n\nexport const removeNonDigits = (value: string): string => {\n return value.replace(/\\D/g, '')\n}\n\nexport const snakeCaseToCamelCase = (s: string) => {\n return s.replace(/_([a-z])/g, (_: string, char: string) => char.toUpperCase())\n}\n\nexport const camelCaseToSnakeCase = (s: string) => {\n return s\n .replace(\n /([a-z0-9])([A-Z])/g,\n (_: string, group1: string, group2: string) => `${group1}_${group2.toLowerCase()}`,\n )\n .replace(\n /([A-Z])([A-Z])(?=[a-z])/g,\n (_: string, group1: string, group2: string) =>\n `${group1.toLowerCase()}_${group2.toLowerCase()}`,\n )\n .toLowerCase()\n}\n"],"names":["capitalize","word","firstLastName","first_name","last_name","maybeString","str","getStreet","address","street1","street2","getCityStateZip","addressInline","dompurifyConfig","createMarkup","dirty","DOMPurify","removeNonDigits","value","snakeCaseToCamelCase","s","_","char"],"mappings":";AAIA,MAAMA,IAAa,CAACC,MAAiBA,EAAK,OAAO,CAAC,EAAE,sBAAsBA,EAAK,MAAM,CAAC,GAEzEC,IAAgB,CAAC;AAAA,EAC5B,YAAAC;AAAA,EACA,WAAAC;AACF,MAIE,GAAGD,IAAaH,EAAWG,CAAU,IAAI,EAAE,GAAGC,IAAYC,EAAYL,EAAWI,CAAS,CAAC,IAAI,EAAE,IAE7FC,IAAc,CAACC,MACZA,IAAM,IAAIA,CAAG,KAAK,IAGdC,IAAY,CAACC,MAAwC;
|
|
1
|
+
{"version":3,"file":"formattedStrings.js","sources":["../../src/helpers/formattedStrings.ts"],"sourcesContent":["import DOMPurify from 'dompurify'\nimport { type Location } from '@gusto/embedded-api/models/components/location'\nimport { type EmployeeAddress } from '@gusto/embedded-api/models/components/employeeaddress'\n\nconst capitalize = (word: string) => word.charAt(0).toLocaleUpperCase() + word.slice(1)\n\nexport const firstLastName = ({\n first_name,\n last_name,\n}: {\n first_name?: string | null\n last_name?: string | null\n}) =>\n `${first_name ? capitalize(first_name) : ''}${last_name ? maybeString(capitalize(last_name)) : ''}`\n\nconst maybeString = (str: string | null | undefined) => {\n return str ? ` ${str}` : ''\n}\n\nexport const getStreet = (address: EmployeeAddress | Location) => {\n const street1 = maybeString(address.street1)\n const street2 = maybeString(address.street2)\n\n return `${street1},${street2}`\n}\n\nexport const getCityStateZip = (address: EmployeeAddress | Location) =>\n `${maybeString(address.city)}, ${maybeString(address.state)} ${maybeString(address.zip)}`\n\nexport const addressInline = (address: EmployeeAddress | Location) =>\n `${getStreet(address)} ${getCityStateZip(address)}`\n\nexport const currentDateString = () => {\n const d = new Date()\n const dateString = `${String(d.getFullYear())}-${('0' + String(d.getMonth() + 1)).slice(-2)}-${('0' + String(d.getDate())).slice(-2)}`\n return dateString\n}\n\nexport function isNumberKey({ which, keyCode }: KeyboardEvent) {\n const charCode = which ? which : keyCode\n if (charCode > 31 && charCode != 46 && (charCode < 48 || charCode > 57)) return false\n return true\n}\n\nexport const booleanToString = (value: boolean) => (value ? 'true' : 'false')\n\nexport const amountStr = (amount: string, isPercentage: boolean) =>\n isPercentage ? `${amount}%` : `$${amount}`\n\nconst dompurifyConfig = { ALLOWED_TAGS: ['a', 'b', 'strong'], ALLOWED_ATTR: ['href', 'target'] }\nexport function createMarkup(dirty: string) {\n if (!dirty) return { __html: '' }\n return { __html: DOMPurify.sanitize(dirty, dompurifyConfig) }\n}\n\nexport const removeNonDigits = (value: string): string => {\n return value.replace(/\\D/g, '')\n}\n\nexport const snakeCaseToCamelCase = (s: string) => {\n return s.replace(/_([a-z])/g, (_: string, char: string) => char.toUpperCase())\n}\n\nexport const camelCaseToSnakeCase = (s: string) => {\n return s\n .replace(\n /([a-z0-9])([A-Z])/g,\n (_: string, group1: string, group2: string) => `${group1}_${group2.toLowerCase()}`,\n )\n .replace(\n /([A-Z])([A-Z])(?=[a-z])/g,\n (_: string, group1: string, group2: string) =>\n `${group1.toLowerCase()}_${group2.toLowerCase()}`,\n )\n .toLowerCase()\n}\n"],"names":["capitalize","word","firstLastName","first_name","last_name","maybeString","str","getStreet","address","street1","street2","getCityStateZip","addressInline","dompurifyConfig","createMarkup","dirty","DOMPurify","removeNonDigits","value","snakeCaseToCamelCase","s","_","char"],"mappings":";AAIA,MAAMA,IAAa,CAACC,MAAiBA,EAAK,OAAO,CAAC,EAAE,sBAAsBA,EAAK,MAAM,CAAC,GAEzEC,IAAgB,CAAC;AAAA,EAC5B,YAAAC;AAAA,EACA,WAAAC;AACF,MAIE,GAAGD,IAAaH,EAAWG,CAAU,IAAI,EAAE,GAAGC,IAAYC,EAAYL,EAAWI,CAAS,CAAC,IAAI,EAAE,IAE7FC,IAAc,CAACC,MACZA,IAAM,IAAIA,CAAG,KAAK,IAGdC,IAAY,CAACC,MAAwC;AAChE,QAAMC,IAAUJ,EAAYG,EAAQ,OAAO,GACrCE,IAAUL,EAAYG,EAAQ,OAAO;AAE3C,SAAO,GAAGC,CAAO,IAAIC,CAAO;AAC9B,GAEaC,IAAkB,CAACH,MAC9B,GAAGH,EAAYG,EAAQ,IAAI,CAAC,KAAKH,EAAYG,EAAQ,KAAK,CAAC,IAAIH,EAAYG,EAAQ,GAAG,CAAC,IAE5EI,IAAgB,CAACJ,MAC5B,GAAGD,EAAUC,CAAO,CAAC,IAAIG,EAAgBH,CAAO,CAAC,IAmB7CK,IAAkB,EAAE,cAAc,CAAC,KAAK,KAAK,QAAQ,GAAG,cAAc,CAAC,QAAQ,QAAQ,EAAA;AACtF,SAASC,EAAaC,GAAe;AAC1C,SAAKA,IACE,EAAE,QAAQC,EAAU,SAASD,GAAOF,CAAe,EAAA,IADvC,EAAE,QAAQ,GAAA;AAE/B;AAEO,MAAMI,IAAkB,CAACC,MACvBA,EAAM,QAAQ,OAAO,EAAE,GAGnBC,IAAuB,CAACC,MAC5BA,EAAE,QAAQ,aAAa,CAACC,GAAWC,MAAiBA,EAAK,aAAa;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDataProps.js","sources":["../../src/helpers/getDataProps.ts"],"sourcesContent":["import type { DataAttributes } from '@/types/Helpers'\n\ntype DataAttributeEntry = [key: keyof DataAttributes, value: DataAttributes[keyof DataAttributes]]\n\nconst isDataProp = (entry: [string, unknown]): entry is DataAttributeEntry => {\n const [key, value] = entry\n return (\n key.startsWith('data-') &&\n (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean')\n )\n}\n\nexport function getDataProps(props: Record<string, unknown>): DataAttributes {\n const result: DataAttributes = {}\n\n Object.entries(props).forEach(entry => {\n if (isDataProp(entry)) {\n const [key, value] = entry\n result[key] = value\n }\n })\n\n return result\n}\n"],"names":["isDataProp","entry","key","value","getDataProps","props","result"],"mappings":"AAIA,MAAMA,IAAa,CAACC,MAA0D;
|
|
1
|
+
{"version":3,"file":"getDataProps.js","sources":["../../src/helpers/getDataProps.ts"],"sourcesContent":["import type { DataAttributes } from '@/types/Helpers'\n\ntype DataAttributeEntry = [key: keyof DataAttributes, value: DataAttributes[keyof DataAttributes]]\n\nconst isDataProp = (entry: [string, unknown]): entry is DataAttributeEntry => {\n const [key, value] = entry\n return (\n key.startsWith('data-') &&\n (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean')\n )\n}\n\nexport function getDataProps(props: Record<string, unknown>): DataAttributes {\n const result: DataAttributes = {}\n\n Object.entries(props).forEach(entry => {\n if (isDataProp(entry)) {\n const [key, value] = entry\n result[key] = value\n }\n })\n\n return result\n}\n"],"names":["isDataProp","entry","key","value","getDataProps","props","result"],"mappings":"AAIA,MAAMA,IAAa,CAACC,MAA0D;AAC5E,QAAM,CAACC,GAAKC,CAAK,IAAIF;AACrB,SACEC,EAAI,WAAW,OAAO,MACrB,OAAOC,KAAU,YAAY,OAAOA,KAAU,YAAY,OAAOA,KAAU;AAEhF;AAEO,SAASC,EAAaC,GAAgD;AAC3E,QAAMC,IAAyB,CAAA;AAE/B,gBAAO,QAAQD,CAAK,EAAE,QAAQ,CAAAJ,MAAS;AACrC,QAAID,EAAWC,CAAK,GAAG;AACrB,YAAM,CAACC,GAAKC,CAAK,IAAIF;AACrB,MAAAK,EAAOJ,CAAG,IAAIC;AAAA,IAChB;AAAA,EACF,CAAC,GAEMG;AACT;"}
|
package/dist/helpers/mask.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mask.js","sources":["../../src/helpers/mask.ts"],"sourcesContent":["import type { Transform } from '@/components/Common/Fields/hooks/useField'\n\n/**\n * Formats a string according to a specified mask pattern.\n * @param value - The input string to format\n * @param mask - The mask pattern where:\n * # represents a digit (\\d)\n * @ represents a letter ([a-zA-Z])\n * ^ represents an uppercase letter ([A-Z])\n * % represents a digit or uppercase letter ([0-9A-Z])\n * any other character represents the literal character\n * @returns The formatted string according to the mask\n * @example\n * formatWithMask('123456789', '###-##-####') // returns '123-45-6789'\n * formatWithMask('ABC123', '@@@-###') // returns 'ABC-123'\n * formatWithMask('123456', '(###) ###-####') // returns '(123) 456'\n * formatWithMask('ABC123', '^^^-###') // returns 'ABC-123'\n * formatWithMask('A1B2C3', '%%%-%%%') // returns 'A1B-2C3'\n */\nexport const formatWithMask = (value: string, mask: string | null): string => {\n if (!value || !mask) return value\n\n // Remove all non-alphanumeric characters from the input\n const sanitizedValue = value.replace(/[^a-zA-Z0-9]/g, '')\n if (!sanitizedValue) return ''\n\n let result = ''\n let valueIndex = 0\n let maskIndex = 0\n\n while (maskIndex < mask.length) {\n const maskChar = mask.charAt(maskIndex)\n const valueChar = sanitizedValue.charAt(valueIndex)\n\n // If we've processed all input characters, stop\n if (valueIndex >= sanitizedValue.length) {\n break\n }\n\n switch (maskChar) {\n case '#':\n if (/\\d/.test(valueChar)) {\n result += valueChar\n valueIndex++\n } else {\n valueIndex++\n maskIndex--\n }\n break\n case '@':\n if (/[a-zA-Z]/.test(valueChar)) {\n result += valueChar\n valueIndex++\n } else {\n valueIndex++\n maskIndex--\n }\n break\n case '^':\n if (/[A-Z]/.test(valueChar)) {\n result += valueChar\n valueIndex++\n } else {\n valueIndex++\n maskIndex--\n }\n break\n case '%':\n if (/[0-9A-Z]/.test(valueChar)) {\n result += valueChar\n valueIndex++\n } else {\n valueIndex++\n maskIndex--\n }\n break\n default:\n // Always add literal characters from the mask\n result += maskChar\n // Increment valueIndex only if the current input character matches the literal mask character.\n if (maskChar === valueChar) {\n valueIndex++\n }\n }\n maskIndex++\n }\n\n return result.trim()\n}\n\nexport const useMaskedTransform = (mask: string | null): Transform<string> => {\n return (value: string) => formatWithMask(value, mask)\n}\n\nexport const commonMasks = {\n phoneMask: '(###) ###-####',\n}\n"],"names":["formatWithMask","value","mask","sanitizedValue","result","valueIndex","maskIndex","maskChar","valueChar","useMaskedTransform","commonMasks"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mask.js","sources":["../../src/helpers/mask.ts"],"sourcesContent":["import type { Transform } from '@/components/Common/Fields/hooks/useField'\n\n/**\n * Formats a string according to a specified mask pattern.\n * @param value - The input string to format\n * @param mask - The mask pattern where:\n * # represents a digit (\\d)\n * @ represents a letter ([a-zA-Z])\n * ^ represents an uppercase letter ([A-Z])\n * % represents a digit or uppercase letter ([0-9A-Z])\n * any other character represents the literal character\n * @returns The formatted string according to the mask\n * @example\n * formatWithMask('123456789', '###-##-####') // returns '123-45-6789'\n * formatWithMask('ABC123', '@@@-###') // returns 'ABC-123'\n * formatWithMask('123456', '(###) ###-####') // returns '(123) 456'\n * formatWithMask('ABC123', '^^^-###') // returns 'ABC-123'\n * formatWithMask('A1B2C3', '%%%-%%%') // returns 'A1B-2C3'\n */\nexport const formatWithMask = (value: string, mask: string | null): string => {\n if (!value || !mask) return value\n\n // Remove all non-alphanumeric characters from the input\n const sanitizedValue = value.replace(/[^a-zA-Z0-9]/g, '')\n if (!sanitizedValue) return ''\n\n let result = ''\n let valueIndex = 0\n let maskIndex = 0\n\n while (maskIndex < mask.length) {\n const maskChar = mask.charAt(maskIndex)\n const valueChar = sanitizedValue.charAt(valueIndex)\n\n // If we've processed all input characters, stop\n if (valueIndex >= sanitizedValue.length) {\n break\n }\n\n switch (maskChar) {\n case '#':\n if (/\\d/.test(valueChar)) {\n result += valueChar\n valueIndex++\n } else {\n valueIndex++\n maskIndex--\n }\n break\n case '@':\n if (/[a-zA-Z]/.test(valueChar)) {\n result += valueChar\n valueIndex++\n } else {\n valueIndex++\n maskIndex--\n }\n break\n case '^':\n if (/[A-Z]/.test(valueChar)) {\n result += valueChar\n valueIndex++\n } else {\n valueIndex++\n maskIndex--\n }\n break\n case '%':\n if (/[0-9A-Z]/.test(valueChar)) {\n result += valueChar\n valueIndex++\n } else {\n valueIndex++\n maskIndex--\n }\n break\n default:\n // Always add literal characters from the mask\n result += maskChar\n // Increment valueIndex only if the current input character matches the literal mask character.\n if (maskChar === valueChar) {\n valueIndex++\n }\n }\n maskIndex++\n }\n\n return result.trim()\n}\n\nexport const useMaskedTransform = (mask: string | null): Transform<string> => {\n return (value: string) => formatWithMask(value, mask)\n}\n\nexport const commonMasks = {\n phoneMask: '(###) ###-####',\n}\n"],"names":["formatWithMask","value","mask","sanitizedValue","result","valueIndex","maskIndex","maskChar","valueChar","useMaskedTransform","commonMasks"],"mappings":"AAmBO,MAAMA,IAAiB,CAACC,GAAeC,MAAgC;AAC5E,MAAI,CAACD,KAAS,CAACC,EAAM,QAAOD;AAG5B,QAAME,IAAiBF,EAAM,QAAQ,iBAAiB,EAAE;AACxD,MAAI,CAACE,EAAgB,QAAO;AAE5B,MAAIC,IAAS,IACTC,IAAa,GACbC,IAAY;AAEhB,SAAOA,IAAYJ,EAAK,UAAQ;AAC9B,UAAMK,IAAWL,EAAK,OAAOI,CAAS,GAChCE,IAAYL,EAAe,OAAOE,CAAU;AAGlD,QAAIA,KAAcF,EAAe;AAC/B;AAGF,YAAQI,GAAA;AAAA,MACN,KAAK;AACH,QAAI,KAAK,KAAKC,CAAS,KACrBJ,KAAUI,GACVH,QAEAA,KACAC;AAEF;AAAA,MACF,KAAK;AACH,QAAI,WAAW,KAAKE,CAAS,KAC3BJ,KAAUI,GACVH,QAEAA,KACAC;AAEF;AAAA,MACF,KAAK;AACH,QAAI,QAAQ,KAAKE,CAAS,KACxBJ,KAAUI,GACVH,QAEAA,KACAC;AAEF;AAAA,MACF,KAAK;AACH,QAAI,WAAW,KAAKE,CAAS,KAC3BJ,KAAUI,GACVH,QAEAA,KACAC;AAEF;AAAA,MACF;AAEE,QAAAF,KAAUG,GAENA,MAAaC,KACfH;AAAA,IACF;AAEJ,IAAAC;AAAA,EACF;AAEA,SAAOF,EAAO,KAAA;AAChB,GAEaK,IAAqB,CAACP,MAC1B,CAACD,MAAkBD,EAAeC,GAAOC,CAAI,GAGzCQ,IAAc;AAAA,EACzB,WAAW;AACb;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payRateCalculator.js","sources":["../../src/helpers/payRateCalculator.ts"],"sourcesContent":["import {\n HOURS_PER_PAY_PERIOD_ANNUALLY,\n HOURS_PER_PAY_PERIOD_MONTHLY,\n HOURS_PER_PAY_PERIOD_WEEKLY,\n} from '@/shared/constants'\n\nexport const hourlyRate = (\n amount: number,\n paymentUnit: 'Hour' | 'Week' | 'Month' | 'Year' | 'Paycheck',\n) => {\n switch (paymentUnit) {\n case 'Hour':\n return amount\n case 'Week':\n return amount / HOURS_PER_PAY_PERIOD_WEEKLY\n case 'Month':\n return amount / HOURS_PER_PAY_PERIOD_MONTHLY\n case 'Year':\n return amount / HOURS_PER_PAY_PERIOD_ANNUALLY\n default:\n return 0\n }\n}\nexport const yearlyRate = (\n amount: number,\n paymentUnit: 'Hour' | 'Week' | 'Month' | 'Year' | 'Paycheck',\n) => {\n return hourlyRate(amount, paymentUnit) * HOURS_PER_PAY_PERIOD_ANNUALLY\n}\n"],"names":["hourlyRate","amount","paymentUnit","HOURS_PER_PAY_PERIOD_WEEKLY","HOURS_PER_PAY_PERIOD_MONTHLY","HOURS_PER_PAY_PERIOD_ANNUALLY","yearlyRate"],"mappings":";
|
|
1
|
+
{"version":3,"file":"payRateCalculator.js","sources":["../../src/helpers/payRateCalculator.ts"],"sourcesContent":["import {\n HOURS_PER_PAY_PERIOD_ANNUALLY,\n HOURS_PER_PAY_PERIOD_MONTHLY,\n HOURS_PER_PAY_PERIOD_WEEKLY,\n} from '@/shared/constants'\n\nexport const hourlyRate = (\n amount: number,\n paymentUnit: 'Hour' | 'Week' | 'Month' | 'Year' | 'Paycheck',\n) => {\n switch (paymentUnit) {\n case 'Hour':\n return amount\n case 'Week':\n return amount / HOURS_PER_PAY_PERIOD_WEEKLY\n case 'Month':\n return amount / HOURS_PER_PAY_PERIOD_MONTHLY\n case 'Year':\n return amount / HOURS_PER_PAY_PERIOD_ANNUALLY\n default:\n return 0\n }\n}\nexport const yearlyRate = (\n amount: number,\n paymentUnit: 'Hour' | 'Week' | 'Month' | 'Year' | 'Paycheck',\n) => {\n return hourlyRate(amount, paymentUnit) * HOURS_PER_PAY_PERIOD_ANNUALLY\n}\n"],"names":["hourlyRate","amount","paymentUnit","HOURS_PER_PAY_PERIOD_WEEKLY","HOURS_PER_PAY_PERIOD_MONTHLY","HOURS_PER_PAY_PERIOD_ANNUALLY","yearlyRate"],"mappings":";AAMO,MAAMA,IAAa,CACxBC,GACAC,MACG;AACH,UAAQA,GAAA;AAAA,IACN,KAAK;AACH,aAAOD;AAAA,IACT,KAAK;AACH,aAAOA,IAASE;AAAA,IAClB,KAAK;AACH,aAAOF,IAASG;AAAA,IAClB,KAAK;AACH,aAAOH,IAASI;AAAA,IAClB;AACE,aAAO;AAAA,EAAA;AAEb,GACaC,IAAa,CACxBL,GACAC,MAEOF,EAAWC,GAAQC,CAAW,IAAIG;"}
|
package/dist/helpers/rem.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
function t() {
|
|
2
|
-
const e = "16";
|
|
3
2
|
if (typeof window > "u")
|
|
4
|
-
return
|
|
3
|
+
return "16";
|
|
5
4
|
const n = window.getComputedStyle(document.documentElement).getPropertyValue("font-size").match(/\d+/);
|
|
6
|
-
return typeof n == "string" ? n :
|
|
5
|
+
return typeof n == "string" ? n : "16";
|
|
7
6
|
}
|
|
8
7
|
function o(e) {
|
|
9
8
|
return String(e / Number(t())) + "rem";
|
package/dist/helpers/rem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rem.js","sources":["../../src/helpers/rem.ts"],"sourcesContent":["/**\n * Detects font-size on the document root element with fallback to 16px wich is the default browser setting\n * @returns number\n */\nexport function getRootFontSize() {\n const defaultFontSize = '16'\n\n if (typeof window === 'undefined') {\n return defaultFontSize\n }\n\n const match = window\n .getComputedStyle(document.documentElement)\n .getPropertyValue('font-size')\n .match(/\\d+/)\n return typeof match === 'string' ? match : defaultFontSize\n}\n\nexport function toRem(pxValue: number) {\n return String(pxValue / Number(getRootFontSize())) + 'rem'\n}\n\nexport const remToPx = (rem: string | number) =>\n typeof rem === 'number'\n ? Number(getRootFontSize()) * rem\n : Number(getRootFontSize()) * Number(rem.replace('rem', ''))\n"],"names":["getRootFontSize","
|
|
1
|
+
{"version":3,"file":"rem.js","sources":["../../src/helpers/rem.ts"],"sourcesContent":["/**\n * Detects font-size on the document root element with fallback to 16px wich is the default browser setting\n * @returns number\n */\nexport function getRootFontSize() {\n const defaultFontSize = '16'\n\n if (typeof window === 'undefined') {\n return defaultFontSize\n }\n\n const match = window\n .getComputedStyle(document.documentElement)\n .getPropertyValue('font-size')\n .match(/\\d+/)\n return typeof match === 'string' ? match : defaultFontSize\n}\n\nexport function toRem(pxValue: number) {\n return String(pxValue / Number(getRootFontSize())) + 'rem'\n}\n\nexport const remToPx = (rem: string | number) =>\n typeof rem === 'number'\n ? Number(getRootFontSize()) * rem\n : Number(getRootFontSize()) * Number(rem.replace('rem', ''))\n"],"names":["getRootFontSize","match","toRem","pxValue","remToPx","rem"],"mappings":"AAIO,SAASA,IAAkB;AAGhC,MAAI,OAAO,SAAW;AACpB,WAAO;AAGT,QAAMC,IAAQ,OACX,iBAAiB,SAAS,eAAe,EACzC,iBAAiB,WAAW,EAC5B,MAAM,KAAK;AACd,SAAO,OAAOA,KAAU,WAAWA,IAAQ;AAC7C;AAEO,SAASC,EAAMC,GAAiB;AACrC,SAAO,OAAOA,IAAU,OAAOH,EAAA,CAAiB,CAAC,IAAI;AACvD;AAEO,MAAMI,IAAU,CAACC,MACtB,OAAOA,KAAQ,WACX,OAAOL,GAAiB,IAAIK,IAC5B,OAAOL,EAAA,CAAiB,IAAI,OAAOK,EAAI,QAAQ,OAAO,EAAE,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responsive.js","sources":["../../src/helpers/responsive.ts"],"sourcesContent":["import { toRem } from '@/helpers/rem'\nimport { BREAKPOINTS } from '@/shared/constants'\nimport type { GThemeSpacing } from '@/types/GTheme'\n\ntype BreakpointKey = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS]\n\nexport type Responsive<T> =\n | T\n | Partial<{\n [K in BreakpointKey]: T\n }>\n\nexport type CustomPropertyValue = string | number\n\nexport type ResponsiveSpacing = Responsive<keyof GThemeSpacing | 0>\n\nexport function isResponsiveValue(value: Responsive<CustomPropertyValue | CustomPropertyValue[]>) {\n return Object.values(BREAKPOINTS).some(\n breakpoint => typeof value === 'object' && breakpoint in value,\n )\n}\n\nexport function transformResponsiveValue(\n value: Responsive<CustomPropertyValue | CustomPropertyValue[]>,\n transformValue: (value: CustomPropertyValue | CustomPropertyValue[]) => string,\n) {\n const responsiveValue = isResponsiveValue(value) ? value : { base: value }\n\n const transformedResponsiveValue: Record<string, string> = {}\n\n Object.entries(responsiveValue).forEach(([key, value]) => {\n transformedResponsiveValue[key] = transformValue(value)\n })\n\n return transformedResponsiveValue\n}\n\nexport function transformResponsiveSpacingValue(responsiveValue: ResponsiveSpacing) {\n return transformResponsiveValue(responsiveValue, value =>\n value === 0 ? '0' : `var(--g-spacing-${value})`,\n )\n}\n\nexport const toRemIfNumeric = (value: string | number) => {\n return typeof value === 'number' ? toRem(value) : value\n}\n\nexport function createResponsiveCustomProperties(\n property: string,\n value?: Responsive<CustomPropertyValue | CustomPropertyValue[]>,\n) {\n if (!value) return {}\n\n const responsiveValues = isResponsiveValue(value) ? value : { base: value }\n const properties: Record<string, string> = {}\n\n Object.entries(responsiveValues).forEach(([key, customPropertyValue]) => {\n const customPropertyValueResult = Array.isArray(customPropertyValue)\n ? customPropertyValue.map(toRemIfNumeric).join(' ')\n : toRemIfNumeric(customPropertyValue)\n\n properties[`--g-${property}-${key}`] = customPropertyValueResult\n })\n\n return properties\n}\n\nexport function setResponsiveCustomProperties(\n properties?: Record<string, Responsive<CustomPropertyValue | CustomPropertyValue[]> | undefined>,\n) {\n const allProperties: Record<string, string> = {}\n\n if (!properties) return allProperties\n\n Object.entries(properties).forEach(([property, value]) => {\n Object.assign(allProperties, createResponsiveCustomProperties(property, value))\n })\n\n return allProperties\n}\n"],"names":["isResponsiveValue","value","BREAKPOINTS","breakpoint","transformResponsiveValue","transformValue","responsiveValue","transformedResponsiveValue","key","transformResponsiveSpacingValue","toRemIfNumeric","toRem","createResponsiveCustomProperties","property","responsiveValues","properties","customPropertyValue","customPropertyValueResult","setResponsiveCustomProperties","allProperties"],"mappings":";;AAgBO,SAASA,EAAkBC,GAAgE;
|
|
1
|
+
{"version":3,"file":"responsive.js","sources":["../../src/helpers/responsive.ts"],"sourcesContent":["import { toRem } from '@/helpers/rem'\nimport { BREAKPOINTS } from '@/shared/constants'\nimport type { GThemeSpacing } from '@/types/GTheme'\n\ntype BreakpointKey = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS]\n\nexport type Responsive<T> =\n | T\n | Partial<{\n [K in BreakpointKey]: T\n }>\n\nexport type CustomPropertyValue = string | number\n\nexport type ResponsiveSpacing = Responsive<keyof GThemeSpacing | 0>\n\nexport function isResponsiveValue(value: Responsive<CustomPropertyValue | CustomPropertyValue[]>) {\n return Object.values(BREAKPOINTS).some(\n breakpoint => typeof value === 'object' && breakpoint in value,\n )\n}\n\nexport function transformResponsiveValue(\n value: Responsive<CustomPropertyValue | CustomPropertyValue[]>,\n transformValue: (value: CustomPropertyValue | CustomPropertyValue[]) => string,\n) {\n const responsiveValue = isResponsiveValue(value) ? value : { base: value }\n\n const transformedResponsiveValue: Record<string, string> = {}\n\n Object.entries(responsiveValue).forEach(([key, value]) => {\n transformedResponsiveValue[key] = transformValue(value)\n })\n\n return transformedResponsiveValue\n}\n\nexport function transformResponsiveSpacingValue(responsiveValue: ResponsiveSpacing) {\n return transformResponsiveValue(responsiveValue, value =>\n value === 0 ? '0' : `var(--g-spacing-${value})`,\n )\n}\n\nexport const toRemIfNumeric = (value: string | number) => {\n return typeof value === 'number' ? toRem(value) : value\n}\n\nexport function createResponsiveCustomProperties(\n property: string,\n value?: Responsive<CustomPropertyValue | CustomPropertyValue[]>,\n) {\n if (!value) return {}\n\n const responsiveValues = isResponsiveValue(value) ? value : { base: value }\n const properties: Record<string, string> = {}\n\n Object.entries(responsiveValues).forEach(([key, customPropertyValue]) => {\n const customPropertyValueResult = Array.isArray(customPropertyValue)\n ? customPropertyValue.map(toRemIfNumeric).join(' ')\n : toRemIfNumeric(customPropertyValue)\n\n properties[`--g-${property}-${key}`] = customPropertyValueResult\n })\n\n return properties\n}\n\nexport function setResponsiveCustomProperties(\n properties?: Record<string, Responsive<CustomPropertyValue | CustomPropertyValue[]> | undefined>,\n) {\n const allProperties: Record<string, string> = {}\n\n if (!properties) return allProperties\n\n Object.entries(properties).forEach(([property, value]) => {\n Object.assign(allProperties, createResponsiveCustomProperties(property, value))\n })\n\n return allProperties\n}\n"],"names":["isResponsiveValue","value","BREAKPOINTS","breakpoint","transformResponsiveValue","transformValue","responsiveValue","transformedResponsiveValue","key","transformResponsiveSpacingValue","toRemIfNumeric","toRem","createResponsiveCustomProperties","property","responsiveValues","properties","customPropertyValue","customPropertyValueResult","setResponsiveCustomProperties","allProperties"],"mappings":";;AAgBO,SAASA,EAAkBC,GAAgE;AAChG,SAAO,OAAO,OAAOC,CAAW,EAAE;AAAA,IAChC,CAAAC,MAAc,OAAOF,KAAU,YAAYE,KAAcF;AAAA,EAAA;AAE7D;AAEO,SAASG,EACdH,GACAI,GACA;AACA,QAAMC,IAAkBN,EAAkBC,CAAK,IAAIA,IAAQ,EAAE,MAAMA,EAAA,GAE7DM,IAAqD,CAAA;AAE3D,gBAAO,QAAQD,CAAe,EAAE,QAAQ,CAAC,CAACE,GAAKP,CAAK,MAAM;AACxD,IAAAM,EAA2BC,CAAG,IAAIH,EAAeJ,CAAK;AAAA,EACxD,CAAC,GAEMM;AACT;AAEO,SAASE,EAAgCH,GAAoC;AAClF,SAAOF;AAAA,IAAyBE;AAAA,IAAiB,CAAAL,MAC/CA,MAAU,IAAI,MAAM,mBAAmBA,CAAK;AAAA,EAAA;AAEhD;AAEO,MAAMS,IAAiB,CAACT,MACtB,OAAOA,KAAU,WAAWU,EAAMV,CAAK,IAAIA;AAG7C,SAASW,EACdC,GACAZ,GACA;AACA,MAAI,CAACA,EAAO,QAAO,CAAA;AAEnB,QAAMa,IAAmBd,EAAkBC,CAAK,IAAIA,IAAQ,EAAE,MAAMA,EAAA,GAC9Dc,IAAqC,CAAA;AAE3C,gBAAO,QAAQD,CAAgB,EAAE,QAAQ,CAAC,CAACN,GAAKQ,CAAmB,MAAM;AACvE,UAAMC,IAA4B,MAAM,QAAQD,CAAmB,IAC/DA,EAAoB,IAAIN,CAAc,EAAE,KAAK,GAAG,IAChDA,EAAeM,CAAmB;AAEtC,IAAAD,EAAW,OAAOF,CAAQ,IAAIL,CAAG,EAAE,IAAIS;AAAA,EACzC,CAAC,GAEMF;AACT;AAEO,SAASG,EACdH,GACA;AACA,QAAMI,IAAwC,CAAA;AAE9C,SAAKJ,KAEL,OAAO,QAAQA,CAAU,EAAE,QAAQ,CAAC,CAACF,GAAUZ,CAAK,MAAM;AACxD,WAAO,OAAOkB,GAAeP,EAAiCC,GAAUZ,CAAK,CAAC;AAAA,EAChF,CAAC,GAEMkB;AACT;"}
|
package/dist/helpers/ssn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssn.js","sources":["../../src/helpers/ssn.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\n\nexport const normalizeSSN = (value: string) =>\n value\n .match(/\\d*/g)\n ?.join('')\n .match(/(\\d{0,3})(\\d{0,2})(\\d{0,4})/)\n ?.slice(1)\n .filter(match => match !== '')\n .join('-')\n .substring(0, 12) || ''\n\nexport const createPlaceholderSSN = (hasSSN?: boolean, placeholderSSN?: string) =>\n hasSSN ? placeholderSSN : ''\n\nexport const usePlaceholderSSN = (hasSSN?: boolean) => {\n const { t } = useTranslation('common')\n return createPlaceholderSSN(hasSSN, t('inputs.ssn.placeholder'))\n}\n"],"names":["normalizeSSN","value","match","createPlaceholderSSN","hasSSN","placeholderSSN","usePlaceholderSSN","t","useTranslation"],"mappings":";
|
|
1
|
+
{"version":3,"file":"ssn.js","sources":["../../src/helpers/ssn.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\n\nexport const normalizeSSN = (value: string) =>\n value\n .match(/\\d*/g)\n ?.join('')\n .match(/(\\d{0,3})(\\d{0,2})(\\d{0,4})/)\n ?.slice(1)\n .filter(match => match !== '')\n .join('-')\n .substring(0, 12) || ''\n\nexport const createPlaceholderSSN = (hasSSN?: boolean, placeholderSSN?: string) =>\n hasSSN ? placeholderSSN : ''\n\nexport const usePlaceholderSSN = (hasSSN?: boolean) => {\n const { t } = useTranslation('common')\n return createPlaceholderSSN(hasSSN, t('inputs.ssn.placeholder'))\n}\n"],"names":["normalizeSSN","value","match","createPlaceholderSSN","hasSSN","placeholderSSN","usePlaceholderSSN","t","useTranslation"],"mappings":";AAEO,MAAMA,IAAe,CAACC,MAC3BA,EACG,MAAM,MAAM,GACX,KAAK,EAAE,EACR,MAAM,6BAA6B,GAClC,MAAM,CAAC,EACR,OAAO,CAAAC,MAASA,MAAU,EAAE,EAC5B,KAAK,GAAG,EACR,UAAU,GAAG,EAAE,KAAK,IAEZC,IAAuB,CAACC,GAAkBC,MACrDD,IAASC,IAAiB,IAEfC,IAAoB,CAACF,MAAqB;AACrD,QAAM,EAAE,GAAAG,EAAA,IAAMC,EAAe,QAAQ;AACrC,SAAOL,EAAqBC,GAAQG,EAAE,wBAAwB,CAAC;AACjE;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validations.js","sources":["../../src/helpers/validations.ts"],"sourcesContent":["import { z } from 'zod'\nimport { commonMasks, formatWithMask } from './mask'\nimport { removeNonDigits } from '@/helpers/formattedStrings'\n\nexport const NAME_REGEX = /^([a-zA-Z\\xC0-\\uFFFF]+([ \\-']{0,1}[a-zA-Z\\xC0-\\uFFFF]+)*[.]{0,1}){1,2}$/\n\nexport const nameValidation = z.string().min(1).regex(NAME_REGEX)\n\nexport const zipValidation = z.string().refine(zip => /(^\\d{5}$)|(^\\d{5}-\\d{4}$)/.test(zip))\n\nexport const SSN_REGEX = /^(?!(000|666|9))\\d{3}(?!00)\\d{2}(?!0000)\\d{4}$/\n\nexport const phoneValidation = z\n .string()\n .transform(value => formatWithMask(value, commonMasks.phoneMask))\n .refine(phone => {\n const digits = removeNonDigits(phone)\n return digits.length === 10\n })\n\nexport const routingNumberValidation = z.string().regex(/^[0-9]{9}$/)\nexport const accountNumberValidation = z.string().regex(/^[0-9]{9,18}$/)\n"],"names":["NAME_REGEX","nameValidation","z","zipValidation","zip","SSN_REGEX","phoneValidation","value","formatWithMask","commonMasks","phone","removeNonDigits","routingNumberValidation","accountNumberValidation"],"mappings":";;;AAIO,MAAMA,IAAa,2EAEbC,IAAiBC,EAAE,
|
|
1
|
+
{"version":3,"file":"validations.js","sources":["../../src/helpers/validations.ts"],"sourcesContent":["import { z } from 'zod'\nimport { commonMasks, formatWithMask } from './mask'\nimport { removeNonDigits } from '@/helpers/formattedStrings'\n\nexport const NAME_REGEX = /^([a-zA-Z\\xC0-\\uFFFF]+([ \\-']{0,1}[a-zA-Z\\xC0-\\uFFFF]+)*[.]{0,1}){1,2}$/\n\nexport const nameValidation = z.string().min(1).regex(NAME_REGEX)\n\nexport const zipValidation = z.string().refine(zip => /(^\\d{5}$)|(^\\d{5}-\\d{4}$)/.test(zip))\n\nexport const SSN_REGEX = /^(?!(000|666|9))\\d{3}(?!00)\\d{2}(?!0000)\\d{4}$/\n\nexport const phoneValidation = z\n .string()\n .transform(value => formatWithMask(value, commonMasks.phoneMask))\n .refine(phone => {\n const digits = removeNonDigits(phone)\n return digits.length === 10\n })\n\nexport const routingNumberValidation = z.string().regex(/^[0-9]{9}$/)\nexport const accountNumberValidation = z.string().regex(/^[0-9]{9,18}$/)\n"],"names":["NAME_REGEX","nameValidation","z","zipValidation","zip","SSN_REGEX","phoneValidation","value","formatWithMask","commonMasks","phone","removeNonDigits","routingNumberValidation","accountNumberValidation"],"mappings":";;;AAIO,MAAMA,IAAa,2EAEbC,IAAiBC,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,MAAMF,CAAU,GAEnDG,IAAgBD,EAAE,SAAS,OAAO,CAAAE,MAAO,4BAA4B,KAAKA,CAAG,CAAC,GAE9EC,IAAY,kDAEZC,IAAkBJ,EAC5B,OAAA,EACA,UAAU,CAAAK,MAASC,EAAeD,GAAOE,EAAY,SAAS,CAAC,EAC/D,OAAO,CAAAC,MACSC,EAAgBD,CAAK,EACtB,WAAW,EAC1B,GAEUE,IAA0BV,EAAE,OAAA,EAAS,MAAM,YAAY,GACvDW,IAA0BX,EAAE,OAAA,EAAS,MAAM,eAAe;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContainerBreakpoints.js","sources":["../../../src/hooks/useContainerBreakpoints/useContainerBreakpoints.ts"],"sourcesContent":["import { useState, useEffect, useRef } from 'react'\nimport type React from 'react'\nimport type { BREAKPOINTS } from '@/shared/constants'\nimport { BREAKPOINTS_VALUES } from '@/shared/constants'\nimport { remToPx } from '@/helpers/rem'\n\nexport type BreakpointKey = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS]\n\nexport type useContainerBreakpointsProps = {\n ref: React.RefObject<HTMLElement | null>\n breakpoints?: Partial<{ [K in BreakpointKey]: number | string }>\n debounceTimeout?: number\n}\n\nconst DEBOUNCE_TIMEOUT = 10\n\nexport const useContainerBreakpoints = ({\n ref,\n breakpoints = BREAKPOINTS_VALUES,\n debounceTimeout = DEBOUNCE_TIMEOUT,\n}: useContainerBreakpointsProps) => {\n const [activeBreakpoints, setActiveBreakpoint] = useState<Array<keyof typeof breakpoints>>([])\n const timeoutRef = useRef<NodeJS.Timeout | null>(null)\n\n const calculateBreakpoints = (width: number) => {\n const returnBreakpoints: Array<keyof typeof breakpoints> = []\n\n for (const [key, value] of Object.entries(breakpoints)) {\n if (width >= remToPx(value)) {\n returnBreakpoints.push(key as keyof typeof breakpoints)\n }\n }\n\n return returnBreakpoints\n }\n\n useEffect(() => {\n const debouncedHandleResize = (entries: ResizeObserverEntry[]) => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current)\n }\n timeoutRef.current = setTimeout(() => {\n if (entries.length >= 1) {\n const width = entries[0]?.contentRect.width ?? 0\n const newBreakpoints = calculateBreakpoints(width)\n setActiveBreakpoint(newBreakpoints)\n }\n }, debounceTimeout)\n }\n\n const observer = new ResizeObserver(debouncedHandleResize)\n\n if (ref.current) {\n // Do initial calculation\n const width = ref.current.offsetWidth\n if (width > 0) {\n const initialBreakpoints = calculateBreakpoints(width)\n setActiveBreakpoint(initialBreakpoints)\n }\n\n observer.observe(ref.current)\n }\n\n return () => {\n observer.disconnect()\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current)\n }\n }\n }, [debounceTimeout])\n\n return activeBreakpoints\n}\n\nexport default useContainerBreakpoints\n"],"names":["DEBOUNCE_TIMEOUT","useContainerBreakpoints","ref","breakpoints","BREAKPOINTS_VALUES","debounceTimeout","activeBreakpoints","setActiveBreakpoint","useState","timeoutRef","useRef","calculateBreakpoints","width","returnBreakpoints","key","value","remToPx","useEffect","debouncedHandleResize","entries","newBreakpoints","observer","initialBreakpoints"],"mappings":";;;AAcA,MAAMA,IAAmB,IAEZC,IAA0B,CAAC;AAAA,EACtC,KAAAC;AAAA,EACA,aAAAC,IAAcC;AAAA,EACd,iBAAAC,IAAkBL;AACpB,MAAoC;AAClC,QAAM,CAACM,GAAmBC,CAAmB,IAAIC,EAA0C,CAAA,CAAE,GACvFC,IAAaC,EAA8B,IAAI,GAE/CC,IAAuB,CAACC,MAAkB;AAC9C,UAAMC,IAAqD,
|
|
1
|
+
{"version":3,"file":"useContainerBreakpoints.js","sources":["../../../src/hooks/useContainerBreakpoints/useContainerBreakpoints.ts"],"sourcesContent":["import { useState, useEffect, useRef } from 'react'\nimport type React from 'react'\nimport type { BREAKPOINTS } from '@/shared/constants'\nimport { BREAKPOINTS_VALUES } from '@/shared/constants'\nimport { remToPx } from '@/helpers/rem'\n\nexport type BreakpointKey = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS]\n\nexport type useContainerBreakpointsProps = {\n ref: React.RefObject<HTMLElement | null>\n breakpoints?: Partial<{ [K in BreakpointKey]: number | string }>\n debounceTimeout?: number\n}\n\nconst DEBOUNCE_TIMEOUT = 10\n\nexport const useContainerBreakpoints = ({\n ref,\n breakpoints = BREAKPOINTS_VALUES,\n debounceTimeout = DEBOUNCE_TIMEOUT,\n}: useContainerBreakpointsProps) => {\n const [activeBreakpoints, setActiveBreakpoint] = useState<Array<keyof typeof breakpoints>>([])\n const timeoutRef = useRef<NodeJS.Timeout | null>(null)\n\n const calculateBreakpoints = (width: number) => {\n const returnBreakpoints: Array<keyof typeof breakpoints> = []\n\n for (const [key, value] of Object.entries(breakpoints)) {\n if (width >= remToPx(value)) {\n returnBreakpoints.push(key as keyof typeof breakpoints)\n }\n }\n\n return returnBreakpoints\n }\n\n useEffect(() => {\n const debouncedHandleResize = (entries: ResizeObserverEntry[]) => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current)\n }\n timeoutRef.current = setTimeout(() => {\n if (entries.length >= 1) {\n const width = entries[0]?.contentRect.width ?? 0\n const newBreakpoints = calculateBreakpoints(width)\n setActiveBreakpoint(newBreakpoints)\n }\n }, debounceTimeout)\n }\n\n const observer = new ResizeObserver(debouncedHandleResize)\n\n if (ref.current) {\n // Do initial calculation\n const width = ref.current.offsetWidth\n if (width > 0) {\n const initialBreakpoints = calculateBreakpoints(width)\n setActiveBreakpoint(initialBreakpoints)\n }\n\n observer.observe(ref.current)\n }\n\n return () => {\n observer.disconnect()\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current)\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [debounceTimeout])\n\n return activeBreakpoints\n}\n\nexport default useContainerBreakpoints\n"],"names":["DEBOUNCE_TIMEOUT","useContainerBreakpoints","ref","breakpoints","BREAKPOINTS_VALUES","debounceTimeout","activeBreakpoints","setActiveBreakpoint","useState","timeoutRef","useRef","calculateBreakpoints","width","returnBreakpoints","key","value","remToPx","useEffect","debouncedHandleResize","entries","newBreakpoints","observer","initialBreakpoints"],"mappings":";;;AAcA,MAAMA,IAAmB,IAEZC,IAA0B,CAAC;AAAA,EACtC,KAAAC;AAAA,EACA,aAAAC,IAAcC;AAAA,EACd,iBAAAC,IAAkBL;AACpB,MAAoC;AAClC,QAAM,CAACM,GAAmBC,CAAmB,IAAIC,EAA0C,CAAA,CAAE,GACvFC,IAAaC,EAA8B,IAAI,GAE/CC,IAAuB,CAACC,MAAkB;AAC9C,UAAMC,IAAqD,CAAA;AAE3D,eAAW,CAACC,GAAKC,CAAK,KAAK,OAAO,QAAQZ,CAAW;AACnD,MAAIS,KAASI,EAAQD,CAAK,KACxBF,EAAkB,KAAKC,CAA+B;AAI1D,WAAOD;AAAA,EACT;AAEA,SAAAI,EAAU,MAAM;AACd,UAAMC,IAAwB,CAACC,MAAmC;AAChE,MAAIV,EAAW,WACb,aAAaA,EAAW,OAAO,GAEjCA,EAAW,UAAU,WAAW,MAAM;AACpC,YAAIU,EAAQ,UAAU,GAAG;AACvB,gBAAMP,IAAQO,EAAQ,CAAC,GAAG,YAAY,SAAS,GACzCC,IAAiBT,EAAqBC,CAAK;AACjD,UAAAL,EAAoBa,CAAc;AAAA,QACpC;AAAA,MACF,GAAGf,CAAe;AAAA,IACpB,GAEMgB,IAAW,IAAI,eAAeH,CAAqB;AAEzD,QAAIhB,EAAI,SAAS;AAEf,YAAMU,IAAQV,EAAI,QAAQ;AAC1B,UAAIU,IAAQ,GAAG;AACb,cAAMU,IAAqBX,EAAqBC,CAAK;AACrD,QAAAL,EAAoBe,CAAkB;AAAA,MACxC;AAEA,MAAAD,EAAS,QAAQnB,EAAI,OAAO;AAAA,IAC9B;AAEA,WAAO,MAAM;AACX,MAAAmB,EAAS,WAAA,GACLZ,EAAW,WACb,aAAaA,EAAW,OAAO;AAAA,IAEnC;AAAA,EAEF,GAAG,CAACJ,CAAe,CAAC,GAEbC;AACT;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForkRef.js","sources":["../../../src/hooks/useForkRef/useForkRef.ts"],"sourcesContent":["import { type Ref, type RefCallback, type RefObject, useMemo } from 'react'\n\nconst setRef = <T>(\n ref: RefObject<T | null> | ((instance: T | null) => void) | null | undefined,\n value: T | null,\n) => {\n if (typeof ref === 'function') ref(value)\n else if (ref) ref.current = value\n}\n\n/**\n * Sets multiple refs with a single handler.\n * @param refs - The refs to set.\n * @returns A single ref handler that sets all the provided refs which can be passed to the `ref` prop of a component.\n */\nexport const useForkRef = <Instance>(\n ...refs: Array<Ref<Instance> | undefined>\n): RefCallback<Instance> | null => {\n return useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null\n }\n\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance)\n })\n }\n }, [refs])\n}\n"],"names":["setRef","ref","value","useForkRef","refs","useMemo","instance"],"mappings":";AAEA,MAAMA,IAAS,CACbC,GACAC,MACG;AACH,EAAI,OAAOD,KAAQ,aAAYA,EAAIC,CAAK,IAC/BD,QAAS,UAAUC;AAC9B,GAOaC,IAAa,IACrBC,MAEIC,EAAQ,MACTD,EAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"useForkRef.js","sources":["../../../src/hooks/useForkRef/useForkRef.ts"],"sourcesContent":["import { type Ref, type RefCallback, type RefObject, useMemo } from 'react'\n\nconst setRef = <T>(\n ref: RefObject<T | null> | ((instance: T | null) => void) | null | undefined,\n value: T | null,\n) => {\n if (typeof ref === 'function') ref(value)\n else if (ref) ref.current = value\n}\n\n/**\n * Sets multiple refs with a single handler.\n * @param refs - The refs to set.\n * @returns A single ref handler that sets all the provided refs which can be passed to the `ref` prop of a component.\n */\nexport const useForkRef = <Instance>(\n ...refs: Array<Ref<Instance> | undefined>\n): RefCallback<Instance> | null => {\n return useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null\n }\n\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance)\n })\n }\n }, [refs])\n}\n"],"names":["setRef","ref","value","useForkRef","refs","useMemo","instance"],"mappings":";AAEA,MAAMA,IAAS,CACbC,GACAC,MACG;AACH,EAAI,OAAOD,KAAQ,aAAYA,EAAIC,CAAK,IAC/BD,QAAS,UAAUC;AAC9B,GAOaC,IAAa,IACrBC,MAEIC,EAAQ,MACTD,EAAK,MAAM,CAAAH,MAAOA,KAAO,IAAI,IACxB,OAGF,CAAAK,MAAY;AACjB,EAAAF,EAAK,QAAQ,CAAAH,MAAO;AAClB,IAAAD,EAAOC,GAAKK,CAAQ;AAAA,EACtB,CAAC;AACH,GACC,CAACF,CAAI,CAAC;"}
|
package/dist/i18n/I18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\n\nexport const defaultNS = 'common'\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n * @param lng(string): resource language\n * @param ns(string): Namespace/name of the component/resource\n * @returns Promise<Translation resource>\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const module = await import(`@/i18n/${lng}/${ns}.json`)\n\n resource = module.default\n isLoading = false\n } catch (err) {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers\n */\nexport const useI18n = (ns: keyof CustomTypeOptions['resources'] | null) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoApiProvider\n const { i18n: i18nInstance } = useTranslation()\n //Abort when namespace is not provided\n if (!ns) return\n const key = `${i18nInstance.resolvedLanguage}:${ns}`\n //Skip loading default resource if it is already in cache\n if (resourceCache.get(key) === null) {\n //If resource not in cache, initiate loading and add getter to cache\n resourceCache.put(key, loadResource({ lng: i18nInstance.resolvedLanguage, ns: ns }))\n }\n //Get resourceGetter from cache\n const resourceGetter = resourceCache.get(key)\n if (resourceGetter) {\n const resource = resourceGetter()\n i18nInstance.addResourceBundle(i18nInstance.resolvedLanguage ?? 'en', ns, resource, true, false) //Last argument is set to false to prevent override of keys provided by partners on GustoApiProvider level through dictionary prop\n }\n}\n\n//Used by individual components to override their dictionaries with partner provided resources\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: keyof CustomTypeOptions['resources'],\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","resourceCache","LRUCache","loadResource","lng","ns","isLoading","isError","resource","promise","__variableDynamicImportRuntimeHelper","useI18n","i18nInstance","useTranslation","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;;AAKO,MAAMA,IAAY,UAGnBC,IAAgB,IAAIC,EAAS,EAAE,GAO/BC,IAAe,CAAC,EAAE,KAAAC,IAAM,MAAM,IAAAC,QAAuC;AACzE,MAAIC,IAAY,IACZC,IAAU,IACVC;AAaJ,QAAMC,KAXkB,YAAY;
|
|
1
|
+
{"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\n\nexport const defaultNS = 'common'\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n * @param lng(string): resource language\n * @param ns(string): Namespace/name of the component/resource\n * @returns Promise<Translation resource>\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const module = await import(`@/i18n/${lng}/${ns}.json`)\n\n resource = module.default\n isLoading = false\n } catch (err) {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers\n */\nexport const useI18n = (ns: keyof CustomTypeOptions['resources'] | null) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoApiProvider\n const { i18n: i18nInstance } = useTranslation()\n //Abort when namespace is not provided\n if (!ns) return\n const key = `${i18nInstance.resolvedLanguage}:${ns}`\n //Skip loading default resource if it is already in cache\n if (resourceCache.get(key) === null) {\n //If resource not in cache, initiate loading and add getter to cache\n resourceCache.put(key, loadResource({ lng: i18nInstance.resolvedLanguage, ns: ns }))\n }\n //Get resourceGetter from cache\n const resourceGetter = resourceCache.get(key)\n if (resourceGetter) {\n const resource = resourceGetter()\n i18nInstance.addResourceBundle(i18nInstance.resolvedLanguage ?? 'en', ns, resource, true, false) //Last argument is set to false to prevent override of keys provided by partners on GustoApiProvider level through dictionary prop\n }\n}\n\n//Used by individual components to override their dictionaries with partner provided resources\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: keyof CustomTypeOptions['resources'],\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","resourceCache","LRUCache","loadResource","lng","ns","isLoading","isError","resource","promise","__variableDynamicImportRuntimeHelper","useI18n","i18nInstance","useTranslation","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;;AAKO,MAAMA,IAAY,UAGnBC,IAAgB,IAAIC,EAAS,EAAE,GAO/BC,IAAe,CAAC,EAAE,KAAAC,IAAM,MAAM,IAAAC,QAAuC;AACzE,MAAIC,IAAY,IACZC,IAAU,IACVC;AAaJ,QAAMC,KAXkB,YAAY;AAClC,QAAI;AAGF,MAAAD,KAFe,MAAME,w8FAAA,KAAAN,CAAA,IAAAC,CAAA,SAAA,CAAA,GAEH,SAClBC,IAAY;AAAA,IACd,QAAc;AACZ,MAAAC,IAAU,IACVD,IAAY;AAAA,IACd;AAAA,EACF,GACgB;AAChB,SAAO,MAAM;AACX,QAAIA;AAEF,YAAMG;QACGF;AACT,YAAM,IAAI,MAAM,4CAA4CF,CAAE,EAAE;AAEhE,WAAOG;AAAA,EAEX;AACF,GAMaG,IAAU,CAACN,MAAoD;AAE1E,QAAM,EAAE,MAAMO,EAAA,IAAiBC,EAAA;AAE/B,MAAI,CAACR,EAAI;AACT,QAAMS,IAAM,GAAGF,EAAa,gBAAgB,IAAIP,CAAE;AAElD,EAAIJ,EAAc,IAAIa,CAAG,MAAM,QAE7Bb,EAAc,IAAIa,GAAKX,EAAa,EAAE,KAAKS,EAAa,kBAAkB,IAAAP,EAAA,CAAQ,CAAC;AAGrF,QAAMU,IAAiBd,EAAc,IAAIa,CAAG;AAC5C,MAAIC,GAAgB;AAClB,UAAMP,IAAWO,EAAA;AACjB,IAAAH,EAAa,kBAAkBA,EAAa,oBAAoB,MAAMP,GAAIG,GAAU,IAAM,EAAK;AAAA,EACjG;AACF,GAGaQ,IAAyB,CACpCX,GACAG,MACG;AACH,QAAM,EAAE,MAAMI,EAAA,IAAiBC,EAAA;AAC/B,MAAIL;AACF,eAAWS,KAAQT;AACjB,MAAAI,EAAa,kBAAkBK,GAAMZ,GAAIG,EAASS,CAAI,GAAG,IAAM,EAAI;AAGzE;"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
const n = "Company Bank Account", t = "We'll use your checking account info to debit for wages and taxes. Your account must be linked to a checking bank account. Credit payments, credit cards, and savings accounts are not accepted.", c = "How would you like to enter your bank account information?",
|
|
1
|
+
const n = "Company Bank Account", t = "We'll use your checking account info to debit for wages and taxes. Your account must be linked to a checking bank account. Credit payments, credit cards, and savings accounts are not accepted.", c = "How would you like to enter your bank account information?", o = "Enter bank account information manually", a = "Verify bank account with Plaid", e = "Routing number (9 digits)", i = "Account number", u = "What type of account is this?", s = "Checking", r = "Savings", l = "Save and continue", d = {
|
|
2
2
|
title: n,
|
|
3
3
|
intro: t,
|
|
4
4
|
entry_selection_question: c,
|
|
5
|
-
manual_entry:
|
|
6
|
-
plaid_entry:
|
|
7
|
-
routing_number_label:
|
|
8
|
-
account_number_label:
|
|
9
|
-
account_type_label:
|
|
5
|
+
manual_entry: o,
|
|
6
|
+
plaid_entry: a,
|
|
7
|
+
routing_number_label: e,
|
|
8
|
+
account_number_label: i,
|
|
9
|
+
account_type_label: u,
|
|
10
10
|
account_type_checking: s,
|
|
11
11
|
account_type_savings: r,
|
|
12
12
|
submit: l
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
i as account_number_label,
|
|
16
16
|
s as account_type_checking,
|
|
17
|
-
|
|
17
|
+
u as account_type_label,
|
|
18
18
|
r as account_type_savings,
|
|
19
|
-
|
|
19
|
+
d as default,
|
|
20
20
|
c as entry_selection_question,
|
|
21
21
|
t as intro,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
o as manual_entry,
|
|
23
|
+
a as plaid_entry,
|
|
24
|
+
e as routing_number_label,
|
|
25
25
|
l as submit,
|
|
26
26
|
n as title
|
|
27
27
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const e = "Company addresses",
|
|
1
|
+
const e = "Company addresses", s = "To automate your payroll filings, we need to have your company's accurate addresses. Please enter your mailing and filing addresses and all addresses where you have employees physically working in the United States.", a = "Mailing Address", d = "Filing Address", n = "Edit", t = "Add address", i = "I've added all addresses", o = {
|
|
2
2
|
title: e,
|
|
3
|
-
description:
|
|
4
|
-
mailingLabel:
|
|
3
|
+
description: s,
|
|
4
|
+
mailingLabel: a,
|
|
5
5
|
filingLabel: d,
|
|
6
|
-
editCta:
|
|
7
|
-
addCta:
|
|
8
|
-
continueCta:
|
|
6
|
+
editCta: n,
|
|
7
|
+
addCta: t,
|
|
8
|
+
continueCta: i
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
t as addCta,
|
|
12
|
+
i as continueCta,
|
|
13
|
+
o as default,
|
|
14
|
+
s as description,
|
|
15
|
+
n as editCta,
|
|
16
16
|
d as filingLabel,
|
|
17
|
-
|
|
17
|
+
a as mailingLabel,
|
|
18
18
|
e as title
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=Company.Addresses.json.js.map
|
|
@@ -1,71 +1,22 @@
|
|
|
1
|
-
const e = "Assign a company signatory", t = `The company signatory is responsible for electronically signing all government forms Gusto creates and is generally a member of the business or partnership. Each time a signatory is updated, we'll file a new Form 8655 with the IRS to give Gusto the "Reporting Agent Authorization" we need to file and pay your taxes. Your signatory must be authorized by the IRS.`, i = {
|
|
2
|
-
label: "Signing options",
|
|
3
|
-
selfSign: "I'm authorized to sign official documents for the company.",
|
|
4
|
-
appointOther: "I'll appoint another person to sign official documents."
|
|
5
|
-
}, s = {
|
|
6
|
-
title: "Signatory person details",
|
|
7
|
-
description: "Make sure this information is accurate. We'll use it to submit IRS Form 8655 so we can file and pay your federal taxes. If you don't know who your authorized signatory is, please call the IRS at (800) 829-4933.",
|
|
8
|
-
firstName: "First name",
|
|
9
|
-
lastName: "Last name",
|
|
10
|
-
email: "Email address",
|
|
11
|
-
phone: "Phone number",
|
|
12
|
-
ssn: "Social security number",
|
|
13
|
-
birthday: "Date of birth",
|
|
14
|
-
titleSelect: {
|
|
15
|
-
label: "Title"
|
|
16
|
-
}
|
|
17
|
-
}, a = {
|
|
18
|
-
title: "Signatory home address",
|
|
19
|
-
description: "To verify your identity, please enter your home address. If you're unsure what address to use, use the one listed on your driver's license.",
|
|
20
|
-
street1: "Street 1",
|
|
21
|
-
street2: "Street 2",
|
|
22
|
-
city: "City",
|
|
23
|
-
state: "State",
|
|
24
|
-
statePlaceholder: "Select state...",
|
|
25
|
-
zip: "Zip"
|
|
26
|
-
}, o = {
|
|
27
|
-
title: "Invite a signatory",
|
|
28
|
-
description: "Make sure this information is accurate. We'll use it to submit IRS Form 8655 so we can file and pay your federal taxes. If you don't know who your authorized signatory is, please call the IRS at (800) 829-4933.",
|
|
29
|
-
signatoryEmail: "Signatory email",
|
|
30
|
-
confirmEmail: "Confirm signatory email",
|
|
31
|
-
firstName: "First name",
|
|
32
|
-
lastName: "Last name"
|
|
33
|
-
}, n = {
|
|
34
|
-
signDocuments: "Sign documents",
|
|
35
|
-
inviteSignatory: "Invite signatory"
|
|
36
|
-
}, r = {
|
|
37
|
-
dob: "Date of birth is required",
|
|
38
|
-
email: "Email address is required and must be valid",
|
|
39
|
-
emailMismatch: "Email addresses must match",
|
|
40
|
-
firstName: "First name is required",
|
|
41
|
-
lastName: "Last name is required",
|
|
42
|
-
phone: "Phone number must be 10 digits",
|
|
43
|
-
title: "Title is required",
|
|
44
|
-
address: {
|
|
45
|
-
street1: "Street address is required",
|
|
46
|
-
city: "City is required",
|
|
47
|
-
state: "State is required",
|
|
48
|
-
zip: "ZIP code must be 5 digits"
|
|
49
|
-
}
|
|
50
|
-
}, l = {
|
|
1
|
+
const e = "Assign a company signatory", t = `The company signatory is responsible for electronically signing all government forms Gusto creates and is generally a member of the business or partnership. Each time a signatory is updated, we'll file a new Form 8655 with the IRS to give Gusto the "Reporting Agent Authorization" we need to file and pay your taxes. Your signatory must be authorized by the IRS.`, i = { label: "Signing options", selfSign: "I'm authorized to sign official documents for the company.", appointOther: "I'll appoint another person to sign official documents." }, s = { title: "Signatory person details", description: "Make sure this information is accurate. We'll use it to submit IRS Form 8655 so we can file and pay your federal taxes. If you don't know who your authorized signatory is, please call the IRS at (800) 829-4933.", firstName: "First name", lastName: "Last name", email: "Email address", phone: "Phone number", ssn: "Social security number", birthday: "Date of birth", titleSelect: { label: "Title" } }, a = { title: "Signatory home address", description: "To verify your identity, please enter your home address. If you're unsure what address to use, use the one listed on your driver's license.", street1: "Street 1", street2: "Street 2", city: "City", state: "State", statePlaceholder: "Select state...", zip: "Zip" }, o = { title: "Invite a signatory", description: "Make sure this information is accurate. We'll use it to submit IRS Form 8655 so we can file and pay your federal taxes. If you don't know who your authorized signatory is, please call the IRS at (800) 829-4933.", signatoryEmail: "Signatory email", confirmEmail: "Confirm signatory email", firstName: "First name", lastName: "Last name" }, r = { signDocuments: "Sign documents", inviteSignatory: "Invite signatory" }, n = { dob: "Date of birth is required", email: "Email address is required and must be valid", emailMismatch: "Email addresses must match", firstName: "First name is required", lastName: "Last name is required", phone: "Phone number must be 10 digits", title: "Title is required", address: { street1: "Street address is required", city: "City is required", state: "State is required", zip: "ZIP code must be 5 digits" } }, l = {
|
|
51
2
|
title: e,
|
|
52
3
|
description: t,
|
|
53
4
|
signingOptions: i,
|
|
54
5
|
signatoryDetails: s,
|
|
55
6
|
address: a,
|
|
56
7
|
inviteSignatory: o,
|
|
57
|
-
buttons:
|
|
58
|
-
validations:
|
|
8
|
+
buttons: r,
|
|
9
|
+
validations: n
|
|
59
10
|
};
|
|
60
11
|
export {
|
|
61
12
|
a as address,
|
|
62
|
-
|
|
13
|
+
r as buttons,
|
|
63
14
|
l as default,
|
|
64
15
|
t as description,
|
|
65
16
|
o as inviteSignatory,
|
|
66
17
|
s as signatoryDetails,
|
|
67
18
|
i as signingOptions,
|
|
68
19
|
e as title,
|
|
69
|
-
|
|
20
|
+
n as validations
|
|
70
21
|
};
|
|
71
22
|
//# sourceMappingURL=Company.AssignSignatory.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Company.AssignSignatory.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Company.AssignSignatory.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,63 +1,42 @@
|
|
|
1
|
-
const e = "Company bank account", t = "We’ll use your checking account info to debit for wages and taxes. Your account must be linked to a checking bank account. Credit payments, credit cards, and savings accounts are not accepted.", n = "Routing number", o = "Account", i = {
|
|
2
|
-
awaiting_deposits: {
|
|
3
|
-
label: "Verification pending",
|
|
4
|
-
description: "We’re sending two test deposits to the bank account below. You should expect to see them in 1-2 business days. After receiving the deposits, please add them on the Bank verification step."
|
|
5
|
-
},
|
|
6
|
-
ready_for_verification: {
|
|
7
|
-
label: "Verify your bank account",
|
|
8
|
-
description: "Two test deposits were successfully sent to account ending in {{number}}."
|
|
9
|
-
},
|
|
10
|
-
verified: {
|
|
11
|
-
label: "Your bank account has been verified!"
|
|
12
|
-
}
|
|
13
|
-
}, c = "Continue", a = "Change bank account", s = "Verify bank account", r = "Cancel", u = {
|
|
14
|
-
routingNumberLabel: "Routing number",
|
|
15
|
-
routingNumberDescription: "Enter your 9-digit routing number",
|
|
16
|
-
accountNumberLabel: "Account number"
|
|
17
|
-
}, d = {
|
|
18
|
-
routingNumber: "Routing number is required",
|
|
19
|
-
accountNumber: "Account number is required",
|
|
20
|
-
deposit1: "Deposit 1 is required",
|
|
21
|
-
deposit2: "Deposit 2 is required"
|
|
22
|
-
}, p = "Verify bank account", l = "Find the two small deposits Gusto made into your company bank account. Input the values below and click “Verify deposits” to continue setup.", b = "Test deposit #1", f = "Enter first deposit amount in dollars, e.g. 0.02 for 2 cents", m = "Test deposit #2", k = "Enter second deposit amount in dollars, e.g. 0.02 for 2 cents", g = "Verify deposits", y = {
|
|
1
|
+
const e = "Company bank account", t = "We’ll use your checking account info to debit for wages and taxes. Your account must be linked to a checking bank account. Credit payments, credit cards, and savings accounts are not accepted.", n = "Routing number", o = "Account", i = { awaiting_deposits: { label: "Verification pending", description: "We’re sending two test deposits to the bank account below. You should expect to see them in 1-2 business days. After receiving the deposits, please add them on the Bank verification step." }, ready_for_verification: { label: "Verify your bank account", description: "Two test deposits were successfully sent to account ending in {{number}}." }, verified: { label: "Your bank account has been verified!" } }, c = "Continue", s = "Change bank account", a = "Verify bank account", r = "Cancel", u = { routingNumberLabel: "Routing number", routingNumberDescription: "Enter your 9-digit routing number", accountNumberLabel: "Account number" }, d = { routingNumber: "Routing number is required", accountNumber: "Account number is required", deposit1: "Deposit 1 is required", deposit2: "Deposit 2 is required" }, b = "Verify bank account", p = "Find the two small deposits Gusto made into your company bank account. Input the values below and click “Verify deposits” to continue setup.", l = "Test deposit #1", m = "Enter first deposit amount in dollars, e.g. 0.02 for 2 cents", f = "Test deposit #2", g = "Enter second deposit amount in dollars, e.g. 0.02 for 2 cents", k = "Verify deposits", y = {
|
|
23
2
|
addBankAccountTitle: e,
|
|
24
3
|
addBankAccountDescription: t,
|
|
25
4
|
routingNumberLabel: n,
|
|
26
5
|
accountNumberLabel: o,
|
|
27
6
|
verificationAlert: i,
|
|
28
7
|
continueCta: c,
|
|
29
|
-
changeBankAccountCta:
|
|
30
|
-
verifyBankAccountCta:
|
|
8
|
+
changeBankAccountCta: s,
|
|
9
|
+
verifyBankAccountCta: a,
|
|
31
10
|
cancelCta: r,
|
|
32
11
|
form: u,
|
|
33
12
|
validations: d,
|
|
34
|
-
verifyBankAccountTitle:
|
|
35
|
-
verifyBankAccountDescription:
|
|
36
|
-
deposit1Label:
|
|
37
|
-
deposit1Description:
|
|
38
|
-
deposit2Label:
|
|
39
|
-
deposit2Description:
|
|
40
|
-
verifyCta:
|
|
13
|
+
verifyBankAccountTitle: b,
|
|
14
|
+
verifyBankAccountDescription: p,
|
|
15
|
+
deposit1Label: l,
|
|
16
|
+
deposit1Description: m,
|
|
17
|
+
deposit2Label: f,
|
|
18
|
+
deposit2Description: g,
|
|
19
|
+
verifyCta: k
|
|
41
20
|
};
|
|
42
21
|
export {
|
|
43
22
|
o as accountNumberLabel,
|
|
44
23
|
t as addBankAccountDescription,
|
|
45
24
|
e as addBankAccountTitle,
|
|
46
25
|
r as cancelCta,
|
|
47
|
-
|
|
26
|
+
s as changeBankAccountCta,
|
|
48
27
|
c as continueCta,
|
|
49
28
|
y as default,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
m as deposit1Description,
|
|
30
|
+
l as deposit1Label,
|
|
31
|
+
g as deposit2Description,
|
|
32
|
+
f as deposit2Label,
|
|
54
33
|
u as form,
|
|
55
34
|
n as routingNumberLabel,
|
|
56
35
|
d as validations,
|
|
57
36
|
i as verificationAlert,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
37
|
+
a as verifyBankAccountCta,
|
|
38
|
+
p as verifyBankAccountDescription,
|
|
39
|
+
b as verifyBankAccountTitle,
|
|
40
|
+
k as verifyCta
|
|
62
41
|
};
|
|
63
42
|
//# sourceMappingURL=Company.BankAccount.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Company.BankAccount.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Company.BankAccount.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
const t = "Documents", n = "Documents", o = "Form", e = "Action", s = "Please note, only the signatory can sign documents.",
|
|
1
|
+
const t = "Documents", n = "Documents", o = "Form", e = "Action", s = "Please note, only the signatory can sign documents.", a = "Only the signatory can sign documents.", i = "You are the assigned signatory.", c = "Your signatory is {{signatory}}, {{title}}.", g = "A signatory has not yet been assigned", r = "Change signatory", u = "Assign signatory", l = "Sign document", y = "Complete", m = "Not signed", d = "Could not load your documents, try again later.", C = "No documents found", S = "Continue", b = {
|
|
2
2
|
documentListTitle: t,
|
|
3
3
|
documentListLabel: n,
|
|
4
4
|
formColumnLabel: o,
|
|
5
5
|
actionColumnLabel: e,
|
|
6
6
|
selfSignatoryTitle: s,
|
|
7
|
-
otherSignatoryTitle:
|
|
8
|
-
selfSignatorySubtext:
|
|
7
|
+
otherSignatoryTitle: a,
|
|
8
|
+
selfSignatorySubtext: i,
|
|
9
9
|
otherSignatorySubtext: c,
|
|
10
10
|
noSignatorySubtext: g,
|
|
11
11
|
changeSignatoryCta: r,
|
|
12
12
|
assignSignatoryCta: u,
|
|
13
13
|
signDocumentCta: l,
|
|
14
|
-
signDocumentComplete:
|
|
15
|
-
notSigned:
|
|
16
|
-
documentListError:
|
|
17
|
-
emptyTableTitle:
|
|
18
|
-
continueCta:
|
|
14
|
+
signDocumentComplete: y,
|
|
15
|
+
notSigned: m,
|
|
16
|
+
documentListError: d,
|
|
17
|
+
emptyTableTitle: C,
|
|
18
|
+
continueCta: S
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
21
|
e as actionColumnLabel,
|
|
22
22
|
u as assignSignatoryCta,
|
|
23
23
|
r as changeSignatoryCta,
|
|
24
|
-
|
|
24
|
+
S as continueCta,
|
|
25
25
|
b as default,
|
|
26
|
-
|
|
26
|
+
d as documentListError,
|
|
27
27
|
n as documentListLabel,
|
|
28
28
|
t as documentListTitle,
|
|
29
|
-
|
|
29
|
+
C as emptyTableTitle,
|
|
30
30
|
o as formColumnLabel,
|
|
31
31
|
g as noSignatorySubtext,
|
|
32
|
-
|
|
32
|
+
m as notSigned,
|
|
33
33
|
c as otherSignatorySubtext,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
a as otherSignatoryTitle,
|
|
35
|
+
i as selfSignatorySubtext,
|
|
36
36
|
s as selfSignatoryTitle,
|
|
37
|
-
|
|
37
|
+
y as signDocumentComplete,
|
|
38
38
|
l as signDocumentCta
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=Company.DocumentList.json.js.map
|
|
@@ -1,50 +1,34 @@
|
|
|
1
|
-
const e = "Federal Tax Information", n = "Enter your entity type and the legal name of your company. You can find this info on your <einLink>FEIN assignment form (Form CP575)</einLink>. We need this to file and pay your taxes correctly.",
|
|
2
|
-
"C-Corporation": "C-Corporation",
|
|
3
|
-
"S-Corporation": "S-Corporation",
|
|
4
|
-
"Sole proprietor": "Sole proprietor",
|
|
5
|
-
LLC: "LLC",
|
|
6
|
-
LLP: "LLP",
|
|
7
|
-
"Limited partnership": "Limited partnership",
|
|
8
|
-
"Co-ownership": "Co-ownership",
|
|
9
|
-
Association: "Association",
|
|
10
|
-
Trusteeship: "Trusteeship",
|
|
11
|
-
"General partnership": "General partnership",
|
|
12
|
-
"Joint venture": "Joint venture",
|
|
13
|
-
"Non-Profit": "Non-Profit"
|
|
14
|
-
}, d = {
|
|
15
|
-
941: "941 - Employer's Quarterly Federal Tax Return",
|
|
16
|
-
944: "944 - Employer's Annual Federal Tax Return"
|
|
17
|
-
}, m = "Continue", f = {
|
|
1
|
+
const e = "Federal Tax Information", n = "Enter your entity type and the legal name of your company. You can find this info on your <einLink>FEIN assignment form (Form CP575)</einLink>. We need this to file and pay your taxes correctly.", o = "Federal EIN", r = "Your company's Federal Employer Identification Number (EIN). If you don't have one, please <applyLink>apply online.</applyLink>", t = "Taxpayer type", a = "Some common types are Sole Prop, LLC, and S-Corp.", i = "Federal filing form", l = "To learn more about the different Federal Tax Form filings for payroll, please review the <irsLink>IRS website.</irsLink>", p = "Legal entity name", s = "Make sure this is the legal name of the company, not your DBA.", y = "Legal entity name is required", m = { "C-Corporation": "C-Corporation", "S-Corporation": "S-Corporation", "Sole proprietor": "Sole proprietor", LLC: "LLC", LLP: "LLP", "Limited partnership": "Limited partnership", "Co-ownership": "Co-ownership", Association: "Association", Trusteeship: "Trusteeship", "General partnership": "General partnership", "Joint venture": "Joint venture", "Non-Profit": "Non-Profit" }, c = { 941: "941 - Employer's Quarterly Federal Tax Return", 944: "944 - Employer's Annual Federal Tax Return" }, d = "Continue", _ = {
|
|
18
2
|
pageTitle: e,
|
|
19
3
|
entity_type_and_legal_name_intro: n,
|
|
20
|
-
federal_ein_label:
|
|
4
|
+
federal_ein_label: o,
|
|
21
5
|
federal_ein_description: r,
|
|
22
|
-
taxpayer_type_label:
|
|
23
|
-
taxpayer_type_description:
|
|
6
|
+
taxpayer_type_label: t,
|
|
7
|
+
taxpayer_type_description: a,
|
|
24
8
|
federal_filing_form_label: i,
|
|
25
9
|
federal_filing_form_description: l,
|
|
26
10
|
legal_entity_name_label: p,
|
|
27
11
|
legal_entity_name_description: s,
|
|
28
|
-
legal_entity_name_error:
|
|
29
|
-
taxPayerType:
|
|
30
|
-
filingForm:
|
|
31
|
-
continueCta:
|
|
12
|
+
legal_entity_name_error: y,
|
|
13
|
+
taxPayerType: m,
|
|
14
|
+
filingForm: c,
|
|
15
|
+
continueCta: d
|
|
32
16
|
};
|
|
33
17
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
d as continueCta,
|
|
19
|
+
_ as default,
|
|
36
20
|
n as entity_type_and_legal_name_intro,
|
|
37
21
|
r as federal_ein_description,
|
|
38
|
-
|
|
22
|
+
o as federal_ein_label,
|
|
39
23
|
l as federal_filing_form_description,
|
|
40
24
|
i as federal_filing_form_label,
|
|
41
|
-
|
|
25
|
+
c as filingForm,
|
|
42
26
|
s as legal_entity_name_description,
|
|
43
|
-
|
|
27
|
+
y as legal_entity_name_error,
|
|
44
28
|
p as legal_entity_name_label,
|
|
45
29
|
e as pageTitle,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
30
|
+
m as taxPayerType,
|
|
31
|
+
a as taxpayer_type_description,
|
|
32
|
+
t as taxpayer_type_label
|
|
49
33
|
};
|
|
50
34
|
//# sourceMappingURL=Company.FederalTaxes.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Company.FederalTaxes.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Company.FederalTaxes.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|