@megafon/ui-core 6.0.0-beta.4 → 6.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/CHANGELOG.md +4008 -0
- package/dist/es/colors/ColorItem/ColorItem.css +45 -1
- package/dist/es/colors/ColorItem/ColorItem.d.ts +2 -2
- package/dist/es/colors/ColorItem/ColorItem.js +7 -5
- package/dist/es/colors/Colors.css +233 -1
- package/dist/es/colors/Colors.d.ts +1 -1
- package/dist/es/colors/Colors.js +55 -33
- package/dist/es/colors/colorsData.d.ts +4 -4
- package/dist/es/components/Accordion/Accordion.css +89 -1
- package/dist/es/components/Accordion/Accordion.d.ts +1 -2
- package/dist/es/components/Accordion/Accordion.js +65 -22
- package/dist/es/components/Avatar/Avatar.css +52 -1
- package/dist/es/components/Avatar/Avatar.d.ts +1 -1
- package/dist/es/components/Avatar/Avatar.js +27 -9
- package/dist/es/components/Avatar/doc/i/img.png +0 -0
- package/dist/es/components/Badges/components/CounterBadge/CounterBadge.css +54 -0
- package/dist/es/components/Badges/{CounterBadge → components/CounterBadge}/CounterBadge.d.ts +2 -2
- package/dist/es/components/Badges/{CounterBadge → components/CounterBadge}/CounterBadge.js +28 -10
- package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.css +58 -0
- package/dist/es/components/Badges/{NotificationBadge → components/NotificationBadge}/NotificationBadge.d.ts +4 -3
- package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.js +49 -0
- package/dist/es/components/Badges/components/PriceBadge/PriceBadge.css +119 -0
- package/dist/es/components/Badges/{PriceBadge → components/PriceBadge}/PriceBadge.d.ts +4 -4
- package/dist/es/components/Badges/{PriceBadge → components/PriceBadge}/PriceBadge.js +54 -11
- package/dist/es/components/Badges/components/PromoBadge/PromoBadge.css +64 -0
- package/dist/{lib/components/Badges → es/components/Badges/components}/PromoBadge/PromoBadge.d.ts +3 -3
- package/dist/es/components/Badges/{PromoBadge → components/PromoBadge}/PromoBadge.js +21 -7
- package/dist/es/components/Badges/{TimerBadge/components → components/TimerBadge}/Timer/Timer.js +32 -5
- package/dist/es/components/Badges/components/TimerBadge/TimerBadge.css +60 -0
- package/dist/{lib/components/Badges → es/components/Badges/components}/TimerBadge/TimerBadge.d.ts +2 -2
- package/dist/es/components/Badges/{TimerBadge → components/TimerBadge}/TimerBadge.js +45 -22
- package/dist/es/components/Banner/Banner.css +195 -1
- package/dist/es/components/Banner/Banner.d.ts +4 -5
- package/dist/es/components/Banner/Banner.js +129 -64
- package/dist/es/components/Banner/BannerDot.css +69 -1
- package/dist/es/components/Banner/BannerDot.d.ts +1 -1
- package/dist/es/components/Banner/BannerDot.js +22 -6
- package/dist/es/components/Banner/slidesSettings.d.ts +2 -4
- package/dist/es/components/Banner/slidesSettings.js +6 -3
- package/dist/es/components/Button/Button.css +814 -1
- package/dist/es/components/Button/Button.d.ts +6 -7
- package/dist/es/components/Button/Button.js +104 -44
- package/dist/es/components/Calendar/Calendar.css +5 -1
- package/dist/es/components/Calendar/Calendar.d.ts +2 -2
- package/dist/es/components/Calendar/Calendar.js +114 -60
- package/dist/es/components/Calendar/components/Day/Day.css +128 -0
- package/dist/{lib/components/Calendar/components/_Day → es/components/Calendar/components/Day}/Day.d.ts +4 -4
- package/dist/es/components/Calendar/components/{_Day → Day}/Day.js +50 -19
- package/dist/es/components/Calendar/components/Month/Month.css +81 -0
- package/dist/es/components/Calendar/components/{_Month → Month}/Month.d.ts +2 -3
- package/dist/es/components/Calendar/components/{_Month → Month}/Month.js +33 -9
- package/dist/es/components/Caption/Caption.css +48 -1
- package/dist/es/components/Caption/Caption.d.ts +2 -4
- package/dist/es/components/Caption/Caption.js +25 -11
- package/dist/es/components/Carousel/Carousel.css +215 -1
- package/dist/es/components/Carousel/Carousel.d.ts +10 -11
- package/dist/es/components/Carousel/Carousel.js +161 -104
- package/dist/es/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
- package/dist/es/components/Carousel/checkBreakpointsPropTypes.js +4 -1
- package/dist/es/components/Carousel/useGradient.d.ts +1 -1
- package/dist/es/components/Carousel/useGradient.js +13 -9
- package/dist/es/components/Checkbox/Checkbox.css +150 -1
- package/dist/es/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/es/components/Checkbox/Checkbox.js +50 -21
- package/dist/es/components/Chips/Chip.css +132 -1
- package/dist/es/components/Chips/Chip.d.ts +26 -6
- package/dist/es/components/Chips/Chip.js +42 -17
- package/dist/es/components/Chips/Chips.css +19 -1
- package/dist/es/components/Chips/Chips.d.ts +2 -2
- package/dist/es/components/Chips/Chips.js +56 -32
- package/dist/es/components/Chips/components/ChipsDropdown.css +106 -1
- package/dist/es/components/Chips/components/ChipsDropdown.d.ts +2 -2
- package/dist/es/components/Chips/components/ChipsDropdown.js +27 -12
- package/dist/es/components/Collapse/Collapse.css +3 -0
- package/dist/{lib/components/_Collapse → es/components/Collapse}/Collapse.d.ts +3 -3
- package/dist/es/components/{_Collapse → Collapse}/Collapse.js +62 -25
- package/dist/es/components/ContentArea/ContentArea.css +109 -1
- package/dist/es/components/ContentArea/ContentArea.d.ts +4 -5
- package/dist/es/components/ContentArea/ContentArea.js +28 -9
- package/dist/es/components/ContentView/ContentView.css +103 -1
- package/dist/es/components/ContentView/ContentView.d.ts +2 -3
- package/dist/es/components/ContentView/ContentView.js +46 -12
- package/dist/es/components/Counter/Counter.css +123 -1
- package/dist/es/components/Counter/Counter.d.ts +1 -1
- package/dist/es/components/Counter/Counter.js +55 -20
- package/dist/es/components/Grid/Grid.css +102 -1
- package/dist/es/components/Grid/Grid.d.ts +1 -1
- package/dist/es/components/Grid/Grid.js +24 -8
- package/dist/es/components/Grid/GridColumn.css +3102 -1
- package/dist/es/components/Grid/GridColumn.d.ts +2 -2
- package/dist/es/components/Grid/GridColumn.js +62 -33
- package/dist/es/components/Header/Header.css +122 -1
- package/dist/es/components/Header/Header.d.ts +1 -3
- package/dist/es/components/Header/Header.js +28 -13
- package/dist/es/components/Link/Link.d.ts +2 -2
- package/dist/es/components/Link/Link.js +25 -9
- package/dist/es/components/List/List.css +66 -1
- package/dist/es/components/List/List.d.ts +1 -2
- package/dist/es/components/List/List.js +18 -8
- package/dist/es/components/List/ListItem.css +6 -1
- package/dist/es/components/List/ListItem.d.ts +1 -2
- package/dist/es/components/List/ListItem.js +7 -1
- package/dist/es/components/ListData/ListData.css +162 -1
- package/dist/es/components/ListData/ListData.d.ts +34 -6
- package/dist/es/components/ListData/ListData.js +65 -22
- package/dist/es/components/ListData/ListDataGroup.css +15 -1
- package/dist/es/components/ListData/ListDataGroup.d.ts +4 -4
- package/dist/es/components/ListData/ListDataGroup.js +74 -29
- package/dist/es/components/ListData/components/ListDataSortable.css +79 -1
- package/dist/es/components/ListData/components/ListDataSortable.d.ts +4 -4
- package/dist/es/components/ListData/components/ListDataSortable.js +42 -21
- package/dist/es/components/ListData/doc/i/img.png +0 -0
- package/dist/es/components/ListData/helpers.js +8 -1
- package/dist/es/components/Logo/Logo.css +43 -1
- package/dist/es/components/Logo/Logo.d.ts +1 -1
- package/dist/es/components/Logo/Logo.js +25 -9
- package/dist/es/components/NavArrow/NavArrow.css +63 -1
- package/dist/es/components/NavArrow/NavArrow.d.ts +3 -3
- package/dist/es/components/NavArrow/NavArrow.js +28 -8
- package/dist/es/components/Notification/Notification.css +350 -1
- package/dist/es/components/Notification/Notification.d.ts +4 -5
- package/dist/es/components/Notification/Notification.js +131 -61
- package/dist/es/components/Pagination/Pagination.css +5 -1
- package/dist/es/components/Pagination/Pagination.d.ts +3 -4
- package/dist/es/components/Pagination/Pagination.js +22 -7
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +62 -1
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +4 -5
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +26 -10
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +10 -1
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +2 -3
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +22 -5
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +17 -1
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +2 -3
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +23 -7
- package/dist/es/components/Pagination/helpers.js +3 -0
- package/dist/es/components/Pagination/usePagination.d.ts +1 -2
- package/dist/es/components/Pagination/usePagination.js +18 -6
- package/dist/es/components/Paragraph/Paragraph.css +43 -1
- package/dist/es/components/Paragraph/Paragraph.d.ts +2 -4
- package/dist/es/components/Paragraph/Paragraph.js +22 -9
- package/dist/es/components/Preloader/Preloader.css +224 -1
- package/dist/es/components/Preloader/Preloader.d.ts +3 -3
- package/dist/es/components/Preloader/Preloader.js +36 -16
- package/dist/es/components/RadioButton/RadioButton.css +120 -1
- package/dist/es/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/es/components/RadioButton/RadioButton.js +50 -18
- package/dist/es/components/Row/Row.css +238 -1
- package/dist/es/components/Row/Row.d.ts +2 -2
- package/dist/es/components/Row/Row.js +48 -23
- package/dist/es/components/Search/Search.css +453 -1
- package/dist/es/components/Search/Search.d.ts +8 -7
- package/dist/es/components/Search/Search.js +149 -54
- package/dist/es/components/Select/Select.css +389 -1
- package/dist/es/components/Select/Select.d.ts +84 -8
- package/dist/es/components/Select/Select.js +142 -52
- package/dist/es/components/Select/reducer/selectReducer.d.ts +1 -1
- package/dist/es/components/Select/reducer/selectReducer.js +32 -18
- package/dist/es/components/Selector/Selector.css +132 -1
- package/dist/es/components/Selector/Selector.d.ts +1 -1
- package/dist/es/components/Selector/Selector.js +50 -23
- package/dist/es/components/Selector/doc/Selector.example.css +17 -0
- package/dist/es/components/Sliders/Slider/Slider.css +128 -1
- package/dist/es/components/Sliders/Slider/Slider.d.ts +1 -1
- package/dist/es/components/Sliders/Slider/Slider.js +56 -25
- package/dist/es/components/Sliders/SliderRange/SliderRange.css +169 -1
- package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRange/SliderRange.js +80 -33
- package/dist/es/components/Sliders/SliderRange/helpers.js +2 -0
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +219 -1
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.js +85 -36
- 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 +1 -0
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +84 -1
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +35 -11
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +15 -1
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +20 -6
- package/dist/es/components/Sliders/components/SliderScale/helpers.js +16 -12
- package/dist/es/components/Sliders/helpers.js +5 -1
- package/dist/es/components/Snackbar/Snackbar.css +220 -1
- package/dist/es/components/Snackbar/Snackbar.d.ts +3 -3
- package/dist/es/components/Snackbar/Snackbar.js +82 -44
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.css +66 -1
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.js +17 -9
- package/dist/es/components/Switcher/Switcher.css +160 -1
- package/dist/es/components/Switcher/Switcher.d.ts +1 -2
- package/dist/es/components/Switcher/Switcher.js +39 -17
- package/dist/es/components/Tabs/Tab.d.ts +6 -0
- package/dist/es/components/Tabs/Tab.js +14 -0
- package/dist/es/components/Tabs/Tabs.css +306 -1
- package/dist/es/components/Tabs/Tabs.d.ts +5 -6
- package/dist/es/components/Tabs/Tabs.js +177 -87
- package/dist/es/components/TextField/TextField.css +343 -1
- package/dist/es/components/TextField/TextField.d.ts +3 -3
- package/dist/es/components/TextField/TextField.js +188 -80
- package/dist/es/components/TextField/utils/countGraphemes.js +18 -10
- package/dist/es/components/TextLink/TextLink.css +50 -1
- package/dist/es/components/TextLink/TextLink.d.ts +2 -2
- package/dist/es/components/TextLink/TextLink.js +27 -14
- package/dist/es/components/Tile/Tile.css +43 -1
- package/dist/es/components/Tile/Tile.d.ts +5 -7
- package/dist/es/components/Tile/Tile.js +36 -16
- package/dist/es/components/Tooltip/Tooltip.css +335 -1
- package/dist/es/components/Tooltip/Tooltip.d.ts +8 -9
- package/dist/es/components/Tooltip/Tooltip.js +139 -58
- package/dist/es/hooks/usePrevious.js +2 -0
- package/dist/es/hooks/useResolution.d.ts +1 -1
- package/dist/es/hooks/useResolution.js +11 -5
- package/dist/es/hooks/useSwipe.d.ts +1 -1
- package/dist/es/hooks/useSwipe.js +44 -17
- package/dist/es/index.d.ts +9 -16
- package/dist/es/index.js +10 -17
- package/dist/lib/colors/ColorItem/ColorItem.css +45 -1
- package/dist/lib/colors/ColorItem/ColorItem.d.ts +2 -2
- package/dist/lib/colors/ColorItem/ColorItem.js +18 -9
- package/dist/lib/colors/Colors.css +233 -1
- package/dist/lib/colors/Colors.d.ts +1 -1
- package/dist/lib/colors/Colors.js +79 -37
- package/dist/lib/colors/colorsData.d.ts +4 -4
- package/dist/lib/colors/colorsData.js +2 -1
- package/dist/lib/components/Accordion/Accordion.css +89 -1
- package/dist/lib/components/Accordion/Accordion.d.ts +1 -2
- package/dist/lib/components/Accordion/Accordion.js +81 -26
- package/dist/lib/components/Avatar/Avatar.css +52 -1
- package/dist/lib/components/Avatar/Avatar.d.ts +1 -1
- package/dist/lib/components/Avatar/Avatar.js +41 -13
- package/dist/lib/components/Avatar/doc/i/img.png +0 -0
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.css +54 -0
- package/dist/lib/components/Badges/{CounterBadge → components/CounterBadge}/CounterBadge.d.ts +2 -2
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.js +81 -0
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.css +58 -0
- package/dist/lib/components/Badges/{NotificationBadge → components/NotificationBadge}/NotificationBadge.d.ts +4 -3
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.js +71 -0
- package/dist/lib/components/Badges/components/PriceBadge/PriceBadge.css +119 -0
- package/dist/lib/components/Badges/{PriceBadge → components/PriceBadge}/PriceBadge.d.ts +4 -4
- package/dist/lib/components/Badges/{PriceBadge → components/PriceBadge}/PriceBadge.js +75 -19
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.css +64 -0
- package/dist/{es/components/Badges → lib/components/Badges/components}/PromoBadge/PromoBadge.d.ts +3 -3
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.js +76 -0
- package/dist/lib/components/Badges/{TimerBadge/components → components/TimerBadge}/Timer/Timer.js +55 -11
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.css +60 -0
- package/dist/{es/components/Badges → lib/components/Badges/components}/TimerBadge/TimerBadge.d.ts +2 -2
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.js +135 -0
- package/dist/lib/components/Banner/Banner.css +195 -1
- package/dist/lib/components/Banner/Banner.d.ts +4 -5
- package/dist/lib/components/Banner/Banner.js +160 -72
- package/dist/lib/components/Banner/BannerDot.css +69 -1
- package/dist/lib/components/Banner/BannerDot.d.ts +1 -1
- package/dist/lib/components/Banner/BannerDot.js +36 -10
- package/dist/lib/components/Banner/slidesSettings.d.ts +2 -4
- package/dist/lib/components/Banner/slidesSettings.js +11 -4
- package/dist/lib/components/Button/Button.css +814 -1
- package/dist/lib/components/Button/Button.d.ts +6 -7
- package/dist/lib/components/Button/Button.js +157 -70
- package/dist/lib/components/Calendar/Calendar.css +5 -1
- package/dist/lib/components/Calendar/Calendar.d.ts +2 -2
- package/dist/lib/components/Calendar/Calendar.js +148 -70
- package/dist/lib/components/Calendar/components/Day/Day.css +128 -0
- package/dist/{es/components/Calendar/components/_Day → lib/components/Calendar/components/Day}/Day.d.ts +4 -4
- package/dist/lib/components/Calendar/components/Day/Day.js +117 -0
- package/dist/lib/components/Calendar/components/Month/Month.css +81 -0
- package/dist/lib/components/Calendar/components/{_Month → Month}/Month.d.ts +2 -3
- package/dist/lib/components/Calendar/components/Month/Month.js +122 -0
- package/dist/lib/components/Caption/Caption.css +48 -1
- package/dist/lib/components/Caption/Caption.d.ts +2 -4
- package/dist/lib/components/Caption/Caption.js +40 -15
- package/dist/lib/components/Carousel/Carousel.css +215 -1
- package/dist/lib/components/Carousel/Carousel.d.ts +10 -11
- package/dist/lib/components/Carousel/Carousel.js +226 -195
- package/dist/lib/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
- package/dist/lib/components/Carousel/checkBreakpointsPropTypes.js +17 -5
- package/dist/lib/components/Carousel/useGradient.d.ts +1 -1
- package/dist/lib/components/Carousel/useGradient.js +24 -11
- package/dist/lib/components/Checkbox/Checkbox.css +150 -1
- package/dist/lib/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/lib/components/Checkbox/Checkbox.js +74 -34
- package/dist/lib/components/Chips/Chip.css +132 -1
- package/dist/lib/components/Chips/Chip.d.ts +26 -6
- package/dist/lib/components/Chips/Chip.js +75 -35
- package/dist/lib/components/Chips/Chips.css +19 -1
- package/dist/lib/components/Chips/Chips.d.ts +2 -2
- package/dist/lib/components/Chips/Chips.js +91 -46
- package/dist/lib/components/Chips/components/ChipsDropdown.css +106 -1
- package/dist/lib/components/Chips/components/ChipsDropdown.d.ts +2 -2
- package/dist/lib/components/Chips/components/ChipsDropdown.js +66 -30
- package/dist/lib/components/Collapse/Collapse.css +3 -0
- package/dist/{es/components/_Collapse → lib/components/Collapse}/Collapse.d.ts +3 -3
- package/dist/lib/components/Collapse/Collapse.js +141 -0
- package/dist/lib/components/ContentArea/ContentArea.css +109 -1
- package/dist/lib/components/ContentArea/ContentArea.d.ts +4 -5
- package/dist/lib/components/ContentArea/ContentArea.js +43 -13
- package/dist/lib/components/ContentView/ContentView.css +103 -1
- package/dist/lib/components/ContentView/ContentView.d.ts +2 -3
- package/dist/lib/components/ContentView/ContentView.js +62 -16
- package/dist/lib/components/Counter/Counter.css +123 -1
- package/dist/lib/components/Counter/Counter.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.js +70 -24
- package/dist/lib/components/Grid/Grid.css +102 -1
- package/dist/lib/components/Grid/Grid.d.ts +1 -1
- package/dist/lib/components/Grid/Grid.js +39 -12
- package/dist/lib/components/Grid/GridColumn.css +3102 -1
- package/dist/lib/components/Grid/GridColumn.d.ts +2 -2
- package/dist/lib/components/Grid/GridColumn.js +76 -37
- package/dist/lib/components/Header/Header.css +122 -1
- package/dist/lib/components/Header/Header.d.ts +1 -3
- package/dist/lib/components/Header/Header.js +42 -17
- package/dist/lib/components/Link/Link.d.ts +2 -2
- package/dist/lib/components/Link/Link.js +33 -14
- package/dist/lib/components/List/List.css +66 -1
- package/dist/lib/components/List/List.d.ts +1 -2
- package/dist/lib/components/List/List.js +30 -12
- package/dist/lib/components/List/ListItem.css +6 -1
- package/dist/lib/components/List/ListItem.d.ts +1 -2
- package/dist/lib/components/List/ListItem.js +19 -5
- package/dist/lib/components/ListData/ListData.css +162 -1
- package/dist/lib/components/ListData/ListData.d.ts +34 -6
- package/dist/lib/components/ListData/ListData.js +110 -50
- package/dist/lib/components/ListData/ListDataGroup.css +15 -1
- package/dist/lib/components/ListData/ListDataGroup.d.ts +4 -4
- package/dist/lib/components/ListData/ListDataGroup.js +117 -47
- package/dist/lib/components/ListData/components/ListDataSortable.css +79 -1
- package/dist/lib/components/ListData/components/ListDataSortable.d.ts +4 -4
- package/dist/lib/components/ListData/components/ListDataSortable.js +73 -34
- package/dist/lib/components/ListData/doc/i/img.png +0 -0
- package/dist/lib/components/ListData/helpers.js +24 -6
- package/dist/lib/components/Logo/Logo.css +43 -1
- package/dist/lib/components/Logo/Logo.d.ts +1 -1
- package/dist/lib/components/Logo/Logo.js +40 -13
- package/dist/lib/components/NavArrow/NavArrow.css +63 -1
- package/dist/lib/components/NavArrow/NavArrow.d.ts +3 -3
- package/dist/lib/components/NavArrow/NavArrow.js +46 -14
- package/dist/lib/components/Notification/Notification.css +350 -1
- package/dist/lib/components/Notification/Notification.d.ts +4 -5
- package/dist/lib/components/Notification/Notification.js +200 -113
- package/dist/lib/components/Pagination/Pagination.css +5 -1
- package/dist/lib/components/Pagination/Pagination.d.ts +3 -4
- package/dist/lib/components/Pagination/Pagination.js +50 -18
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +62 -1
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +4 -5
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +34 -11
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +10 -1
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +2 -3
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +31 -6
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +17 -1
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +2 -3
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +31 -8
- package/dist/lib/components/Pagination/helpers.js +6 -1
- package/dist/lib/components/Pagination/usePagination.d.ts +1 -2
- package/dist/lib/components/Pagination/usePagination.js +35 -9
- package/dist/lib/components/Paragraph/Paragraph.css +43 -1
- package/dist/lib/components/Paragraph/Paragraph.d.ts +2 -4
- package/dist/lib/components/Paragraph/Paragraph.js +37 -13
- package/dist/lib/components/Preloader/Preloader.css +224 -1
- package/dist/lib/components/Preloader/Preloader.d.ts +3 -3
- package/dist/lib/components/Preloader/Preloader.js +57 -22
- package/dist/lib/components/RadioButton/RadioButton.css +120 -1
- package/dist/lib/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/lib/components/RadioButton/RadioButton.js +69 -22
- package/dist/lib/components/Row/Row.css +238 -1
- package/dist/lib/components/Row/Row.d.ts +2 -2
- package/dist/lib/components/Row/Row.js +75 -39
- package/dist/lib/components/Search/Search.css +453 -1
- package/dist/lib/components/Search/Search.d.ts +8 -7
- package/dist/lib/components/Search/Search.js +261 -121
- package/dist/lib/components/Select/Select.css +389 -1
- package/dist/lib/components/Select/Select.d.ts +84 -8
- package/dist/lib/components/Select/Select.js +186 -69
- package/dist/lib/components/Select/reducer/selectReducer.d.ts +1 -1
- package/dist/lib/components/Select/reducer/selectReducer.js +41 -21
- package/dist/lib/components/Selector/Selector.css +132 -1
- package/dist/lib/components/Selector/Selector.d.ts +1 -1
- package/dist/lib/components/Selector/Selector.js +70 -27
- package/dist/lib/components/Selector/doc/Selector.example.css +17 -0
- package/dist/lib/components/Sliders/Slider/Slider.css +128 -1
- package/dist/lib/components/Sliders/Slider/Slider.d.ts +1 -1
- package/dist/lib/components/Sliders/Slider/Slider.js +75 -29
- package/dist/lib/components/Sliders/SliderRange/SliderRange.css +169 -1
- package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRange/SliderRange.js +100 -37
- package/dist/lib/components/Sliders/SliderRange/helpers.js +18 -5
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +219 -1
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.js +111 -40
- package/dist/lib/components/Sliders/SliderRatio/helpers.js +27 -8
- package/dist/lib/components/Sliders/SliderRatio/types.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRatio/types.js +2 -0
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +84 -1
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +56 -17
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +15 -1
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +39 -11
- package/dist/lib/components/Sliders/components/SliderScale/helpers.js +33 -15
- package/dist/lib/components/Sliders/helpers.js +22 -5
- package/dist/lib/components/Snackbar/Snackbar.css +220 -1
- package/dist/lib/components/Snackbar/Snackbar.d.ts +3 -3
- package/dist/lib/components/Snackbar/Snackbar.js +138 -81
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.css +66 -1
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.js +36 -17
- package/dist/lib/components/Switcher/Switcher.css +160 -1
- package/dist/lib/components/Switcher/Switcher.d.ts +1 -2
- package/dist/lib/components/Switcher/Switcher.js +52 -21
- package/dist/lib/components/Tabs/Tab.d.ts +6 -0
- package/dist/lib/components/Tabs/Tab.js +26 -5
- package/dist/lib/components/Tabs/Tabs.css +306 -1
- package/dist/lib/components/Tabs/Tabs.d.ts +5 -6
- package/dist/lib/components/Tabs/Tabs.js +209 -95
- package/dist/lib/components/TextField/TextField.css +343 -1
- package/dist/lib/components/TextField/TextField.d.ts +3 -3
- package/dist/lib/components/TextField/TextField.js +238 -113
- package/dist/lib/components/TextField/utils/countGraphemes.js +28 -11
- package/dist/lib/components/TextLink/TextLink.css +50 -1
- package/dist/lib/components/TextLink/TextLink.d.ts +2 -2
- package/dist/lib/components/TextLink/TextLink.js +41 -18
- package/dist/lib/components/Tile/Tile.css +43 -1
- package/dist/lib/components/Tile/Tile.d.ts +5 -7
- package/dist/lib/components/Tile/Tile.js +54 -26
- package/dist/lib/components/Tooltip/Tooltip.css +335 -1
- package/dist/lib/components/Tooltip/Tooltip.d.ts +8 -9
- package/dist/lib/components/Tooltip/Tooltip.js +218 -110
- package/dist/lib/constants/throttleTime.js +3 -2
- package/dist/lib/hooks/usePrevious.js +11 -4
- package/dist/lib/hooks/useResolution.d.ts +1 -1
- package/dist/lib/hooks/useResolution.js +23 -9
- package/dist/lib/hooks/useSwipe.d.ts +1 -1
- package/dist/lib/hooks/useSwipe.js +63 -21
- package/dist/lib/index.d.ts +9 -16
- package/dist/lib/index.js +101 -82
- package/package.json +101 -106
- package/styles/base.less +171 -0
- package/styles/colors.css +0 -53
- package/dist/es/components/Badges/CounterBadge/CounterBadge.css +0 -1
- package/dist/es/components/Badges/NotificationBadge/NotificationBadge.css +0 -1
- package/dist/es/components/Badges/NotificationBadge/NotificationBadge.js +0 -34
- package/dist/es/components/Badges/PriceBadge/PriceBadge.css +0 -1
- package/dist/es/components/Badges/PromoBadge/PromoBadge.css +0 -1
- package/dist/es/components/Badges/TimerBadge/TimerBadge.css +0 -1
- package/dist/es/components/Calendar/components/_Day/Day.css +0 -1
- package/dist/es/components/Calendar/components/_Month/Month.css +0 -1
- package/dist/es/components/Modal/Modal.css +0 -1
- package/dist/es/components/Modal/Modal.d.ts +0 -106
- package/dist/es/components/Modal/Modal.js +0 -277
- package/dist/es/components/Modal/_ModalContent/ModalContent.css +0 -1
- package/dist/es/components/Modal/_ModalContent/ModalContent.d.ts +0 -8
- package/dist/es/components/Modal/_ModalContent/ModalContent.js +0 -167
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +0 -1
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.d.ts +0 -8
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.js +0 -32
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +0 -12
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +0 -114
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -55
- package/dist/es/components/Modal/mocks.d.ts +0 -3
- package/dist/es/components/Modal/mocks.js +0 -79
- package/dist/es/components/Modal/types.d.ts +0 -28
- package/dist/es/components/Modal/types.js +0 -1
- package/dist/es/components/Modal/utils/utils.d.ts +0 -18
- package/dist/es/components/Modal/utils/utils.js +0 -66
- package/dist/es/components/ScrollBar/ScrollBar.css +0 -1
- package/dist/es/components/ScrollBar/ScrollBar.d.ts +0 -34
- package/dist/es/components/ScrollBar/ScrollBar.js +0 -86
- package/dist/es/components/_Collapse/Collapse.css +0 -1
- package/dist/es/styles/base.css +0 -1
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.css +0 -1
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +0 -52
- package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.css +0 -1
- package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.js +0 -43
- package/dist/lib/components/Badges/PriceBadge/PriceBadge.css +0 -1
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +0 -1
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +0 -49
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.css +0 -1
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.js +0 -97
- package/dist/lib/components/Calendar/components/_Day/Day.css +0 -1
- package/dist/lib/components/Calendar/components/_Day/Day.js +0 -75
- package/dist/lib/components/Calendar/components/_Month/Month.css +0 -1
- package/dist/lib/components/Calendar/components/_Month/Month.js +0 -93
- package/dist/lib/components/Modal/Modal.css +0 -1
- package/dist/lib/components/Modal/Modal.d.ts +0 -106
- package/dist/lib/components/Modal/Modal.js +0 -286
- package/dist/lib/components/Modal/_ModalContent/ModalContent.css +0 -1
- package/dist/lib/components/Modal/_ModalContent/ModalContent.d.ts +0 -8
- package/dist/lib/components/Modal/_ModalContent/ModalContent.js +0 -176
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +0 -1
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.d.ts +0 -8
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.js +0 -41
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +0 -12
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +0 -123
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -64
- package/dist/lib/components/Modal/mocks.d.ts +0 -3
- package/dist/lib/components/Modal/mocks.js +0 -85
- package/dist/lib/components/Modal/types.d.ts +0 -28
- package/dist/lib/components/Modal/types.js +0 -5
- package/dist/lib/components/Modal/utils/utils.d.ts +0 -18
- package/dist/lib/components/Modal/utils/utils.js +0 -72
- package/dist/lib/components/ScrollBar/ScrollBar.css +0 -1
- package/dist/lib/components/ScrollBar/ScrollBar.d.ts +0 -34
- package/dist/lib/components/ScrollBar/ScrollBar.js +0 -94
- package/dist/lib/components/_Collapse/Collapse.css +0 -1
- package/dist/lib/components/_Collapse/Collapse.js +0 -95
- package/dist/lib/styles/base.css +0 -1
- package/styles/base.scss +0 -150
- /package/dist/es/components/Badges/{TimerBadge/components → components/TimerBadge}/Timer/Timer.d.ts +0 -0
- /package/dist/lib/components/Badges/{TimerBadge/components → components/TimerBadge}/Timer/Timer.d.ts +0 -0
|
@@ -1 +1,160 @@
|
|
|
1
|
-
|
|
1
|
+
.mfui-switcher {
|
|
2
|
+
display: -webkit-box;
|
|
3
|
+
display: -ms-flexbox;
|
|
4
|
+
display: flex;
|
|
5
|
+
-webkit-tap-highlight-color: transparent;
|
|
6
|
+
}
|
|
7
|
+
.mfui-switcher__content {
|
|
8
|
+
font-size: 15px;
|
|
9
|
+
line-height: 24px;
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
-ms-flex-item-align: center;
|
|
12
|
+
align-self: center;
|
|
13
|
+
margin-left: 12px;
|
|
14
|
+
}
|
|
15
|
+
.mfui-switcher__content_size_small {
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
line-height: 18px;
|
|
18
|
+
}
|
|
19
|
+
.mfui-switcher__content_left {
|
|
20
|
+
margin-right: 12px;
|
|
21
|
+
margin-left: 0;
|
|
22
|
+
}
|
|
23
|
+
.mfui-switcher__content_left + .mfui-switcher__input {
|
|
24
|
+
margin-left: auto;
|
|
25
|
+
}
|
|
26
|
+
.mfui-switcher__pointer {
|
|
27
|
+
position: relative;
|
|
28
|
+
top: 2px;
|
|
29
|
+
left: 2px;
|
|
30
|
+
width: 24px;
|
|
31
|
+
height: 24px;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
background-color: var(--stcWhite);
|
|
34
|
+
-webkit-transition: all 0.3s;
|
|
35
|
+
transition: all 0.3s;
|
|
36
|
+
}
|
|
37
|
+
.mfui-switcher__loader {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
}
|
|
45
|
+
.mfui-switcher__loader:before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 0;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
width: 300%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
background: -webkit-gradient(linear, left top, right top, from(var(--spbSky1)), color-stop(16%, var(--spbSky2)), color-stop(33%, var(--spbSky1)), color-stop(50%, var(--spbSky2)), color-stop(66%, var(--spbSky1)), color-stop(82%, var(--spbSky2)), to(var(--spbSky1)));
|
|
54
|
+
background: linear-gradient(90deg, var(--spbSky1) 0%, var(--spbSky2) 16%, var(--spbSky1) 33%, var(--spbSky2) 50%, var(--spbSky1) 66%, var(--spbSky2) 82%, var(--spbSky1) 100%);
|
|
55
|
+
-webkit-animation: shining 0.8s linear infinite;
|
|
56
|
+
animation: shining 0.8s linear infinite;
|
|
57
|
+
}
|
|
58
|
+
@-webkit-keyframes shining {
|
|
59
|
+
0% {
|
|
60
|
+
-webkit-transform: translateX(-33%);
|
|
61
|
+
transform: translateX(-33%);
|
|
62
|
+
}
|
|
63
|
+
100% {
|
|
64
|
+
-webkit-transform: translateX(0);
|
|
65
|
+
transform: translateX(0);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@keyframes shining {
|
|
69
|
+
0% {
|
|
70
|
+
-webkit-transform: translateX(-33%);
|
|
71
|
+
transform: translateX(-33%);
|
|
72
|
+
}
|
|
73
|
+
100% {
|
|
74
|
+
-webkit-transform: translateX(0);
|
|
75
|
+
transform: translateX(0);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.mfui-switcher__timer {
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 50%;
|
|
81
|
+
left: 50%;
|
|
82
|
+
width: 20px;
|
|
83
|
+
height: 20px;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
background: var(--base);
|
|
86
|
+
-webkit-transform: translate(-50%, -50%);
|
|
87
|
+
transform: translate(-50%, -50%);
|
|
88
|
+
}
|
|
89
|
+
.mfui-switcher__timer-icon {
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 50%;
|
|
92
|
+
left: 50%;
|
|
93
|
+
width: 20px;
|
|
94
|
+
height: 20px;
|
|
95
|
+
-webkit-transform: translate(-50%, -50%);
|
|
96
|
+
transform: translate(-50%, -50%);
|
|
97
|
+
fill: var(--spbSky2);
|
|
98
|
+
}
|
|
99
|
+
.mfui-switcher__input {
|
|
100
|
+
position: relative;
|
|
101
|
+
-ms-flex-item-align: start;
|
|
102
|
+
align-self: flex-start;
|
|
103
|
+
width: 48px;
|
|
104
|
+
min-width: 48px;
|
|
105
|
+
height: 28px;
|
|
106
|
+
border-radius: 15.5px;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
background-color: var(--spbSky1);
|
|
109
|
+
outline: none;
|
|
110
|
+
-webkit-transform: translateZ(0);
|
|
111
|
+
transform: translateZ(0);
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
-webkit-transition: background-color 0.3s;
|
|
114
|
+
transition: background-color 0.3s;
|
|
115
|
+
}
|
|
116
|
+
.mfui-switcher__input_disabled {
|
|
117
|
+
background-color: var(--spbSky1);
|
|
118
|
+
}
|
|
119
|
+
.mfui-switcher__input_disabled,
|
|
120
|
+
.mfui-switcher__input_loaded,
|
|
121
|
+
.mfui-switcher__input_waiting {
|
|
122
|
+
cursor: default;
|
|
123
|
+
}
|
|
124
|
+
.mfui-switcher__input:hover:not(.mfui-switcher__input_disabled) {
|
|
125
|
+
background-color: var(--spbSky2);
|
|
126
|
+
}
|
|
127
|
+
.mfui-switcher__input_checked:not(.mfui-switcher__input_disabled) {
|
|
128
|
+
border-color: var(--brandGreen);
|
|
129
|
+
background-color: var(--brandGreen);
|
|
130
|
+
}
|
|
131
|
+
.mfui-switcher__input_checked:hover:not(.mfui-switcher__input_disabled) {
|
|
132
|
+
border-color: var(--buttonHoverGreen);
|
|
133
|
+
background-color: var(--buttonHoverGreen);
|
|
134
|
+
}
|
|
135
|
+
.mfui-switcher__input_disabled .mfui-switcher__pointer {
|
|
136
|
+
background-color: var(--spbSky2);
|
|
137
|
+
}
|
|
138
|
+
.mfui-switcher__input_checked .mfui-switcher__pointer {
|
|
139
|
+
left: 22px;
|
|
140
|
+
}
|
|
141
|
+
.mfui-switcher__input_checked .mfui-switcher__loader:before {
|
|
142
|
+
background: -webkit-gradient(linear, left top, right top, from(var(--brandGreen)), color-stop(16%, var(--buttonHoverGreen)), color-stop(33%, var(--brandGreen)), color-stop(50%, var(--buttonHoverGreen)), color-stop(66%, var(--brandGreen)), color-stop(82%, var(--buttonHoverGreen)), to(var(--brandGreen)));
|
|
143
|
+
background: linear-gradient(90deg, var(--brandGreen) 0%, var(--buttonHoverGreen) 16%, var(--brandGreen) 33%, var(--buttonHoverGreen) 50%, var(--brandGreen) 66%, var(--buttonHoverGreen) 82%, var(--brandGreen) 100%);
|
|
144
|
+
}
|
|
145
|
+
.mfui-switcher_disabled .mfui-switcher__content {
|
|
146
|
+
color: var(--spbSky3);
|
|
147
|
+
}
|
|
148
|
+
.mfui-switcher_theme_on-gray .mfui-switcher__input:not(.mfui-switcher__input_checked),
|
|
149
|
+
.mfui-switcher_theme_on-gray .mfui-switcher__input_disabled {
|
|
150
|
+
background-color: var(--spbSky2);
|
|
151
|
+
}
|
|
152
|
+
.mfui-switcher_theme_on-gray .mfui-switcher__input:not(.mfui-switcher__input_checked):not(.mfui-switcher__input_disabled):hover {
|
|
153
|
+
background-color: var(--spbSky3);
|
|
154
|
+
}
|
|
155
|
+
.mfui-switcher_theme_on-gray .mfui-switcher__input_disabled .mfui-switcher__pointer {
|
|
156
|
+
background-color: var(--spbSky3);
|
|
157
|
+
}
|
|
158
|
+
.mfui-switcher_theme_on-gray .mfui-switcher__timer-icon {
|
|
159
|
+
fill: var(--spbSky3);
|
|
160
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AccessibilityEventType } from '@megafon/ui-helpers';
|
|
3
|
-
import './Switcher.
|
|
3
|
+
import './Switcher.less';
|
|
4
4
|
export interface ISwitcherProps {
|
|
5
5
|
/** Дополнительные data атрибуты к внутренним элементам */
|
|
6
6
|
dataAttrs?: {
|
|
@@ -28,7 +28,6 @@ export interface ISwitcherProps {
|
|
|
28
28
|
textPosition?: 'left' | 'right';
|
|
29
29
|
/** Обработчик изменения элемента */
|
|
30
30
|
onChange?: (e: AccessibilityEventType) => void;
|
|
31
|
-
children?: React.ReactNode;
|
|
32
31
|
}
|
|
33
32
|
declare const Switcher: React.FC<ISwitcherProps>;
|
|
34
33
|
export default Switcher;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports["default"] = void 0;
|
|
9
|
+
|
|
8
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
9
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
10
14
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
|
|
16
|
+
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
13
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
14
24
|
var WaitingIcon = function WaitingIcon(props) {
|
|
15
25
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
16
26
|
viewBox: "0 0 20 20"
|
|
@@ -20,26 +30,28 @@ var WaitingIcon = function WaitingIcon(props) {
|
|
|
20
30
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-8.414V5H9v5.414l3 3L13.414 12 11 9.586z"
|
|
21
31
|
}));
|
|
22
32
|
};
|
|
33
|
+
|
|
23
34
|
var cn = (0, _uiHelpers.cnCreate)('mfui-switcher');
|
|
35
|
+
|
|
24
36
|
var Switcher = function Switcher(_ref) {
|
|
25
37
|
var dataAttrs = _ref.dataAttrs,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
className = _ref.className,
|
|
39
|
+
_ref$theme = _ref.theme,
|
|
40
|
+
theme = _ref$theme === void 0 ? 'on-white' : _ref$theme,
|
|
41
|
+
_ref$checked = _ref.checked,
|
|
42
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
43
|
+
_ref$disabled = _ref.disabled,
|
|
44
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
45
|
+
_ref$showLoader = _ref.showLoader,
|
|
46
|
+
showLoader = _ref$showLoader === void 0 ? false : _ref$showLoader,
|
|
47
|
+
_ref$waiting = _ref.waiting,
|
|
48
|
+
waiting = _ref$waiting === void 0 ? false : _ref$waiting,
|
|
49
|
+
children = _ref.children,
|
|
50
|
+
_ref$textSize = _ref.textSize,
|
|
51
|
+
textSize = _ref$textSize === void 0 ? 'medium' : _ref$textSize,
|
|
52
|
+
_ref$textPosition = _ref.textPosition,
|
|
53
|
+
textPosition = _ref$textPosition === void 0 ? 'right' : _ref$textPosition,
|
|
54
|
+
onChange = _ref.onChange;
|
|
43
55
|
var isTouch = (0, _uiHelpers.detectTouch)();
|
|
44
56
|
var isLeftContent = !!children && textPosition === 'left';
|
|
45
57
|
var isRightContent = !!children && textPosition === 'right';
|
|
@@ -50,6 +62,7 @@ var Switcher = function Switcher(_ref) {
|
|
|
50
62
|
if (isInteractiveDisabled || !(0, _uiHelpers.checkEventIsClickOrEnterPress)(e)) {
|
|
51
63
|
return;
|
|
52
64
|
}
|
|
65
|
+
|
|
53
66
|
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
54
67
|
}, [isInteractiveDisabled, onChange]);
|
|
55
68
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
@@ -86,4 +99,22 @@ var Switcher = function Switcher(_ref) {
|
|
|
86
99
|
})
|
|
87
100
|
}, children));
|
|
88
101
|
};
|
|
89
|
-
|
|
102
|
+
|
|
103
|
+
Switcher.propTypes = {
|
|
104
|
+
dataAttrs: PropTypes.shape({
|
|
105
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
106
|
+
input: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
107
|
+
loader: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
108
|
+
}),
|
|
109
|
+
className: PropTypes.string,
|
|
110
|
+
textSize: PropTypes.oneOf(['small', 'medium']),
|
|
111
|
+
textPosition: PropTypes.oneOf(['left', 'right']),
|
|
112
|
+
theme: PropTypes.oneOf(['on-white', 'on-gray']),
|
|
113
|
+
checked: PropTypes.bool,
|
|
114
|
+
disabled: PropTypes.bool,
|
|
115
|
+
waiting: PropTypes.bool,
|
|
116
|
+
showLoader: PropTypes.bool,
|
|
117
|
+
onChange: PropTypes.func
|
|
118
|
+
};
|
|
119
|
+
var _default = Switcher;
|
|
120
|
+
exports["default"] = _default;
|
|
@@ -4,6 +4,12 @@ export interface ITabProps {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
/** Иконка таба */
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
|
+
/** Текст бабла */
|
|
8
|
+
bubbleTitle?: string | number;
|
|
9
|
+
/** Наличие бабла нотификации */
|
|
10
|
+
hasBubble?: boolean;
|
|
11
|
+
/** Цвет бабла */
|
|
12
|
+
bubbleColor?: 'green' | 'red';
|
|
7
13
|
/** Ссылка */
|
|
8
14
|
href?: string;
|
|
9
15
|
/** Rel - атрибут тега <a> */
|
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports["default"] = void 0;
|
|
9
|
+
|
|
8
10
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
11
|
-
/* eslint-disable react/no-unused-prop-types */
|
|
12
11
|
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
20
|
+
/* eslint-disable react/no-unused-prop-types */
|
|
13
21
|
var Tab = function Tab(_ref) {
|
|
14
22
|
var children = _ref.children;
|
|
15
23
|
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
16
24
|
};
|
|
17
|
-
|
|
25
|
+
|
|
26
|
+
Tab.propTypes = {
|
|
27
|
+
dataAttrs: _propTypes["default"].shape({
|
|
28
|
+
root: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired),
|
|
29
|
+
inner: _propTypes["default"].objectOf(_propTypes["default"].string.isRequired)
|
|
30
|
+
}),
|
|
31
|
+
title: _propTypes["default"].string,
|
|
32
|
+
icon: _propTypes["default"].node,
|
|
33
|
+
href: _propTypes["default"].string,
|
|
34
|
+
rel: _propTypes["default"].string,
|
|
35
|
+
renderTabWrapper: _propTypes["default"].func
|
|
36
|
+
};
|
|
37
|
+
var _default = Tab;
|
|
38
|
+
exports["default"] = _default;
|
|
@@ -1 +1,306 @@
|
|
|
1
|
-
|
|
1
|
+
.mfui-tabs .swiper-wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 0;
|
|
4
|
+
display: -webkit-box;
|
|
5
|
+
display: -ms-flexbox;
|
|
6
|
+
display: flex;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
.mfui-tabs__wrapper {
|
|
10
|
+
display: -webkit-box;
|
|
11
|
+
display: -ms-flexbox;
|
|
12
|
+
display: flex;
|
|
13
|
+
-webkit-box-pack: center;
|
|
14
|
+
-ms-flex-pack: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
}
|
|
17
|
+
.mfui-tabs__swiper-wrapper {
|
|
18
|
+
position: relative;
|
|
19
|
+
display: -webkit-box;
|
|
20
|
+
display: -ms-flexbox;
|
|
21
|
+
display: flex;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
.mfui-tabs__swiper-wrapper:before,
|
|
25
|
+
.mfui-tabs__swiper-wrapper:after {
|
|
26
|
+
content: '';
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
bottom: 0;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
width: 64px;
|
|
32
|
+
border-radius: 0 12px 12px 0;
|
|
33
|
+
background: -webkit-gradient(linear, right top, left top, from(var(--stcBlack5)), color-stop(64%, transparent));
|
|
34
|
+
background: linear-gradient(270deg, var(--stcBlack5) 0%, transparent 64%);
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
.mfui-tabs__swiper-wrapper:before {
|
|
38
|
+
left: 0;
|
|
39
|
+
-webkit-transform: matrix(-1, 0, 0, 1, 0, 0);
|
|
40
|
+
transform: matrix(-1, 0, 0, 1, 0, 0);
|
|
41
|
+
}
|
|
42
|
+
.mfui-tabs__swiper-wrapper:after {
|
|
43
|
+
right: 0;
|
|
44
|
+
}
|
|
45
|
+
.mfui-tabs__swiper-wrapper_beginning:before {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
.mfui-tabs__swiper-wrapper_end:after {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
.mfui-tabs__swiper {
|
|
52
|
+
font-family: inherit;
|
|
53
|
+
font-size: 15px;
|
|
54
|
+
line-height: 24px;
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
position: relative;
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: 100%;
|
|
59
|
+
padding: 4px;
|
|
60
|
+
border-radius: 12px;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
background-color: var(--spbSky0);
|
|
63
|
+
}
|
|
64
|
+
.mfui-tabs__slide {
|
|
65
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
66
|
+
-webkit-box-flex: 1;
|
|
67
|
+
-ms-flex: 1;
|
|
68
|
+
flex: 1;
|
|
69
|
+
}
|
|
70
|
+
.mfui-tabs__panel {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
73
|
+
.mfui-tabs__panel_current {
|
|
74
|
+
display: block;
|
|
75
|
+
}
|
|
76
|
+
.mfui-tabs__underline {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
bottom: 0;
|
|
80
|
+
left: auto;
|
|
81
|
+
z-index: 0;
|
|
82
|
+
border-radius: 8px;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
background-color: var(--base);
|
|
85
|
+
-webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
86
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
87
|
+
-webkit-transition-duration: 0.3s;
|
|
88
|
+
transition-duration: 0.3s;
|
|
89
|
+
}
|
|
90
|
+
.mfui-tabs__underline:before {
|
|
91
|
+
content: '';
|
|
92
|
+
position: absolute;
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 100%;
|
|
95
|
+
background-color: var(--stcWhite20);
|
|
96
|
+
}
|
|
97
|
+
.mfui-tabs__arrow {
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 50%;
|
|
100
|
+
z-index: 2;
|
|
101
|
+
display: block;
|
|
102
|
+
width: 16px;
|
|
103
|
+
height: 16px;
|
|
104
|
+
border-radius: 50%;
|
|
105
|
+
background-color: var(--content);
|
|
106
|
+
-webkit-transform: translateY(-50%);
|
|
107
|
+
transform: translateY(-50%);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
opacity: 1;
|
|
110
|
+
-webkit-transition-duration: 0.3s;
|
|
111
|
+
transition-duration: 0.3s;
|
|
112
|
+
-webkit-transition-property: background-color, opacity;
|
|
113
|
+
transition-property: background-color, opacity;
|
|
114
|
+
fill: var(--base);
|
|
115
|
+
}
|
|
116
|
+
@media screen and (max-width: 1023px) {
|
|
117
|
+
.mfui-tabs__arrow {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
.mfui-tabs__arrow:hover {
|
|
122
|
+
background-color: var(--spbSky3);
|
|
123
|
+
}
|
|
124
|
+
.mfui-tabs__arrow:active {
|
|
125
|
+
background-color: var(--buttonDown);
|
|
126
|
+
}
|
|
127
|
+
.mfui-tabs__arrow_prev {
|
|
128
|
+
left: 14px;
|
|
129
|
+
}
|
|
130
|
+
.mfui-tabs__arrow_next {
|
|
131
|
+
right: 14px;
|
|
132
|
+
-webkit-transform: translateY(-50%) rotate(180deg);
|
|
133
|
+
transform: translateY(-50%) rotate(180deg);
|
|
134
|
+
}
|
|
135
|
+
.mfui-tabs__arrow_hide {
|
|
136
|
+
opacity: 0;
|
|
137
|
+
pointer-events: none;
|
|
138
|
+
}
|
|
139
|
+
.mfui-tabs__tab-inner {
|
|
140
|
+
font-size: 15px;
|
|
141
|
+
line-height: 24px;
|
|
142
|
+
font-weight: 500;
|
|
143
|
+
position: relative;
|
|
144
|
+
display: -webkit-box;
|
|
145
|
+
display: -ms-flexbox;
|
|
146
|
+
display: flex;
|
|
147
|
+
-webkit-box-align: center;
|
|
148
|
+
-ms-flex-align: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
-webkit-box-pack: center;
|
|
151
|
+
-ms-flex-pack: center;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
-webkit-box-sizing: border-box;
|
|
154
|
+
box-sizing: border-box;
|
|
155
|
+
height: 36px;
|
|
156
|
+
padding: 2px 12px;
|
|
157
|
+
color: var(--content);
|
|
158
|
+
white-space: nowrap;
|
|
159
|
+
text-align: center;
|
|
160
|
+
text-decoration: none;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
-webkit-transition: color 0.3s, fill 0.3s;
|
|
163
|
+
transition: color 0.3s, fill 0.3s;
|
|
164
|
+
fill: var(--content);
|
|
165
|
+
}
|
|
166
|
+
.mfui-tabs__tab-inner:hover {
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
}
|
|
169
|
+
.mfui-tabs__tab-inner:not(.mfui-tabs__tab-inner_current) {
|
|
170
|
+
opacity: 0.8;
|
|
171
|
+
}
|
|
172
|
+
@media screen and (min-width: 1024px) {
|
|
173
|
+
.mfui-tabs__tab-inner:not(.mfui-tabs__tab-inner_current):hover {
|
|
174
|
+
color: var(--content);
|
|
175
|
+
fill: var(--content);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
.mfui-tabs__tab-inner:not(.mfui-tabs__tab-inner_current):hover {
|
|
179
|
+
opacity: 1;
|
|
180
|
+
}
|
|
181
|
+
.mfui-tabs__tab-inner:not(.mfui-tabs__tab-inner_current):active {
|
|
182
|
+
color: var(--buttonDown);
|
|
183
|
+
fill: var(--buttonDown);
|
|
184
|
+
}
|
|
185
|
+
.mfui-tabs__tab-inner_with-icon {
|
|
186
|
+
padding-left: 8px;
|
|
187
|
+
}
|
|
188
|
+
.mfui-tabs__tab-inner_current {
|
|
189
|
+
color: var(--content);
|
|
190
|
+
cursor: auto;
|
|
191
|
+
fill: var(--content);
|
|
192
|
+
}
|
|
193
|
+
.mfui-tabs__tab-icon {
|
|
194
|
+
width: 32px;
|
|
195
|
+
height: 32px;
|
|
196
|
+
margin-right: 4px;
|
|
197
|
+
}
|
|
198
|
+
.mfui-tabs__tab-icon svg {
|
|
199
|
+
width: 100%;
|
|
200
|
+
height: 100%;
|
|
201
|
+
}
|
|
202
|
+
.mfui-tabs__tab-bubble {
|
|
203
|
+
margin-left: 6px;
|
|
204
|
+
}
|
|
205
|
+
.mfui-tabs_size_large .mfui-tabs__swiper {
|
|
206
|
+
padding: 6px;
|
|
207
|
+
}
|
|
208
|
+
@media screen and (min-width: 768px) {
|
|
209
|
+
.mfui-tabs_size_large .mfui-tabs__swiper {
|
|
210
|
+
padding: 8px;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
.mfui-tabs_size_large .mfui-tabs__tab-inner {
|
|
214
|
+
height: 48px;
|
|
215
|
+
padding: 8px 24px;
|
|
216
|
+
}
|
|
217
|
+
@media screen and (min-width: 768px) {
|
|
218
|
+
.mfui-tabs_size_large .mfui-tabs__tab-inner {
|
|
219
|
+
height: 56px;
|
|
220
|
+
padding: 12px 40px;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
.mfui-tabs_size_large .mfui-tabs__tab-inner_with-icon {
|
|
224
|
+
padding-left: 20px;
|
|
225
|
+
}
|
|
226
|
+
@media screen and (min-width: 768px) {
|
|
227
|
+
.mfui-tabs_size_large .mfui-tabs__tab-inner_with-icon {
|
|
228
|
+
padding-left: 28px;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
.mfui-tabs_size_large .mfui-tabs__tab-icon {
|
|
232
|
+
margin-right: 6px;
|
|
233
|
+
}
|
|
234
|
+
.mfui-tabs_size_large .mfui-tabs__tab-bubble {
|
|
235
|
+
margin-left: 12px;
|
|
236
|
+
}
|
|
237
|
+
.mfui-tabs_size_large .mfui-tabs__tab-bubble_with-icon {
|
|
238
|
+
margin-left: 6px;
|
|
239
|
+
}
|
|
240
|
+
.mfui-tabs_auto-width .mfui-tabs__swiper {
|
|
241
|
+
width: auto;
|
|
242
|
+
max-width: 100%;
|
|
243
|
+
}
|
|
244
|
+
.mfui-tabs_auto-width .mfui-tabs__slide {
|
|
245
|
+
-webkit-box-flex: 0;
|
|
246
|
+
-ms-flex: 0 0 auto;
|
|
247
|
+
flex: 0 0 auto;
|
|
248
|
+
}
|
|
249
|
+
.mfui-tabs_auto-width.mfui-tabs_h-align_center .mfui-tabs__swiper-wrapper {
|
|
250
|
+
-webkit-box-pack: center;
|
|
251
|
+
-ms-flex-pack: center;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
}
|
|
254
|
+
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
|
255
|
+
.mfui-tabs_indents .mfui-tabs__swiper-wrapper {
|
|
256
|
+
margin: 0 -48px;
|
|
257
|
+
padding: 0 48px;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
@media screen and (max-width: 767px) {
|
|
261
|
+
.mfui-tabs_indents .mfui-tabs__swiper-wrapper {
|
|
262
|
+
margin: 0 -16px;
|
|
263
|
+
padding: 0 16px;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
.mfui-tabs_sticky .mfui-tabs__swiper-wrapper {
|
|
267
|
+
position: fixed;
|
|
268
|
+
top: 0;
|
|
269
|
+
right: 0;
|
|
270
|
+
left: 0;
|
|
271
|
+
z-index: 100;
|
|
272
|
+
background-color: var(--base);
|
|
273
|
+
}
|
|
274
|
+
.mfui-tabs_tab-color_gray .mfui-tabs__swiper {
|
|
275
|
+
background-color: var(--spbSky1);
|
|
276
|
+
}
|
|
277
|
+
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__swiper {
|
|
278
|
+
background-color: var(--stcBlack20);
|
|
279
|
+
}
|
|
280
|
+
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab-inner:not(.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab-inner_current) {
|
|
281
|
+
color: var(--stcWhite);
|
|
282
|
+
opacity: 0.8;
|
|
283
|
+
fill: var(--stcWhite);
|
|
284
|
+
}
|
|
285
|
+
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab-inner:not(.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab-inner_current):hover {
|
|
286
|
+
color: var(--stcWhite);
|
|
287
|
+
opacity: 1;
|
|
288
|
+
fill: var(--stcWhite);
|
|
289
|
+
}
|
|
290
|
+
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__tab-inner_current {
|
|
291
|
+
color: var(--stcBlack);
|
|
292
|
+
fill: var(--stcBlack);
|
|
293
|
+
}
|
|
294
|
+
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__underline {
|
|
295
|
+
background-color: var(--stcWhite);
|
|
296
|
+
}
|
|
297
|
+
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__arrow {
|
|
298
|
+
background-color: var(--stcWhite);
|
|
299
|
+
fill: var(--stcBlack);
|
|
300
|
+
}
|
|
301
|
+
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__arrow:hover {
|
|
302
|
+
background-color: var(--stcWhite50);
|
|
303
|
+
}
|
|
304
|
+
.mfui-tabs_tab-color_green:not(.mfui-tabs_sticky) .mfui-tabs__arrow:active {
|
|
305
|
+
background-color: var(--stcBlack0);
|
|
306
|
+
}
|