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,259 @@
|
|
|
1
|
+
.inputContainer {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
user-select: none;
|
|
7
|
+
-webkit-user-select: none;
|
|
8
|
+
-moz-user-select: none;
|
|
9
|
+
-ms-user-select: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.boxInput {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: stretch;
|
|
15
|
+
width: 100%;
|
|
16
|
+
min-height: 40px;
|
|
17
|
+
border: 1px solid var(--border-divider);
|
|
18
|
+
border-radius: var(--radius-sm);
|
|
19
|
+
background-color: var(--bg-secondary);
|
|
20
|
+
transition: all var(--transition-fast);
|
|
21
|
+
overflow: visible;
|
|
22
|
+
position: relative;
|
|
23
|
+
user-select: none;
|
|
24
|
+
-webkit-user-select: none;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.boxInput:focus-within {
|
|
29
|
+
border-color: var(--border-focus);
|
|
30
|
+
background-color: var(--bg-primary);
|
|
31
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.flat.boxInput {
|
|
35
|
+
border: none;
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
box-shadow: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.flat.boxInput:focus-within {
|
|
41
|
+
border: none;
|
|
42
|
+
box-shadow: none;
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.disabledState {
|
|
47
|
+
background-color: var(--bg-secondary);
|
|
48
|
+
opacity: 0.7;
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.disabledState .textInput {
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.inputIcon {
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
position: absolute;
|
|
61
|
+
left: var(--spacing-md);
|
|
62
|
+
top: 50%;
|
|
63
|
+
transform: translateY(-50%);
|
|
64
|
+
color: var(--text-tertiary);
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
z-index: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.inputStack {
|
|
70
|
+
position: relative;
|
|
71
|
+
flex: 1;
|
|
72
|
+
min-width: 0;
|
|
73
|
+
height: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.inputStack .textInput {
|
|
77
|
+
padding-right: 2.9rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.inputStack.hasLeftIcon .textInput {
|
|
81
|
+
padding-left: 2.8rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.maskOverlay {
|
|
85
|
+
position: absolute;
|
|
86
|
+
inset: 0;
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
padding: 0 var(--spacing-md) 0;
|
|
90
|
+
font-size: 0.9rem;
|
|
91
|
+
white-space: pre;
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
z-index: 1;
|
|
94
|
+
font-family: inherit;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.inputStack.hasLeftIcon .maskOverlay {
|
|
99
|
+
padding-left: 2.8rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.textInput {
|
|
103
|
+
position: relative;
|
|
104
|
+
z-index: 2;
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 100%;
|
|
107
|
+
border: none;
|
|
108
|
+
background-color: transparent;
|
|
109
|
+
color: transparent;
|
|
110
|
+
caret-color: transparent;
|
|
111
|
+
font-size: 0.9rem;
|
|
112
|
+
outline: none;
|
|
113
|
+
margin: 0;
|
|
114
|
+
font-family: inherit;
|
|
115
|
+
user-select: none;
|
|
116
|
+
-webkit-user-select: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.textInput::selection {
|
|
120
|
+
background: transparent !important;
|
|
121
|
+
color: transparent !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.typedText {
|
|
125
|
+
color: var(--text-primary);
|
|
126
|
+
font-weight: 550;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.placeholderText {
|
|
130
|
+
color: var(--text-tertiary);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.customCaret {
|
|
134
|
+
display: inline-block;
|
|
135
|
+
width: 1.2px;
|
|
136
|
+
height: 1em;
|
|
137
|
+
background-color: var(--text-primary);
|
|
138
|
+
animation: blinkCaret 1s step-end infinite;
|
|
139
|
+
vertical-align: middle;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@keyframes blinkCaret {
|
|
143
|
+
0%,
|
|
144
|
+
100% {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
50% {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.rightGroup {
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: stretch;
|
|
155
|
+
flex-shrink: 0;
|
|
156
|
+
border-left: 1px solid var(--border-divider);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.kindSelect {
|
|
160
|
+
width: min-content;
|
|
161
|
+
max-width: 150px;
|
|
162
|
+
min-width: 100px;
|
|
163
|
+
height: 100%;
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
.kindSelect :global(.selectedValue:hover:not(.disabled)),
|
|
170
|
+
.kindSelect :global(.selectedValue:focus-visible),
|
|
171
|
+
.kindSelect :global(.customSelect.open .selectedValue) {
|
|
172
|
+
background: transparent;
|
|
173
|
+
border: none;
|
|
174
|
+
box-shadow: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.kindSelect :global(.valueText) {
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
justify-content: center;
|
|
181
|
+
width: 100%;
|
|
182
|
+
text-align: center;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.kindSelect :global(.arrow) {
|
|
186
|
+
margin-left: 0.35rem;
|
|
187
|
+
position: static;
|
|
188
|
+
transform: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.clearButton {
|
|
192
|
+
position: absolute;
|
|
193
|
+
right: 0.45rem;
|
|
194
|
+
top: 50%;
|
|
195
|
+
transform: translateY(-50%);
|
|
196
|
+
z-index: 3;
|
|
197
|
+
width: 24px;
|
|
198
|
+
height: 24px;
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
background: var(--color-gray-100);
|
|
203
|
+
border: none;
|
|
204
|
+
border-radius: 50%;
|
|
205
|
+
color: var(--text-tertiary);
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
transition: all var(--transition-fast);
|
|
208
|
+
flex-shrink: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.clearButton:hover {
|
|
212
|
+
background: var(--color-gray-300);
|
|
213
|
+
color: var(--text-primary);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.sm {
|
|
217
|
+
min-height: 32px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.sm .maskOverlay,
|
|
221
|
+
.sm .kindSelect {
|
|
222
|
+
font-size: 0.75rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.sm .clearButton {
|
|
226
|
+
width: 20px;
|
|
227
|
+
height: 20px;
|
|
228
|
+
right: 0.35rem;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.md {
|
|
232
|
+
min-height: 40px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.lg {
|
|
236
|
+
min-height: 48px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.lg .maskOverlay,
|
|
240
|
+
.lg .kindSelect {
|
|
241
|
+
font-size: 1rem;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.lg .clearButton {
|
|
245
|
+
width: 28px;
|
|
246
|
+
height: 28px;
|
|
247
|
+
right: 0.6rem;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.inputError {
|
|
251
|
+
border-color: #ef4444 !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.errorText {
|
|
255
|
+
color: #ef4444;
|
|
256
|
+
font-size: 0.75rem;
|
|
257
|
+
margin-top: 4px;
|
|
258
|
+
display: block;
|
|
259
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default } from './TaxIdInput';
|
|
2
|
+
export type { TaxIdInputProps } from './TaxIdInput';
|
|
3
|
+
export type { TaxIdCountryConfig, TaxIdDocumentKind, TaxIdKindOption, TaxIdVariantConfig } from '@/shared/utils/tax-id';
|
|
4
|
+
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, formatTaxIdValue, getAngolaCompanyNifError, getAngolaIdentityDocumentError, getTaxIdCountryConfig, getTaxIdDisplayLabel, getTaxIdError, getTaxIdKindOptions, getTaxIdPlaceholder, getTaxIdVariantConfig, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, isValidTaxIdValue, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, sanitizeTaxIdValue, } from '@/shared/utils/tax-id';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/inputs/components/Inputs/TaxIdInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACxH,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,6BAA6B,EAC7B,iBAAiB,EACjB,yBAAyB,EACzB,+BAA+B,EAC/B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default } from './TaxIdInput';
|
|
2
|
+
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, formatTaxIdValue, getAngolaCompanyNifError, getAngolaIdentityDocumentError, getTaxIdCountryConfig, getTaxIdDisplayLabel, getTaxIdError, getTaxIdKindOptions, getTaxIdPlaceholder, getTaxIdVariantConfig, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, isValidTaxIdValue, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, sanitizeTaxIdValue, } from '@/shared/utils/tax-id';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/inputs/components/Inputs/TaxIdInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,6BAA6B,EAC7B,iBAAiB,EACjB,yBAAyB,EACzB,+BAA+B,EAC/B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/features/inputs/components/Inputs/TextInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,QAAA,MAAM,SAAS,6GA+Gd,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
14
|
+
import { X, Eye, EyeOff } from 'lucide-react';
|
|
15
|
+
import styles from './TextInput.module.css';
|
|
16
|
+
const TextInput = forwardRef((_a, ref) => {
|
|
17
|
+
var { size = 'md', variant = 'default', containerClassName = '', className = '', leftIcon, value = '', onChange, showClearButton = variant === 'flat' ? false : true, clearButtonLabel = 'Limpar campo', disabled = false, readOnly = false, showPasswordToggle = false, type = 'text', hasError, errorMessage } = _a, rest = __rest(_a, ["size", "variant", "containerClassName", "className", "leftIcon", "value", "onChange", "showClearButton", "clearButtonLabel", "disabled", "readOnly", "showPasswordToggle", "type", "hasError", "errorMessage"]);
|
|
18
|
+
const inputRef = useRef(null);
|
|
19
|
+
const [showPassword, setShowPassword] = useState(false);
|
|
20
|
+
const [isMounted, setIsMounted] = useState(false);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
setIsMounted(true);
|
|
23
|
+
}, []);
|
|
24
|
+
useImperativeHandle(ref, () => inputRef.current);
|
|
25
|
+
const isPasswordType = type === 'password';
|
|
26
|
+
const enablePasswordToggle = showPasswordToggle && isPasswordType;
|
|
27
|
+
// If password toggle is enabled, we force disable clear button to avoid overlap/conflict per user request
|
|
28
|
+
const effectiveShowClearButton = enablePasswordToggle ? false : showClearButton;
|
|
29
|
+
const containerClasses = [
|
|
30
|
+
styles.inputContainer,
|
|
31
|
+
styles[size],
|
|
32
|
+
variant === 'flat' ? styles.flat : '',
|
|
33
|
+
leftIcon ? styles.hasLeftIcon : '',
|
|
34
|
+
enablePasswordToggle ? styles.hasRightControl : '',
|
|
35
|
+
containerClassName
|
|
36
|
+
]
|
|
37
|
+
.filter(Boolean)
|
|
38
|
+
.join(' ');
|
|
39
|
+
const inputClasses = [styles.textInput, className]
|
|
40
|
+
.filter(Boolean)
|
|
41
|
+
.join(' ');
|
|
42
|
+
const handleClear = () => {
|
|
43
|
+
var _a;
|
|
44
|
+
if (disabled || readOnly)
|
|
45
|
+
return;
|
|
46
|
+
onChange === null || onChange === void 0 ? void 0 : onChange('');
|
|
47
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
48
|
+
};
|
|
49
|
+
const handleChange = (event) => {
|
|
50
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event.target.value);
|
|
51
|
+
};
|
|
52
|
+
const shouldShowClearButton = isMounted && effectiveShowClearButton && !!(value === null || value === void 0 ? void 0 : value.length) && !disabled && !readOnly;
|
|
53
|
+
const inputType = enablePasswordToggle
|
|
54
|
+
? (showPassword ? 'text' : 'password')
|
|
55
|
+
: type;
|
|
56
|
+
const isError = hasError || !!errorMessage;
|
|
57
|
+
return (_jsxs("div", { className: containerClasses.concat(isError ? ` ${styles.hasError}` : ''), children: [leftIcon && _jsx("span", { className: styles.inputIcon, children: leftIcon }), _jsx("input", Object.assign({ ref: inputRef, type: inputType, className: `${inputClasses} ${isError ? styles.inputError : ''}`, value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly }, rest, { autoComplete: rest.autoComplete || "off" })), shouldShowClearButton && (_jsx("button", { type: "button", className: styles.clearButton, onClick: handleClear, "aria-label": clearButtonLabel, tabIndex: -1, children: _jsx(X, { size: 16 }) })), enablePasswordToggle && (_jsx("button", { type: "button", className: styles.passwordToggle, onClick: () => setShowPassword(!showPassword), tabIndex: -1, disabled: disabled, children: showPassword ? _jsx(EyeOff, { size: 20 }) : _jsx(Eye, { size: 20 }) })), errorMessage && _jsx("span", { className: styles.errorText, children: errorMessage })] }));
|
|
58
|
+
});
|
|
59
|
+
TextInput.displayName = 'TextInput';
|
|
60
|
+
export default TextInput;
|
|
61
|
+
//# sourceMappingURL=TextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../../src/features/inputs/components/Inputs/TextInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAG5C,MAAM,SAAS,GAAG,UAAU,CAC1B,CACE,EAiBC,EACD,GAAG,EACH,EAAE;QAnBF,EACE,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,SAAS,EACnB,kBAAkB,GAAG,EAAE,EACvB,SAAS,GAAG,EAAE,EACd,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,eAAe,GAAG,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EACnD,gBAAgB,GAAG,cAAc,EACjC,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,kBAAkB,GAAG,KAAK,EAC1B,IAAI,GAAG,MAA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E,IAAI,CAAC,YAAY,IAAI,KAAK,IACxC,EACD,qBAAqB,IAAI,CACxB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,WAAW,EAC7B,OAAO,EAAE,WAAW,gBACR,gBAAgB,EAC5B,QAAQ,EAAE,CAAC,CAAC,YAEZ,KAAC,CAAC,IAAC,IAAI,EAAE,EAAE,GAAI,GACR,CACV,EACA,oBAAoB,IAAI,CACvB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,cAAc,EAChC,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,EAC7C,QAAQ,EAAE,CAAC,CAAC,EACZ,QAAQ,EAAE,QAAQ,YAEjB,YAAY,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,IAAI,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,IAAI,EAAE,EAAE,GAAI,GACjD,CACV,EACA,YAAY,IAAI,eAAM,SAAS,EAAE,MAAM,CAAC,SAAS,YAAG,YAAY,GAAQ,IACrE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
.inputContainer {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.flat .textInput {
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
border: none;
|
|
12
|
+
box-shadow: none;
|
|
13
|
+
padding: 0 var(--spacing-sm);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.flat .textInput:focus {
|
|
17
|
+
border: none;
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
box-shadow: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.textInput {
|
|
23
|
+
width: 100%;
|
|
24
|
+
padding: 0 var(--spacing-md);
|
|
25
|
+
border: 1px solid var(--border-divider);
|
|
26
|
+
border-radius: var(--radius-sm);
|
|
27
|
+
font-size: 0.9rem;
|
|
28
|
+
background-color: var(--bg-secondary);
|
|
29
|
+
color: var(--text-primary);
|
|
30
|
+
transition: all var(--transition-fast);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.textInput::placeholder {
|
|
34
|
+
color: var(--text-tertiary);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.textInput:focus {
|
|
38
|
+
outline: none;
|
|
39
|
+
border-color: var(--border-focus);
|
|
40
|
+
background-color: var(--bg-primary);
|
|
41
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.textInput:-webkit-autofill,
|
|
45
|
+
.textInput:-webkit-autofill:hover,
|
|
46
|
+
.textInput:-webkit-autofill:focus,
|
|
47
|
+
.textInput:-webkit-autofill:active {
|
|
48
|
+
-webkit-box-shadow: 0 0 0 1000px var(--bg-secondary) inset;
|
|
49
|
+
box-shadow: 0 0 0 1000px var(--bg-secondary) inset;
|
|
50
|
+
background-color: var(--bg-secondary) !important;
|
|
51
|
+
-webkit-text-fill-color: var(--text-primary);
|
|
52
|
+
color: var(--text-primary);
|
|
53
|
+
caret-color: var(--text-primary);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.textInput:disabled,
|
|
57
|
+
.textInput[readonly] {
|
|
58
|
+
background-color: var(--bg-secondary);
|
|
59
|
+
color: var(--text-tertiary);
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.clearButton {
|
|
64
|
+
position: absolute;
|
|
65
|
+
right: var(--spacing-sm);
|
|
66
|
+
width: 24px;
|
|
67
|
+
height: 24px;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
background: var(--color-gray-100);
|
|
72
|
+
border: none;
|
|
73
|
+
border-radius: 50%;
|
|
74
|
+
color: var(--text-tertiary);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
transition: all var(--transition-fast);
|
|
77
|
+
z-index: 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.clearButton:hover {
|
|
81
|
+
background: var(--color-gray-300);
|
|
82
|
+
color: var(--text-primary);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.passwordToggle {
|
|
86
|
+
position: absolute;
|
|
87
|
+
right: var(--spacing-sm);
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
background: none;
|
|
92
|
+
border: none;
|
|
93
|
+
color: var(--text-tertiary);
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
padding: 4px;
|
|
96
|
+
transition: color var(--transition-fast);
|
|
97
|
+
z-index: 2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.passwordToggle:hover {
|
|
101
|
+
color: var(--text-secondary);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.hasRightControl .textInput {
|
|
105
|
+
padding-right: 2.5rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.inputIcon {
|
|
109
|
+
position: absolute;
|
|
110
|
+
left: var(--spacing-md);
|
|
111
|
+
top: 50%;
|
|
112
|
+
transform: translateY(-50%);
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
color: var(--text-tertiary);
|
|
117
|
+
pointer-events: none;
|
|
118
|
+
z-index: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.hasLeftIcon .textInput {
|
|
122
|
+
padding-left: 2.8rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.sm {
|
|
126
|
+
height: 32px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.sm .textInput {
|
|
130
|
+
height: 32px;
|
|
131
|
+
font-size: 0.75rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.sm .clearButton {
|
|
135
|
+
width: 20px;
|
|
136
|
+
height: 20px;
|
|
137
|
+
right: var(--spacing-xs);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.md {
|
|
141
|
+
height: 40px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.md .textInput {
|
|
145
|
+
height: 40px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.lg {
|
|
149
|
+
height: 45px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.lg .textInput {
|
|
153
|
+
height: 45px;
|
|
154
|
+
font-size: 1rem;
|
|
155
|
+
padding: var(--spacing-md);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.lg .clearButton {
|
|
159
|
+
width: 28px;
|
|
160
|
+
height: 28px;
|
|
161
|
+
right: var(--spacing-md);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
.errorText {
|
|
166
|
+
color: #ef4444;
|
|
167
|
+
font-size: 0.75rem;
|
|
168
|
+
margin-top: 4px;
|
|
169
|
+
display: block;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.inputError {
|
|
173
|
+
border-color: #ef4444 !important;
|
|
174
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TextareaInputProps } from './types/input.types';
|
|
2
|
+
declare const TextareaInput: import("react").ForwardRefExoticComponent<TextareaInputProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
3
|
+
export default TextareaInput;
|
|
4
|
+
//# sourceMappingURL=TextareaInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../../../src/features/inputs/components/Inputs/TextareaInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,QAAA,MAAM,aAAa,oHA2ElB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
14
|
+
import { X } from 'lucide-react';
|
|
15
|
+
import styles from './TextareaInput.module.css';
|
|
16
|
+
const TextareaInput = forwardRef((_a, ref) => {
|
|
17
|
+
var { size = 'md', containerClassName = '', className = '', leftIcon, value = '', onChange, showClearButton = true, clearButtonLabel = 'Limpar campo', disabled = false, readOnly = false, hasError, errorMessage } = _a, rest = __rest(_a, ["size", "containerClassName", "className", "leftIcon", "value", "onChange", "showClearButton", "clearButtonLabel", "disabled", "readOnly", "hasError", "errorMessage"]);
|
|
18
|
+
const textareaRef = useRef(null);
|
|
19
|
+
useImperativeHandle(ref, () => textareaRef.current);
|
|
20
|
+
const isError = hasError || !!errorMessage;
|
|
21
|
+
const containerClasses = [
|
|
22
|
+
styles.inputContainer,
|
|
23
|
+
styles[size],
|
|
24
|
+
leftIcon ? styles.hasLeftIcon : '',
|
|
25
|
+
containerClassName,
|
|
26
|
+
]
|
|
27
|
+
.filter(Boolean)
|
|
28
|
+
.join(' ');
|
|
29
|
+
const textareaClasses = [styles.textArea, className].filter(Boolean).join(' ');
|
|
30
|
+
const handleClear = () => {
|
|
31
|
+
var _a;
|
|
32
|
+
if (disabled || readOnly)
|
|
33
|
+
return;
|
|
34
|
+
onChange === null || onChange === void 0 ? void 0 : onChange('');
|
|
35
|
+
(_a = textareaRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
36
|
+
};
|
|
37
|
+
const handleChange = (event) => {
|
|
38
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event.target.value);
|
|
39
|
+
};
|
|
40
|
+
const shouldShowClearButton = showClearButton && !!(value === null || value === void 0 ? void 0 : value.length) && !disabled && !readOnly;
|
|
41
|
+
return (_jsxs("div", { className: containerClasses.concat(isError ? ` ${styles.hasError}` : ''), children: [leftIcon && _jsx("span", { className: styles.inputIcon, children: leftIcon }), _jsx("textarea", Object.assign({ ref: textareaRef, className: `${textareaClasses} ${isError ? styles.inputError : ''}`, value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, autoComplete: "off" }, rest)), shouldShowClearButton && (_jsx("button", { type: "button", className: styles.clearButton, onClick: handleClear, "aria-label": clearButtonLabel, tabIndex: -1, children: _jsx(X, { size: 16 }) }))] }));
|
|
42
|
+
});
|
|
43
|
+
TextareaInput.displayName = 'TextareaInput';
|
|
44
|
+
export default TextareaInput;
|
|
45
|
+
//# sourceMappingURL=TextareaInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaInput.js","sourceRoot":"","sources":["../../../../../src/features/inputs/components/Inputs/TextareaInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAqC,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACnG,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAGhD,MAAM,aAAa,GAAG,UAAU,CAC9B,CACE,EAcC,EACD,GAAG,EACH,EAAE;QAhBF,EACE,IAAI,GAAG,IAAI,EAC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