@pedidopago/ui 1.13.9 → 1.13.11
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/CHANGELOG.md +0 -0
- package/dist/@types/index.d.ts +6 -6
- package/dist/components/Alert/alert.test.d.ts +1 -1
- package/dist/components/Alert/index.d.ts +3 -3
- package/dist/components/Alert/styles.d.ts +10 -10
- package/dist/components/Alert/types.d.ts +43 -43
- package/dist/components/Avatar/avatar.test.d.ts +1 -1
- package/dist/components/Avatar/index.d.ts +4 -4
- package/dist/components/Avatar/styles.d.ts +25 -25
- package/dist/components/Avatar/types.d.ts +15 -15
- package/dist/components/Badge/badge.test.d.ts +1 -1
- package/dist/components/Badge/index.d.ts +4 -4
- package/dist/components/Badge/styles.d.ts +16 -16
- package/dist/components/Badge/types.d.ts +12 -12
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Button/styles.d.ts +14 -14
- package/dist/components/Button/types.d.ts +92 -92
- package/dist/components/Card/card.test.d.ts +1 -1
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Card/styles.d.ts +6 -6
- package/dist/components/Card/types.d.ts +17 -17
- package/dist/components/Carousel/Examples/index.d.ts +5 -5
- package/dist/components/Carousel/Examples/styles.d.ts +26 -26
- package/dist/components/Carousel/carousel-control-container.d.ts +4 -4
- package/dist/components/Carousel/carousel-control-item.d.ts +4 -4
- package/dist/components/Carousel/carousel-root.d.ts +7 -7
- package/dist/components/Carousel/carousel-slide-container.d.ts +2 -2
- package/dist/components/Carousel/carousel-slide-item.d.ts +2 -2
- package/dist/components/Carousel/contexts/carousel-context/constants.d.ts +1 -1
- package/dist/components/Carousel/contexts/carousel-context/index.d.ts +4 -4
- package/dist/components/Carousel/contexts/carousel-context/types.d.ts +25 -25
- package/dist/components/Carousel/index.d.ts +6 -6
- package/dist/components/Carousel/styles.d.ts +9 -9
- package/dist/components/Carousel/types.d.ts +18 -18
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
- package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
- package/dist/components/CheckboxInput/index.d.ts +4 -4
- package/dist/components/CheckboxInput/styles.d.ts +30 -30
- package/dist/components/CheckboxInput/types.d.ts +27 -27
- package/dist/components/ChoiceList/index.d.ts +5 -5
- package/dist/components/ChoiceList/styles.d.ts +21 -21
- package/dist/components/ChoiceList/types.d.ts +23 -23
- package/dist/components/CollapseCard/ExpandButton/index.d.ts +2 -2
- package/dist/components/CollapseCard/ExpandButton/styles.d.ts +276 -276
- package/dist/components/CollapseCard/ExpandButton/types.d.ts +5 -5
- package/dist/components/CollapseCard/expand-button.test.d.ts +1 -1
- package/dist/components/CollapseCard/index.d.ts +3 -3
- package/dist/components/CollapseCard/styles.d.ts +275 -275
- package/dist/components/CollapseCard/types.d.ts +12 -12
- package/dist/components/ColorPicker/colorpicker.test.d.ts +1 -1
- package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorInput.d.ts +3 -3
- package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPointer.d.ts +3 -3
- package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
- package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
- package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
- package/dist/components/ColorPicker/index.d.ts +3 -3
- package/dist/components/ColorPicker/styles.d.ts +44 -44
- package/dist/components/ColorPicker/types.d.ts +73 -73
- package/dist/components/ColorPicker/utils/checkers.d.ts +7 -7
- package/dist/components/ColorPicker/utils/conversors.d.ts +60 -60
- package/dist/components/ColorPicker/utils/parsers.d.ts +27 -27
- package/dist/components/Combobox/ComboboxLoading/index.d.ts +1 -1
- package/dist/components/Combobox/ComboboxLoading/types.d.ts +5 -5
- package/dist/components/Combobox/ComboboxNoResult/index.d.ts +2 -2
- package/dist/components/Combobox/ComboboxOption/index.d.ts +3 -3
- package/dist/components/Combobox/ComboboxOption/styles.d.ts +7 -7
- package/dist/components/Combobox/ComboboxOption/types.d.ts +5 -5
- package/dist/components/Combobox/Examples/constants.d.ts +4 -4
- package/dist/components/Combobox/Examples/index.d.ts +2 -2
- package/dist/components/Combobox/index.d.ts +2 -2
- package/dist/components/Combobox/styles.d.ts +5 -5
- package/dist/components/Combobox/types.d.ts +32 -32
- package/dist/components/Combobox/utils.d.ts +32 -32
- package/dist/components/ComposeIcon/index.d.ts +4 -4
- package/dist/components/ComposeIcon/styles.d.ts +10 -10
- package/dist/components/ComposeIcon/types.d.ts +11 -11
- package/dist/components/DateInput/DateInput-example.d.ts +4 -4
- package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
- package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +275 -275
- package/dist/components/DateInput/components/ModalWrapper/types.d.ts +15 -15
- package/dist/components/DateInput/dateInput.test.d.ts +1 -1
- package/dist/components/DateInput/index.d.ts +2 -2
- package/dist/components/DateInput/styles.d.ts +10 -10
- package/dist/components/DateInput/types.d.ts +19 -19
- package/dist/components/DatePicker/components/DatePickerContent.d.ts +2 -2
- package/dist/components/DatePicker/components/DateYearPicker.d.ts +2 -2
- package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +3 -3
- package/dist/components/DatePicker/styles.d.ts +77 -77
- package/dist/components/DatePicker/types.d.ts +69 -69
- package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
- package/dist/components/Dialog/dialog-example.d.ts +2 -2
- package/dist/components/Dialog/dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/Dialog/styles.d.ts +23 -23
- package/dist/components/Dialog/types.d.ts +30 -30
- package/dist/components/Dropzone/dropzone.test.d.ts +1 -1
- package/dist/components/Dropzone/index.d.ts +3 -3
- package/dist/components/Dropzone/styles.d.ts +55 -55
- package/dist/components/Dropzone/types.d.ts +27 -27
- package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
- package/dist/components/Dropzone/utils/covert-blob.d.ts +1 -1
- package/dist/components/EmojiPicker/Emote/index.d.ts +2 -2
- package/dist/components/EmojiPicker/Emote/styles.d.ts +12 -12
- package/dist/components/EmojiPicker/Emote/types.d.ts +31 -31
- package/dist/components/EmojiPicker/EmotePickerData/constants.d.ts +9 -9
- package/dist/components/EmojiPicker/EmotePickerData/index.d.ts +2 -2
- package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts +17 -17
- package/dist/components/EmojiPicker/EmotePickerData/types.d.ts +9 -9
- package/dist/components/EmojiPicker/EmotePickerData/utils.d.ts +4 -4
- package/dist/components/EmojiPicker/Example/EmotePickerExample.d.ts +2 -2
- package/dist/components/EmojiPicker/animation.d.ts +3 -3
- package/dist/components/EmojiPicker/index.d.ts +3 -3
- package/dist/components/EmojiPicker/styles.d.ts +529 -529
- package/dist/components/EmojiPicker/types.d.ts +20 -20
- package/dist/components/Flex/flex.test.d.ts +1 -1
- package/dist/components/Flex/index.d.ts +4 -4
- package/dist/components/Flex/styles.d.ts +464 -464
- package/dist/components/Flex/types.d.ts +175 -175
- package/dist/components/ForwardedModal/ForwardedModalExample.d.ts +6 -6
- package/dist/components/ForwardedModal/forwardedModal.test.d.ts +1 -1
- package/dist/components/ForwardedModal/index.d.ts +5 -5
- package/dist/components/ForwardedModal/types.d.ts +8 -8
- package/dist/components/Grid/grid.test.d.ts +1 -1
- package/dist/components/Grid/index.d.ts +4 -4
- package/dist/components/Grid/styles.d.ts +456 -456
- package/dist/components/Grid/types.d.ts +88 -88
- package/dist/components/Icon/data/beauty.d.ts +8 -8
- package/dist/components/Icon/data/dash.d.ts +8 -8
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/data/ecommerce.d.ts +8 -8
- package/dist/components/Icon/data/filled.d.ts +8 -8
- package/dist/components/Icon/data/form.d.ts +8 -8
- package/dist/components/Icon/data/health.d.ts +8 -8
- package/dist/components/Icon/data/illustrations.d.ts +8 -8
- package/dist/components/Icon/data/men.d.ts +8 -8
- package/dist/components/Icon/data/payment.d.ts +8 -8
- package/dist/components/Icon/data/pedidoPago.d.ts +8 -8
- package/dist/components/Icon/data/physicalPerfomance.d.ts +8 -8
- package/dist/components/Icon/data/social.d.ts +8 -8
- package/dist/components/Icon/data/status.d.ts +8 -8
- package/dist/components/Icon/data/summer.d.ts +8 -8
- package/dist/components/Icon/data/woman.d.ts +8 -8
- package/dist/components/Icon/icon.test.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +4 -4
- package/dist/components/Icon/scripts/build.d.ts +5 -5
- package/dist/components/Icon/scripts/extractor.d.ts +15 -15
- package/dist/components/Icon/scripts/run-build.d.ts +1 -1
- package/dist/components/Icon/scripts/writers.d.ts +22 -22
- package/dist/components/Icon/styles.d.ts +13 -13
- package/dist/components/Icon/types.d.ts +8 -8
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Icon/utils/allIcons.d.ts +8 -8
- package/dist/components/Icon/utils/iconExists.d.ts +4 -4
- package/dist/components/IconItem/IconItem.test.d.ts +1 -1
- package/dist/components/IconItem/index.d.ts +4 -4
- package/dist/components/IconItem/styles.d.ts +18 -18
- package/dist/components/IconItem/types.d.ts +22 -22
- package/dist/components/Illustration/illustration.test.d.ts +1 -1
- package/dist/components/Illustration/index.d.ts +4 -4
- package/dist/components/Illustration/styles.d.ts +10 -10
- package/dist/components/Illustration/types.d.ts +11 -11
- package/dist/components/IllustrationCard/index.d.ts +2 -2
- package/dist/components/IllustrationCard/styles.d.ts +5 -5
- package/dist/components/IllustrationCard/types.d.ts +14 -14
- package/dist/components/ImageItem/imageFake.d.ts +1 -1
- package/dist/components/ImageItem/index.d.ts +4 -4
- package/dist/components/ImageItem/input.test.d.ts +1 -1
- package/dist/components/ImageItem/styles.d.ts +26 -26
- package/dist/components/ImageItem/types.d.ts +25 -25
- package/dist/components/Input/index.d.ts +4 -4
- package/dist/components/Input/input.test.d.ts +1 -1
- package/dist/components/Input/styles.d.ts +65 -65
- package/dist/components/Input/types.d.ts +32 -32
- package/dist/components/Label/index.d.ts +2 -2
- package/dist/components/Label/label.test.d.ts +1 -1
- package/dist/components/Label/styles.d.ts +6 -6
- package/dist/components/Label/types.d.ts +17 -17
- package/dist/components/LegacyRadio/index.d.ts +4 -4
- package/dist/components/LegacyRadio/legacy-radio.test.d.ts +1 -1
- package/dist/components/LegacyRadio/styles.d.ts +33 -33
- package/dist/components/LegacyRadio/types.d.ts +27 -27
- package/dist/components/List/index.d.ts +4 -4
- package/dist/components/List/list.test.d.ts +1 -1
- package/dist/components/List/styles.d.ts +15 -15
- package/dist/components/List/types.d.ts +8 -8
- package/dist/components/Modal/ModalExample.d.ts +6 -6
- package/dist/components/Modal/index.d.ts +3 -3
- package/dist/components/Modal/modal.test.d.ts +1 -1
- package/dist/components/Modal/styles.d.ts +550 -550
- package/dist/components/Modal/types.d.ts +38 -38
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
- package/dist/components/MultipleSelect/animations.d.ts +2 -2
- package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
- package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +4 -4
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +2 -2
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +282 -282
- package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts +20 -20
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +13 -13
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +21 -21
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +3 -3
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +18 -18
- package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +22 -22
- package/dist/components/MultipleSelect/components/index.d.ts +3 -3
- package/dist/components/MultipleSelect/index.d.ts +9 -9
- package/dist/components/MultipleSelect/types.d.ts +44 -44
- package/dist/components/NewDropzone/DropzoneButton/index.d.ts +2 -2
- package/dist/components/NewDropzone/DropzoneButton/styles.d.ts +5 -5
- package/dist/components/NewDropzone/DropzoneButton/types.d.ts +26 -26
- package/dist/components/NewDropzone/DropzoneButton/utils/convertFile.d.ts +7 -7
- package/dist/components/NewDropzone/DropzoneButton/utils/formatAcceptObject/constants.d.ts +4 -4
- package/dist/components/NewDropzone/DropzoneButton/utils/formatAcceptObject/index.d.ts +2 -2
- package/dist/components/NewDropzone/DropzoneButtonIcon/index.d.ts +2 -2
- package/dist/components/NewDropzone/DropzoneButtonIcon/styles.d.ts +5 -5
- package/dist/components/NewDropzone/DropzoneButtonText/index.d.ts +2 -2
- package/dist/components/NewDropzone/Examples/BasicUse/index.d.ts +1 -1
- package/dist/components/NewDropzone/Examples/Controlled/index.d.ts +1 -1
- package/dist/components/NewDropzone/Examples/Controlled/mocks.d.ts +1 -1
- package/dist/components/NewDropzone/Examples/DropzoneButton/index.d.ts +1 -1
- package/dist/components/NewDropzone/Examples/index.d.ts +3 -3
- package/dist/components/NewDropzone/MultipleDropzone/index.d.ts +2 -2
- package/dist/components/NewDropzone/MultiplePreview/index.d.ts +2 -2
- package/dist/components/NewDropzone/MultiplePreview/styles.d.ts +5 -5
- package/dist/components/NewDropzone/MultiplePreview/types.d.ts +9 -9
- package/dist/components/NewDropzone/MultiplePreviewItem/animations.d.ts +3 -3
- package/dist/components/NewDropzone/MultiplePreviewItem/index.d.ts +2 -2
- package/dist/components/NewDropzone/MultiplePreviewItem/styles.d.ts +5 -5
- package/dist/components/NewDropzone/MultiplePreviewItem/types.d.ts +9 -9
- package/dist/components/NewDropzone/Preview/content/index.d.ts +2 -2
- package/dist/components/NewDropzone/Preview/content/index.js +1 -1
- package/dist/components/NewDropzone/Preview/content/types.d.ts +5 -5
- package/dist/components/NewDropzone/Preview/index.d.ts +2 -2
- package/dist/components/NewDropzone/Preview/styles.d.ts +280 -280
- package/dist/components/NewDropzone/Preview/types.d.ts +8 -8
- package/dist/components/NewDropzone/SingleDropzone/index.d.ts +2 -2
- package/dist/components/NewDropzone/constants.d.ts +6 -6
- package/dist/components/NewDropzone/index.d.ts +2 -2
- package/dist/components/NewDropzone/styles.d.ts +5 -5
- package/dist/components/NewDropzone/types.d.ts +35 -35
- package/dist/components/NewDropzone/utils.d.ts +5 -5
- package/dist/components/NewSelect/Examples/constants.d.ts +8 -8
- package/dist/components/NewSelect/Examples/index.d.ts +5 -5
- package/dist/components/NewSelect/Multiple/Examples/index.d.ts +5 -5
- package/dist/components/NewSelect/Multiple/index.d.ts +2 -2
- package/dist/components/NewSelect/Single/Examples/index.d.ts +5 -5
- package/dist/components/NewSelect/Single/index.d.ts +2 -2
- package/dist/components/NewSelect/components/Chip/index.d.ts +2 -2
- package/dist/components/NewSelect/components/Chip/styles.d.ts +5 -5
- package/dist/components/NewSelect/components/Chip/types.d.ts +4 -4
- package/dist/components/NewSelect/components/OptionsSelect/styles.d.ts +267 -267
- package/dist/components/NewSelect/components/OptionsSelect/types.d.ts +22 -22
- package/dist/components/NewSelect/components/SelectInputSearch/index.d.ts +2 -2
- package/dist/components/NewSelect/components/SelectInputSearch/types.d.ts +3 -3
- package/dist/components/NewSelect/components/SelectItem/index.d.ts +5 -5
- package/dist/components/NewSelect/components/SelectItem/styles.d.ts +9 -9
- package/dist/components/NewSelect/components/SelectItem/types.d.ts +5 -5
- package/dist/components/NewSelect/index.d.ts +2 -2
- package/dist/components/NewSelect/newSelect.test.d.ts +1 -1
- package/dist/components/NewSelect/styles.d.ts +24 -24
- package/dist/components/NewSelect/types.d.ts +48 -48
- package/dist/components/NewSelect/utils.ts/index.d.ts +9 -9
- package/dist/components/Observer/index.d.ts +5 -5
- package/dist/components/Observer/observer.test.d.ts +1 -1
- package/dist/components/Observer/types.d.ts +6 -6
- package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Pagination/pagination.test.d.ts +1 -1
- package/dist/components/Pagination/styles.d.ts +34 -34
- package/dist/components/Pagination/types.d.ts +29 -29
- package/dist/components/PdfPreview/index.d.ts +3 -3
- package/dist/components/PdfPreview/styles.d.ts +5 -5
- package/dist/components/PdfPreview/types.d.ts +3 -3
- package/dist/components/Popover/Popover.d.ts +5 -5
- package/dist/components/Popover/PopoverContent.d.ts +2 -2
- package/dist/components/Popover/PopoverTrigger.d.ts +3 -3
- package/dist/components/Popover/context/usePopoverContext.d.ts +54 -54
- package/dist/components/Popover/examples/index.d.ts +2 -2
- package/dist/components/Popover/hooks/usePopover.d.ts +50 -50
- package/dist/components/Popover/index.d.ts +3 -3
- package/dist/components/Popover/popover.test.d.ts +1 -1
- package/dist/components/Popover/types.d.ts +18 -18
- package/dist/components/Progress/Circle/index.d.ts +2 -2
- package/dist/components/Progress/Circle/styles.d.ts +27 -27
- package/dist/components/Progress/Circle/types.d.ts +18 -18
- package/dist/components/Progress/Linear/index.d.ts +2 -2
- package/dist/components/Progress/Linear/styles.d.ts +15 -15
- package/dist/components/Progress/Linear/types.d.ts +13 -13
- package/dist/components/Progress/getSteps.d.ts +1 -1
- package/dist/components/Progress/index.d.ts +3 -3
- package/dist/components/Progress/progress.test.d.ts +1 -1
- package/dist/components/Progress/types.d.ts +27 -27
- package/dist/components/Radio/components/RadioGroup/index.d.ts +4 -4
- package/dist/components/Radio/components/RadioGroup/styles.d.ts +18 -18
- package/dist/components/Radio/components/RadioGroup/types.d.ts +23 -23
- package/dist/components/Radio/components/RadioGroup/utils.d.ts +3 -3
- package/dist/components/Radio/index.d.ts +4 -4
- package/dist/components/Radio/styles.d.ts +9 -9
- package/dist/components/Radio/types.d.ts +5 -5
- package/dist/components/Rating/index.d.ts +3 -3
- package/dist/components/Rating/rating.test.d.ts +1 -1
- package/dist/components/Rating/styles.d.ts +18 -18
- package/dist/components/Rating/types.d.ts +19 -19
- package/dist/components/ReactPortal/index.d.ts +7 -7
- package/dist/components/ReactPortal/reactPortal.test.d.ts +1 -1
- package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
- package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
- package/dist/components/Select/components/OptionsSelect/styles.d.ts +14 -14
- package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
- package/dist/components/Select/index.d.ts +9 -9
- package/dist/components/Select/select.test.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +20 -20
- package/dist/components/Select/types.d.ts +26 -26
- package/dist/components/Skeleton/index.d.ts +3 -3
- package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
- package/dist/components/Skeleton/styles.d.ts +7 -7
- package/dist/components/Skeleton/types.d.ts +40 -40
- package/dist/components/Slider/SliderExample.d.ts +2 -2
- package/dist/components/Slider/components/SliderPointer.d.ts +2 -2
- package/dist/components/Slider/components/SliderRail.d.ts +3 -3
- package/dist/components/Slider/components/SliderSelector.d.ts +19 -19
- package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
- package/dist/components/Slider/index.d.ts +21 -21
- package/dist/components/Slider/slider.test.d.ts +1 -1
- package/dist/components/Slider/styles.d.ts +77 -77
- package/dist/components/Slider/types.d.ts +43 -43
- package/dist/components/Spinner/index.d.ts +4 -4
- package/dist/components/Spinner/spinner.test.d.ts +1 -1
- package/dist/components/Spinner/styles.d.ts +456 -456
- package/dist/components/Spinner/types.d.ts +11 -11
- package/dist/components/Steps/components/StepIcon/index.d.ts +2 -2
- package/dist/components/Steps/components/StepIcon/styles.d.ts +22 -22
- package/dist/components/Steps/components/StepIcon/types.d.ts +15 -15
- package/dist/components/Steps/components/StepIcon/utils.d.ts +4 -4
- package/dist/components/Steps/index.d.ts +3 -3
- package/dist/components/Steps/steps.test.d.ts +1 -1
- package/dist/components/Steps/styles.d.ts +47 -47
- package/dist/components/Steps/types.d.ts +20 -20
- package/dist/components/Steps/utils.d.ts +8 -8
- package/dist/components/Switch/index.d.ts +4 -4
- package/dist/components/Switch/styles.d.ts +18 -18
- package/dist/components/Switch/switch.test.d.ts +1 -1
- package/dist/components/Switch/types.d.ts +15 -15
- package/dist/components/Table/components/MenuItem.d.ts +2 -2
- package/dist/components/Table/components/TableMenuPopover.d.ts +2 -2
- package/dist/components/Table/components/TableSkeleton.d.ts +2 -2
- package/dist/components/Table/components/animations.d.ts +2 -2
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/styles.d.ts +36 -36
- package/dist/components/Table/table.test.d.ts +1 -1
- package/dist/components/Table/types.d.ts +65 -65
- package/dist/components/Tabs/TabsExample.d.ts +2 -2
- package/dist/components/Tabs/components/Tab.d.ts +2 -2
- package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
- package/dist/components/Tabs/components/Tabs.d.ts +4 -4
- package/dist/components/Tabs/index.d.ts +3 -3
- package/dist/components/Tabs/styles.d.ts +41 -41
- package/dist/components/Tabs/tabs.test.d.ts +1 -1
- package/dist/components/Tabs/types.d.ts +50 -50
- package/dist/components/Tag/index.d.ts +4 -4
- package/dist/components/Tag/styles.d.ts +1374 -1374
- package/dist/components/Tag/tag.test.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +14 -14
- package/dist/components/TextAreaInput/index.d.ts +4 -4
- package/dist/components/TextAreaInput/styles.d.ts +18 -18
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
- package/dist/components/TextAreaInput/types.d.ts +26 -26
- package/dist/components/Thumbnail/index.d.ts +2 -2
- package/dist/components/Thumbnail/styles.d.ts +38 -38
- package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
- package/dist/components/Thumbnail/types.d.ts +20 -20
- package/dist/components/Thumbnail/utils/index.d.ts +2 -2
- package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
- package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
- package/dist/components/TimeInput/constants.d.ts +8 -8
- package/dist/components/TimeInput/index.d.ts +4 -4
- package/dist/components/TimeInput/styles.d.ts +16 -16
- package/dist/components/TimeInput/types.d.ts +5 -5
- package/dist/components/TimeInput/utils.d.ts +10 -10
- package/dist/components/Timeline/components/Timeline.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineContent.d.ts +2 -2
- package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
- package/dist/components/Timeline/components/TimelineSeparator.d.ts +2 -2
- package/dist/components/Timeline/index.d.ts +4 -4
- package/dist/components/Timeline/styles.d.ts +31 -31
- package/dist/components/Timeline/timeline.test.d.ts +1 -1
- package/dist/components/Timeline/types.d.ts +19 -19
- package/dist/components/Toast/EventManager/index.d.ts +2 -2
- package/dist/components/Toast/EventManager/types.d.ts +17 -17
- package/dist/components/Toast/Example/index.d.ts +3 -3
- package/dist/components/Toast/ToastContainer/index.d.ts +2 -2
- package/dist/components/Toast/ToastContainer/styles.d.ts +5 -5
- package/dist/components/Toast/ToastItem/animations.d.ts +11 -11
- package/dist/components/Toast/ToastItem/index.d.ts +2 -2
- package/dist/components/Toast/ToastItem/styles.d.ts +11 -11
- package/dist/components/Toast/ToastItem/types.d.ts +6 -6
- package/dist/components/Toast/ToastItem/utils.d.ts +3 -3
- package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
- package/dist/components/Toast/hooks/useToast.d.ts +12 -12
- package/dist/components/Toast/index.d.ts +5 -5
- package/dist/components/Toast/toast-handler.d.ts +10 -10
- package/dist/components/Toast/types.d.ts +42 -42
- package/dist/components/Tooltip/components/TooltipLabel.d.ts +12 -12
- package/dist/components/Tooltip/example.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +4 -4
- package/dist/components/Tooltip/styles.d.ts +13 -13
- package/dist/components/Tooltip/types.d.ts +31 -31
- package/dist/components/Tooltip/utils.d.ts +3 -3
- package/dist/components/Typography/index.d.ts +3 -3
- package/dist/components/Typography/styles.d.ts +21 -21
- package/dist/components/Typography/types.d.ts +16 -16
- package/dist/components/Typography/typography.test.d.ts +1 -1
- package/dist/index.d.ts +82 -82
- package/dist/shared/animations/opacityAnimation.d.ts +2 -2
- package/dist/shared/animations/widthAnimations.d.ts +2 -2
- package/dist/shared/assets/emotes.d.ts +5007 -5007
- package/dist/shared/components/FocusLock/index.d.ts +7 -7
- package/dist/shared/formatters/format-number.d.ts +6 -6
- package/dist/shared/formatters/types.d.ts +5 -5
- package/dist/shared/hooks/devices.d.ts +8 -8
- package/dist/shared/hooks/interval.d.ts +1 -1
- package/dist/shared/hooks/useBreakpoints.d.ts +17 -17
- package/dist/shared/hooks/useDebounce.d.ts +1 -1
- package/dist/shared/hooks/useDevices.d.ts +8 -8
- package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
- package/dist/shared/hooks/useDraggableScroll/index.d.ts +9 -9
- package/dist/shared/hooks/useDraggableScroll/types.d.ts +5 -5
- package/dist/shared/hooks/useKeyPress.d.ts +1 -1
- package/dist/shared/hooks/useObserver.d.ts +10 -10
- package/dist/shared/hooks/useOnClickOutside.d.ts +10 -10
- package/dist/shared/hooks/useReposition/index.d.ts +3 -3
- package/dist/shared/hooks/useReposition/types.d.ts +29 -29
- package/dist/shared/hooks/useSystemTheme.d.ts +4 -4
- package/dist/shared/hooks/useWindowSize.d.ts +8 -8
- package/dist/shared/tests/test-utils.d.ts +4 -4
- package/dist/shared/tests/types.d.ts +4 -4
- package/dist/shared/theme/button-example.d.ts +1 -1
- package/dist/shared/theme/contexts/ThemeContext.d.ts +16 -16
- package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
- package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
- package/dist/shared/theme/hooks/useTheme.d.ts +9 -9
- package/dist/shared/theme/index.d.ts +7 -7
- package/dist/shared/theme/objects/breakpoints.d.ts +8 -8
- package/dist/shared/theme/objects/colors.d.ts +170 -170
- package/dist/shared/theme/objects/shadows.d.ts +12 -12
- package/dist/shared/theme/objects/sizes.d.ts +22 -22
- package/dist/shared/theme/objects/spaces.d.ts +130 -130
- package/dist/shared/theme/objects/transitions.d.ts +3 -3
- package/dist/shared/theme/objects/typography.d.ts +13 -13
- package/dist/shared/theme/objects/z-indexes.d.ts +13 -13
- package/dist/shared/theme/theme.d.ts +450 -450
- package/dist/shared/theme/theme.test.d.ts +1 -1
- package/dist/shared/theme/theme.types.d.ts +34 -34
- package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
- package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
- package/dist/shared/theme/utils/tests/extendTheme.test.d.ts +1 -1
- package/dist/shared/types/credit-card.d.ts +5 -5
- package/dist/shared/types/file.d.ts +11 -11
- package/dist/shared/types/generics.d.ts +8 -8
- package/dist/shared/types/motion.d.ts +3 -3
- package/dist/shared/types/name.d.ts +3 -3
- package/dist/shared/types/phone.d.ts +7 -7
- package/dist/utils/GenerateKey.d.ts +10 -10
- package/dist/utils/arrays.d.ts +1 -1
- package/dist/utils/brightnessColorChange.d.ts +8 -8
- package/dist/utils/colorCheck.d.ts +40 -40
- package/dist/utils/colorFunctions.d.ts +2 -2
- package/dist/utils/colorToGray.d.ts +5 -5
- package/dist/utils/customColorMode.d.ts +5 -5
- package/dist/utils/file.d.ts +27 -27
- package/dist/utils/findDifferentKeys.d.ts +2 -2
- package/dist/utils/formatters/bytes.d.ts +7 -7
- package/dist/utils/formatters/capitalize.d.ts +6 -6
- package/dist/utils/formatters/cep.d.ts +12 -12
- package/dist/utils/formatters/cnpj.d.ts +18 -18
- package/dist/utils/formatters/color.d.ts +15 -15
- package/dist/utils/formatters/cpf.d.ts +18 -18
- package/dist/utils/formatters/credit-card.d.ts +26 -26
- package/dist/utils/formatters/document.d.ts +7 -7
- package/dist/utils/formatters/email.d.ts +1 -1
- package/dist/utils/formatters/getNumbersFromString.d.ts +1 -1
- package/dist/utils/formatters/index.d.ts +15 -15
- package/dist/utils/formatters/name.d.ts +20 -20
- package/dist/utils/formatters/number.d.ts +4 -4
- package/dist/utils/formatters/passport.d.ts +24 -24
- package/dist/utils/formatters/phone.d.ts +71 -71
- package/dist/utils/formatters/price.d.ts +11 -11
- package/dist/utils/formatters/rg.d.ts +12 -12
- package/dist/utils/formatters/strings.d.ts +43 -43
- package/dist/utils/fuctionsColors.d.ts +2 -2
- package/dist/utils/generateUUID.d.ts +1 -1
- package/dist/utils/get-primitive-value.d.ts +2 -2
- package/dist/utils/getColorByScheme.d.ts +2 -2
- package/dist/utils/getColorValue.d.ts +12 -12
- package/dist/utils/getSvg.d.ts +10 -10
- package/dist/utils/getValuesBySize.d.ts +6 -6
- package/dist/utils/invertColor.d.ts +7 -7
- package/dist/utils/isValidUrl.d.ts +1 -1
- package/package.json +6 -10
- package/bin/create-snippet +0 -2
- package/dist/components/Icon/constants.d.ts +0 -4
- package/dist/components/Icon/constants.d.ts.map +0 -1
- package/dist/components/Icon/constants.js +0 -1
- package/dist/index.js.map +0 -1
- package/dist/utils/array.d.ts +0 -2
- package/dist/utils/array.d.ts.map +0 -1
- package/dist/utils/array.js +0 -1
- package/dist/utils/formatters/cases.d.ts +0 -3
- package/dist/utils/formatters/cases.d.ts.map +0 -1
- package/dist/utils/formatters/cases.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
2
2
|
//# sourceMappingURL=theme.test.d.ts.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defaultTheme } from '.';
|
|
2
|
-
import { DeepPartial, DeepUnionObject } from '../types/generics';
|
|
3
|
-
export type ThemeBase = typeof defaultTheme;
|
|
4
|
-
export type ExtendThemeProps = ThemeBase;
|
|
5
|
-
export type ThemeBaseColors = ThemeBase['colors'];
|
|
6
|
-
export type ExtendedThemeParams = Omit<ThemeBase, 'colors'> & {
|
|
7
|
-
colors: {
|
|
8
|
-
dark: ThemeBaseColors;
|
|
9
|
-
light: ThemeBaseColors;
|
|
10
|
-
} | ThemeBaseColors;
|
|
11
|
-
};
|
|
12
|
-
export type ThemeProps = ExtendThemeProps & {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
export type CustomThemeProps = {
|
|
16
|
-
[Key in keyof ExtendThemeProps]?: Partial<ExtendThemeProps[Key] | {
|
|
17
|
-
[Key2 in keyof ExtendThemeProps[Key]]: Partial<ExtendThemeProps[Key][Key2]> | string;
|
|
18
|
-
}>;
|
|
19
|
-
};
|
|
20
|
-
export type ExtendedMethodCustomColors = ThemeBase['colors'] & {
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
export type CustomTheme = ThemeBase & {
|
|
24
|
-
colors: {
|
|
25
|
-
light?: DeepUnionObject<ExtendedMethodCustomColors>;
|
|
26
|
-
dark?: DeepUnionObject<ExtendedMethodCustomColors>;
|
|
27
|
-
[key: string]: unknown;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export type ExtendMethodProps = (customTheme: DeepUnionObject<CustomTheme>, oldTheme?: DeepUnionObject<DeepPartial<ThemeBase>>) => DeepUnionObject<ThemeBase>;
|
|
31
|
-
export type ColorKeys = keyof ThemeBase['colors'];
|
|
32
|
-
export type ColorValues<T extends ColorKeys> = keyof ThemeBase['colors'][T];
|
|
33
|
-
export type ThemeColorsByColorKey<T extends ColorKeys> = T extends ColorKeys ? `${T}.${Extract<ColorValues<T>, string>}` : never;
|
|
34
|
-
export type GlobalColorsProps = ThemeColorsByColorKey<ColorKeys>;
|
|
1
|
+
import { defaultTheme } from '.';
|
|
2
|
+
import { DeepPartial, DeepUnionObject } from '../types/generics';
|
|
3
|
+
export type ThemeBase = typeof defaultTheme;
|
|
4
|
+
export type ExtendThemeProps = ThemeBase;
|
|
5
|
+
export type ThemeBaseColors = ThemeBase['colors'];
|
|
6
|
+
export type ExtendedThemeParams = Omit<ThemeBase, 'colors'> & {
|
|
7
|
+
colors: {
|
|
8
|
+
dark: ThemeBaseColors;
|
|
9
|
+
light: ThemeBaseColors;
|
|
10
|
+
} | ThemeBaseColors;
|
|
11
|
+
};
|
|
12
|
+
export type ThemeProps = ExtendThemeProps & {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
export type CustomThemeProps = {
|
|
16
|
+
[Key in keyof ExtendThemeProps]?: Partial<ExtendThemeProps[Key] | {
|
|
17
|
+
[Key2 in keyof ExtendThemeProps[Key]]: Partial<ExtendThemeProps[Key][Key2]> | string;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
export type ExtendedMethodCustomColors = ThemeBase['colors'] & {
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
export type CustomTheme = ThemeBase & {
|
|
24
|
+
colors: {
|
|
25
|
+
light?: DeepUnionObject<ExtendedMethodCustomColors>;
|
|
26
|
+
dark?: DeepUnionObject<ExtendedMethodCustomColors>;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type ExtendMethodProps = (customTheme: DeepUnionObject<CustomTheme>, oldTheme?: DeepUnionObject<DeepPartial<ThemeBase>>) => DeepUnionObject<ThemeBase>;
|
|
31
|
+
export type ColorKeys = keyof ThemeBase['colors'];
|
|
32
|
+
export type ColorValues<T extends ColorKeys> = keyof ThemeBase['colors'][T];
|
|
33
|
+
export type ThemeColorsByColorKey<T extends ColorKeys> = T extends ColorKeys ? `${T}.${Extract<ColorValues<T>, string>}` : never;
|
|
34
|
+
export type GlobalColorsProps = ThemeColorsByColorKey<ColorKeys>;
|
|
35
35
|
//# sourceMappingURL=theme.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ExtendMethodProps } from '..';
|
|
2
|
-
export declare const extendTheme: ExtendMethodProps;
|
|
1
|
+
import { ExtendMethodProps } from '..';
|
|
2
|
+
export declare const extendTheme: ExtendMethodProps;
|
|
3
3
|
//# sourceMappingURL=extendTheme.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const localStorageController: {
|
|
2
|
-
get(key: string): "light" | "dark";
|
|
3
|
-
set(key: string, value: string): void;
|
|
4
|
-
remove(key: string): void;
|
|
5
|
-
clear(): void;
|
|
6
|
-
};
|
|
1
|
+
export declare const localStorageController: {
|
|
2
|
+
get(key: string): "light" | "dark";
|
|
3
|
+
set(key: string, value: string): void;
|
|
4
|
+
remove(key: string): void;
|
|
5
|
+
clear(): void;
|
|
6
|
+
};
|
|
7
7
|
//# sourceMappingURL=localStorageController.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=extendTheme.test.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type CreditCardOptions = {
|
|
2
|
-
monthErrorMessage: string;
|
|
3
|
-
yearErrorMessage: string;
|
|
4
|
-
dateErrorMessage: string;
|
|
5
|
-
};
|
|
1
|
+
export type CreditCardOptions = {
|
|
2
|
+
monthErrorMessage: string;
|
|
3
|
+
yearErrorMessage: string;
|
|
4
|
+
dateErrorMessage: string;
|
|
5
|
+
};
|
|
6
6
|
//# sourceMappingURL=credit-card.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export type FormattedFile = {
|
|
2
|
-
url: string;
|
|
3
|
-
name: string;
|
|
4
|
-
type: string;
|
|
5
|
-
size: number;
|
|
6
|
-
file: Blob;
|
|
7
|
-
};
|
|
8
|
-
export type UrlProps = {
|
|
9
|
-
url: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
};
|
|
1
|
+
export type FormattedFile = {
|
|
2
|
+
url: string;
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
size: number;
|
|
6
|
+
file: Blob;
|
|
7
|
+
};
|
|
8
|
+
export type UrlProps = {
|
|
9
|
+
url: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
};
|
|
12
12
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type DeepUnionObject<T> = {
|
|
2
|
-
[K in keyof T]?: T[K] extends object ? DeepUnionObject<T[K]> : T[K];
|
|
3
|
-
} & {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export type DeepPartial<T> = T extends object ? {
|
|
7
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
8
|
-
} : T;
|
|
1
|
+
export type DeepUnionObject<T> = {
|
|
2
|
+
[K in keyof T]?: T[K] extends object ? DeepUnionObject<T[K]> : T[K];
|
|
3
|
+
} & {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
export type DeepPartial<T> = T extends object ? {
|
|
7
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
8
|
+
} : T;
|
|
9
9
|
//# sourceMappingURL=generics.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { Reorder } from 'framer-motion';
|
|
3
|
-
export type ReorderItemProps = ComponentProps<typeof Reorder.Item>;
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Reorder } from 'framer-motion';
|
|
3
|
+
export type ReorderItemProps = ComponentProps<typeof Reorder.Item>;
|
|
4
4
|
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type NameOptions = {
|
|
2
|
-
errorMessage: string;
|
|
3
|
-
};
|
|
1
|
+
export type NameOptions = {
|
|
2
|
+
errorMessage: string;
|
|
3
|
+
};
|
|
4
4
|
//# sourceMappingURL=name.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface FormatPhoneProps {
|
|
2
|
-
formattedNumber: string;
|
|
3
|
-
ddi?: string;
|
|
4
|
-
formattedNumberWithDDI: string;
|
|
5
|
-
unformattedNumber: string;
|
|
6
|
-
unformattedNumberWithDDI: string;
|
|
7
|
-
}
|
|
1
|
+
export interface FormatPhoneProps {
|
|
2
|
+
formattedNumber: string;
|
|
3
|
+
ddi?: string;
|
|
4
|
+
formattedNumberWithDDI: string;
|
|
5
|
+
unformattedNumber: string;
|
|
6
|
+
unformattedNumberWithDDI: string;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=phone.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generates a random hexadecimal string with length 4.
|
|
3
|
-
* @returns hexadecimal string.
|
|
4
|
-
*/
|
|
5
|
-
export declare function s4(): string;
|
|
6
|
-
/**
|
|
7
|
-
* Generates a unique key using Date and pseudo random numbers.
|
|
8
|
-
* @returns A unique key.
|
|
9
|
-
*/
|
|
10
|
-
export declare function generateKey(): string;
|
|
1
|
+
/**
|
|
2
|
+
* Generates a random hexadecimal string with length 4.
|
|
3
|
+
* @returns hexadecimal string.
|
|
4
|
+
*/
|
|
5
|
+
export declare function s4(): string;
|
|
6
|
+
/**
|
|
7
|
+
* Generates a unique key using Date and pseudo random numbers.
|
|
8
|
+
* @returns A unique key.
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateKey(): string;
|
|
11
11
|
//# sourceMappingURL=GenerateKey.d.ts.map
|
package/dist/utils/arrays.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function findLastIndex<T>(array: T[], predicate: (value: T, index: number, obj: T[]) => boolean): number;
|
|
1
|
+
export declare function findLastIndex<T>(array: T[], predicate: (value: T, index: number, obj: T[]) => boolean): number;
|
|
2
2
|
//# sourceMappingURL=arrays.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Change the brightness of a color
|
|
3
|
-
* @param color : color to change;
|
|
4
|
-
* @param percent : percent of brightness;
|
|
5
|
-
* @returns : new color with changed brightness;
|
|
6
|
-
* @see https://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
|
|
7
|
-
*/
|
|
8
|
-
export declare function brightnessColorChange(color: string, percent: number): string;
|
|
1
|
+
/**
|
|
2
|
+
* Change the brightness of a color
|
|
3
|
+
* @param color : color to change;
|
|
4
|
+
* @param percent : percent of brightness;
|
|
5
|
+
* @returns : new color with changed brightness;
|
|
6
|
+
* @see https://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
|
|
7
|
+
*/
|
|
8
|
+
export declare function brightnessColorChange(color: string, percent: number): string;
|
|
9
9
|
//# sourceMappingURL=brightnessColorChange.d.ts.map
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
type StripThemeColorsProps = {
|
|
2
|
-
[key: string]: {
|
|
3
|
-
[key: string]: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Verifies if the provided color is a valid hex color.
|
|
8
|
-
* @param color : color value;
|
|
9
|
-
* @returns : true if color is valid, false otherwise;
|
|
10
|
-
* @see https://stackoverflow.com/questions/8027423/how-to-check-if-a-string-is-a-valid-hex-color-representation/8027444#8027444
|
|
11
|
-
*/
|
|
12
|
-
export declare const isHexColor: (color: string) => boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Verifies if the provided color is a valid rgb or hsl color.
|
|
15
|
-
* @param color : color value;
|
|
16
|
-
* @returns : true if color is valid, false otherwise;
|
|
17
|
-
* @see https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
|
|
18
|
-
*/
|
|
19
|
-
export declare const isRgbHslColor: (color: string) => boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Verifies if the provided color is a valid theme color and returns the theme color value.
|
|
22
|
-
* @param color : theme color tag value;
|
|
23
|
-
* @param themeColors : theme colors object;
|
|
24
|
-
* @returns : theme color value if color is valid, null otherwise;
|
|
25
|
-
*/
|
|
26
|
-
export declare const stripThemeColors: (color: string, themeColors: StripThemeColorsProps) => string | null;
|
|
27
|
-
/**
|
|
28
|
-
* Convert a hex color to rgba color.
|
|
29
|
-
* @param color : hex color value;
|
|
30
|
-
* @param opacity : opacity value;
|
|
31
|
-
* @returns : rgba color value;
|
|
32
|
-
*/
|
|
33
|
-
export declare const parseHexColorToRgba: (color: string, opacity: number) => string;
|
|
34
|
-
/**
|
|
35
|
-
* Convert a hsl array color to string
|
|
36
|
-
* @param color : hsl color array;
|
|
37
|
-
* @returns : hsl color value;
|
|
38
|
-
*/
|
|
39
|
-
export declare const parseHslColorToString: (color: number[]) => string;
|
|
40
|
-
export {};
|
|
1
|
+
type StripThemeColorsProps = {
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Verifies if the provided color is a valid hex color.
|
|
8
|
+
* @param color : color value;
|
|
9
|
+
* @returns : true if color is valid, false otherwise;
|
|
10
|
+
* @see https://stackoverflow.com/questions/8027423/how-to-check-if-a-string-is-a-valid-hex-color-representation/8027444#8027444
|
|
11
|
+
*/
|
|
12
|
+
export declare const isHexColor: (color: string) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Verifies if the provided color is a valid rgb or hsl color.
|
|
15
|
+
* @param color : color value;
|
|
16
|
+
* @returns : true if color is valid, false otherwise;
|
|
17
|
+
* @see https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
|
|
18
|
+
*/
|
|
19
|
+
export declare const isRgbHslColor: (color: string) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Verifies if the provided color is a valid theme color and returns the theme color value.
|
|
22
|
+
* @param color : theme color tag value;
|
|
23
|
+
* @param themeColors : theme colors object;
|
|
24
|
+
* @returns : theme color value if color is valid, null otherwise;
|
|
25
|
+
*/
|
|
26
|
+
export declare const stripThemeColors: (color: string, themeColors: StripThemeColorsProps) => string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Convert a hex color to rgba color.
|
|
29
|
+
* @param color : hex color value;
|
|
30
|
+
* @param opacity : opacity value;
|
|
31
|
+
* @returns : rgba color value;
|
|
32
|
+
*/
|
|
33
|
+
export declare const parseHexColorToRgba: (color: string, opacity: number) => string;
|
|
34
|
+
/**
|
|
35
|
+
* Convert a hsl array color to string
|
|
36
|
+
* @param color : hsl color array;
|
|
37
|
+
* @returns : hsl color value;
|
|
38
|
+
*/
|
|
39
|
+
export declare const parseHslColorToString: (color: number[]) => string;
|
|
40
|
+
export {};
|
|
41
41
|
//# sourceMappingURL=colorCheck.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function hoverFunction(col: string, amt?: number): string;
|
|
2
|
-
export declare function focusFunction(col: string, amt?: number): string;
|
|
1
|
+
export declare function hoverFunction(col: string, amt?: number): string;
|
|
2
|
+
export declare function focusFunction(col: string, amt?: number): string;
|
|
3
3
|
//# sourceMappingURL=colorFunctions.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ArrayColor, objectGray } from '../components/Progress/types';
|
|
2
|
-
export declare function numberToHex(c: number): string;
|
|
3
|
-
export declare function rgbToHex(color: ArrayColor): string;
|
|
4
|
-
export declare function convertColor(color: string | ArrayColor): objectGray;
|
|
5
|
-
export declare const parseHslColorToString: (color: number[]) => string;
|
|
1
|
+
import { ArrayColor, objectGray } from '../components/Progress/types';
|
|
2
|
+
export declare function numberToHex(c: number): string;
|
|
3
|
+
export declare function rgbToHex(color: ArrayColor): string;
|
|
4
|
+
export declare function convertColor(color: string | ArrayColor): objectGray;
|
|
5
|
+
export declare const parseHslColorToString: (color: number[]) => string;
|
|
6
6
|
//# sourceMappingURL=colorToGray.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated do not use `customColorMode`, use the useTheme instead, ex:
|
|
3
|
-
* @example const { colorByTheme } = useTheme()
|
|
4
|
-
*/
|
|
5
|
-
export declare function customColorMode<L, D>(light: L, dark: D): L | D;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated do not use `customColorMode`, use the useTheme instead, ex:
|
|
3
|
+
* @example const { colorByTheme } = useTheme()
|
|
4
|
+
*/
|
|
5
|
+
export declare function customColorMode<L, D>(light: L, dark: D): L | D;
|
|
6
6
|
//# sourceMappingURL=customColorMode.d.ts.map
|
package/dist/utils/file.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { FormattedFile } from '../shared/types/file';
|
|
2
|
-
/**
|
|
3
|
-
* Converts an array of File objects to an array of base64-encoded files with additional information.
|
|
4
|
-
* @param {File[]} files Array of File objects.
|
|
5
|
-
* @returns {Promise<FormattedFile[]>} Promise that resolves with an array of FormattedFile objects.
|
|
6
|
-
*/
|
|
7
|
-
export declare function filesToBase64(files: File[]): Promise<FormattedFile[]>;
|
|
8
|
-
/**
|
|
9
|
-
* Converts a single File object to a base64-encoded file with additional information.
|
|
10
|
-
* @param {File} file File object to be converted.
|
|
11
|
-
* @returns {Promise<FormattedFile>} Promise that resolves with a FormattedFile object.
|
|
12
|
-
*/
|
|
13
|
-
export declare function convertFileToBase64(file: File): Promise<FormattedFile>;
|
|
14
|
-
/**
|
|
15
|
-
* Downloads a file from a given URL and converts it to a base64-encoded file with additional information.
|
|
16
|
-
* @param {string} url URL of the file to be downloaded.
|
|
17
|
-
* @param {string} name Optional name of the downloaded file.
|
|
18
|
-
* @returns {Promise<FormattedFile | null>} Promise that resolves with a FormattedFile object or null if the URL is not valid.
|
|
19
|
-
*/
|
|
20
|
-
export declare function urlToBase64(url: string, name?: string): Promise<FormattedFile | null>;
|
|
21
|
-
/**
|
|
22
|
-
* Downloads a file from a given URL and opens the download prompt.
|
|
23
|
-
* @param {string} url URL of the file to be downloaded.
|
|
24
|
-
* @returns {Promise<boolean>} Promise that resolves with a boolean indicating whether the download was successful.
|
|
25
|
-
*/
|
|
26
|
-
export declare function downloadUrlToFile(url: string): Promise<boolean>;
|
|
27
|
-
export declare function fetchFileBlob(url: string): Promise<Blob | null>;
|
|
1
|
+
import { FormattedFile } from '../shared/types/file';
|
|
2
|
+
/**
|
|
3
|
+
* Converts an array of File objects to an array of base64-encoded files with additional information.
|
|
4
|
+
* @param {File[]} files Array of File objects.
|
|
5
|
+
* @returns {Promise<FormattedFile[]>} Promise that resolves with an array of FormattedFile objects.
|
|
6
|
+
*/
|
|
7
|
+
export declare function filesToBase64(files: File[]): Promise<FormattedFile[]>;
|
|
8
|
+
/**
|
|
9
|
+
* Converts a single File object to a base64-encoded file with additional information.
|
|
10
|
+
* @param {File} file File object to be converted.
|
|
11
|
+
* @returns {Promise<FormattedFile>} Promise that resolves with a FormattedFile object.
|
|
12
|
+
*/
|
|
13
|
+
export declare function convertFileToBase64(file: File): Promise<FormattedFile>;
|
|
14
|
+
/**
|
|
15
|
+
* Downloads a file from a given URL and converts it to a base64-encoded file with additional information.
|
|
16
|
+
* @param {string} url URL of the file to be downloaded.
|
|
17
|
+
* @param {string} name Optional name of the downloaded file.
|
|
18
|
+
* @returns {Promise<FormattedFile | null>} Promise that resolves with a FormattedFile object or null if the URL is not valid.
|
|
19
|
+
*/
|
|
20
|
+
export declare function urlToBase64(url: string, name?: string): Promise<FormattedFile | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Downloads a file from a given URL and opens the download prompt.
|
|
23
|
+
* @param {string} url URL of the file to be downloaded.
|
|
24
|
+
* @returns {Promise<boolean>} Promise that resolves with a boolean indicating whether the download was successful.
|
|
25
|
+
*/
|
|
26
|
+
export declare function downloadUrlToFile(url: string): Promise<boolean>;
|
|
27
|
+
export declare function fetchFileBlob(url: string): Promise<Blob | null>;
|
|
28
28
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DeepPartial } from '../shared/types/generics';
|
|
2
|
-
export declare function findDifferentKeys<T>(obj1: DeepPartial<T>, obj2: DeepPartial<T>): string[];
|
|
1
|
+
import { DeepPartial } from '../shared/types/generics';
|
|
2
|
+
export declare function findDifferentKeys<T>(obj1: DeepPartial<T>, obj2: DeepPartial<T>): string[];
|
|
3
3
|
//# sourceMappingURL=findDifferentKeys.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function takes in a number of bytes and an optional number of decimal places and converts the number of bytes into a more readable format.
|
|
3
|
-
* @param {number} bytes - The number of bytes to be formatted.
|
|
4
|
-
* @param {number} decimals - Optional number of decimal places to round the result to. Default value is 2.
|
|
5
|
-
* @returns {string} - A string representing the formatted bytes with the appropriate unit (e.g. "10.24 KB").
|
|
6
|
-
*/
|
|
7
|
-
export declare function formatBytes(bytes: number, decimals?: number): string;
|
|
1
|
+
/**
|
|
2
|
+
* This function takes in a number of bytes and an optional number of decimal places and converts the number of bytes into a more readable format.
|
|
3
|
+
* @param {number} bytes - The number of bytes to be formatted.
|
|
4
|
+
* @param {number} decimals - Optional number of decimal places to round the result to. Default value is 2.
|
|
5
|
+
* @returns {string} - A string representing the formatted bytes with the appropriate unit (e.g. "10.24 KB").
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatBytes(bytes: number, decimals?: number): string;
|
|
8
8
|
//# sourceMappingURL=bytes.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function takes in a string and returns a new string with the first letter capitalized.
|
|
3
|
-
* @param {string} string - The string to be capitalized.
|
|
4
|
-
* @returns {string} - A new string with the first letter capitalized.
|
|
5
|
-
*/
|
|
6
|
-
export declare function capitalize(string: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* This function takes in a string and returns a new string with the first letter capitalized.
|
|
3
|
+
* @param {string} string - The string to be capitalized.
|
|
4
|
+
* @returns {string} - A new string with the first letter capitalized.
|
|
5
|
+
*/
|
|
6
|
+
export declare function capitalize(string: string): string;
|
|
7
7
|
//# sourceMappingURL=capitalize.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function takes in a string representing a Brazilian postal code (CEP) and returns a formatted string in the standard CEP format (e.g. "12345-678").
|
|
3
|
-
* @param {string} cep - The string representing the Brazilian postal code (CEP).
|
|
4
|
-
* @returns {string} - A formatted string in the standard CEP format.
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatCep(cep: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* This function takes in a string representing a Brazilian postal code (CEP) and returns a sanitized string without any non-numeric characters, with a maximum length of 8 characters.
|
|
9
|
-
* @param {string} cep - The string representing the Brazilian postal code (CEP).
|
|
10
|
-
* @returns {string} - A sanitized string without any non-numeric characters, with a maximum length of 8 characters.
|
|
11
|
-
*/
|
|
12
|
-
export declare function sanitizeCep(cep: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* This function takes in a string representing a Brazilian postal code (CEP) and returns a formatted string in the standard CEP format (e.g. "12345-678").
|
|
3
|
+
* @param {string} cep - The string representing the Brazilian postal code (CEP).
|
|
4
|
+
* @returns {string} - A formatted string in the standard CEP format.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatCep(cep: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* This function takes in a string representing a Brazilian postal code (CEP) and returns a sanitized string without any non-numeric characters, with a maximum length of 8 characters.
|
|
9
|
+
* @param {string} cep - The string representing the Brazilian postal code (CEP).
|
|
10
|
+
* @returns {string} - A sanitized string without any non-numeric characters, with a maximum length of 8 characters.
|
|
11
|
+
*/
|
|
12
|
+
export declare function sanitizeCep(cep: string): string;
|
|
13
13
|
//# sourceMappingURL=cep.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function takes in a string representing a Brazilian CNPJ number and returns a formatted string in the standard CNPJ format (e.g. "12.345.678/0001-90").
|
|
3
|
-
* @param {string} text - The string representing the Brazilian CNPJ number.
|
|
4
|
-
* @returns {string} - A formatted string in the standard CNPJ format.
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatCnpj(text: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* This function takes in a string representing a Brazilian CNPJ number and returns a sanitized string without any non-numeric characters, with a maximum length of 14 characters.
|
|
9
|
-
* @param {string} cnpj - The string representing the Brazilian CNPJ number.
|
|
10
|
-
* @returns {string} - A sanitized string without any non-numeric characters, with a maximum length of 14 characters.
|
|
11
|
-
*/
|
|
12
|
-
export declare function sanitizeCNPJ(cnpj: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* This function takes in a string representing a Brazilian CNPJ number and returns a boolean indicating whether the number is valid or not.
|
|
15
|
-
* @param {string} cnpj - The string representing the Brazilian CNPJ number.
|
|
16
|
-
* @returns {boolean} - A boolean indicating whether the CNPJ number is valid or not.
|
|
17
|
-
*/
|
|
18
|
-
export declare function validateCNPJ(cnpj: string): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* This function takes in a string representing a Brazilian CNPJ number and returns a formatted string in the standard CNPJ format (e.g. "12.345.678/0001-90").
|
|
3
|
+
* @param {string} text - The string representing the Brazilian CNPJ number.
|
|
4
|
+
* @returns {string} - A formatted string in the standard CNPJ format.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatCnpj(text: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* This function takes in a string representing a Brazilian CNPJ number and returns a sanitized string without any non-numeric characters, with a maximum length of 14 characters.
|
|
9
|
+
* @param {string} cnpj - The string representing the Brazilian CNPJ number.
|
|
10
|
+
* @returns {string} - A sanitized string without any non-numeric characters, with a maximum length of 14 characters.
|
|
11
|
+
*/
|
|
12
|
+
export declare function sanitizeCNPJ(cnpj: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* This function takes in a string representing a Brazilian CNPJ number and returns a boolean indicating whether the number is valid or not.
|
|
15
|
+
* @param {string} cnpj - The string representing the Brazilian CNPJ number.
|
|
16
|
+
* @returns {boolean} - A boolean indicating whether the CNPJ number is valid or not.
|
|
17
|
+
*/
|
|
18
|
+
export declare function validateCNPJ(cnpj: string): boolean;
|
|
19
19
|
//# sourceMappingURL=cnpj.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts a hexadecimal color code to HSL (Hue, Saturation, Luminance) format.
|
|
3
|
-
* @param {string} hex - The hexadecimal color code to convert.
|
|
4
|
-
* @returns {object} An object with the HSL values: hue, saturation, and luminance.
|
|
5
|
-
*/
|
|
6
|
-
export declare function hexToHsl(hex: string): object;
|
|
7
|
-
/**
|
|
8
|
-
* Converts HSL color values to a hex string representation.
|
|
9
|
-
*
|
|
10
|
-
* @param {number} h - The hue value (in degrees, from 0 to 360).
|
|
11
|
-
* @param {number} s - The saturation value (from 0 to 100).
|
|
12
|
-
* @param {number} l - The lightness value (from 0 to 100).
|
|
13
|
-
* @returns {string} The hex string representation of the HSL color.
|
|
14
|
-
*/
|
|
15
|
-
export declare function hslToHex(h: number, s: number, l: number): string;
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hexadecimal color code to HSL (Hue, Saturation, Luminance) format.
|
|
3
|
+
* @param {string} hex - The hexadecimal color code to convert.
|
|
4
|
+
* @returns {object} An object with the HSL values: hue, saturation, and luminance.
|
|
5
|
+
*/
|
|
6
|
+
export declare function hexToHsl(hex: string): object;
|
|
7
|
+
/**
|
|
8
|
+
* Converts HSL color values to a hex string representation.
|
|
9
|
+
*
|
|
10
|
+
* @param {number} h - The hue value (in degrees, from 0 to 360).
|
|
11
|
+
* @param {number} s - The saturation value (from 0 to 100).
|
|
12
|
+
* @param {number} l - The lightness value (from 0 to 100).
|
|
13
|
+
* @returns {string} The hex string representation of the HSL color.
|
|
14
|
+
*/
|
|
15
|
+
export declare function hslToHex(h: number, s: number, l: number): string;
|
|
16
16
|
//# sourceMappingURL=color.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats a CPF string to a standard format.
|
|
3
|
-
* @param {string} cpf - The CPF string to format.
|
|
4
|
-
* @returns {string} The formatted CPF string.
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatCPF(cpf: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Sanitizes a CPF string by removing all non-numeric characters and taking only the first 11 digits.
|
|
9
|
-
* @param {string} cpf - The CPF string to sanitize.
|
|
10
|
-
* @returns {string} The sanitized CPF string.
|
|
11
|
-
*/
|
|
12
|
-
export declare function sanitizeCPF(cpf: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Validates a CPF string using the Brazilian CPF algorithm.
|
|
15
|
-
* @param {string} cpf - The CPF string to validate.
|
|
16
|
-
* @returns {boolean} True if the CPF is valid, false otherwise.
|
|
17
|
-
*/
|
|
18
|
-
export declare function validateCPF(cpf: string): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Formats a CPF string to a standard format.
|
|
3
|
+
* @param {string} cpf - The CPF string to format.
|
|
4
|
+
* @returns {string} The formatted CPF string.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatCPF(cpf: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Sanitizes a CPF string by removing all non-numeric characters and taking only the first 11 digits.
|
|
9
|
+
* @param {string} cpf - The CPF string to sanitize.
|
|
10
|
+
* @returns {string} The sanitized CPF string.
|
|
11
|
+
*/
|
|
12
|
+
export declare function sanitizeCPF(cpf: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates a CPF string using the Brazilian CPF algorithm.
|
|
15
|
+
* @param {string} cpf - The CPF string to validate.
|
|
16
|
+
* @returns {boolean} True if the CPF is valid, false otherwise.
|
|
17
|
+
*/
|
|
18
|
+
export declare function validateCPF(cpf: string): boolean;
|
|
19
19
|
//# sourceMappingURL=cpf.d.ts.map
|