@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,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconName } from '@freedom/react-icons';
|
|
3
|
+
import { Combine } from '../../utils';
|
|
4
|
+
export type Variant = 'primary' | 'secondary' | 'text' | 'danger';
|
|
5
|
+
type ButtonOwnProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Especifica o tipo de Button que será renderizado.
|
|
8
|
+
*/
|
|
9
|
+
variant?: Variant;
|
|
10
|
+
/**
|
|
11
|
+
* Especifica se o Button deve ser compacto ou não.
|
|
12
|
+
* O modo compacto é um botão com padding reduzido.
|
|
13
|
+
*/
|
|
14
|
+
compact?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Especifica se o botão está em estado de loading ou não.
|
|
17
|
+
*/
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Especifica um tipo de ícone pré-definido que deve ser
|
|
21
|
+
* renderizado dentro do Button.
|
|
22
|
+
*/
|
|
23
|
+
icon?: IconName;
|
|
24
|
+
/**
|
|
25
|
+
* Especifica a posição dos ícones que fazem parte do botão.
|
|
26
|
+
* A posição afeta o ícone de loading e o ícone dentro do botão,
|
|
27
|
+
* caso seja passado a prop `icon` ou `renderIcon`.
|
|
28
|
+
*/
|
|
29
|
+
iconPosition?: 'left' | 'right';
|
|
30
|
+
/**
|
|
31
|
+
* Prop que permite que o usuário possa renderizar um ícone customizado
|
|
32
|
+
* que não está previsto nos ícones pré-definidos da props `icon`.
|
|
33
|
+
*/
|
|
34
|
+
renderIcon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
35
|
+
};
|
|
36
|
+
export type ButtonProps = Combine<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonOwnProps>;
|
|
37
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardActionsProps } from './CardActions';
|
|
3
|
+
import { CardContent } from './CardContent';
|
|
4
|
+
import { CardHeader } from './CardHeader';
|
|
5
|
+
import { CardImage } from './CardImage';
|
|
6
|
+
import { CardTag } from './CardTag';
|
|
7
|
+
export type CardProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Conteúdo do card. Deve ser composto por um ou mais dos
|
|
10
|
+
* componentes: `Card.Header`, `Card.Image`, `Card.Tag`, `Card.Content` e `Card.Actions`
|
|
11
|
+
*/
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
} & CardActionsProps;
|
|
14
|
+
declare function Card({ children, primaryAction, secondaryAction }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare namespace Card {
|
|
16
|
+
var Header: typeof CardHeader;
|
|
17
|
+
var Image: typeof CardImage;
|
|
18
|
+
var Tag: typeof CardTag;
|
|
19
|
+
var Content: typeof CardContent;
|
|
20
|
+
}
|
|
21
|
+
export { Card };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button/Button';
|
|
2
|
+
export type Action = {
|
|
3
|
+
/**
|
|
4
|
+
* Texto do botão de ação
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
} & Pick<ButtonProps, 'variant' | 'onClick'>;
|
|
8
|
+
export type CardActionsProps = {
|
|
9
|
+
primaryAction?: Action;
|
|
10
|
+
secondaryAction?: Action;
|
|
11
|
+
};
|
|
12
|
+
export declare function CardActions({ primaryAction, secondaryAction, }: CardActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type CardHeaderProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Titulo do card
|
|
4
|
+
*/
|
|
5
|
+
title: string;
|
|
6
|
+
/**
|
|
7
|
+
* Subtitulo do card
|
|
8
|
+
*/
|
|
9
|
+
subTitle?: string;
|
|
10
|
+
/**
|
|
11
|
+
* evento disparado quando a seleção do checkbox é alterada.
|
|
12
|
+
* O checkbox só será renderizado se essa propriedade for passada.
|
|
13
|
+
*/
|
|
14
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Opções para a lista suspensa de opções menos relevantes do card.
|
|
17
|
+
*/
|
|
18
|
+
moreOptions?: {
|
|
19
|
+
label: string;
|
|
20
|
+
onSelect: (event: Event) => void;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
export declare function CardHeader({ subTitle, title, onCheckedChange, moreOptions, }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card } from './Card';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type Variant = 'default' | 'favorite';
|
|
2
|
+
export type CheckboxProps = {
|
|
3
|
+
/**
|
|
4
|
+
* className customizada que será aplicado ao componente.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Id único que identifica o checkbox.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Label que será renderizada do lado direito do checkbox.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Especifica se o checkbox deve ser renderizado como checked por padrão.
|
|
17
|
+
*/
|
|
18
|
+
defaultChecked?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Propriedade que controla o estado do checkbox de checked ou não.
|
|
21
|
+
*/
|
|
22
|
+
checked?: boolean | 'indeterminate';
|
|
23
|
+
/**
|
|
24
|
+
* Especifica se o checkbox deve estar desabilitado.
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Evento disparado quando o checkbox é clicado.
|
|
29
|
+
*/
|
|
30
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Evento opcional que pode ser passado e disparado quando clicado no checkbox
|
|
33
|
+
*/
|
|
34
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Especifica se o checkbox deve ser obrigatorio.
|
|
37
|
+
*/
|
|
38
|
+
required?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Especifica o nome do checkbox.
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Especifica o valor que o checkbox deve ter.
|
|
45
|
+
*/
|
|
46
|
+
value?: string;
|
|
47
|
+
};
|
|
48
|
+
export declare function Checkbox({ className, defaultChecked, onCheckedChange, onClick, checked, label, disabled, ...rest }: React.PropsWithChildren<CheckboxProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox } from './Checkbox';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IconName } from '@freedom/react-icons';
|
|
2
|
+
export type ChipProps = {
|
|
3
|
+
/**
|
|
4
|
+
* className customizada que será aplicado ao componente.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Função disparada ao clicar no Chip. Faz com que o Chip
|
|
9
|
+
* seja renderizado de maneira interativa.
|
|
10
|
+
*/
|
|
11
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement | HTMLDivElement>, args: ChipMouseEventArgs) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Determina se é Chip deve ser do tipo filtro.
|
|
14
|
+
*/
|
|
15
|
+
filter?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Id único que identifica o Chip.
|
|
18
|
+
*/
|
|
19
|
+
id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Função disparada ao clicar no botão de fechar de um Chip
|
|
22
|
+
* do tipo filter (props filter=true).
|
|
23
|
+
*/
|
|
24
|
+
onClose?: (event: React.MouseEvent<HTMLButtonElement>, args: ChipMouseEventArgs) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Especifica se o chip deve ficar no modo ativo, isso é, com borda.
|
|
27
|
+
*/
|
|
28
|
+
active?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Especifica um tipo de ícone pré-definido que deve ser
|
|
31
|
+
* renderizado dentro do Chip.
|
|
32
|
+
*/
|
|
33
|
+
icon?: IconName;
|
|
34
|
+
/**
|
|
35
|
+
* Prop que permite que o usuário possa renderizar um ícone customizado
|
|
36
|
+
* que não está previsto nos ícones pré-definidos da props `icon`.
|
|
37
|
+
*/
|
|
38
|
+
renderIcon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
39
|
+
/**
|
|
40
|
+
* Especifica se o Chip deve estar desabilitado.
|
|
41
|
+
*/
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
};
|
|
44
|
+
type ChipMouseEventArgs = {
|
|
45
|
+
id?: string;
|
|
46
|
+
active: boolean;
|
|
47
|
+
};
|
|
48
|
+
export declare function Chip({ id, children, className, onClick, active, filter, onClose, renderIcon, icon, disabled, }: React.PropsWithChildren<ChipProps>): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Chip } from './Chip';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactDatePickerCustomHeaderProps, ReactDatePickerProps } from 'react-datepicker';
|
|
2
|
+
import { Option } from './DatePicker.constants';
|
|
3
|
+
type CalendarHeaderOwnProps = {
|
|
4
|
+
minDate: ReactDatePickerProps['minDate'];
|
|
5
|
+
maxDate: ReactDatePickerProps['maxDate'];
|
|
6
|
+
months: Option[];
|
|
7
|
+
years: Option[];
|
|
8
|
+
onlyMonthYearPicker: boolean;
|
|
9
|
+
};
|
|
10
|
+
type CalendarHeaderProps = ReactDatePickerCustomHeaderProps & CalendarHeaderOwnProps;
|
|
11
|
+
export declare function CalendarHeader({ maxDate, minDate, months, years, changeMonth, changeYear, increaseMonth, decreaseMonth, increaseYear, decreaseYear, date, onlyMonthYearPicker, nextMonthButtonDisabled: nextMonthButtonDisabledProp, prevMonthButtonDisabled: prevMonthButtonDisabledProp, }: CalendarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Option } from './DatePicker.constants';
|
|
2
|
+
type CalendarSelectProps = {
|
|
3
|
+
options: Option[];
|
|
4
|
+
onChange: (arg: number) => void;
|
|
5
|
+
value?: Option;
|
|
6
|
+
className?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function CalendarSelect({ options, onChange, value, className, placeholder, }: CalendarSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type ClearButtonProps = {
|
|
2
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function ClearButton({ onClick, visible, disabled, readOnly, compact, }: ClearButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type DatePickerCustomInputOwnProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Label que será renderizada acima do input. Por motivos
|
|
5
|
+
* de acessibilidade deve
|
|
6
|
+
ser utilizado em conjunto com a prop `id` ou `name`.
|
|
7
|
+
*/
|
|
8
|
+
label?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Especifica se o componente deve ser compacto ou não.
|
|
11
|
+
* O modo compacto é um componente de input com padding reduzido.
|
|
12
|
+
*/
|
|
13
|
+
compact?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Renderiza um input com aparência de erro e mensagem logo abaixo do input.
|
|
16
|
+
* Se utilizada com a prop `hint`, a prop `error` terá prioridade e
|
|
17
|
+
* irá sobrescrever a mensagem de `hint`.
|
|
18
|
+
*/
|
|
19
|
+
error?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Renderiza uma mensagem de informação logo abaixo do input.
|
|
22
|
+
* Se utilizada com a prop `error`, a prop `error` terá prioridade e
|
|
23
|
+
* irá sobrescrever a mensagem de `hint`.
|
|
24
|
+
*/
|
|
25
|
+
hint?: string;
|
|
26
|
+
minDate?: Date;
|
|
27
|
+
maxDate?: Date;
|
|
28
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLInputElement>;
|
|
29
|
+
value?: string;
|
|
30
|
+
isRange?: boolean;
|
|
31
|
+
onlyMonthYearPicker?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export type DatePickerCustomInputProps = React.InputHTMLAttributes<HTMLInputElement> & DatePickerCustomInputOwnProps;
|
|
34
|
+
export declare const DateInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & DatePickerCustomInputOwnProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DatePickerCustomInputOwnProps } from './DateInput';
|
|
3
|
+
export type DatePickerCustomRangeInputOwnProps = DatePickerCustomInputOwnProps & {
|
|
4
|
+
maxRangeInterval?: number;
|
|
5
|
+
onRangeChange: (dates: [Date | null, Date | null] | null) => void;
|
|
6
|
+
};
|
|
7
|
+
export type DatePickerCustomInputProps = React.InputHTMLAttributes<HTMLInputElement> & DatePickerCustomRangeInputOwnProps;
|
|
8
|
+
export declare const DateInputRange: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & DatePickerCustomInputOwnProps & {
|
|
9
|
+
maxRangeInterval?: number;
|
|
10
|
+
onRangeChange: (dates: [Date | null, Date | null] | null) => void;
|
|
11
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Option = {
|
|
2
|
+
value: number;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const MONTHS: string[];
|
|
6
|
+
export declare const MONTH_OFFSET_DUE_TO_INDEX_0 = 1;
|
|
7
|
+
export declare const DAY_MAX_LENGTH = 2;
|
|
8
|
+
export declare const MONTH_MAX_LENGTH = 2;
|
|
9
|
+
export declare const YEAR_MAX_LENGTH = 4;
|
|
10
|
+
export declare const FIRST_YEAR = 1;
|
|
11
|
+
export declare const FIRST_LEAP_YEAR = 4;
|
|
12
|
+
export declare const FIRST_MONTH = 0;
|
|
13
|
+
export declare const FIRST_DAY = 1;
|
|
14
|
+
export declare const MIN_YEAR = 1;
|
|
15
|
+
export declare const MAX_YEAR = 9999;
|
|
16
|
+
export declare const DEFAULT_MAX_DATE: Date;
|
|
17
|
+
export declare const DEFAULT_MIN_DATE: Date;
|
|
18
|
+
export declare const monthOptions: Option[];
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
+
import { Combine } from '../../utils';
|
|
4
|
+
import { DatePickerCustomInputProps } from './DateInput';
|
|
5
|
+
type DatePickerConditionalProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Habilita a seleção de um período entre duas datas.
|
|
8
|
+
*/
|
|
9
|
+
selectsRange?: never;
|
|
10
|
+
/**
|
|
11
|
+
* Evento disparado ao preencher um input com uma data válida.
|
|
12
|
+
*/
|
|
13
|
+
onChange?: (date: Date, event?: React.SyntheticEvent<any, Event>) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Especifica o valor da data inicial do período. Utilizado quando é necessário
|
|
16
|
+
* ter um componente controlado.
|
|
17
|
+
*/
|
|
18
|
+
startDate?: never;
|
|
19
|
+
/**
|
|
20
|
+
* Especifica o valor da data inicial do período. Utilizado quando é necessário
|
|
21
|
+
* ter um componente controlado.
|
|
22
|
+
*/
|
|
23
|
+
endDate?: never;
|
|
24
|
+
/**
|
|
25
|
+
* Prop passada para controlar o valor inicial da data inicial do período.
|
|
26
|
+
*/
|
|
27
|
+
defaultEndDate?: never;
|
|
28
|
+
/**
|
|
29
|
+
* Prop passada para controlar o valor inicial da data final do período.
|
|
30
|
+
*/
|
|
31
|
+
defaultStartDate?: never;
|
|
32
|
+
/**
|
|
33
|
+
* Determina o tamanho máximo do intervalo entre as duas datas do período.
|
|
34
|
+
*/
|
|
35
|
+
maxRangeInterval?: never;
|
|
36
|
+
/**
|
|
37
|
+
* Habilita a seleção apenas de mês e ano
|
|
38
|
+
*/
|
|
39
|
+
onlyMonthYearPicker?: boolean;
|
|
40
|
+
} | {
|
|
41
|
+
selectsRange: true;
|
|
42
|
+
onChange?: (date: [Date | null, Date | null], event?: React.SyntheticEvent<any, Event>) => void;
|
|
43
|
+
startDate?: Date | null;
|
|
44
|
+
endDate?: Date | null;
|
|
45
|
+
defaultStartDate?: Date | null;
|
|
46
|
+
defaultEndDate?: Date | null;
|
|
47
|
+
maxRangeInterval?: number;
|
|
48
|
+
onlyMonthYearPicker?: never;
|
|
49
|
+
};
|
|
50
|
+
export type DatePickerOwnProps = DatePickerConditionalProps & {
|
|
51
|
+
/**
|
|
52
|
+
* Data mínima que pode ser selecionada.
|
|
53
|
+
*/
|
|
54
|
+
minDate?: Date;
|
|
55
|
+
/**
|
|
56
|
+
* Data máxima que pode ser selecionada.
|
|
57
|
+
*/
|
|
58
|
+
maxDate?: Date;
|
|
59
|
+
/**
|
|
60
|
+
* Prop passada para controlar o valor inicial.
|
|
61
|
+
*/
|
|
62
|
+
defaultSelected?: Date | null;
|
|
63
|
+
/**
|
|
64
|
+
* Prop passada para controlar o valor do Date Picker.
|
|
65
|
+
*/
|
|
66
|
+
selected?: Date | null;
|
|
67
|
+
/**
|
|
68
|
+
* Especifica valor do input do DatePicker. Utilizado quando é necessário
|
|
69
|
+
* ter um componente controlado.
|
|
70
|
+
*/
|
|
71
|
+
value?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Determina a direção que o DatePicker deve ser renderizado.
|
|
74
|
+
*/
|
|
75
|
+
popperPlacement?: ReactDatePickerProps['popperPlacement'];
|
|
76
|
+
};
|
|
77
|
+
export type DatePickerProps = Combine<Omit<DatePickerCustomInputProps, 'isRange'>, DatePickerOwnProps>;
|
|
78
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Option } from './DatePicker.constants';
|
|
2
|
+
export declare const yearsOptions: ({ maxDate, minDate, }: {
|
|
3
|
+
maxDate: Date;
|
|
4
|
+
minDate: Date;
|
|
5
|
+
}) => Option[];
|
|
6
|
+
export declare const weekDayLabel: (nameOfDay: string) => string;
|
|
7
|
+
export declare const parseDate: (brazilianDate: string, onlyMonthYear?: boolean) => Date;
|
|
8
|
+
export declare const isDateFormat: (value: string) => boolean;
|
|
9
|
+
export declare const isOutOfRange: (date: Date, { maxDate, minDate }: {
|
|
10
|
+
maxDate?: Date;
|
|
11
|
+
minDate?: Date;
|
|
12
|
+
}) => boolean;
|
|
13
|
+
export declare const dateInBoundary: (date: Date | null | undefined, { maxDate, minDate }: {
|
|
14
|
+
maxDate?: Date;
|
|
15
|
+
minDate?: Date;
|
|
16
|
+
}) => Date;
|
|
17
|
+
export declare const isFullDate: (dateCandidate: string) => boolean;
|
|
18
|
+
export declare const validateFullDate: (dateCandidate: string) => boolean;
|
|
19
|
+
export declare const validateMonthYearFullDate: (dateCandidate: string) => boolean;
|
|
20
|
+
export declare const isValidDate: (dateCandidate: string, onlyMonthYear?: boolean) => boolean;
|
|
21
|
+
export declare const isValidPartialYear: (inputYear: number, yearCandidate: string, generatedYear: number) => boolean;
|
|
22
|
+
export declare const isValidDatePart: (dateCandidate: string, onlyMonthYear?: boolean) => boolean;
|
|
23
|
+
export declare const dateMask: (value: string) => string;
|
|
24
|
+
export declare const monthYearMask: (value: string) => string;
|
|
25
|
+
export declare const getRangeMaxDate: (startDate: Date | null, maxDays: number | undefined, { maxDate, minDate }: {
|
|
26
|
+
maxDate?: Date;
|
|
27
|
+
minDate?: Date;
|
|
28
|
+
}) => Date;
|
|
29
|
+
export declare const dateRangeMask: (value: string) => string;
|
|
30
|
+
export declare function getDateInputCursorPosition({ currentPosition, lastKey, }: {
|
|
31
|
+
currentPosition: number;
|
|
32
|
+
lastKey: string | null;
|
|
33
|
+
}): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DatePicker } from './DatePicker';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModalProps } from '../Modal/Modal';
|
|
2
|
+
import { ModalContentWrapperProps } from '../Modal/ModalContentWrapper';
|
|
3
|
+
export type DialogProps = ModalProps & Pick<ModalContentWrapperProps, 'title' | 'onClose' | 'children' | 'cancelLabel'> & Required<Pick<ModalContentWrapperProps, 'action'>> & {
|
|
4
|
+
/**
|
|
5
|
+
* Prop para controlar a exibição do checkbox "Não mostrar novamente até a próxima sessão"
|
|
6
|
+
*/
|
|
7
|
+
showDontShowAgain?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Função que é chamada quando o checkbox "Não mostrar novamente até a próxima sessão" é alterado
|
|
10
|
+
*/
|
|
11
|
+
onDontShowAgainChange?: (checked: boolean) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function Dialog({ onOpenChange, open, children, showDontShowAgain, onDontShowAgainChange, ...rest }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog } from './Dialog';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type DividerProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Especifica a orientação que que o Divider deve ser renderizado.
|
|
4
|
+
*/
|
|
5
|
+
orientation?: 'vertical' | 'horizontal';
|
|
6
|
+
/**
|
|
7
|
+
* Classes customizadas para o componente.
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Objeto de estilo que pode ser utilizado para estilizar o componente.
|
|
12
|
+
*/
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
};
|
|
15
|
+
export declare function Divider({ orientation, className, style, }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Divider } from './Divider';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { DrawerProps as RcDrawerProps } from 'rc-drawer';
|
|
2
|
+
import { CSSProperties, PropsWithChildren } from 'react';
|
|
3
|
+
export declare const maskMotion: RcDrawerProps['maskMotion'];
|
|
4
|
+
export declare const motion: RcDrawerProps['motion'];
|
|
5
|
+
export type DrawerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Define se o componente está aberto ou fechado.
|
|
8
|
+
* Quando `true`, o drawer é exibido; quando `false`, ele é ocultado.
|
|
9
|
+
*/
|
|
10
|
+
open: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Callback disparado ao solicitar o fechamento do drawer.
|
|
13
|
+
* Normalmente é chamado ao clicar no botão de fechar,
|
|
14
|
+
* no overlay (quando `maskClosable` estiver habilitado)
|
|
15
|
+
* ou ao pressionar a tecla `Esc`.
|
|
16
|
+
*/
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Define o lado da tela a partir do qual o drawer será exibido.
|
|
20
|
+
* @default 'right'
|
|
21
|
+
*/
|
|
22
|
+
placement?: 'left' | 'right';
|
|
23
|
+
/**
|
|
24
|
+
* Define o tamanho do drawer.
|
|
25
|
+
*
|
|
26
|
+
* Os tamanhos disponíveis são:
|
|
27
|
+
* - `sm` (296px): Ideal para formulários simples e ações rápidas.
|
|
28
|
+
* - `md` (376px): Tamanho padrão para a maioria dos casos de uso.
|
|
29
|
+
* - `lg` (462px): Indicado para conteúdos mais extensos e formulários complexos.
|
|
30
|
+
* - `xl` (872px): Ideal para visualização de documentos,
|
|
31
|
+
* conteúdos detalhados e filtragens complexas.
|
|
32
|
+
*
|
|
33
|
+
* @default 'md'
|
|
34
|
+
*/
|
|
35
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
36
|
+
/**
|
|
37
|
+
* Define a largura do drawer.
|
|
38
|
+
* Aceita qualquer valor válido da propriedade CSS `width`
|
|
39
|
+
* (por exemplo: `450px`, `40%`, `auto`).
|
|
40
|
+
*/
|
|
41
|
+
width?: CSSProperties['width'];
|
|
42
|
+
/**
|
|
43
|
+
* Define se o drawer pode ser fechado ao clicar na máscara
|
|
44
|
+
* (overlay) que cobre o conteúdo da página.
|
|
45
|
+
* @default true
|
|
46
|
+
*/
|
|
47
|
+
maskClosable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Define o título exibido no cabeçalho do drawer.
|
|
50
|
+
* Pode ser usado para identificar o conteúdo apresentado.
|
|
51
|
+
*/
|
|
52
|
+
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Define se o conteúdo interno do drawer deve ser destruído
|
|
55
|
+
* ao ser fechado.
|
|
56
|
+
* Quando `true`, o conteúdo é desmontado ao fechar o drawer;
|
|
57
|
+
* quando `false`, o conteúdo permanece montado no DOM.
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
destroyOnClose?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Força a renderização do conteúdo do drawer mesmo quando
|
|
63
|
+
* ele estiver fechado.
|
|
64
|
+
* Útil quando é necessário pré-renderizar o conteúdo
|
|
65
|
+
* ou manter estados internos.
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
forceRender?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Callback disparado após a conclusão da animação
|
|
71
|
+
* de abertura ou fechamento do drawer.
|
|
72
|
+
* Recebe como parâmetro o estado atual (`true` para aberto,
|
|
73
|
+
* `false` para fechado).
|
|
74
|
+
*/
|
|
75
|
+
afterOpenChange?: (open: boolean) => void;
|
|
76
|
+
};
|
|
77
|
+
export declare function Drawer({ open, onClose, children, maskClosable, title, destroyOnClose, forceRender, afterOpenChange, width: widthProp, placement, size, }: PropsWithChildren<DrawerProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Drawer } from './Drawer';
|