@pedidopago/ui 1.0.9 → 1.1.3
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/alert.test.js +9 -1
- package/dist/components/Alert/index.d.ts +4 -4
- package/dist/components/Alert/index.js +47 -35
- package/dist/components/Alert/styles.d.ts +36 -36
- package/dist/components/Alert/types.d.ts +48 -48
- package/dist/components/Avatar/avatar.test.d.ts +1 -1
- package/dist/components/Avatar/avatar.test.js +9 -1
- package/dist/components/Avatar/index.d.ts +4 -4
- package/dist/components/Avatar/index.js +47 -27
- 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 +4 -4
- package/dist/components/Avatar/types.d.ts +15 -15
- package/dist/components/Badge/badge.test.d.ts +1 -1
- package/dist/components/Badge/badge.test.js +9 -1
- package/dist/components/Badge/index.d.ts +4 -4
- package/dist/components/Badge/index.js +24 -15
- package/dist/components/Badge/styles.d.ts +20 -20
- package/dist/components/Badge/types.d.ts +10 -10
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/Button.test.js +165 -19
- package/dist/components/Button/index.d.ts +4 -5
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +60 -61
- package/dist/components/Button/styles.d.ts +14 -22
- package/dist/components/Button/styles.d.ts.map +1 -1
- package/dist/components/Button/styles.js +101 -23
- package/dist/components/Button/types.d.ts +103 -31
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/ButtonCard/index.d.ts +3 -3
- package/dist/components/Card/ButtonCard/index.js +24 -10
- package/dist/components/Card/ButtonCard/styles.d.ts +13 -13
- package/dist/components/Card/Expansion/index.d.ts +5 -5
- package/dist/components/Card/Expansion/index.js +24 -17
- package/dist/components/Card/Expansion/style.d.ts +14 -14
- package/dist/components/Card/card.test.d.ts +1 -1
- package/dist/components/Card/card.test.js +14 -11
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Card/index.js +43 -19
- package/dist/components/Card/styles.d.ts +56 -56
- package/dist/components/Card/types.d.ts +41 -41
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
- package/dist/components/CheckboxInput/checkbox-input.test.js +9 -1
- package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
- package/dist/components/CheckboxInput/components/MultipleCheckbox.js +58 -43
- package/dist/components/CheckboxInput/index.d.ts +4 -4
- package/dist/components/CheckboxInput/index.js +29 -18
- 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/colorpicker.test.js +9 -1
- package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorHue.js +17 -10
- package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorInput.js +3 -1
- package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPickerBox.js +13 -9
- package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPointer.js +3 -1
- package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorSelector.js +8 -2
- 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/index.js +44 -34
- 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/DatePicker/components/DatePickerContent.d.ts +3 -3
- package/dist/components/DatePicker/components/DatePickerContent.js +113 -79
- package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
- package/dist/components/DatePicker/components/DateYearPicker.js +45 -32
- package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
- package/dist/components/DatePicker/datepicker.test.js +9 -1
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/index.js +40 -29
- package/dist/components/DatePicker/styles.d.ts +74 -74
- package/dist/components/DatePicker/types.d.ts +59 -59
- 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-example.js +21 -13
- package/dist/components/Dialog/dialog.test.d.ts +1 -1
- package/dist/components/Dialog/dialog.test.js +5 -1
- package/dist/components/Dialog/index.d.ts +3 -3
- package/dist/components/Dialog/index.js +59 -46
- 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/dropzone.test.js +9 -1
- package/dist/components/Dropzone/index.d.ts +4 -4
- package/dist/components/Dropzone/index.js +122 -97
- 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/Flex/flex.test.d.ts +1 -1
- package/dist/components/Flex/flex.test.js +128 -14
- package/dist/components/Flex/index.d.ts +4 -4
- package/dist/components/Flex/index.js +11 -3
- package/dist/components/Flex/styles.d.ts +293 -293
- package/dist/components/Flex/types.d.ts +175 -175
- package/dist/components/Grid/grid.test.d.ts +1 -1
- package/dist/components/Grid/grid.test.js +86 -81
- package/dist/components/Grid/index.d.ts +4 -4
- package/dist/components/Grid/index.js +11 -3
- package/dist/components/Grid/styles.d.ts +285 -285
- 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/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/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/icon.test.js +3 -3
- package/dist/components/Icon/index.d.ts +4 -4
- package/dist/components/Icon/index.js +8 -2
- package/dist/components/Icon/scripts/build.d.ts +5 -7
- package/dist/components/Icon/scripts/build.d.ts.map +1 -1
- package/dist/components/Icon/scripts/build.js +0 -2
- 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/IconItem/IconItem.test.d.ts +1 -1
- package/dist/components/IconItem/IconItem.test.js +9 -1
- package/dist/components/IconItem/index.d.ts +4 -4
- package/dist/components/IconItem/index.js +33 -18
- package/dist/components/IconItem/styles.d.ts +18 -18
- package/dist/components/IconItem/types.d.ts +22 -22
- package/dist/components/ImageItem/imageFake.d.ts +2 -2
- package/dist/components/ImageItem/imageFake.js +13 -9
- package/dist/components/ImageItem/index.d.ts +4 -4
- package/dist/components/ImageItem/index.js +36 -24
- package/dist/components/ImageItem/input.test.d.ts +1 -1
- package/dist/components/ImageItem/input.test.js +10 -7
- package/dist/components/ImageItem/styles.d.ts +26 -26
- package/dist/components/ImageItem/types.d.ts +25 -25
- package/dist/components/Input/index.d.ts +4 -4
- package/dist/components/Input/index.js +67 -40
- package/dist/components/Input/input.test.d.ts +1 -1
- package/dist/components/Input/input.test.js +4 -4
- package/dist/components/Input/styles.d.ts +73 -73
- package/dist/components/Input/types.d.ts +26 -26
- package/dist/components/Label/index.d.ts +4 -4
- package/dist/components/Label/index.js +12 -9
- package/dist/components/Label/input.test.d.ts +1 -1
- package/dist/components/Label/input.test.js +3 -1
- package/dist/components/Label/styles.d.ts +6 -6
- package/dist/components/Label/types.d.ts +16 -16
- package/dist/components/List/index.d.ts +4 -4
- package/dist/components/List/index.js +15 -4
- package/dist/components/List/list.test.d.ts +1 -1
- package/dist/components/List/list.test.js +36 -18
- package/dist/components/List/styles.d.ts +15 -15
- package/dist/components/List/types.d.ts +6 -6
- package/dist/components/Modal/index.d.ts +3 -3
- package/dist/components/Modal/index.js +24 -19
- package/dist/components/Modal/modal.test.d.ts +1 -1
- package/dist/components/Modal/modal.test.js +44 -12
- package/dist/components/Modal/styles.d.ts +12 -12
- package/dist/components/Modal/types.d.ts +28 -28
- package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- package/dist/components/Pagination/index.js +54 -45
- package/dist/components/Pagination/pagination.test.d.ts +1 -1
- package/dist/components/Pagination/pagination.test.js +13 -11
- 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/index.js +38 -29
- package/dist/components/Progress/Linear/index.d.ts +3 -3
- package/dist/components/Progress/Linear/index.js +24 -17
- package/dist/components/Progress/getSteps.d.ts +1 -1
- package/dist/components/Progress/index.d.ts +4 -4
- package/dist/components/Progress/index.js +4 -2
- package/dist/components/Progress/progress.test.d.ts +1 -1
- package/dist/components/Progress/progress.test.js +9 -1
- package/dist/components/Progress/style.d.ts +38 -38
- package/dist/components/Progress/type.d.ts +69 -69
- package/dist/components/Progress/type.d.ts.map +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
- package/dist/components/RadioInput/components/ChoiceList/index.js +28 -20
- package/dist/components/RadioInput/index.d.ts +4 -4
- package/dist/components/RadioInput/index.js +27 -22
- package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
- package/dist/components/RadioInput/radio-input.test.js +118 -87
- package/dist/components/RadioInput/styles.d.ts +30 -30
- package/dist/components/RadioInput/types.d.ts +60 -60
- 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/index.js +24 -17
- package/dist/components/Rating/components/GradientIcon/scripts/build.d.ts +7 -7
- package/dist/components/Rating/components/GradientIcon/scripts/extractor.d.ts +15 -15
- package/dist/components/Rating/components/GradientIcon/scripts/writers.d.ts +22 -22
- 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/RatingWithMultipleValues.js +24 -22
- 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/RatingWithSingleValue.js +21 -17
- 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/index.js +29 -26
- package/dist/components/Rating/rating.test.d.ts +1 -1
- package/dist/components/Rating/rating.test.js +3 -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/SelectInput/components/InputWrapper/index.d.ts +10 -10
- package/dist/components/SelectInput/components/InputWrapper/index.js +1 -1
- package/dist/components/SelectInput/components/OptionsArea/OptionsArea.d.ts +18 -18
- package/dist/components/SelectInput/components/OptionsArea/index.d.ts +15 -15
- package/dist/components/SelectInput/components/OptionsArea/index.js +37 -32
- package/dist/components/SelectInput/components/SelectArea/ButtonsArea.d.ts +10 -10
- package/dist/components/SelectInput/components/SelectArea/Label.d.ts +6 -6
- package/dist/components/SelectInput/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
- package/dist/components/SelectInput/components/SelectArea/SelectAreaWrapper.js +1 -1
- package/dist/components/SelectInput/components/SelectArea/SelectedOptionsArea.d.ts +14 -14
- package/dist/components/SelectInput/components/SelectArea/index.d.ts +15 -15
- package/dist/components/SelectInput/components/SelectArea/index.js +46 -34
- package/dist/components/SelectInput/components/index.d.ts +3 -3
- package/dist/components/SelectInput/index.d.ts +5 -5
- package/dist/components/SelectInput/index.js +26 -23
- package/dist/components/SelectInput/selectInput.test.d.ts +1 -1
- package/dist/components/SelectInput/selectInput.test.js +10 -4
- package/dist/components/SelectInput/types.d.ts +36 -36
- package/dist/components/Skeleton/index.d.ts +4 -4
- package/dist/components/Skeleton/index.js +11 -1
- package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
- package/dist/components/Skeleton/skeleton.test.js +3 -1
- package/dist/components/Skeleton/styles.d.ts +7 -7
- package/dist/components/Skeleton/types.d.ts +35 -35
- package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
- package/dist/components/Slider/components/SliderPointer.js +23 -17
- package/dist/components/Slider/components/SliderRail.d.ts +3 -3
- package/dist/components/Slider/components/SliderRail.js +8 -2
- package/dist/components/Slider/components/SliderSelector.d.ts +3 -3
- package/dist/components/Slider/components/SliderSelector.js +86 -78
- package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
- package/dist/components/Slider/hooks/useValues.d.ts +1 -1
- package/dist/components/Slider/index.d.ts +4 -4
- package/dist/components/Slider/index.js +28 -16
- package/dist/components/Slider/slider.test.d.ts +1 -1
- package/dist/components/Slider/slider.test.js +9 -1
- package/dist/components/Slider/styles.d.ts +65 -65
- package/dist/components/Slider/styles.d.ts.map +1 -1
- package/dist/components/Slider/types.d.ts +38 -38
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/Spinner/index.d.ts +4 -4
- package/dist/components/Spinner/index.js +3 -1
- package/dist/components/Spinner/spinner.test.d.ts +1 -1
- package/dist/components/Spinner/spinner.test.js +9 -1
- package/dist/components/Spinner/styles.d.ts +285 -285
- package/dist/components/Spinner/types.d.ts +11 -11
- package/dist/components/Steps/index.d.ts +4 -4
- package/dist/components/Steps/index.js +25 -17
- package/dist/components/Steps/steps.test.d.ts +1 -1
- package/dist/components/Steps/steps.test.js +3 -1
- package/dist/components/Steps/styles.d.ts +34 -34
- package/dist/components/Steps/types.d.ts +6 -6
- package/dist/components/Switch/index.d.ts +4 -4
- package/dist/components/Switch/index.js +23 -17
- package/dist/components/Switch/input.test.d.ts +1 -1
- package/dist/components/Switch/input.test.js +3 -1
- package/dist/components/Switch/styles.d.ts +18 -18
- package/dist/components/Switch/types.d.ts +15 -15
- package/dist/components/Table/components/MenuItem.d.ts +3 -3
- package/dist/components/Table/components/MenuItem.js +16 -13
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/index.js +139 -99
- package/dist/components/Table/styles.d.ts +34 -34
- package/dist/components/Table/table.test.d.ts +1 -1
- package/dist/components/Table/table.test.js +3 -1
- package/dist/components/Table/types.d.ts +37 -37
- package/dist/components/Tabs/TabsExample.d.ts +3 -3
- package/dist/components/Tabs/TabsExample.js +37 -23
- package/dist/components/Tabs/components/Tab.d.ts +3 -3
- package/dist/components/Tabs/components/Tab.js +14 -5
- package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
- package/dist/components/Tabs/components/TabPanel.js +8 -3
- package/dist/components/Tabs/components/Tabs.d.ts +4 -4
- package/dist/components/Tabs/components/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/components/Tabs.js +38 -26
- package/dist/components/Tabs/index.d.ts +3 -3
- package/dist/components/Tabs/styles.d.ts +39 -37
- package/dist/components/Tabs/styles.d.ts.map +1 -1
- package/dist/components/Tabs/styles.js +29 -21
- package/dist/components/Tabs/tabs.test.d.ts +1 -1
- package/dist/components/Tabs/tabs.test.js +103 -83
- package/dist/components/Tabs/types.d.ts +49 -48
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Tag/index.d.ts +4 -4
- package/dist/components/Tag/index.js +21 -16
- package/dist/components/Tag/styles.d.ts +860 -860
- package/dist/components/Tag/tag.test.d.ts +1 -1
- package/dist/components/Tag/tag.test.js +9 -7
- package/dist/components/Tag/types.d.ts +9 -9
- package/dist/components/TextAreaInput/index.d.ts +4 -4
- package/dist/components/TextAreaInput/index.js +25 -15
- package/dist/components/TextAreaInput/styles.d.ts +18 -18
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
- package/dist/components/TextAreaInput/text-area-input.test.js +8 -2
- package/dist/components/TextAreaInput/types.d.ts +25 -25
- package/dist/components/Thumbnail/index.d.ts +3 -3
- package/dist/components/Thumbnail/index.js +71 -60
- package/dist/components/Thumbnail/styles.d.ts +42 -42
- package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
- package/dist/components/Thumbnail/thumbnail.test.js +9 -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/Timeline.js +9 -5
- package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineContent.js +31 -15
- package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
- package/dist/components/Timeline/components/TimelineItem.js +11 -1
- package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineSeparator.js +9 -4
- 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/timeline.test.js +105 -76
- package/dist/components/Timeline/types.d.ts +20 -20
- package/dist/components/Toast/button-example.d.ts +6 -6
- package/dist/components/Toast/button-example.js +10 -5
- package/dist/components/Toast/components/Toast.d.ts +4 -4
- package/dist/components/Toast/components/Toast.js +16 -11
- package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
- package/dist/components/Toast/contexts/ToastProvider.js +6 -3
- package/dist/components/Toast/hooks/useToast.d.ts +2 -2
- package/dist/components/Toast/index.d.ts +3 -3
- package/dist/components/Toast/index.js +90 -62
- package/dist/components/Toast/styles.d.ts +22 -22
- package/dist/components/Toast/toast.test.d.ts +1 -1
- package/dist/components/Toast/toast.test.js +11 -1
- package/dist/components/Toast/types.d.ts +33 -33
- package/dist/components/Tooltip/componenteTeste.d.ts +6 -6
- package/dist/components/Tooltip/componenteTeste.js +42 -14
- package/dist/components/Tooltip/index.d.ts +4 -4
- package/dist/components/Tooltip/index.js +56 -46
- package/dist/components/Tooltip/styles.d.ts +273 -273
- package/dist/components/Tooltip/tooltip.test.d.ts +1 -1
- package/dist/components/Tooltip/tooltip.test.js +13 -8
- package/dist/components/Tooltip/types.d.ts +29 -29
- package/dist/components/Tooltip/util.d.ts +27 -27
- package/dist/components/Typography/index.d.ts +4 -4
- package/dist/components/Typography/index.js +11 -3
- package/dist/components/Typography/styles.d.ts +20 -20
- package/dist/components/Typography/types.d.ts +15 -15
- package/dist/components/Typography/types.d.ts.map +1 -1
- package/dist/components/Typography/typography.test.d.ts +1 -1
- package/dist/components/Typography/typography.test.js +3 -1
- package/dist/index.d.ts +40 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -9
- package/dist/shared/components/FocusLock/index.d.ts +7 -7
- package/dist/shared/components/FocusLock/index.js +11 -4
- package/dist/shared/hooks/breakpoints.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoint.d.ts +8 -8
- package/dist/shared/hooks/useKeyPress.d.ts +1 -1
- package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
- package/dist/shared/tests/test-utils.d.ts +4 -4
- package/dist/shared/tests/test-utils.js +6 -3
- package/dist/shared/theme/button-example.d.ts +2 -2
- package/dist/shared/theme/button-example.js +6 -3
- 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 +12 -29
- 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 +281 -281
- package/dist/shared/theme/index.d.ts +7 -7
- package/dist/shared/theme/theme.d.ts +279 -279
- package/dist/shared/theme/theme.test.d.ts +1 -1
- package/dist/shared/theme/theme.test.js +25 -11
- 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/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/fuctionsColors.d.ts +2 -2
- package/dist/utils/generateUUID.d.ts +1 -1
- package/dist/utils/getColorValue.d.ts +297 -297
- package/dist/utils/getSvg.d.ts +10 -10
- package/dist/utils/invertColor.d.ts +7 -7
- package/package.json +18 -15
- package/dist/components/Menu/components/Submenu.d.ts +0 -5
- package/dist/components/Menu/components/Submenu.d.ts.map +0 -1
- package/dist/components/Menu/components/Submenu.js +0 -73
- package/dist/components/Menu/index.d.ts +0 -5
- package/dist/components/Menu/index.d.ts.map +0 -1
- package/dist/components/Menu/index.js +0 -34
- package/dist/components/Menu/menu.test.d.ts +0 -2
- package/dist/components/Menu/menu.test.d.ts.map +0 -1
- package/dist/components/Menu/menu.test.js +0 -188
- package/dist/components/Menu/styles.d.ts +0 -30
- package/dist/components/Menu/styles.d.ts.map +0 -1
- package/dist/components/Menu/styles.js +0 -115
- package/dist/components/Menu/types.d.ts +0 -25
- package/dist/components/Menu/types.d.ts.map +0 -1
- package/dist/components/Menu/types.js +0 -1
- package/dist/components/Slider/icons/pointer.js +0 -15
- package/dist/shared/logos/pp_logo_horizontal.js +0 -51
- package/dist/shared/logos/pp_logo_horizontal_dark_mode.js +0 -51
- package/dist/shared/logos/pp_logo_vertical.js +0 -51
- package/dist/shared/logos/pp_logo_vertical_dark_mode.js +0 -51
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.js
CHANGED
|
@@ -15,6 +15,8 @@ var _GradientIcon = _interopRequireDefault(require("../GradientIcon"));
|
|
|
15
15
|
|
|
16
16
|
var _svgDataTratamentFunction = require("../../utils/svgDataTratamentFunction");
|
|
17
17
|
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
20
22
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -111,29 +113,29 @@ function RatingWithMultipleValues(_ref) {
|
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
|
|
114
|
-
return /*#__PURE__*/
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.RatingWrapper, {
|
|
115
117
|
disabled: disabled,
|
|
116
118
|
onMouseLeave: RatingWrapperMouseLeave,
|
|
117
119
|
ref: RatingWrapperRef,
|
|
118
|
-
"data-testid": "rating-wrapper"
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
})
|
|
138
|
-
})
|
|
120
|
+
"data-testid": "rating-wrapper",
|
|
121
|
+
children: icons.map(function (icon) {
|
|
122
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientIcon.default, {
|
|
123
|
+
size: size,
|
|
124
|
+
"data-testid": "rating-icon-".concat(icon.id),
|
|
125
|
+
name: name,
|
|
126
|
+
primaryColor: primaryColor,
|
|
127
|
+
secondaryColor: secondaryColor,
|
|
128
|
+
strokeColor: strokeColor,
|
|
129
|
+
onMouseMove: function onMouseMove(e) {
|
|
130
|
+
return handleMouseMove(e, icon.id);
|
|
131
|
+
},
|
|
132
|
+
onMouseLeave: function onMouseLeave(e) {
|
|
133
|
+
return handleMouseMove(e, icon.id);
|
|
134
|
+
},
|
|
135
|
+
onClick: handleClick,
|
|
136
|
+
fillState: icon.fillState,
|
|
137
|
+
disabled: disabled
|
|
138
|
+
}, icon.id);
|
|
139
|
+
})
|
|
140
|
+
});
|
|
139
141
|
}
|
|
@@ -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
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { GradientIconName } from '../GradientIcon/types';
|
|
2
|
-
export interface RatingWithMultipleValuesProps {
|
|
3
|
-
disabled: boolean;
|
|
4
|
-
iconsQuantity: number;
|
|
5
|
-
defaultValue: number;
|
|
6
|
-
readOnly: boolean;
|
|
7
|
-
size: string | number;
|
|
8
|
-
primaryColor?: string;
|
|
9
|
-
secondaryColor?: string;
|
|
10
|
-
strokeColor?: string;
|
|
11
|
-
name: GradientIconName;
|
|
12
|
-
precision: '1' | '0.5';
|
|
13
|
-
value: number;
|
|
14
|
-
onChange?: (value: number) => void;
|
|
15
|
-
onChangeValue?: (value: number) => void;
|
|
16
|
-
}
|
|
1
|
+
import { GradientIconName } from '../GradientIcon/types';
|
|
2
|
+
export interface RatingWithMultipleValuesProps {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
iconsQuantity: number;
|
|
5
|
+
defaultValue: number;
|
|
6
|
+
readOnly: boolean;
|
|
7
|
+
size: string | number;
|
|
8
|
+
primaryColor?: string;
|
|
9
|
+
secondaryColor?: string;
|
|
10
|
+
strokeColor?: string;
|
|
11
|
+
name: GradientIconName;
|
|
12
|
+
precision: '1' | '0.5';
|
|
13
|
+
value: number;
|
|
14
|
+
onChange?: (value: number) => void;
|
|
15
|
+
onChangeValue?: (value: number) => void;
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { RatingWithSingleValueProps } from './types';
|
|
3
|
-
export declare function RatingWithSingleValue({ disabled, size, onChangeValue, primaryColor, secondaryColor, }: RatingWithSingleValueProps): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RatingWithSingleValueProps } from './types';
|
|
3
|
+
export declare function RatingWithSingleValue({ disabled, size, onChangeValue, primaryColor, secondaryColor, }: RatingWithSingleValueProps): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=RatingWithSingleValue.d.ts.map
|
|
@@ -11,6 +11,8 @@ var _icons = require("./icons");
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
14
16
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
17
|
|
|
16
18
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -49,21 +51,23 @@ function RatingWithSingleValue(_ref) {
|
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
return /*#__PURE__*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
55
|
+
children: _icons.icons.map(function (icon) {
|
|
56
|
+
icon.icon.props.width = size;
|
|
57
|
+
icon.icon.props.height = size;
|
|
58
|
+
|
|
59
|
+
icon.icon.props.onClick = function () {
|
|
60
|
+
return handleClick(icon.id);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.RatingWrapper, {
|
|
64
|
+
disabled: disabled,
|
|
65
|
+
"data-testid": "rating-wrapper",
|
|
66
|
+
active: icon.id === currentValue,
|
|
67
|
+
primaryColor: primaryColor,
|
|
68
|
+
secondaryColor: secondaryColor,
|
|
69
|
+
children: icon.icon
|
|
70
|
+
}, icon.id);
|
|
71
|
+
})
|
|
72
|
+
});
|
|
69
73
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("react").ReactSVGElement;
|
|
3
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ReactSVGElement;
|
|
3
|
+
export default _default;
|
|
4
4
|
//# sourceMappingURL=0.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("react").ReactSVGElement;
|
|
3
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ReactSVGElement;
|
|
3
|
+
export default _default;
|
|
4
4
|
//# sourceMappingURL=1.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("react").ReactSVGElement;
|
|
3
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ReactSVGElement;
|
|
3
|
+
export default _default;
|
|
4
4
|
//# sourceMappingURL=2.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("react").ReactSVGElement;
|
|
3
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ReactSVGElement;
|
|
3
|
+
export default _default;
|
|
4
4
|
//# sourceMappingURL=3.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("react").ReactSVGElement;
|
|
3
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ReactSVGElement;
|
|
3
|
+
export default _default;
|
|
4
4
|
//# sourceMappingURL=4.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const icons: {
|
|
3
|
-
id: number;
|
|
4
|
-
icon: import("react").ReactSVGElement;
|
|
5
|
-
selected: boolean;
|
|
6
|
-
}[];
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const icons: {
|
|
3
|
+
id: number;
|
|
4
|
+
icon: import("react").ReactSVGElement;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
}[];
|
|
7
7
|
//# sourceMappingURL=index.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
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface RatingWithSingleValueProps {
|
|
2
|
-
disabled: boolean;
|
|
3
|
-
primaryColor?: string;
|
|
4
|
-
secondaryColor?: string;
|
|
5
|
-
strokeColor?: string;
|
|
6
|
-
readOnly: boolean;
|
|
7
|
-
size: string | number;
|
|
8
|
-
onChange?: (value: number) => void;
|
|
9
|
-
onChangeValue?: (value: number) => void;
|
|
10
|
-
}
|
|
1
|
+
export interface RatingWithSingleValueProps {
|
|
2
|
+
disabled: boolean;
|
|
3
|
+
primaryColor?: string;
|
|
4
|
+
secondaryColor?: string;
|
|
5
|
+
strokeColor?: string;
|
|
6
|
+
readOnly: boolean;
|
|
7
|
+
size: string | number;
|
|
8
|
+
onChange?: (value: number) => void;
|
|
9
|
+
onChangeValue?: (value: number) => void;
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IInputProps } from './types';
|
|
3
|
-
declare const RatingComponent: FC<IInputProps>;
|
|
4
|
-
export default RatingComponent;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IInputProps } from './types';
|
|
3
|
+
declare const RatingComponent: FC<IInputProps>;
|
|
4
|
+
export default RatingComponent;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,6 +13,8 @@ var _RatingWithMultipleValues = require("./components/RatingWithMultipleValues/R
|
|
|
13
13
|
|
|
14
14
|
var _RatingWithSingleValue = require("./components/RatingWithSingleValue/RatingWithSingleValue");
|
|
15
15
|
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
16
18
|
var RatingComponent = function RatingComponent(_ref) {
|
|
17
19
|
var _ref$precision = _ref.precision,
|
|
18
20
|
precision = _ref$precision === void 0 ? '0.5' : _ref$precision,
|
|
@@ -40,32 +42,33 @@ var RatingComponent = function RatingComponent(_ref) {
|
|
|
40
42
|
theme = _useTheme.theme;
|
|
41
43
|
|
|
42
44
|
var parsedSize = size === 'small' ? '16px' : size === 'medium' ? '24px' : size === 'large' ? '32px' : size;
|
|
43
|
-
return /*#__PURE__*/
|
|
44
|
-
theme: theme
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
45
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.ThemeProvider, {
|
|
46
|
+
theme: theme,
|
|
47
|
+
children: name !== 'satisfaction' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_RatingWithMultipleValues.RatingWithMultipleValues, {
|
|
48
|
+
name: name,
|
|
49
|
+
defaultValue: defaultValue,
|
|
50
|
+
disabled: disabled,
|
|
51
|
+
iconsQuantity: iconsQuantity,
|
|
52
|
+
precision: precision,
|
|
53
|
+
readOnly: readOnly,
|
|
54
|
+
primaryColor: primaryColor,
|
|
55
|
+
secondaryColor: secondaryColor,
|
|
56
|
+
strokeColor: strokeColor,
|
|
57
|
+
value: value,
|
|
58
|
+
size: parsedSize,
|
|
59
|
+
onChangeValue: onChangeValue,
|
|
60
|
+
onChange: onChange
|
|
61
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_RatingWithSingleValue.RatingWithSingleValue, {
|
|
62
|
+
disabled: disabled,
|
|
63
|
+
size: parsedSize,
|
|
64
|
+
onChange: onChange,
|
|
65
|
+
primaryColor: primaryColor,
|
|
66
|
+
secondaryColor: secondaryColor,
|
|
67
|
+
strokeColor: strokeColor,
|
|
68
|
+
onChangeValue: onChangeValue,
|
|
69
|
+
readOnly: readOnly
|
|
70
|
+
})
|
|
71
|
+
});
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
var _default = RatingComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
2
2
|
//# sourceMappingURL=rating.test.d.ts.map
|
|
@@ -8,6 +8,8 @@ require("@testing-library/jest-dom/extend-expect");
|
|
|
8
8
|
|
|
9
9
|
var _ = _interopRequireDefault(require("."));
|
|
10
10
|
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
|
|
11
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
14
|
|
|
13
15
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -18,7 +20,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
18
20
|
|
|
19
21
|
var setup = function setup() {
|
|
20
22
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
21
|
-
var utils = (0, _testUtils.render)( /*#__PURE__*/
|
|
23
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
22
24
|
var RatingWrapper = utils.getByTestId('rating-wrapper');
|
|
23
25
|
var RatingIcon = utils.getByTestId('rating-icon-0');
|
|
24
26
|
return _objectSpread({
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ExtendThemeProps } from '../../shared/theme';
|
|
2
|
-
import { GradientIconName } from './components/GradientIcon/types';
|
|
3
|
-
export declare type SizeType = 'small' | 'medium' | 'large';
|
|
4
|
-
export declare type IStyleProps = {
|
|
5
|
-
primaryColor?: string;
|
|
6
|
-
secondaryColor?: string;
|
|
7
|
-
theme?: ExtendThemeProps;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
active?: boolean;
|
|
10
|
-
size?: SizeType;
|
|
11
|
-
isActive?: boolean;
|
|
12
|
-
SwitchType?: 'success' | 'error' | 'warning' | 'informative' | 'critical' | 'success_secondary' | 'warning_secondary';
|
|
13
|
-
};
|
|
14
|
-
export declare type IInputProps = {
|
|
15
|
-
name: GradientIconName;
|
|
16
|
-
value?: number;
|
|
17
|
-
defaultValue?: number;
|
|
18
|
-
iconsQuantity?: number;
|
|
19
|
-
precision?: '1' | '0.5';
|
|
20
|
-
size?: SizeType;
|
|
21
|
-
readOnly?: boolean;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
primaryColor?: string;
|
|
24
|
-
secondaryColor?: string;
|
|
25
|
-
strokeColor?: string;
|
|
26
|
-
onChangeValue?: (value: number) => void;
|
|
27
|
-
onChange?: (value: number) => void;
|
|
28
|
-
};
|
|
1
|
+
import { ExtendThemeProps } from '../../shared/theme';
|
|
2
|
+
import { GradientIconName } from './components/GradientIcon/types';
|
|
3
|
+
export declare type SizeType = 'small' | 'medium' | 'large';
|
|
4
|
+
export declare type IStyleProps = {
|
|
5
|
+
primaryColor?: string;
|
|
6
|
+
secondaryColor?: string;
|
|
7
|
+
theme?: ExtendThemeProps;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
size?: SizeType;
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
SwitchType?: 'success' | 'error' | 'warning' | 'informative' | 'critical' | 'success_secondary' | 'warning_secondary';
|
|
13
|
+
};
|
|
14
|
+
export declare type IInputProps = {
|
|
15
|
+
name: GradientIconName;
|
|
16
|
+
value?: number;
|
|
17
|
+
defaultValue?: number;
|
|
18
|
+
iconsQuantity?: number;
|
|
19
|
+
precision?: '1' | '0.5';
|
|
20
|
+
size?: SizeType;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
primaryColor?: string;
|
|
24
|
+
secondaryColor?: string;
|
|
25
|
+
strokeColor?: string;
|
|
26
|
+
onChangeValue?: (value: number) => void;
|
|
27
|
+
onChange?: (value: number) => void;
|
|
28
|
+
};
|
|
29
29
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fillStateType } from '../components/GradientIcon/types';
|
|
2
|
-
export interface IIconsObject {
|
|
3
|
-
id: number;
|
|
4
|
-
fillState: 'filled' | 'halfFilled' | 'empty';
|
|
5
|
-
}
|
|
6
|
-
export declare function createIconObjects(stars: number, defaultValue?: number): IIconsObject[];
|
|
7
|
-
export declare function makeIconEmptyById(icons: IIconsObject[], id: number): IIconsObject[];
|
|
8
|
-
export declare function controlIconsFillState(icons: IIconsObject[], id: number, fillState: fillStateType): IIconsObject[];
|
|
9
|
-
export declare function convertFillStateToValue(icons: IIconsObject[]): number;
|
|
1
|
+
import { fillStateType } from '../components/GradientIcon/types';
|
|
2
|
+
export interface IIconsObject {
|
|
3
|
+
id: number;
|
|
4
|
+
fillState: 'filled' | 'halfFilled' | 'empty';
|
|
5
|
+
}
|
|
6
|
+
export declare function createIconObjects(stars: number, defaultValue?: number): IIconsObject[];
|
|
7
|
+
export declare function makeIconEmptyById(icons: IIconsObject[], id: number): IIconsObject[];
|
|
8
|
+
export declare function controlIconsFillState(icons: IIconsObject[], id: number, fillState: fillStateType): IIconsObject[];
|
|
9
|
+
export declare function convertFillStateToValue(icons: IIconsObject[]): number;
|
|
10
10
|
//# sourceMappingURL=IconObjectsController.d.ts.map
|