@pedidopago/ui 1.7.20 → 1.7.22
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/dist/@types/index.d.ts +6 -6
- package/dist/components/Alert/alert.test.d.ts +1 -1
- package/dist/components/Alert/index.d.ts +4 -4
- package/dist/components/Alert/styles.d.ts +10 -10
- package/dist/components/Alert/styles.d.ts.map +1 -1
- package/dist/components/Alert/styles.js +1 -1
- package/dist/components/Alert/types.d.ts +42 -42
- 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/styles.d.ts.map +1 -1
- package/dist/components/Avatar/styles.js +3 -3
- 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/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/styles.d.ts +14 -14
- package/dist/components/Button/styles.d.ts.map +1 -1
- package/dist/components/Button/styles.js +3 -5
- 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 +3 -3
- package/dist/components/Card/styles.d.ts +6 -6
- package/dist/components/Card/types.d.ts +17 -17
- 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 -31
- package/dist/components/CheckboxInput/styles.d.ts.map +1 -1
- package/dist/components/CheckboxInput/styles.js +13 -35
- package/dist/components/CheckboxInput/types.d.ts +27 -27
- package/dist/components/CollapseCard/ExpandButton/index.d.ts +3 -3
- package/dist/components/CollapseCard/ExpandButton/styles.d.ts +269 -269
- 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 +268 -268
- package/dist/components/CollapseCard/styles.d.ts.map +1 -1
- package/dist/components/CollapseCard/styles.js +4 -1
- 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 +4 -4
- package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
- 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 +4 -4
- package/dist/components/ColorPicker/styles.d.ts +44 -44
- package/dist/components/ColorPicker/styles.d.ts.map +1 -1
- package/dist/components/ColorPicker/styles.js +5 -5
- 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/ComposeIcon/index.d.ts +4 -4
- package/dist/components/ComposeIcon/styles.d.ts +10 -10
- package/dist/components/ComposeIcon/styles.d.ts.map +1 -1
- package/dist/components/ComposeIcon/styles.js +2 -2
- package/dist/components/ComposeIcon/types.d.ts +11 -11
- package/dist/components/DateInput/DateInput-example.d.ts +5 -5
- package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
- package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +268 -268
- 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 +3 -3
- package/dist/components/DateInput/styles.d.ts +10 -10
- package/dist/components/DateInput/types.d.ts +18 -18
- package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
- package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
- package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/styles.d.ts +77 -77
- package/dist/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.js +4 -5
- 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 +3 -3
- package/dist/components/Dialog/dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +3 -3
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +7 -8
- package/dist/components/Dialog/styles.d.ts +23 -25
- package/dist/components/Dialog/styles.d.ts.map +1 -1
- package/dist/components/Dialog/styles.js +4 -6
- 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 +4 -4
- package/dist/components/Dropzone/styles.d.ts +55 -55
- package/dist/components/Dropzone/styles.js +1 -1
- package/dist/components/Dropzone/types.d.ts +27 -27
- package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
- package/dist/components/EmojiPicker/Emote/index.d.ts +3 -3
- 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 +3 -3
- package/dist/components/EmojiPicker/EmotePickerData/index.js +1 -1
- package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts +17 -17
- package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmotePickerData/styles.js +20 -14
- 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 +3 -3
- 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 +517 -517
- package/dist/components/EmojiPicker/styles.d.ts.map +1 -1
- package/dist/components/EmojiPicker/styles.js +3 -6
- 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 -296
- package/dist/components/Flex/styles.d.ts.map +1 -1
- package/dist/components/Flex/types.d.ts +175 -175
- 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 -288
- package/dist/components/Grid/styles.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/data/ecommerce.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/illustrations.js +43 -43
- 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/styles.d.ts.map +1 -1
- package/dist/components/Illustration/styles.js +4 -3
- package/dist/components/Illustration/types.d.ts +11 -11
- package/dist/components/ImageItem/imageFake.d.ts +2 -2
- 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/styles.d.ts.map +1 -1
- package/dist/components/ImageItem/styles.js +3 -4
- package/dist/components/ImageItem/types.d.ts +25 -25
- package/dist/components/Input/index.d.ts +4 -4
- package/dist/components/Input/index.js +3 -1
- package/dist/components/Input/input.test.d.ts +1 -1
- package/dist/components/Input/styles.d.ts +65 -69
- package/dist/components/Input/styles.d.ts.map +1 -1
- package/dist/components/Input/styles.js +44 -82
- package/dist/components/Input/types.d.ts +30 -30
- package/dist/components/Label/index.d.ts +3 -3
- 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/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/styles.d.ts.map +1 -1
- package/dist/components/List/styles.js +3 -9
- package/dist/components/List/types.d.ts +8 -8
- package/dist/components/Modal/ModalExample.d.ts +7 -7
- 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 +538 -538
- package/dist/components/Modal/styles.d.ts.map +1 -1
- package/dist/components/Modal/styles.js +1 -1
- package/dist/components/Modal/types.d.ts +37 -37
- 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 +3 -3
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +275 -275
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.js +17 -7
- 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/SelectedOptionsArea.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -4
- 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/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +3 -3
- 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 +5 -5
- package/dist/components/MultipleSelect/types.d.ts +44 -44
- package/dist/components/NewSelect/Examples/constants.d.ts +4 -4
- package/dist/components/NewSelect/Examples/index.d.ts +4 -4
- package/dist/components/NewSelect/components/Chip/index.d.ts +3 -3
- 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 +260 -260
- package/dist/components/NewSelect/components/OptionsSelect/styles.js +1 -1
- package/dist/components/NewSelect/components/OptionsSelect/types.d.ts +22 -22
- package/dist/components/NewSelect/components/SelectInputSearch/index.d.ts +3 -3
- package/dist/components/NewSelect/components/SelectInputSearch/types.d.ts +3 -3
- package/dist/components/NewSelect/components/SelectItem/index.d.ts +3 -3
- package/dist/components/NewSelect/components/SelectItem/styles.d.ts +8 -8
- package/dist/components/NewSelect/components/SelectItem/types.d.ts +2 -2
- package/dist/components/NewSelect/index.d.ts +3 -3
- package/dist/components/NewSelect/multiple/index.d.ts +3 -3
- package/dist/components/NewSelect/newSelect.test.d.ts +1 -1
- package/dist/components/NewSelect/single/index.d.ts +3 -3
- package/dist/components/NewSelect/styles.d.ts +24 -24
- package/dist/components/NewSelect/styles.d.ts.map +1 -1
- package/dist/components/NewSelect/styles.js +1 -4
- package/dist/components/NewSelect/types.d.ts +44 -44
- package/dist/components/Observer/index.d.ts +6 -6
- 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 +3 -3
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +2 -9
- 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 +28 -28
- package/dist/components/Progress/Circle/index.d.ts +3 -3
- 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 +3 -3
- 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 +4 -4
- package/dist/components/Progress/progress.test.d.ts +1 -1
- package/dist/components/Progress/types.d.ts +27 -27
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.js +3 -2
- package/dist/components/RadioInput/index.d.ts +4 -4
- package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
- package/dist/components/RadioInput/styles.d.ts +33 -30
- package/dist/components/RadioInput/styles.d.ts.map +1 -1
- package/dist/components/RadioInput/styles.js +16 -5
- package/dist/components/RadioInput/types.d.ts +27 -26
- package/dist/components/RadioInput/types.d.ts.map +1 -1
- package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
- 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 +268 -268
- package/dist/components/Select/components/OptionsSelect/styles.js +1 -1
- package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/select.test.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +20 -20
- package/dist/components/Select/styles.d.ts.map +1 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Select/types.d.ts +26 -26
- package/dist/components/Skeleton/index.d.ts +4 -4
- package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
- package/dist/components/Skeleton/styles.d.ts +7 -7
- package/dist/components/Skeleton/styles.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.js +2 -8
- package/dist/components/Skeleton/types.d.ts +40 -40
- package/dist/components/Slider/SliderExample.d.ts +3 -3
- package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
- package/dist/components/Slider/components/SliderPointer.d.ts.map +1 -1
- package/dist/components/Slider/components/SliderPointer.js +2 -1
- package/dist/components/Slider/components/SliderRail.d.ts +3 -3
- package/dist/components/Slider/components/SliderSelector.d.ts +17 -17
- package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
- package/dist/components/Slider/index.d.ts +19 -19
- package/dist/components/Slider/slider.test.d.ts +1 -1
- package/dist/components/Slider/styles.d.ts +65 -65
- package/dist/components/Slider/styles.d.ts.map +1 -1
- package/dist/components/Slider/styles.js +2 -2
- package/dist/components/Slider/types.d.ts +40 -40
- 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 -288
- package/dist/components/Spinner/styles.d.ts.map +1 -1
- package/dist/components/Spinner/styles.js +1 -1
- package/dist/components/Spinner/types.d.ts +11 -11
- package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
- 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 +4 -4
- package/dist/components/Steps/steps.test.d.ts +1 -1
- package/dist/components/Steps/styles.d.ts +47 -47
- package/dist/components/Steps/styles.d.ts.map +1 -1
- package/dist/components/Steps/styles.js +3 -9
- 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/styles.d.ts.map +1 -1
- package/dist/components/Switch/styles.js +2 -4
- package/dist/components/Switch/switch.test.d.ts +1 -1
- package/dist/components/Switch/types.d.ts +14 -14
- package/dist/components/Table/components/MenuItem.d.ts +3 -3
- package/dist/components/Table/components/TableSkeleton.d.ts +3 -3
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -5
- package/dist/components/Table/styles.d.ts +34 -34
- package/dist/components/Table/styles.d.ts.map +1 -1
- package/dist/components/Table/styles.js +4 -52
- package/dist/components/Table/table.test.d.ts +1 -1
- package/dist/components/Table/types.d.ts +53 -53
- package/dist/components/Tabs/TabsExample.d.ts +3 -3
- package/dist/components/Tabs/components/Tab.d.ts +3 -3
- 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/styles.d.ts.map +1 -1
- package/dist/components/Tabs/styles.js +2 -1
- 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/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +6 -3
- package/dist/components/Tag/styles.d.ts +1374 -869
- package/dist/components/Tag/styles.d.ts.map +1 -1
- package/dist/components/Tag/styles.js +5 -4
- package/dist/components/Tag/tag.test.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +10 -9
- package/dist/components/Tag/types.d.ts.map +1 -1
- package/dist/components/TextAreaInput/index.d.ts +4 -4
- package/dist/components/TextAreaInput/styles.d.ts +18 -18
- package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
- package/dist/components/TextAreaInput/styles.js +3 -6
- 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 +3 -3
- package/dist/components/Thumbnail/index.d.ts.map +1 -1
- package/dist/components/Thumbnail/index.js +7 -56
- package/dist/components/Thumbnail/styles.d.ts +38 -38
- package/dist/components/Thumbnail/styles.d.ts.map +1 -1
- package/dist/components/Thumbnail/styles.js +17 -27
- package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
- package/dist/components/Thumbnail/types.d.ts +20 -28
- package/dist/components/Thumbnail/types.d.ts.map +1 -1
- 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 +4 -4
- package/dist/components/TimeInput/index.d.ts +4 -4
- package/dist/components/TimeInput/styles.d.ts +16 -16
- package/dist/components/TimeInput/styles.d.ts.map +1 -1
- package/dist/components/TimeInput/styles.js +7 -1
- package/dist/components/TimeInput/types.d.ts +4 -4
- package/dist/components/TimeInput/utils.d.ts +9 -9
- package/dist/components/Timeline/components/Timeline.d.ts +3 -3
- package/dist/components/Timeline/components/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/components/Timeline.js +3 -16
- package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
- package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
- package/dist/components/Timeline/index.d.ts +4 -4
- package/dist/components/Timeline/styles.d.ts +31 -31
- package/dist/components/Timeline/styles.d.ts.map +1 -1
- package/dist/components/Timeline/styles.js +5 -5
- package/dist/components/Timeline/timeline.test.d.ts +1 -1
- package/dist/components/Timeline/timeline.test.js +0 -2
- package/dist/components/Timeline/types.d.ts +19 -20
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Toast/button-example.d.ts +6 -6
- package/dist/components/Toast/components/Toast.d.ts +4 -4
- package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
- package/dist/components/Toast/hooks/useToast.d.ts +2 -2
- package/dist/components/Toast/index.d.ts +3 -3
- package/dist/components/Toast/styles.d.ts +22 -22
- package/dist/components/Toast/toast.test.d.ts +1 -1
- package/dist/components/Toast/types.d.ts +29 -29
- package/dist/components/Tooltip/components/TooltipLabel.d.ts +12 -12
- package/dist/components/Tooltip/components/TooltipLabel.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipLabel.js +5 -5
- package/dist/components/Tooltip/example.d.ts +2 -2
- package/dist/components/Tooltip/index.d.ts +4 -4
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +5 -1
- package/dist/components/Tooltip/styles.d.ts +13 -13
- package/dist/components/Tooltip/styles.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.js +2 -4
- package/dist/components/Tooltip/types.d.ts +26 -26
- package/dist/components/Typography/index.d.ts +4 -4
- package/dist/components/Typography/index.d.ts.map +1 -1
- package/dist/components/Typography/index.js +4 -5
- 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 +66 -65
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/shared/animations/opacityAnimation.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 +5 -5
- package/dist/shared/formatters/types.d.ts +5 -5
- package/dist/shared/hooks/devices.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoints.d.ts +25 -25
- 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 +2 -2
- 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 +2 -0
- package/dist/shared/hooks/useSystemTheme.d.ts.map +1 -0
- package/dist/shared/hooks/useSystemTheme.js +33 -0
- 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 +2 -2
- package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
- package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/shared/theme/contexts/ThemeContext.js +36 -16
- package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
- package/dist/shared/theme/hooks/useColorMode.js +1 -1
- package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
- package/dist/shared/theme/hooks/useTheme.d.ts +452 -284
- package/dist/shared/theme/hooks/useTheme.d.ts.map +1 -1
- package/dist/shared/theme/index.d.ts +7 -7
- package/dist/shared/theme/objects/breakpoints.d.ts +9 -0
- package/dist/shared/theme/objects/breakpoints.d.ts.map +1 -0
- package/dist/shared/theme/objects/breakpoints.js +15 -0
- package/dist/shared/theme/objects/colors.d.ts +171 -0
- package/dist/shared/theme/objects/colors.d.ts.map +1 -0
- package/dist/shared/theme/objects/colors.js +177 -0
- package/dist/shared/theme/objects/shadows.d.ts +13 -0
- package/dist/shared/theme/objects/shadows.d.ts.map +1 -0
- package/dist/shared/theme/objects/shadows.js +19 -0
- package/dist/shared/theme/objects/sizes.d.ts +23 -0
- package/dist/shared/theme/objects/sizes.d.ts.map +1 -0
- package/dist/shared/theme/objects/sizes.js +33 -0
- package/dist/shared/theme/objects/spaces.d.ts +131 -0
- package/dist/shared/theme/objects/spaces.d.ts.map +1 -0
- package/dist/shared/theme/objects/spaces.js +75 -0
- package/dist/shared/theme/objects/transitions.d.ts +4 -0
- package/dist/shared/theme/objects/transitions.d.ts.map +1 -0
- package/dist/shared/theme/objects/transitions.js +10 -0
- package/dist/shared/theme/objects/typography.d.ts +14 -0
- package/dist/shared/theme/objects/typography.d.ts.map +1 -0
- package/dist/shared/theme/objects/typography.js +20 -0
- package/dist/shared/theme/objects/z-indexes.d.ts +14 -0
- package/dist/shared/theme/objects/z-indexes.d.ts.map +1 -0
- package/dist/shared/theme/objects/z-indexes.js +20 -0
- package/dist/shared/theme/theme.d.ts +450 -282
- package/dist/shared/theme/theme.d.ts.map +1 -1
- package/dist/shared/theme/theme.js +19 -225
- package/dist/shared/theme/theme.test.d.ts +1 -1
- package/dist/shared/theme/theme.types.d.ts +22 -14
- package/dist/shared/theme/theme.types.d.ts.map +1 -1
- package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
- package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
- package/dist/shared/types/credit-card.d.ts +5 -5
- package/dist/shared/types/file.d.ts +11 -11
- 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/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 +2 -0
- package/dist/utils/customColorMode.d.ts.map +1 -0
- package/dist/utils/customColorMode.js +11 -0
- package/dist/utils/file.d.ts +26 -26
- 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/email.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 +6 -6
- 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 +19 -19
- package/dist/utils/fuctionsColors.d.ts +2 -2
- package/dist/utils/generateUUID.d.ts +1 -1
- 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/package.json +9 -3
- package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts +0 -5
- package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/AlternativeOrderSvg/index.js +0 -107
- package/dist/components/Illustration/BoletoSvg/index.d.ts +0 -5
- package/dist/components/Illustration/BoletoSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/BoletoSvg/index.js +0 -168
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts +0 -5
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/BoxClosedSvg/index.js +0 -99
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +0 -5
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/BoxDeliverySvg/index.js +0 -111
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts +0 -5
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/BoxOpenSvg/index.js +0 -108
- package/dist/components/Illustration/CalendarSvg/index.d.ts +0 -5
- package/dist/components/Illustration/CalendarSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/CalendarSvg/index.js +0 -109
- package/dist/components/Illustration/CardSvg/index.d.ts +0 -5
- package/dist/components/Illustration/CardSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/CardSvg/index.js +0 -110
- package/dist/components/Illustration/CollaboratorSvg/index.d.ts +0 -5
- package/dist/components/Illustration/CollaboratorSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/CollaboratorSvg/index.js +0 -99
- package/dist/components/Illustration/InquirySvg/index.d.ts +0 -5
- package/dist/components/Illustration/InquirySvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/InquirySvg/index.js +0 -219
- package/dist/components/Illustration/OrderSvg/index.d.ts +0 -5
- package/dist/components/Illustration/OrderSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/OrderSvg/index.js +0 -135
- package/dist/components/Illustration/PixSvg/index.d.ts +0 -5
- package/dist/components/Illustration/PixSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/PixSvg/index.js +0 -93
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts +0 -5
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/PrescriptionSvg/index.js +0 -81
- package/dist/components/Illustration/TransportSvg/index.d.ts +0 -5
- package/dist/components/Illustration/TransportSvg/index.d.ts.map +0 -1
- package/dist/components/Illustration/TransportSvg/index.js +0 -102
- package/dist/components/NewSelect/components/OptionsSelect/index.d.ts +0 -4
- package/dist/components/NewSelect/components/OptionsSelect/index.d.ts.map +0 -1
- package/dist/components/NewSelect/components/OptionsSelect/index.js +0 -56
- package/dist/components/Steps/components/StepIconMobile/index.d.ts +0 -4
- package/dist/components/Steps/components/StepIconMobile/index.d.ts.map +0 -1
- package/dist/components/Steps/components/StepIconMobile/index.js +0 -126
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/shared/theme/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/shared/theme/theme.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAexB,CAAC"}
|
|
@@ -4,239 +4,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultTheme = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
tiny: '0.625rem',
|
|
15
|
-
xxxs: '0.75rem',
|
|
16
|
-
xxs: '0.875rem',
|
|
17
|
-
xs: '1rem',
|
|
18
|
-
sm: '1.125rem',
|
|
19
|
-
md: '1.25rem',
|
|
20
|
-
lg: '1.5rem',
|
|
21
|
-
xl: '2rem',
|
|
22
|
-
xxl: '2.5rem',
|
|
23
|
-
xxxl: '3.25rem',
|
|
24
|
-
display: '4rem',
|
|
25
|
-
giant: '5rem'
|
|
26
|
-
};
|
|
27
|
-
var buttonSize = {
|
|
28
|
-
xs: '2.25em',
|
|
29
|
-
// 36px - 2.25em
|
|
30
|
-
sm: '2.75em',
|
|
31
|
-
// 44px - 2.75em
|
|
32
|
-
md: '3.25em',
|
|
33
|
-
// 52px - 3.25em
|
|
34
|
-
lg: '3.75em',
|
|
35
|
-
// 60px - 3.75em
|
|
36
|
-
xl: '4.25em' // breaking change: (60px 3.75em) > (68px 4.25em)
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var breakpoints = {
|
|
40
|
-
base: '0px',
|
|
41
|
-
sm: '30rem',
|
|
42
|
-
md: '48rem',
|
|
43
|
-
lg: '64rem',
|
|
44
|
-
xl: '80rem',
|
|
45
|
-
xxl: '100rem'
|
|
46
|
-
};
|
|
47
|
-
var space = {
|
|
48
|
-
px: '1px',
|
|
49
|
-
0.5: '0.125rem',
|
|
50
|
-
1: '0.25rem',
|
|
51
|
-
1.5: '0.375rem',
|
|
52
|
-
2: '0.5rem',
|
|
53
|
-
2.5: '0.625rem',
|
|
54
|
-
3: '0.75rem',
|
|
55
|
-
3.5: '0.875rem',
|
|
56
|
-
4: '1rem',
|
|
57
|
-
5: '1.25rem',
|
|
58
|
-
6: '1.5rem',
|
|
59
|
-
7: '1.75rem',
|
|
60
|
-
8: '2rem',
|
|
61
|
-
9: '2.25rem',
|
|
62
|
-
10: '2.5rem',
|
|
63
|
-
12: '3rem',
|
|
64
|
-
14: '3.5rem',
|
|
65
|
-
16: '4rem',
|
|
66
|
-
20: '5rem',
|
|
67
|
-
24: '6rem',
|
|
68
|
-
28: '7rem',
|
|
69
|
-
32: '8rem',
|
|
70
|
-
36: '9rem',
|
|
71
|
-
40: '10rem',
|
|
72
|
-
44: '11rem',
|
|
73
|
-
48: '12rem',
|
|
74
|
-
52: '13rem',
|
|
75
|
-
56: '14rem',
|
|
76
|
-
60: '15rem',
|
|
77
|
-
64: '16rem',
|
|
78
|
-
72: '18rem',
|
|
79
|
-
80: '20rem',
|
|
80
|
-
96: '24rem',
|
|
81
|
-
112: '28rem',
|
|
82
|
-
128: '32rem'
|
|
83
|
-
};
|
|
84
|
-
var fontWeight = {
|
|
85
|
-
normal: '400',
|
|
86
|
-
bold: '700',
|
|
87
|
-
'100': '100',
|
|
88
|
-
'200': '200',
|
|
89
|
-
'300': '300',
|
|
90
|
-
'400': '400',
|
|
91
|
-
'500': '500',
|
|
92
|
-
'600': '600',
|
|
93
|
-
'700': '700',
|
|
94
|
-
'800': '800',
|
|
95
|
-
'900': '900'
|
|
96
|
-
};
|
|
97
|
-
var colors = {
|
|
98
|
-
body: {
|
|
99
|
-
light: '#fff',
|
|
100
|
-
dark: '#000'
|
|
101
|
-
},
|
|
102
|
-
primary: {
|
|
103
|
-
alert: 'rgba(181, 241, 221, 0.2)',
|
|
104
|
-
disabled: '#9DF1D5',
|
|
105
|
-
default: '#22E0A1',
|
|
106
|
-
hover: '#1fcb92',
|
|
107
|
-
focus: '#1cb582',
|
|
108
|
-
transparent: 'transparent'
|
|
109
|
-
},
|
|
110
|
-
secondary: {
|
|
111
|
-
disabled: '#BED0FD',
|
|
112
|
-
default: '#034AFD',
|
|
113
|
-
hover: '#1F56E0',
|
|
114
|
-
focus: '#1C4CC7'
|
|
115
|
-
},
|
|
116
|
-
tertiary: {
|
|
117
|
-
disabled: '#EAEFED',
|
|
118
|
-
default: '#CAD6D1',
|
|
119
|
-
hover: '#A3B8B0',
|
|
120
|
-
focus: '#709085'
|
|
121
|
-
},
|
|
122
|
-
neutral: {
|
|
123
|
-
white: '#FFFFFF',
|
|
124
|
-
neutral1: '#EAEFED',
|
|
125
|
-
neutral2: '#CAD6D1',
|
|
126
|
-
neutral3: '#A3B8B0',
|
|
127
|
-
neutral4: '#709085',
|
|
128
|
-
neutral5: '#587169',
|
|
129
|
-
neutral6: '#465953',
|
|
130
|
-
black: '#34423D'
|
|
131
|
-
},
|
|
132
|
-
background: {
|
|
133
|
-
linear1: 'linear-gradient(107.46deg, #034AFD 0%, #1ECAAF 111.36%)',
|
|
134
|
-
linear2: 'linear-gradient(99.45deg, rgba(255, 255, 255, 0) 34.2%, #FFFFFF 94.04%), #EAEFED',
|
|
135
|
-
linear3: 'linear-gradient(100.62deg, #FFFFFF 6.63%, rgba(255, 255, 255, 0) 93.99%), #EAEFED',
|
|
136
|
-
light: '#FFFFFF'
|
|
137
|
-
},
|
|
138
|
-
informative: {
|
|
139
|
-
default: '#3B82F6',
|
|
140
|
-
blurred: '#B1CDFB',
|
|
141
|
-
dark: '#364f62',
|
|
142
|
-
gradient: 'linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%), #B1CDFB'
|
|
143
|
-
},
|
|
144
|
-
success: {
|
|
145
|
-
default: '#34D399',
|
|
146
|
-
blurred: '#B5F1DD',
|
|
147
|
-
dark: '#345f50',
|
|
148
|
-
gradient: 'linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%), #B5F1DD'
|
|
149
|
-
},
|
|
150
|
-
success_secondary: {
|
|
151
|
-
default: '#34D3C9',
|
|
152
|
-
blurred: '#AAFAF5',
|
|
153
|
-
dark: '#345f59',
|
|
154
|
-
gradient: 'linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%), #AAFAF5'
|
|
155
|
-
},
|
|
156
|
-
warning: {
|
|
157
|
-
default: '#FB923C',
|
|
158
|
-
blurred: '#FDE7D5',
|
|
159
|
-
dark: '#5c523d',
|
|
160
|
-
gradient: 'linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%), #FDD3B1'
|
|
161
|
-
},
|
|
162
|
-
warning_secondary: {
|
|
163
|
-
default: '#FFC453',
|
|
164
|
-
blurred: '#FFF1D6',
|
|
165
|
-
dark: '#5c523d',
|
|
166
|
-
gradient: 'linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%), #FFE8BD'
|
|
167
|
-
},
|
|
168
|
-
error: {
|
|
169
|
-
default: '#EF4444',
|
|
170
|
-
blurred: '#F6CFD8',
|
|
171
|
-
dark: '#5a433f',
|
|
172
|
-
gradient: 'linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%), #F6CFD8'
|
|
173
|
-
},
|
|
174
|
-
critical: {
|
|
175
|
-
default: '#B80F60',
|
|
176
|
-
blurred: '#E0A6C2',
|
|
177
|
-
dark: '#4f3844',
|
|
178
|
-
gradient: 'linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%), #E0A6C2'
|
|
179
|
-
}
|
|
180
|
-
};
|
|
7
|
+
var _breakpoints = require("./objects/breakpoints");
|
|
8
|
+
var _colors = require("./objects/colors");
|
|
9
|
+
var _shadows = require("./objects/shadows");
|
|
10
|
+
var _sizes = require("./objects/sizes");
|
|
11
|
+
var _spaces = require("./objects/spaces");
|
|
12
|
+
var _typography = require("./objects/typography");
|
|
13
|
+
var _zIndexes = require("./objects/z-indexes");
|
|
181
14
|
var borderRadius = {
|
|
182
15
|
default: '0.5rem'
|
|
183
16
|
};
|
|
184
|
-
var spacing = _objectSpread(_objectSpread({}, space), {}, {
|
|
185
|
-
quarck: '0.25rem',
|
|
186
|
-
nano: '0.5rem',
|
|
187
|
-
xxxs: '1rem',
|
|
188
|
-
xxs: '1.5rem',
|
|
189
|
-
xs: '2rem',
|
|
190
|
-
sm: '2.5rem',
|
|
191
|
-
md: '3rem',
|
|
192
|
-
lg: '3.5rem',
|
|
193
|
-
xl: '4rem',
|
|
194
|
-
xxl: '5rem',
|
|
195
|
-
xxxl: '6rem',
|
|
196
|
-
huge: '6.5rem',
|
|
197
|
-
giant: '7rem'
|
|
198
|
-
});
|
|
199
|
-
var spacingest = _objectSpread(_objectSpread({}, space), {}, {
|
|
200
|
-
quarck: '0.25rem',
|
|
201
|
-
nano: '0.5rem',
|
|
202
|
-
xs: '1rem',
|
|
203
|
-
sm: '1.5rem',
|
|
204
|
-
md: '2rem',
|
|
205
|
-
lg: '2.5rem'
|
|
206
|
-
});
|
|
207
|
-
var shadow = {
|
|
208
|
-
level1: '0px 4px 8px rgba(165, 171, 179, 0.16)',
|
|
209
|
-
level2: '0px 8px 24px rgba(165, 171, 179, 0.4)',
|
|
210
|
-
level3: '0px 16px 32px rgba(165, 171, 179, 0.4)'
|
|
211
|
-
};
|
|
212
17
|
var transition = {
|
|
213
18
|
speed: '0.2s'
|
|
214
19
|
};
|
|
215
|
-
var zIndex = {
|
|
216
|
-
default: '0',
|
|
217
|
-
level1: '1',
|
|
218
|
-
level2: '2',
|
|
219
|
-
level3: '3',
|
|
220
|
-
level4: '4',
|
|
221
|
-
level6: '6',
|
|
222
|
-
level8: '8',
|
|
223
|
-
level12: '12',
|
|
224
|
-
level16: '16',
|
|
225
|
-
level24: '24',
|
|
226
|
-
level48: '48'
|
|
227
|
-
};
|
|
228
20
|
var defaultTheme = {
|
|
229
|
-
fontSizes: fontSizes,
|
|
230
|
-
fontWeight: fontWeight,
|
|
231
|
-
breakpoints: breakpoints,
|
|
232
|
-
colors: colors,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
21
|
+
fontSizes: _sizes.fontSizes,
|
|
22
|
+
fontWeight: _typography.fontWeight,
|
|
23
|
+
breakpoints: _breakpoints.breakpoints,
|
|
24
|
+
colors: _colors.colors.light,
|
|
25
|
+
lightColors: _colors.colors.light,
|
|
26
|
+
darkColors: _colors.colors.dark,
|
|
27
|
+
space: _spaces.space,
|
|
28
|
+
spacing: _spaces.spacing,
|
|
29
|
+
spacingest: _spaces.spacingest,
|
|
236
30
|
borderRadius: borderRadius,
|
|
237
|
-
shadow: shadow,
|
|
238
|
-
buttonSize: buttonSize,
|
|
31
|
+
shadow: _shadows.shadow.light,
|
|
32
|
+
buttonSize: _sizes.buttonSize,
|
|
239
33
|
transition: transition,
|
|
240
|
-
zIndex: zIndex
|
|
34
|
+
zIndex: _zIndexes.zIndex
|
|
241
35
|
};
|
|
242
36
|
exports.defaultTheme = defaultTheme;
|
|
@@ -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,15 +1,23 @@
|
|
|
1
|
-
import { defaultTheme } from '.';
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export type
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export type
|
|
1
|
+
import { defaultTheme } from '.';
|
|
2
|
+
export type ThemeBase = typeof defaultTheme;
|
|
3
|
+
export type ExtendThemeProps = ThemeBase;
|
|
4
|
+
export type ThemeBaseColors = ThemeBase['colors'];
|
|
5
|
+
export type ExtendedThemeParams = Omit<ThemeBase, 'colors'> & {
|
|
6
|
+
colors: {
|
|
7
|
+
dark: ThemeBaseColors;
|
|
8
|
+
light: ThemeBaseColors;
|
|
9
|
+
} | ThemeBaseColors;
|
|
10
|
+
};
|
|
11
|
+
export type ThemeProps = ExtendThemeProps & {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
export type CustomThemeProps = {
|
|
15
|
+
[Key in keyof ExtendThemeProps]?: Partial<ExtendThemeProps[Key] | {
|
|
16
|
+
[Key2 in keyof ExtendThemeProps[Key]]: Partial<ExtendThemeProps[Key][Key2]> | string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
export type ExtendMethodProps = (customTheme: (CustomThemeProps & {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
})) => ExtendThemeProps;
|
|
22
|
+
export type GlobalColorsProps = 'body.light' | 'body.dark' | 'primary.alert' | 'primary.alert' | 'primary.disabled' | 'primary.default' | 'primary.hover' | 'primary.focus' | 'secondary.disabled' | 'secondary.default' | 'secondary.hover' | 'secondary.focus' | 'tertiary.disabled' | 'tertiary.default' | 'tertiary.hover' | 'tertiary.focus' | 'neutral.white' | 'neutral.neutral1' | 'neutral.neutral2' | 'neutral.neutral3' | 'neutral.neutral4' | 'neutral.neutral5' | 'neutral.neutral6' | 'neutral.black' | 'background.linear1' | 'background.linear2' | 'background.linear3' | 'background.light' | 'informative.default' | 'informative.blurred' | 'informative.gradient' | 'success.default' | 'success.blurred' | 'success.gradient' | 'success_secondary.default' | 'success_secondary.blurred' | 'success_secondary.gradient' | 'warning.default' | 'warning.blurred' | 'warning.gradient' | 'warning_secondary.default' | 'warning_secondary.blurred' | 'warning_secondary.gradient' | 'error.default' | 'error.blurred' | 'error.gradient' | 'critical.default' | 'critical.blurred' | 'critical.gradient';
|
|
15
23
|
//# sourceMappingURL=theme.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../src/shared/theme/theme.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AAEjC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../src/shared/theme/theme.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AAEjC,MAAM,MAAM,SAAS,GAAG,OAAO,YAAY,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,GAAG;IAC5D,MAAM,EACF;QACE,IAAI,EAAE,eAAe,CAAC;QACtB,KAAK,EAAE,eAAe,CAAC;KACxB,GACD,eAAe,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;KAC5B,GAAG,IAAI,MAAM,gBAAgB,CAAC,CAAC,EAAE,OAAO,CACrC,gBAAgB,CAAC,GAAG,CAAC,GACrB;SACG,IAAI,IAAI,MAAM,gBAAgB,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM;KACrF,CACJ;CACF,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAC9B,WAAW,EACT,CAAE,gBAAgB,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA,KACF,gBAAgB,CAAC;AAEtB,MAAM,MAAM,iBAAiB,GACzB,YAAY,GACZ,WAAW,GACX,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,mBAAmB,GACnB,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,eAAe,GACf,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,GACpB,kBAAkB,GAClB,qBAAqB,GACrB,qBAAqB,GACrB,sBAAsB,GACtB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,2BAA2B,GAC3B,4BAA4B,GAC5B,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,2BAA2B,GAC3B,4BAA4B,GAC5B,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,CAAC"}
|
|
@@ -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,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,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
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customColorMode.d.ts","sourceRoot":"","sources":["../../src/utils/customColorMode.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAI1D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.customColorMode = customColorMode;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
function customColorMode(light, dark) {
|
|
9
|
+
var theme = (0, _react.useTheme)();
|
|
10
|
+
return theme.colorMode === 'dark' ? dark : light;
|
|
11
|
+
}
|
package/dist/utils/file.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
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
27
|
//# sourceMappingURL=file.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
|