kitunga-web 0.1.78
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/dist/features/buttons/components/Btns/Button.d.ts +32 -0
- package/dist/features/buttons/components/Btns/Button.d.ts.map +1 -0
- package/dist/features/buttons/components/Btns/Button.js +50 -0
- package/dist/features/buttons/components/Btns/Button.js.map +1 -0
- package/dist/features/buttons/components/Btns/Button.module.css +205 -0
- package/dist/features/data-display/components/Cards/ChartCard.d.ts +9 -0
- package/dist/features/data-display/components/Cards/ChartCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/ChartCard.js +7 -0
- package/dist/features/data-display/components/Cards/ChartCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/ChartCard.module.css +27 -0
- package/dist/features/data-display/components/Cards/MetricCard.d.ts +11 -0
- package/dist/features/data-display/components/Cards/MetricCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/MetricCard.js +10 -0
- package/dist/features/data-display/components/Cards/MetricCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/MetricCard.module.css +86 -0
- package/dist/features/data-display/components/Cards/StatCard.d.ts +15 -0
- package/dist/features/data-display/components/Cards/StatCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/StatCard.js +23 -0
- package/dist/features/data-display/components/Cards/StatCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/StatCard.module.css +98 -0
- package/dist/features/data-display/components/Table/LineItemsTable.d.ts +4 -0
- package/dist/features/data-display/components/Table/LineItemsTable.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/LineItemsTable.js +216 -0
- package/dist/features/data-display/components/Table/LineItemsTable.js.map +1 -0
- package/dist/features/data-display/components/Table/LineItemsTable.module.css +223 -0
- package/dist/features/data-display/components/Table/Table.d.ts +4 -0
- package/dist/features/data-display/components/Table/Table.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/Table.js +181 -0
- package/dist/features/data-display/components/Table/Table.js.map +1 -0
- package/dist/features/data-display/components/Table/Table.module.css +305 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts +83 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.js +2 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.js.map +1 -0
- package/dist/features/data-display/components/Table/types/Table.d.ts +78 -0
- package/dist/features/data-display/components/Table/types/Table.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/types/Table.js +2 -0
- package/dist/features/data-display/components/Table/types/Table.js.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.d.ts +12 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.d.ts.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.js +7 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.js.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.module.css +36 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.d.ts +18 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.d.ts.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js +52 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.module.css +90 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.d.ts +21 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.d.ts.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.js +37 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.js.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.d.ts +15 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.d.ts.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js +56 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.module.css +90 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.d.ts +9 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.d.ts.map +1 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js +9 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js.map +1 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.module.css +36 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts +8 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts.map +1 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.js +52 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.js.map +1 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.module.css +122 -0
- package/dist/features/feedback/components/Loading/AppLoading.d.ts +14 -0
- package/dist/features/feedback/components/Loading/AppLoading.d.ts.map +1 -0
- package/dist/features/feedback/components/Loading/AppLoading.js +17 -0
- package/dist/features/feedback/components/Loading/AppLoading.js.map +1 -0
- package/dist/features/feedback/components/Loading/AppLoading.module.css +95 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.d.ts +24 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.d.ts.map +1 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.js +11 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.js.map +1 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.module.css +141 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.d.ts +10 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.js +48 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.module.css +123 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.d.ts +11 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.js +8 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.module.css +58 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.d.ts +27 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.js +56 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.module.css +200 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.js +97 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.module.css +186 -0
- package/dist/features/inputs/components/Inputs/DateInput.d.ts +27 -0
- package/dist/features/inputs/components/Inputs/DateInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/DateInput.js +236 -0
- package/dist/features/inputs/components/Inputs/DateInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/DateInput.module.css +301 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.d.ts +24 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.js +10 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.module.css +24 -0
- package/dist/features/inputs/components/Inputs/NumberInput.d.ts +21 -0
- package/dist/features/inputs/components/Inputs/NumberInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/NumberInput.js +82 -0
- package/dist/features/inputs/components/Inputs/NumberInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/NumberInput.module.css +148 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.d.ts +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.js +187 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.module.css +259 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.js +20 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.js +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.d.ts +5 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.js +48 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.js +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.js +17 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.d.ts +10 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.js +2 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.js.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.d.ts +13 -0
- package/dist/features/inputs/components/Inputs/SearchInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.js +12 -0
- package/dist/features/inputs/components/Inputs/SearchInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.module.css +107 -0
- package/dist/features/inputs/components/Inputs/StepperInput.d.ts +14 -0
- package/dist/features/inputs/components/Inputs/StepperInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/StepperInput.js +44 -0
- package/dist/features/inputs/components/Inputs/StepperInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/StepperInput.module.css +96 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts +15 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js +102 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.module.css +259 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts +5 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.js +3 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.d.ts +4 -0
- package/dist/features/inputs/components/Inputs/TextInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.js +61 -0
- package/dist/features/inputs/components/Inputs/TextInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.module.css +174 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.d.ts +4 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.js +45 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.module.css +144 -0
- package/dist/features/inputs/components/Inputs/types/input.types.d.ts +28 -0
- package/dist/features/inputs/components/Inputs/types/input.types.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/types/input.types.js +2 -0
- package/dist/features/inputs/components/Inputs/types/input.types.js.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.d.ts +25 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.d.ts.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.js +40 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.js.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.module.css +219 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.d.ts +13 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.d.ts.map +1 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.js +52 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.js.map +1 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.module.css +24 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.d.ts +14 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.js +22 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.module.css +41 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.d.ts +24 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.js +131 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.js.map +1 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.module.css +139 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts +66 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts.map +1 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js +89 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js.map +1 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.module.css +269 -0
- package/dist/features/overlays/components/Popup/Popup.d.ts +8 -0
- package/dist/features/overlays/components/Popup/Popup.d.ts.map +1 -0
- package/dist/features/overlays/components/Popup/Popup.js +23 -0
- package/dist/features/overlays/components/Popup/Popup.js.map +1 -0
- package/dist/features/overlays/components/Popup/Popup.module.css +64 -0
- package/dist/features/overlays/components/Popup/index.d.ts +3 -0
- package/dist/features/overlays/components/Popup/index.d.ts.map +1 -0
- package/dist/features/overlays/components/Popup/index.js +2 -0
- package/dist/features/overlays/components/Popup/index.js.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts +36 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js +38 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.module.css +339 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.d.ts +18 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.d.ts.map +1 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.js +34 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.js.map +1 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.module.css +23 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.d.ts +36 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js +19 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.module.css +88 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.d.ts +14 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js +119 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.module.css +76 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.d.ts +3 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js +486 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.module.css +55 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.d.ts +16 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.js +8 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.module.css +77 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts +10 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.js +9 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.module.css +86 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts +13 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.js +9 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.module.css +8 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts +20 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js +7 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.module.css +13 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts +216 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.js +2 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.d.ts +6 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.js +22 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.d.ts +10 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.js +31 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.js.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.d.ts +19 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js +104 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.module.css +55 -0
- package/dist/features/selects/components/Selects/CustomSelect.d.ts +27 -0
- package/dist/features/selects/components/Selects/CustomSelect.d.ts.map +1 -0
- package/dist/features/selects/components/Selects/CustomSelect.js +53 -0
- package/dist/features/selects/components/Selects/CustomSelect.js.map +1 -0
- package/dist/features/selects/components/Selects/CustomSelect.module.css +307 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.d.ts +12 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.d.ts.map +1 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.js +178 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.js.map +1 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.module.css +254 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.d.ts +12 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.d.ts.map +1 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.js +183 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.js.map +1 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.module.css +277 -0
- package/dist/features/uploads/components/VideoUpload/index.d.ts +2 -0
- package/dist/features/uploads/components/VideoUpload/index.d.ts.map +1 -0
- package/dist/features/uploads/components/VideoUpload/index.js +2 -0
- package/dist/features/uploads/components/VideoUpload/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/shared/styles/globals.css +80 -0
- package/dist/shared/styles/tokens.css +138 -0
- package/dist/shared/utils/devDelay.d.ts +8 -0
- package/dist/shared/utils/devDelay.d.ts.map +1 -0
- package/dist/shared/utils/devDelay.js +11 -0
- package/dist/shared/utils/devDelay.js.map +1 -0
- package/dist/shared/utils/files.d.ts +9 -0
- package/dist/shared/utils/files.d.ts.map +1 -0
- package/dist/shared/utils/files.js +26 -0
- package/dist/shared/utils/files.js.map +1 -0
- package/dist/shared/utils/formatCurrency.d.ts +24 -0
- package/dist/shared/utils/formatCurrency.d.ts.map +1 -0
- package/dist/shared/utils/formatCurrency.js +96 -0
- package/dist/shared/utils/formatCurrency.js.map +1 -0
- package/dist/shared/utils/location/countries/ao.d.ts +3 -0
- package/dist/shared/utils/location/countries/ao.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/ao.js +52 -0
- package/dist/shared/utils/location/countries/ao.js.map +1 -0
- package/dist/shared/utils/location/countries/ao.json +254 -0
- package/dist/shared/utils/location/countries/ao.official-2026.json +254 -0
- package/dist/shared/utils/location/countries/br.d.ts +3 -0
- package/dist/shared/utils/location/countries/br.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/br.js +33 -0
- package/dist/shared/utils/location/countries/br.js.map +1 -0
- package/dist/shared/utils/location/countries/mz.d.ts +3 -0
- package/dist/shared/utils/location/countries/mz.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/mz.js +17 -0
- package/dist/shared/utils/location/countries/mz.js.map +1 -0
- package/dist/shared/utils/location/countries/ng.d.ts +3 -0
- package/dist/shared/utils/location/countries/ng.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/ng.js +43 -0
- package/dist/shared/utils/location/countries/ng.js.map +1 -0
- package/dist/shared/utils/location/countries/pt.d.ts +3 -0
- package/dist/shared/utils/location/countries/pt.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/pt.js +26 -0
- package/dist/shared/utils/location/countries/pt.js.map +1 -0
- package/dist/shared/utils/location/countries/us.d.ts +3 -0
- package/dist/shared/utils/location/countries/us.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/us.js +57 -0
- package/dist/shared/utils/location/countries/us.js.map +1 -0
- package/dist/shared/utils/location/countries/za.d.ts +3 -0
- package/dist/shared/utils/location/countries/za.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/za.js +15 -0
- package/dist/shared/utils/location/countries/za.js.map +1 -0
- package/dist/shared/utils/location/index.d.ts +14 -0
- package/dist/shared/utils/location/index.d.ts.map +1 -0
- package/dist/shared/utils/location/index.js +131 -0
- package/dist/shared/utils/location/index.js.map +1 -0
- package/dist/shared/utils/location/types.d.ts +24 -0
- package/dist/shared/utils/location/types.d.ts.map +1 -0
- package/dist/shared/utils/location/types.js +2 -0
- package/dist/shared/utils/location/types.js.map +1 -0
- package/dist/shared/utils/logger.d.ts +43 -0
- package/dist/shared/utils/logger.d.ts.map +1 -0
- package/dist/shared/utils/logger.js +139 -0
- package/dist/shared/utils/logger.js.map +1 -0
- package/dist/shared/utils/maskedDecimal.d.ts +8 -0
- package/dist/shared/utils/maskedDecimal.d.ts.map +1 -0
- package/dist/shared/utils/maskedDecimal.js +42 -0
- package/dist/shared/utils/maskedDecimal.js.map +1 -0
- package/dist/shared/utils/slug.d.ts +12 -0
- package/dist/shared/utils/slug.d.ts.map +1 -0
- package/dist/shared/utils/slug.js +31 -0
- package/dist/shared/utils/slug.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/ao.d.ts +11 -0
- package/dist/shared/utils/tax-id/countries/ao.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/ao.js +115 -0
- package/dist/shared/utils/tax-id/countries/ao.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/br.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/br.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/br.js +24 -0
- package/dist/shared/utils/tax-id/countries/br.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/index.d.ts +8 -0
- package/dist/shared/utils/tax-id/countries/index.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/index.js +12 -0
- package/dist/shared/utils/tax-id/countries/index.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/pt.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/pt.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/pt.js +24 -0
- package/dist/shared/utils/tax-id/countries/pt.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/us.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/us.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/us.js +24 -0
- package/dist/shared/utils/tax-id/countries/us.js.map +1 -0
- package/dist/shared/utils/tax-id/index.d.ts +14 -0
- package/dist/shared/utils/tax-id/index.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/index.js +140 -0
- package/dist/shared/utils/tax-id/index.js.map +1 -0
- package/dist/shared/utils/tax-id/types.d.ts +21 -0
- package/dist/shared/utils/tax-id/types.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/types.js +2 -0
- package/dist/shared/utils/tax-id/types.js.map +1 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +2 -0
- package/dist/styles.js.map +1 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +2 -0
- package/dist/tokens.js.map +1 -0
- package/dist/ui.d.ts +67 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +39 -0
- package/dist/ui.js.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +4 -0
- package/dist/utils.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export const ANGOLA_COMPANY_NIF_REGEX = /^5\d{9}$/;
|
|
2
|
+
export const ANGOLA_IDENTITY_DOCUMENT_REGEX = /^\d{9}[A-Z]{2}0\d{2}$/;
|
|
3
|
+
const formatAngolaCompanyNifInput = (rawVal) => {
|
|
4
|
+
const digits = rawVal.replace(/\D/g, '').slice(0, 10);
|
|
5
|
+
if (!digits)
|
|
6
|
+
return '';
|
|
7
|
+
if (digits[0] === '5')
|
|
8
|
+
return digits;
|
|
9
|
+
return '';
|
|
10
|
+
};
|
|
11
|
+
const formatAngolaIdentityDocumentInput = (rawVal) => {
|
|
12
|
+
const chars = rawVal.toUpperCase().replace(/[^A-Z0-9]/g, '').split('');
|
|
13
|
+
let normalized = '';
|
|
14
|
+
let stage = 'digits';
|
|
15
|
+
let digitCount = 0;
|
|
16
|
+
let letterCount = 0;
|
|
17
|
+
let suffixCount = 0;
|
|
18
|
+
for (const char of chars) {
|
|
19
|
+
if (stage === 'digits') {
|
|
20
|
+
if (/\d/.test(char)) {
|
|
21
|
+
normalized += char;
|
|
22
|
+
digitCount += 1;
|
|
23
|
+
if (digitCount === 9)
|
|
24
|
+
stage = 'letters';
|
|
25
|
+
}
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (stage === 'letters') {
|
|
29
|
+
if (/[A-Z]/.test(char)) {
|
|
30
|
+
normalized += char;
|
|
31
|
+
letterCount += 1;
|
|
32
|
+
if (letterCount === 2)
|
|
33
|
+
stage = 'zero';
|
|
34
|
+
}
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (stage === 'zero') {
|
|
38
|
+
if (char === '0') {
|
|
39
|
+
normalized += char;
|
|
40
|
+
stage = 'suffix';
|
|
41
|
+
}
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (stage === 'suffix' && /\d/.test(char)) {
|
|
45
|
+
normalized += char;
|
|
46
|
+
suffixCount += 1;
|
|
47
|
+
if (suffixCount === 2)
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return normalized;
|
|
52
|
+
};
|
|
53
|
+
export const normalizeAngolaCompanyNif = (value) => { var _a; return (_a = value === null || value === void 0 ? void 0 : value.trim()) !== null && _a !== void 0 ? _a : ''; };
|
|
54
|
+
export const isValidAngolaCompanyNif = (value) => ANGOLA_COMPANY_NIF_REGEX.test(normalizeAngolaCompanyNif(value));
|
|
55
|
+
export const getAngolaCompanyNifError = (value) => {
|
|
56
|
+
const normalized = normalizeAngolaCompanyNif(value);
|
|
57
|
+
if (!normalized)
|
|
58
|
+
return 'NIF empresarial é obrigatório';
|
|
59
|
+
if (!/^\d+$/.test(normalized))
|
|
60
|
+
return 'NIF empresarial deve conter apenas números';
|
|
61
|
+
if (!ANGOLA_COMPANY_NIF_REGEX.test(normalized))
|
|
62
|
+
return 'NIF empresarial deve começar por 5 e ter 10 dígitos numéricos';
|
|
63
|
+
return undefined;
|
|
64
|
+
};
|
|
65
|
+
export const normalizeAngolaIdentityDocument = (value) => { var _a; return (_a = value === null || value === void 0 ? void 0 : value.trim().toUpperCase()) !== null && _a !== void 0 ? _a : ''; };
|
|
66
|
+
export const isValidAngolaIdentityDocument = (value) => ANGOLA_IDENTITY_DOCUMENT_REGEX.test(normalizeAngolaIdentityDocument(value));
|
|
67
|
+
export const getAngolaIdentityDocumentError = (value) => {
|
|
68
|
+
var _a;
|
|
69
|
+
const normalized = normalizeAngolaIdentityDocument(value);
|
|
70
|
+
const digitsBeforeProvince = (_a = normalized.match(/^(\d+)[A-Z]/)) === null || _a === void 0 ? void 0 : _a[1].length;
|
|
71
|
+
const onlyDigitsLength = /^\d+$/.test(normalized) ? normalized.length : undefined;
|
|
72
|
+
if (!normalized)
|
|
73
|
+
return 'Documento de identificação é obrigatório';
|
|
74
|
+
if (digitsBeforeProvince && digitsBeforeProvince > 9) {
|
|
75
|
+
return `O BI tem ${digitsBeforeProvince} dígitos antes das letras da província; o máximo permitido é 9`;
|
|
76
|
+
}
|
|
77
|
+
if (onlyDigitsLength && onlyDigitsLength > 9) {
|
|
78
|
+
return `O BI tem ${onlyDigitsLength} dígitos antes das letras da província; o máximo permitido é 9`;
|
|
79
|
+
}
|
|
80
|
+
if (!/^\d{9}/.test(normalized))
|
|
81
|
+
return 'O BI deve começar com 9 dígitos antes das letras da província';
|
|
82
|
+
if (!/^\d{9}[A-Z]{2}/.test(normalized))
|
|
83
|
+
return 'Depois dos 9 dígitos, informe 2 letras da província';
|
|
84
|
+
if (!/^\d{9}[A-Z]{2}0/.test(normalized))
|
|
85
|
+
return 'Depois das letras da província, o BI deve terminar com 0 seguido de 2 dígitos';
|
|
86
|
+
if (!ANGOLA_IDENTITY_DOCUMENT_REGEX.test(normalized))
|
|
87
|
+
return 'O BI deve seguir o formato 000000000AA000, ex: 003254120CA050';
|
|
88
|
+
return undefined;
|
|
89
|
+
};
|
|
90
|
+
export const aoTaxIdConfig = {
|
|
91
|
+
code: 'AO',
|
|
92
|
+
name: 'Angola',
|
|
93
|
+
defaultKind: 'company',
|
|
94
|
+
variants: {
|
|
95
|
+
company: {
|
|
96
|
+
kind: 'company',
|
|
97
|
+
label: 'NIF empresarial',
|
|
98
|
+
template: '0000000000',
|
|
99
|
+
validateRegex: ANGOLA_COMPANY_NIF_REGEX,
|
|
100
|
+
errorMessage: 'NIF empresarial deve começar por 5 e ter 10 dígitos numéricos',
|
|
101
|
+
inputMode: 'numeric',
|
|
102
|
+
formatInput: formatAngolaCompanyNifInput,
|
|
103
|
+
},
|
|
104
|
+
personal: {
|
|
105
|
+
kind: 'personal',
|
|
106
|
+
label: 'NIF pessoal',
|
|
107
|
+
template: '000000000AA000',
|
|
108
|
+
validateRegex: ANGOLA_IDENTITY_DOCUMENT_REGEX,
|
|
109
|
+
errorMessage: 'NIF pessoal (BI) deve seguir o formato 000000000AA000',
|
|
110
|
+
inputMode: 'text',
|
|
111
|
+
formatInput: formatAngolaIdentityDocumentInput,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=ao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ao.js","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/ao.ts"],"names":[],"mappings":"AAEA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AAI,CAAC,UAAU,CAAC;QAAE,OAAO,+DAA+D,CAAC;IAE7H,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,iBAAiB;YACxB,QAAQ,EAAE,YAAY;YACtB,aAAa,EAAE,wBAAwB;YACvC,YAAY,EAAE,+DAA+D;YAC7E,SAAS,EAAE,SAAS;YACpB,WAAW,EAAE,2BAA2B;SACzC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,aAAa;YACpB,QAAQ,EAAE,gBAAgB;YAC1B,aAAa,EAAE,8BAA8B;YAC7C,YAAY,EAAE,uDAAuD;YACrE,SAAS,EAAE,MAAM;YACjB,WAAW,EAAE,iCAAiC;SAC/C;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"br.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/br.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,aAAa,EAAE,kBAsB3B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const brTaxIdConfig = {
|
|
2
|
+
code: 'BR',
|
|
3
|
+
name: 'Brasil',
|
|
4
|
+
defaultKind: 'company',
|
|
5
|
+
variants: {
|
|
6
|
+
company: {
|
|
7
|
+
kind: 'company',
|
|
8
|
+
label: 'CNPJ',
|
|
9
|
+
template: '00.000.000/0000-00',
|
|
10
|
+
validateRegex: /^\d{14}$/,
|
|
11
|
+
errorMessage: 'CNPJ deve ter 14 dígitos numéricos',
|
|
12
|
+
inputMode: 'numeric',
|
|
13
|
+
},
|
|
14
|
+
personal: {
|
|
15
|
+
kind: 'personal',
|
|
16
|
+
label: 'CPF',
|
|
17
|
+
template: '000.000.000-00',
|
|
18
|
+
validateRegex: /^\d{11}$/,
|
|
19
|
+
errorMessage: 'CPF deve ter 11 dígitos numéricos',
|
|
20
|
+
inputMode: 'numeric',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=br.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"br.js","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/br.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,oBAAoB;YAC9B,aAAa,EAAE,UAAU;YACzB,YAAY,EAAE,oCAAoC;YAClD,SAAS,EAAE,SAAS;SACrB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE,gBAAgB;YAC1B,aAAa,EAAE,UAAU;YACzB,YAAY,EAAE,mCAAmC;YACjD,SAAS,EAAE,SAAS;SACrB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TaxIdCountryConfig } from '../types';
|
|
2
|
+
import { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, aoTaxIdConfig, getAngolaCompanyNifError, getAngolaIdentityDocumentError, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument } from './ao';
|
|
3
|
+
import { brTaxIdConfig } from './br';
|
|
4
|
+
import { ptTaxIdConfig } from './pt';
|
|
5
|
+
import { usTaxIdConfig } from './us';
|
|
6
|
+
export declare const TAX_ID_COUNTRIES: Record<string, TaxIdCountryConfig>;
|
|
7
|
+
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, aoTaxIdConfig, brTaxIdConfig, ptTaxIdConfig, usTaxIdConfig, getAngolaCompanyNifError, getAngolaIdentityDocumentError, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,aAAa,EACb,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAErC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAK/D,CAAC;AAEF,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,GAChC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, aoTaxIdConfig, getAngolaCompanyNifError, getAngolaIdentityDocumentError, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, } from './ao';
|
|
2
|
+
import { brTaxIdConfig } from './br';
|
|
3
|
+
import { ptTaxIdConfig } from './pt';
|
|
4
|
+
import { usTaxIdConfig } from './us';
|
|
5
|
+
export const TAX_ID_COUNTRIES = {
|
|
6
|
+
AO: aoTaxIdConfig,
|
|
7
|
+
BR: brTaxIdConfig,
|
|
8
|
+
PT: ptTaxIdConfig,
|
|
9
|
+
US: usTaxIdConfig,
|
|
10
|
+
};
|
|
11
|
+
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, aoTaxIdConfig, brTaxIdConfig, ptTaxIdConfig, usTaxIdConfig, getAngolaCompanyNifError, getAngolaIdentityDocumentError, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, };
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,aAAa,EACb,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,CAAC,MAAM,gBAAgB,GAAuC;IAClE,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,aAAa;CAClB,CAAC;AAEF,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,GAChC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/pt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,aAAa,EAAE,kBAsB3B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const ptTaxIdConfig = {
|
|
2
|
+
code: 'PT',
|
|
3
|
+
name: 'Portugal',
|
|
4
|
+
defaultKind: 'company',
|
|
5
|
+
variants: {
|
|
6
|
+
company: {
|
|
7
|
+
kind: 'company',
|
|
8
|
+
label: 'NIPC',
|
|
9
|
+
template: '000000000',
|
|
10
|
+
validateRegex: /^\d{9}$/,
|
|
11
|
+
errorMessage: 'NIPC deve ter 9 dígitos numéricos',
|
|
12
|
+
inputMode: 'numeric',
|
|
13
|
+
},
|
|
14
|
+
personal: {
|
|
15
|
+
kind: 'personal',
|
|
16
|
+
label: 'NIF',
|
|
17
|
+
template: '000000000',
|
|
18
|
+
validateRegex: /^\d{9}$/,
|
|
19
|
+
errorMessage: 'NIF deve ter 9 dígitos numéricos',
|
|
20
|
+
inputMode: 'numeric',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=pt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pt.js","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/pt.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,WAAW;YACrB,aAAa,EAAE,SAAS;YACxB,YAAY,EAAE,mCAAmC;YACjD,SAAS,EAAE,SAAS;SACrB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE,WAAW;YACrB,aAAa,EAAE,SAAS;YACxB,YAAY,EAAE,kCAAkC;YAChD,SAAS,EAAE,SAAS;SACrB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"us.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/us.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,aAAa,EAAE,kBAsB3B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const usTaxIdConfig = {
|
|
2
|
+
code: 'US',
|
|
3
|
+
name: 'Estados Unidos',
|
|
4
|
+
defaultKind: 'company',
|
|
5
|
+
variants: {
|
|
6
|
+
company: {
|
|
7
|
+
kind: 'company',
|
|
8
|
+
label: 'EIN',
|
|
9
|
+
template: '00-0000000',
|
|
10
|
+
validateRegex: /^\d{9}$/,
|
|
11
|
+
errorMessage: 'EIN deve ter 9 dígitos numéricos',
|
|
12
|
+
inputMode: 'numeric',
|
|
13
|
+
},
|
|
14
|
+
personal: {
|
|
15
|
+
kind: 'personal',
|
|
16
|
+
label: 'SSN',
|
|
17
|
+
template: '000-00-0000',
|
|
18
|
+
validateRegex: /^\d{9}$/,
|
|
19
|
+
errorMessage: 'SSN deve ter 9 dígitos numéricos',
|
|
20
|
+
inputMode: 'numeric',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=us.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"us.js","sourceRoot":"","sources":["../../../../../src/shared/utils/tax-id/countries/us.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE,YAAY;YACtB,aAAa,EAAE,SAAS;YACxB,YAAY,EAAE,kCAAkC;YAChD,SAAS,EAAE,SAAS;SACrB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE,aAAa;YACvB,aAAa,EAAE,SAAS;YACxB,YAAY,EAAE,kCAAkC;YAChD,SAAS,EAAE,SAAS;SACrB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TaxIdCountryConfig, TaxIdDocumentKind, TaxIdKindOption, TaxIdVariantConfig } from './types';
|
|
2
|
+
export type { TaxIdCountryConfig, TaxIdDocumentKind, TaxIdKindOption, TaxIdVariantConfig } from './types';
|
|
3
|
+
import { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, getAngolaCompanyNifError, getAngolaIdentityDocumentError, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument } from './countries';
|
|
4
|
+
export declare const formatTaxIdValue: (value: string | null | undefined, template: string) => string;
|
|
5
|
+
export declare const sanitizeTaxIdValue: (value: string | null | undefined, template: string, formatInput?: (rawVal: string) => string) => string;
|
|
6
|
+
export declare const getTaxIdCountryConfig: (code?: string | null) => TaxIdCountryConfig;
|
|
7
|
+
export declare const getTaxIdVariantConfig: (countryCode?: string | null, kind?: TaxIdDocumentKind | null) => TaxIdVariantConfig;
|
|
8
|
+
export declare const getTaxIdKindOptions: (countryCode?: string | null) => TaxIdKindOption[];
|
|
9
|
+
export declare const getTaxIdPlaceholder: (countryCode?: string | null, kind?: TaxIdDocumentKind | null) => string;
|
|
10
|
+
export declare const isValidTaxIdValue: (value?: string | null, countryCode?: string | null, kind?: TaxIdDocumentKind | null) => boolean;
|
|
11
|
+
export declare const getTaxIdError: (value?: string | null, countryCode?: string | null, kind?: TaxIdDocumentKind | null) => string | undefined;
|
|
12
|
+
export declare const getTaxIdDisplayLabel: (countryCode?: string | null, kind?: TaxIdDocumentKind | null) => string;
|
|
13
|
+
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, getAngolaCompanyNifError, getAngolaIdentityDocumentError, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/utils/tax-id/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC1G,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE1G,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,aAAa,CAAC;AAwCrB,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,MAAM,WAmBlF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,UAAU,MAAM,EAChB,cAAc,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,WA2BzC,CAAC;AA0BF,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,GAAG,IAAI,KAAG,kBAK5D,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,cAAc,MAAM,GAAG,IAAI,EAC3B,OAAO,iBAAiB,GAAG,IAAI,KAC9B,kBAIF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,cAAc,MAAM,GAAG,IAAI,KAAG,eAAe,EAGhF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,cAAc,MAAM,GAAG,IAAI,EAAE,OAAO,iBAAiB,GAAG,IAAI,WAC7C,CAAC;AAEpD,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,GAAG,IAAI,EACrB,cAAc,MAAM,GAAG,IAAI,EAC3B,OAAO,iBAAiB,GAAG,IAAI,YAKhC,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,QAAQ,MAAM,GAAG,IAAI,EACrB,cAAc,MAAM,GAAG,IAAI,EAC3B,OAAO,iBAAiB,GAAG,IAAI,uBAQhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,GAAG,IAAI,EAAE,OAAO,iBAAiB,GAAG,IAAI,WACjD,CAAC;AAEjD,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,GAChC,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, getAngolaCompanyNifError, getAngolaIdentityDocumentError, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, } from './countries';
|
|
2
|
+
const PLACEHOLDER_TOKEN_REGEX = /[0AX]/;
|
|
3
|
+
const DIGIT_REGEX = /\d/;
|
|
4
|
+
const LETTER_REGEX = /[A-Z]/;
|
|
5
|
+
const ALPHANUMERIC_REGEX = /[A-Z0-9]/;
|
|
6
|
+
const normalizeCountryCode = (code) => {
|
|
7
|
+
if (!code)
|
|
8
|
+
return undefined;
|
|
9
|
+
const upper = code.trim().toUpperCase();
|
|
10
|
+
if (!upper)
|
|
11
|
+
return undefined;
|
|
12
|
+
if (upper.length === 2)
|
|
13
|
+
return upper;
|
|
14
|
+
if (upper === 'AOA' || upper === 'ANGOLA')
|
|
15
|
+
return 'AO';
|
|
16
|
+
if (upper === 'BRASIL' || upper === 'BRAZIL')
|
|
17
|
+
return 'BR';
|
|
18
|
+
if (upper === 'PORTUGAL')
|
|
19
|
+
return 'PT';
|
|
20
|
+
if (upper === 'ESTADOS UNIDOS' || upper === 'USA' || upper === 'UNITED STATES')
|
|
21
|
+
return 'US';
|
|
22
|
+
return upper;
|
|
23
|
+
};
|
|
24
|
+
const cleanInput = (value) => { var _a; return (_a = value === null || value === void 0 ? void 0 : value.toUpperCase().replace(/[^A-Z0-9]/g, '')) !== null && _a !== void 0 ? _a : ''; };
|
|
25
|
+
const countPlaceholders = (template) => Array.from(template).filter((char) => PLACEHOLDER_TOKEN_REGEX.test(char)).length;
|
|
26
|
+
const pickNextMatchingCharacter = (raw, startIndex, token) => {
|
|
27
|
+
let index = startIndex;
|
|
28
|
+
while (index < raw.length) {
|
|
29
|
+
const candidate = raw[index];
|
|
30
|
+
if (token === '0' && DIGIT_REGEX.test(candidate))
|
|
31
|
+
return { match: candidate, nextIndex: index + 1 };
|
|
32
|
+
if (token === 'A' && LETTER_REGEX.test(candidate))
|
|
33
|
+
return { match: candidate, nextIndex: index + 1 };
|
|
34
|
+
if (token === 'X' && ALPHANUMERIC_REGEX.test(candidate))
|
|
35
|
+
return { match: candidate, nextIndex: index + 1 };
|
|
36
|
+
index += 1;
|
|
37
|
+
}
|
|
38
|
+
return { match: '', nextIndex: raw.length };
|
|
39
|
+
};
|
|
40
|
+
export const formatTaxIdValue = (value, template) => {
|
|
41
|
+
const raw = sanitizeTaxIdValue(value, template);
|
|
42
|
+
if (!raw)
|
|
43
|
+
return '';
|
|
44
|
+
let result = '';
|
|
45
|
+
let rawIndex = 0;
|
|
46
|
+
for (const token of Array.from(template)) {
|
|
47
|
+
if (token === '0' || token === 'A' || token === 'X') {
|
|
48
|
+
if (rawIndex >= raw.length)
|
|
49
|
+
break;
|
|
50
|
+
result += raw[rawIndex];
|
|
51
|
+
rawIndex += 1;
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
result += token;
|
|
55
|
+
}
|
|
56
|
+
return result;
|
|
57
|
+
};
|
|
58
|
+
export const sanitizeTaxIdValue = (value, template, formatInput) => {
|
|
59
|
+
const raw = cleanInput(value);
|
|
60
|
+
if (!raw)
|
|
61
|
+
return '';
|
|
62
|
+
const normalizedRaw = formatInput ? cleanInput(formatInput(raw)) : raw;
|
|
63
|
+
if (!normalizedRaw)
|
|
64
|
+
return '';
|
|
65
|
+
const limit = countPlaceholders(template);
|
|
66
|
+
if (!limit)
|
|
67
|
+
return normalizedRaw;
|
|
68
|
+
let result = '';
|
|
69
|
+
let rawIndex = 0;
|
|
70
|
+
for (const token of Array.from(template)) {
|
|
71
|
+
if (token !== '0' && token !== 'A' && token !== 'X')
|
|
72
|
+
continue;
|
|
73
|
+
const { match, nextIndex } = pickNextMatchingCharacter(normalizedRaw, rawIndex, token);
|
|
74
|
+
if (!match)
|
|
75
|
+
break;
|
|
76
|
+
result += match;
|
|
77
|
+
rawIndex = nextIndex;
|
|
78
|
+
if (result.length >= limit)
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
};
|
|
83
|
+
const genericConfig = () => ({
|
|
84
|
+
code: 'GLOBAL',
|
|
85
|
+
name: 'Global',
|
|
86
|
+
defaultKind: 'company',
|
|
87
|
+
variants: {
|
|
88
|
+
company: {
|
|
89
|
+
kind: 'company',
|
|
90
|
+
label: 'Company ID',
|
|
91
|
+
template: 'XXXXXXXXXXXXXXXXXXXX',
|
|
92
|
+
validateRegex: /^[A-Z0-9]{1,20}$/,
|
|
93
|
+
errorMessage: 'Company ID inválido',
|
|
94
|
+
inputMode: 'text',
|
|
95
|
+
},
|
|
96
|
+
personal: {
|
|
97
|
+
kind: 'personal',
|
|
98
|
+
label: 'Personal ID',
|
|
99
|
+
template: 'XXXXXXXXXXXXXXXXXXXX',
|
|
100
|
+
validateRegex: /^[A-Z0-9]{1,20}$/,
|
|
101
|
+
errorMessage: 'Personal ID inválido',
|
|
102
|
+
inputMode: 'text',
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
export const getTaxIdCountryConfig = (code) => {
|
|
107
|
+
var _a;
|
|
108
|
+
const normalized = normalizeCountryCode(code);
|
|
109
|
+
if (!normalized)
|
|
110
|
+
return genericConfig();
|
|
111
|
+
return (_a = TAX_ID_COUNTRIES[normalized]) !== null && _a !== void 0 ? _a : genericConfig();
|
|
112
|
+
};
|
|
113
|
+
export const getTaxIdVariantConfig = (countryCode, kind) => {
|
|
114
|
+
var _a;
|
|
115
|
+
const config = getTaxIdCountryConfig(countryCode);
|
|
116
|
+
const resolvedKind = kind !== null && kind !== void 0 ? kind : config.defaultKind;
|
|
117
|
+
return (_a = config.variants[resolvedKind]) !== null && _a !== void 0 ? _a : config.variants[config.defaultKind];
|
|
118
|
+
};
|
|
119
|
+
export const getTaxIdKindOptions = (countryCode) => {
|
|
120
|
+
const config = getTaxIdCountryConfig(countryCode);
|
|
121
|
+
return Object.values(config.variants).map((variant) => ({ value: variant.kind, label: variant.label }));
|
|
122
|
+
};
|
|
123
|
+
export const getTaxIdPlaceholder = (countryCode, kind) => getTaxIdVariantConfig(countryCode, kind).template;
|
|
124
|
+
export const isValidTaxIdValue = (value, countryCode, kind) => {
|
|
125
|
+
const variant = getTaxIdVariantConfig(countryCode, kind);
|
|
126
|
+
const normalized = sanitizeTaxIdValue(value, variant.template, variant.formatInput);
|
|
127
|
+
return variant.validateRegex.test(normalized);
|
|
128
|
+
};
|
|
129
|
+
export const getTaxIdError = (value, countryCode, kind) => {
|
|
130
|
+
const variant = getTaxIdVariantConfig(countryCode, kind);
|
|
131
|
+
const normalized = sanitizeTaxIdValue(value, variant.template, variant.formatInput);
|
|
132
|
+
if (!normalized)
|
|
133
|
+
return `${variant.label} é obrigatório`;
|
|
134
|
+
if (!variant.validateRegex.test(normalized))
|
|
135
|
+
return variant.errorMessage;
|
|
136
|
+
return undefined;
|
|
137
|
+
};
|
|
138
|
+
export const getTaxIdDisplayLabel = (countryCode, kind) => getTaxIdVariantConfig(countryCode, kind).label;
|
|
139
|
+
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, getAngolaCompanyNifError, getAngolaIdentityDocumentError, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, };
|
|
140
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared/utils/tax-id/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,aAAa,CAAC;AAErB,MAAM,uBAAuB,GAAG,OAAO,CAAC;AACxC,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,YAAY,GAAG,OAAO,CAAC;AAC7B,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAEtC,MAAM,oBAAoB,GAAG,CAAC,IAAoB,EAAE,EAAE;IACpD,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAE5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AAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,GAChC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type TaxIdDocumentKind = 'personal' | 'company';
|
|
2
|
+
export interface TaxIdVariantConfig {
|
|
3
|
+
kind: TaxIdDocumentKind;
|
|
4
|
+
label: string;
|
|
5
|
+
template: string;
|
|
6
|
+
validateRegex: RegExp;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
inputMode?: 'numeric' | 'text';
|
|
9
|
+
formatInput?: (rawVal: string) => string;
|
|
10
|
+
}
|
|
11
|
+
export interface TaxIdCountryConfig {
|
|
12
|
+
code: string;
|
|
13
|
+
name: string;
|
|
14
|
+
defaultKind: TaxIdDocumentKind;
|
|
15
|
+
variants: Record<TaxIdDocumentKind, TaxIdVariantConfig>;
|
|
16
|
+
}
|
|
17
|
+
export interface TaxIdKindOption {
|
|
18
|
+
value: TaxIdDocumentKind;
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/shared/utils/tax-id/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEvD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CAC1C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,iBAAiB,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/shared/utils/tax-id/types.ts"],"names":[],"mappings":""}
|
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC"}
|
package/dist/styles.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC"}
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC"}
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC"}
|
package/dist/ui.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export { default as Button } from './features/buttons/components/Btns/Button';
|
|
2
|
+
export type { ButtonProps } from './features/buttons/components/Btns/Button';
|
|
3
|
+
export { default as TextInput } from './features/inputs/components/Inputs/TextInput';
|
|
4
|
+
export type { TextInputProps } from './features/inputs/components/Inputs/types/input.types';
|
|
5
|
+
export { default as TextareaInput } from './features/inputs/components/Inputs/TextareaInput';
|
|
6
|
+
export type { TextareaInputProps } from './features/inputs/components/Inputs/types/input.types';
|
|
7
|
+
export { default as NumberInput } from './features/inputs/components/Inputs/NumberInput';
|
|
8
|
+
export type { NumberInputProps } from './features/inputs/components/Inputs/NumberInput';
|
|
9
|
+
export { default as StepperInput } from './features/inputs/components/Inputs/StepperInput';
|
|
10
|
+
export type { StepperInputProps, StepperInputSize } from './features/inputs/components/Inputs/StepperInput';
|
|
11
|
+
export { default as SearchInput } from './features/inputs/components/Inputs/SearchInput';
|
|
12
|
+
export type { SearchInputProps } from './features/inputs/components/Inputs/SearchInput';
|
|
13
|
+
export { default as DateInput } from './features/inputs/components/Inputs/DateInput';
|
|
14
|
+
export type { DateInputProps, DateInputSize, DateInputType } from './features/inputs/components/Inputs/DateInput';
|
|
15
|
+
export { default as PhoneInput } from './features/inputs/components/Inputs/PhoneInput/PhoneInput';
|
|
16
|
+
export type { PhoneInputProps } from './features/inputs/components/Inputs/PhoneInput/PhoneInput';
|
|
17
|
+
export { getCountryConfig, validatePhone } from './features/inputs/components/Inputs/PhoneInput/countries';
|
|
18
|
+
export { default as TaxIdInput } from './features/inputs/components/Inputs/TaxIdInput/TaxIdInput';
|
|
19
|
+
export type { TaxIdInputProps } from './features/inputs/components/Inputs/TaxIdInput/TaxIdInput';
|
|
20
|
+
export { default as ImageUpload } from './features/uploads/components/ImageUpload/ImageUpload';
|
|
21
|
+
export { default as VideoUpload } from './features/uploads/components/VideoUpload/VideoUpload';
|
|
22
|
+
export { default as CustomSelect } from './features/selects/components/Selects/CustomSelect';
|
|
23
|
+
export type { CustomSelectProps, Option } from './features/selects/components/Selects/CustomSelect';
|
|
24
|
+
export { default as AppLoading } from './features/feedback/components/Loading/AppLoading';
|
|
25
|
+
export { default as DropdownMenu } from './features/overlays/components/dropdowns/DropdownMenu';
|
|
26
|
+
export type { DropdownMenuItem, DropdownMenuProps } from './features/overlays/components/dropdowns/DropdownMenu';
|
|
27
|
+
export { default as ComprehensiveDeleteModal } from './features/overlays/components/DeleteModal/ComprehensiveDeleteModal';
|
|
28
|
+
export type { DeleteModalBadgeVariant, DeleteModalDependencyGroup, DeleteModalEntityBadge, DeleteModalEntityInfo, DeleteModalTooltipConfig, } from './features/overlays/components/DeleteModal/ComprehensiveDeleteModal';
|
|
29
|
+
export { default as PrerequisiteGuardModal } from './features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal';
|
|
30
|
+
export type { PrerequisiteGuardItem, PrerequisiteGuardItemSeverity, } from './features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal';
|
|
31
|
+
export { ModalSuccess } from './features/feedback/components/SuccesModal/ModalSuccess';
|
|
32
|
+
export type { ModalSuccessRow, ModalSuccessSection } from './features/feedback/components/SuccesModal/ModalSuccess';
|
|
33
|
+
export { default as ChangedDataSummary } from './features/feedback/components/ChangedDataSummary/ChangedDataSummary';
|
|
34
|
+
export type { ChangedDataSummaryProps } from './features/feedback/components/ChangedDataSummary/ChangedDataSummary';
|
|
35
|
+
export { default as CreatedDataSummary } from './features/feedback/components/CreatedDataSummary/CreatedDataSummary';
|
|
36
|
+
export type { CreatedDataSummaryProps } from './features/feedback/components/CreatedDataSummary/CreatedDataSummary';
|
|
37
|
+
export { default as InfoTooltip } from './features/feedback/components/Tooltips/InfoTooltip';
|
|
38
|
+
export type { InfoTooltipMessage } from './features/feedback/components/Tooltips/InfoTooltip';
|
|
39
|
+
export { InfoTooltipContent } from './features/feedback/components/Tooltips/InfoTooltipContent';
|
|
40
|
+
export { default as ProgressChecklistTooltip } from './features/feedback/components/Tooltips/ProgressChecklistTooltip';
|
|
41
|
+
export type { ProgressChecklistItem } from './features/feedback/components/Tooltips/ProgressChecklistTooltip';
|
|
42
|
+
export { PageHeader } from './features/navigation/components/PageHeader/PageHeader';
|
|
43
|
+
export type { PageHeaderVariant } from './features/navigation/components/PageHeader/PageHeader';
|
|
44
|
+
export { PageFooter } from './features/navigation/components/PageFooter/PageFooter';
|
|
45
|
+
export type { PageFooterVariant } from './features/navigation/components/PageFooter/PageFooter';
|
|
46
|
+
export { default as SharedMenuItem } from './features/navigation/components/Menu/SharedMenuItem';
|
|
47
|
+
export type { SharedMenuItemProps } from './features/navigation/components/Menu/SharedMenuItem';
|
|
48
|
+
export { default as Sidebar } from './features/navigation/components/Sidebar/Sidebar';
|
|
49
|
+
export type { SidebarProps, SidebarItem } from './features/navigation/components/Sidebar/Sidebar';
|
|
50
|
+
export { default as PillTabs } from './features/data-display/components/Tabs/PillTabs/PillTabs';
|
|
51
|
+
export type { TabItem, PillTabsProps } from './features/data-display/components/Tabs/PillTabs/PillTabs';
|
|
52
|
+
export { default as StatCard } from './features/data-display/components/Cards/StatCard';
|
|
53
|
+
export type { StatCardProps, StatCardValueFormat } from './features/data-display/components/Cards/StatCard';
|
|
54
|
+
export { default as ChartCard } from './features/data-display/components/Cards/ChartCard';
|
|
55
|
+
export { default as SearchEmptyState } from './features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState';
|
|
56
|
+
export { default as Table } from './features/data-display/components/Table/Table';
|
|
57
|
+
export type { TableColumn, TableProps } from './features/data-display/components/Table/types/Table';
|
|
58
|
+
export { default as LineItemsTable } from './features/data-display/components/Table/LineItemsTable';
|
|
59
|
+
export type { LineItemsColumnType, LineItemsSummaryConfigType, LineItemsTablePropsType } from './features/data-display/components/Table/LineItemsTable';
|
|
60
|
+
export { getFormDataChanges } from './features/feedback/components/ChangedDataSummary/getFormDataChanges';
|
|
61
|
+
export type { ChangedDataSummaryChange, ChangedDataSummaryFormatterContext, ChangedDataSummaryValueFormatter, ChangedDataSummaryValueFormatters, GetFormDataChangesOptions, } from './features/feedback/components/ChangedDataSummary/getFormDataChanges';
|
|
62
|
+
export { default as MultiStepForm } from './features/patterns/components/Form/MultiStepForm/components/MultiStepForm';
|
|
63
|
+
export { GenericStepRenderer } from './features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer';
|
|
64
|
+
export { SuccessScreen } from './features/patterns/components/Form/MultiStepForm/components/SuccessScreen';
|
|
65
|
+
export { VerificationCodeStep } from './features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep';
|
|
66
|
+
export type { ActionButtonIconConfig, MultiStepMode, StepConfig, RequiredFields, CompletedRules, ValidationByStep, SuccessSection, FlowNoticeType, FlowNoticePayload, MultiStepFormLabels, RequirementBuilders, FieldType, StepActions, StepsContent, StepRequestResult, ValidationErrors, FieldDefinition, StepFieldDefinitions, StepRenderProps, MultiStepFormActionIcons, } from './features/patterns/components/Form/MultiStepForm/types/types';
|
|
67
|
+
//# sourceMappingURL=ui.d.ts.map
|
package/dist/ui.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAC9E,YAAY,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,+CAA+C,CAAC;AACrF,YAAY,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAC7F,YAAY,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iDAAiD,CAAC;AACzF,YAAY,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,kDAAkD,CAAC;AAC3F,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAC5G,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iDAAiD,CAAC;AACzF,YAAY,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,+CAA+C,CAAC;AACrF,YAAY,EA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