@free-dom/react-components 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +126 -0
- package/dist/cjs/index.js +112345 -0
- package/dist/esm/index.js +112279 -0
- package/dist/types/components/AdvancedSelect/AdvancedSelect.constants.d.ts +4 -0
- package/dist/types/components/AdvancedSelect/AdvancedSelect.d.ts +108 -0
- package/dist/types/components/AdvancedSelect/AdvancedSelect.helpers.d.ts +14 -0
- package/dist/types/components/AdvancedSelect/AdvancedSelectDropdown.d.ts +14 -0
- package/dist/types/components/AdvancedSelect/index.d.ts +2 -0
- package/dist/types/components/Alert/Alert.d.ts +39 -0
- package/dist/types/components/Alert/Alert.helpers.d.ts +3 -0
- package/dist/types/components/Alert/index.d.ts +1 -0
- package/dist/types/components/Avatar/Avatar.constants.d.ts +6 -0
- package/dist/types/components/Avatar/Avatar.d.ts +34 -0
- package/dist/types/components/Avatar/Avatar.helpers.d.ts +3 -0
- package/dist/types/components/Avatar/AvatarImage.d.ts +4 -0
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Avatar/useCreateAvatarImage.d.ts +3 -0
- package/dist/types/components/BackToTop/BackToTop.d.ts +19 -0
- package/dist/types/components/BackToTop/index.d.ts +1 -0
- package/dist/types/components/Badge/Badge.constants.d.ts +1 -0
- package/dist/types/components/Badge/Badge.d.ts +35 -0
- package/dist/types/components/Badge/Badge.helpers.d.ts +1 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/Banner/Banner.d.ts +61 -0
- package/dist/types/components/Banner/index.d.ts +1 -0
- package/dist/types/components/BarChart/BarChart.constants.d.ts +1 -0
- package/dist/types/components/BarChart/BarChart.d.ts +125 -0
- package/dist/types/components/BarChart/BarChartGraphic.d.ts +21 -0
- package/dist/types/components/BarChart/BarChartSkeleton.d.ts +8 -0
- package/dist/types/components/BarChart/CustomBarLegend.d.ts +13 -0
- package/dist/types/components/BarChart/TooltipChart.d.ts +21 -0
- package/dist/types/components/BarChart/index.d.ts +1 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.constants.d.ts +1 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/dist/types/components/Breadcrumbs/Crumb.d.ts +6 -0
- package/dist/types/components/Breadcrumbs/ShowMoreCrumbs.d.ts +6 -0
- package/dist/types/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/types/components/Button/Button.constants.d.ts +0 -0
- package/dist/types/components/Button/Button.d.ts +38 -0
- package/dist/types/components/Button/Button.helpers.d.ts +0 -0
- package/dist/types/components/Button/ButtonChildren.d.ts +0 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/Card/Card.d.ts +21 -0
- package/dist/types/components/Card/CardActions.d.ts +12 -0
- package/dist/types/components/Card/CardContent.d.ts +7 -0
- package/dist/types/components/Card/CardHeader.d.ts +23 -0
- package/dist/types/components/Card/CardImage.d.ts +11 -0
- package/dist/types/components/Card/CardTag.d.ts +3 -0
- package/dist/types/components/Card/HeaderMoreOptions.d.ts +2 -0
- package/dist/types/components/Card/index.d.ts +1 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +48 -0
- package/dist/types/components/Checkbox/CheckboxIndicator.d.ts +4 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -0
- package/dist/types/components/Chip/Chip.d.ts +49 -0
- package/dist/types/components/Chip/index.d.ts +1 -0
- package/dist/types/components/DatePicker/CalendarHeader.d.ts +12 -0
- package/dist/types/components/DatePicker/CalendarSelect.d.ts +10 -0
- package/dist/types/components/DatePicker/ClearButton.d.ts +9 -0
- package/dist/types/components/DatePicker/DateInput.d.ts +34 -0
- package/dist/types/components/DatePicker/DateInputRange.d.ts +11 -0
- package/dist/types/components/DatePicker/DatePicker.constants.d.ts +18 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +79 -0
- package/dist/types/components/DatePicker/DatePicker.helpers.d.ts +33 -0
- package/dist/types/components/DatePicker/index.d.ts +1 -0
- package/dist/types/components/Dialog/Dialog.d.ts +13 -0
- package/dist/types/components/Dialog/index.d.ts +1 -0
- package/dist/types/components/Divider/Divider.d.ts +15 -0
- package/dist/types/components/Divider/index.d.ts +1 -0
- package/dist/types/components/Drawer/Drawer.constants.d.ts +12 -0
- package/dist/types/components/Drawer/Drawer.d.ts +77 -0
- package/dist/types/components/Drawer/ScrollArea.d.ts +2 -0
- package/dist/types/components/Drawer/index.d.ts +1 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +60 -0
- package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +16 -0
- package/dist/types/components/DropdownMenu/DropdownMenuGroup.d.ts +12 -0
- package/dist/types/components/DropdownMenu/DropdownMenuIcon.d.ts +14 -0
- package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +26 -0
- package/dist/types/components/DropdownMenu/DropdownMenuSeparator.d.ts +7 -0
- package/dist/types/components/DropdownMenu/DropdownMenuSub.d.ts +33 -0
- package/dist/types/components/DropdownMenu/DropdownMenuSubContent.d.ts +16 -0
- package/dist/types/components/DropdownMenu/DropdownMenuText.d.ts +11 -0
- package/dist/types/components/DropdownMenu/index.d.ts +1 -0
- package/dist/types/components/ErrorBoundary.d.ts +34 -0
- package/dist/types/components/FileUpload/FileUpload.constants.d.ts +16 -0
- package/dist/types/components/FileUpload/FileUpload.d.ts +73 -0
- package/dist/types/components/FileUpload/FileUpload.helpers.d.ts +13 -0
- package/dist/types/components/FileUpload/FileUploadHeader.d.ts +8 -0
- package/dist/types/components/FileUpload/FileUploadInputArea.d.ts +8 -0
- package/dist/types/components/FileUpload/FileUploadItem.d.ts +8 -0
- package/dist/types/components/FileUpload/FileUploadList.d.ts +8 -0
- package/dist/types/components/FileUpload/index.d.ts +3 -0
- package/dist/types/components/FileUpload/useFileUpload.d.ts +23 -0
- package/dist/types/components/FileUpload/useUpload.d.ts +28 -0
- package/dist/types/components/Filter/Filter.constants.d.ts +1 -0
- package/dist/types/components/Filter/Filter.d.ts +67 -0
- package/dist/types/components/Filter/Filter.helpers.d.ts +4 -0
- package/dist/types/components/Filter/FilterTags.d.ts +6 -0
- package/dist/types/components/Filter/Input/DatePicker.d.ts +7 -0
- package/dist/types/components/Filter/Input/Rules.d.ts +56 -0
- package/dist/types/components/Filter/Input/Select.d.ts +7 -0
- package/dist/types/components/Filter/Input/Switch.d.ts +6 -0
- package/dist/types/components/Filter/Input/TextInput.d.ts +7 -0
- package/dist/types/components/Filter/Input/index.d.ts +10 -0
- package/dist/types/components/Filter/index.d.ts +2 -0
- package/dist/types/components/IconButton/IconButton.d.ts +22 -0
- package/dist/types/components/IconButton/index.d.ts +1 -0
- package/dist/types/components/ImageCarousel/ImageCarousel.constants.d.ts +3 -0
- package/dist/types/components/ImageCarousel/ImageCarousel.d.ts +32 -0
- package/dist/types/components/ImageCarousel/ImageCarousel.helpers.d.ts +3 -0
- package/dist/types/components/ImageCarousel/ImageCarouselFullScreen.d.ts +2 -0
- package/dist/types/components/ImageCarousel/ImageCarouselFullscreenNavigation.d.ts +1 -0
- package/dist/types/components/ImageCarousel/ImageCarouselFullscreenSidebar.d.ts +1 -0
- package/dist/types/components/ImageCarousel/ImageCarouselInline.d.ts +3 -0
- package/dist/types/components/ImageCarousel/ImageCarouselItem.d.ts +34 -0
- package/dist/types/components/ImageCarousel/ImageCarouselNavigation.d.ts +1 -0
- package/dist/types/components/ImageCarousel/ImageCarouselTrackBar.d.ts +4 -0
- package/dist/types/components/ImageCarousel/index.d.ts +1 -0
- package/dist/types/components/ImageCarousel/useImageCarousel.d.ts +21 -0
- package/dist/types/components/LineChart/CustomLineLegend.d.ts +12 -0
- package/dist/types/components/LineChart/LineChart.constants.d.ts +1 -0
- package/dist/types/components/LineChart/LineChart.d.ts +108 -0
- package/dist/types/components/LineChart/LineChartGraphic.d.ts +18 -0
- package/dist/types/components/LineChart/LineChartSkeleton.d.ts +7 -0
- package/dist/types/components/LineChart/TooltipChart.d.ts +20 -0
- package/dist/types/components/LineChart/index.d.ts +1 -0
- package/dist/types/components/Link/Link.d.ts +42 -0
- package/dist/types/components/Link/index.d.ts +2 -0
- package/dist/types/components/Modal/DragContext.d.ts +7 -0
- package/dist/types/components/Modal/Modal.d.ts +18 -0
- package/dist/types/components/Modal/ModalActions.d.ts +38 -0
- package/dist/types/components/Modal/ModalBody.d.ts +12 -0
- package/dist/types/components/Modal/ModalContent.d.ts +5 -0
- package/dist/types/components/Modal/ModalContentWrapper.d.ts +3 -0
- package/dist/types/components/Modal/ModalContext.d.ts +4 -0
- package/dist/types/components/Modal/ModalHeader.d.ts +15 -0
- package/dist/types/components/Modal/ModalTrigger.d.ts +7 -0
- package/dist/types/components/Modal/index.d.ts +2 -0
- package/dist/types/components/MultilineTextInput/ClearButton.d.ts +8 -0
- package/dist/types/components/MultilineTextInput/InputHelpers.d.ts +7 -0
- package/dist/types/components/MultilineTextInput/MultilineTextInput.constants.d.ts +1 -0
- package/dist/types/components/MultilineTextInput/MultilineTextInput.d.ts +31 -0
- package/dist/types/components/MultilineTextInput/index.d.ts +1 -0
- package/dist/types/components/NavigationMenu/NavigationMenu.d.ts +17 -0
- package/dist/types/components/NavigationMenu/NavigationMenu.helpers.d.ts +4 -0
- package/dist/types/components/NavigationMenu/NavigationMenuGroup.d.ts +21 -0
- package/dist/types/components/NavigationMenu/NavigationMenuItem.d.ts +9 -0
- package/dist/types/components/NavigationMenu/NavigationMenuLink.d.ts +34 -0
- package/dist/types/components/NavigationMenu/index.d.ts +1 -0
- package/dist/types/components/NeedPermission/NeedPermission.d.ts +27 -0
- package/dist/types/components/NeedPermission/index.d.ts +1 -0
- package/dist/types/components/PasswordInput/ClearButton.d.ts +8 -0
- package/dist/types/components/PasswordInput/InputHelpers.d.ts +7 -0
- package/dist/types/components/PasswordInput/PasswordInput.constants.d.ts +1 -0
- package/dist/types/components/PasswordInput/PasswordInput.d.ts +26 -0
- package/dist/types/components/PasswordInput/ToggleVisibility.d.ts +7 -0
- package/dist/types/components/PasswordInput/index.d.ts +1 -0
- package/dist/types/components/PieChart/CustomPieLegend.d.ts +13 -0
- package/dist/types/components/PieChart/PieChart.constants.d.ts +1 -0
- package/dist/types/components/PieChart/PieChart.d.ts +102 -0
- package/dist/types/components/PieChart/PieChart.helpers.d.ts +15 -0
- package/dist/types/components/PieChart/PieChartGraphic.d.ts +12 -0
- package/dist/types/components/PieChart/PieChartSkeleton.d.ts +8 -0
- package/dist/types/components/PieChart/TooltipChart.d.ts +11 -0
- package/dist/types/components/PieChart/index.d.ts +1 -0
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +11 -0
- package/dist/types/components/ProgressBar/ProgressBar.helpers.d.ts +1 -0
- package/dist/types/components/ProgressBar/index.d.ts +1 -0
- package/dist/types/components/RadioGroup/Item.d.ts +21 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +33 -0
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/Rating/NumericRating.d.ts +17 -0
- package/dist/types/components/Rating/Rating.constants.d.ts +9 -0
- package/dist/types/components/Rating/Rating.d.ts +12 -0
- package/dist/types/components/Rating/Rating.helpers.d.ts +4 -0
- package/dist/types/components/Rating/SatisfactionRating.d.ts +16 -0
- package/dist/types/components/Rating/SimpleRating.d.ts +17 -0
- package/dist/types/components/Rating/StarRating.d.ts +16 -0
- package/dist/types/components/Rating/index.d.ts +1 -0
- package/dist/types/components/Select/Checkbox.d.ts +12 -0
- package/dist/types/components/Select/ClearIndicator.d.ts +3 -0
- package/dist/types/components/Select/Control.d.ts +3 -0
- package/dist/types/components/Select/DropdownIndicator.d.ts +3 -0
- package/dist/types/components/Select/GroupHeading.d.ts +3 -0
- package/dist/types/components/Select/Menu.d.ts +3 -0
- package/dist/types/components/Select/MenuList.d.ts +3 -0
- package/dist/types/components/Select/MultiValue.d.ts +3 -0
- package/dist/types/components/Select/NoOptionsMessage.d.ts +3 -0
- package/dist/types/components/Select/Option.d.ts +3 -0
- package/dist/types/components/Select/Placeholder.d.ts +3 -0
- package/dist/types/components/Select/Select.constants.d.ts +2 -0
- package/dist/types/components/Select/Select.d.ts +153 -0
- package/dist/types/components/Select/Select.helpers.d.ts +6 -0
- package/dist/types/components/Select/SelectContainer.d.ts +3 -0
- package/dist/types/components/Select/SingleValue.d.ts +3 -0
- package/dist/types/components/Select/StartAdornment.d.ts +8 -0
- package/dist/types/components/Select/ValueContainer.d.ts +3 -0
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +37 -0
- package/dist/types/components/Skeleton/index.d.ts +2 -0
- package/dist/types/components/Stepper/Step.d.ts +31 -0
- package/dist/types/components/Stepper/Stepper.d.ts +36 -0
- package/dist/types/components/Stepper/StepperBar.d.ts +13 -0
- package/dist/types/components/Stepper/StepperIcon.d.ts +8 -0
- package/dist/types/components/Stepper/StepperLabel.d.ts +12 -0
- package/dist/types/components/Stepper/index.d.ts +1 -0
- package/dist/types/components/Switch/Switch.d.ts +61 -0
- package/dist/types/components/Switch/index.d.ts +1 -0
- package/dist/types/components/Tabs/Tabs.d.ts +33 -0
- package/dist/types/components/Tabs/TabsContent.d.ts +14 -0
- package/dist/types/components/Tabs/TabsHeader.d.ts +10 -0
- package/dist/types/components/Tabs/TabsItem.d.ts +24 -0
- package/dist/types/components/Tabs/index.d.ts +1 -0
- package/dist/types/components/Tabs/useTabs.d.ts +9 -0
- package/dist/types/components/Tag/Tag.d.ts +15 -0
- package/dist/types/components/Tag/index.d.ts +1 -0
- package/dist/types/components/TextInput/ClearButton.d.ts +9 -0
- package/dist/types/components/TextInput/EndAdornment.d.ts +6 -0
- package/dist/types/components/TextInput/InputHelpers.d.ts +7 -0
- package/dist/types/components/TextInput/StartAdornment.d.ts +13 -0
- package/dist/types/components/TextInput/TextInput.constants.d.ts +1 -0
- package/dist/types/components/TextInput/TextInput.d.ts +61 -0
- package/dist/types/components/TextInput/TextInput.helpers.d.ts +2 -0
- package/dist/types/components/TextInput/index.d.ts +2 -0
- package/dist/types/components/TextToolbar/BackgroundColorSelector.d.ts +3 -0
- package/dist/types/components/TextToolbar/BubbleDropdown/BubbleDropdown.d.ts +8 -0
- package/dist/types/components/TextToolbar/BubbleDropdown/BubbleDropdownItem.d.ts +8 -0
- package/dist/types/components/TextToolbar/BubbleDropdown/useOutsideclick.d.ts +1 -0
- package/dist/types/components/TextToolbar/BubbleMenu.d.ts +3 -0
- package/dist/types/components/TextToolbar/CharCounter.d.ts +4 -0
- package/dist/types/components/TextToolbar/ClipboardActions.d.ts +3 -0
- package/dist/types/components/TextToolbar/FontColorSelector.d.ts +3 -0
- package/dist/types/components/TextToolbar/FormatTextSelector.d.ts +3 -0
- package/dist/types/components/TextToolbar/HistoryControls.d.ts +3 -0
- package/dist/types/components/TextToolbar/ListSelector.d.ts +3 -0
- package/dist/types/components/TextToolbar/MediaLinkControls.d.ts +9 -0
- package/dist/types/components/TextToolbar/TextAlignSelector.d.ts +3 -0
- package/dist/types/components/TextToolbar/TextToolbar.constants.d.ts +33 -0
- package/dist/types/components/TextToolbar/TextToolbar.d.ts +54 -0
- package/dist/types/components/TextToolbar/TextToolbar.helpers.d.ts +11 -0
- package/dist/types/components/TextToolbar/Toolbar.d.ts +7 -0
- package/dist/types/components/TextToolbar/TypographySelector.d.ts +3 -0
- package/dist/types/components/TextToolbar/index.d.ts +1 -0
- package/dist/types/components/Timeline/Timeline.helpers.d.ts +1 -0
- package/dist/types/components/Timeline/TimelineContainer.d.ts +6 -0
- package/dist/types/components/Timeline/TimelineContent.d.ts +2 -0
- package/dist/types/components/Timeline/TimelineDot.d.ts +30 -0
- package/dist/types/components/Timeline/TimelineLeft.d.ts +7 -0
- package/dist/types/components/Timeline/TimelineRight.d.ts +22 -0
- package/dist/types/components/Timeline/index.d.ts +12 -0
- package/dist/types/components/Toast/Toast.constants.d.ts +10 -0
- package/dist/types/components/Toast/Toast.d.ts +23 -0
- package/dist/types/components/Toast/Toast.helpers.d.ts +7 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +37 -0
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/components/TotalCard/TotalCard.constants.d.ts +8 -0
- package/dist/types/components/TotalCard/TotalCard.d.ts +48 -0
- package/dist/types/components/TotalCard/TotalCard.helpers.d.ts +1 -0
- package/dist/types/components/TotalCard/TotalCardActions.d.ts +13 -0
- package/dist/types/components/TotalCard/TotalCardContent.d.ts +10 -0
- package/dist/types/components/TotalCard/TotalCardDescription.d.ts +7 -0
- package/dist/types/components/TotalCard/TotalCardGroup.d.ts +2 -0
- package/dist/types/components/TotalCard/TotalCardMetrics.d.ts +25 -0
- package/dist/types/components/TotalCard/TotalCardSkeleton.d.ts +1 -0
- package/dist/types/components/TotalCard/index.d.ts +1 -0
- package/dist/types/components/Typography/Typography.constants.d.ts +1 -0
- package/dist/types/components/Typography/Typography.d.ts +21 -0
- package/dist/types/components/Typography/index.d.ts +2 -0
- package/dist/types/components/shared/Api/api.d.ts +35 -0
- package/dist/types/components/shared/Api/index.d.ts +1 -0
- package/dist/types/components/shared/Chart/Chart.constants.d.ts +5 -0
- package/dist/types/components/shared/Chart/Chart.helpers.d.ts +13 -0
- package/dist/types/components/shared/Chart/ChartCard.d.ts +24 -0
- package/dist/types/components/shared/Chart/ChartCheckbox.d.ts +5 -0
- package/dist/types/components/shared/Chart/ChartDescriptionModal.d.ts +7 -0
- package/dist/types/components/shared/Chart/ChartEmpty.d.ts +1 -0
- package/dist/types/components/shared/Chart/ChartFilter.d.ts +9 -0
- package/dist/types/components/shared/Chart/ChartMoreOptions.d.ts +14 -0
- package/dist/types/components/shared/Chart/index.d.ts +4 -0
- package/dist/types/components/shared/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/types/components/shared/ErrorBoundary/index.d.ts +1 -0
- package/dist/types/components/shared/InputWrapper/InputHelpers.d.ts +6 -0
- package/dist/types/components/shared/InputWrapper/InputWrapper.d.ts +52 -0
- package/dist/types/components/shared/InputWrapper/Label.d.ts +8 -0
- package/dist/types/components/shared/InputWrapper/index.d.ts +1 -0
- package/dist/types/components/shared/Loader/Loader.d.ts +5 -0
- package/dist/types/components/shared/Loader/index.d.ts +1 -0
- package/dist/types/components/shared/RippleEffect/RippleEffect.d.ts +8 -0
- package/dist/types/components/shared/RippleEffect/RippleEffect.helpers.d.ts +6 -0
- package/dist/types/components/shared/RippleEffect/index.d.ts +2 -0
- package/dist/types/components/shared/RippleEffect/useRipple.d.ts +10 -0
- package/dist/types/components/shared/hooks/index.d.ts +1 -0
- package/dist/types/components/shared/hooks/useControlledWarning.d.ts +9 -0
- package/dist/types/components/shared/withStaticProps.d.ts +24 -0
- package/dist/types/constants.d.ts +8 -0
- package/dist/types/index.d.ts +2806 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/types/utils.d.ts +5 -0
- package/package.json +128 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type NavigationMenuLinkProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Especifica qual o local para onde será navegado
|
|
5
|
+
*/
|
|
6
|
+
href: string;
|
|
7
|
+
/**
|
|
8
|
+
* Renderiza um componente filho que servirá como componente
|
|
9
|
+
* de navegação. Se não for passado nenhum elemento, apenas
|
|
10
|
+
* um texto simples, o componente renderizado será uma `<a></a>`.
|
|
11
|
+
* Se for preciso usar um componente customizado de roteamento,
|
|
12
|
+
* ele deve ser passado como children.
|
|
13
|
+
*/
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Especifica se o link deve estar desabilitado.
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Especifica se o link está ativo. Útil para indicar
|
|
21
|
+
* a página atual para o usuário.
|
|
22
|
+
*/
|
|
23
|
+
active?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Evento disparado ao clicar no link
|
|
26
|
+
*/
|
|
27
|
+
onSelect?: (event: Event) => void;
|
|
28
|
+
renderComponent?: (props: {
|
|
29
|
+
href: string;
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
}) => JSX.Element;
|
|
32
|
+
};
|
|
33
|
+
export declare function NavigationMenuLink({ children, href, disabled, active, onSelect, renderComponent, }: NavigationMenuLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NavigationMenu } from './NavigationMenu';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type NeedPermissionProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Define se o componente estará no estado de desabilitado ou não.
|
|
5
|
+
* Caso esteja desabilitado, irá renderizar um Tooltip com mensagem
|
|
6
|
+
* informando que o usuário não tem permissão para acessar o componente.
|
|
7
|
+
*/
|
|
8
|
+
allowed?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Componente filho que estará no estado de desabilitado caso o usuário
|
|
11
|
+
* não tenha permissão.
|
|
12
|
+
*/
|
|
13
|
+
children: React.ReactElement;
|
|
14
|
+
/**
|
|
15
|
+
* Determina se o componente está no estado de loading ou não. Caso esteja
|
|
16
|
+
* no estado de loading, renderiza o fallback especificado na prop `fallback`.
|
|
17
|
+
*/
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Componente React renderizado como fallback. Útil para mostrar estado
|
|
21
|
+
* de loading enquanto é feita consulta à API para saber se o usuário
|
|
22
|
+
* tem as devidas ppermissões
|
|
23
|
+
*/
|
|
24
|
+
fallback?: React.ReactNode;
|
|
25
|
+
};
|
|
26
|
+
export declare function NeedPermission({ children, loading, allowed, fallback, }: NeedPermissionProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NeedPermission } from './NeedPermission';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ClearButtonProps = {
|
|
2
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function ClearButton({ onClick, visible, disabled, readOnly, }: ClearButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const POSITIVE_NUMBERS_THRESHOLD = 0;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Combine } from '../../utils';
|
|
3
|
+
type PasswordInputOwnProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Label que será renderizada acima do input. Por motivos
|
|
6
|
+
* de acessibilidade deve
|
|
7
|
+
ser utilizado em conjunto com a prop `id` ou `name`.
|
|
8
|
+
*/
|
|
9
|
+
label?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Renderiza um input com aparência de erro e mensagem logo abaixo do input.
|
|
12
|
+
* Se utilizada com a prop `hint`, a prop `error` terá prioridade e
|
|
13
|
+
* irá sobrescrever a mensagem de `hint`.
|
|
14
|
+
*/
|
|
15
|
+
error?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Renderiza uma mensagem de informação logo abaixo do input.
|
|
18
|
+
* Se utilizada com a prop `error`, a prop `error` terá prioridade e
|
|
19
|
+
* irá sobrescrever a mensagem de `hint`.
|
|
20
|
+
*/
|
|
21
|
+
hint?: string;
|
|
22
|
+
};
|
|
23
|
+
type PasswordInputProps = Combine<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, PasswordInputOwnProps>;
|
|
24
|
+
export declare function PasswordInputWithFowardedRef({ label, className, hint, onChange, defaultValue, error, style, value: valueProps, id, name, maxLength, ...rest }: PasswordInputProps, forwardedRef: React.ForwardedRef<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const PasswordInput: React.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordInput } from './PasswordInput';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type CustomPieLegendProps<T> = {
|
|
2
|
+
payload?: {
|
|
3
|
+
color: string;
|
|
4
|
+
value: number;
|
|
5
|
+
dataKey: string;
|
|
6
|
+
payload: T & {
|
|
7
|
+
percent: number;
|
|
8
|
+
};
|
|
9
|
+
}[];
|
|
10
|
+
categoryKey: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function CustomPieLegend<T>({ payload, categoryKey, }: CustomPieLegendProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CSS_PREFIX = "freedom-pie-chart";
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
export type TooltipInfo<T> = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
customContent?: never;
|
|
6
|
+
} | {
|
|
7
|
+
title?: never;
|
|
8
|
+
description?: never;
|
|
9
|
+
customContent: (props: T) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export type PieChartProps<T> = {
|
|
12
|
+
/**
|
|
13
|
+
* Título principal exibido no topo do gráfico.
|
|
14
|
+
*/
|
|
15
|
+
title: string;
|
|
16
|
+
/**
|
|
17
|
+
* Subtítulo opcional exibido abaixo do título principal, fornecendo informações adicionais.
|
|
18
|
+
*/
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Define a orientação do gráfico. Aceita os valores 'vertical' ou 'horizontal'.
|
|
22
|
+
* Determina a disposição dos elementos visuais.
|
|
23
|
+
*/
|
|
24
|
+
orientation?: 'vertical' | 'horizontal';
|
|
25
|
+
/**
|
|
26
|
+
* Array contendo os dados utilizados para construir o gráfico.
|
|
27
|
+
* Cada elemento do array representa um conjunto de informações.
|
|
28
|
+
*/
|
|
29
|
+
data: T[];
|
|
30
|
+
/**
|
|
31
|
+
* Conteúdo personalizado para exibição em um modal de descrição detalhada.
|
|
32
|
+
* Aceita componentes React, permitindo total flexibilidade de layout e estilo.
|
|
33
|
+
*/
|
|
34
|
+
descriptionContent?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Altura do gráfico em pixels. Define o espaço vertical ocupado pelo componente.
|
|
37
|
+
*/
|
|
38
|
+
height?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Indica se o gráfico está em estado de carregamento.
|
|
41
|
+
* Pode ser usado para exibir um indicador de progresso enquanto os dados são processados.
|
|
42
|
+
*/
|
|
43
|
+
loading?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Função de callback acionada ao selecionar a opção de "Atualizar dados".
|
|
46
|
+
* Permite recarregar ou recalcular os dados exibidos no gráfico.
|
|
47
|
+
*/
|
|
48
|
+
onUpdateData?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Configuração personalizada para o Tooltip exibido ao interagir com o gráfico.
|
|
51
|
+
* Aceita informações detalhadas, incluindo componentes React para maior personalização.
|
|
52
|
+
*/
|
|
53
|
+
tooltipContent?: TooltipInfo<T>;
|
|
54
|
+
/**
|
|
55
|
+
* Habilita ou desabilita a exibição de uma descrição detalhada do gráfico.
|
|
56
|
+
*/
|
|
57
|
+
enableDescription?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Determina se a funcionalidade de filtragem de dados está ativa no gráfico.
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
enableFilter?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Controla a exibição da opção de atualizar os dados do gráfico.
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
67
|
+
enableUpdateData?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Especifica a chave de um item no array `data` usada para identificar
|
|
70
|
+
* categorias no gráfico, como rótulos de legenda ou eixos.
|
|
71
|
+
*/
|
|
72
|
+
categoryKey: keyof T;
|
|
73
|
+
/**
|
|
74
|
+
* Especifica a chave de um item no array `data` usada para identificar
|
|
75
|
+
* os valores associados às categorias no gráfico.
|
|
76
|
+
*/
|
|
77
|
+
valueKey: keyof T;
|
|
78
|
+
/**
|
|
79
|
+
* Referência ao elemento HTML que será o container do menu dropdown gerado.
|
|
80
|
+
* @default document.body
|
|
81
|
+
*/
|
|
82
|
+
containerRef?: React.RefObject<HTMLElement>;
|
|
83
|
+
/**
|
|
84
|
+
* Paleta de cores usada no gráfico. Pode ser o esquema padrão ou monocromático.
|
|
85
|
+
* @default 'default'
|
|
86
|
+
*/
|
|
87
|
+
palette?: 'default' | 'monochromatic';
|
|
88
|
+
/**
|
|
89
|
+
* Objeto de estilo inline para personalização do estilo do componente.
|
|
90
|
+
*/
|
|
91
|
+
style?: React.CSSProperties;
|
|
92
|
+
/**
|
|
93
|
+
* Função para aplicar formatação personalizada aos valores exibidos no gráfico.
|
|
94
|
+
* Pode ser usada para alterar a aparência ou formato dos números.
|
|
95
|
+
*/
|
|
96
|
+
valueFormatter?: (value: number) => any;
|
|
97
|
+
/**
|
|
98
|
+
* Cores customizadas para cada barra do gráfico
|
|
99
|
+
*/
|
|
100
|
+
customColors?: Partial<Record<string, string>>;
|
|
101
|
+
};
|
|
102
|
+
export declare function PieChart<T>({ title, subtitle, orientation, data: dataProp, descriptionContent, style, height, onUpdateData, tooltipContent, categoryKey, valueKey, loading, enableDescription, enableFilter, enableUpdateData, containerRef, children, palette, valueFormatter, customColors, }: PropsWithChildren<PieChartProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare function getLegendConfig(orientation: 'vertical' | 'horizontal'): {
|
|
2
|
+
legendAlign: string;
|
|
3
|
+
legendVerticalAlign: string;
|
|
4
|
+
legendMaxHeight: string;
|
|
5
|
+
legendWidth: string;
|
|
6
|
+
legendRight: string;
|
|
7
|
+
legendBottom: any;
|
|
8
|
+
} | {
|
|
9
|
+
legendAlign: string;
|
|
10
|
+
legendVerticalAlign: string;
|
|
11
|
+
legendMaxHeight: string;
|
|
12
|
+
legendWidth: string;
|
|
13
|
+
legendRight: any;
|
|
14
|
+
legendBottom: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TooltipInfo } from './PieChart';
|
|
2
|
+
export type PieChartGraphicProps<T> = {
|
|
3
|
+
orientation?: 'vertical' | 'horizontal';
|
|
4
|
+
data: T[];
|
|
5
|
+
tooltipContent?: TooltipInfo<T>;
|
|
6
|
+
categoryKey: keyof T;
|
|
7
|
+
valueKey: keyof T;
|
|
8
|
+
palette: 'default' | 'monochromatic';
|
|
9
|
+
valueFormatter: (value: number) => any;
|
|
10
|
+
customColors?: Partial<Record<string, string>>;
|
|
11
|
+
};
|
|
12
|
+
export declare function PieChartGraphic<T>({ orientation, data, tooltipContent, categoryKey, valueKey, palette, valueFormatter, customColors, }: PieChartGraphicProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type PieChartProps = {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
orientation?: 'horizontal' | 'vertical';
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
export declare function PieChartSkeleton({ style, width, height, orientation, }: PieChartProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TooltipProps } from 'recharts/types/component/Tooltip';
|
|
2
|
+
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
3
|
+
import type { TooltipInfo } from './PieChart';
|
|
4
|
+
type TooltipProp<T> = TooltipProps<ValueType, NameType> & {
|
|
5
|
+
categoryKey: keyof T;
|
|
6
|
+
valueKey: keyof T;
|
|
7
|
+
tooltipContent?: TooltipInfo<T>;
|
|
8
|
+
valueFormatter: (value: number) => any;
|
|
9
|
+
};
|
|
10
|
+
export declare function TooltipChart<T>({ tooltipContent, categoryKey, valueKey, valueFormatter, ...rest }: TooltipProp<T>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PieChart } from './PieChart';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ProgressBarProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Valor do progresso
|
|
4
|
+
*/
|
|
5
|
+
progress: number;
|
|
6
|
+
/**
|
|
7
|
+
* Mostra com indicadores de cores o progresso
|
|
8
|
+
*/
|
|
9
|
+
color?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function ProgressBar({ progress: progressProps, color, children, }: React.PropsWithChildren<ProgressBarProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function progressValueSanitizer(progress: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgressBar } from './ProgressBar';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
type ItemProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Id único que identifica o switch.
|
|
5
|
+
*/
|
|
6
|
+
id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Especifica o valor que o switch deve ter.
|
|
9
|
+
*/
|
|
10
|
+
value: string;
|
|
11
|
+
/**
|
|
12
|
+
* Texto que será renderizada ao lado do radio.
|
|
13
|
+
*/
|
|
14
|
+
children: string;
|
|
15
|
+
/**
|
|
16
|
+
* Especifica se o componente deve estar desabilitado.
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare function RadioGroupItem(props: PropsWithChildren<ItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { RadioGroupItem } from './Item';
|
|
2
|
+
export type RadioGroupProps = {
|
|
3
|
+
/**
|
|
4
|
+
* className customizada que será aplicado ao componente.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Especifica se o componente deve estar desabilitado.
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Valor padrão com o qual o componente será renderizado.
|
|
13
|
+
*/
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Valor selecionado.
|
|
17
|
+
*/
|
|
18
|
+
value?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Executa função quando o radio é selecionado
|
|
21
|
+
*/
|
|
22
|
+
onRadioChange?: (e: string) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Especifica se o grupo deve ser renderizado em linha ao
|
|
25
|
+
* invés de coluna
|
|
26
|
+
*/
|
|
27
|
+
row?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare function RadioGroup({ onRadioChange, value, ...rest }: React.PropsWithChildren<RadioGroupProps>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare namespace RadioGroup {
|
|
31
|
+
var Item: typeof RadioGroupItem;
|
|
32
|
+
}
|
|
33
|
+
export { RadioGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioGroup } from './RadioGroup';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type NumericRatingValue = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
2
|
+
type NumericRatingProps = {
|
|
3
|
+
/**
|
|
4
|
+
* O valor padrão do rating.
|
|
5
|
+
*/
|
|
6
|
+
defaultRating?: NumericRatingValue;
|
|
7
|
+
/**
|
|
8
|
+
* Função chamada quando o rating é alterado.
|
|
9
|
+
*/
|
|
10
|
+
onChange?: (rating: NumericRatingValue) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Se o rating é somente leitura.
|
|
13
|
+
*/
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function NumericRating({ defaultRating, onChange, readOnly, }: NumericRatingProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum SatisfactionRatingEnum {
|
|
2
|
+
EXTREMELY_DISSATISFIED = "extremely-dissatisfied",
|
|
3
|
+
DISSATISFIED = "dissatisfied",
|
|
4
|
+
NEUTRAL = "neutral",
|
|
5
|
+
SATISFIED = "satisfied",
|
|
6
|
+
VERY_SATISFIED = "very-satisfied"
|
|
7
|
+
}
|
|
8
|
+
export declare const MAX_STAR_RATING = 5;
|
|
9
|
+
export declare const MAX_NUMERIC_RATING = 10;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StarRatingProps } from './StarRating';
|
|
2
|
+
import { SimpleRating } from './SimpleRating';
|
|
3
|
+
import { SatisfactionRating } from './SatisfactionRating';
|
|
4
|
+
import { NumericRating } from './NumericRating';
|
|
5
|
+
type RatingProps = StarRatingProps;
|
|
6
|
+
declare function Rating(props: RatingProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace Rating {
|
|
8
|
+
var Simple: typeof SimpleRating;
|
|
9
|
+
var Satisfaction: typeof SatisfactionRating;
|
|
10
|
+
var Numeric: typeof NumericRating;
|
|
11
|
+
}
|
|
12
|
+
export { Rating };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type SatisfactionRatingValue = 'extremely-dissatisfied' | 'dissatisfied' | 'neutral' | 'satisfied' | 'very-satisfied';
|
|
2
|
+
export type SatisfactionRatingProps = {
|
|
3
|
+
/**
|
|
4
|
+
* O valor padrão do rating.
|
|
5
|
+
*/
|
|
6
|
+
defaultRating?: SatisfactionRatingValue;
|
|
7
|
+
/**
|
|
8
|
+
* Função chamada quando o rating é alterado.
|
|
9
|
+
*/
|
|
10
|
+
onChange?: (rating: SatisfactionRatingValue) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Se o rating é somente leitura.
|
|
13
|
+
*/
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function SatisfactionRating({ defaultRating, onChange, readOnly, }: SatisfactionRatingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type SimpleRatingValue = 'like' | 'dislike';
|
|
2
|
+
type SimpleRatingProps = {
|
|
3
|
+
/**
|
|
4
|
+
* O valor padrão do rating.
|
|
5
|
+
*/
|
|
6
|
+
defaultRating?: SimpleRatingValue;
|
|
7
|
+
/**
|
|
8
|
+
* Função chamada quando o rating é alterado.
|
|
9
|
+
*/
|
|
10
|
+
onChange?: (rating: SimpleRatingValue) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Se o rating é somente leitura.
|
|
13
|
+
*/
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function SimpleRating({ defaultRating, onChange, readOnly, }: SimpleRatingProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type StarRatingValue = 1 | 2 | 3 | 4 | 5;
|
|
2
|
+
export type StarRatingProps = {
|
|
3
|
+
/**
|
|
4
|
+
* O valor padrão do rating.
|
|
5
|
+
*/
|
|
6
|
+
defaultRating?: StarRatingValue;
|
|
7
|
+
/**
|
|
8
|
+
* Função chamada quando o rating é alterado.
|
|
9
|
+
*/
|
|
10
|
+
onChange?: (rating: StarRatingValue) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Se o rating é somente leitura.
|
|
13
|
+
*/
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function StarRating({ defaultRating, onChange, readOnly, }: StarRatingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Rating } from './Rating';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aqui não utilizamos o componente Checkbox já criado, pois durante a integração com o componente
|
|
3
|
+
* `Filter`, ao selecionar o Checkbox do Select, aconteciam erros de loop infinito que não conseguimos
|
|
4
|
+
* entender onde estava o problema de fato. Optamos pro criar um componente Checkbox apenas para ilustrar
|
|
5
|
+
* se a linha do select está selecionada ou não.
|
|
6
|
+
*/
|
|
7
|
+
type CheckboxProps = {
|
|
8
|
+
checked?: boolean | 'indeterminate';
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function Checkbox({ checked, disabled }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ClearIndicatorProps } from 'react-select';
|
|
2
|
+
import type { SelectGroupOption, SelectOption } from './Select';
|
|
3
|
+
export declare function ClearIndicator({ clearValue, selectProps, }: ClearIndicatorProps<SelectOption, boolean, SelectGroupOption>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DropdownIndicatorProps } from 'react-select';
|
|
2
|
+
import type { SelectOption, SelectGroupOption } from './Select';
|
|
3
|
+
export declare function DropdownIndicator(props: DropdownIndicatorProps<SelectOption, boolean, SelectGroupOption>): import("react/jsx-runtime").JSX.Element;
|