@pedidopago/ui 1.3.12 → 1.3.13
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/README.md +93 -93
- 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 +24 -24
- package/dist/components/Alert/types.d.ts +44 -44
- 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 +11 -11
- 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 +101 -101
- package/dist/components/Card/card.test.tsx.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 +16 -16
- 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 +31 -31
- package/dist/components/CheckboxInput/types.d.ts +26 -26
- 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/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/ColorPicker/utils/parsers.js +18 -18
- 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 +264 -264
- package/dist/components/DateInput/components/ModalWrapper/types.d.ts +13 -13
- package/dist/components/DateInput/dateInput.test.d.ts +1 -1
- package/dist/components/DateInput/index.d.ts +3 -3
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/DateInput/styles.d.ts +266 -266
- package/dist/components/DateInput/types.d.ts +16 -16
- package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
- package/dist/components/DatePicker/components/DatePickerContent.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.js +12 -28
- package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
- package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
- package/dist/components/DatePicker/datepicker.test.js +0 -2
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +8 -6
- package/dist/components/DatePicker/styles.d.ts +74 -74
- package/dist/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.js +27 -21
- package/dist/components/DatePicker/types.d.ts +58 -58
- 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/styles.d.ts +25 -25
- 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 +46 -46
- package/dist/components/Dropzone/types.d.ts +19 -19
- package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
- package/dist/components/Dropzone/utils/accepts.js +8 -8
- 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 +296 -296
- 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 +288 -288
- 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/men.d.ts +8 -8
- package/dist/components/Icon/data/payment.d.ts +8 -8
- package/dist/components/Icon/data/payment.d.ts.map +1 -1
- package/dist/components/Icon/data/payment.js +5 -19
- 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/build.js +2 -2
- package/dist/components/Icon/scripts/extractor.d.ts +15 -15
- package/dist/components/Icon/scripts/extractor.js +5 -5
- 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/scripts/writers.js +9 -9
- 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/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/BoletoSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CalendarSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CardSvg/index.d.ts +4 -4
- package/dist/components/Illustration/InquirySvg/index.d.ts +4 -4
- package/dist/components/Illustration/OrderSvg/index.d.ts +4 -4
- package/dist/components/Illustration/PixSvg/index.d.ts +4 -4
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts +4 -4
- package/dist/components/Illustration/TransportSvg/index.d.ts +4 -4
- 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 +6 -6
- 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/types.d.ts +25 -25
- package/dist/components/Input/index.d.ts +4 -4
- package/dist/components/Input/input.test.d.ts +1 -1
- package/dist/components/Input/styles.d.ts +68 -68
- package/dist/components/Input/types.d.ts +26 -26
- package/dist/components/Label/index.d.ts +4 -4
- 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 +15 -15
- 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 +7 -7
- package/dist/components/Modal/ModalExample.d.ts +3 -3
- 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 +27 -27
- package/dist/components/Modal/types.d.ts +35 -35
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
- package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
- package/dist/components/MultipleSelect/components/OptionsArea/OptionsArea.d.ts +18 -18
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +15 -15
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +10 -10
- package/dist/components/MultipleSelect/components/SelectArea/Label.d.ts +6 -6
- package/dist/components/MultipleSelect/components/SelectArea/Label.js +35 -35
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +18 -18
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +17 -16
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/index.js +8 -5
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +11 -0
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -0
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +42 -0
- package/dist/components/MultipleSelect/components/index.d.ts +3 -3
- package/dist/components/MultipleSelect/index.d.ts +5 -5
- package/dist/components/MultipleSelect/index.js +2 -2
- package/dist/components/MultipleSelect/types.d.ts +36 -37
- package/dist/components/MultipleSelect/types.d.ts.map +1 -1
- package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- 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/Linear/index.d.ts +3 -3
- 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/style.d.ts +38 -38
- package/dist/components/Progress/type.d.ts +69 -69
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
- 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 +30 -30
- package/dist/components/RadioInput/types.d.ts +32 -32
- package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
- package/dist/components/Rating/components/GradientIcon/data/dash.d.ts +8 -8
- package/dist/components/Rating/components/GradientIcon/data/ecommerce.d.ts +8 -8
- package/dist/components/Rating/components/GradientIcon/index.d.ts +4 -4
- package/dist/components/Rating/components/GradientIcon/scripts/build.d.ts +7 -7
- package/dist/components/Rating/components/GradientIcon/scripts/build.js +4 -4
- package/dist/components/Rating/components/GradientIcon/scripts/extractor.d.ts +15 -15
- package/dist/components/Rating/components/GradientIcon/scripts/extractor.js +5 -5
- package/dist/components/Rating/components/GradientIcon/scripts/writers.d.ts +22 -22
- package/dist/components/Rating/components/GradientIcon/scripts/writers.js +9 -9
- package/dist/components/Rating/components/GradientIcon/styles.d.ts +12 -12
- package/dist/components/Rating/components/GradientIcon/types.d.ts +15 -15
- package/dist/components/Rating/components/GradientIcon/utils/allIcons.d.ts +8 -8
- package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithMultipleValues/styles.d.ts +6 -6
- package/dist/components/Rating/components/RatingWithMultipleValues/types.d.ts +16 -16
- package/dist/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/0.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/1.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/2.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/3.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/4.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/index.d.ts +6 -6
- package/dist/components/Rating/components/RatingWithSingleValue/styles.d.ts +6 -6
- package/dist/components/Rating/components/RatingWithSingleValue/types.d.ts +10 -10
- package/dist/components/Rating/index.d.ts +4 -4
- package/dist/components/Rating/rating.test.d.ts +1 -1
- package/dist/components/Rating/types.d.ts +28 -28
- package/dist/components/Rating/utils/IconObjectsController.d.ts +9 -9
- package/dist/components/Rating/utils/svgDataTratamentFunction.d.ts +9 -9
- package/dist/components/ReactPortal/index.d.ts +7 -7
- package/dist/components/ReactPortal/index.d.ts.map +1 -1
- package/dist/components/ReactPortal/index.js +1 -1
- 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 +264 -264
- package/dist/components/Select/components/OptionsSelect/types.d.ts +15 -15
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +12 -6
- package/dist/components/Select/select.test.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +17 -17
- package/dist/components/Select/types.d.ts +22 -22
- 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 -2
- package/dist/components/Skeleton/types.d.ts +40 -35
- package/dist/components/Skeleton/types.d.ts.map +1 -1
- package/dist/components/Slider/SliderExample.d.ts +3 -3
- package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
- package/dist/components/Slider/components/SliderRail.d.ts +3 -3
- package/dist/components/Slider/components/SliderSelector.d.ts +3 -3
- package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
- package/dist/components/Slider/index.d.ts +4 -4
- package/dist/components/Slider/slider.test.d.ts +1 -1
- package/dist/components/Slider/styles.d.ts +65 -65
- package/dist/components/Slider/types.d.ts +38 -38
- 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 +288 -288
- 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/StepIconMobile/index.d.ts +3 -3
- 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 +45 -45
- package/dist/components/Steps/types.d.ts +20 -20
- package/dist/components/Steps/utils.d.ts +7 -7
- 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 +17 -17
- package/dist/components/Table/components/MenuItem.d.ts +3 -3
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/styles.d.ts +34 -34
- package/dist/components/Table/table.test.d.ts +1 -1
- package/dist/components/Table/types.d.ts +39 -39
- 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 +39 -39
- package/dist/components/Tabs/tabs.test.d.ts +1 -1
- package/dist/components/Tabs/types.d.ts +49 -49
- package/dist/components/Tag/index.d.ts +4 -4
- package/dist/components/Tag/styles.d.ts +869 -869
- package/dist/components/Tag/tag.test.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +9 -9
- package/dist/components/TextAreaInput/index.d.ts +4 -4
- package/dist/components/TextAreaInput/index.d.ts.map +1 -1
- package/dist/components/TextAreaInput/index.js +31 -21
- 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 +15 -13
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
- package/dist/components/TextAreaInput/text-area-input.test.js +13 -13
- package/dist/components/TextAreaInput/types.d.ts +26 -25
- package/dist/components/TextAreaInput/types.d.ts.map +1 -1
- package/dist/components/Thumbnail/index.d.ts +3 -3
- package/dist/components/Thumbnail/styles.d.ts +42 -42
- package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
- package/dist/components/Thumbnail/types.d.ts +28 -28
- 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/Timeline/components/Timeline.d.ts +3 -3
- 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/timeline.test.d.ts +1 -1
- package/dist/components/Timeline/types.d.ts +20 -20
- 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 +26 -26
- package/dist/components/Tooltip/components/TooltipLabel.d.ts +3 -3
- 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 +12 -7
- package/dist/components/Tooltip/styles.d.ts +261 -261
- package/dist/components/Tooltip/styles.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.js +2 -2
- package/dist/components/Tooltip/types.d.ts +22 -21
- package/dist/components/Tooltip/types.d.ts.map +1 -1
- package/dist/components/Typography/index.d.ts +4 -4
- package/dist/components/Typography/styles.d.ts +20 -20
- package/dist/components/Typography/types.d.ts +15 -15
- package/dist/components/Typography/typography.test.d.ts +1 -1
- package/dist/index.d.ts +46 -46
- package/dist/shared/components/FocusLock/index.d.ts +7 -7
- package/dist/shared/hooks/breakpoints.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoint.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoint.js +5 -5
- package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
- package/dist/shared/hooks/useKeyPress.d.ts +1 -1
- package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
- package/dist/shared/hooks/useWindowSize.d.ts +4 -4
- package/dist/shared/tests/test-utils.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/hooks/useColorMode.d.ts +4 -4
- package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
- package/dist/shared/theme/hooks/useTheme.d.ts +284 -284
- package/dist/shared/theme/index.d.ts +7 -7
- package/dist/shared/theme/theme.d.ts +282 -282
- package/dist/shared/theme/theme.test.d.ts +1 -1
- package/dist/shared/theme/theme.types.d.ts +14 -14
- package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
- package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
- package/dist/utils/GenerateKey.d.ts +10 -10
- package/dist/utils/GenerateKey.js +6 -6
- package/dist/utils/brightnessColorChange.d.ts +8 -8
- package/dist/utils/brightnessColorChange.js +6 -6
- package/dist/utils/colorCheck.d.ts +40 -40
- package/dist/utils/colorCheck.js +24 -24
- package/dist/utils/colorFunctions.d.ts +2 -2
- package/dist/utils/colorToGray.d.ts +5 -5
- package/dist/utils/fuctionsColors.d.ts +2 -2
- package/dist/utils/generateUUID.d.ts +1 -1
- package/dist/utils/getColorValue.d.ts +291 -291
- package/dist/utils/getColorValue.js +8 -8
- package/dist/utils/getSvg.d.ts +10 -10
- package/dist/utils/invertColor.d.ts +7 -7
- package/dist/utils/invertColor.js +5 -5
- package/package.json +1 -1
|
@@ -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
|
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.brightnessColorChange = brightnessColorChange;
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* Change the brightness of a color
|
|
10
|
-
* @param color : color to change;
|
|
11
|
-
* @param percent : percent of brightness;
|
|
12
|
-
* @returns : new color with changed brightness;
|
|
13
|
-
* @see https://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
|
|
8
|
+
/**
|
|
9
|
+
* Change the brightness of a color
|
|
10
|
+
* @param color : color to change;
|
|
11
|
+
* @param percent : percent of brightness;
|
|
12
|
+
* @returns : new color with changed brightness;
|
|
13
|
+
* @see https://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
|
|
14
14
|
*/
|
|
15
15
|
function brightnessColorChange(color, percent) {
|
|
16
16
|
var f = parseInt(color.slice(1), 16);
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
declare 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
|
+
declare 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
|
package/dist/utils/colorCheck.js
CHANGED
|
@@ -17,22 +17,22 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
17
17
|
|
|
18
18
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* Verifies if the provided color is a valid hex color.
|
|
22
|
-
* @param color : color value;
|
|
23
|
-
* @returns : true if color is valid, false otherwise;
|
|
24
|
-
* @see https://stackoverflow.com/questions/8027423/how-to-check-if-a-string-is-a-valid-hex-color-representation/8027444#8027444
|
|
20
|
+
/**
|
|
21
|
+
* Verifies if the provided color is a valid hex color.
|
|
22
|
+
* @param color : color value;
|
|
23
|
+
* @returns : true if color is valid, false otherwise;
|
|
24
|
+
* @see https://stackoverflow.com/questions/8027423/how-to-check-if-a-string-is-a-valid-hex-color-representation/8027444#8027444
|
|
25
25
|
*/
|
|
26
26
|
var isHexColor = function isHexColor(color) {
|
|
27
27
|
var hexColorWithSixLetters = /^#[0-9A-F]{6}$/i;
|
|
28
28
|
var hexColorWithThreeLetters = /^#([0-9A-F]{3}){1,2}$/i;
|
|
29
29
|
return hexColorWithSixLetters.test(color) || hexColorWithThreeLetters.test(color);
|
|
30
30
|
};
|
|
31
|
-
/**
|
|
32
|
-
* Verifies if the provided color is a valid rgb or hsl color.
|
|
33
|
-
* @param color : color value;
|
|
34
|
-
* @returns : true if color is valid, false otherwise;
|
|
35
|
-
* @see https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
|
|
31
|
+
/**
|
|
32
|
+
* Verifies if the provided color is a valid rgb or hsl color.
|
|
33
|
+
* @param color : color value;
|
|
34
|
+
* @returns : true if color is valid, false otherwise;
|
|
35
|
+
* @see https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
|
|
@@ -42,11 +42,11 @@ var isRgbHslColor = function isRgbHslColor(color) {
|
|
|
42
42
|
var regexModel = /^(rgb|hsl)(a?)[(]\s*([\d.]+\s*%?)\s*,\s*([\d.]+\s*%?)\s*,\s*([\d.]+\s*%?)\s*(?:,\s*([\d.]+)\s*)?[)]$/;
|
|
43
43
|
return regexModel.test(color);
|
|
44
44
|
};
|
|
45
|
-
/**
|
|
46
|
-
* Verifies if the provided color is a valid theme color and returns the theme color value.
|
|
47
|
-
* @param color : theme color tag value;
|
|
48
|
-
* @param themeColors : theme colors object;
|
|
49
|
-
* @returns : theme color value if color is valid, null otherwise;
|
|
45
|
+
/**
|
|
46
|
+
* Verifies if the provided color is a valid theme color and returns the theme color value.
|
|
47
|
+
* @param color : theme color tag value;
|
|
48
|
+
* @param themeColors : theme colors object;
|
|
49
|
+
* @returns : theme color value if color is valid, null otherwise;
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
52
|
|
|
@@ -65,11 +65,11 @@ var stripThemeColors = function stripThemeColors(color, themeColors) {
|
|
|
65
65
|
|
|
66
66
|
return null;
|
|
67
67
|
};
|
|
68
|
-
/**
|
|
69
|
-
* Convert a hex color to rgba color.
|
|
70
|
-
* @param color : hex color value;
|
|
71
|
-
* @param opacity : opacity value;
|
|
72
|
-
* @returns : rgba color value;
|
|
68
|
+
/**
|
|
69
|
+
* Convert a hex color to rgba color.
|
|
70
|
+
* @param color : hex color value;
|
|
71
|
+
* @param opacity : opacity value;
|
|
72
|
+
* @returns : rgba color value;
|
|
73
73
|
*/
|
|
74
74
|
|
|
75
75
|
|
|
@@ -82,10 +82,10 @@ var parseHexColorToRgba = function parseHexColorToRgba(color, opacity) {
|
|
|
82
82
|
|
|
83
83
|
return 'rgba(0, 0, 0, 0)';
|
|
84
84
|
};
|
|
85
|
-
/**
|
|
86
|
-
* Convert a hsl array color to string
|
|
87
|
-
* @param color : hsl color array;
|
|
88
|
-
* @returns : hsl color value;
|
|
85
|
+
/**
|
|
86
|
+
* Convert a hsl array color to string
|
|
87
|
+
* @param color : hsl color array;
|
|
88
|
+
* @returns : hsl color value;
|
|
89
89
|
*/
|
|
90
90
|
|
|
91
91
|
|
|
@@ -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/type';
|
|
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/type';
|
|
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,3 +1,3 @@
|
|
|
1
|
-
export declare function hoverFunction(col: string, amt?: number): string;
|
|
2
|
-
export declare function focusFunction(col: string, amt?: number): string;
|
|
1
|
+
export declare function hoverFunction(col: string, amt?: number): string;
|
|
2
|
+
export declare function focusFunction(col: string, amt?: number): string;
|
|
3
3
|
//# sourceMappingURL=fuctionsColors.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function generateUUID(): string;
|
|
1
|
+
export declare function generateUUID(): string;
|
|
2
2
|
//# sourceMappingURL=generateUUID.d.ts.map
|