@megafon/ui-core 6.2.1 → 7.0.0
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 +7 -8
- 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 +8 -84
- 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 +3 -3
- 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 +7 -8
- 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 +8 -84
- 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 +3 -3
- 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 -4062
- 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
|
@@ -1,120 +1 @@
|
|
|
1
|
-
.mfui-radio-button__input {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
opacity: 0;
|
|
6
|
-
}
|
|
7
|
-
.mfui-radio-button__label {
|
|
8
|
-
position: relative;
|
|
9
|
-
display: -webkit-inline-box;
|
|
10
|
-
display: -ms-inline-flexbox;
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
-webkit-box-align: center;
|
|
13
|
-
-ms-flex-align: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
outline: none;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
}
|
|
18
|
-
.mfui-radio-button__custom-input {
|
|
19
|
-
display: -webkit-box;
|
|
20
|
-
display: -ms-flexbox;
|
|
21
|
-
display: flex;
|
|
22
|
-
-ms-flex-negative: 0;
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
-webkit-box-align: center;
|
|
25
|
-
-ms-flex-align: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
-webkit-box-pack: center;
|
|
28
|
-
-ms-flex-pack: center;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
width: 32px;
|
|
31
|
-
height: 32px;
|
|
32
|
-
margin-right: 6px;
|
|
33
|
-
}
|
|
34
|
-
.mfui-radio-button__custom-input:before {
|
|
35
|
-
content: '';
|
|
36
|
-
display: block;
|
|
37
|
-
-webkit-box-sizing: border-box;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
width: 22px;
|
|
40
|
-
height: 22px;
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
-webkit-transition: background-color, border-color;
|
|
43
|
-
transition: background-color, border-color;
|
|
44
|
-
-webkit-transition-duration: 0.3s;
|
|
45
|
-
transition-duration: 0.3s;
|
|
46
|
-
}
|
|
47
|
-
.mfui-radio-button__label_dark {
|
|
48
|
-
color: var(--content);
|
|
49
|
-
}
|
|
50
|
-
.mfui-radio-button__label_dark .mfui-radio-button__custom-input:before {
|
|
51
|
-
border: 2px solid var(--spbSky2);
|
|
52
|
-
background-color: var(--base);
|
|
53
|
-
}
|
|
54
|
-
.mfui-radio-button__input_dark:checked + .mfui-radio-button__custom-input:before {
|
|
55
|
-
border: 7px solid var(--brandGreen);
|
|
56
|
-
}
|
|
57
|
-
@media (hover: hover) {
|
|
58
|
-
.mfui-radio-button__label_dark:not(.mfui-radio-button__label_disabled):hover .mfui-radio-button__custom-input:before {
|
|
59
|
-
border-color: var(--buttonHoverGreen);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
.mfui-radio-button__label_dark:not(.mfui-radio-button__label_disabled):active .mfui-radio-button__custom-input:before {
|
|
63
|
-
border-color: var(--buttonDown);
|
|
64
|
-
}
|
|
65
|
-
.mfui-radio-button__label_dark.mfui-radio-button__label_disabled {
|
|
66
|
-
color: var(--spbSky3);
|
|
67
|
-
cursor: default;
|
|
68
|
-
}
|
|
69
|
-
.mfui-radio-button__label_dark.mfui-radio-button__label_disabled .mfui-radio-button__custom-input:before,
|
|
70
|
-
.mfui-radio-button__label_dark.mfui-radio-button__label_disabled .mfui-radio-button__input:checked + .mfui-radio-button__custom-input:before {
|
|
71
|
-
border-color: var(--spbSky2);
|
|
72
|
-
background-color: var(--spbSky1);
|
|
73
|
-
}
|
|
74
|
-
.mfui-radio-button__label_light {
|
|
75
|
-
color: var(--stcWhite);
|
|
76
|
-
}
|
|
77
|
-
.mfui-radio-button__label_light .mfui-radio-button__custom-input:before {
|
|
78
|
-
border: 2px solid var(--stcWhite);
|
|
79
|
-
background-color: var(--stcWhite);
|
|
80
|
-
}
|
|
81
|
-
.mfui-radio-button__input_light:checked + .mfui-radio-button__custom-input:before {
|
|
82
|
-
border: 7px solid var(--stcWhite);
|
|
83
|
-
background-color: var(--stcBlack);
|
|
84
|
-
}
|
|
85
|
-
@media (hover: hover) {
|
|
86
|
-
.mfui-radio-button__label_light:not(.mfui-radio-button__label_disabled):hover .mfui-radio-button__custom-input:before {
|
|
87
|
-
border-color: var(--buttonHoverGrey);
|
|
88
|
-
background-color: var(--buttonHoverGrey);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
@media (hover: hover) {
|
|
92
|
-
.mfui-radio-button__label_light:not(.mfui-radio-button__label_disabled):hover .mfui-radio-button__input:checked + .mfui-radio-button__custom-input:before {
|
|
93
|
-
background-color: var(--stcBlack);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
.mfui-radio-button__label_light:not(.mfui-radio-button__label_disabled):active .mfui-radio-button__custom-input:before {
|
|
97
|
-
border-color: var(--buttonDown);
|
|
98
|
-
background-color: var(--buttonDown);
|
|
99
|
-
}
|
|
100
|
-
.mfui-radio-button__label_light:not(.mfui-radio-button__label_disabled):active .mfui-radio-button__input:checked + .mfui-radio-button__custom-input:before {
|
|
101
|
-
background-color: var(--stcWhite);
|
|
102
|
-
}
|
|
103
|
-
.mfui-radio-button__label_light.mfui-radio-button__label_disabled {
|
|
104
|
-
color: var(--stcWhite50);
|
|
105
|
-
cursor: default;
|
|
106
|
-
}
|
|
107
|
-
.mfui-radio-button__label_light.mfui-radio-button__label_disabled .mfui-radio-button__custom-input:before,
|
|
108
|
-
.mfui-radio-button__label_light.mfui-radio-button__label_disabled .mfui-radio-button__input:checked + .mfui-radio-button__custom-input:before {
|
|
109
|
-
border-color: var(--spbSky2);
|
|
110
|
-
background-color: var(--stcWhite);
|
|
111
|
-
}
|
|
112
|
-
.mfui-radio-button__text_size_small {
|
|
113
|
-
font-size: 12px;
|
|
114
|
-
line-height: 18px;
|
|
115
|
-
}
|
|
116
|
-
.mfui-radio-button__text_size_medium {
|
|
117
|
-
font-size: 15px;
|
|
118
|
-
line-height: 24px;
|
|
119
|
-
font-weight: 400;
|
|
120
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-radio-button__input{left:0;opacity:0;position:absolute;top:0}.mfui-radio-button__label{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;outline:none;position:relative}.mfui-radio-button__custom-input,.mfui-radio-button__label{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-radio-button__custom-input{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;height:32px;justify-content:center;margin-right:6px;width:32px}.mfui-radio-button__custom-input:before{border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;content:"";display:block;height:22px;-webkit-transition:background-color,border-color;transition:background-color,border-color;-webkit-transition-duration:.3s;transition-duration:.3s;width:22px}.mfui-radio-button__label_dark{color:var(--content)}.mfui-radio-button__label_dark .mfui-radio-button__custom-input:before{background-color:var(--base);border:2px solid var(--spbSky2)}.mfui-radio-button__input_dark:checked+.mfui-radio-button__custom-input:before{border:7px solid var(--brandGreen)}@media (hover:hover){.mfui-radio-button__label_dark:not(.mfui-radio-button__label_disabled):hover .mfui-radio-button__custom-input:before{border-color:var(--buttonHoverGreen)}}.mfui-radio-button__label_dark:not(.mfui-radio-button__label_disabled):active .mfui-radio-button__custom-input:before{border-color:var(--buttonDown)}.mfui-radio-button__label_dark.mfui-radio-button__label_disabled{color:var(--spbSky3);cursor:default}.mfui-radio-button__label_dark.mfui-radio-button__label_disabled .mfui-radio-button__custom-input:before,.mfui-radio-button__label_dark.mfui-radio-button__label_disabled .mfui-radio-button__input:checked+.mfui-radio-button__custom-input:before{background-color:var(--spbSky1);border-color:var(--spbSky2)}.mfui-radio-button__label_light{color:var(--stcWhite)}.mfui-radio-button__label_light .mfui-radio-button__custom-input:before{background-color:var(--stcWhite);border:2px solid var(--stcWhite)}.mfui-radio-button__input_light:checked+.mfui-radio-button__custom-input:before{background-color:var(--stcBlack);border:7px solid var(--stcWhite)}@media (hover:hover){.mfui-radio-button__label_light:not(.mfui-radio-button__label_disabled):hover .mfui-radio-button__custom-input:before{background-color:var(--buttonHoverGrey);border-color:var(--buttonHoverGrey)}.mfui-radio-button__label_light:not(.mfui-radio-button__label_disabled):hover .mfui-radio-button__input:checked+.mfui-radio-button__custom-input:before{background-color:var(--stcBlack)}}.mfui-radio-button__label_light:not(.mfui-radio-button__label_disabled):active .mfui-radio-button__custom-input:before{background-color:var(--buttonDown);border-color:var(--buttonDown)}.mfui-radio-button__label_light:not(.mfui-radio-button__label_disabled):active .mfui-radio-button__input:checked+.mfui-radio-button__custom-input:before{background-color:var(--stcWhite)}.mfui-radio-button__label_light.mfui-radio-button__label_disabled{color:var(--stcWhite50);cursor:default}.mfui-radio-button__label_light.mfui-radio-button__label_disabled .mfui-radio-button__custom-input:before,.mfui-radio-button__label_light.mfui-radio-button__label_disabled .mfui-radio-button__input:checked+.mfui-radio-button__custom-input:before{background-color:var(--stcWhite);border-color:var(--spbSky2)}.mfui-radio-button__text_size_small{font-size:12px;line-height:18px}.mfui-radio-button__text_size_medium{font-size:15px;font-weight:400;line-height:24px}
|
|
@@ -1,47 +1,41 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
4
|
-
import "core-js/modules/es.function.name.js";
|
|
5
|
-
import "core-js/modules/es.array.is-array.js";
|
|
6
4
|
import "core-js/modules/es.array.concat.js";
|
|
5
|
+
import "core-js/modules/es.array.is-array.js";
|
|
6
|
+
import "core-js/modules/es.function.name.js";
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
9
|
-
import * as PropTypes from 'prop-types';
|
|
10
9
|
import "./RadioButton.css";
|
|
11
10
|
var cn = cnCreate('mfui-radio-button');
|
|
12
|
-
|
|
13
11
|
var RadioButton = function RadioButton(_ref) {
|
|
14
|
-
var _cn;
|
|
15
|
-
|
|
16
12
|
var _ref$color = _ref.color,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
13
|
+
color = _ref$color === void 0 ? 'dark' : _ref$color,
|
|
14
|
+
isChecked = _ref.isChecked,
|
|
15
|
+
_ref$disabled = _ref.disabled,
|
|
16
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
17
|
+
name = _ref.name,
|
|
18
|
+
value = _ref.value,
|
|
19
|
+
_ref$textSize = _ref.textSize,
|
|
20
|
+
textSize = _ref$textSize === void 0 ? 'medium' : _ref$textSize,
|
|
21
|
+
children = _ref.children,
|
|
22
|
+
inputRef = _ref.inputRef,
|
|
23
|
+
className = _ref.className,
|
|
24
|
+
_ref$classes = _ref.classes,
|
|
25
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
26
|
+
dataAttrs = _ref.dataAttrs,
|
|
27
|
+
onChange = _ref.onChange;
|
|
32
28
|
var checkedProp = isChecked !== undefined ? {
|
|
33
29
|
checked: isChecked
|
|
34
30
|
} : {};
|
|
35
31
|
var rootClassNames = Array.isArray(className) ? [].concat(_toConsumableArray(className), [classes.root]) : [className, classes.root];
|
|
36
|
-
|
|
37
32
|
var handleChange = function handleChange() {
|
|
38
33
|
return onChange === null || onChange === void 0 ? void 0 : onChange(value);
|
|
39
34
|
};
|
|
40
|
-
|
|
41
35
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
42
36
|
className: cn(rootClassNames)
|
|
43
37
|
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement("label", {
|
|
44
|
-
className: cn('label', (
|
|
38
|
+
className: cn('label', _defineProperty(_defineProperty({}, color, true), "disabled", disabled), classes.label)
|
|
45
39
|
}, /*#__PURE__*/React.createElement("input", _extends({}, checkedProp, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.input), {
|
|
46
40
|
className: cn('input', _defineProperty({}, color, true)),
|
|
47
41
|
type: "radio",
|
|
@@ -58,30 +52,4 @@ var RadioButton = function RadioButton(_ref) {
|
|
|
58
52
|
}, classes.labelText)
|
|
59
53
|
}), children)));
|
|
60
54
|
};
|
|
61
|
-
|
|
62
|
-
RadioButton.propTypes = {
|
|
63
|
-
color: PropTypes.oneOf(['dark', 'light']),
|
|
64
|
-
value: PropTypes.string.isRequired,
|
|
65
|
-
name: PropTypes.string,
|
|
66
|
-
textSize: PropTypes.oneOf(['small', 'medium']),
|
|
67
|
-
disabled: PropTypes.bool,
|
|
68
|
-
isChecked: PropTypes.bool,
|
|
69
|
-
className: PropTypes.string,
|
|
70
|
-
classes: PropTypes.shape({
|
|
71
|
-
root: PropTypes.string,
|
|
72
|
-
label: PropTypes.string,
|
|
73
|
-
customInput: PropTypes.string,
|
|
74
|
-
labelText: PropTypes.string
|
|
75
|
-
}),
|
|
76
|
-
dataAttrs: PropTypes.shape({
|
|
77
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
78
|
-
input: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
79
|
-
text: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
80
|
-
}),
|
|
81
|
-
children: PropTypes.node,
|
|
82
|
-
onChange: PropTypes.func,
|
|
83
|
-
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
|
84
|
-
current: PropTypes.elementType
|
|
85
|
-
}), PropTypes.any])])
|
|
86
|
-
};
|
|
87
55
|
export default RadioButton;
|
|
@@ -1,238 +1 @@
|
|
|
1
|
-
.mfui-row {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-block;
|
|
4
|
-
-webkit-box-sizing: border-box;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: -webkit-fit-content;
|
|
8
|
-
height: -moz-fit-content;
|
|
9
|
-
height: fit-content;
|
|
10
|
-
padding: 12px 16px;
|
|
11
|
-
border: none;
|
|
12
|
-
border-radius: 12px;
|
|
13
|
-
color: var(--content);
|
|
14
|
-
text-decoration: none;
|
|
15
|
-
background-color: var(--base);
|
|
16
|
-
-webkit-transition: background-color, color, -webkit-box-shadow;
|
|
17
|
-
transition: background-color, color, -webkit-box-shadow;
|
|
18
|
-
transition: background-color, color, box-shadow;
|
|
19
|
-
transition: background-color, color, box-shadow, -webkit-box-shadow;
|
|
20
|
-
-webkit-transition-duration: 0.3s;
|
|
21
|
-
transition-duration: 0.3s;
|
|
22
|
-
}
|
|
23
|
-
@media screen and (min-width: 768px) {
|
|
24
|
-
.mfui-row {
|
|
25
|
-
padding: 20px 24px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
@media screen and (min-width: 1024px) {
|
|
29
|
-
.mfui-row {
|
|
30
|
-
padding: 24px 32px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
.mfui-row__wrapper {
|
|
34
|
-
display: -webkit-box;
|
|
35
|
-
display: -ms-flexbox;
|
|
36
|
-
display: flex;
|
|
37
|
-
-webkit-box-align: center;
|
|
38
|
-
-ms-flex-align: center;
|
|
39
|
-
align-items: center;
|
|
40
|
-
}
|
|
41
|
-
.mfui-row__icon-container {
|
|
42
|
-
display: -webkit-box;
|
|
43
|
-
display: -ms-flexbox;
|
|
44
|
-
display: flex;
|
|
45
|
-
-ms-flex-negative: 0;
|
|
46
|
-
flex-shrink: 0;
|
|
47
|
-
-webkit-box-align: center;
|
|
48
|
-
-ms-flex-align: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
-webkit-box-pack: center;
|
|
51
|
-
-ms-flex-pack: center;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
width: 40px;
|
|
54
|
-
height: 40px;
|
|
55
|
-
margin-right: 8px;
|
|
56
|
-
}
|
|
57
|
-
@media screen and (max-width: 767px) {
|
|
58
|
-
.mfui-row__icon-container {
|
|
59
|
-
margin-left: -4px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
@media screen and (min-width: 768px) {
|
|
63
|
-
.mfui-row__icon-container {
|
|
64
|
-
width: 48px;
|
|
65
|
-
height: 48px;
|
|
66
|
-
margin-right: 12px;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
@media screen and (min-width: 1024px) {
|
|
70
|
-
.mfui-row__icon-container {
|
|
71
|
-
width: 56px;
|
|
72
|
-
height: 56px;
|
|
73
|
-
margin-right: 16px;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
.mfui-row__icon-container svg {
|
|
77
|
-
fill: var(--content);
|
|
78
|
-
}
|
|
79
|
-
.mfui-row__icon-container_colored {
|
|
80
|
-
border-radius: 50%;
|
|
81
|
-
background-color: var(--brandGreen20);
|
|
82
|
-
}
|
|
83
|
-
.mfui-row__icon-container_colored svg {
|
|
84
|
-
fill: var(--brandGreen);
|
|
85
|
-
}
|
|
86
|
-
.mfui-row__icon,
|
|
87
|
-
.mfui-row__icon svg {
|
|
88
|
-
width: 32px;
|
|
89
|
-
min-width: 32px;
|
|
90
|
-
height: 32px;
|
|
91
|
-
}
|
|
92
|
-
@media screen and (min-width: 1024px) {
|
|
93
|
-
.mfui-row__icon,
|
|
94
|
-
.mfui-row__icon svg {
|
|
95
|
-
width: 40px;
|
|
96
|
-
min-width: 40px;
|
|
97
|
-
height: 40px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.mfui-row__header {
|
|
101
|
-
margin-right: auto;
|
|
102
|
-
padding-right: 12px;
|
|
103
|
-
}
|
|
104
|
-
@media screen and (max-width: 767px) {
|
|
105
|
-
.mfui-row__title {
|
|
106
|
-
font-size: 15px;
|
|
107
|
-
line-height: 24px;
|
|
108
|
-
font-weight: 500;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
.mfui-row__sub-title {
|
|
112
|
-
font-size: 12px;
|
|
113
|
-
line-height: 18px;
|
|
114
|
-
margin-top: 2px;
|
|
115
|
-
color: var(--spbSky3);
|
|
116
|
-
}
|
|
117
|
-
@media screen and (min-width: 768px) {
|
|
118
|
-
.mfui-row__sub-title:not(.mfui-row_size_small) {
|
|
119
|
-
font-size: 15px;
|
|
120
|
-
line-height: 24px;
|
|
121
|
-
margin-top: 4px;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
.mfui-row__arrow {
|
|
125
|
-
width: 32px;
|
|
126
|
-
min-width: 32px;
|
|
127
|
-
height: 32px;
|
|
128
|
-
fill: var(--spbSky3);
|
|
129
|
-
}
|
|
130
|
-
@media screen and (min-width: 768px) {
|
|
131
|
-
.mfui-row__arrow {
|
|
132
|
-
margin-left: 4px;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
@media screen and (min-width: 1024px) {
|
|
136
|
-
.mfui-row__arrow {
|
|
137
|
-
margin-left: 12px;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
.mfui-row__children {
|
|
141
|
-
font-size: 15px;
|
|
142
|
-
line-height: 24px;
|
|
143
|
-
font-weight: 500;
|
|
144
|
-
}
|
|
145
|
-
@media screen and (min-width: 768px) {
|
|
146
|
-
.mfui-row__children {
|
|
147
|
-
font-weight: 500;
|
|
148
|
-
font-size: 18px;
|
|
149
|
-
line-height: 24px;
|
|
150
|
-
letter-spacing: 0.5px;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
@media screen and (min-width: 768px) and screen and (min-width: 1280px) {
|
|
154
|
-
.mfui-row__children {
|
|
155
|
-
font-size: 20px;
|
|
156
|
-
line-height: 28px;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
.mfui-row_view_shadow {
|
|
160
|
-
-webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
161
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
162
|
-
}
|
|
163
|
-
.mfui-row_view_stroke {
|
|
164
|
-
border: 1px solid var(--spbSky2);
|
|
165
|
-
background-color: inherit;
|
|
166
|
-
}
|
|
167
|
-
.mfui-row_pointer {
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
}
|
|
170
|
-
.mfui-row_pointer.mfui-row_view_shadow:hover {
|
|
171
|
-
-webkit-box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
|
|
172
|
-
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
|
|
173
|
-
}
|
|
174
|
-
.mfui-row_pointer.mfui-row_view_shadow:hover:after {
|
|
175
|
-
content: '';
|
|
176
|
-
position: absolute;
|
|
177
|
-
top: 0;
|
|
178
|
-
right: 0;
|
|
179
|
-
bottom: 0;
|
|
180
|
-
left: 0;
|
|
181
|
-
border-radius: 12px;
|
|
182
|
-
background-color: var(--stcWhite10);
|
|
183
|
-
pointer-events: none;
|
|
184
|
-
}
|
|
185
|
-
.mfui-row_pointer.mfui-row_view_stroke:hover {
|
|
186
|
-
background-color: var(--spbSky0);
|
|
187
|
-
}
|
|
188
|
-
.mfui-row_has-arrow {
|
|
189
|
-
padding-right: 8px;
|
|
190
|
-
}
|
|
191
|
-
@media screen and (min-width: 768px) {
|
|
192
|
-
.mfui-row_has-arrow {
|
|
193
|
-
padding-right: 16px;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
@media screen and (min-width: 1024px) {
|
|
197
|
-
.mfui-row_has-arrow {
|
|
198
|
-
padding-right: 20px;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
@media screen and (min-width: 1024px) {
|
|
202
|
-
.mfui-row_has-arrow.mfui-row_size_small {
|
|
203
|
-
padding-right: 16px;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
@media screen and (min-width: 768px) {
|
|
207
|
-
.mfui-row_size_small {
|
|
208
|
-
padding: 16px 24px 16px 20px;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
@media screen and (min-width: 1024px) {
|
|
212
|
-
.mfui-row_size_small {
|
|
213
|
-
padding: 20px 24px;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
@media screen and (min-width: 1024px) {
|
|
217
|
-
.mfui-row_size_small .mfui-row__sub-title {
|
|
218
|
-
font-size: 15px;
|
|
219
|
-
line-height: 24px;
|
|
220
|
-
margin-top: 4px;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
|
224
|
-
.mfui-row_size_small .mfui-row__icon-container {
|
|
225
|
-
width: 40px;
|
|
226
|
-
height: 40px;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
|
230
|
-
.mfui-row_size_small .mfui-row__arrow {
|
|
231
|
-
margin-right: -4px;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
.mfui-row_size_small .mfui-row__children {
|
|
235
|
-
font-size: 15px;
|
|
236
|
-
line-height: 24px;
|
|
237
|
-
font-weight: 500;
|
|
238
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-row{background-color:var(--base);border:none;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:12px 16px;position:relative;text-decoration:none;-webkit-transition:background-color,color,-webkit-box-shadow;transition:background-color,color,-webkit-box-shadow;transition:background-color,color,box-shadow;transition:background-color,color,box-shadow,-webkit-box-shadow;-webkit-transition-duration:.3s;transition-duration:.3s;width:100%}@media screen and (min-width:768px){.mfui-row{padding:20px 24px}}@media screen and (min-width:1024px){.mfui-row{padding:24px 32px}}.mfui-row__icon-container,.mfui-row__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-row__icon-container{-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;height:40px;justify-content:center;margin-right:8px;width:40px}@media screen and (max-width:767px){.mfui-row__icon-container{margin-left:-4px}}@media screen and (min-width:768px){.mfui-row__icon-container{height:48px;margin-right:12px;width:48px}}@media screen and (min-width:1024px){.mfui-row__icon-container{height:56px;margin-right:16px;width:56px}}.mfui-row__icon-container svg{fill:var(--content)}.mfui-row__icon-container_colored{background-color:var(--brandGreen20);border-radius:50%}.mfui-row__icon-container_colored svg{fill:var(--brandGreen)}.mfui-row__icon,.mfui-row__icon svg{height:32px;min-width:32px;width:32px}@media screen and (min-width:1024px){.mfui-row__icon,.mfui-row__icon svg{height:40px;min-width:40px;width:40px}}.mfui-row__header{margin-right:auto;padding-right:12px}@media screen and (max-width:767px){.mfui-row__title{font-size:15px;font-weight:500;line-height:24px}}.mfui-row__sub-title{color:var(--spbSky3);font-size:12px;line-height:18px;margin-top:2px}@media screen and (min-width:768px){.mfui-row__sub-title:not(.mfui-row_size_small){font-size:15px;line-height:24px;margin-top:4px}}.mfui-row__arrow{height:32px;min-width:32px;width:32px;fill:var(--spbSky3)}@media screen and (min-width:768px){.mfui-row__arrow{margin-left:4px}}@media screen and (min-width:1024px){.mfui-row__arrow{margin-left:12px}}.mfui-row__children{font-size:15px;font-weight:500;line-height:24px}@media screen and (min-width:768px){.mfui-row__children{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}}@media screen and (min-width:768px) and (min-width:1280px){.mfui-row__children{font-size:20px;line-height:28px}}.mfui-row_view_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-row_view_stroke{background-color:inherit;border:1px solid var(--spbSky2)}.mfui-row_pointer{cursor:pointer}.mfui-row_pointer.mfui-row_view_shadow:hover{-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-row_pointer.mfui-row_view_shadow:hover:after{background-color:var(--stcWhite10);border-radius:12px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.mfui-row_pointer.mfui-row_view_stroke:hover{background-color:var(--spbSky0)}.mfui-row_has-arrow{padding-right:8px}@media screen and (min-width:768px){.mfui-row_has-arrow{padding-right:16px}}@media screen and (min-width:1024px){.mfui-row_has-arrow{padding-right:20px}.mfui-row_has-arrow.mfui-row_size_small{padding-right:16px}}@media screen and (min-width:768px){.mfui-row_size_small{padding:16px 24px 16px 20px}}@media screen and (min-width:1024px){.mfui-row_size_small{padding:20px 24px}.mfui-row_size_small .mfui-row__sub-title{font-size:15px;line-height:24px;margin-top:4px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-row_size_small .mfui-row__icon-container{height:40px;width:40px}.mfui-row_size_small .mfui-row__arrow{margin-right:-4px}}.mfui-row_size_small .mfui-row__children{font-size:15px;font-weight:500;line-height:24px}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
4
|
-
import * as PropTypes from 'prop-types';
|
|
5
4
|
import Header from "../Header/Header";
|
|
6
5
|
import Preloader from "../Preloader/Preloader";
|
|
7
6
|
import "./Row.css";
|
|
8
|
-
|
|
9
7
|
var ArrowRight = function ArrowRight(props) {
|
|
10
8
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
11
9
|
viewBox: "0 0 32 32"
|
|
@@ -13,41 +11,37 @@ var ArrowRight = function ArrowRight(props) {
|
|
|
13
11
|
d: "M12.5 20.8l4.8-4.8-4.8-4.8 1.6-1.7 6.4 6.5-6.4 6.5z"
|
|
14
12
|
}));
|
|
15
13
|
};
|
|
16
|
-
|
|
17
14
|
var cn = cnCreate('mfui-row');
|
|
18
|
-
|
|
19
15
|
var Row = function Row(_ref) {
|
|
20
16
|
var title = _ref.title,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
17
|
+
subTitle = _ref.subTitle,
|
|
18
|
+
_ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? 'big' : _ref$size,
|
|
20
|
+
_ref$backgroundView = _ref.backgroundView,
|
|
21
|
+
backgroundView = _ref$backgroundView === void 0 ? 'shadow' : _ref$backgroundView,
|
|
22
|
+
icon = _ref.icon,
|
|
23
|
+
_ref$isIconColored = _ref.isIconColored,
|
|
24
|
+
isIconColored = _ref$isIconColored === void 0 ? false : _ref$isIconColored,
|
|
25
|
+
_ref$showArrow = _ref.showArrow,
|
|
26
|
+
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
27
|
+
_ref$showLoader = _ref.showLoader,
|
|
28
|
+
showLoader = _ref$showLoader === void 0 ? false : _ref$showLoader,
|
|
29
|
+
href = _ref.href,
|
|
30
|
+
_ref$target = _ref.target,
|
|
31
|
+
target = _ref$target === void 0 ? '_self' : _ref$target,
|
|
32
|
+
rel = _ref.rel,
|
|
33
|
+
onClick = _ref.onClick,
|
|
34
|
+
children = _ref.children,
|
|
35
|
+
className = _ref.className,
|
|
36
|
+
_ref$classes = _ref.classes,
|
|
37
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
38
|
+
dataAttrs = _ref.dataAttrs;
|
|
43
39
|
var ElementType = href ? 'a' : 'div';
|
|
44
40
|
var isActive = !showLoader && (!!href || !!onClick);
|
|
45
41
|
var isSmallSize = size === 'small';
|
|
46
|
-
|
|
47
42
|
var handleClick = function handleClick(e) {
|
|
48
43
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
49
44
|
};
|
|
50
|
-
|
|
51
45
|
return /*#__PURE__*/React.createElement(ElementType, _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
52
46
|
className: cn({
|
|
53
47
|
size: size,
|
|
@@ -85,23 +79,4 @@ var Row = function Row(_ref) {
|
|
|
85
79
|
}
|
|
86
80
|
})));
|
|
87
81
|
};
|
|
88
|
-
|
|
89
|
-
Row.propTypes = {
|
|
90
|
-
title: PropTypes.string.isRequired,
|
|
91
|
-
subTitle: PropTypes.string,
|
|
92
|
-
size: PropTypes.oneOf(['big', 'small']),
|
|
93
|
-
backgroundView: PropTypes.oneOf(['shadow', 'stroke']),
|
|
94
|
-
icon: PropTypes.element,
|
|
95
|
-
isIconColored: PropTypes.bool,
|
|
96
|
-
showArrow: PropTypes.bool,
|
|
97
|
-
showLoader: PropTypes.bool,
|
|
98
|
-
href: PropTypes.string,
|
|
99
|
-
target: PropTypes.oneOf(['_self', '_blank']),
|
|
100
|
-
rel: PropTypes.string,
|
|
101
|
-
onClick: PropTypes.func,
|
|
102
|
-
children: PropTypes.node,
|
|
103
|
-
className: PropTypes.string,
|
|
104
|
-
classes: PropTypes.objectOf(PropTypes.string),
|
|
105
|
-
dataAttrs: PropTypes.objectOf(PropTypes.object)
|
|
106
|
-
};
|
|
107
82
|
export default Row;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-scroll-bar_hide-all .simplebar-vertical{display:none}@media screen and (min-width:1280px){.mfui-scroll-bar_hide-wide .simplebar-vertical{display:none}}@media screen and (min-width:1024px){.mfui-scroll-bar_hide-desktop .simplebar-vertical{display:none}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-scroll-bar_hide-tablet .simplebar-vertical{display:none}}@media screen and (max-width:767px){.mfui-scroll-bar_hide-mobile .simplebar-vertical{display:none}}.mfui-scroll-bar_initial-hide .simplebar-vertical{display:none}.mfui-scroll-bar__init{position:relative}.mfui-scroll-bar__scroll-track{bottom:0;overflow:hidden;position:absolute;right:0}.mfui-scroll-bar .simplebar-horizontal{display:none}.mfui-scroll-bar .simplebar-vertical{-webkit-animation:hide-track .2s linear 3s forwards;animation:hide-track .2s linear 3s forwards;background-color:var(--spbSky1);border-radius:4px;opacity:1;top:0;width:6px}.mfui-scroll-bar__scroll-track-bar{min-height:10px;position:relative;z-index:1}.mfui-scroll-bar__scroll-track-bar:before{background:var(--spbSky2);border-radius:4px;content:"";display:block;height:100%;width:100%}.mfui-scroll-bar__init-scrolling .simplebar-vertical,.mfui-scroll-bar__scroll-track-hover.simplebar-vertical{-webkit-animation:none;animation:none;opacity:1}.mfui-scroll-bar__scroll-content:after,.mfui-scroll-bar__scroll-content:before{-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";display:table}.mfui-scroll-bar__children-wrap{height:100%;padding-right:6px}@-webkit-keyframes hide-track{0%{opacity:1}to{opacity:0}}@keyframes hide-track{0%{opacity:1}to{opacity:0}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import 'simplebar-react/dist/simplebar.min.css';
|
|
3
|
+
import './ScrollBar.scss';
|
|
4
|
+
export interface IScrollBarProps {
|
|
5
|
+
/** Дополнительные классы для корневого и внутренних элементов */
|
|
6
|
+
classes?: {
|
|
7
|
+
root?: string;
|
|
8
|
+
init?: string;
|
|
9
|
+
scrollContent?: string;
|
|
10
|
+
childrenWrap?: string;
|
|
11
|
+
};
|
|
12
|
+
/** Дополнительные data-атрибуты к внутренним элементам */
|
|
13
|
+
dataAttrs?: {
|
|
14
|
+
root?: Record<string, string>;
|
|
15
|
+
init?: Record<string, string>;
|
|
16
|
+
};
|
|
17
|
+
/** Максимальная высота контента */
|
|
18
|
+
maxHeight: number | null;
|
|
19
|
+
/** Не отображать на всех разрешениях экрана */
|
|
20
|
+
hideAll?: boolean;
|
|
21
|
+
/** Не отображать на разрешении экрана 1280+ */
|
|
22
|
+
hideWide?: boolean;
|
|
23
|
+
/** Не отображать на разрешении экрана 1024+ */
|
|
24
|
+
hideDesktop?: boolean;
|
|
25
|
+
/** Не отображать на разрешении экрана 768-1023 */
|
|
26
|
+
hideTablet?: boolean;
|
|
27
|
+
/** Не отображать на разрешении экрана 0-767 */
|
|
28
|
+
hideMobile?: boolean;
|
|
29
|
+
/** Ref обработчик */
|
|
30
|
+
getScrollBar?: (node: HTMLElement) => void;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
declare const ScrollBar: React.FC<IScrollBarProps>;
|
|
34
|
+
export default ScrollBar;
|