@pedidopago/ui 1.5.15 → 1.5.18
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/index.d.ts +4 -4
- package/dist/components/Alert/styles.d.ts +24 -24
- package/dist/components/Alert/types.d.ts +44 -44
- package/dist/components/Avatar/avatar.test.d.ts +1 -1
- package/dist/components/Avatar/index.d.ts +4 -4
- package/dist/components/Avatar/styles.d.ts +25 -25
- package/dist/components/Avatar/types.d.ts +15 -15
- package/dist/components/Badge/badge.test.d.ts +1 -1
- package/dist/components/Badge/index.d.ts +4 -4
- package/dist/components/Badge/styles.d.ts +16 -16
- package/dist/components/Badge/types.d.ts +11 -11
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Button/styles.d.ts +14 -14
- package/dist/components/Button/types.d.ts +92 -92
- package/dist/components/Card/card.test.d.ts +1 -1
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Card/styles.d.ts +6 -6
- package/dist/components/Card/types.d.ts +17 -17
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
- package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
- package/dist/components/CheckboxInput/index.d.ts +4 -4
- package/dist/components/CheckboxInput/styles.d.ts +31 -31
- package/dist/components/CheckboxInput/types.d.ts +26 -26
- package/dist/components/CollapseCard/ExpandButton/index.d.ts +3 -3
- package/dist/components/CollapseCard/ExpandButton/styles.d.ts +267 -267
- package/dist/components/CollapseCard/ExpandButton/types.d.ts +5 -5
- package/dist/components/CollapseCard/expand-button.test.d.ts +1 -1
- package/dist/components/CollapseCard/index.d.ts +3 -3
- package/dist/components/CollapseCard/styles.d.ts +265 -265
- package/dist/components/CollapseCard/types.d.ts +12 -12
- package/dist/components/ColorPicker/colorpicker.test.d.ts +1 -1
- package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
- package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
- package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
- package/dist/components/ColorPicker/index.d.ts +4 -4
- package/dist/components/ColorPicker/index.d.ts.map +1 -1
- package/dist/components/ColorPicker/index.js +2 -0
- 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/DateInput/DateInput-example.d.ts +5 -5
- package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
- package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +265 -265
- package/dist/components/DateInput/components/ModalWrapper/types.d.ts +15 -15
- package/dist/components/DateInput/dateInput.test.d.ts +1 -1
- package/dist/components/DateInput/index.d.ts +3 -3
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +3 -2
- package/dist/components/DateInput/styles.d.ts +10 -10
- package/dist/components/DateInput/types.d.ts +18 -18
- package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
- package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
- package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/styles.d.ts +77 -77
- package/dist/components/DatePicker/types.d.ts +69 -69
- package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
- package/dist/components/Dialog/dialog-example.d.ts +3 -3
- package/dist/components/Dialog/dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +3 -3
- package/dist/components/Dialog/styles.d.ts +25 -25
- package/dist/components/Dialog/types.d.ts +30 -30
- package/dist/components/Dropzone/dropzone.test.d.ts +1 -1
- package/dist/components/Dropzone/index.d.ts +4 -4
- package/dist/components/Dropzone/styles.d.ts +60 -60
- package/dist/components/Dropzone/types.d.ts +27 -27
- package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
- package/dist/components/Flex/flex.test.d.ts +1 -1
- package/dist/components/Flex/index.d.ts +4 -4
- package/dist/components/Flex/styles.d.ts +296 -296
- package/dist/components/Flex/types.d.ts +175 -175
- package/dist/components/Grid/grid.test.d.ts +1 -1
- package/dist/components/Grid/index.d.ts +4 -4
- package/dist/components/Grid/styles.d.ts +288 -288
- package/dist/components/Grid/types.d.ts +88 -88
- package/dist/components/Icon/data/beauty.d.ts +8 -8
- package/dist/components/Icon/data/dash.d.ts +8 -8
- package/dist/components/Icon/data/dash.d.ts.map +1 -1
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/data/ecommerce.d.ts +8 -8
- package/dist/components/Icon/data/form.d.ts +8 -8
- package/dist/components/Icon/data/health.d.ts +8 -8
- package/dist/components/Icon/data/illustrations.d.ts +8 -8
- package/dist/components/Icon/data/men.d.ts +8 -8
- package/dist/components/Icon/data/payment.d.ts +8 -8
- package/dist/components/Icon/data/pedidoPago.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/index.d.ts +4 -4
- package/dist/components/Icon/scripts/build.d.ts +5 -5
- 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/index.d.ts +4 -4
- package/dist/components/IconItem/styles.d.ts +18 -18
- package/dist/components/IconItem/types.d.ts +22 -22
- package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoletoSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CalendarSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CardSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CollaboratorSvg/index.d.ts +4 -4
- package/dist/components/Illustration/InquirySvg/index.d.ts +4 -4
- package/dist/components/Illustration/OrderSvg/index.d.ts +4 -4
- package/dist/components/Illustration/PixSvg/index.d.ts +4 -4
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts +4 -4
- package/dist/components/Illustration/TransportSvg/index.d.ts +4 -4
- package/dist/components/Illustration/illustration.test.d.ts +1 -1
- package/dist/components/Illustration/index.d.ts +4 -4
- package/dist/components/Illustration/styles.d.ts +10 -10
- package/dist/components/Illustration/types.d.ts +6 -6
- package/dist/components/ImageItem/imageFake.d.ts +2 -2
- package/dist/components/ImageItem/index.d.ts +4 -4
- package/dist/components/ImageItem/input.test.d.ts +1 -1
- package/dist/components/ImageItem/styles.d.ts +26 -26
- package/dist/components/ImageItem/types.d.ts +25 -25
- package/dist/components/Input/index.d.ts +4 -4
- package/dist/components/Input/input.test.d.ts +1 -1
- package/dist/components/Input/styles.d.ts +69 -69
- package/dist/components/Input/types.d.ts +28 -28
- package/dist/components/Label/index.d.ts +3 -3
- package/dist/components/Label/label.test.d.ts +1 -1
- package/dist/components/Label/styles.d.ts +6 -6
- package/dist/components/Label/types.d.ts +17 -17
- package/dist/components/List/index.d.ts +4 -4
- package/dist/components/List/list.test.d.ts +1 -1
- package/dist/components/List/styles.d.ts +15 -15
- package/dist/components/List/types.d.ts +7 -7
- package/dist/components/Modal/ModalExample.d.ts +7 -7
- package/dist/components/Modal/index.d.ts +3 -3
- package/dist/components/Modal/modal.test.d.ts +1 -1
- package/dist/components/Modal/styles.d.ts +532 -532
- package/dist/components/Modal/types.d.ts +37 -37
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
- package/dist/components/MultipleSelect/animations.d.ts +3 -0
- package/dist/components/MultipleSelect/animations.d.ts.map +1 -0
- package/dist/components/MultipleSelect/animations.js +25 -0
- package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
- package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +5 -0
- package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts.map +1 -0
- package/dist/{shared/tests → components/MultipleSelect/components/InputWrapper}/types.js +0 -0
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +3 -20
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/index.js +28 -8
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +272 -18
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.js +30 -64
- package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts +21 -0
- package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts.map +1 -0
- package/dist/components/MultipleSelect/components/OptionsArea/types.js +1 -0
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +13 -10
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.js +3 -3
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.js +9 -9
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +21 -20
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +11 -20
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +3 -17
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/index.js +25 -11
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +18 -16
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +4 -7
- package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +23 -0
- package/dist/components/MultipleSelect/components/SelectArea/types.d.ts.map +1 -0
- package/dist/components/MultipleSelect/components/SelectArea/types.js +1 -0
- package/dist/components/MultipleSelect/components/index.d.ts +3 -3
- package/dist/components/MultipleSelect/index.d.ts +5 -5
- package/dist/components/MultipleSelect/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/index.js +52 -15
- package/dist/components/MultipleSelect/types.d.ts +44 -42
- package/dist/components/MultipleSelect/types.d.ts.map +1 -1
- package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +25 -24
- package/dist/components/Pagination/pagination.test.d.ts +1 -1
- package/dist/components/Pagination/styles.d.ts +34 -34
- package/dist/components/Pagination/types.d.ts +28 -28
- package/dist/components/Progress/Circle/index.d.ts +3 -3
- package/dist/components/Progress/Circle/styles.d.ts +27 -27
- package/dist/components/Progress/Circle/types.d.ts +18 -18
- package/dist/components/Progress/Linear/index.d.ts +3 -3
- package/dist/components/Progress/Linear/styles.d.ts +15 -15
- package/dist/components/Progress/Linear/types.d.ts +13 -13
- package/dist/components/Progress/getSteps.d.ts +1 -1
- package/dist/components/Progress/index.d.ts +4 -4
- package/dist/components/Progress/progress.test.d.ts +1 -1
- package/dist/components/Progress/types.d.ts +27 -27
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
- package/dist/components/RadioInput/index.d.ts +4 -4
- package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
- package/dist/components/RadioInput/styles.d.ts +30 -30
- package/dist/components/RadioInput/types.d.ts +32 -32
- package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
- package/dist/components/Rating/index.d.ts +3 -3
- package/dist/components/Rating/rating.test.d.ts +1 -1
- package/dist/components/Rating/styles.d.ts +18 -18
- package/dist/components/Rating/types.d.ts +19 -19
- package/dist/components/ReactPortal/index.d.ts +7 -7
- package/dist/components/ReactPortal/reactPortal.test.d.ts +1 -1
- package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
- package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
- package/dist/components/Select/components/OptionsSelect/styles.d.ts +265 -265
- package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/select.test.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +22 -22
- package/dist/components/Select/types.d.ts +26 -26
- package/dist/components/Skeleton/index.d.ts +4 -4
- package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
- package/dist/components/Skeleton/styles.d.ts +7 -7
- package/dist/components/Skeleton/types.d.ts +40 -40
- package/dist/components/Slider/SliderExample.d.ts +3 -3
- package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
- package/dist/components/Slider/components/SliderRail.d.ts +3 -3
- package/dist/components/Slider/components/SliderSelector.d.ts +17 -17
- package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
- package/dist/components/Slider/index.d.ts +19 -19
- package/dist/components/Slider/slider.test.d.ts +1 -1
- package/dist/components/Slider/styles.d.ts +65 -65
- package/dist/components/Slider/types.d.ts +40 -40
- package/dist/components/Spinner/index.d.ts +4 -4
- package/dist/components/Spinner/spinner.test.d.ts +1 -1
- package/dist/components/Spinner/styles.d.ts +288 -288
- package/dist/components/Spinner/types.d.ts +11 -11
- package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
- package/dist/components/Steps/components/StepIconMobile/index.d.ts +3 -3
- package/dist/components/Steps/index.d.ts +4 -4
- package/dist/components/Steps/steps.test.d.ts +1 -1
- package/dist/components/Steps/styles.d.ts +45 -45
- package/dist/components/Steps/types.d.ts +20 -20
- package/dist/components/Steps/utils.d.ts +7 -7
- package/dist/components/Switch/index.d.ts +4 -4
- package/dist/components/Switch/styles.d.ts +18 -18
- package/dist/components/Switch/switch.test.d.ts +1 -1
- package/dist/components/Switch/types.d.ts +14 -14
- package/dist/components/Table/components/MenuItem.d.ts +3 -3
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/styles.d.ts +34 -34
- package/dist/components/Table/table.test.d.ts +1 -1
- package/dist/components/Table/types.d.ts +39 -39
- package/dist/components/Tabs/TabsExample.d.ts +3 -3
- package/dist/components/Tabs/components/Tab.d.ts +3 -3
- package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
- package/dist/components/Tabs/components/Tabs.d.ts +4 -4
- package/dist/components/Tabs/index.d.ts +3 -3
- package/dist/components/Tabs/styles.d.ts +41 -41
- package/dist/components/Tabs/tabs.test.d.ts +1 -1
- package/dist/components/Tabs/types.d.ts +50 -50
- package/dist/components/Tag/index.d.ts +4 -4
- package/dist/components/Tag/styles.d.ts +869 -869
- package/dist/components/Tag/tag.test.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +9 -9
- package/dist/components/TextAreaInput/index.d.ts +4 -4
- package/dist/components/TextAreaInput/styles.d.ts +18 -18
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
- package/dist/components/TextAreaInput/types.d.ts +26 -26
- package/dist/components/Thumbnail/index.d.ts +3 -3
- package/dist/components/Thumbnail/styles.d.ts +42 -42
- package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
- package/dist/components/Thumbnail/types.d.ts +28 -28
- package/dist/components/Thumbnail/utils/index.d.ts +2 -2
- package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
- package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
- package/dist/components/Timeline/components/Timeline.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
- package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
- package/dist/components/Timeline/index.d.ts +4 -4
- package/dist/components/Timeline/styles.d.ts +31 -31
- package/dist/components/Timeline/timeline.test.d.ts +1 -1
- package/dist/components/Timeline/types.d.ts +20 -20
- package/dist/components/Toast/button-example.d.ts +6 -6
- package/dist/components/Toast/components/Toast.d.ts +4 -4
- package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
- package/dist/components/Toast/hooks/useToast.d.ts +2 -2
- package/dist/components/Toast/index.d.ts +3 -3
- package/dist/components/Toast/styles.d.ts +22 -22
- package/dist/components/Toast/toast.test.d.ts +1 -1
- package/dist/components/Toast/types.d.ts +26 -26
- package/dist/components/Tooltip/components/TooltipLabel.d.ts +12 -12
- package/dist/components/Tooltip/example.d.ts +2 -2
- package/dist/components/Tooltip/index.d.ts +4 -4
- package/dist/components/Tooltip/styles.d.ts +13 -13
- package/dist/components/Tooltip/types.d.ts +26 -26
- package/dist/components/Typography/index.d.ts +4 -4
- package/dist/components/Typography/styles.d.ts +21 -21
- package/dist/components/Typography/types.d.ts +16 -16
- package/dist/components/Typography/typography.test.d.ts +1 -1
- package/dist/index.d.ts +54 -54
- package/dist/shared/components/FocusLock/index.d.ts +7 -7
- package/dist/shared/formatters/format-number.d.ts +5 -5
- package/dist/shared/formatters/types.d.ts +5 -5
- package/dist/shared/hooks/devices.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoints.d.ts +25 -25
- package/dist/shared/hooks/useDebounce.d.ts +1 -1
- package/dist/shared/hooks/useDevices.d.ts +8 -8
- package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
- package/dist/shared/hooks/useDisableBodyScroll.d.ts.map +1 -1
- package/dist/shared/hooks/useDisableBodyScroll.js +1 -6
- package/dist/shared/hooks/useKeyPress.d.ts +1 -1
- package/dist/shared/hooks/useObserver.d.ts +10 -10
- package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
- package/dist/shared/hooks/useWindowSize.d.ts +8 -8
- package/dist/shared/tests/test-utils.d.ts +4 -4
- package/dist/shared/theme/button-example.d.ts +2 -2
- package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
- package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
- package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
- package/dist/shared/theme/hooks/useTheme.d.ts +284 -284
- package/dist/shared/theme/index.d.ts +7 -7
- package/dist/shared/theme/theme.d.ts +282 -282
- package/dist/shared/theme/theme.test.d.ts +1 -1
- package/dist/shared/theme/theme.types.d.ts +14 -14
- package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
- package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
- package/dist/utils/GenerateKey.d.ts +10 -10
- package/dist/utils/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 +292 -292
- package/dist/utils/getSvg.d.ts +10 -10
- package/dist/utils/getValuesBySize.d.ts +6 -6
- package/dist/utils/invertColor.d.ts +7 -7
- package/package.json +1 -1
- package/dist/components/Table/components/TableSkeleton.d.ts +0 -4
- package/dist/components/Table/components/TableSkeleton.d.ts.map +0 -1
- package/dist/components/Table/components/TableSkeleton.js +0 -45
- package/dist/shared/tests/types.d.ts +0 -5
- package/dist/shared/tests/types.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,UAAU,EAAE,CAAC;IAC9B,oBAAoB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtF,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,kBAAkB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAClD,qBAAqB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CACnE;AAED,oBAAY,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './InputWrapper';
|
|
2
|
-
export * from './SelectArea';
|
|
3
|
-
export * from './OptionsArea';
|
|
1
|
+
export * from './InputWrapper';
|
|
2
|
+
export * from './SelectArea';
|
|
3
|
+
export * from './OptionsArea';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, FC } from 'react';
|
|
2
|
-
import { ISelectInputProps } from './types';
|
|
3
|
-
declare type Props = ComponentPropsWithoutRef<'p'>;
|
|
4
|
-
declare const MultipleSelect: FC<ISelectInputProps & Props>;
|
|
5
|
-
export default MultipleSelect;
|
|
1
|
+
import { ComponentPropsWithoutRef, FC } from 'react';
|
|
2
|
+
import { ISelectInputProps } from './types';
|
|
3
|
+
declare type Props = ComponentPropsWithoutRef<'p'>;
|
|
4
|
+
declare const MultipleSelect: FC<ISelectInputProps & Props>;
|
|
5
|
+
export default MultipleSelect;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,EAAE,EAOH,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,EAAE,EAOH,MAAM,OAAO,CAAC;AAYf,OAAO,EAAc,iBAAiB,EAAc,MAAM,SAAS,CAAC;AAEpE,aAAK,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAI3C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,GAAG,KAAK,CA6KjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -7,8 +7,14 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
|
|
10
|
+
var _framerMotion = require("framer-motion");
|
|
11
|
+
|
|
10
12
|
var _Flex = _interopRequireDefault(require("../Flex"));
|
|
11
13
|
|
|
14
|
+
var _useDisableBodyScroll = require("src/shared/hooks/useDisableBodyScroll");
|
|
15
|
+
|
|
16
|
+
var _animations = require("./animations");
|
|
17
|
+
|
|
12
18
|
var _components = require("./components");
|
|
13
19
|
|
|
14
20
|
var _styles = require("./components/SelectArea/styles");
|
|
@@ -17,6 +23,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
17
23
|
|
|
18
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
25
|
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
20
32
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
21
33
|
|
|
22
34
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -40,6 +52,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
40
52
|
var onFinishedTimerDebounce;
|
|
41
53
|
|
|
42
54
|
var MultipleSelect = function MultipleSelect(_ref) {
|
|
55
|
+
var _selectAreaRef$curren;
|
|
56
|
+
|
|
43
57
|
var width = _ref.width,
|
|
44
58
|
_ref$fullWidth = _ref.fullWidth,
|
|
45
59
|
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
@@ -160,6 +174,20 @@ var MultipleSelect = function MultipleSelect(_ref) {
|
|
|
160
174
|
setShowOptionsArea(false);
|
|
161
175
|
}
|
|
162
176
|
}, [selectedOptions, multiple, setSelectedOptions, maxSelects]);
|
|
177
|
+
var selectAreaRef = (0, _react.useRef)(null);
|
|
178
|
+
|
|
179
|
+
var _useState7 = (0, _react.useState)((_selectAreaRef$curren = selectAreaRef.current) === null || _selectAreaRef$curren === void 0 ? void 0 : _selectAreaRef$curren.getBoundingClientRect().top),
|
|
180
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
181
|
+
positionOptions = _useState8[0],
|
|
182
|
+
setPositionOptions = _useState8[1];
|
|
183
|
+
|
|
184
|
+
function handleRepositionModal() {
|
|
185
|
+
var _selectAreaRef$curren2;
|
|
186
|
+
|
|
187
|
+
setPositionOptions((_selectAreaRef$curren2 = selectAreaRef.current) === null || _selectAreaRef$curren2 === void 0 ? void 0 : _selectAreaRef$curren2.getBoundingClientRect().top);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
(0, _useDisableBodyScroll.useDisableBodyScroll)(showOptionsArea, 'child_element');
|
|
163
191
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Flex.default, {
|
|
164
192
|
direction: "column",
|
|
165
193
|
spacing: "1",
|
|
@@ -167,7 +195,9 @@ var MultipleSelect = function MultipleSelect(_ref) {
|
|
|
167
195
|
ref: InputWrapperRef,
|
|
168
196
|
width: width,
|
|
169
197
|
fullWidth: fullWidth,
|
|
198
|
+
onMouseOver: handleRepositionModal,
|
|
170
199
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SelectArea, {
|
|
200
|
+
ref: selectAreaRef,
|
|
171
201
|
disabled: disabled,
|
|
172
202
|
label: label,
|
|
173
203
|
multiple: multiple,
|
|
@@ -179,21 +209,28 @@ var MultipleSelect = function MultipleSelect(_ref) {
|
|
|
179
209
|
inputAlert: inputAlert,
|
|
180
210
|
placeholder: placeholder,
|
|
181
211
|
dropDownIcon: dropDownIcon
|
|
182
|
-
}),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
212
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
|
|
213
|
+
exitBeforeEnter: true,
|
|
214
|
+
children: showOptionsArea && /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.motion.div, _objectSpread(_objectSpread({}, _animations.multipleSelectAnimations), {}, {
|
|
215
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.OptionsArea, {
|
|
216
|
+
positionOptions: positionOptions || 0,
|
|
217
|
+
parentRef: selectAreaRef,
|
|
218
|
+
infiniteScroll: infiniteScroll,
|
|
219
|
+
AutoComplete: AutoComplete,
|
|
220
|
+
setShowOptionsArea: setShowOptionsArea,
|
|
221
|
+
inputAlert: inputAlert,
|
|
222
|
+
chooseOption: chooseOption,
|
|
223
|
+
selectedOptions: selectedOptions,
|
|
224
|
+
data: data,
|
|
225
|
+
loadMoreData: loadMoreData,
|
|
226
|
+
hasMoreData: hasMoreData,
|
|
227
|
+
scrollHandler: scrollHandler,
|
|
228
|
+
showOptionsArea: showOptionsArea,
|
|
229
|
+
onChangeSearch: onChangeSearch,
|
|
230
|
+
isLoadingData: isLoadingData,
|
|
231
|
+
autoCompleteHelperText: autoCompleteHelperText
|
|
232
|
+
})
|
|
233
|
+
}))
|
|
197
234
|
})]
|
|
198
235
|
}), !!helperText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.HelperText, {
|
|
199
236
|
selectType: selectType,
|
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { ExtendThemeProps } from 'src';
|
|
3
|
-
export declare type SelectData = {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type SelectType = 'success' | 'error' | 'warning' | 'informative' | 'critical' | 'success_secondary' | 'warning_secondary' | undefined;
|
|
8
|
-
export interface IStyleProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
selected?: boolean;
|
|
15
|
-
itensLength?: number;
|
|
16
|
-
selectType?: SelectType;
|
|
17
|
-
theme?: ExtendThemeProps;
|
|
18
|
-
active?: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ExtendThemeProps } from 'src';
|
|
3
|
+
export declare type SelectData = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type SelectType = 'success' | 'error' | 'warning' | 'informative' | 'critical' | 'success_secondary' | 'warning_secondary' | undefined;
|
|
8
|
+
export interface IStyleProps {
|
|
9
|
+
isLoadingData?: boolean;
|
|
10
|
+
width?: number;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
animate?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
itensLength?: number;
|
|
16
|
+
selectType?: SelectType;
|
|
17
|
+
theme?: ExtendThemeProps;
|
|
18
|
+
active?: boolean;
|
|
19
|
+
top: string;
|
|
20
|
+
left: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ISelectInputProps {
|
|
23
|
+
data?: Array<SelectData>;
|
|
24
|
+
isLoadingData?: boolean;
|
|
25
|
+
maxSelects?: number;
|
|
26
|
+
label?: string;
|
|
27
|
+
multiple?: boolean;
|
|
28
|
+
width?: string;
|
|
29
|
+
fullWidth?: boolean;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
selectType?: SelectType;
|
|
32
|
+
dropDownIcon?: ReactElement;
|
|
33
|
+
AutoComplete?: boolean;
|
|
34
|
+
value?: Array<SelectData>;
|
|
35
|
+
helperText?: string;
|
|
36
|
+
defaultSelectedOptions?: Array<SelectData>;
|
|
37
|
+
onChangeValue?: (data: Array<SelectData>) => void;
|
|
38
|
+
onChangeSearch?: (data: string) => void;
|
|
39
|
+
onFinished?: (bool: boolean) => void;
|
|
40
|
+
autoCompleteHelperText?: string;
|
|
41
|
+
loadMoreData?: () => void;
|
|
42
|
+
hasMoreData?: boolean;
|
|
43
|
+
infiniteScroll?: boolean;
|
|
44
|
+
}
|
|
43
45
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAEvC,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,UAAU,GAClB,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,CAAC;AAEd,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAEvC,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,UAAU,GAClB,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,CAAC;AAEd,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAClD,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,kBAAmC,EACnC,cAAgC,EAChC,UAAU,EACV,WAAW,EACX,IAAc,EACd,KAAiB,EACjB,OAAoB,EACpB,KAAK,GACN,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,kBAAmC,EACnC,cAAgC,EAChC,UAAU,EACV,WAAW,EACX,IAAc,EACd,KAAiB,EACjB,OAAoB,EACpB,KAAK,GACN,EAAE,gBAAgB,sBAgIlB"}
|
|
@@ -148,38 +148,39 @@ function Pagination(_ref) {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
function LargeView() {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
shape: shape,
|
|
156
|
-
grayColor: grayColor,
|
|
157
|
-
numberOfPageColor: numberOfPageColor,
|
|
158
|
-
children: number
|
|
159
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PaginationItem, {
|
|
160
|
-
shape: shape,
|
|
161
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PaginationButton, {
|
|
162
|
-
shape: shape,
|
|
163
|
-
numberOfPageColor: numberOfPageColor,
|
|
151
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
152
|
+
children: pagination === null || pagination === void 0 ? void 0 : pagination.map(function (number, index) {
|
|
153
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.LargeViewWrap, {
|
|
154
|
+
children: number === _usePagination.DOTS ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PageWrap, {
|
|
164
155
|
variant: variant,
|
|
165
|
-
|
|
156
|
+
shape: shape,
|
|
166
157
|
grayColor: grayColor,
|
|
167
|
-
|
|
168
|
-
onClick: handleClick,
|
|
169
|
-
isActivePage: activePage === number,
|
|
158
|
+
numberOfPageColor: numberOfPageColor,
|
|
170
159
|
children: number
|
|
171
|
-
})
|
|
172
|
-
|
|
173
|
-
|
|
160
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PaginationItem, {
|
|
161
|
+
shape: shape,
|
|
162
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PaginationButton, {
|
|
163
|
+
shape: shape,
|
|
164
|
+
numberOfPageColor: numberOfPageColor,
|
|
165
|
+
variant: variant,
|
|
166
|
+
color: color || themeColor,
|
|
167
|
+
grayColor: grayColor,
|
|
168
|
+
disabled: isDisabled,
|
|
169
|
+
onClick: handleClick,
|
|
170
|
+
isActivePage: activePage === number,
|
|
171
|
+
children: number
|
|
172
|
+
})
|
|
173
|
+
}, "pagination-small-list-".concat(number))
|
|
174
|
+
}, "pagination-large-list-".concat(number));
|
|
175
|
+
})
|
|
174
176
|
});
|
|
175
|
-
return paginationSequence;
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
function SmallView() {
|
|
179
180
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.SmallPageInfo, {
|
|
180
181
|
saturationColor: saturationColor,
|
|
181
182
|
children: [activePage, " de ", count]
|
|
182
|
-
});
|
|
183
|
+
}, "pagination-small-list-".concat(activePage));
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
if (!count) return null;
|
|
@@ -197,7 +198,7 @@ function Pagination(_ref) {
|
|
|
197
198
|
name: previousButtonIcon,
|
|
198
199
|
size: 22
|
|
199
200
|
})
|
|
200
|
-
}), size === 'large' &&
|
|
201
|
+
}), size === 'large' && /*#__PURE__*/(0, _jsxRuntime.jsx)(LargeView, {}), size === 'small' && /*#__PURE__*/(0, _jsxRuntime.jsx)(SmallView, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.NextNavigationButton, {
|
|
201
202
|
shape: shape,
|
|
202
203
|
grayColor: grayColor,
|
|
203
204
|
saturationColor: saturationColor,
|
|
@@ -209,5 +210,5 @@ function Pagination(_ref) {
|
|
|
209
210
|
size: 22
|
|
210
211
|
})
|
|
211
212
|
})]
|
|
212
|
-
});
|
|
213
|
+
}, "pagination-list-".concat(activePage));
|
|
213
214
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
2
2
|
//# sourceMappingURL=pagination.test.d.ts.map
|
|
@@ -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 { CircleProps } from './types';
|
|
3
|
-
export declare function CircleProgress({ percent, isAnimated, percentBarColor, size, stroke, circleBody, showValue, steps, }: CircleProps): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CircleProps } from './types';
|
|
3
|
+
export declare function CircleProgress({ percent, isAnimated, percentBarColor, size, stroke, circleBody, showValue, steps, }: CircleProps): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DisplayValueProps } from '../types';
|
|
3
|
-
import { CircleStyleProps, CircleBodyProps } from './types';
|
|
4
|
-
export declare const CircleArea: import("@emotion/styled").StyledComponent<{
|
|
5
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
7
|
-
} & {
|
|
8
|
-
size?: number | undefined;
|
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
export declare const Value: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
} & DisplayValueProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
-
export declare const SVGArea: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
size?: number | undefined;
|
|
19
|
-
}, import("react").SVGProps<SVGSVGElement>, {}>;
|
|
20
|
-
export declare const SVGCircle: import("@emotion/styled").StyledComponent<{
|
|
21
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
-
} & CircleStyleProps, import("react").SVGProps<SVGCircleElement>, {}>;
|
|
24
|
-
export declare const SVGSecondCircle: import("@emotion/styled").StyledComponent<{
|
|
25
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
-
as?: import("react").ElementType<any> | undefined;
|
|
27
|
-
} & CircleBodyProps, import("react").SVGProps<SVGCircleElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DisplayValueProps } from '../types';
|
|
3
|
+
import { CircleStyleProps, CircleBodyProps } from './types';
|
|
4
|
+
export declare const CircleArea: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
size?: number | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const Value: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
} & DisplayValueProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const SVGArea: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
size?: number | undefined;
|
|
19
|
+
}, import("react").SVGProps<SVGSVGElement>, {}>;
|
|
20
|
+
export declare const SVGCircle: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
} & CircleStyleProps, import("react").SVGProps<SVGCircleElement>, {}>;
|
|
24
|
+
export declare const SVGSecondCircle: import("@emotion/styled").StyledComponent<{
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
as?: import("react").ElementType<any> | undefined;
|
|
27
|
+
} & CircleBodyProps, import("react").SVGProps<SVGCircleElement>, {}>;
|
|
28
28
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { GlobalColorsProps } from '../../../shared/theme';
|
|
2
|
-
import { LinearProps } from '../Linear/types';
|
|
3
|
-
export declare type CircleProps = LinearProps & {
|
|
4
|
-
size?: number;
|
|
5
|
-
stroke?: number;
|
|
6
|
-
circleBody?: boolean;
|
|
7
|
-
showValue?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface CircleStyleProps {
|
|
10
|
-
circumference?: number;
|
|
11
|
-
percent: number;
|
|
12
|
-
strokeWidth?: number;
|
|
13
|
-
color?: string | string[] | GlobalColorsProps | GlobalColorsProps[];
|
|
14
|
-
isAnimated?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface CircleBodyProps {
|
|
17
|
-
strokeWidth?: number;
|
|
18
|
-
}
|
|
1
|
+
import { GlobalColorsProps } from '../../../shared/theme';
|
|
2
|
+
import { LinearProps } from '../Linear/types';
|
|
3
|
+
export declare type CircleProps = LinearProps & {
|
|
4
|
+
size?: number;
|
|
5
|
+
stroke?: number;
|
|
6
|
+
circleBody?: boolean;
|
|
7
|
+
showValue?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface CircleStyleProps {
|
|
10
|
+
circumference?: number;
|
|
11
|
+
percent: number;
|
|
12
|
+
strokeWidth?: number;
|
|
13
|
+
color?: string | string[] | GlobalColorsProps | GlobalColorsProps[];
|
|
14
|
+
isAnimated?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface CircleBodyProps {
|
|
17
|
+
strokeWidth?: number;
|
|
18
|
+
}
|
|
19
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LinearProps } from './types';
|
|
3
|
-
export declare function LinearProgress({ height, showValue, steps, ...props }: LinearProps): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LinearProps } from './types';
|
|
3
|
+
export declare function LinearProgress({ height, showValue, steps, ...props }: LinearProps): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|