@pedidopago/ui 1.1.0 → 1.1.4
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.js +12 -6
- 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
|
@@ -8,8 +8,18 @@ var _ = require(".");
|
|
|
8
8
|
|
|
9
9
|
var _ThemeContext = require("../../shared/theme/contexts/ThemeContext");
|
|
10
10
|
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
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; }
|
|
16
|
+
|
|
17
|
+
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; }
|
|
18
|
+
|
|
11
19
|
function setup(props) {
|
|
12
|
-
var componentRender = (0, _testUtils.render)( /*#__PURE__*/
|
|
20
|
+
var componentRender = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ThemeContext.PPUIThemeProvider, {
|
|
21
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Modal, _objectSpread({}, props))
|
|
22
|
+
}));
|
|
13
23
|
return {
|
|
14
24
|
overlay: componentRender.container.childNodes[0],
|
|
15
25
|
modal: componentRender.container.childNodes[1]
|
|
@@ -21,7 +31,9 @@ describe('Modal', function () {
|
|
|
21
31
|
var _setup = setup({
|
|
22
32
|
open: true,
|
|
23
33
|
onClose: function onClose() {},
|
|
24
|
-
children: /*#__PURE__*/
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
children: "Modal"
|
|
36
|
+
})
|
|
25
37
|
}),
|
|
26
38
|
modal = _setup.modal;
|
|
27
39
|
|
|
@@ -31,7 +43,9 @@ describe('Modal', function () {
|
|
|
31
43
|
var modal = setup({
|
|
32
44
|
open: true,
|
|
33
45
|
onClose: function onClose() {},
|
|
34
|
-
children: /*#__PURE__*/
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
47
|
+
children: "Hello world!"
|
|
48
|
+
})
|
|
35
49
|
});
|
|
36
50
|
expect(modal.overlay).toHaveStyle({
|
|
37
51
|
opacity: 0.1,
|
|
@@ -46,7 +60,9 @@ describe('Modal', function () {
|
|
|
46
60
|
var modal = setup({
|
|
47
61
|
open: false,
|
|
48
62
|
onClose: function onClose() {},
|
|
49
|
-
children: /*#__PURE__*/
|
|
63
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
64
|
+
children: "Hello world!"
|
|
65
|
+
})
|
|
50
66
|
});
|
|
51
67
|
expect(modal.overlay).toHaveStyle({
|
|
52
68
|
opacity: 0,
|
|
@@ -63,7 +79,9 @@ describe('Modal', function () {
|
|
|
63
79
|
onClose: function onClose() {},
|
|
64
80
|
left: '10px',
|
|
65
81
|
top: '10px',
|
|
66
|
-
children: /*#__PURE__*/
|
|
82
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
83
|
+
children: "Hello world!"
|
|
84
|
+
})
|
|
67
85
|
});
|
|
68
86
|
expect(modal.modal).toHaveStyle({
|
|
69
87
|
left: 'calc(10px + 0px)',
|
|
@@ -75,7 +93,9 @@ describe('Modal', function () {
|
|
|
75
93
|
open: true,
|
|
76
94
|
onClose: function onClose() {},
|
|
77
95
|
anchorX: 'left',
|
|
78
|
-
children: /*#__PURE__*/
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
97
|
+
children: "Hello world!"
|
|
98
|
+
})
|
|
79
99
|
});
|
|
80
100
|
expect(modal.modal).toHaveStyle({
|
|
81
101
|
transform: 'translate(0%, -50%) scale(1)'
|
|
@@ -86,7 +106,9 @@ describe('Modal', function () {
|
|
|
86
106
|
open: true,
|
|
87
107
|
onClose: function onClose() {},
|
|
88
108
|
anchorX: 'right',
|
|
89
|
-
children: /*#__PURE__*/
|
|
109
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
110
|
+
children: "Hello world!"
|
|
111
|
+
})
|
|
90
112
|
});
|
|
91
113
|
expect(modal.modal).toHaveStyle({
|
|
92
114
|
transform: 'translate(-100%, -50%) scale(1)'
|
|
@@ -97,7 +119,9 @@ describe('Modal', function () {
|
|
|
97
119
|
open: true,
|
|
98
120
|
onClose: function onClose() {},
|
|
99
121
|
anchorX: 'center',
|
|
100
|
-
children: /*#__PURE__*/
|
|
122
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
123
|
+
children: "Hello world!"
|
|
124
|
+
})
|
|
101
125
|
});
|
|
102
126
|
expect(modal.modal).toHaveStyle({
|
|
103
127
|
transform: 'translate(-50%, -50%) scale(1)'
|
|
@@ -108,7 +132,9 @@ describe('Modal', function () {
|
|
|
108
132
|
open: true,
|
|
109
133
|
onClose: function onClose() {},
|
|
110
134
|
anchorY: 'top',
|
|
111
|
-
children: /*#__PURE__*/
|
|
135
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
136
|
+
children: "Hello world!"
|
|
137
|
+
})
|
|
112
138
|
});
|
|
113
139
|
expect(modal.modal).toHaveStyle({
|
|
114
140
|
transform: 'translate(-50%, 0%) scale(1)'
|
|
@@ -119,7 +145,9 @@ describe('Modal', function () {
|
|
|
119
145
|
open: true,
|
|
120
146
|
onClose: function onClose() {},
|
|
121
147
|
anchorY: 'bottom',
|
|
122
|
-
children: /*#__PURE__*/
|
|
148
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
149
|
+
children: "Hello world!"
|
|
150
|
+
})
|
|
123
151
|
});
|
|
124
152
|
expect(modal.modal).toHaveStyle({
|
|
125
153
|
transform: 'translate(-50%, -100%) scale(1)'
|
|
@@ -130,7 +158,9 @@ describe('Modal', function () {
|
|
|
130
158
|
open: true,
|
|
131
159
|
onClose: function onClose() {},
|
|
132
160
|
anchorY: 'center',
|
|
133
|
-
children: /*#__PURE__*/
|
|
161
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
162
|
+
children: "Hello world!"
|
|
163
|
+
})
|
|
134
164
|
});
|
|
135
165
|
expect(modal.modal).toHaveStyle({
|
|
136
166
|
transform: 'translate(-50%, -50%) scale(1)'
|
|
@@ -141,7 +171,9 @@ describe('Modal', function () {
|
|
|
141
171
|
open: true,
|
|
142
172
|
onClose: function onClose() {},
|
|
143
173
|
maxWidth: '200px',
|
|
144
|
-
children: /*#__PURE__*/
|
|
174
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
175
|
+
children: "Hello world!"
|
|
176
|
+
})
|
|
145
177
|
});
|
|
146
178
|
expect(modal.modal).toHaveStyle({
|
|
147
179
|
maxWidth: '200px'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Theme } from '@emotion/react';
|
|
3
|
-
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
maxWidth?: string | undefined;
|
|
8
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const Overlay: import("@emotion/styled").StyledComponent<{
|
|
10
|
-
theme?: Theme | undefined;
|
|
11
|
-
as?: import("react").ElementType<any> | undefined;
|
|
12
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
maxWidth?: string | undefined;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const Overlay: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
13
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare type AnchorX = 'left' | 'center' | 'right' | number;
|
|
3
|
-
export declare type AnchorY = 'top' | 'center' | 'bottom' | number;
|
|
4
|
-
export interface IModalProps {
|
|
5
|
-
/** If the modal is open or not. */
|
|
6
|
-
open: boolean;
|
|
7
|
-
/** Optional. Sets the left position where the modal will be shown. */
|
|
8
|
-
left?: string;
|
|
9
|
-
/** Optional. Sets the top position where the modal will be shown. */
|
|
10
|
-
top?: string;
|
|
11
|
-
/** Optional. The Modal horizontal anchor.
|
|
12
|
-
* 0 is the left most side.
|
|
13
|
-
* 100 is the right most size. */
|
|
14
|
-
anchorX?: AnchorX;
|
|
15
|
-
/** Optional. The Modal vertical anchor.
|
|
16
|
-
* 0 is the left most side.
|
|
17
|
-
* 100 is the right most size. */
|
|
18
|
-
anchorY?: AnchorY;
|
|
19
|
-
/** Optional. Offsets the Modal horizontally. */
|
|
20
|
-
offsetX?: string;
|
|
21
|
-
/** Optional. Offsets the Modal vertically. */
|
|
22
|
-
offsetY?: string;
|
|
23
|
-
/** The max width of the Modal. */
|
|
24
|
-
maxWidth?: string;
|
|
25
|
-
/** Handler called once the Modal is triggered to close. */
|
|
26
|
-
onClose: () => void;
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
}
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type AnchorX = 'left' | 'center' | 'right' | number;
|
|
3
|
+
export declare type AnchorY = 'top' | 'center' | 'bottom' | number;
|
|
4
|
+
export interface IModalProps {
|
|
5
|
+
/** If the modal is open or not. */
|
|
6
|
+
open: boolean;
|
|
7
|
+
/** Optional. Sets the left position where the modal will be shown. */
|
|
8
|
+
left?: string;
|
|
9
|
+
/** Optional. Sets the top position where the modal will be shown. */
|
|
10
|
+
top?: string;
|
|
11
|
+
/** Optional. The Modal horizontal anchor.
|
|
12
|
+
* 0 is the left most side.
|
|
13
|
+
* 100 is the right most size. */
|
|
14
|
+
anchorX?: AnchorX;
|
|
15
|
+
/** Optional. The Modal vertical anchor.
|
|
16
|
+
* 0 is the left most side.
|
|
17
|
+
* 100 is the right most size. */
|
|
18
|
+
anchorY?: AnchorY;
|
|
19
|
+
/** Optional. Offsets the Modal horizontally. */
|
|
20
|
+
offsetX?: string;
|
|
21
|
+
/** Optional. Offsets the Modal vertically. */
|
|
22
|
+
offsetY?: string;
|
|
23
|
+
/** The max width of the Modal. */
|
|
24
|
+
maxWidth?: string;
|
|
25
|
+
/** Handler called once the Modal is triggered to close. */
|
|
26
|
+
onClose: () => void;
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}
|
|
29
29
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPaginationHook } from '../types';
|
|
2
|
-
export declare const DOTS = "...";
|
|
3
|
-
export declare const usePagination: ({ count, activePage }: IPaginationHook) => (string | number)[] | undefined;
|
|
1
|
+
import { IPaginationHook } from '../types';
|
|
2
|
+
export declare const DOTS = "...";
|
|
3
|
+
export declare const usePagination: ({ count, activePage }: IPaginationHook) => (string | number)[] | undefined;
|
|
4
4
|
//# sourceMappingURL=usePagination.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IPaginationProps } from './types';
|
|
3
|
-
export declare function Pagination({ count, onChange, previousButtonIcon, nextButtonIcon, isDisabled, defaultPage, size, shape, variant, color, }: IPaginationProps): JSX.Element | null;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPaginationProps } from './types';
|
|
3
|
+
export declare function Pagination({ count, onChange, previousButtonIcon, nextButtonIcon, isDisabled, defaultPage, size, shape, variant, color, }: IPaginationProps): JSX.Element | null;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -17,6 +17,8 @@ var _styles = require("./styles");
|
|
|
17
17
|
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
24
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -131,58 +133,65 @@ function Pagination(_ref) {
|
|
|
131
133
|
|
|
132
134
|
function LargeView() {
|
|
133
135
|
var paginationSequence = pagination === null || pagination === void 0 ? void 0 : pagination.map(function (number, index) {
|
|
134
|
-
return /*#__PURE__*/
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.LargeViewWrap, {
|
|
137
|
+
children: number === _usePagination.DOTS ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PageWrap, {
|
|
138
|
+
variant: variant,
|
|
139
|
+
shape: shape,
|
|
140
|
+
grayColor: grayColor,
|
|
141
|
+
numberOfPageColor: numberOfPageColor,
|
|
142
|
+
children: number
|
|
143
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PaginationItem, {
|
|
144
|
+
shape: shape,
|
|
145
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PaginationButton, {
|
|
146
|
+
shape: shape,
|
|
147
|
+
numberOfPageColor: numberOfPageColor,
|
|
148
|
+
variant: variant,
|
|
149
|
+
color: color || themeColor,
|
|
150
|
+
grayColor: grayColor,
|
|
151
|
+
disabled: isDisabled,
|
|
152
|
+
onClick: handleClick,
|
|
153
|
+
isActivePage: activePage === number,
|
|
154
|
+
children: number
|
|
155
|
+
})
|
|
156
|
+
})
|
|
157
|
+
}, "pagination-list".concat(index));
|
|
153
158
|
});
|
|
154
159
|
return paginationSequence;
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
function SmallView() {
|
|
158
|
-
return /*#__PURE__*/
|
|
159
|
-
saturationColor: saturationColor
|
|
160
|
-
|
|
163
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.SmallPageInfo, {
|
|
164
|
+
saturationColor: saturationColor,
|
|
165
|
+
children: [activePage, " de ", count]
|
|
166
|
+
});
|
|
161
167
|
}
|
|
162
168
|
|
|
163
169
|
if (!count) return null;
|
|
164
|
-
return /*#__PURE__*/
|
|
165
|
-
shape: shape,
|
|
166
|
-
size: size
|
|
167
|
-
}, /*#__PURE__*/React.createElement(_styles.PreviousNavigationButton, {
|
|
168
|
-
shape: shape,
|
|
169
|
-
saturationColor: saturationColor,
|
|
170
|
-
onClick: handlePreviousNavigate,
|
|
171
|
-
color: color || themeColor,
|
|
172
|
-
grayColor: grayColor,
|
|
173
|
-
disabled: previousButtonDisabled || isDisabled
|
|
174
|
-
}, /*#__PURE__*/React.createElement(_Icon.default, {
|
|
175
|
-
name: previousButtonIcon,
|
|
176
|
-
size: 16
|
|
177
|
-
})), size === 'large' && LargeView(), size === 'small' && SmallView(), /*#__PURE__*/React.createElement(_styles.NextNavigationButton, {
|
|
170
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.PaginationList, {
|
|
178
171
|
shape: shape,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
172
|
+
size: size,
|
|
173
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PreviousNavigationButton, {
|
|
174
|
+
shape: shape,
|
|
175
|
+
saturationColor: saturationColor,
|
|
176
|
+
onClick: handlePreviousNavigate,
|
|
177
|
+
color: color || themeColor,
|
|
178
|
+
grayColor: grayColor,
|
|
179
|
+
disabled: previousButtonDisabled || isDisabled,
|
|
180
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
181
|
+
name: previousButtonIcon,
|
|
182
|
+
size: 16
|
|
183
|
+
})
|
|
184
|
+
}), size === 'large' && LargeView(), size === 'small' && SmallView(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.NextNavigationButton, {
|
|
185
|
+
shape: shape,
|
|
186
|
+
grayColor: grayColor,
|
|
187
|
+
saturationColor: saturationColor,
|
|
188
|
+
onClick: handleNextNavigate,
|
|
189
|
+
color: color || themeColor,
|
|
190
|
+
disabled: nextButtonDisabled || isDisabled,
|
|
191
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
192
|
+
name: nextButtonIcon,
|
|
193
|
+
size: 16
|
|
194
|
+
})
|
|
195
|
+
})]
|
|
196
|
+
});
|
|
188
197
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
2
2
|
//# sourceMappingURL=pagination.test.d.ts.map
|
|
@@ -8,6 +8,8 @@ require("@testing-library/jest-dom");
|
|
|
8
8
|
|
|
9
9
|
var _ = require(".");
|
|
10
10
|
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
|
|
11
13
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
14
|
|
|
13
15
|
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."); }
|
|
@@ -23,7 +25,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
23
25
|
describe('Pagination', function () {
|
|
24
26
|
it('Should render pagination', function () {
|
|
25
27
|
var numberOfPages = 10;
|
|
26
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
28
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
27
29
|
count: numberOfPages
|
|
28
30
|
}));
|
|
29
31
|
expect(_react.screen.getByText('10')).toBeInTheDocument();
|
|
@@ -31,7 +33,7 @@ describe('Pagination', function () {
|
|
|
31
33
|
it('Should call change function', function () {
|
|
32
34
|
var fn = jest.fn();
|
|
33
35
|
var numberOfPages = 10;
|
|
34
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
36
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
35
37
|
count: numberOfPages,
|
|
36
38
|
onChange: fn
|
|
37
39
|
}));
|
|
@@ -42,7 +44,7 @@ describe('Pagination', function () {
|
|
|
42
44
|
});
|
|
43
45
|
it('Should disable previous button when current page to be 1', function () {
|
|
44
46
|
var numberOfPages = 10;
|
|
45
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
47
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
46
48
|
count: numberOfPages
|
|
47
49
|
}));
|
|
48
50
|
|
|
@@ -54,7 +56,7 @@ describe('Pagination', function () {
|
|
|
54
56
|
});
|
|
55
57
|
it('Should disable next button when current page to be last page', function () {
|
|
56
58
|
var numberOfPages = 10;
|
|
57
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
59
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
58
60
|
count: numberOfPages
|
|
59
61
|
}));
|
|
60
62
|
|
|
@@ -70,7 +72,7 @@ describe('Pagination', function () {
|
|
|
70
72
|
});
|
|
71
73
|
it('Should change current page on Click', function () {
|
|
72
74
|
var numberOfPages = 10;
|
|
73
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
75
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
74
76
|
count: numberOfPages
|
|
75
77
|
}));
|
|
76
78
|
|
|
@@ -82,7 +84,7 @@ describe('Pagination', function () {
|
|
|
82
84
|
});
|
|
83
85
|
it('Should set hightlight color if color prop is provided', function () {
|
|
84
86
|
var numberOfPages = 10;
|
|
85
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
87
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
86
88
|
count: numberOfPages,
|
|
87
89
|
color: "#f6ca3f"
|
|
88
90
|
}));
|
|
@@ -93,7 +95,7 @@ describe('Pagination', function () {
|
|
|
93
95
|
});
|
|
94
96
|
it('Should set circular button if shape circular is provided', function () {
|
|
95
97
|
var numberOfPages = 10;
|
|
96
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
98
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
97
99
|
count: numberOfPages,
|
|
98
100
|
shape: "circular"
|
|
99
101
|
}));
|
|
@@ -106,7 +108,7 @@ describe('Pagination', function () {
|
|
|
106
108
|
});
|
|
107
109
|
it('Should set roundend button if shape rounded is provided', function () {
|
|
108
110
|
var numberOfPages = 10;
|
|
109
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
111
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
110
112
|
count: numberOfPages,
|
|
111
113
|
shape: "rounded"
|
|
112
114
|
}));
|
|
@@ -119,7 +121,7 @@ describe('Pagination', function () {
|
|
|
119
121
|
});
|
|
120
122
|
it('Should render small pagination if size small is provided', function () {
|
|
121
123
|
var numberOfPages = 10;
|
|
122
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
124
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
123
125
|
count: numberOfPages,
|
|
124
126
|
size: "small"
|
|
125
127
|
}));
|
|
@@ -127,7 +129,7 @@ describe('Pagination', function () {
|
|
|
127
129
|
});
|
|
128
130
|
it('Should render default selected page if defaultPage is provided', function () {
|
|
129
131
|
var numberOfPages = 10;
|
|
130
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
132
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
131
133
|
count: numberOfPages,
|
|
132
134
|
defaultPage: 5
|
|
133
135
|
}));
|
|
@@ -138,7 +140,7 @@ describe('Pagination', function () {
|
|
|
138
140
|
});
|
|
139
141
|
it('Should disabled if isDisabledProp is provided', function () {
|
|
140
142
|
var numberOfPages = 10;
|
|
141
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
143
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
142
144
|
count: numberOfPages,
|
|
143
145
|
isDisabled: true
|
|
144
146
|
}));
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IStyledPagination } from './types';
|
|
3
|
-
export declare const PaginationList: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
7
|
-
export declare const PaginationItem: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
11
|
-
export declare const PaginationButton: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
15
|
-
export declare const PreviousNavigationButton: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
-
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
19
|
-
export declare const NextNavigationButton: import("@emotion/styled").StyledComponent<{
|
|
20
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
-
as?: import("react").ElementType<any> | undefined;
|
|
22
|
-
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
23
|
-
export declare const SmallPageInfo: import("@emotion/styled").StyledComponent<{
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any> | undefined;
|
|
26
|
-
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
27
|
-
export declare const PageWrap: import("@emotion/styled").StyledComponent<{
|
|
28
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
-
as?: import("react").ElementType<any> | undefined;
|
|
30
|
-
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
31
|
-
export declare const LargeViewWrap: import("@emotion/styled").StyledComponent<{
|
|
32
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
-
as?: import("react").ElementType<any> | undefined;
|
|
34
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IStyledPagination } from './types';
|
|
3
|
+
export declare const PaginationList: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
7
|
+
export declare const PaginationItem: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
11
|
+
export declare const PaginationButton: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
15
|
+
export declare const PreviousNavigationButton: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
19
|
+
export declare const NextNavigationButton: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any> | undefined;
|
|
22
|
+
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
23
|
+
export declare const SmallPageInfo: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any> | undefined;
|
|
26
|
+
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
27
|
+
export declare const PageWrap: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any> | undefined;
|
|
30
|
+
} & IStyledPagination, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
31
|
+
export declare const LargeViewWrap: import("@emotion/styled").StyledComponent<{
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any> | undefined;
|
|
34
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
35
35
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ExtendThemeProps } from 'src';
|
|
2
|
-
import { IconName } from '../Icon/types';
|
|
3
|
-
export interface IPaginationProps {
|
|
4
|
-
count: number;
|
|
5
|
-
defaultPage?: number;
|
|
6
|
-
variant?: 'outlined' | 'text';
|
|
7
|
-
shape?: 'circular' | 'rounded';
|
|
8
|
-
size?: 'small' | 'large';
|
|
9
|
-
previousButtonIcon?: IconName;
|
|
10
|
-
nextButtonIcon?: IconName;
|
|
11
|
-
color?: string;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
onChange?: (value: number) => void;
|
|
14
|
-
}
|
|
15
|
-
export interface IPaginationHook {
|
|
16
|
-
count: number;
|
|
17
|
-
activePage: number;
|
|
18
|
-
}
|
|
19
|
-
export interface IStyledPagination {
|
|
20
|
-
theme?: ExtendThemeProps;
|
|
21
|
-
isActivePage?: boolean;
|
|
22
|
-
variant?: 'outlined' | 'text';
|
|
23
|
-
shape?: 'circular' | 'rounded';
|
|
24
|
-
size?: 'small' | 'large';
|
|
25
|
-
numberOfPageColor?: string;
|
|
26
|
-
grayColor?: string;
|
|
27
|
-
saturationColor?: string;
|
|
28
|
-
}
|
|
1
|
+
import { ExtendThemeProps } from 'src';
|
|
2
|
+
import { IconName } from '../Icon/types';
|
|
3
|
+
export interface IPaginationProps {
|
|
4
|
+
count: number;
|
|
5
|
+
defaultPage?: number;
|
|
6
|
+
variant?: 'outlined' | 'text';
|
|
7
|
+
shape?: 'circular' | 'rounded';
|
|
8
|
+
size?: 'small' | 'large';
|
|
9
|
+
previousButtonIcon?: IconName;
|
|
10
|
+
nextButtonIcon?: IconName;
|
|
11
|
+
color?: string;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
onChange?: (value: number) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface IPaginationHook {
|
|
16
|
+
count: number;
|
|
17
|
+
activePage: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IStyledPagination {
|
|
20
|
+
theme?: ExtendThemeProps;
|
|
21
|
+
isActivePage?: boolean;
|
|
22
|
+
variant?: 'outlined' | 'text';
|
|
23
|
+
shape?: 'circular' | 'rounded';
|
|
24
|
+
size?: 'small' | 'large';
|
|
25
|
+
numberOfPageColor?: string;
|
|
26
|
+
grayColor?: string;
|
|
27
|
+
saturationColor?: string;
|
|
28
|
+
}
|
|
29
29
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Circle } from '../type';
|
|
3
|
-
export declare function CircleProgress({ percent, isAnimated, color, size, stroke, circleBody, grayColor, showValue, steps, }: Circle): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Circle } from '../type';
|
|
3
|
+
export declare function CircleProgress({ percent, isAnimated, color, size, stroke, circleBody, grayColor, showValue, steps, }: Circle): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|