@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,27 +1,27 @@
|
|
|
1
|
-
import { CreditCardOptions } from '../../shared/types/credit-card';
|
|
2
|
-
/**
|
|
3
|
-
* Format a credit card number by adding spaces after every four digits, up to a maximum of 19 characters.
|
|
4
|
-
* @param {string} creditCardNumber - The credit card number to format
|
|
5
|
-
* @returns {string} The formatted credit card number
|
|
6
|
-
*/
|
|
7
|
-
export declare function formatCreditCardNumber(creditCardNumber: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* Sanitize a credit card number by removing all non-numeric characters and leading zeros.
|
|
10
|
-
* @param {string} creditCardNumber - The credit card number to sanitize
|
|
11
|
-
* @returns {string} The sanitized credit card number
|
|
12
|
-
*/
|
|
13
|
-
export declare function sanitizeCreditCardNumber(creditCardNumber: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Format a credit card expiration date by adding a slash between the month and year components.
|
|
16
|
-
* @param {string} value - The expiration date to format
|
|
17
|
-
* @returns {string} The formatted expiration date
|
|
18
|
-
*/
|
|
19
|
-
export declare function formatCreditCardExpirationDate(value: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Validate a credit card expiration date by checking if it is a valid date in the future.
|
|
22
|
-
* @param {string} value - The expiration date to validate
|
|
23
|
-
* @param {CreditCardOptions} options - An object containing the following properties: monthErrorMessage, yearErrorMessage, dateErrorMessage
|
|
24
|
-
* @returns {boolean | string} true if the expiration date is valid, or an error message otherwise
|
|
25
|
-
*/
|
|
26
|
-
export declare function validateCreditCardExpirationDate(value: string, { monthErrorMessage, yearErrorMessage, dateErrorMessage, }: CreditCardOptions): boolean | string;
|
|
1
|
+
import { CreditCardOptions } from '../../shared/types/credit-card';
|
|
2
|
+
/**
|
|
3
|
+
* Format a credit card number by adding spaces after every four digits, up to a maximum of 19 characters.
|
|
4
|
+
* @param {string} creditCardNumber - The credit card number to format
|
|
5
|
+
* @returns {string} The formatted credit card number
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatCreditCardNumber(creditCardNumber: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Sanitize a credit card number by removing all non-numeric characters and leading zeros.
|
|
10
|
+
* @param {string} creditCardNumber - The credit card number to sanitize
|
|
11
|
+
* @returns {string} The sanitized credit card number
|
|
12
|
+
*/
|
|
13
|
+
export declare function sanitizeCreditCardNumber(creditCardNumber: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Format a credit card expiration date by adding a slash between the month and year components.
|
|
16
|
+
* @param {string} value - The expiration date to format
|
|
17
|
+
* @returns {string} The formatted expiration date
|
|
18
|
+
*/
|
|
19
|
+
export declare function formatCreditCardExpirationDate(value: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Validate a credit card expiration date by checking if it is a valid date in the future.
|
|
22
|
+
* @param {string} value - The expiration date to validate
|
|
23
|
+
* @param {CreditCardOptions} options - An object containing the following properties: monthErrorMessage, yearErrorMessage, dateErrorMessage
|
|
24
|
+
* @returns {boolean | string} true if the expiration date is valid, or an error message otherwise
|
|
25
|
+
*/
|
|
26
|
+
export declare function validateCreditCardExpirationDate(value: string, { monthErrorMessage, yearErrorMessage, dateErrorMessage, }: CreditCardOptions): boolean | string;
|
|
27
27
|
//# sourceMappingURL=credit-card.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Format the document value to brazilian format.
|
|
3
|
-
* If the document has less than 12 characters, it will be formatted as CPF, otherwise it will be formatted as CNPJ.
|
|
4
|
-
* @param value - The document string to format.
|
|
5
|
-
* @returns The formatted document string.
|
|
6
|
-
*/
|
|
7
|
-
export declare function formatDocument(value: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* Format the document value to brazilian format.
|
|
3
|
+
* If the document has less than 12 characters, it will be formatted as CPF, otherwise it will be formatted as CNPJ.
|
|
4
|
+
* @param value - The document string to format.
|
|
5
|
+
* @returns The formatted document string.
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatDocument(value: string): string;
|
|
8
8
|
//# sourceMappingURL=document.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const emailPattern: RegExp;
|
|
1
|
+
export declare const emailPattern: RegExp;
|
|
2
2
|
//# sourceMappingURL=email.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function getNumbersFromString(value: string): [] | RegExpMatchArray;
|
|
1
|
+
export declare function getNumbersFromString(value: string): [] | RegExpMatchArray;
|
|
2
2
|
//# sourceMappingURL=getNumbersFromString.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from './bytes';
|
|
2
|
-
export * from './capitalize';
|
|
3
|
-
export * from './cep';
|
|
4
|
-
export * from './cnpj';
|
|
5
|
-
export * from './color';
|
|
6
|
-
export * from './cpf';
|
|
7
|
-
export * from './credit-card';
|
|
8
|
-
export * from './email';
|
|
9
|
-
export * from './name';
|
|
10
|
-
export * from './number';
|
|
11
|
-
export * from './passport';
|
|
12
|
-
export * from './phone';
|
|
13
|
-
export * from './price';
|
|
14
|
-
export * from './rg';
|
|
15
|
-
export * from './strings';
|
|
1
|
+
export * from './bytes';
|
|
2
|
+
export * from './capitalize';
|
|
3
|
+
export * from './cep';
|
|
4
|
+
export * from './cnpj';
|
|
5
|
+
export * from './color';
|
|
6
|
+
export * from './cpf';
|
|
7
|
+
export * from './credit-card';
|
|
8
|
+
export * from './email';
|
|
9
|
+
export * from './name';
|
|
10
|
+
export * from './number';
|
|
11
|
+
export * from './passport';
|
|
12
|
+
export * from './phone';
|
|
13
|
+
export * from './price';
|
|
14
|
+
export * from './rg';
|
|
15
|
+
export * from './strings';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { NameOptions } from '../../shared/types/name';
|
|
2
|
-
/**
|
|
3
|
-
* Remove spaces at the start and end of the string
|
|
4
|
-
* @param {string} name - The name to remove spaces from
|
|
5
|
-
* @returns {string} The name without spaces at the start and end
|
|
6
|
-
*/
|
|
7
|
-
export declare function removeSpaces(name: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* Remove excessive spaces from the name
|
|
10
|
-
* @param {string} name - The name to format
|
|
11
|
-
* @returns {string} The formatted name
|
|
12
|
-
*/
|
|
13
|
-
export declare function formatName(name: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Validate the name and check if it only contains letters, spaces, or apostrophes
|
|
16
|
-
* @param {string} name - The name to validate
|
|
17
|
-
* @param {NameOptions} options - An object containing the following properties: characterErrorMessage (default: 'The character(s) "{0}" is(are) not allowed.')
|
|
18
|
-
* @returns {boolean|string} true if the name is valid, otherwise an error message
|
|
19
|
-
*/
|
|
20
|
-
export declare function nameIsValid(name: string, { errorMessage }: NameOptions): boolean | string;
|
|
1
|
+
import { NameOptions } from '../../shared/types/name';
|
|
2
|
+
/**
|
|
3
|
+
* Remove spaces at the start and end of the string
|
|
4
|
+
* @param {string} name - The name to remove spaces from
|
|
5
|
+
* @returns {string} The name without spaces at the start and end
|
|
6
|
+
*/
|
|
7
|
+
export declare function removeSpaces(name: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Remove excessive spaces from the name
|
|
10
|
+
* @param {string} name - The name to format
|
|
11
|
+
* @returns {string} The formatted name
|
|
12
|
+
*/
|
|
13
|
+
export declare function formatName(name: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Validate the name and check if it only contains letters, spaces, or apostrophes
|
|
16
|
+
* @param {string} name - The name to validate
|
|
17
|
+
* @param {NameOptions} options - An object containing the following properties: characterErrorMessage (default: 'The character(s) "{0}" is(are) not allowed.')
|
|
18
|
+
* @returns {boolean|string} true if the name is valid, otherwise an error message
|
|
19
|
+
*/
|
|
20
|
+
export declare function nameIsValid(name: string, { errorMessage }: NameOptions): boolean | string;
|
|
21
21
|
//# sourceMappingURL=name.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @returns {number} Returns the half of `number` param.
|
|
3
|
-
*/
|
|
4
|
-
export declare function halfDivisor(number: number): number;
|
|
1
|
+
/**
|
|
2
|
+
* @returns {number} Returns the half of `number` param.
|
|
3
|
+
*/
|
|
4
|
+
export declare function halfDivisor(number: number): number;
|
|
5
5
|
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats passport document string to upper case.
|
|
3
|
-
* @param {string} passport - Passport document string.
|
|
4
|
-
* @returns {string} - Formatted passport document string.
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatPassportDocument(passport: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Formats passport document string by removing non-alphanumeric characters and limits length to 20.
|
|
9
|
-
* @param {string} passport - Passport document string.
|
|
10
|
-
* @returns {string} - Formatted passport string.
|
|
11
|
-
*/
|
|
12
|
-
export declare function formatPassport(passport: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Sanitizes passport document string by removing non-alphanumeric characters and limits length to 20.
|
|
15
|
-
* @param {string} passport - Passport document string.
|
|
16
|
-
* @returns {string} - Sanitized passport document string.
|
|
17
|
-
*/
|
|
18
|
-
export declare function sanitizePassport(passport: string): string;
|
|
19
|
-
/**
|
|
20
|
-
* Validates passport document string by checking if it starts with 2 letters followed by any number of digits.
|
|
21
|
-
* @param {string} passport - Passport document string.
|
|
22
|
-
* @returns {boolean} - Returns true if passport document is valid, otherwise returns false.
|
|
23
|
-
*/
|
|
24
|
-
export declare function validatePassport(passport: string): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Formats passport document string to upper case.
|
|
3
|
+
* @param {string} passport - Passport document string.
|
|
4
|
+
* @returns {string} - Formatted passport document string.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatPassportDocument(passport: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Formats passport document string by removing non-alphanumeric characters and limits length to 20.
|
|
9
|
+
* @param {string} passport - Passport document string.
|
|
10
|
+
* @returns {string} - Formatted passport string.
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatPassport(passport: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Sanitizes passport document string by removing non-alphanumeric characters and limits length to 20.
|
|
15
|
+
* @param {string} passport - Passport document string.
|
|
16
|
+
* @returns {string} - Sanitized passport document string.
|
|
17
|
+
*/
|
|
18
|
+
export declare function sanitizePassport(passport: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Validates passport document string by checking if it starts with 2 letters followed by any number of digits.
|
|
21
|
+
* @param {string} passport - Passport document string.
|
|
22
|
+
* @returns {boolean} - Returns true if passport document is valid, otherwise returns false.
|
|
23
|
+
*/
|
|
24
|
+
export declare function validatePassport(passport: string): boolean;
|
|
25
25
|
//# sourceMappingURL=passport.d.ts.map
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { FormatPhoneProps } from '../../shared/types/phone';
|
|
2
|
-
/**
|
|
3
|
-
* Formats phone numbers with a default ddi of +55 and adds a country prefix if needed.
|
|
4
|
-
* @param {string} phone - The phone number to be formatted.
|
|
5
|
-
* @param {string} [ddi='+55'] - The default ddi to use.
|
|
6
|
-
* @returns {string} The formatted phone number with prefix.
|
|
7
|
-
*/
|
|
8
|
-
export declare function formatPhoneWithPrefix(phone?: string, ddi?: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* Sanitizes phone numbers by removing all non-digit characters and leading zeroes.
|
|
11
|
-
* @param {string} phone - The phone number to be sanitized.
|
|
12
|
-
* @returns {string} The sanitized phone number.
|
|
13
|
-
*/
|
|
14
|
-
export declare function sanitizePhone(phone: string): string;
|
|
15
|
-
/**
|
|
16
|
-
* Validates if a phone number is valid according to Brazilian phone number rules.
|
|
17
|
-
* @param {string} phone - The phone number to be validated.
|
|
18
|
-
* @returns {boolean} - Returns true if the phone number is valid or false otherwise.
|
|
19
|
-
*/
|
|
20
|
-
export declare function phoneValidator(phone: string): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Parses a Brazilian phone number to add the ninth digit if needed or removes it if specified.
|
|
23
|
-
* @param {string} phone - The phone number to be parsed.
|
|
24
|
-
* @param {boolean} [remove] - If true, removes the ninth digit from the phone number. Defaults to false.
|
|
25
|
-
* @returns {string} - Returns the parsed phone number.
|
|
26
|
-
*/
|
|
27
|
-
export declare function phoneNineDigitParser(phone: string, remove?: boolean): string;
|
|
28
|
-
/**
|
|
29
|
-
* Verifies if a Brazilian phone number has the ninth digit added.
|
|
30
|
-
* @param {string} phone - The phone number to be verified.
|
|
31
|
-
* @param {object} [options] - The options to customize the error message. Default values: { errorMessage: 'Please include the digit "9" at the beginning of the number' }.
|
|
32
|
-
* @returns {boolean|string} - Returns true if first digit is nine, or an error message if the phone number is invalid.
|
|
33
|
-
*/
|
|
34
|
-
export declare function verifyNineDigit(phone: string, { errorMessage, }: {
|
|
35
|
-
errorMessage?: string;
|
|
36
|
-
}): boolean | string;
|
|
37
|
-
/**
|
|
38
|
-
* Returns the DDI (international dialing code) of a phone number.
|
|
39
|
-
* @param {string} number - The phone number to get the DDI from.
|
|
40
|
-
* @returns {string|null} The DDI.
|
|
41
|
-
*/
|
|
42
|
-
export declare function getDDI(number?: string): string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Returns a formatted phone number based on provided options.
|
|
45
|
-
* @param {string} phone - The phone number to be formatted.
|
|
46
|
-
* @param {object} options - The options to customize the format. Default values: { ddi: undefined, withDDI: false, keepDDI: false }.
|
|
47
|
-
* @returns {string} The formatted phone number.
|
|
48
|
-
*/
|
|
49
|
-
export declare function formatedPhone(phone: string, options?: {
|
|
50
|
-
ddi?: string;
|
|
51
|
-
withDDI?: boolean;
|
|
52
|
-
keepDDI?: boolean;
|
|
53
|
-
}): string;
|
|
54
|
-
/**
|
|
55
|
-
* Returns an object containing various formatted representations of a phone number.
|
|
56
|
-
* @param {string} phoneNumberWithDDI - The phone number to be formatted with +DDI.
|
|
57
|
-
* @returns {FormatPhoneProps} - An object containing different formats of the phone number or null if the number cannot be parsed.
|
|
58
|
-
*/
|
|
59
|
-
export declare function formatPhone(phoneNumberWithDDI: string): FormatPhoneProps;
|
|
60
|
-
/**
|
|
61
|
-
* Formats a guest phone number by masking digits except the last four digits for each format.
|
|
62
|
-
* @param phoneNumberWithDDI - The phone number to be formatted with +DDI.
|
|
63
|
-
* @returns The formatted phone number object, or null if the formatting is not possible.
|
|
64
|
-
*/
|
|
65
|
-
export declare function formatGuestPhone(phoneNumberWithDDI: string): FormatPhoneProps;
|
|
66
|
-
/**
|
|
67
|
-
* Validates if a phone number is valid.
|
|
68
|
-
* @param {string | undefined} phoneNumber - The phone number to be validated.
|
|
69
|
-
* @returns {boolean} - A boolean indicating whether the phone number is valid or not.
|
|
70
|
-
*/
|
|
71
|
-
export declare function validatePhone(phoneNumber?: string): boolean;
|
|
1
|
+
import { FormatPhoneProps } from '../../shared/types/phone';
|
|
2
|
+
/**
|
|
3
|
+
* Formats phone numbers with a default ddi of +55 and adds a country prefix if needed.
|
|
4
|
+
* @param {string} phone - The phone number to be formatted.
|
|
5
|
+
* @param {string} [ddi='+55'] - The default ddi to use.
|
|
6
|
+
* @returns {string} The formatted phone number with prefix.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatPhoneWithPrefix(phone?: string, ddi?: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Sanitizes phone numbers by removing all non-digit characters and leading zeroes.
|
|
11
|
+
* @param {string} phone - The phone number to be sanitized.
|
|
12
|
+
* @returns {string} The sanitized phone number.
|
|
13
|
+
*/
|
|
14
|
+
export declare function sanitizePhone(phone: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Validates if a phone number is valid according to Brazilian phone number rules.
|
|
17
|
+
* @param {string} phone - The phone number to be validated.
|
|
18
|
+
* @returns {boolean} - Returns true if the phone number is valid or false otherwise.
|
|
19
|
+
*/
|
|
20
|
+
export declare function phoneValidator(phone: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Parses a Brazilian phone number to add the ninth digit if needed or removes it if specified.
|
|
23
|
+
* @param {string} phone - The phone number to be parsed.
|
|
24
|
+
* @param {boolean} [remove] - If true, removes the ninth digit from the phone number. Defaults to false.
|
|
25
|
+
* @returns {string} - Returns the parsed phone number.
|
|
26
|
+
*/
|
|
27
|
+
export declare function phoneNineDigitParser(phone: string, remove?: boolean): string;
|
|
28
|
+
/**
|
|
29
|
+
* Verifies if a Brazilian phone number has the ninth digit added.
|
|
30
|
+
* @param {string} phone - The phone number to be verified.
|
|
31
|
+
* @param {object} [options] - The options to customize the error message. Default values: { errorMessage: 'Please include the digit "9" at the beginning of the number' }.
|
|
32
|
+
* @returns {boolean|string} - Returns true if first digit is nine, or an error message if the phone number is invalid.
|
|
33
|
+
*/
|
|
34
|
+
export declare function verifyNineDigit(phone: string, { errorMessage, }: {
|
|
35
|
+
errorMessage?: string;
|
|
36
|
+
}): boolean | string;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the DDI (international dialing code) of a phone number.
|
|
39
|
+
* @param {string} number - The phone number to get the DDI from.
|
|
40
|
+
* @returns {string|null} The DDI.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getDDI(number?: string): string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Returns a formatted phone number based on provided options.
|
|
45
|
+
* @param {string} phone - The phone number to be formatted.
|
|
46
|
+
* @param {object} options - The options to customize the format. Default values: { ddi: undefined, withDDI: false, keepDDI: false }.
|
|
47
|
+
* @returns {string} The formatted phone number.
|
|
48
|
+
*/
|
|
49
|
+
export declare function formatedPhone(phone: string, options?: {
|
|
50
|
+
ddi?: string;
|
|
51
|
+
withDDI?: boolean;
|
|
52
|
+
keepDDI?: boolean;
|
|
53
|
+
}): string;
|
|
54
|
+
/**
|
|
55
|
+
* Returns an object containing various formatted representations of a phone number.
|
|
56
|
+
* @param {string} phoneNumberWithDDI - The phone number to be formatted with +DDI.
|
|
57
|
+
* @returns {FormatPhoneProps} - An object containing different formats of the phone number or null if the number cannot be parsed.
|
|
58
|
+
*/
|
|
59
|
+
export declare function formatPhone(phoneNumberWithDDI: string): FormatPhoneProps;
|
|
60
|
+
/**
|
|
61
|
+
* Formats a guest phone number by masking digits except the last four digits for each format.
|
|
62
|
+
* @param phoneNumberWithDDI - The phone number to be formatted with +DDI.
|
|
63
|
+
* @returns The formatted phone number object, or null if the formatting is not possible.
|
|
64
|
+
*/
|
|
65
|
+
export declare function formatGuestPhone(phoneNumberWithDDI: string): FormatPhoneProps;
|
|
66
|
+
/**
|
|
67
|
+
* Validates if a phone number is valid.
|
|
68
|
+
* @param {string | undefined} phoneNumber - The phone number to be validated.
|
|
69
|
+
* @returns {boolean} - A boolean indicating whether the phone number is valid or not.
|
|
70
|
+
*/
|
|
71
|
+
export declare function validatePhone(phoneNumber?: string): boolean;
|
|
72
72
|
//# sourceMappingURL=phone.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats a number or string into Brazilian Real currency format.
|
|
3
|
-
* @param {number | string} value - The value to format.
|
|
4
|
-
* @returns {string} The formatted value in BRL currency format.
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatPrice(value: number | string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Converts a number of cents to a string representation of a price with the Brazilian Real currency symbol and format.
|
|
9
|
-
* @param {number} cents - The amount of cents to format.
|
|
10
|
-
*/
|
|
11
|
-
export declare function localeCents(cents: number): string;
|
|
1
|
+
/**
|
|
2
|
+
* Formats a number or string into Brazilian Real currency format.
|
|
3
|
+
* @param {number | string} value - The value to format.
|
|
4
|
+
* @returns {string} The formatted value in BRL currency format.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatPrice(value: number | string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Converts a number of cents to a string representation of a price with the Brazilian Real currency symbol and format.
|
|
9
|
+
* @param {number} cents - The amount of cents to format.
|
|
10
|
+
*/
|
|
11
|
+
export declare function localeCents(cents: number): string;
|
|
12
12
|
//# sourceMappingURL=price.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats the given RG string by removing any character that is not a number, comma, dot or space.
|
|
3
|
-
* @param {string} rg - The RG string to be formatted.
|
|
4
|
-
* @returns {string} - The formatted RG string.
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatRG(rg: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Sanitizes the given RG string by removing dots and dashes and converting all characters to uppercase.
|
|
9
|
-
* @param {string} rg - The RG string to be sanitized.
|
|
10
|
-
* @returns {string} - The sanitized RG string.
|
|
11
|
-
*/
|
|
12
|
-
export declare function sanitizeRG(rg: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* Formats the given RG string by removing any character that is not a number, comma, dot or space.
|
|
3
|
+
* @param {string} rg - The RG string to be formatted.
|
|
4
|
+
* @returns {string} - The formatted RG string.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatRG(rg: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Sanitizes the given RG string by removing dots and dashes and converting all characters to uppercase.
|
|
9
|
+
* @param {string} rg - The RG string to be sanitized.
|
|
10
|
+
* @returns {string} - The sanitized RG string.
|
|
11
|
+
*/
|
|
12
|
+
export declare function sanitizeRG(rg: string): string;
|
|
13
13
|
//# sourceMappingURL=rg.d.ts.map
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Truncates a string to a given character limit and adds ellipses at the end if necessary.
|
|
3
|
-
* @param {string} data - The string to truncate.
|
|
4
|
-
* @param {number} limit - The maximum number of characters the string can have.
|
|
5
|
-
* @returns {string} The truncated string.
|
|
6
|
-
*/
|
|
7
|
-
export declare function truncateString(data: string, limit: number): string;
|
|
8
|
-
/**
|
|
9
|
-
* Removes line breaks from a given string.
|
|
10
|
-
* @param {string} lineBreaks - The string to remove line breaks from.
|
|
11
|
-
* @returns {string} The string without line breaks.
|
|
12
|
-
*/
|
|
13
|
-
export declare function removeLineBreaks(lineBreaks: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Replaces multiple consecutive spaces in a string with a single space and trims the string.
|
|
16
|
-
* @param {string} string - The string to replace unnecessary spaces in.
|
|
17
|
-
* @returns {string} The string without unnecessary spaces.
|
|
18
|
-
*/
|
|
19
|
-
export declare function replaceUnecessarySpaces(string: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Sanitizes a string by removing all non-alphanumeric characters, line breaks and unnecessary spaces.
|
|
22
|
-
* @param string
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
export declare function sanitizeString(string: string): string;
|
|
26
|
-
/**
|
|
27
|
-
* The `normalizeString` function takes a string as input and returns a normalized
|
|
28
|
-
* version of the string by converting it to lowercase, removing leading and
|
|
29
|
-
* trailing whitespace, and removing any diacritical marks.
|
|
30
|
-
* @param {string} string - The `string` parameter is a string value that you want
|
|
31
|
-
* to normalize.
|
|
32
|
-
* @returns a normalized string.
|
|
33
|
-
*/
|
|
34
|
-
export declare function normalizeString(string: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* The function converts a string to kebab-case by replacing spaces and underscores
|
|
37
|
-
* with hyphens, converting camelCase to kebab-case, and converting the entire
|
|
38
|
-
* string to lowercase.
|
|
39
|
-
* @param {string} text - The `text` parameter is a string that represents the
|
|
40
|
-
* input data that needs to be converted to kebab-case.
|
|
41
|
-
* @returns the input string converted to kebab-case.
|
|
42
|
-
*/
|
|
43
|
-
export declare function convertToKebabCase(text: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* Truncates a string to a given character limit and adds ellipses at the end if necessary.
|
|
3
|
+
* @param {string} data - The string to truncate.
|
|
4
|
+
* @param {number} limit - The maximum number of characters the string can have.
|
|
5
|
+
* @returns {string} The truncated string.
|
|
6
|
+
*/
|
|
7
|
+
export declare function truncateString(data: string, limit: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* Removes line breaks from a given string.
|
|
10
|
+
* @param {string} lineBreaks - The string to remove line breaks from.
|
|
11
|
+
* @returns {string} The string without line breaks.
|
|
12
|
+
*/
|
|
13
|
+
export declare function removeLineBreaks(lineBreaks: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Replaces multiple consecutive spaces in a string with a single space and trims the string.
|
|
16
|
+
* @param {string} string - The string to replace unnecessary spaces in.
|
|
17
|
+
* @returns {string} The string without unnecessary spaces.
|
|
18
|
+
*/
|
|
19
|
+
export declare function replaceUnecessarySpaces(string: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Sanitizes a string by removing all non-alphanumeric characters, line breaks and unnecessary spaces.
|
|
22
|
+
* @param string
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
export declare function sanitizeString(string: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* The `normalizeString` function takes a string as input and returns a normalized
|
|
28
|
+
* version of the string by converting it to lowercase, removing leading and
|
|
29
|
+
* trailing whitespace, and removing any diacritical marks.
|
|
30
|
+
* @param {string} string - The `string` parameter is a string value that you want
|
|
31
|
+
* to normalize.
|
|
32
|
+
* @returns a normalized string.
|
|
33
|
+
*/
|
|
34
|
+
export declare function normalizeString(string: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* The function converts a string to kebab-case by replacing spaces and underscores
|
|
37
|
+
* with hyphens, converting camelCase to kebab-case, and converting the entire
|
|
38
|
+
* string to lowercase.
|
|
39
|
+
* @param {string} text - The `text` parameter is a string that represents the
|
|
40
|
+
* input data that needs to be converted to kebab-case.
|
|
41
|
+
* @returns the input string converted to kebab-case.
|
|
42
|
+
*/
|
|
43
|
+
export declare function convertToKebabCase(text: string): string;
|
|
44
44
|
//# sourceMappingURL=strings.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=fuctionsColors.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function generateUUID(): string;
|
|
1
|
+
export declare function generateUUID(): string;
|
|
2
2
|
//# sourceMappingURL=generateUUID.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type TypeOfValue = number | string | boolean | undefined;
|
|
2
|
-
export declare function getPrimitiveValue<T>(value: any, type: T): TypeOfValue;
|
|
1
|
+
export type TypeOfValue = number | string | boolean | undefined;
|
|
2
|
+
export declare function getPrimitiveValue<T>(value: any, type: T): TypeOfValue;
|
|
3
3
|
//# sourceMappingURL=get-primitive-value.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeBase } from '../shared/theme';
|
|
2
|
-
export declare function getColorByScheme(scheme: Exclude<keyof ThemeBase['colors'], 'background' | 'body'>, theme: ThemeBase): string;
|
|
1
|
+
import { ThemeBase } from '../shared/theme';
|
|
2
|
+
export declare function getColorByScheme(scheme: Exclude<keyof ThemeBase['colors'], 'background' | 'body'>, theme: ThemeBase): string;
|
|
3
3
|
//# sourceMappingURL=getColorByScheme.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ExtendThemeProps } from '../shared/theme';
|
|
2
|
-
/**
|
|
3
|
-
* This function takes a color string and returns the color value related to the theme or the original color string
|
|
4
|
-
* @param color : color value;
|
|
5
|
-
* @param theme : theme object;
|
|
6
|
-
* @param defaultValue : default value if color is not valid;
|
|
7
|
-
* @returns color value;
|
|
8
|
-
* @example
|
|
9
|
-
* getColorValue('primary.default', props.theme); // returns '#22E0A1'
|
|
10
|
-
*/
|
|
11
|
-
export declare const getColorValue: (color: string, theme?: ExtendThemeProps, defaultValue?: string) => string;
|
|
12
|
-
export declare const getThemeHex: (path: string, obj: object, separator?: string) => any;
|
|
1
|
+
import { ExtendThemeProps } from '../shared/theme';
|
|
2
|
+
/**
|
|
3
|
+
* This function takes a color string and returns the color value related to the theme or the original color string
|
|
4
|
+
* @param color : color value;
|
|
5
|
+
* @param theme : theme object;
|
|
6
|
+
* @param defaultValue : default value if color is not valid;
|
|
7
|
+
* @returns color value;
|
|
8
|
+
* @example
|
|
9
|
+
* getColorValue('primary.default', props.theme); // returns '#22E0A1'
|
|
10
|
+
*/
|
|
11
|
+
export declare const getColorValue: (color: string, theme?: ExtendThemeProps, defaultValue?: string) => string;
|
|
12
|
+
export declare const getThemeHex: (path: string, obj: object, separator?: string) => any;
|
|
13
13
|
//# sourceMappingURL=getColorValue.d.ts.map
|
package/dist/utils/getSvg.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
type IconsObject = {
|
|
2
|
-
name: string;
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
viewBox: string;
|
|
6
|
-
html: string;
|
|
7
|
-
xmlns: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const getSvg: (name: string, allIcons: IconsObject[]) => IconsObject;
|
|
10
|
-
export {};
|
|
1
|
+
type IconsObject = {
|
|
2
|
+
name: string;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
html: string;
|
|
7
|
+
xmlns: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const getSvg: (name: string, allIcons: IconsObject[]) => IconsObject;
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=getSvg.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
type SizeName = 'base' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
|
|
2
|
-
type Sizes = {
|
|
3
|
-
[key in SizeName | string]: string | number;
|
|
4
|
-
};
|
|
5
|
-
export declare function getValuesBySize(sizes: Sizes, conditional?: SizeName): string | number;
|
|
6
|
-
export {};
|
|
1
|
+
type SizeName = 'base' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
|
|
2
|
+
type Sizes = {
|
|
3
|
+
[key in SizeName | string]: string | number;
|
|
4
|
+
};
|
|
5
|
+
export declare function getValuesBySize(sizes: Sizes, conditional?: SizeName): string | number;
|
|
6
|
+
export {};
|
|
7
7
|
//# sourceMappingURL=getValuesBySize.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Invert the provided color or return black or white if the color is darken or lighten
|
|
3
|
-
* @param hex : hex color
|
|
4
|
-
* @param bw : black or white
|
|
5
|
-
* @returns : hex color
|
|
6
|
-
*/
|
|
7
|
-
export declare const invertColor: (hex: string, bw: boolean) => string;
|
|
1
|
+
/**
|
|
2
|
+
* Invert the provided color or return black or white if the color is darken or lighten
|
|
3
|
+
* @param hex : hex color
|
|
4
|
+
* @param bw : black or white
|
|
5
|
+
* @returns : hex color
|
|
6
|
+
*/
|
|
7
|
+
export declare const invertColor: (hex: string, bw: boolean) => string;
|
|
8
8
|
//# sourceMappingURL=invertColor.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function isValidUrl(url: string): boolean;
|
|
1
|
+
export declare function isValidUrl(url: string): boolean;
|
|
2
2
|
//# sourceMappingURL=isValidUrl.d.ts.map
|