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,123 @@
|
|
|
1
|
+
.wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.wrapper:hover,
|
|
7
|
+
.wrapper:focus-within {
|
|
8
|
+
z-index: 50;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dropdown {
|
|
12
|
+
position: absolute;
|
|
13
|
+
bottom: calc(100% + 10px);
|
|
14
|
+
right: 0;
|
|
15
|
+
width: fit-content;
|
|
16
|
+
max-width: none;
|
|
17
|
+
background: var(--bg-primary);
|
|
18
|
+
border: 1px solid var(--border-divider);
|
|
19
|
+
border-radius: var(--radius-sm);
|
|
20
|
+
box-shadow: var(--shadow-md);
|
|
21
|
+
padding: 0;
|
|
22
|
+
z-index: 20;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
visibility: hidden;
|
|
25
|
+
transform: translateY(4px);
|
|
26
|
+
transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dropdownVisible {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
visibility: visible;
|
|
34
|
+
transform: translateY(0);
|
|
35
|
+
pointer-events: auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dropdownBottom {
|
|
39
|
+
top: calc(100% + 10px);
|
|
40
|
+
bottom: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dropdownBottom::after,
|
|
44
|
+
.dropdownBottom::before {
|
|
45
|
+
top: auto;
|
|
46
|
+
bottom: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dropdownBottom::after {
|
|
50
|
+
border-top: none;
|
|
51
|
+
border-bottom: 12px solid var(--border-divider);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dropdownBottom::before {
|
|
55
|
+
border-top: none;
|
|
56
|
+
border-bottom: 11px solid var(--bg-primary);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dropdown::after,
|
|
60
|
+
.dropdown::before {
|
|
61
|
+
content: '';
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.dropdown::after {
|
|
67
|
+
right: var(--spacing-md);
|
|
68
|
+
border-left: 8px solid transparent;
|
|
69
|
+
border-right: 8px solid transparent;
|
|
70
|
+
border-top: 12px solid var(--border-divider);
|
|
71
|
+
z-index: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.dropdown::before {
|
|
75
|
+
right: calc(var(--spacing-md) - 1px);
|
|
76
|
+
border-left: 7px solid transparent;
|
|
77
|
+
border-right: 7px solid transparent;
|
|
78
|
+
border-top: 11px solid var(--bg-primary);
|
|
79
|
+
z-index: 2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dropdown.dropdownBottom::after,
|
|
83
|
+
.dropdown.dropdownBottom::before {
|
|
84
|
+
top: auto;
|
|
85
|
+
bottom: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dropdown.dropdownBottom::after {
|
|
89
|
+
border-top: none;
|
|
90
|
+
border-bottom: 12px solid var(--border-divider);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dropdown.dropdownBottom::before {
|
|
94
|
+
border-top: none;
|
|
95
|
+
border-bottom: 11px solid var(--bg-primary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.content {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: var(--spacing-xxs);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.title {
|
|
105
|
+
font-size: 0.9rem;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
color: var(--text-primary);
|
|
108
|
+
margin: 0 0 var(--spacing-md);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.description {
|
|
112
|
+
margin: 0;
|
|
113
|
+
font-size: 0.85rem;
|
|
114
|
+
line-height: 1.4;
|
|
115
|
+
color: var(--text-secondary);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.details {
|
|
119
|
+
margin: 0;
|
|
120
|
+
font-size: 0.8rem;
|
|
121
|
+
line-height: 1.35;
|
|
122
|
+
color: var(--text-secondary);
|
|
123
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
interface InfoTooltipContentProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
items?: string[];
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function InfoTooltipContent({ title, description, items, icon, className }: InfoTooltipContentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default InfoTooltipContent;
|
|
11
|
+
//# sourceMappingURL=InfoTooltipContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoTooltipContent.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/components/Tooltips/InfoTooltipContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAU,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,uBAAuB,2CAkB9G;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CircleCheckBig } from "lucide-react";
|
|
3
|
+
import styles from "./InfoTooltipContent.module.css";
|
|
4
|
+
export function InfoTooltipContent({ title, description, items = [], icon, className }) {
|
|
5
|
+
return (_jsxs("div", { className: `${styles.wrapper} ${className !== null && className !== void 0 ? className : ""}`.trim(), children: [_jsx("h3", { className: styles.title, children: title }), description ? _jsx("p", { className: styles.description, children: description }) : null, items.length > 0 && (_jsx("ul", { className: styles.list, children: items.map((text) => (_jsxs("li", { className: styles.listItem, children: [icon !== null && icon !== void 0 ? icon : _jsx(CircleCheckBig, { size: 14, className: styles.icon }), _jsx("span", { className: styles.text, children: text })] }, text))) }))] }));
|
|
6
|
+
}
|
|
7
|
+
export default InfoTooltipContent;
|
|
8
|
+
//# sourceMappingURL=InfoTooltipContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoTooltipContent.js","sourceRoot":"","sources":["../../../../../src/features/feedback/components/Tooltips/InfoTooltipContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,MAAM,MAAM,iCAAiC,CAAC;AAWrD,MAAM,UAAU,kBAAkB,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAA2B;IAC7G,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,EAAE,CAAC,IAAI,EAAE,aAC3D,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,KAAK,GAAM,EACxC,WAAW,CAAC,CAAC,CAAC,YAAG,SAAS,EAAE,MAAM,CAAC,WAAW,YAAG,WAAW,GAAK,CAAC,CAAC,CAAC,IAAI,EAExE,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CACnB,aAAI,SAAS,EAAE,MAAM,CAAC,IAAI,YACvB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,cAAI,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC3B,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,KAAC,cAAc,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7D,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAQ,KAFR,IAAI,CAGpC,CACN,CAAC,GACC,CACN,IACG,CACP,CAAC;AACJ,CAAC;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.wrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--spacing-sm);
|
|
5
|
+
text-align: left;
|
|
6
|
+
color: var(--text-primary);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.title {
|
|
10
|
+
margin: 0;
|
|
11
|
+
font-size: 0.95rem;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
color: var(--text-primary);
|
|
14
|
+
line-height: 1.3;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.description {
|
|
18
|
+
margin: 0;
|
|
19
|
+
font-size: 0.85rem;
|
|
20
|
+
color: var(--text-secondary);
|
|
21
|
+
line-height: 1.45;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.list {
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
list-style: none;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: var(--spacing-xs);
|
|
31
|
+
font-size: 0.84rem;
|
|
32
|
+
line-height: 1.45;
|
|
33
|
+
color: var(--text-primary);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.listItem {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: flex-start;
|
|
39
|
+
gap: var(--spacing-sm);
|
|
40
|
+
line-height: 1.35;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.icon {
|
|
44
|
+
color: var(--status-warning, #f59e0b);
|
|
45
|
+
min-width: 16px;
|
|
46
|
+
margin-top: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.text {
|
|
50
|
+
font-size: 0.85rem;
|
|
51
|
+
color: var(--text-primary);
|
|
52
|
+
line-height: 1.4;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.text strong {
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
font-size: 0.85rem;
|
|
58
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
export type ProgressChecklistItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
completed: boolean;
|
|
6
|
+
pendingMessage?: string;
|
|
7
|
+
optional?: boolean;
|
|
8
|
+
};
|
|
9
|
+
interface ProgressChecklistTooltipProps {
|
|
10
|
+
visible: boolean;
|
|
11
|
+
completedCount: number;
|
|
12
|
+
totalCount: number;
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
stageLabel?: ReactNode;
|
|
15
|
+
description?: string;
|
|
16
|
+
progressLabel?: string;
|
|
17
|
+
items: ProgressChecklistItem[];
|
|
18
|
+
className?: string;
|
|
19
|
+
onMouseEnter?: () => void;
|
|
20
|
+
onMouseLeave?: () => void;
|
|
21
|
+
placement?: 'left' | 'right';
|
|
22
|
+
offset?: number;
|
|
23
|
+
style?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
export default function ProgressChecklistTooltip({ visible, completedCount, totalCount, title, stageLabel, description, progressLabel, items, className, onMouseEnter, onMouseLeave, placement, offset, style, }: ProgressChecklistTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=ProgressChecklistTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressChecklistTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/components/Tooltips/ProgressChecklistTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,UAAU,6BAA6B;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,OAAO,EACP,cAAc,EACd,UAAU,EACV,KAAK,EACL,UAAU,EACV,WAAwD,EACxD,aAAa,EACb,KAAK,EACL,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,SAAmB,EACnB,MAAM,EACN,KAAK,GACN,EAAE,6BAA6B,2CAuG/B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Check, CircleCheckBig } from 'lucide-react';
|
|
3
|
+
import styles from './ProgressChecklistTooltip.module.css';
|
|
4
|
+
export default function ProgressChecklistTooltip({ visible, completedCount, totalCount, title, stageLabel, description = 'Preencha os campos abaixo para continuar', progressLabel, items, className, onMouseEnter, onMouseLeave, placement = 'right', offset, style, }) {
|
|
5
|
+
const completionPercentage = totalCount > 0 ? Math.min(100, (completedCount / totalCount) * 100) : 0;
|
|
6
|
+
const heading = progressLabel !== null && progressLabel !== void 0 ? progressLabel : `${completedCount} de ${totalCount} completado`;
|
|
7
|
+
const containerClassName = [
|
|
8
|
+
styles.container,
|
|
9
|
+
visible ? styles.visible : '',
|
|
10
|
+
placement === 'left' ? styles.alignLeft : styles.alignRight,
|
|
11
|
+
className !== null && className !== void 0 ? className : '',
|
|
12
|
+
]
|
|
13
|
+
.filter(Boolean)
|
|
14
|
+
.join(' ');
|
|
15
|
+
const computedStyle = Object.assign({}, (style || {}));
|
|
16
|
+
if (offset !== undefined) {
|
|
17
|
+
computedStyle['--ap-tooltip-offset'] = `${offset}px`;
|
|
18
|
+
}
|
|
19
|
+
return (_jsxs("div", { className: containerClassName, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, role: "status", style: computedStyle, children: [_jsxs("div", { className: styles.header, children: [(title || stageLabel) && (_jsxs("div", { className: styles.contextHeader, children: [title && _jsx("span", { className: styles.contextTitle, children: title }), stageLabel && _jsx("span", { className: styles.contextSubtitle, children: stageLabel })] })), _jsxs("div", { className: styles.progressHeader, children: [_jsx("span", { className: styles.progressText, children: heading }), _jsx("div", { className: styles.progressBar, children: _jsx("div", { className: styles.progressFill, style: { width: `${completionPercentage}%` } }) })] }), _jsx("span", { className: styles.progressDescription, children: description })] }), _jsx("ul", { className: styles.list, children: items.map(({ key, label, completed, pendingMessage, optional }) => {
|
|
20
|
+
const isPending = !completed;
|
|
21
|
+
const displayText = isPending ? pendingMessage !== null && pendingMessage !== void 0 ? pendingMessage : label : label;
|
|
22
|
+
// Choose icon based on optional status and completion
|
|
23
|
+
let IconComponent;
|
|
24
|
+
let iconClassName;
|
|
25
|
+
let textClassName;
|
|
26
|
+
let showTailIcon = false;
|
|
27
|
+
if (optional) {
|
|
28
|
+
if (completed) {
|
|
29
|
+
IconComponent = CircleCheckBig;
|
|
30
|
+
iconClassName = styles.optionalCompletedIcon;
|
|
31
|
+
textClassName = styles.optionalCompletedText;
|
|
32
|
+
showTailIcon = true;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
IconComponent = CircleCheckBig;
|
|
36
|
+
iconClassName = styles.optionalPendingIcon;
|
|
37
|
+
textClassName = styles.optionalPendingText;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
if (completed) {
|
|
42
|
+
IconComponent = CircleCheckBig;
|
|
43
|
+
iconClassName = styles.completedIcon;
|
|
44
|
+
textClassName = styles.completedText;
|
|
45
|
+
showTailIcon = true;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
IconComponent = CircleCheckBig;
|
|
49
|
+
iconClassName = styles.pendingIcon;
|
|
50
|
+
textClassName = styles.itemText;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return (_jsxs("li", { className: `${styles.item} ${optional ? styles.optionalItem : ''}`, children: [_jsx("div", { className: styles.iconBox, children: _jsx(IconComponent, { size: 16, "aria-hidden": "true", className: iconClassName }) }), _jsx("span", { className: textClassName, children: displayText }), showTailIcon && (_jsx(Check, { size: 16, "aria-hidden": "true", className: optional ? styles.optionalCompletedTailIcon : styles.completedTailIcon }))] }, key));
|
|
54
|
+
}) })] }));
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=ProgressChecklistTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressChecklistTooltip.js","sourceRoot":"","sources":["../../../../../src/features/feedback/components/Tooltips/ProgressChecklistTooltip.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,MAAM,MAAM,uCAAuC,CAAC;AA2B3D,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,OAAO,EACP,cAAc,EACd,UAAU,EACV,KAAK,EACL,UAAU,EACV,WAAW,GAAG,0CA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a,GAAG,MAAM,CAAC,mBAAmB,CAAC;wBAC7C,CAAC;oBACH,CAAC;yBAAM,CAAC;wBACN,IAAI,SAAS,EAAE,CAAC;4BACd,aAAa,GAAG,cAAc,CAAC;4BAC/B,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;4BACrC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;4BACrC,YAAY,GAAG,IAAI,CAAC;wBACtB,CAAC;6BAAM,CAAC;4BACN,aAAa,GAAG,cAAc,CAAC;4BAC/B,aAAa,GAAG,MAAM,CAAC,WAAW,CAAC;4BACnC,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC;wBAClC,CAAC;oBACH,CAAC;oBAED,OAAO,CACL,cAAc,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,aAC9E,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC5B,KAAC,aAAa,IACZ,IAAI,EAAE,EAAE,iBACI,MAAM,EAClB,SAAS,EAAE,aAAa,GACxB,GACE,EACN,eAAM,SAAS,EAAE,aAAa,YAAG,WAAW,GAAQ,EACnD,YAAY,IAAI,CACf,KAAC,KAAK,IACJ,IAAI,EAAE,EAAE,iBACI,MAAM,EAClB,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,GACjF,CACH,KAfM,GAAG,CAgBP,CACN,CAAC;gBACJ,CAAC,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
position: absolute;
|
|
3
|
+
bottom: calc(100% + var(--ap-tooltip-offset, 4px));
|
|
4
|
+
right: 0;
|
|
5
|
+
min-width: 280px;
|
|
6
|
+
background: var(--bg-primary);
|
|
7
|
+
border: 1px solid var(--border-divider);
|
|
8
|
+
border-radius: var(--radius-sm);
|
|
9
|
+
box-shadow: var(--shadow-md);
|
|
10
|
+
padding: var(--spacing-lg);
|
|
11
|
+
z-index: 20;
|
|
12
|
+
opacity: 0;
|
|
13
|
+
visibility: hidden;
|
|
14
|
+
transform: translateY(var(--ap-tooltip-offset, 4px));
|
|
15
|
+
transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.visible {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
visibility: visible;
|
|
22
|
+
transform: translateY(0);
|
|
23
|
+
pointer-events: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.container::after,
|
|
27
|
+
.container::before {
|
|
28
|
+
content: '';
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 100%;
|
|
31
|
+
border-left: 8px solid transparent;
|
|
32
|
+
border-right: 8px solid transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.container::after {
|
|
36
|
+
border-top: 12px solid var(--border-divider);
|
|
37
|
+
z-index: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.container::before {
|
|
41
|
+
top: calc(100% - 1px);
|
|
42
|
+
border-top: 11px solid var(--bg-primary);
|
|
43
|
+
z-index: 2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.alignRight::after,
|
|
47
|
+
.alignRight::before,
|
|
48
|
+
.container:not(.alignLeft)::after,
|
|
49
|
+
.container:not(.alignLeft)::before {
|
|
50
|
+
right: var(--spacing-md);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.alignLeft::after,
|
|
54
|
+
.alignLeft::before {
|
|
55
|
+
left: var(--spacing-md);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.header {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: var(--spacing-xxs);
|
|
62
|
+
margin-bottom: var(--spacing-md);
|
|
63
|
+
text-align: left;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.contextHeader {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: 2px;
|
|
70
|
+
margin-bottom: var(--spacing-sm);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.contextTitle {
|
|
74
|
+
font-size: 0.95rem;
|
|
75
|
+
font-weight: 600;
|
|
76
|
+
color: var(--text-primary);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.contextSubtitle {
|
|
80
|
+
font-size: 0.825rem;
|
|
81
|
+
color: var(--text-secondary);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.progressHeader {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
gap: var(--spacing-xs);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.progressText {
|
|
91
|
+
font-size: 0.875rem;
|
|
92
|
+
font-weight: 600;
|
|
93
|
+
color: var(--text-primary);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.progressBar {
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 6px;
|
|
99
|
+
background: var(--bg-hover-normal);
|
|
100
|
+
border-radius: 3px;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
margin-bottom: 8px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.progressFill {
|
|
106
|
+
height: 100%;
|
|
107
|
+
background: linear-gradient(90deg, var(--bg-interactive) 0%, var(--bg-interactive-hover) 100%);
|
|
108
|
+
border-radius: 3px;
|
|
109
|
+
transition: width 0.3s ease;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.progressDescription {
|
|
113
|
+
font-size: 0.85rem;
|
|
114
|
+
color: var(--text-secondary);
|
|
115
|
+
line-height: 1.3;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.list {
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding: 0;
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
gap: var(--spacing-xs);
|
|
124
|
+
text-align: left;
|
|
125
|
+
height: max-content;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.item {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: flex-start;
|
|
131
|
+
gap: var(--spacing-sm);
|
|
132
|
+
line-height: 1.35;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.item svg {
|
|
136
|
+
color: var(--status-warning, #f59e0b);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.pendingIcon {
|
|
140
|
+
color: var(--status-warning, #f59e0b) !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.completedIcon {
|
|
144
|
+
color: var(--bg-interactive, #3b82f6) !important;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.itemText {
|
|
148
|
+
font-size: 0.85rem !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.completedText {
|
|
152
|
+
color: var(--bg-interactive, #3b82f6) !important;
|
|
153
|
+
font-size: 0.85rem !important;
|
|
154
|
+
flex: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.completedTailIcon {
|
|
158
|
+
color: var(--bg-interactive, #3b82f6) !important;
|
|
159
|
+
margin-left: var(--spacing-xs);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Optional item styles */
|
|
163
|
+
.optionalItem {
|
|
164
|
+
opacity: 0.8;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.optionalPendingIcon {
|
|
168
|
+
color: #9ca3af !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.optionalPendingText {
|
|
172
|
+
font-size: 0.85rem !important;
|
|
173
|
+
color: #6b7280 !important;
|
|
174
|
+
flex: 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.optionalCompletedIcon {
|
|
178
|
+
color: #10b981 !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.optionalCompletedText {
|
|
182
|
+
color: #374151 !important;
|
|
183
|
+
font-size: 0.85rem !important;
|
|
184
|
+
flex: 1;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.optionalCompletedTailIcon {
|
|
188
|
+
color: #10b981 !important;
|
|
189
|
+
margin-left: var(--spacing-xs);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
.iconClassName {
|
|
194
|
+
min-width: 16px;
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.iconBox {
|
|
199
|
+
min-width: 18px;
|
|
200
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DatePickerProps {
|
|
3
|
+
value?: Date | null;
|
|
4
|
+
onChange: (date: Date | null) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
minDate?: Date;
|
|
9
|
+
maxDate?: Date;
|
|
10
|
+
}
|
|
11
|
+
declare const DatePicker: React.FC<DatePickerProps>;
|
|
12
|
+
export default DatePicker;
|
|
13
|
+
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/features/inputs/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6KzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useRef, useEffect } from 'react';
|
|
4
|
+
import { ChevronDown, Calendar } from 'lucide-react';
|
|
5
|
+
import styles from './DatePicker.module.css';
|
|
6
|
+
const DatePicker = ({ value, onChange, placeholder = 'Selecione uma data', className = '', disabled = false, minDate, maxDate }) => {
|
|
7
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
8
|
+
const [currentMonth, setCurrentMonth] = useState(value ? new Date(value.getFullYear(), value.getMonth(), 1) : new Date());
|
|
9
|
+
const pickerRef = useRef(null);
|
|
10
|
+
const formatDate = (date) => {
|
|
11
|
+
if (!date)
|
|
12
|
+
return '';
|
|
13
|
+
return date.toLocaleDateString('pt-AO', {
|
|
14
|
+
day: '2-digit',
|
|
15
|
+
month: 'short',
|
|
16
|
+
year: 'numeric'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const getDaysInMonth = (date) => {
|
|
20
|
+
return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
|
|
21
|
+
};
|
|
22
|
+
const getFirstDayOfMonth = (date) => {
|
|
23
|
+
return new Date(date.getFullYear(), date.getMonth(), 1).getDay();
|
|
24
|
+
};
|
|
25
|
+
const isDateDisabled = (date) => {
|
|
26
|
+
if (minDate && date < minDate)
|
|
27
|
+
return true;
|
|
28
|
+
if (maxDate && date > maxDate)
|
|
29
|
+
return true;
|
|
30
|
+
return false;
|
|
31
|
+
};
|
|
32
|
+
const isDateSelected = (date) => {
|
|
33
|
+
if (!value)
|
|
34
|
+
return false;
|
|
35
|
+
return date.toDateString() === value.toDateString();
|
|
36
|
+
};
|
|
37
|
+
const handleDateSelect = (day) => {
|
|
38
|
+
const selectedDate = new Date(currentMonth.getFullYear(), currentMonth.getMonth(), day);
|
|
39
|
+
if (!isDateDisabled(selectedDate)) {
|
|
40
|
+
onChange(selectedDate);
|
|
41
|
+
setIsOpen(false);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const handlePrevMonth = () => {
|
|
45
|
+
setCurrentMonth(new Date(currentMonth.getFullYear(), currentMonth.getMonth() - 1, 1));
|
|
46
|
+
};
|
|
47
|
+
const handleNextMonth = () => {
|
|
48
|
+
setCurrentMonth(new Date(currentMonth.getFullYear(), currentMonth.getMonth() + 1, 1));
|
|
49
|
+
};
|
|
50
|
+
const toggleDropdown = () => {
|
|
51
|
+
if (disabled)
|
|
52
|
+
return;
|
|
53
|
+
setIsOpen(!isOpen);
|
|
54
|
+
};
|
|
55
|
+
// Fechar ao clicar fora
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const handleClickOutside = (event) => {
|
|
58
|
+
if (pickerRef.current && !pickerRef.current.contains(event.target)) {
|
|
59
|
+
setIsOpen(false);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
63
|
+
return () => {
|
|
64
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
65
|
+
};
|
|
66
|
+
}, []);
|
|
67
|
+
const daysInMonth = getDaysInMonth(currentMonth);
|
|
68
|
+
const firstDay = getFirstDayOfMonth(currentMonth);
|
|
69
|
+
const monthName = currentMonth.toLocaleDateString('pt-AO', { month: 'long', year: 'numeric' });
|
|
70
|
+
const days = [];
|
|
71
|
+
// Dias vazios antes do primeiro dia do mês
|
|
72
|
+
for (let i = 0; i < firstDay; i++) {
|
|
73
|
+
days.push(null);
|
|
74
|
+
}
|
|
75
|
+
// Dias do mês
|
|
76
|
+
for (let day = 1; day <= daysInMonth; day++) {
|
|
77
|
+
days.push(day);
|
|
78
|
+
}
|
|
79
|
+
return (_jsxs("div", { className: `${styles.datePicker} ${className} ${isOpen ? styles.open : ''}`, ref: pickerRef, children: [_jsxs("div", { className: `${styles.selectedValue} ${disabled ? styles.disabled : ''}`, onClick: toggleDropdown, role: "button", tabIndex: disabled ? -1 : 0, onKeyDown: (e) => {
|
|
80
|
+
if (disabled)
|
|
81
|
+
return;
|
|
82
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
83
|
+
e.preventDefault();
|
|
84
|
+
toggleDropdown();
|
|
85
|
+
}
|
|
86
|
+
}, children: [_jsx(Calendar, { size: 16, className: styles.calendarIcon }), _jsx("span", { className: `${styles.valueText} ${!value ? styles.placeholder : ''}`, children: value ? formatDate(value) : placeholder }), _jsx(ChevronDown, { size: 16, className: `${styles.arrow} ${isOpen ? styles.rotate : ''}` })] }), isOpen && (_jsxs("div", { className: styles.dropdown, children: [_jsxs("div", { className: styles.calendarHeader, children: [_jsx("button", { type: "button", className: styles.monthNavButton, onClick: handlePrevMonth, "aria-label": "M\u00EAs anterior", children: "\u2190" }), _jsx("h3", { className: styles.monthTitle, children: monthName }), _jsx("button", { type: "button", className: styles.monthNavButton, onClick: handleNextMonth, "aria-label": "Pr\u00F3ximo m\u00EAs", children: "\u2192" })] }), _jsx("div", { className: styles.calendarWeekdays, children: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'].map(day => (_jsx("div", { className: styles.weekday, children: day }, day))) }), _jsx("div", { className: styles.calendarGrid, children: days.map((day, index) => {
|
|
87
|
+
if (day === null) {
|
|
88
|
+
return _jsx("div", { className: styles.calendarDay }, `empty-${index}`);
|
|
89
|
+
}
|
|
90
|
+
const date = new Date(currentMonth.getFullYear(), currentMonth.getMonth(), day);
|
|
91
|
+
const disabled = isDateDisabled(date);
|
|
92
|
+
const selected = isDateSelected(date);
|
|
93
|
+
return (_jsx("button", { type: "button", className: `${styles.calendarDay} ${disabled ? styles.disabled : ''} ${selected ? styles.selected : ''}`, onClick: () => handleDateSelect(day), disabled: disabled, children: day }, day));
|
|
94
|
+
}) })] }))] }));
|
|
95
|
+
};
|
|
96
|
+
export default DatePicker;
|
|
97
|
+
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../../../../src/features/inputs/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAY7C,MAAM,UAAU,GAA8B,CAAC,EAC7C,KAAK,EACL,QAAQ,EACR,WAAW,GAAG,oBAAoB,EAClC,SAAS,GAAG,EAAE,EACd,QAAQ,GAAG,KAAK,EAChB,OAAO,EACP,OAAO,EACR,EAAE,EAAE;IACH,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IAC1H,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAE/C,MAAM,UAAU,GAAG,CAAC,IAAiB,EAAU,EAAE;QAC/C,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;YACtC,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,SAAS;SAChB,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CAAC,IAAU,EAAE,EAAE;QACpC,OAAO,IAAI,IAA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