@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,70 +1,70 @@
|
|
|
1
|
-
export declare type ArrayColor = [number, number, number];
|
|
2
|
-
export interface objectGray {
|
|
3
|
-
neutral1: ArrayColor;
|
|
4
|
-
neutral2: ArrayColor;
|
|
5
|
-
neutral3: ArrayColor;
|
|
6
|
-
neutral4: ArrayColor;
|
|
7
|
-
neutral5: ArrayColor;
|
|
8
|
-
neutral6: ArrayColor;
|
|
9
|
-
black: ArrayColor;
|
|
10
|
-
}
|
|
11
|
-
export interface ProgressBarInterface {
|
|
12
|
-
height?: string;
|
|
13
|
-
grayColor?: objectGray;
|
|
14
|
-
}
|
|
15
|
-
export interface PercentBarInterface {
|
|
16
|
-
percent: number;
|
|
17
|
-
isAnimated?: boolean;
|
|
18
|
-
color?: string;
|
|
19
|
-
grayColor?: objectGray;
|
|
20
|
-
}
|
|
21
|
-
export interface ProgressComponent {
|
|
22
|
-
type?: 'linear' | 'circle';
|
|
23
|
-
height?: 'sm' | 'md' | 'lg';
|
|
24
|
-
percent: number;
|
|
25
|
-
isAnimated?: boolean;
|
|
26
|
-
color?: string;
|
|
27
|
-
size?: number;
|
|
28
|
-
stroke?: number;
|
|
29
|
-
circleBody?: boolean;
|
|
30
|
-
grayColor?: objectGray;
|
|
31
|
-
showValue?: string;
|
|
32
|
-
steps?: number;
|
|
33
|
-
}
|
|
34
|
-
export interface Linear {
|
|
35
|
-
height?: string;
|
|
36
|
-
percent: number;
|
|
37
|
-
isAnimated?: boolean;
|
|
38
|
-
color?: string;
|
|
39
|
-
steps?: number;
|
|
40
|
-
}
|
|
41
|
-
export interface Circle {
|
|
42
|
-
height?: string;
|
|
43
|
-
percent: number;
|
|
44
|
-
isAnimated?: boolean;
|
|
45
|
-
color?: string;
|
|
46
|
-
size?: number;
|
|
47
|
-
stroke?: number;
|
|
48
|
-
circleBody?: boolean;
|
|
49
|
-
grayColor?: objectGray;
|
|
50
|
-
showValue?: string;
|
|
51
|
-
steps?: number;
|
|
52
|
-
}
|
|
53
|
-
export interface CircleStyle {
|
|
54
|
-
circumference?: number;
|
|
55
|
-
percent: number;
|
|
56
|
-
strokeWidth?: number;
|
|
57
|
-
color?: string;
|
|
58
|
-
isAnimated?: boolean;
|
|
59
|
-
}
|
|
60
|
-
export interface CircleBody {
|
|
61
|
-
strokeWidth?: number;
|
|
62
|
-
grayColor?: objectGray;
|
|
63
|
-
}
|
|
64
|
-
export interface ValueI {
|
|
65
|
-
grayColor?: objectGray;
|
|
66
|
-
height?: string;
|
|
67
|
-
size?: number;
|
|
68
|
-
colorMode?: string;
|
|
69
|
-
}
|
|
1
|
+
export declare type ArrayColor = [number, number, number];
|
|
2
|
+
export interface objectGray {
|
|
3
|
+
neutral1: ArrayColor;
|
|
4
|
+
neutral2: ArrayColor;
|
|
5
|
+
neutral3: ArrayColor;
|
|
6
|
+
neutral4: ArrayColor;
|
|
7
|
+
neutral5: ArrayColor;
|
|
8
|
+
neutral6: ArrayColor;
|
|
9
|
+
black: ArrayColor;
|
|
10
|
+
}
|
|
11
|
+
export interface ProgressBarInterface {
|
|
12
|
+
height?: string;
|
|
13
|
+
grayColor?: objectGray;
|
|
14
|
+
}
|
|
15
|
+
export interface PercentBarInterface {
|
|
16
|
+
percent: number;
|
|
17
|
+
isAnimated?: boolean;
|
|
18
|
+
color?: string;
|
|
19
|
+
grayColor?: objectGray;
|
|
20
|
+
}
|
|
21
|
+
export interface ProgressComponent {
|
|
22
|
+
type?: 'linear' | 'circle';
|
|
23
|
+
height?: 'sm' | 'md' | 'lg';
|
|
24
|
+
percent: number;
|
|
25
|
+
isAnimated?: boolean;
|
|
26
|
+
color?: string;
|
|
27
|
+
size?: number;
|
|
28
|
+
stroke?: number;
|
|
29
|
+
circleBody?: boolean;
|
|
30
|
+
grayColor?: objectGray;
|
|
31
|
+
showValue?: string;
|
|
32
|
+
steps?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface Linear {
|
|
35
|
+
height?: string;
|
|
36
|
+
percent: number;
|
|
37
|
+
isAnimated?: boolean;
|
|
38
|
+
color?: string;
|
|
39
|
+
steps?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface Circle {
|
|
42
|
+
height?: string;
|
|
43
|
+
percent: number;
|
|
44
|
+
isAnimated?: boolean;
|
|
45
|
+
color?: string;
|
|
46
|
+
size?: number;
|
|
47
|
+
stroke?: number;
|
|
48
|
+
circleBody?: boolean;
|
|
49
|
+
grayColor?: objectGray;
|
|
50
|
+
showValue?: string;
|
|
51
|
+
steps?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface CircleStyle {
|
|
54
|
+
circumference?: number;
|
|
55
|
+
percent: number;
|
|
56
|
+
strokeWidth?: number;
|
|
57
|
+
color?: string;
|
|
58
|
+
isAnimated?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface CircleBody {
|
|
61
|
+
strokeWidth?: number;
|
|
62
|
+
grayColor?: objectGray;
|
|
63
|
+
}
|
|
64
|
+
export interface ValueI {
|
|
65
|
+
grayColor?: objectGray;
|
|
66
|
+
height?: string;
|
|
67
|
+
size?: number;
|
|
68
|
+
colorMode?: string;
|
|
69
|
+
}
|
|
70
70
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ChoiceListContext, ChoiceListProps } from '../../types';
|
|
3
|
-
export declare const RadioGroup: import("react").Context<ChoiceListContext>;
|
|
4
|
-
declare const ChoiceList: FC<ChoiceListProps>;
|
|
5
|
-
export default ChoiceList;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ChoiceListContext, ChoiceListProps } from '../../types';
|
|
3
|
+
export declare const RadioGroup: import("react").Context<ChoiceListContext>;
|
|
4
|
+
declare const ChoiceList: FC<ChoiceListProps>;
|
|
5
|
+
export default ChoiceList;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IRadioInputProps } from './types';
|
|
3
|
-
declare const RadioInput: FC<IRadioInputProps>;
|
|
4
|
-
export default RadioInput;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IRadioInputProps } from './types';
|
|
3
|
+
declare const RadioInput: FC<IRadioInputProps>;
|
|
4
|
+
export default RadioInput;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
2
2
|
//# sourceMappingURL=radio-input.test.d.ts.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IStyledRadioInput } from './types';
|
|
3
|
-
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
-
export declare const Label: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
}, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
11
|
-
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
15
|
-
export declare const ChoiceWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
-
export declare const ListWrapper: import("@emotion/styled").StyledComponent<{
|
|
20
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
-
as?: import("react").ElementType<any> | undefined;
|
|
22
|
-
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
-
export declare const ChoiceLabel: import("@emotion/styled").StyledComponent<{
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any> | undefined;
|
|
26
|
-
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
27
|
-
export declare const HelpText: import("@emotion/styled").StyledComponent<{
|
|
28
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
-
as?: import("react").ElementType<any> | undefined;
|
|
30
|
-
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IStyledRadioInput } from './types';
|
|
3
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const Label: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
11
|
+
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
15
|
+
export declare const ChoiceWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const ListWrapper: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any> | undefined;
|
|
22
|
+
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
export declare const ChoiceLabel: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any> | undefined;
|
|
26
|
+
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
27
|
+
export declare const HelpText: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any> | undefined;
|
|
30
|
+
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
31
31
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface IRadioInputProps {
|
|
3
|
-
isDisabled?: boolean;
|
|
4
|
-
name?: string;
|
|
5
|
-
value: string;
|
|
6
|
-
id: string;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
color?: string;
|
|
9
|
-
defaultChecked?: boolean;
|
|
10
|
-
onChange?: (value: string) => void;
|
|
11
|
-
}
|
|
12
|
-
export interface ChoiceListProps {
|
|
13
|
-
onChangeValue?: (value: string) => void;
|
|
14
|
-
label?: string;
|
|
15
|
-
defaultValue?: string;
|
|
16
|
-
isDisabled?: boolean;
|
|
17
|
-
radiosName: string;
|
|
18
|
-
alignDirection?: 'column' | 'row';
|
|
19
|
-
color?: string;
|
|
20
|
-
helpText?: string;
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export declare type ChoiceListContext = {
|
|
24
|
-
handleRadioClick: (e: string) => void;
|
|
25
|
-
defaultValue?: string;
|
|
26
|
-
groupName: string;
|
|
27
|
-
isDisabled?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export interface IStyledRadioInput {
|
|
30
|
-
textColor?: string;
|
|
31
|
-
alignDirection?: 'column' | 'row';
|
|
32
|
-
}
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface IRadioInputProps {
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
id: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
color?: string;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface ChoiceListProps {
|
|
13
|
+
onChangeValue?: (value: string) => void;
|
|
14
|
+
label?: string;
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
radiosName: string;
|
|
18
|
+
alignDirection?: 'column' | 'row';
|
|
19
|
+
color?: string;
|
|
20
|
+
helpText?: string;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare type ChoiceListContext = {
|
|
24
|
+
handleRadioClick: (e: string) => void;
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
groupName: string;
|
|
27
|
+
isDisabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export interface IStyledRadioInput {
|
|
30
|
+
textColor?: string;
|
|
31
|
+
alignDirection?: 'column' | 'row';
|
|
32
|
+
}
|
|
33
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare function getColorsProps(hue: number): {
|
|
2
|
-
black: string;
|
|
3
|
-
gray: string;
|
|
4
|
-
grayLightness: string;
|
|
5
|
-
graySaturation: string;
|
|
6
|
-
focus: string;
|
|
7
|
-
focusChecked: string;
|
|
8
|
-
shadowLightness: string;
|
|
9
|
-
saturation: string;
|
|
10
|
-
saturationFocus: string;
|
|
11
|
-
};
|
|
1
|
+
export declare function getColorsProps(hue: number): {
|
|
2
|
+
black: string;
|
|
3
|
+
gray: string;
|
|
4
|
+
grayLightness: string;
|
|
5
|
+
graySaturation: string;
|
|
6
|
+
focus: string;
|
|
7
|
+
focusChecked: string;
|
|
8
|
+
shadowLightness: string;
|
|
9
|
+
saturation: string;
|
|
10
|
+
saturationFocus: string;
|
|
11
|
+
};
|
|
12
12
|
//# sourceMappingURL=get-colors-props.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const dashIcons: {
|
|
2
|
-
name: string;
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
viewBox: string;
|
|
6
|
-
html: string;
|
|
7
|
-
xmlns: string;
|
|
8
|
-
}[];
|
|
1
|
+
export declare const dashIcons: {
|
|
2
|
+
name: string;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
html: string;
|
|
7
|
+
xmlns: string;
|
|
8
|
+
}[];
|
|
9
9
|
//# sourceMappingURL=dash.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const ecommerceIcons: {
|
|
2
|
-
name: string;
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
viewBox: string;
|
|
6
|
-
html: string;
|
|
7
|
-
xmlns: string;
|
|
8
|
-
}[];
|
|
1
|
+
export declare const ecommerceIcons: {
|
|
2
|
+
name: string;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
html: string;
|
|
7
|
+
xmlns: string;
|
|
8
|
+
}[];
|
|
9
9
|
//# sourceMappingURL=ecommerce.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IIconComponentProps } from './types';
|
|
3
|
-
declare const Icon: FC<IIconComponentProps>;
|
|
4
|
-
export default Icon;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IIconComponentProps } from './types';
|
|
3
|
+
declare const Icon: FC<IIconComponentProps>;
|
|
4
|
+
export default Icon;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Builds the icons and types files.
|
|
3
|
-
* To run this script, you need to call this at the test file:
|
|
4
|
-
* `require('./scripts/build')` or `import build from './scripts/build'`
|
|
5
|
-
*/
|
|
6
|
-
declare const builder: () => void;
|
|
7
|
-
export default builder;
|
|
1
|
+
/**
|
|
2
|
+
* Builds the icons and types files.
|
|
3
|
+
* To run this script, you need to call this at the test file:
|
|
4
|
+
* `require('./scripts/build')` or `import build from './scripts/build'`
|
|
5
|
+
*/
|
|
6
|
+
declare const builder: () => void;
|
|
7
|
+
export default builder;
|
|
8
8
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -35,10 +35,10 @@ var twirlTimer = function twirlTimer() {
|
|
|
35
35
|
x &= 3;
|
|
36
36
|
}, 250);
|
|
37
37
|
};
|
|
38
|
-
/**
|
|
39
|
-
* Builds the icons and types files.
|
|
40
|
-
* To run this script, you need to call this at the test file:
|
|
41
|
-
* `require('./scripts/build')` or `import build from './scripts/build'`
|
|
38
|
+
/**
|
|
39
|
+
* Builds the icons and types files.
|
|
40
|
+
* To run this script, you need to call this at the test file:
|
|
41
|
+
* `require('./scripts/build')` or `import build from './scripts/build'`
|
|
42
42
|
*/
|
|
43
43
|
|
|
44
44
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extractor is a function that extracts the svg content from the icon file.
|
|
3
|
-
* @param files - The directory with the files to extract.
|
|
4
|
-
* @param currentPath - The current path of the file
|
|
5
|
-
* @returns Array of objects with the name and the content of the icon svg.
|
|
6
|
-
*/
|
|
7
|
-
declare const extractor: (files: string[], currentPath: string) => {
|
|
8
|
-
name: string;
|
|
9
|
-
width: string;
|
|
10
|
-
height: string;
|
|
11
|
-
viewBox: string;
|
|
12
|
-
xmlns: string;
|
|
13
|
-
html: string;
|
|
14
|
-
}[];
|
|
15
|
-
export default extractor;
|
|
1
|
+
/**
|
|
2
|
+
* Extractor is a function that extracts the svg content from the icon file.
|
|
3
|
+
* @param files - The directory with the files to extract.
|
|
4
|
+
* @param currentPath - The current path of the file
|
|
5
|
+
* @returns Array of objects with the name and the content of the icon svg.
|
|
6
|
+
*/
|
|
7
|
+
declare const extractor: (files: string[], currentPath: string) => {
|
|
8
|
+
name: string;
|
|
9
|
+
width: string;
|
|
10
|
+
height: string;
|
|
11
|
+
viewBox: string;
|
|
12
|
+
xmlns: string;
|
|
13
|
+
html: string;
|
|
14
|
+
}[];
|
|
15
|
+
export default extractor;
|
|
16
16
|
//# sourceMappingURL=extractor.d.ts.map
|
|
@@ -11,11 +11,11 @@ var _fs = require("fs");
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* Extractor is a function that extracts the svg content from the icon file.
|
|
16
|
-
* @param files - The directory with the files to extract.
|
|
17
|
-
* @param currentPath - The current path of the file
|
|
18
|
-
* @returns Array of objects with the name and the content of the icon svg.
|
|
14
|
+
/**
|
|
15
|
+
* Extractor is a function that extracts the svg content from the icon file.
|
|
16
|
+
* @param files - The directory with the files to extract.
|
|
17
|
+
* @param currentPath - The current path of the file
|
|
18
|
+
* @returns Array of objects with the name and the content of the icon svg.
|
|
19
19
|
*/
|
|
20
20
|
var extractor = function extractor(files, currentPath) {
|
|
21
21
|
return files.map(function (file) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
declare type iconsList = {
|
|
2
|
-
name: string;
|
|
3
|
-
width: string;
|
|
4
|
-
height: string;
|
|
5
|
-
viewBox: string;
|
|
6
|
-
html: string;
|
|
7
|
-
xmlns: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* This function generates the types file for the Icon component
|
|
11
|
-
* @param iconsList - The list of icons
|
|
12
|
-
* @param overwrite - If true, the file will be overwritten
|
|
13
|
-
*/
|
|
14
|
-
export declare const writeTypesFile: (iconsList: iconsList[], overwrite?: boolean) => void;
|
|
15
|
-
/**
|
|
16
|
-
* This function generates the icons json file for the Icon component
|
|
17
|
-
* @param iconsList - The list of icons
|
|
18
|
-
* @param jsonFileName - The name of the json file
|
|
19
|
-
* @param overwrite - If true, the file will be overwritten
|
|
20
|
-
*/
|
|
21
|
-
export declare const writeIconsFile: (iconsList: iconsList[], jsonFileName: string, overwrite?: boolean) => void;
|
|
22
|
-
export {};
|
|
1
|
+
declare type iconsList = {
|
|
2
|
+
name: string;
|
|
3
|
+
width: string;
|
|
4
|
+
height: string;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
html: string;
|
|
7
|
+
xmlns: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* This function generates the types file for the Icon component
|
|
11
|
+
* @param iconsList - The list of icons
|
|
12
|
+
* @param overwrite - If true, the file will be overwritten
|
|
13
|
+
*/
|
|
14
|
+
export declare const writeTypesFile: (iconsList: iconsList[], overwrite?: boolean) => void;
|
|
15
|
+
/**
|
|
16
|
+
* This function generates the icons json file for the Icon component
|
|
17
|
+
* @param iconsList - The list of icons
|
|
18
|
+
* @param jsonFileName - The name of the json file
|
|
19
|
+
* @param overwrite - If true, the file will be overwritten
|
|
20
|
+
*/
|
|
21
|
+
export declare const writeIconsFile: (iconsList: iconsList[], jsonFileName: string, overwrite?: boolean) => void;
|
|
22
|
+
export {};
|
|
23
23
|
//# sourceMappingURL=writers.d.ts.map
|
|
@@ -11,10 +11,10 @@ var _path = _interopRequireDefault(require("path"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* This function generates the types file for the Icon component
|
|
16
|
-
* @param iconsList - The list of icons
|
|
17
|
-
* @param overwrite - If true, the file will be overwritten
|
|
14
|
+
/**
|
|
15
|
+
* This function generates the types file for the Icon component
|
|
16
|
+
* @param iconsList - The list of icons
|
|
17
|
+
* @param overwrite - If true, the file will be overwritten
|
|
18
18
|
*/
|
|
19
19
|
var writeTypesFile = function writeTypesFile(iconsList) {
|
|
20
20
|
var overwrite = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -27,11 +27,11 @@ var writeTypesFile = function writeTypesFile(iconsList) {
|
|
|
27
27
|
}).join(' | '), ";\n\n export type IIconComponentProps = {\n name: IconName;\n size?: number | string;\n color?: GlobalColorsProps | (string & {});\n secondColor?: GlobalColorsProps | (string & {});\n }\n "));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
/**
|
|
31
|
-
* This function generates the icons json file for the Icon component
|
|
32
|
-
* @param iconsList - The list of icons
|
|
33
|
-
* @param jsonFileName - The name of the json file
|
|
34
|
-
* @param overwrite - If true, the file will be overwritten
|
|
30
|
+
/**
|
|
31
|
+
* This function generates the icons json file for the Icon component
|
|
32
|
+
* @param iconsList - The list of icons
|
|
33
|
+
* @param jsonFileName - The name of the json file
|
|
34
|
+
* @param overwrite - If true, the file will be overwritten
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ExtendThemeProps } from '../../../../shared/theme';
|
|
3
|
-
declare type StyledIconProps = {
|
|
4
|
-
theme?: ExtendThemeProps;
|
|
5
|
-
strokeColor?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const IconComponent: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
-
as?: import("react").ElementType<any> | undefined;
|
|
11
|
-
} & StyledIconProps, import("react").SVGProps<SVGSVGElement>, {}>;
|
|
12
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExtendThemeProps } from '../../../../shared/theme';
|
|
3
|
+
declare type StyledIconProps = {
|
|
4
|
+
theme?: ExtendThemeProps;
|
|
5
|
+
strokeColor?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const IconComponent: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
} & StyledIconProps, import("react").SVGProps<SVGSVGElement>, {}>;
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { GlobalColorsProps } from '../../../../shared/theme';
|
|
3
|
-
import { SizeType } from '../../types';
|
|
4
|
-
export declare type GradientIconName = 'bookmark' | 'circle' | 'droplet' | 'facebook' | 'filter' | 'folder' | 'heart' | 'hexagon' | 'message-square' | 'moon' | 'navigation-2' | 'navigation' | 'octagon' | 'play' | 'satisfaction' | 'square' | 'star' | 'tool' | 'triangle' | 'volume' | 'zap' | 'ecc-client' | 'ecc-logout';
|
|
5
|
-
export declare type fillStateType = 'filled' | 'halfFilled' | 'empty';
|
|
6
|
-
export interface IIconComponentProps extends HTMLAttributes<SVGSVGElement> {
|
|
7
|
-
name?: GradientIconName;
|
|
8
|
-
size?: number | string | SizeType;
|
|
9
|
-
color?: GlobalColorsProps | (string & {});
|
|
10
|
-
secondaryColor?: GlobalColorsProps | (string & {});
|
|
11
|
-
primaryColor?: string;
|
|
12
|
-
strokeColor?: string;
|
|
13
|
-
fillState?: fillStateType;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
}
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { GlobalColorsProps } from '../../../../shared/theme';
|
|
3
|
+
import { SizeType } from '../../types';
|
|
4
|
+
export declare type GradientIconName = 'bookmark' | 'circle' | 'droplet' | 'facebook' | 'filter' | 'folder' | 'heart' | 'hexagon' | 'message-square' | 'moon' | 'navigation-2' | 'navigation' | 'octagon' | 'play' | 'satisfaction' | 'square' | 'star' | 'tool' | 'triangle' | 'volume' | 'zap' | 'ecc-client' | 'ecc-logout';
|
|
5
|
+
export declare type fillStateType = 'filled' | 'halfFilled' | 'empty';
|
|
6
|
+
export interface IIconComponentProps extends HTMLAttributes<SVGSVGElement> {
|
|
7
|
+
name?: GradientIconName;
|
|
8
|
+
size?: number | string | SizeType;
|
|
9
|
+
color?: GlobalColorsProps | (string & {});
|
|
10
|
+
secondaryColor?: GlobalColorsProps | (string & {});
|
|
11
|
+
primaryColor?: string;
|
|
12
|
+
strokeColor?: string;
|
|
13
|
+
fillState?: fillStateType;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
16
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const allIcons: {
|
|
2
|
-
name: string;
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
viewBox: string;
|
|
6
|
-
html: string;
|
|
7
|
-
xmlns: string;
|
|
8
|
-
}[];
|
|
1
|
+
export declare const allIcons: {
|
|
2
|
+
name: string;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
html: string;
|
|
7
|
+
xmlns: string;
|
|
8
|
+
}[];
|
|
9
9
|
//# sourceMappingURL=allIcons.d.ts.map
|
package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { RatingWithMultipleValuesProps } from './types';
|
|
3
|
-
export declare function RatingWithMultipleValues({ disabled, iconsQuantity, defaultValue, readOnly, name, onChange, size, primaryColor, secondaryColor, strokeColor, onChangeValue, precision, value, }: RatingWithMultipleValuesProps): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RatingWithMultipleValuesProps } from './types';
|
|
3
|
+
export declare function RatingWithMultipleValues({ disabled, iconsQuantity, defaultValue, readOnly, name, onChange, size, primaryColor, secondaryColor, strokeColor, onChangeValue, precision, value, }: RatingWithMultipleValuesProps): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=RatingWithMultipleValues.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IStyleProps } from '../../types';
|
|
3
|
-
export declare const RatingWrapper: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IStyleProps } from '../../types';
|
|
3
|
+
export declare const RatingWrapper: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
7
|
//# sourceMappingURL=styles.d.ts.map
|