@megafon/ui-core 6.2.0 → 7.0.0-beta.1
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/es/colors/ColorItem/ColorItem.css +1 -45
- package/dist/es/colors/ColorItem/ColorItem.d.ts +2 -2
- package/dist/es/colors/ColorItem/ColorItem.js +5 -7
- package/dist/es/colors/Colors.css +1 -233
- package/dist/es/colors/Colors.d.ts +1 -1
- package/dist/es/colors/Colors.js +33 -55
- package/dist/es/colors/colorsData.d.ts +4 -4
- package/dist/es/components/Accordion/Accordion.css +1 -89
- package/dist/es/components/Accordion/Accordion.d.ts +2 -1
- package/dist/es/components/Accordion/Accordion.js +22 -65
- package/dist/es/components/Avatar/Avatar.css +1 -52
- package/dist/es/components/Avatar/Avatar.d.ts +1 -1
- package/dist/es/components/Avatar/Avatar.js +9 -27
- package/dist/es/components/Badges/CounterBadge/CounterBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/CounterBadge/CounterBadge.d.ts +2 -2
- package/dist/es/components/Badges/{components/CounterBadge → CounterBadge}/CounterBadge.js +10 -28
- package/dist/es/components/Badges/NotificationBadge/NotificationBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/NotificationBadge/NotificationBadge.d.ts +3 -3
- package/dist/es/components/Badges/{components/NotificationBadge → NotificationBadge}/NotificationBadge.js +8 -22
- package/dist/es/components/Badges/PriceBadge/PriceBadge.css +1 -0
- package/dist/es/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.d.ts +4 -4
- package/dist/es/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.js +11 -54
- package/dist/es/components/Badges/PromoBadge/PromoBadge.css +1 -0
- package/dist/es/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.d.ts +4 -4
- package/dist/es/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.js +9 -23
- package/dist/es/components/Badges/TimerBadge/TimerBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/TimerBadge/TimerBadge.d.ts +2 -2
- package/dist/es/components/Badges/{components/TimerBadge → TimerBadge}/TimerBadge.js +22 -46
- package/dist/es/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.js +5 -32
- package/dist/es/components/Banner/Banner.css +1 -195
- package/dist/es/components/Banner/Banner.d.ts +5 -4
- package/dist/es/components/Banner/Banner.js +82 -130
- package/dist/es/components/Banner/BannerDot.css +1 -69
- package/dist/es/components/Banner/BannerDot.d.ts +1 -1
- package/dist/es/components/Banner/BannerDot.js +6 -22
- package/dist/es/components/Banner/slidesSettings.d.ts +4 -2
- package/dist/es/components/Banner/slidesSettings.js +3 -6
- package/dist/es/components/Button/Button.css +1 -814
- package/dist/es/components/Button/Button.d.ts +7 -6
- package/dist/es/components/Button/Button.js +44 -104
- package/dist/es/components/Calendar/Calendar.css +1 -24
- package/dist/es/components/Calendar/Calendar.d.ts +4 -4
- package/dist/es/components/Calendar/Calendar.js +75 -144
- package/dist/es/components/Calendar/components/_Day/Day.css +1 -0
- package/dist/es/components/Calendar/components/{Day → _Day}/Day.d.ts +4 -4
- package/dist/es/components/Calendar/components/{Day → _Day}/Day.js +21 -53
- package/dist/es/components/Calendar/components/_Month/Month.css +1 -0
- package/dist/es/components/Calendar/components/{Month → _Month}/Month.d.ts +3 -2
- package/dist/es/components/Calendar/components/{Month → _Month}/Month.js +11 -36
- package/dist/es/components/Caption/Caption.css +1 -48
- package/dist/es/components/Caption/Caption.d.ts +4 -2
- package/dist/es/components/Caption/Caption.js +11 -25
- package/dist/es/components/Carousel/Carousel.css +1 -215
- package/dist/es/components/Carousel/Carousel.d.ts +11 -10
- package/dist/es/components/Carousel/Carousel.js +135 -162
- package/dist/es/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
- package/dist/es/components/Carousel/checkBreakpointsPropTypes.js +1 -4
- package/dist/es/components/Carousel/useGradient.d.ts +1 -1
- package/dist/es/components/Carousel/useGradient.js +9 -13
- package/dist/es/components/Checkbox/Checkbox.css +1 -150
- package/dist/es/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/es/components/Checkbox/Checkbox.js +21 -50
- package/dist/es/components/Chips/Chip.css +1 -132
- package/dist/es/components/Chips/Chip.d.ts +6 -26
- package/dist/es/components/Chips/Chip.js +17 -42
- package/dist/es/components/Chips/Chips.css +1 -19
- package/dist/es/components/Chips/Chips.d.ts +2 -2
- package/dist/es/components/Chips/Chips.js +32 -56
- package/dist/es/components/Chips/components/ChipsDropdown.css +1 -106
- package/dist/es/components/Chips/components/ChipsDropdown.d.ts +2 -2
- package/dist/es/components/Chips/components/ChipsDropdown.js +12 -27
- package/dist/es/components/ContentArea/ContentArea.css +1 -109
- package/dist/es/components/ContentArea/ContentArea.d.ts +5 -4
- package/dist/es/components/ContentArea/ContentArea.js +9 -28
- package/dist/es/components/ContentView/ContentView.css +1 -103
- package/dist/es/components/ContentView/ContentView.d.ts +3 -2
- package/dist/es/components/ContentView/ContentView.js +12 -46
- package/dist/es/components/Counter/Counter.css +1 -123
- package/dist/es/components/Counter/Counter.d.ts +1 -1
- package/dist/es/components/Counter/Counter.js +20 -55
- package/dist/es/components/Grid/Grid.css +1 -102
- package/dist/es/components/Grid/Grid.d.ts +1 -1
- package/dist/es/components/Grid/Grid.js +8 -24
- package/dist/es/components/Grid/GridColumn.css +1 -3102
- package/dist/es/components/Grid/GridColumn.d.ts +2 -2
- package/dist/es/components/Grid/GridColumn.js +33 -62
- package/dist/es/components/Header/Header.css +1 -122
- package/dist/es/components/Header/Header.d.ts +3 -1
- package/dist/es/components/Header/Header.js +13 -28
- package/dist/es/components/Link/Link.d.ts +2 -2
- package/dist/es/components/Link/Link.js +9 -25
- package/dist/es/components/List/List.css +1 -66
- package/dist/es/components/List/List.d.ts +2 -1
- package/dist/es/components/List/List.js +8 -18
- package/dist/es/components/List/ListItem.css +1 -6
- package/dist/es/components/List/ListItem.d.ts +2 -1
- package/dist/es/components/List/ListItem.js +1 -7
- package/dist/es/components/ListData/ListData.css +1 -162
- package/dist/es/components/ListData/ListData.d.ts +6 -34
- package/dist/es/components/ListData/ListData.js +22 -65
- package/dist/es/components/ListData/ListDataGroup.css +1 -15
- package/dist/es/components/ListData/ListDataGroup.d.ts +4 -4
- package/dist/es/components/ListData/ListDataGroup.js +29 -74
- package/dist/es/components/ListData/components/ListDataSortable.css +1 -79
- package/dist/es/components/ListData/components/ListDataSortable.d.ts +4 -4
- package/dist/es/components/ListData/components/ListDataSortable.js +21 -42
- package/dist/es/components/ListData/helpers.js +1 -8
- package/dist/es/components/Logo/Logo.css +1 -43
- package/dist/es/components/Logo/Logo.d.ts +1 -1
- package/dist/es/components/Logo/Logo.js +9 -25
- package/dist/es/components/Modal/Modal.css +1 -0
- package/dist/es/components/Modal/Modal.d.ts +106 -0
- package/dist/es/components/Modal/Modal.js +278 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.d.ts +8 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.js +168 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +1 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.d.ts +8 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.js +32 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +1 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +12 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +114 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +1 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +8 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +55 -0
- package/dist/es/components/Modal/mocks.d.ts +3 -0
- package/dist/es/components/Modal/mocks.js +79 -0
- package/dist/es/components/Modal/types.d.ts +27 -0
- package/dist/es/components/Modal/types.js +1 -0
- package/dist/es/components/Modal/utils/utils.d.ts +18 -0
- package/dist/es/components/Modal/utils/utils.js +66 -0
- package/dist/es/components/NavArrow/NavArrow.css +1 -63
- package/dist/es/components/NavArrow/NavArrow.d.ts +3 -3
- package/dist/es/components/NavArrow/NavArrow.js +8 -28
- package/dist/es/components/Notification/Notification.css +1 -350
- package/dist/es/components/Notification/Notification.d.ts +5 -4
- package/dist/es/components/Notification/Notification.js +61 -131
- package/dist/es/components/Pagination/Pagination.css +1 -5
- package/dist/es/components/Pagination/Pagination.d.ts +4 -3
- package/dist/es/components/Pagination/Pagination.js +7 -22
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +1 -62
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +5 -4
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +10 -26
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -10
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +3 -2
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -22
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +1 -17
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +3 -2
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +7 -23
- package/dist/es/components/Pagination/helpers.js +0 -3
- package/dist/es/components/Pagination/usePagination.d.ts +2 -1
- package/dist/es/components/Pagination/usePagination.js +6 -18
- package/dist/es/components/Paragraph/Paragraph.css +1 -43
- package/dist/es/components/Paragraph/Paragraph.d.ts +4 -2
- package/dist/es/components/Paragraph/Paragraph.js +9 -22
- package/dist/es/components/Preloader/Preloader.css +1 -224
- package/dist/es/components/Preloader/Preloader.d.ts +3 -3
- package/dist/es/components/Preloader/Preloader.js +16 -36
- package/dist/es/components/RadioButton/RadioButton.css +1 -120
- package/dist/es/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/es/components/RadioButton/RadioButton.js +18 -50
- package/dist/es/components/Row/Row.css +1 -238
- package/dist/es/components/Row/Row.d.ts +2 -2
- package/dist/es/components/Row/Row.js +23 -48
- package/dist/es/components/ScrollBar/ScrollBar.css +1 -0
- package/dist/es/components/ScrollBar/ScrollBar.d.ts +34 -0
- package/dist/es/components/ScrollBar/ScrollBar.js +86 -0
- package/dist/es/components/Search/Search.css +1 -453
- package/dist/es/components/Search/Search.d.ts +8 -9
- package/dist/es/components/Search/Search.js +54 -149
- package/dist/es/components/Select/Select.css +1 -389
- package/dist/es/components/Select/Select.d.ts +9 -85
- package/dist/es/components/Select/Select.js +52 -142
- package/dist/es/components/Select/reducer/selectReducer.d.ts +1 -1
- package/dist/es/components/Select/reducer/selectReducer.js +18 -32
- package/dist/es/components/Selector/Selector.css +1 -132
- package/dist/es/components/Selector/Selector.d.ts +1 -1
- package/dist/es/components/Selector/Selector.js +23 -50
- package/dist/es/components/Sliders/Slider/Slider.css +1 -128
- package/dist/es/components/Sliders/Slider/Slider.d.ts +1 -1
- package/dist/es/components/Sliders/Slider/Slider.js +25 -56
- package/dist/es/components/Sliders/SliderRange/SliderRange.css +1 -169
- package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRange/SliderRange.js +33 -80
- package/dist/es/components/Sliders/SliderRange/helpers.js +0 -2
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +1 -219
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.js +36 -85
- package/dist/es/components/Sliders/SliderRatio/helpers.js +1 -1
- package/dist/es/components/Sliders/SliderRatio/types.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRatio/types.js +0 -1
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +1 -84
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +11 -35
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +1 -15
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +6 -20
- package/dist/es/components/Sliders/components/SliderScale/helpers.js +12 -16
- package/dist/es/components/Sliders/helpers.js +1 -5
- package/dist/es/components/Snackbar/Snackbar.css +1 -220
- package/dist/es/components/Snackbar/Snackbar.d.ts +3 -3
- package/dist/es/components/Snackbar/Snackbar.js +44 -82
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.css +1 -66
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.js +9 -17
- package/dist/es/components/Switcher/Switcher.css +1 -160
- package/dist/es/components/Switcher/Switcher.d.ts +2 -1
- package/dist/es/components/Switcher/Switcher.js +17 -39
- package/dist/es/components/Tabs/Tab.js +0 -14
- package/dist/es/components/Tabs/Tabs.css +1 -306
- package/dist/es/components/Tabs/Tabs.d.ts +6 -5
- package/dist/es/components/Tabs/Tabs.js +110 -166
- package/dist/es/components/TextField/TextField.css +1 -343
- package/dist/es/components/TextField/TextField.d.ts +4 -4
- package/dist/es/components/TextField/TextField.js +85 -193
- package/dist/es/components/TextField/utils/countGraphemes.js +10 -18
- package/dist/es/components/TextLink/TextLink.css +1 -50
- package/dist/es/components/TextLink/TextLink.d.ts +2 -2
- package/dist/es/components/TextLink/TextLink.js +14 -27
- package/dist/es/components/Tile/Tile.css +1 -43
- package/dist/es/components/Tile/Tile.d.ts +7 -5
- package/dist/es/components/Tile/Tile.js +16 -36
- package/dist/es/components/Tooltip/Tooltip.css +1 -335
- package/dist/es/components/Tooltip/Tooltip.d.ts +9 -8
- package/dist/es/components/Tooltip/Tooltip.js +58 -139
- package/dist/es/components/_Collapse/Collapse.css +1 -0
- package/dist/{lib/components/Collapse → es/components/_Collapse}/Collapse.d.ts +3 -3
- package/dist/es/components/{Collapse → _Collapse}/Collapse.js +25 -62
- package/dist/es/hooks/usePrevious.js +0 -2
- package/dist/es/hooks/useResolution.d.ts +1 -1
- package/dist/es/hooks/useResolution.js +5 -11
- package/dist/es/hooks/useSwipe.d.ts +1 -1
- package/dist/es/hooks/useSwipe.js +17 -44
- package/dist/es/index.d.ts +16 -9
- package/dist/es/index.js +17 -10
- package/dist/es/styles/base.css +1 -0
- package/dist/lib/colors/ColorItem/ColorItem.css +1 -45
- package/dist/lib/colors/ColorItem/ColorItem.d.ts +2 -2
- package/dist/lib/colors/ColorItem/ColorItem.js +9 -18
- package/dist/lib/colors/Colors.css +1 -233
- package/dist/lib/colors/Colors.d.ts +1 -1
- package/dist/lib/colors/Colors.js +38 -80
- package/dist/lib/colors/colorsData.d.ts +4 -4
- package/dist/lib/colors/colorsData.js +1 -2
- package/dist/lib/components/Accordion/Accordion.css +1 -89
- package/dist/lib/components/Accordion/Accordion.d.ts +2 -1
- package/dist/lib/components/Accordion/Accordion.js +27 -82
- package/dist/lib/components/Avatar/Avatar.css +1 -52
- package/dist/lib/components/Avatar/Avatar.d.ts +1 -1
- package/dist/lib/components/Avatar/Avatar.js +14 -42
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/CounterBadge/CounterBadge.d.ts +2 -2
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +52 -0
- package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/NotificationBadge/NotificationBadge.d.ts +3 -3
- package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.js +44 -0
- package/dist/lib/components/Badges/PriceBadge/PriceBadge.css +1 -0
- package/dist/lib/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.d.ts +4 -4
- package/dist/lib/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.js +20 -76
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +1 -0
- package/dist/lib/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.d.ts +4 -4
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +56 -0
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/TimerBadge/TimerBadge.d.ts +2 -2
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.js +96 -0
- package/dist/lib/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.js +12 -56
- package/dist/lib/components/Banner/Banner.css +1 -195
- package/dist/lib/components/Banner/Banner.d.ts +5 -4
- package/dist/lib/components/Banner/Banner.js +94 -164
- package/dist/lib/components/Banner/BannerDot.css +1 -69
- package/dist/lib/components/Banner/BannerDot.d.ts +1 -1
- package/dist/lib/components/Banner/BannerDot.js +11 -37
- package/dist/lib/components/Banner/slidesSettings.d.ts +4 -2
- package/dist/lib/components/Banner/slidesSettings.js +5 -12
- package/dist/lib/components/Button/Button.css +1 -814
- package/dist/lib/components/Button/Button.d.ts +7 -6
- package/dist/lib/components/Button/Button.js +71 -158
- package/dist/lib/components/Calendar/Calendar.css +1 -24
- package/dist/lib/components/Calendar/Calendar.d.ts +4 -4
- package/dist/lib/components/Calendar/Calendar.js +90 -191
- package/dist/lib/components/Calendar/components/_Day/Day.css +1 -0
- package/dist/lib/components/Calendar/components/{Day → _Day}/Day.d.ts +4 -4
- package/dist/lib/components/Calendar/components/{Day → _Day}/Day.js +29 -72
- package/dist/lib/components/Calendar/components/_Month/Month.css +1 -0
- package/dist/lib/components/Calendar/components/{Month → _Month}/Month.d.ts +3 -2
- package/dist/lib/components/Calendar/components/_Month/Month.js +97 -0
- package/dist/lib/components/Caption/Caption.css +1 -48
- package/dist/lib/components/Caption/Caption.d.ts +4 -2
- package/dist/lib/components/Caption/Caption.js +16 -41
- package/dist/lib/components/Carousel/Carousel.css +1 -215
- package/dist/lib/components/Carousel/Carousel.d.ts +11 -10
- package/dist/lib/components/Carousel/Carousel.js +223 -228
- package/dist/lib/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
- package/dist/lib/components/Carousel/checkBreakpointsPropTypes.js +6 -18
- package/dist/lib/components/Carousel/useGradient.d.ts +1 -1
- package/dist/lib/components/Carousel/useGradient.js +12 -25
- package/dist/lib/components/Checkbox/Checkbox.css +1 -150
- package/dist/lib/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/lib/components/Checkbox/Checkbox.js +35 -75
- package/dist/lib/components/Chips/Chip.css +1 -132
- package/dist/lib/components/Chips/Chip.d.ts +6 -26
- package/dist/lib/components/Chips/Chip.js +36 -76
- package/dist/lib/components/Chips/Chips.css +1 -19
- package/dist/lib/components/Chips/Chips.d.ts +2 -2
- package/dist/lib/components/Chips/Chips.js +47 -92
- package/dist/lib/components/Chips/components/ChipsDropdown.css +1 -106
- package/dist/lib/components/Chips/components/ChipsDropdown.d.ts +2 -2
- package/dist/lib/components/Chips/components/ChipsDropdown.js +31 -67
- package/dist/lib/components/ContentArea/ContentArea.css +1 -109
- package/dist/lib/components/ContentArea/ContentArea.d.ts +5 -4
- package/dist/lib/components/ContentArea/ContentArea.js +14 -44
- package/dist/lib/components/ContentView/ContentView.css +1 -103
- package/dist/lib/components/ContentView/ContentView.d.ts +3 -2
- package/dist/lib/components/ContentView/ContentView.js +17 -63
- package/dist/lib/components/Counter/Counter.css +1 -123
- package/dist/lib/components/Counter/Counter.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.js +25 -71
- package/dist/lib/components/Grid/Grid.css +1 -102
- package/dist/lib/components/Grid/Grid.d.ts +1 -1
- package/dist/lib/components/Grid/Grid.js +13 -40
- package/dist/lib/components/Grid/GridColumn.css +1 -3102
- package/dist/lib/components/Grid/GridColumn.d.ts +2 -2
- package/dist/lib/components/Grid/GridColumn.js +38 -77
- package/dist/lib/components/Header/Header.css +1 -122
- package/dist/lib/components/Header/Header.d.ts +3 -1
- package/dist/lib/components/Header/Header.js +18 -43
- package/dist/lib/components/Link/Link.d.ts +2 -2
- package/dist/lib/components/Link/Link.js +15 -34
- package/dist/lib/components/List/List.css +1 -66
- package/dist/lib/components/List/List.d.ts +2 -1
- package/dist/lib/components/List/List.js +12 -30
- package/dist/lib/components/List/ListItem.css +1 -6
- package/dist/lib/components/List/ListItem.d.ts +2 -1
- package/dist/lib/components/List/ListItem.js +5 -19
- package/dist/lib/components/ListData/ListData.css +1 -162
- package/dist/lib/components/ListData/ListData.d.ts +6 -34
- package/dist/lib/components/ListData/ListData.js +51 -111
- package/dist/lib/components/ListData/ListDataGroup.css +1 -15
- package/dist/lib/components/ListData/ListDataGroup.d.ts +4 -4
- package/dist/lib/components/ListData/ListDataGroup.js +48 -118
- package/dist/lib/components/ListData/components/ListDataSortable.css +1 -79
- package/dist/lib/components/ListData/components/ListDataSortable.d.ts +4 -4
- package/dist/lib/components/ListData/components/ListDataSortable.js +35 -74
- package/dist/lib/components/ListData/helpers.js +7 -25
- package/dist/lib/components/Logo/Logo.css +1 -43
- package/dist/lib/components/Logo/Logo.d.ts +1 -1
- package/dist/lib/components/Logo/Logo.js +14 -41
- package/dist/lib/components/Modal/Modal.css +1 -0
- package/dist/lib/components/Modal/Modal.d.ts +106 -0
- package/dist/lib/components/Modal/Modal.js +287 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.js +177 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +1 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.js +41 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +1 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +12 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +123 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +1 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +64 -0
- package/dist/lib/components/Modal/mocks.d.ts +3 -0
- package/dist/lib/components/Modal/mocks.js +85 -0
- package/dist/lib/components/Modal/types.d.ts +27 -0
- package/dist/lib/components/Modal/types.js +5 -0
- package/dist/lib/components/Modal/utils/utils.d.ts +18 -0
- package/dist/lib/components/Modal/utils/utils.js +72 -0
- package/dist/lib/components/NavArrow/NavArrow.css +1 -63
- package/dist/lib/components/NavArrow/NavArrow.d.ts +3 -3
- package/dist/lib/components/NavArrow/NavArrow.js +15 -47
- package/dist/lib/components/Notification/Notification.css +1 -350
- package/dist/lib/components/Notification/Notification.d.ts +5 -4
- package/dist/lib/components/Notification/Notification.js +114 -201
- package/dist/lib/components/Pagination/Pagination.css +1 -5
- package/dist/lib/components/Pagination/Pagination.d.ts +4 -3
- package/dist/lib/components/Pagination/Pagination.js +19 -51
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +1 -62
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +5 -4
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +12 -35
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -10
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +3 -2
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +7 -32
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +1 -17
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +3 -2
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +9 -32
- package/dist/lib/components/Pagination/helpers.js +1 -6
- package/dist/lib/components/Pagination/usePagination.d.ts +2 -1
- package/dist/lib/components/Pagination/usePagination.js +10 -36
- package/dist/lib/components/Paragraph/Paragraph.css +1 -43
- package/dist/lib/components/Paragraph/Paragraph.d.ts +4 -2
- package/dist/lib/components/Paragraph/Paragraph.js +14 -38
- package/dist/lib/components/Preloader/Preloader.css +1 -224
- package/dist/lib/components/Preloader/Preloader.d.ts +3 -3
- package/dist/lib/components/Preloader/Preloader.js +23 -58
- package/dist/lib/components/RadioButton/RadioButton.css +1 -120
- package/dist/lib/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/lib/components/RadioButton/RadioButton.js +23 -70
- package/dist/lib/components/Row/Row.css +1 -238
- package/dist/lib/components/Row/Row.d.ts +2 -2
- package/dist/lib/components/Row/Row.js +40 -76
- package/dist/lib/components/ScrollBar/ScrollBar.css +1 -0
- package/dist/lib/components/ScrollBar/ScrollBar.d.ts +34 -0
- package/dist/lib/components/ScrollBar/ScrollBar.js +94 -0
- package/dist/lib/components/Search/Search.css +1 -453
- package/dist/lib/components/Search/Search.d.ts +8 -9
- package/dist/lib/components/Search/Search.js +122 -262
- package/dist/lib/components/Select/Select.css +1 -389
- package/dist/lib/components/Select/Select.d.ts +9 -85
- package/dist/lib/components/Select/Select.js +70 -187
- package/dist/lib/components/Select/reducer/selectReducer.d.ts +1 -1
- package/dist/lib/components/Select/reducer/selectReducer.js +22 -42
- package/dist/lib/components/Selector/Selector.css +1 -132
- package/dist/lib/components/Selector/Selector.d.ts +1 -1
- package/dist/lib/components/Selector/Selector.js +28 -71
- package/dist/lib/components/Sliders/Slider/Slider.css +1 -128
- package/dist/lib/components/Sliders/Slider/Slider.d.ts +1 -1
- package/dist/lib/components/Sliders/Slider/Slider.js +30 -76
- package/dist/lib/components/Sliders/SliderRange/SliderRange.css +1 -169
- package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRange/SliderRange.js +38 -101
- package/dist/lib/components/Sliders/SliderRange/helpers.js +5 -18
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +1 -219
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.js +41 -112
- package/dist/lib/components/Sliders/SliderRatio/helpers.js +9 -28
- package/dist/lib/components/Sliders/SliderRatio/types.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRatio/types.js +0 -2
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +1 -84
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +18 -57
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +1 -15
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +12 -40
- package/dist/lib/components/Sliders/components/SliderScale/helpers.js +16 -34
- package/dist/lib/components/Sliders/helpers.js +5 -22
- package/dist/lib/components/Snackbar/Snackbar.css +1 -220
- package/dist/lib/components/Snackbar/Snackbar.d.ts +3 -3
- package/dist/lib/components/Snackbar/Snackbar.js +82 -139
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.css +1 -66
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.js +18 -37
- package/dist/lib/components/Switcher/Switcher.css +1 -160
- package/dist/lib/components/Switcher/Switcher.d.ts +2 -1
- package/dist/lib/components/Switcher/Switcher.js +22 -53
- package/dist/lib/components/Tabs/Tab.js +5 -26
- package/dist/lib/components/Tabs/Tabs.css +1 -306
- package/dist/lib/components/Tabs/Tabs.d.ts +6 -5
- package/dist/lib/components/Tabs/Tabs.js +121 -200
- package/dist/lib/components/TextField/TextField.css +1 -343
- package/dist/lib/components/TextField/TextField.d.ts +4 -4
- package/dist/lib/components/TextField/TextField.js +119 -244
- package/dist/lib/components/TextField/utils/countGraphemes.js +11 -28
- package/dist/lib/components/TextLink/TextLink.css +1 -50
- package/dist/lib/components/TextLink/TextLink.d.ts +2 -2
- package/dist/lib/components/TextLink/TextLink.js +19 -42
- package/dist/lib/components/Tile/Tile.css +1 -43
- package/dist/lib/components/Tile/Tile.d.ts +7 -5
- package/dist/lib/components/Tile/Tile.js +27 -55
- package/dist/lib/components/Tooltip/Tooltip.css +1 -335
- package/dist/lib/components/Tooltip/Tooltip.d.ts +9 -8
- package/dist/lib/components/Tooltip/Tooltip.js +111 -219
- package/dist/lib/components/_Collapse/Collapse.css +1 -0
- package/dist/{es/components/Collapse → lib/components/_Collapse}/Collapse.d.ts +3 -3
- package/dist/lib/components/_Collapse/Collapse.js +95 -0
- package/dist/lib/constants/throttleTime.js +2 -3
- package/dist/lib/hooks/usePrevious.js +4 -11
- package/dist/lib/hooks/useResolution.d.ts +1 -1
- package/dist/lib/hooks/useResolution.js +10 -24
- package/dist/lib/hooks/useSwipe.d.ts +1 -1
- package/dist/lib/hooks/useSwipe.js +22 -64
- package/dist/lib/index.d.ts +16 -9
- package/dist/lib/index.js +83 -102
- package/dist/lib/styles/base.css +1 -0
- package/package.json +106 -101
- package/styles/base.scss +150 -0
- package/styles/colors.css +53 -0
- package/CHANGELOG.md +0 -4051
- package/dist/es/components/Avatar/doc/i/img.png +0 -0
- package/dist/es/components/Badges/components/CounterBadge/CounterBadge.css +0 -54
- package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.css +0 -58
- package/dist/es/components/Badges/components/PriceBadge/PriceBadge.css +0 -119
- package/dist/es/components/Badges/components/PromoBadge/PromoBadge.css +0 -69
- package/dist/es/components/Badges/components/TimerBadge/TimerBadge.css +0 -60
- package/dist/es/components/Calendar/components/Day/Day.css +0 -243
- package/dist/es/components/Calendar/components/Month/Month.css +0 -135
- package/dist/es/components/Collapse/Collapse.css +0 -3
- package/dist/es/components/ListData/doc/i/img.png +0 -0
- package/dist/es/components/Selector/doc/Selector.example.css +0 -17
- package/dist/lib/components/Avatar/doc/i/img.png +0 -0
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.css +0 -54
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.js +0 -81
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.css +0 -58
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.js +0 -71
- package/dist/lib/components/Badges/components/PriceBadge/PriceBadge.css +0 -119
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.css +0 -69
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.js +0 -84
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.css +0 -60
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.js +0 -135
- package/dist/lib/components/Calendar/components/Day/Day.css +0 -243
- package/dist/lib/components/Calendar/components/Month/Month.css +0 -135
- package/dist/lib/components/Calendar/components/Month/Month.js +0 -127
- package/dist/lib/components/Collapse/Collapse.css +0 -3
- package/dist/lib/components/Collapse/Collapse.js +0 -141
- package/dist/lib/components/ListData/doc/i/img.png +0 -0
- package/dist/lib/components/Selector/doc/Selector.example.css +0 -17
- package/styles/base.less +0 -171
- /package/dist/es/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.d.ts +0 -0
- /package/dist/lib/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.d.ts +0 -0
|
@@ -2,26 +2,53 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
import "core-js/modules/es.array.is-array.js";
|
|
5
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
6
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
7
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9
8
|
import "core-js/modules/es.array.index-of.js";
|
|
9
|
+
import "core-js/modules/es.symbol.js";
|
|
10
|
+
import "core-js/modules/es.symbol.description.js";
|
|
11
|
+
import "core-js/modules/es.symbol.iterator.js";
|
|
12
|
+
import "core-js/modules/es.array.from.js";
|
|
13
|
+
import "core-js/modules/es.array.is-array.js";
|
|
14
|
+
import "core-js/modules/es.array.iterator.js";
|
|
15
|
+
import "core-js/modules/es.array.slice.js";
|
|
16
|
+
import "core-js/modules/es.date.to-string.js";
|
|
17
|
+
import "core-js/modules/es.function.name.js";
|
|
18
|
+
import "core-js/modules/es.object.to-string.js";
|
|
19
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
20
|
+
import "core-js/modules/es.regexp.test.js";
|
|
21
|
+
import "core-js/modules/es.regexp.to-string.js";
|
|
22
|
+
import "core-js/modules/es.string.iterator.js";
|
|
23
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
10
24
|
import "core-js/modules/es.array.map.js";
|
|
11
|
-
import
|
|
12
|
-
import React from 'react';
|
|
25
|
+
import * as React from 'react';
|
|
13
26
|
import { breakpoints, cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
14
27
|
import throttle from 'lodash.throttle';
|
|
15
|
-
import * as PropTypes from 'prop-types';
|
|
16
|
-
import SwiperCore, { Autoplay, Pagination, EffectFade } from 'swiper';
|
|
17
|
-
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
18
|
-
import NavArrow, { Theme as ArrowTheme } from "../NavArrow/NavArrow";
|
|
19
28
|
import throttleTime from "../../constants/throttleTime";
|
|
20
29
|
import usePrevious from "../../hooks/usePrevious";
|
|
21
|
-
import
|
|
30
|
+
import NavArrow, { Theme as ArrowTheme } from "../NavArrow/NavArrow";
|
|
22
31
|
import useGradient from "./useGradient";
|
|
23
32
|
import "./Carousel.css";
|
|
24
|
-
|
|
33
|
+
var Autoplay = null;
|
|
34
|
+
var Pagination = null;
|
|
35
|
+
var EffectFade = null;
|
|
36
|
+
var Swiper = null;
|
|
37
|
+
var SwiperSlide = null;
|
|
38
|
+
try {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require
|
|
40
|
+
var SwiperAll = require('swiper/react');
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require
|
|
42
|
+
var Modules = require('swiper/modules');
|
|
43
|
+
Swiper = SwiperAll.Swiper;
|
|
44
|
+
SwiperSlide = SwiperAll.SwiperSlide;
|
|
45
|
+
Autoplay = Modules.Autoplay;
|
|
46
|
+
Pagination = Modules.Pagination;
|
|
47
|
+
EffectFade = Modules.EffectFade;
|
|
48
|
+
} catch (e) {
|
|
49
|
+
// eslint-disable-next-line no-console
|
|
50
|
+
console.warn("\n WARNING: megafon/ui-core is using the latest version of swiper. \n For more information about server-side rendering\n please check the Carousel component documentation at:\n https://ui.megafon.ru/components/carousel\n ");
|
|
51
|
+
}
|
|
25
52
|
export var NavTheme = {
|
|
26
53
|
LIGHT: 'light',
|
|
27
54
|
GREEN: 'green'
|
|
@@ -41,7 +68,6 @@ var GradientTheme = {
|
|
|
41
68
|
SPB_SKY_1: 'spbSky1',
|
|
42
69
|
SPB_SKY_2: 'spbSky2'
|
|
43
70
|
};
|
|
44
|
-
|
|
45
71
|
var getAutoPlayConfig = function getAutoPlayConfig(delay) {
|
|
46
72
|
return {
|
|
47
73
|
delay: delay,
|
|
@@ -50,87 +76,80 @@ var getAutoPlayConfig = function getAutoPlayConfig(delay) {
|
|
|
50
76
|
stopOnLastSlide: true
|
|
51
77
|
};
|
|
52
78
|
};
|
|
53
|
-
|
|
54
|
-
var defaultSlidesSettings = (_defaultSlidesSetting = {}, _defineProperty(_defaultSlidesSetting, breakpoints.MOBILE_SMALL_START, {
|
|
79
|
+
var defaultSlidesSettings = _defineProperty(_defineProperty(_defineProperty({}, breakpoints.MOBILE_SMALL_START, {
|
|
55
80
|
slidesPerView: 1,
|
|
56
81
|
spaceBetween: 16
|
|
57
|
-
}),
|
|
82
|
+
}), breakpoints.MOBILE_BIG_START, {
|
|
58
83
|
slidesPerView: 3,
|
|
59
84
|
spaceBetween: 20
|
|
60
|
-
}),
|
|
85
|
+
}), breakpoints.DESKTOP_MIDDLE_START, {
|
|
61
86
|
slidesPerView: 4,
|
|
62
87
|
spaceBetween: 20
|
|
63
|
-
})
|
|
88
|
+
});
|
|
64
89
|
var cn = cnCreate('mfui-carousel');
|
|
65
|
-
|
|
66
90
|
var Carousel = function Carousel(_ref) {
|
|
67
91
|
var rootRef = _ref.rootRef,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
92
|
+
className = _ref.className,
|
|
93
|
+
_ref$classes = _ref.classes,
|
|
94
|
+
_ref$classes2 = _ref$classes === void 0 ? {} : _ref$classes,
|
|
95
|
+
rootClass = _ref$classes2.root,
|
|
96
|
+
innerIndentsClass = _ref$classes2.innerIndents,
|
|
97
|
+
prevClass = _ref$classes2.prev,
|
|
98
|
+
nextClass = _ref$classes2.next,
|
|
99
|
+
containerClass = _ref$classes2.container,
|
|
100
|
+
containerModifier = _ref$classes2.containerModifier,
|
|
101
|
+
slideClass = _ref$classes2.slide,
|
|
102
|
+
dataAttrs = _ref.dataAttrs,
|
|
103
|
+
_ref$slidesSettings = _ref.slidesSettings,
|
|
104
|
+
slidesSettings = _ref$slidesSettings === void 0 ? defaultSlidesSettings : _ref$slidesSettings,
|
|
105
|
+
_ref$autoPlay = _ref.autoPlay,
|
|
106
|
+
autoPlay = _ref$autoPlay === void 0 ? false : _ref$autoPlay,
|
|
107
|
+
_ref$autoPlayDelay = _ref.autoPlayDelay,
|
|
108
|
+
autoPlayDelay = _ref$autoPlayDelay === void 0 ? 5000 : _ref$autoPlayDelay,
|
|
109
|
+
_ref$loop = _ref.loop,
|
|
110
|
+
loop = _ref$loop === void 0 ? false : _ref$loop,
|
|
111
|
+
_ref$transitionSpeed = _ref.transitionSpeed,
|
|
112
|
+
transitionSpeed = _ref$transitionSpeed === void 0 ? 300 : _ref$transitionSpeed,
|
|
113
|
+
threshold = _ref.threshold,
|
|
114
|
+
_ref$initialSlide = _ref.initialSlide,
|
|
115
|
+
initialSlide = _ref$initialSlide === void 0 ? 1 : _ref$initialSlide,
|
|
116
|
+
_ref$disableTouchMove = _ref.disableTouchMove,
|
|
117
|
+
disableTouchMove = _ref$disableTouchMove === void 0 ? false : _ref$disableTouchMove,
|
|
118
|
+
_ref$centeredSlides = _ref.centeredSlides,
|
|
119
|
+
centeredSlides = _ref$centeredSlides === void 0 ? false : _ref$centeredSlides,
|
|
120
|
+
_ref$navTheme = _ref.navTheme,
|
|
121
|
+
navTheme = _ref$navTheme === void 0 ? 'light' : _ref$navTheme,
|
|
122
|
+
_ref$effectTheme = _ref.effectTheme,
|
|
123
|
+
effectTheme = _ref$effectTheme === void 0 ? 'slide' : _ref$effectTheme,
|
|
124
|
+
noSwipingSelector = _ref.noSwipingSelector,
|
|
125
|
+
children = _ref.children,
|
|
126
|
+
pagination = _ref.pagination,
|
|
127
|
+
getSwiper = _ref.getSwiper,
|
|
128
|
+
onNextClick = _ref.onNextClick,
|
|
129
|
+
onPrevClick = _ref.onPrevClick,
|
|
130
|
+
onChange = _ref.onChange,
|
|
131
|
+
_ref$slideToClickedSl = _ref.slideToClickedSlide,
|
|
132
|
+
slideToClickedSlide = _ref$slideToClickedSl === void 0 ? false : _ref$slideToClickedSl,
|
|
133
|
+
_ref$gradient = _ref.gradient,
|
|
134
|
+
gradient = _ref$gradient === void 0 ? false : _ref$gradient,
|
|
135
|
+
_ref$gradientColor = _ref.gradientColor,
|
|
136
|
+
gradientColor = _ref$gradientColor === void 0 ? 'default' : _ref$gradientColor;
|
|
114
137
|
var _React$useState = React.useState(),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
138
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
139
|
+
swiperInstance = _React$useState2[0],
|
|
140
|
+
setSwiperInstance = _React$useState2[1];
|
|
119
141
|
var _React$useState3 = React.useState(true),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
142
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
143
|
+
isBeginning = _React$useState4[0],
|
|
144
|
+
setBeginning = _React$useState4[1];
|
|
124
145
|
var _React$useState5 = React.useState(false),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
146
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
147
|
+
isEnd = _React$useState6[0],
|
|
148
|
+
setEnd = _React$useState6[1];
|
|
129
149
|
var _React$useState7 = React.useState(false),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
150
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
151
|
+
isLocked = _React$useState8[0],
|
|
152
|
+
setLocked = _React$useState8[1];
|
|
134
153
|
var childrenLen = Array.isArray(children) ? children.length : 0;
|
|
135
154
|
var prevChildrenLen = usePrevious(childrenLen) || 0;
|
|
136
155
|
var isChildrenLenDiff = childrenLen !== prevChildrenLen;
|
|
@@ -141,14 +160,12 @@ var Carousel = function Carousel(_ref) {
|
|
|
141
160
|
});
|
|
142
161
|
var increaseAutoplayDelay = React.useCallback(function (_ref2) {
|
|
143
162
|
var params = _ref2.params,
|
|
144
|
-
|
|
145
|
-
|
|
163
|
+
autoplay = _ref2.autoplay;
|
|
146
164
|
if (_typeof(params.autoplay) !== 'object' || !autoplay.running) {
|
|
147
165
|
return;
|
|
148
166
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
167
|
+
autoplay.stop();
|
|
168
|
+
// eslint-disable-next-line no-param-reassign
|
|
152
169
|
params.autoplay.delay = autoPlayDelay * 3;
|
|
153
170
|
autoplay.start();
|
|
154
171
|
}, [autoPlayDelay]);
|
|
@@ -156,7 +173,6 @@ var Carousel = function Carousel(_ref) {
|
|
|
156
173
|
if (!swiperInstance) {
|
|
157
174
|
return;
|
|
158
175
|
}
|
|
159
|
-
|
|
160
176
|
swiperInstance.slidePrev();
|
|
161
177
|
onPrevClick === null || onPrevClick === void 0 ? void 0 : onPrevClick(swiperInstance.realIndex);
|
|
162
178
|
increaseAutoplayDelay(swiperInstance);
|
|
@@ -165,7 +181,6 @@ var Carousel = function Carousel(_ref) {
|
|
|
165
181
|
if (!swiperInstance) {
|
|
166
182
|
return;
|
|
167
183
|
}
|
|
168
|
-
|
|
169
184
|
swiperInstance.slideNext();
|
|
170
185
|
onNextClick === null || onNextClick === void 0 ? void 0 : onNextClick(swiperInstance.realIndex);
|
|
171
186
|
increaseAutoplayDelay(swiperInstance);
|
|
@@ -180,9 +195,8 @@ var Carousel = function Carousel(_ref) {
|
|
|
180
195
|
}, []);
|
|
181
196
|
var handleReachEnd = React.useCallback(function (_ref3) {
|
|
182
197
|
var params = _ref3.params,
|
|
183
|
-
|
|
198
|
+
autoplay = _ref3.autoplay;
|
|
184
199
|
setEnd(true);
|
|
185
|
-
|
|
186
200
|
if (!params.loop && autoplay.running) {
|
|
187
201
|
autoplay.stop();
|
|
188
202
|
}
|
|
@@ -193,41 +207,45 @@ var Carousel = function Carousel(_ref) {
|
|
|
193
207
|
}, []);
|
|
194
208
|
var handleSlideChange = React.useCallback(function (_ref4) {
|
|
195
209
|
var realIndex = _ref4.realIndex,
|
|
196
|
-
|
|
197
|
-
|
|
210
|
+
previousIndex = _ref4.previousIndex,
|
|
211
|
+
params = _ref4.params;
|
|
198
212
|
onChange === null || onChange === void 0 ? void 0 : onChange(realIndex, previousIndex, params.slidesPerView);
|
|
199
213
|
}, [onChange]);
|
|
200
|
-
|
|
201
214
|
var handleRootClick = function handleRootClick(e) {
|
|
202
215
|
var elem = e.target;
|
|
203
216
|
var isBullet = elem.classList.contains('swiper-pagination-bullet');
|
|
204
|
-
|
|
205
217
|
if (isBullet && swiperInstance) {
|
|
206
218
|
increaseAutoplayDelay(swiperInstance);
|
|
207
219
|
}
|
|
208
220
|
};
|
|
209
|
-
|
|
210
221
|
var handleNavDisplay = function handleNavDisplay(swiper) {
|
|
211
222
|
setBeginning(swiper.isBeginning);
|
|
212
223
|
setEnd(swiper.isEnd);
|
|
213
224
|
setLocked(swiper.isBeginning && swiper.isEnd);
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
|
|
225
|
+
};
|
|
226
|
+
// https://github.com/nolimits4web/Swiper/issues/2346
|
|
217
227
|
var handleSwiperResize = React.useCallback(function () {
|
|
218
228
|
throttle(function (swiper) {
|
|
219
229
|
handleNavDisplay(swiper);
|
|
220
|
-
|
|
221
230
|
if (swiper.params.slidesPerView === SlidesPerView.AUTO) {
|
|
222
|
-
swiper.slides
|
|
231
|
+
var _iterator = _createForOfIteratorHelper(swiper.slides),
|
|
232
|
+
_step;
|
|
233
|
+
try {
|
|
234
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
235
|
+
var slide = _step.value;
|
|
236
|
+
slide.style.width = '';
|
|
237
|
+
}
|
|
238
|
+
} catch (err) {
|
|
239
|
+
_iterator.e(err);
|
|
240
|
+
} finally {
|
|
241
|
+
_iterator.f();
|
|
242
|
+
}
|
|
223
243
|
}
|
|
224
244
|
}, throttleTime.resize);
|
|
225
245
|
}, []);
|
|
226
|
-
|
|
227
246
|
var handleSlideFocus = function handleSlideFocus(index) {
|
|
228
247
|
return function (e) {
|
|
229
248
|
var _a;
|
|
230
|
-
|
|
231
249
|
if (loop) {
|
|
232
250
|
// for correctly scroll the looped carousel to the focused element, we need to get its real index in the DOM-collection of slides
|
|
233
251
|
// because swiper does not provide this, only data-swiper-slide-index, whose values are in the range from 0 to children.length - 1,
|
|
@@ -238,26 +256,21 @@ var Carousel = function Carousel(_ref) {
|
|
|
238
256
|
swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.slideTo(realIndex);
|
|
239
257
|
return;
|
|
240
258
|
}
|
|
241
|
-
|
|
242
259
|
swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.slideTo(index);
|
|
243
260
|
};
|
|
244
261
|
};
|
|
245
|
-
|
|
246
262
|
var disableFocusOnSlideClick = function disableFocusOnSlideClick(e) {
|
|
247
263
|
if (e.nativeEvent.target.closest(".".concat(cn()))) {
|
|
248
264
|
e.nativeEvent.preventDefault();
|
|
249
265
|
}
|
|
250
266
|
};
|
|
251
|
-
|
|
252
267
|
React.useEffect(function () {
|
|
253
268
|
if (!swiperInstance) {
|
|
254
269
|
return undefined;
|
|
255
270
|
}
|
|
256
|
-
|
|
257
271
|
var windowResizeHandler = function windowResizeHandler() {
|
|
258
272
|
return handleNavDisplay(swiperInstance);
|
|
259
273
|
};
|
|
260
|
-
|
|
261
274
|
var windowResizeHandlerThrottled = throttle(windowResizeHandler, throttleTime.resize);
|
|
262
275
|
window.addEventListener('resize', windowResizeHandlerThrottled);
|
|
263
276
|
return function () {
|
|
@@ -270,6 +283,19 @@ var Carousel = function Carousel(_ref) {
|
|
|
270
283
|
handleNavDisplay(swiperInstance);
|
|
271
284
|
}
|
|
272
285
|
}, [isChildrenLenDiff, swiperInstance]);
|
|
286
|
+
if (!Swiper || !Autoplay || !SwiperSlide) {
|
|
287
|
+
return null;
|
|
288
|
+
}
|
|
289
|
+
var swiperModules = [];
|
|
290
|
+
if (Autoplay) {
|
|
291
|
+
swiperModules.push(Autoplay);
|
|
292
|
+
}
|
|
293
|
+
if (Pagination) {
|
|
294
|
+
swiperModules.push(Pagination);
|
|
295
|
+
}
|
|
296
|
+
if (EffectFade) {
|
|
297
|
+
swiperModules.push(EffectFade);
|
|
298
|
+
}
|
|
273
299
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
274
300
|
ref: rootRef,
|
|
275
301
|
className: cn({
|
|
@@ -286,8 +312,9 @@ var Carousel = function Carousel(_ref) {
|
|
|
286
312
|
'gradient-color': gradient && gradientColor
|
|
287
313
|
}, [innerIndentsClass, containerClass]),
|
|
288
314
|
breakpoints: slidesSettings,
|
|
289
|
-
|
|
315
|
+
watchSlidesProgress: true,
|
|
290
316
|
watchOverflow: true,
|
|
317
|
+
modules: swiperModules,
|
|
291
318
|
loop: loop,
|
|
292
319
|
pagination: _extends({
|
|
293
320
|
clickable: true
|
|
@@ -344,58 +371,4 @@ var Carousel = function Carousel(_ref) {
|
|
|
344
371
|
theme: ArrowTheme.PURPLE
|
|
345
372
|
}));
|
|
346
373
|
};
|
|
347
|
-
|
|
348
|
-
Carousel.propTypes = {
|
|
349
|
-
rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
|
350
|
-
current: PropTypes.elementType
|
|
351
|
-
}), PropTypes.any])]),
|
|
352
|
-
className: PropTypes.string,
|
|
353
|
-
classes: PropTypes.shape({
|
|
354
|
-
root: PropTypes.string,
|
|
355
|
-
innerIndents: PropTypes.string,
|
|
356
|
-
container: PropTypes.string,
|
|
357
|
-
containerModifier: PropTypes.string,
|
|
358
|
-
prev: PropTypes.string,
|
|
359
|
-
next: PropTypes.string,
|
|
360
|
-
slide: PropTypes.string
|
|
361
|
-
}),
|
|
362
|
-
dataAttrs: PropTypes.shape({
|
|
363
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
364
|
-
slider: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
365
|
-
prev: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
366
|
-
next: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
367
|
-
slide: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
368
|
-
}),
|
|
369
|
-
slidesSettings: PropTypes.objectOf(checkBreakpointsPropTypes({
|
|
370
|
-
slidesPerView: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(Object.values(SlidesPerView))]).isRequired,
|
|
371
|
-
spaceBetween: PropTypes.number.isRequired,
|
|
372
|
-
slidesPerGroup: PropTypes.number
|
|
373
|
-
})),
|
|
374
|
-
pagination: PropTypes.shape({
|
|
375
|
-
el: PropTypes.string,
|
|
376
|
-
bulletElement: PropTypes.string,
|
|
377
|
-
dynamicBullets: PropTypes.string,
|
|
378
|
-
clickable: PropTypes.bool,
|
|
379
|
-
renderBullet: PropTypes.func,
|
|
380
|
-
bulletClass: PropTypes.string,
|
|
381
|
-
bulletActiveClass: PropTypes.string,
|
|
382
|
-
modifierClass: PropTypes.string
|
|
383
|
-
}),
|
|
384
|
-
loop: PropTypes.bool,
|
|
385
|
-
threshold: PropTypes.number,
|
|
386
|
-
autoPlay: PropTypes.bool,
|
|
387
|
-
autoPlayDelay: PropTypes.number,
|
|
388
|
-
disableTouchMove: PropTypes.bool,
|
|
389
|
-
centeredSlides: PropTypes.bool,
|
|
390
|
-
transitionSpeed: PropTypes.number,
|
|
391
|
-
navTheme: PropTypes.oneOf(Object.values(NavTheme)),
|
|
392
|
-
effectTheme: PropTypes.oneOf(Object.values(EffectTheme)),
|
|
393
|
-
noSwipingSelector: PropTypes.string,
|
|
394
|
-
getSwiper: PropTypes.func,
|
|
395
|
-
onNextClick: PropTypes.func,
|
|
396
|
-
onPrevClick: PropTypes.func,
|
|
397
|
-
onChange: PropTypes.func,
|
|
398
|
-
gradient: PropTypes.oneOfType([PropTypes.bool]),
|
|
399
|
-
gradientColor: PropTypes.oneOf(Object.values(GradientTheme))
|
|
400
|
-
};
|
|
401
374
|
export default Carousel;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
-
import "core-js/modules/es.number.constructor.js";
|
|
3
2
|
import "core-js/modules/es.array.concat.js";
|
|
3
|
+
import "core-js/modules/es.number.constructor.js";
|
|
4
4
|
import * as PropTypes from 'prop-types';
|
|
5
|
-
|
|
6
5
|
var checkBreakpointsPropTypes = function checkBreakpointsPropTypes(settingsPropTypes) {
|
|
7
6
|
return function (object, key, componentName) {
|
|
8
7
|
if (!object[Number(key)]) {
|
|
9
8
|
return new Error("Invalid key name 'breakpoints.".concat(key, "' of type ").concat(_typeof(key), " supplied to ").concat(componentName, ", expected number"));
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
PropTypes.checkPropTypes(settingsPropTypes, object[key], 'prop', componentName);
|
|
13
11
|
return null;
|
|
14
12
|
};
|
|
15
13
|
};
|
|
16
|
-
|
|
17
14
|
export default checkBreakpointsPropTypes;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import SwiperCore from 'swiper';
|
|
3
3
|
import { SlidesSettingsType } from './Carousel';
|
|
4
|
-
|
|
4
|
+
type SwiperConfig = {
|
|
5
5
|
instance: SwiperCore | undefined;
|
|
6
6
|
slidesSettings: SlidesSettingsType;
|
|
7
7
|
isLocked: boolean;
|
|
@@ -5,30 +5,26 @@ import throttle from 'lodash.throttle';
|
|
|
5
5
|
import throttleTime from "../../constants/throttleTime";
|
|
6
6
|
export default (function (gradient, swiper) {
|
|
7
7
|
var _useState = useState(0),
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
9
|
+
slidesGap = _useState2[0],
|
|
10
|
+
setSlidesGap = _useState2[1];
|
|
12
11
|
var swiperInstance = swiper.instance,
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
slidesSettings = swiper.slidesSettings,
|
|
13
|
+
isLocked = swiper.isLocked;
|
|
15
14
|
var isGradientEnable = gradient && !isLocked;
|
|
16
15
|
useEffect(function () {
|
|
17
16
|
var isTouch = window.innerWidth < breakpoints.DESKTOP_SMALL_START;
|
|
18
17
|
var isPossibleToSetGap = isGradientEnable && swiperInstance && !isTouch;
|
|
19
|
-
|
|
20
18
|
if (!isPossibleToSetGap) {
|
|
21
19
|
return undefined;
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var currentBreakpoint = swiperInstance.getBreakpoint(slidesSettings);
|
|
21
|
+
var setCurrentSlidesGap = function setCurrentSlidesGap() {
|
|
22
|
+
var currentBreakpoint = swiperInstance.currentBreakpoint;
|
|
26
23
|
var currentSpaceBetweenValue = slidesSettings[currentBreakpoint].spaceBetween;
|
|
27
24
|
setSlidesGap(currentSpaceBetweenValue);
|
|
28
25
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var throttledHandler = throttle(setCurrenSlidesGap, throttleTime.resize);
|
|
26
|
+
setCurrentSlidesGap();
|
|
27
|
+
var throttledHandler = throttle(setCurrentSlidesGap, throttleTime.resize);
|
|
32
28
|
window.addEventListener('resize', throttledHandler);
|
|
33
29
|
return function () {
|
|
34
30
|
window.removeEventListener('resize', throttledHandler);
|
|
@@ -1,150 +1 @@
|
|
|
1
|
-
.mfui-checkbox {
|
|
2
|
-
margin: 0 5px 12px 5px;
|
|
3
|
-
}
|
|
4
|
-
.mfui-checkbox__inner {
|
|
5
|
-
position: relative;
|
|
6
|
-
display: inline-block;
|
|
7
|
-
}
|
|
8
|
-
.mfui-checkbox__label {
|
|
9
|
-
display: inline;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
}
|
|
12
|
-
.mfui-checkbox__input {
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 0;
|
|
15
|
-
left: 0;
|
|
16
|
-
z-index: -1;
|
|
17
|
-
width: 0;
|
|
18
|
-
height: 0;
|
|
19
|
-
opacity: 0;
|
|
20
|
-
}
|
|
21
|
-
.mfui-checkbox__custom-input {
|
|
22
|
-
position: absolute;
|
|
23
|
-
left: 0;
|
|
24
|
-
display: -webkit-box;
|
|
25
|
-
display: -ms-flexbox;
|
|
26
|
-
display: flex;
|
|
27
|
-
-webkit-box-align: center;
|
|
28
|
-
-ms-flex-align: center;
|
|
29
|
-
align-items: center;
|
|
30
|
-
-webkit-box-pack: center;
|
|
31
|
-
-ms-flex-pack: center;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
-webkit-box-sizing: border-box;
|
|
34
|
-
box-sizing: border-box;
|
|
35
|
-
width: 20px;
|
|
36
|
-
height: 20px;
|
|
37
|
-
border: 2px solid;
|
|
38
|
-
border-radius: 4px;
|
|
39
|
-
-webkit-transition: border-color, background-color;
|
|
40
|
-
transition: border-color, background-color;
|
|
41
|
-
-webkit-transition-duration: 0.3s;
|
|
42
|
-
transition-duration: 0.3s;
|
|
43
|
-
}
|
|
44
|
-
.mfui-checkbox__custom-input:focus {
|
|
45
|
-
outline: none;
|
|
46
|
-
}
|
|
47
|
-
.mfui-checkbox__icon {
|
|
48
|
-
display: block;
|
|
49
|
-
width: 32px;
|
|
50
|
-
height: 32px;
|
|
51
|
-
opacity: 0;
|
|
52
|
-
-webkit-user-select: none;
|
|
53
|
-
-moz-user-select: none;
|
|
54
|
-
-ms-user-select: none;
|
|
55
|
-
user-select: none;
|
|
56
|
-
}
|
|
57
|
-
.mfui-checkbox__extra-content {
|
|
58
|
-
position: relative;
|
|
59
|
-
left: 8px;
|
|
60
|
-
display: inline-block;
|
|
61
|
-
margin-top: -2px;
|
|
62
|
-
margin-right: -20px;
|
|
63
|
-
vertical-align: middle;
|
|
64
|
-
}
|
|
65
|
-
.mfui-checkbox_checked .mfui-checkbox__custom-input {
|
|
66
|
-
border: none;
|
|
67
|
-
}
|
|
68
|
-
.mfui-checkbox_checked .mfui-checkbox__icon {
|
|
69
|
-
opacity: 1;
|
|
70
|
-
}
|
|
71
|
-
.mfui-checkbox_font-size_regular {
|
|
72
|
-
font-size: 15px;
|
|
73
|
-
line-height: 24px;
|
|
74
|
-
}
|
|
75
|
-
.mfui-checkbox_font-size_regular .mfui-checkbox__inner {
|
|
76
|
-
padding: 4px 15px 4px 33px;
|
|
77
|
-
}
|
|
78
|
-
.mfui-checkbox_font-size_regular .mfui-checkbox__custom-input {
|
|
79
|
-
top: 6px;
|
|
80
|
-
}
|
|
81
|
-
.mfui-checkbox_font-size_small {
|
|
82
|
-
font-size: 12px;
|
|
83
|
-
line-height: 16px;
|
|
84
|
-
}
|
|
85
|
-
.mfui-checkbox_font-size_small .mfui-checkbox__inner {
|
|
86
|
-
padding: 1px 15px 4px 33px;
|
|
87
|
-
}
|
|
88
|
-
.mfui-checkbox_font-size_small .mfui-checkbox__custom-input {
|
|
89
|
-
top: 0;
|
|
90
|
-
}
|
|
91
|
-
.mfui-checkbox_color_dark .mfui-checkbox__custom-input {
|
|
92
|
-
border-color: var(--spbSky2);
|
|
93
|
-
}
|
|
94
|
-
.mfui-checkbox_color_dark .mfui-checkbox__label_no-touch:hover .mfui-checkbox__custom-input {
|
|
95
|
-
border-color: var(--buttonHoverGreen);
|
|
96
|
-
}
|
|
97
|
-
.mfui-checkbox_color_dark .mfui-checkbox__icon {
|
|
98
|
-
fill: var(--stcWhite);
|
|
99
|
-
}
|
|
100
|
-
.mfui-checkbox_color_dark.mfui-checkbox_checked .mfui-checkbox__custom-input {
|
|
101
|
-
border-color: var(--brandGreen);
|
|
102
|
-
background-color: var(--brandGreen);
|
|
103
|
-
}
|
|
104
|
-
.mfui-checkbox_color_dark.mfui-checkbox_checked .mfui-checkbox__label_no-touch:hover .mfui-checkbox__custom-input {
|
|
105
|
-
background-color: var(--buttonHoverGreen);
|
|
106
|
-
}
|
|
107
|
-
.mfui-checkbox_color_light {
|
|
108
|
-
color: var(--stcWhite);
|
|
109
|
-
}
|
|
110
|
-
.mfui-checkbox_color_light .mfui-checkbox__custom-input {
|
|
111
|
-
border-color: var(--stcWhite);
|
|
112
|
-
background-color: var(--stcWhite);
|
|
113
|
-
}
|
|
114
|
-
.mfui-checkbox_color_light .mfui-checkbox__label_no-touch:hover .mfui-checkbox__custom-input {
|
|
115
|
-
border-color: var(--buttonHoverGrey);
|
|
116
|
-
background-color: var(--buttonHoverGrey);
|
|
117
|
-
}
|
|
118
|
-
.mfui-checkbox_color_light.mfui-checkbox_checked .mfui-checkbox__custom-input {
|
|
119
|
-
border-color: var(--brandGreen);
|
|
120
|
-
color: var(--stcWhite);
|
|
121
|
-
background-color: var(--stcWhite);
|
|
122
|
-
}
|
|
123
|
-
.mfui-checkbox_disabled .mfui-checkbox__label {
|
|
124
|
-
color: var(--spbSky3);
|
|
125
|
-
cursor: default;
|
|
126
|
-
pointer-events: none;
|
|
127
|
-
}
|
|
128
|
-
.mfui-checkbox_disabled .mfui-checkbox__custom-input {
|
|
129
|
-
border-color: var(--spbSky2);
|
|
130
|
-
background-color: var(--spbSky1);
|
|
131
|
-
}
|
|
132
|
-
.mfui-checkbox_disabled .mfui-checkbox__icon {
|
|
133
|
-
fill: var(--stcWhite);
|
|
134
|
-
}
|
|
135
|
-
.mfui-checkbox_disabled.mfui-checkbox_color_light .mfui-checkbox__label {
|
|
136
|
-
color: var(--stcWhite50);
|
|
137
|
-
}
|
|
138
|
-
.mfui-checkbox_checked.mfui-checkbox_disabled .mfui-checkbox__custom-input {
|
|
139
|
-
background-color: var(--spbSky2);
|
|
140
|
-
}
|
|
141
|
-
.mfui-checkbox_error .mfui-checkbox__custom-input {
|
|
142
|
-
border-color: var(--fury);
|
|
143
|
-
}
|
|
144
|
-
.mfui-checkbox_color_dark .mfui-checkbox__label:active .mfui-checkbox__custom-input,
|
|
145
|
-
.mfui-checkbox_color_dark.mfui-checkbox_checked .mfui-checkbox__label:active .mfui-checkbox__custom-input,
|
|
146
|
-
.mfui-checkbox_color_light .mfui-checkbox__label:active .mfui-checkbox__custom-input,
|
|
147
|
-
.mfui-checkbox_color_light.mfui-checkbox_checked .mfui-checkbox__label:active .mfui-checkbox__custom-input {
|
|
148
|
-
border-color: var(--buttonDown);
|
|
149
|
-
background-color: var(--buttonDown);
|
|
150
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-checkbox{margin:0 5px 12px}.mfui-checkbox__inner{display:inline-block;position:relative}.mfui-checkbox__label{cursor:pointer;display:inline}.mfui-checkbox__input{height:0;left:0;opacity:0;position:absolute;top:0;width:0;z-index:-1}.mfui-checkbox__custom-input{display:-webkit-box;display:-ms-flexbox;display:flex;left:0;position:absolute;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;border:2px solid;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;height:20px;justify-content:center;-webkit-transition:border-color,background-color;transition:border-color,background-color;-webkit-transition-duration:.3s;transition-duration:.3s;width:20px}.mfui-checkbox__custom-input:focus{outline:none}.mfui-checkbox__icon{display:block;height:32px;opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:32px}.mfui-checkbox__extra-content{display:inline-block;left:8px;margin-right:-20px;margin-top:-2px;position:relative;vertical-align:middle}.mfui-checkbox_checked .mfui-checkbox__custom-input{border:none}.mfui-checkbox_checked .mfui-checkbox__icon{opacity:1}.mfui-checkbox_font-size_regular{font-size:15px;line-height:24px}.mfui-checkbox_font-size_regular .mfui-checkbox__inner{padding:4px 15px 4px 33px}.mfui-checkbox_font-size_regular .mfui-checkbox__custom-input{top:6px}.mfui-checkbox_font-size_small{font-size:12px;line-height:16px}.mfui-checkbox_font-size_small .mfui-checkbox__inner{padding:1px 15px 4px 33px}.mfui-checkbox_font-size_small .mfui-checkbox__custom-input{top:0}.mfui-checkbox_color_dark .mfui-checkbox__custom-input{border-color:var(--spbSky2)}.mfui-checkbox_color_dark .mfui-checkbox__label_no-touch:hover .mfui-checkbox__custom-input{border-color:var(--buttonHoverGreen)}.mfui-checkbox_color_dark .mfui-checkbox__icon{fill:var(--stcWhite)}.mfui-checkbox_color_dark.mfui-checkbox_checked .mfui-checkbox__custom-input{background-color:var(--brandGreen);border-color:var(--brandGreen)}.mfui-checkbox_color_dark.mfui-checkbox_checked .mfui-checkbox__label_no-touch:hover .mfui-checkbox__custom-input{background-color:var(--buttonHoverGreen)}.mfui-checkbox_color_light{color:var(--stcWhite)}.mfui-checkbox_color_light .mfui-checkbox__custom-input{background-color:var(--stcWhite);border-color:var(--stcWhite)}.mfui-checkbox_color_light .mfui-checkbox__label_no-touch:hover .mfui-checkbox__custom-input{background-color:var(--buttonHoverGrey);border-color:var(--buttonHoverGrey)}.mfui-checkbox_color_light.mfui-checkbox_checked .mfui-checkbox__custom-input{background-color:var(--stcWhite);border-color:var(--brandGreen);color:var(--stcWhite)}.mfui-checkbox_disabled .mfui-checkbox__label{color:var(--spbSky3);cursor:default;pointer-events:none}.mfui-checkbox_disabled .mfui-checkbox__custom-input{background-color:var(--spbSky1);border-color:var(--spbSky2)}.mfui-checkbox_disabled .mfui-checkbox__icon{fill:var(--stcWhite)}.mfui-checkbox_disabled.mfui-checkbox_color_light .mfui-checkbox__label{color:var(--stcWhite50)}.mfui-checkbox_checked.mfui-checkbox_disabled .mfui-checkbox__custom-input{background-color:var(--spbSky2)}.mfui-checkbox_error .mfui-checkbox__custom-input{border-color:var(--fury)}.mfui-checkbox_color_dark .mfui-checkbox__label:active .mfui-checkbox__custom-input,.mfui-checkbox_color_dark.mfui-checkbox_checked .mfui-checkbox__label:active .mfui-checkbox__custom-input,.mfui-checkbox_color_light .mfui-checkbox__label:active .mfui-checkbox__custom-input,.mfui-checkbox_color_light.mfui-checkbox_checked .mfui-checkbox__label:active .mfui-checkbox__custom-input{background-color:var(--buttonDown);border-color:var(--buttonDown)}
|