@pedidopago/ui 1.13.7 → 1.13.9
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/bin/create-snippet +2 -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/constants.d.ts +4 -0
- package/dist/components/Icon/constants.d.ts.map +1 -0
- package/dist/components/Icon/constants.js +1 -0
- 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 +3 -0
- package/dist/components/IllustrationCard/index.d.ts.map +1 -0
- package/dist/components/IllustrationCard/index.js +4 -0
- package/dist/components/IllustrationCard/styles.d.ts +6 -0
- package/dist/components/IllustrationCard/styles.d.ts.map +1 -0
- package/dist/components/IllustrationCard/styles.js +1 -0
- package/dist/components/IllustrationCard/types.d.ts +15 -0
- package/dist/components/IllustrationCard/types.d.ts.map +1 -0
- package/dist/components/IllustrationCard/types.js +1 -0
- 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/index.js +1 -1
- 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 +3 -0
- package/dist/components/NewDropzone/DropzoneButton/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButton/index.js +5 -0
- package/dist/components/NewDropzone/DropzoneButton/styles.d.ts +6 -0
- package/dist/components/NewDropzone/DropzoneButton/styles.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButton/styles.js +1 -0
- package/dist/components/NewDropzone/DropzoneButton/types.d.ts +27 -0
- package/dist/components/NewDropzone/DropzoneButton/types.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButton/types.js +1 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/convertFile.d.ts +8 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/convertFile.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/convertFile.js +3 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/formatAcceptObject/constants.d.ts +5 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/formatAcceptObject/constants.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/formatAcceptObject/constants.js +1 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/formatAcceptObject/index.d.ts +3 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/formatAcceptObject/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButton/utils/formatAcceptObject/index.js +3 -0
- package/dist/components/NewDropzone/DropzoneButtonIcon/index.d.ts +3 -0
- package/dist/components/NewDropzone/DropzoneButtonIcon/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButtonIcon/index.js +4 -0
- package/dist/components/NewDropzone/DropzoneButtonIcon/styles.d.ts +6 -0
- package/dist/components/NewDropzone/DropzoneButtonIcon/styles.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButtonIcon/styles.js +1 -0
- package/dist/components/NewDropzone/DropzoneButtonText/index.d.ts +3 -0
- package/dist/components/NewDropzone/DropzoneButtonText/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/DropzoneButtonText/index.js +3 -0
- package/dist/components/NewDropzone/Examples/BasicUse/index.d.ts +2 -0
- package/dist/components/NewDropzone/Examples/BasicUse/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/Examples/BasicUse/index.js +1 -0
- package/dist/components/NewDropzone/Examples/Controlled/index.d.ts +2 -0
- package/dist/components/NewDropzone/Examples/Controlled/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/Examples/Controlled/index.js +4 -0
- package/dist/components/NewDropzone/Examples/Controlled/mocks.d.ts +2 -0
- package/dist/components/NewDropzone/Examples/Controlled/mocks.d.ts.map +1 -0
- package/dist/components/NewDropzone/Examples/Controlled/mocks.js +1 -0
- package/dist/components/NewDropzone/Examples/DropzoneButton/index.d.ts +2 -0
- package/dist/components/NewDropzone/Examples/DropzoneButton/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/Examples/DropzoneButton/index.js +4 -0
- package/dist/components/NewDropzone/Examples/index.d.ts +4 -0
- package/dist/components/NewDropzone/Examples/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/Examples/index.js +1 -0
- package/dist/components/NewDropzone/MultipleDropzone/index.d.ts +3 -0
- package/dist/components/NewDropzone/MultipleDropzone/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/MultipleDropzone/index.js +7 -0
- package/dist/components/NewDropzone/MultiplePreview/index.d.ts +3 -0
- package/dist/components/NewDropzone/MultiplePreview/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/MultiplePreview/index.js +5 -0
- package/dist/components/NewDropzone/MultiplePreview/styles.d.ts +6 -0
- package/dist/components/NewDropzone/MultiplePreview/styles.d.ts.map +1 -0
- package/dist/components/NewDropzone/MultiplePreview/styles.js +1 -0
- package/dist/components/NewDropzone/MultiplePreview/types.d.ts +10 -0
- package/dist/components/NewDropzone/MultiplePreview/types.d.ts.map +1 -0
- package/dist/components/NewDropzone/MultiplePreview/types.js +1 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/animations.d.ts +4 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/animations.d.ts.map +1 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/animations.js +2 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/index.d.ts +3 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/index.js +7 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/styles.d.ts +6 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/styles.d.ts.map +1 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/styles.js +1 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/types.d.ts +10 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/types.d.ts.map +1 -0
- package/dist/components/NewDropzone/MultiplePreviewItem/types.js +1 -0
- package/dist/components/NewDropzone/Preview/content/index.d.ts +3 -0
- package/dist/components/NewDropzone/Preview/content/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/Preview/content/index.js +3 -0
- package/dist/components/NewDropzone/Preview/content/types.d.ts +6 -0
- package/dist/components/NewDropzone/Preview/content/types.d.ts.map +1 -0
- package/dist/components/NewDropzone/Preview/content/types.js +1 -0
- package/dist/components/NewDropzone/Preview/index.d.ts +3 -0
- package/dist/components/NewDropzone/Preview/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/Preview/index.js +7 -0
- package/dist/components/NewDropzone/Preview/styles.d.ts +281 -0
- package/dist/components/NewDropzone/Preview/styles.d.ts.map +1 -0
- package/dist/components/NewDropzone/Preview/styles.js +1 -0
- package/dist/components/NewDropzone/Preview/types.d.ts +9 -0
- package/dist/components/NewDropzone/Preview/types.d.ts.map +1 -0
- package/dist/components/NewDropzone/Preview/types.js +1 -0
- package/dist/components/NewDropzone/SingleDropzone/index.d.ts +3 -0
- package/dist/components/NewDropzone/SingleDropzone/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/SingleDropzone/index.js +5 -0
- package/dist/components/NewDropzone/constants.d.ts +7 -0
- package/dist/components/NewDropzone/constants.d.ts.map +1 -0
- package/dist/components/NewDropzone/constants.js +1 -0
- package/dist/components/NewDropzone/index.d.ts +3 -0
- package/dist/components/NewDropzone/index.d.ts.map +1 -0
- package/dist/components/NewDropzone/index.js +3 -0
- package/dist/components/NewDropzone/styles.d.ts +6 -0
- package/dist/components/NewDropzone/styles.d.ts.map +1 -0
- package/dist/components/NewDropzone/styles.js +1 -0
- package/dist/components/NewDropzone/types.d.ts +36 -0
- package/dist/components/NewDropzone/types.d.ts.map +1 -0
- package/dist/components/NewDropzone/types.js +1 -0
- package/dist/components/NewDropzone/utils.d.ts +6 -0
- package/dist/components/NewDropzone/utils.d.ts.map +1 -0
- package/dist/components/NewDropzone/utils.js +4 -0
- 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 +4 -0
- package/dist/components/PdfPreview/index.d.ts.map +1 -0
- package/dist/components/PdfPreview/index.js +5 -0
- package/dist/components/PdfPreview/styles.d.ts +6 -0
- package/dist/components/PdfPreview/styles.d.ts.map +1 -0
- package/dist/components/PdfPreview/styles.js +1 -0
- package/dist/components/PdfPreview/types.d.ts +4 -0
- package/dist/components/PdfPreview/types.d.ts.map +1 -0
- package/dist/components/PdfPreview/types.js +1 -0
- 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 -79
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -0
- package/dist/shared/animations/opacityAnimation.d.ts +2 -2
- package/dist/shared/animations/widthAnimations.d.ts +3 -0
- package/dist/shared/animations/widthAnimations.d.ts.map +1 -0
- package/dist/shared/animations/widthAnimations.js +1 -0
- 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 +4 -0
- package/dist/shared/types/motion.d.ts.map +1 -0
- package/dist/shared/types/motion.js +1 -0
- 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/array.d.ts +2 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/array.js +1 -0
- 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 -26
- package/dist/utils/file.d.ts.map +1 -1
- package/dist/utils/file.js +2 -2
- 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/cases.d.ts +3 -0
- package/dist/utils/formatters/cases.d.ts.map +1 -0
- package/dist/utils/formatters/cases.js +1 -0
- 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 +2 -0
- package/dist/utils/formatters/getNumbersFromString.d.ts.map +1 -0
- package/dist/utils/formatters/getNumbersFromString.js +1 -0
- 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 +2 -0
- package/dist/utils/isValidUrl.d.ts.map +1 -0
- package/dist/utils/isValidUrl.js +1 -0
- package/package.json +13 -7
- package/CHANGELOG.md +0 -0
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/shared/types/motion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../src/utils/array.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,CAAC,EAC7B,KAAK,EAAE,CAAC,EAAE,EACV,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,OAAO,GACxD,MAAM,CAOR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.findLastIndex=findLastIndex;function findLastIndex(array,predicate){for(var i=array.length-1;0<=i;i--)if(predicate(array[i],i,array))return i;return-1}
|
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,27 +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>;
|
|
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>;
|
|
27
28
|
//# sourceMappingURL=file.d.ts.map
|
package/dist/utils/file.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAErE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,CActE;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAY3F;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAYrE"}
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAErE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,CActE;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAY3F;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAYrE;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAQrE"}
|
package/dist/utils/file.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.convertFileToBase64=convertFileToBase64,exports.downloadUrlToFile=downloadUrlToFile,exports.filesToBase64=filesToBase64,exports.urlToBase64=urlToBase64;function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key]}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg)})})}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",err,resolve,reject)}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result)},function(error){return invoke("throw",error,resolve,reject)})}reject(record.arg)}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject)})}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"==state)throw new Error("Generator is already running");if("completed"==state){if("throw"===method)throw arg;return doneResult()}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"==state)throw state="completed",context.arg;context.dispatchException(context.arg)}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done}}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg)}}}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(void 0===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=void 0,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=void 0),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel)}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0)}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=void 0,next.done=!0,next};return next.next=next}}return{next:doneResult}}function doneResult(){return{value:void 0,done:!0}}_regeneratorRuntime=function(){return exports};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";try{define({},"")}catch(err){define=function(obj,key,value){return obj[key]=value}}exports.wrap=wrap;var ContinueSentinel={},IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name))},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun},exports.awrap=function(arg){return{__await:arg}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next()})},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this}),define(Gp,"toString",function(){return"[object Generator]"}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next}return next.done=!0,next}},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=void 0)},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval},dispatchException:function dispatchException(exception){function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=void 0),!!caught}if(this.done)throw exception;for(var context=this,i=this.tryEntries.length-1;0<=i;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(!hasCatch){if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0)}}},abrupt:function abrupt(type,arg){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record)},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel},finish:function finish(finallyLoc){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel},catch:function _catch(tryLoc){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry)}return thrown}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=void 0),ContinueSentinel}},exports}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.convertFileToBase64=convertFileToBase64,exports.downloadUrlToFile=downloadUrlToFile,exports.fetchFileBlob=fetchFileBlob,exports.filesToBase64=filesToBase64,exports.urlToBase64=urlToBase64;function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key]}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg)})})}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",err,resolve,reject)}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result)},function(error){return invoke("throw",error,resolve,reject)})}reject(record.arg)}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject)})}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"==state)throw new Error("Generator is already running");if("completed"==state){if("throw"===method)throw arg;return doneResult()}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"==state)throw state="completed",context.arg;context.dispatchException(context.arg)}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done}}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg)}}}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(void 0===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=void 0,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=void 0),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel)}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0)}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=void 0,next.done=!0,next};return next.next=next}}return{next:doneResult}}function doneResult(){return{value:void 0,done:!0}}_regeneratorRuntime=function(){return exports};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";try{define({},"")}catch(err){define=function(obj,key,value){return obj[key]=value}}exports.wrap=wrap;var ContinueSentinel={},IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name))},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun},exports.awrap=function(arg){return{__await:arg}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next()})},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this}),define(Gp,"toString",function(){return"[object Generator]"}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next}return next.done=!0,next}},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=void 0)},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval},dispatchException:function dispatchException(exception){function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=void 0),!!caught}if(this.done)throw exception;for(var context=this,i=this.tryEntries.length-1;0<=i;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(!hasCatch){if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0)}}},abrupt:function abrupt(type,arg){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record)},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel},finish:function finish(finallyLoc){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel},catch:function _catch(tryLoc){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry)}return thrown}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=void 0),ContinueSentinel}},exports}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}/**
|
|
2
2
|
* Converts an array of File objects to an array of base64-encoded files with additional information.
|
|
3
3
|
* @param {File[]} files Array of File objects.
|
|
4
4
|
* @returns {Promise<FormattedFile[]>} Promise that resolves with an array of FormattedFile objects.
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* Downloads a file from a given URL and opens the download prompt.
|
|
16
16
|
* @param {string} url URL of the file to be downloaded.
|
|
17
17
|
* @returns {Promise<boolean>} Promise that resolves with a boolean indicating whether the download was successful.
|
|
18
|
-
*/function _urlToBase(){return _urlToBase=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(url,name){var blob,file;return _regeneratorRuntime().wrap(function _callee$(_context){for(;1;)switch(_context.prev=_context.next){case 0:if(url){_context.next=2;break}return _context.abrupt("return",Promise.resolve(null));case 2:return _context.prev=2,_context.next=5,fetch(url).then(function(res){return res.blob()});case 5:return blob=_context.sent,file=new File([blob],name||"file",{type:blob.type}),_context.abrupt("return",convertFileToBase64(file));case 10:return _context.prev=10,_context.t0=_context["catch"](2),console.error(_context.t0),_context.abrupt("return",null);case 14:case"end":return _context.stop();}},_callee,null,[[2,10]])})),_urlToBase.apply(this,arguments)}function downloadUrlToFile(_x3){return _downloadUrlToFile.apply(this,arguments)}function _downloadUrlToFile(){return _downloadUrlToFile=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(url){var _url$split$pop,blob,fileName,urlBlob,link;return _regeneratorRuntime().wrap(function _callee2$(_context2){for(;1;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,fetch(url).then(function(res){return res.blob()});case 2:if(blob=_context2.sent,blob){_context2.next=5;break}return _context2.abrupt("return",!1);case 5:return fileName=decodeURI((null===(_url$split$pop=url.split("/").pop())||void 0===_url$split$pop?void 0:_url$split$pop.split(".")[0])||"file"),urlBlob=window.URL.createObjectURL(blob),link=document.createElement("a"),link.href=urlBlob,link.download=fileName,link.click(),window.URL.revokeObjectURL(urlBlob),_context2.abrupt("return",!0);case 13:case"end":return _context2.stop();}},_callee2)})),_downloadUrlToFile.apply(this,arguments)}
|
|
18
|
+
*/function _urlToBase(){return _urlToBase=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(url,name){var blob,file;return _regeneratorRuntime().wrap(function _callee$(_context){for(;1;)switch(_context.prev=_context.next){case 0:if(url){_context.next=2;break}return _context.abrupt("return",Promise.resolve(null));case 2:return _context.prev=2,_context.next=5,fetch(url).then(function(res){return res.blob()});case 5:return blob=_context.sent,file=new File([blob],name||"file",{type:blob.type}),_context.abrupt("return",convertFileToBase64(file));case 10:return _context.prev=10,_context.t0=_context["catch"](2),console.error(_context.t0),_context.abrupt("return",null);case 14:case"end":return _context.stop();}},_callee,null,[[2,10]])})),_urlToBase.apply(this,arguments)}function downloadUrlToFile(_x3){return _downloadUrlToFile.apply(this,arguments)}function _downloadUrlToFile(){return _downloadUrlToFile=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(url){var _url$split$pop,blob,fileName,urlBlob,link;return _regeneratorRuntime().wrap(function _callee2$(_context2){for(;1;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,fetch(url).then(function(res){return res.blob()});case 2:if(blob=_context2.sent,blob){_context2.next=5;break}return _context2.abrupt("return",!1);case 5:return fileName=decodeURI((null===(_url$split$pop=url.split("/").pop())||void 0===_url$split$pop?void 0:_url$split$pop.split(".")[0])||"file"),urlBlob=window.URL.createObjectURL(blob),link=document.createElement("a"),link.href=urlBlob,link.download=fileName,link.click(),window.URL.revokeObjectURL(urlBlob),_context2.abrupt("return",!0);case 13:case"end":return _context2.stop();}},_callee2)})),_downloadUrlToFile.apply(this,arguments)}function fetchFileBlob(_x4){return _fetchFileBlob.apply(this,arguments)}function _fetchFileBlob(){return _fetchFileBlob=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(url){var res;return _regeneratorRuntime().wrap(function _callee3$(_context3){for(;1;)switch(_context3.prev=_context3.next){case 0:return _context3.prev=0,_context3.next=3,fetch(url,{cache:"reload"});case 3:return res=_context3.sent,_context3.next=6,res.blob();case 6:return _context3.abrupt("return",_context3.sent);case 9:return _context3.prev=9,_context3.t0=_context3["catch"](0),_context3.abrupt("return",null);case 12:case"end":return _context3.stop();}},_callee3,null,[[0,9]])})),_fetchFileBlob.apply(this,arguments)}
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cases.d.ts","sourceRoot":"","sources":["../../../src/utils/formatters/cases.ts"],"names":[],"mappings":"AAAA,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMtE;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.convertFromCamelCaseToKebabCase=convertFromCamelCaseToKebabCase,exports.convertFromKebabCaseToCamelCase=convertFromKebabCaseToCamelCase;function convertFromCamelCaseToKebabCase(string){return string.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/([a-zA-Z])(\d)/g,"$1-$2").toLowerCase()}function convertFromKebabCaseToCamelCase(string){return string.replace(/(?:^|-)(.)/g,function(_,group){return group.toUpperCase()})}
|
|
@@ -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
|