@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
|
@@ -13,6 +13,8 @@ var _Alert = _interopRequireDefault(require("../../Alert"));
|
|
|
13
13
|
|
|
14
14
|
var _styles = require("../styles");
|
|
15
15
|
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -58,7 +60,7 @@ var Toast = function Toast(_ref) {
|
|
|
58
60
|
scale: 0.8
|
|
59
61
|
}
|
|
60
62
|
};
|
|
61
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.motion.div, {
|
|
62
64
|
layout: true,
|
|
63
65
|
variants: toastAnimationVariants,
|
|
64
66
|
initial: "initial",
|
|
@@ -68,16 +70,19 @@ var Toast = function Toast(_ref) {
|
|
|
68
70
|
duration: 0.35
|
|
69
71
|
},
|
|
70
72
|
id: id,
|
|
71
|
-
className: "pp-toast-".concat(position)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
className: "pp-toast-".concat(position),
|
|
74
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastComponent, {
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Alert.default, {
|
|
76
|
+
message: message,
|
|
77
|
+
title: title,
|
|
78
|
+
variant: "closable",
|
|
79
|
+
type: type,
|
|
80
|
+
buttonTitle: buttonTitle,
|
|
81
|
+
onButtonClick: onButtonClick,
|
|
82
|
+
onClose: handleCloseButtonClick
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
});
|
|
81
86
|
};
|
|
82
87
|
|
|
83
88
|
var _default = Toast;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ToastProviderProps } from '../types';
|
|
3
|
-
export declare const ToastContext: import("react").Context<ToastProviderProps>;
|
|
4
|
-
declare const ToastProvider: FC;
|
|
5
|
-
export default ToastProvider;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ToastProviderProps } from '../types';
|
|
3
|
+
export declare const ToastContext: import("react").Context<ToastProviderProps>;
|
|
4
|
+
declare const ToastProvider: FC;
|
|
5
|
+
export default ToastProvider;
|
|
6
6
|
//# sourceMappingURL=ToastProvider.d.ts.map
|
|
@@ -9,6 +9,8 @@ var _react = require("react");
|
|
|
9
9
|
|
|
10
10
|
var _ = _interopRequireDefault(require(".."));
|
|
11
11
|
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
14
16
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -73,13 +75,14 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
73
75
|
});
|
|
74
76
|
});
|
|
75
77
|
}, []);
|
|
76
|
-
return /*#__PURE__*/
|
|
78
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ToastContext.Provider, {
|
|
77
79
|
value: {
|
|
78
80
|
add: addToast,
|
|
79
81
|
remove: remoteToast,
|
|
80
82
|
toasts: toasts
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
+
},
|
|
84
|
+
children: [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {})]
|
|
85
|
+
});
|
|
83
86
|
};
|
|
84
87
|
|
|
85
88
|
var _default = ToastProvider;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const useToast: () => (options: import("../types").IToastConfig) => void;
|
|
2
|
-
export default useToast;
|
|
1
|
+
declare const useToast: () => (options: import("../types").IToastConfig) => void;
|
|
2
|
+
export default useToast;
|
|
3
3
|
//# sourceMappingURL=useToast.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const ToastContainer: () => JSX.Element;
|
|
3
|
-
export default ToastContainer;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ToastContainer: () => JSX.Element;
|
|
3
|
+
export default ToastContainer;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -15,76 +15,104 @@ var _ToastProvider = require("./contexts/ToastProvider");
|
|
|
15
15
|
|
|
16
16
|
var _styles = require("./styles");
|
|
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
|
-
function
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
+
|
|
26
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
27
|
|
|
22
28
|
var ToastContainer = function ToastContainer() {
|
|
23
29
|
var _useContext = (0, _react.useContext)(_ToastProvider.ToastContext),
|
|
24
30
|
toasts = _useContext.toasts,
|
|
25
31
|
remove = _useContext.remove;
|
|
26
32
|
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.StyledToastContainerOverlay, {
|
|
35
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerOverlay, {
|
|
36
|
+
position: "top",
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerInner, {
|
|
38
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
|
|
39
|
+
initial: false,
|
|
40
|
+
children: toasts && toasts.map(function (toast) {
|
|
41
|
+
return toast.config.position === 'top' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Toast.default, _objectSpread({
|
|
42
|
+
toastId: toast.id,
|
|
43
|
+
close: remove
|
|
44
|
+
}, toast.config), toast.id);
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerOverlay, {
|
|
49
|
+
position: "top-right",
|
|
50
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerInner, {
|
|
51
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
|
|
52
|
+
initial: false,
|
|
53
|
+
children: toasts && toasts.map(function (toast) {
|
|
54
|
+
return toast.config.position === 'top-right' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Toast.default, _objectSpread({
|
|
55
|
+
toastId: toast.id,
|
|
56
|
+
close: remove
|
|
57
|
+
}, toast.config), toast.id);
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerOverlay, {
|
|
62
|
+
position: "top-left",
|
|
63
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerInner, {
|
|
64
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
|
|
65
|
+
initial: false,
|
|
66
|
+
children: toasts && toasts.map(function (toast) {
|
|
67
|
+
return toast.config.position === 'top-left' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Toast.default, _objectSpread({
|
|
68
|
+
toastId: toast.id,
|
|
69
|
+
close: remove
|
|
70
|
+
}, toast.config), toast.id);
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerOverlay, {
|
|
75
|
+
position: "bottom",
|
|
76
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerInner, {
|
|
77
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
|
|
78
|
+
initial: false,
|
|
79
|
+
children: toasts && toasts.map(function (toast) {
|
|
80
|
+
return toast.config.position === 'bottom' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Toast.default, _objectSpread({
|
|
81
|
+
toastId: toast.id,
|
|
82
|
+
close: remove
|
|
83
|
+
}, toast.config), toast.id);
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
})
|
|
87
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerOverlay, {
|
|
88
|
+
position: "bottom-right",
|
|
89
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerInner, {
|
|
90
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
|
|
91
|
+
initial: false,
|
|
92
|
+
children: toasts && toasts.map(function (toast) {
|
|
93
|
+
return toast.config.position === 'bottom-right' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Toast.default, _objectSpread({
|
|
94
|
+
toastId: toast.id,
|
|
95
|
+
close: remove
|
|
96
|
+
}, toast.config), toast.id);
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerOverlay, {
|
|
101
|
+
position: "bottom-left",
|
|
102
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerInner, {
|
|
103
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
|
|
104
|
+
initial: false,
|
|
105
|
+
children: toasts && toasts.map(function (toast) {
|
|
106
|
+
return toast.config.position === 'bottom-left' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Toast.default, _objectSpread({
|
|
107
|
+
toastId: toast.id,
|
|
108
|
+
close: remove
|
|
109
|
+
}, toast.config), toast.id);
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
})
|
|
113
|
+
})]
|
|
114
|
+
})
|
|
115
|
+
});
|
|
88
116
|
};
|
|
89
117
|
|
|
90
118
|
var _default = ToastContainer;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GenericStyledProps } from '../../@types';
|
|
3
|
-
export declare const StyledToastContainerOverlay: 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 StyledToastManagerOverlay: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
} & GenericStyledProps & {
|
|
11
|
-
position: 'top' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom';
|
|
12
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
-
export declare const StyledToastManagerInner: import("@emotion/styled").StyledComponent<{
|
|
14
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
as?: import("react").ElementType<any> | undefined;
|
|
16
|
-
} & GenericStyledProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
-
export declare const StyledToastComponent: import("@emotion/styled").StyledComponent<{
|
|
18
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
-
as?: import("react").ElementType<any> | undefined;
|
|
20
|
-
} & {
|
|
21
|
-
toastPos?: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
22
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GenericStyledProps } from '../../@types';
|
|
3
|
+
export declare const StyledToastContainerOverlay: 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 StyledToastManagerOverlay: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
} & GenericStyledProps & {
|
|
11
|
+
position: 'top' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom';
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
export declare const StyledToastManagerInner: import("@emotion/styled").StyledComponent<{
|
|
14
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
+
as?: import("react").ElementType<any> | undefined;
|
|
16
|
+
} & GenericStyledProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
+
export declare const StyledToastComponent: import("@emotion/styled").StyledComponent<{
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
as?: import("react").ElementType<any> | undefined;
|
|
20
|
+
} & {
|
|
21
|
+
toastPos?: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
22
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
23
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
2
2
|
//# sourceMappingURL=toast.test.d.ts.map
|
|
@@ -8,10 +8,20 @@ var _buttonExample = _interopRequireDefault(require("./button-example"));
|
|
|
8
8
|
|
|
9
9
|
var _ToastProvider = _interopRequireDefault(require("./contexts/ToastProvider"));
|
|
10
10
|
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
|
|
11
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
14
|
|
|
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; }
|
|
16
|
+
|
|
17
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
+
|
|
19
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
+
|
|
13
21
|
var setup = function setup(props) {
|
|
14
|
-
return (0, _testUtils.render)( /*#__PURE__*/
|
|
22
|
+
return (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToastProvider.default, {
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_buttonExample.default, _objectSpread({}, props))
|
|
24
|
+
}));
|
|
15
25
|
};
|
|
16
26
|
|
|
17
27
|
describe('Toast', function () {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export declare type IToastConfig = {
|
|
2
|
-
title: string;
|
|
3
|
-
message: string;
|
|
4
|
-
position?: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
5
|
-
type?: 'default' | 'success' | 'warning' | 'error' | 'critical';
|
|
6
|
-
buttonTitle?: string;
|
|
7
|
-
onButtonClick?: () => void;
|
|
8
|
-
duration?: number;
|
|
9
|
-
onClose?: (id: string) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare type IToastConfigOnList = {
|
|
12
|
-
title: string;
|
|
13
|
-
message: string;
|
|
14
|
-
position: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
15
|
-
type: 'default' | 'success' | 'warning' | 'error' | 'critical';
|
|
16
|
-
buttonTitle?: string;
|
|
17
|
-
onButtonClick?: () => void;
|
|
18
|
-
duration: number;
|
|
19
|
-
onClose?: (id: string) => void;
|
|
20
|
-
};
|
|
21
|
-
export declare type IToastList = {
|
|
22
|
-
id: string;
|
|
23
|
-
config: IToastConfigOnList;
|
|
24
|
-
};
|
|
25
|
-
export declare type Toast = IToastConfigOnList & {
|
|
26
|
-
toastId: string;
|
|
27
|
-
close: (id: string) => void;
|
|
28
|
-
};
|
|
29
|
-
export declare type ToastProviderProps = {
|
|
30
|
-
add: (options: IToastConfig) => void;
|
|
31
|
-
remove: (id: string) => void;
|
|
32
|
-
toasts: IToastList[];
|
|
33
|
-
};
|
|
1
|
+
export declare type IToastConfig = {
|
|
2
|
+
title: string;
|
|
3
|
+
message: string;
|
|
4
|
+
position?: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
5
|
+
type?: 'default' | 'success' | 'warning' | 'error' | 'critical';
|
|
6
|
+
buttonTitle?: string;
|
|
7
|
+
onButtonClick?: () => void;
|
|
8
|
+
duration?: number;
|
|
9
|
+
onClose?: (id: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare type IToastConfigOnList = {
|
|
12
|
+
title: string;
|
|
13
|
+
message: string;
|
|
14
|
+
position: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
15
|
+
type: 'default' | 'success' | 'warning' | 'error' | 'critical';
|
|
16
|
+
buttonTitle?: string;
|
|
17
|
+
onButtonClick?: () => void;
|
|
18
|
+
duration: number;
|
|
19
|
+
onClose?: (id: string) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare type IToastList = {
|
|
22
|
+
id: string;
|
|
23
|
+
config: IToastConfigOnList;
|
|
24
|
+
};
|
|
25
|
+
export declare type Toast = IToastConfigOnList & {
|
|
26
|
+
toastId: string;
|
|
27
|
+
close: (id: string) => void;
|
|
28
|
+
};
|
|
29
|
+
export declare type ToastProviderProps = {
|
|
30
|
+
add: (options: IToastConfig) => void;
|
|
31
|
+
remove: (id: string) => void;
|
|
32
|
+
toasts: IToastList[];
|
|
33
|
+
};
|
|
34
34
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ExtendThemeProps } from 'src';
|
|
3
|
-
export declare function TesteComponent({ theme }: {
|
|
4
|
-
theme: ExtendThemeProps;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
export declare function ComponentTeste(): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExtendThemeProps } from 'src';
|
|
3
|
+
export declare function TesteComponent({ theme }: {
|
|
4
|
+
theme: ExtendThemeProps;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
export declare function ComponentTeste(): JSX.Element;
|
|
7
7
|
//# sourceMappingURL=componenteTeste.d.ts.map
|
|
@@ -8,32 +8,60 @@ exports.TesteComponent = TesteComponent;
|
|
|
8
8
|
|
|
9
9
|
var _Input = _interopRequireDefault(require("../Input"));
|
|
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 TesteComponent(_ref) {
|
|
14
16
|
var theme = _ref.theme;
|
|
15
|
-
return /*#__PURE__*/
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
16
18
|
style: {
|
|
17
19
|
padding: 10,
|
|
18
20
|
width: 200,
|
|
19
21
|
color: 'white'
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
22
|
+
},
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
24
|
+
children: "Estat\xEDsticas das transa\xE7\xF5es \xE9 dividida em duas partes:"
|
|
25
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
|
|
26
|
+
style: {
|
|
27
|
+
color: theme.colors.primary.default
|
|
28
|
+
},
|
|
29
|
+
children: "\xCDndice de convers\xE3o"
|
|
30
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
31
|
+
children: "\xC9 a raz\xE3o entre o n\xFAmero de visitantes de uma loja e a quantidade de compras, efetivamente separadas por."
|
|
32
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
34
|
+
children: "Convers\xE3o no cr\xE9tido"
|
|
35
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
36
|
+
children: "Convers\xE3o no pix"
|
|
37
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
38
|
+
children: "Convers\xE3o no boleto"
|
|
39
|
+
})]
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
|
|
41
|
+
style: {
|
|
42
|
+
color: theme.colors.primary.default
|
|
43
|
+
},
|
|
44
|
+
children: "Forma de pagamento"
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
46
|
+
children: "Trata-se apenas das porcentagens entre:"
|
|
47
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
49
|
+
children: "Convers\xE3o no cr\xE9tido"
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
51
|
+
children: "Convers\xE3o no pix"
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
53
|
+
children: "Convers\xE3o no boleto"
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
30
57
|
}
|
|
31
58
|
|
|
32
59
|
function ComponentTeste() {
|
|
33
|
-
return /*#__PURE__*/
|
|
60
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
34
61
|
style: {
|
|
35
62
|
margin: '0 auto',
|
|
36
63
|
width: 200
|
|
37
|
-
}
|
|
38
|
-
|
|
64
|
+
},
|
|
65
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.default, {})
|
|
66
|
+
});
|
|
39
67
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IInputProps } from './types';
|
|
3
|
-
declare const Tooltip: FC<IInputProps>;
|
|
4
|
-
export default Tooltip;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IInputProps } from './types';
|
|
3
|
+
declare const Tooltip: FC<IInputProps>;
|
|
4
|
+
export default Tooltip;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|