@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,18 +1,30 @@
|
|
|
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
|
require("core-js/modules/es.array.concat.js");
|
|
13
|
+
|
|
10
14
|
var React = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
11
16
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
17
|
+
|
|
18
|
+
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
|
19
|
+
|
|
12
20
|
var _Link = _interopRequireDefault(require("../Link/Link"));
|
|
13
|
-
|
|
14
|
-
function
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
15
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
16
28
|
var greenHorizontalImg = function greenHorizontalImg(props) {
|
|
17
29
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
18
30
|
viewBox: "0 0 623 112",
|
|
@@ -40,6 +52,7 @@ var greenHorizontalImg = function greenHorizontalImg(props) {
|
|
|
40
52
|
fill: "#00B956"
|
|
41
53
|
}));
|
|
42
54
|
};
|
|
55
|
+
|
|
43
56
|
var greenVerticalImg = function greenVerticalImg(props) {
|
|
44
57
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
45
58
|
viewBox: "-213 356.4 169 128.5"
|
|
@@ -54,18 +67,20 @@ var greenVerticalImg = function greenVerticalImg(props) {
|
|
|
54
67
|
d: "M-128.8 372.1c-17.4 0-31.5 14.1-31.5 31.5 0 15.1 10.6 27.7 24.8 30.8v-28.2c0-1.4 1.1-2.5 2.5-2.5h4c.2 0 .3-.1.3-.3v-31.1l-.1-.2zm-6 25.9c-2.2 0-3.9-1.8-3.9-3.9 0-2.2 1.8-3.9 3.9-3.9s3.9 1.8 3.9 3.9c0 2.2-1.7 3.9-3.9 3.9zm71.2 55.5v6h-8v-6h-3.9v15.7h3.9v-6.3h8v6.3h3.9v-15.7zm-65.5 1.8c-.7-1.4-2-2.1-3.2-2.1-1.3 0-2.6.7-3.2 2.1l-6.4 13.9h4.2l1.4-3.3h8.1l1.4 3.3h4.2l-6.5-13.9zm-5.9 7.5l2.4-5.7c.1-.2.2-.2.3-.2.1 0 .2 0 .3.2l2.4 5.7h-5.4zm-40.8-12.1c-1.8 0-3 1-3.9 3l-5.1 11.8-5.1-11.8c-.9-2-2-3-3.9-3-1.7 0-3.5 1.2-3.5 3.9v14.6h3.9V455l5.2 11.7c.7 1.6 1.8 2.7 3.4 2.7 1.6 0 2.7-1 3.4-2.7l5.2-11.7v14.2h3.9v-14.6c0-2.7-1.8-3.9-3.5-3.9zm10.4 15.2c-.2 0-.3-.2-.3-.3v-2.8h9.8v-3.2h-9.8v-2.4c0-.2.1-.3.3-.3h9.7v-3.3h-11.6c-1.4 0-2.3 1.1-2.3 2.3v11c0 1.2 1 2.3 2.3 2.3h11.6v-3.3h-9.7zm16.3 3.3v-12c0-.2.1-.3.3-.3h9.7v-3.3h-11.6c-1.4 0-2.3 1.1-2.3 2.3v13.3h3.9zm71-7.8c0-5.5-2.4-8-8.3-8h-1.4c-5.9 0-8.3 2.6-8.3 8s2.4 8 8.3 8h1.3c5.9 0 8.4-2.6 8.4-8zm-8.4 4.7h-1.3c-3.3 0-4.5-1.5-4.5-4.8 0-3.2 1.1-4.7 4.5-4.7h1.3c3.3 0 4.5 1.6 4.5 4.7 0 3.3-1.3 4.8-4.5 4.8zm-20.6-15h-7.8c-5.8 0-8.1 2.9-8.1 8.1 0 .8 0 1.5.2 2.2.6 3.6 2.7 5.9 8.2 5.9h1.7v2h3.9v-2h1.7c5.4 0 7.6-2.2 8.2-5.9.1-.7.2-1.4.2-2.2-.1-5.2-2.4-8.1-8.2-8.1zm-5.8 12.8h-1.8c-2.7 0-3.6-1-4.2-2.5-.2-.6-.2-1.4-.2-2.2 0-3.3 1.5-4.8 3.8-4.8h2.4v9.5zm9.9-2.5c-.6 1.6-1.5 2.5-4.2 2.5h-1.8v-9.5h2.4c2.3 0 3.8 1.4 3.8 4.8 0 .8 0 1.6-.2 2.2z"
|
|
55
68
|
})));
|
|
56
69
|
};
|
|
70
|
+
|
|
57
71
|
var cn = (0, _uiHelpers.cnCreate)('mfui-logo');
|
|
72
|
+
|
|
58
73
|
var Logo = function Logo(_ref) {
|
|
59
74
|
var className = _ref.className,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
_ref$color = _ref.color,
|
|
76
|
+
color = _ref$color === void 0 ? 'green' : _ref$color,
|
|
77
|
+
_ref$view = _ref.view,
|
|
78
|
+
view = _ref$view === void 0 ? 'horizontal' : _ref$view,
|
|
79
|
+
_ref$target = _ref.target,
|
|
80
|
+
target = _ref$target === void 0 ? '_blank' : _ref$target,
|
|
81
|
+
_ref$href = _ref.href,
|
|
82
|
+
href = _ref$href === void 0 ? '/' : _ref$href,
|
|
83
|
+
dataAttrs = _ref.dataAttrs;
|
|
69
84
|
var images = {
|
|
70
85
|
'green-horizontal': greenHorizontalImg,
|
|
71
86
|
'green-vertical': greenVerticalImg
|
|
@@ -84,4 +99,16 @@ var Logo = function Logo(_ref) {
|
|
|
84
99
|
className: cn('svg')
|
|
85
100
|
})));
|
|
86
101
|
};
|
|
87
|
-
|
|
102
|
+
|
|
103
|
+
Logo.propTypes = {
|
|
104
|
+
color: PropTypes.oneOf(['green']),
|
|
105
|
+
view: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
106
|
+
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
|
|
107
|
+
href: PropTypes.string,
|
|
108
|
+
className: PropTypes.string,
|
|
109
|
+
dataAttrs: PropTypes.shape({
|
|
110
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
111
|
+
})
|
|
112
|
+
};
|
|
113
|
+
var _default = Logo;
|
|
114
|
+
exports["default"] = _default;
|
|
@@ -1 +1,63 @@
|
|
|
1
|
-
|
|
1
|
+
.mfui-nav-arrow {
|
|
2
|
+
-webkit-box-sizing: border-box;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 40px;
|
|
5
|
+
height: 40px;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 4px;
|
|
8
|
+
border: none;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
outline: none;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
-webkit-transition: background-color 0.3s, opacity 0.3s;
|
|
13
|
+
transition: background-color 0.3s, opacity 0.3s;
|
|
14
|
+
-webkit-appearance: none;
|
|
15
|
+
-moz-appearance: none;
|
|
16
|
+
appearance: none;
|
|
17
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
18
|
+
}
|
|
19
|
+
.mfui-nav-arrow:disabled {
|
|
20
|
+
cursor: default;
|
|
21
|
+
opacity: 0.3;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
}
|
|
24
|
+
.mfui-nav-arrow__icon {
|
|
25
|
+
display: block;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
fill: var(--stcWhite);
|
|
29
|
+
}
|
|
30
|
+
.mfui-nav-arrow_theme_purple {
|
|
31
|
+
background-color: var(--brandPurple);
|
|
32
|
+
}
|
|
33
|
+
.mfui-nav-arrow_theme_purple:hover {
|
|
34
|
+
background-color: var(--buttonHoverPurple);
|
|
35
|
+
}
|
|
36
|
+
.mfui-nav-arrow_theme_purple:active {
|
|
37
|
+
background-color: var(--buttonDown);
|
|
38
|
+
}
|
|
39
|
+
.mfui-nav-arrow_theme_dark {
|
|
40
|
+
background-color: var(--stcBlack20);
|
|
41
|
+
}
|
|
42
|
+
.mfui-nav-arrow_theme_dark:hover {
|
|
43
|
+
background-color: var(--stcBlack50);
|
|
44
|
+
}
|
|
45
|
+
.mfui-nav-arrow_theme_dark:active {
|
|
46
|
+
background-color: var(--buttonDown);
|
|
47
|
+
}
|
|
48
|
+
.mfui-nav-arrow_theme_white {
|
|
49
|
+
background-color: var(--stcWhite);
|
|
50
|
+
-webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
51
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
52
|
+
}
|
|
53
|
+
.mfui-nav-arrow_theme_white:hover {
|
|
54
|
+
-webkit-box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.1);
|
|
55
|
+
box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.1);
|
|
56
|
+
}
|
|
57
|
+
.mfui-nav-arrow_theme_white:active {
|
|
58
|
+
-webkit-box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
|
|
59
|
+
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
|
|
60
|
+
}
|
|
61
|
+
.mfui-nav-arrow_theme_white .mfui-nav-arrow__icon {
|
|
62
|
+
fill: var(--stcBlack);
|
|
63
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import './NavArrow.
|
|
2
|
+
import './NavArrow.less';
|
|
3
3
|
export declare const Theme: {
|
|
4
4
|
readonly PURPLE: "purple";
|
|
5
5
|
readonly DARK: "dark";
|
|
@@ -9,8 +9,8 @@ export declare const View: {
|
|
|
9
9
|
readonly PREV: "prev";
|
|
10
10
|
readonly NEXT: "next";
|
|
11
11
|
};
|
|
12
|
-
export type ThemeType =
|
|
13
|
-
type ViewType =
|
|
12
|
+
export declare type ThemeType = typeof Theme[keyof typeof Theme];
|
|
13
|
+
declare type ViewType = typeof View[keyof typeof View];
|
|
14
14
|
export interface INavArrowProps {
|
|
15
15
|
dataAttrs?: {
|
|
16
16
|
root?: Record<string, string>;
|
|
@@ -1,16 +1,28 @@
|
|
|
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"] = exports.View = exports.Theme = void 0;
|
|
9
|
+
|
|
8
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.object.values.js");
|
|
13
|
+
|
|
9
14
|
var React = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
10
16
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
|
|
18
|
+
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
13
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
14
26
|
var ArrowLeft = function ArrowLeft(props) {
|
|
15
27
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
16
28
|
viewBox: "0 0 32 32"
|
|
@@ -18,6 +30,7 @@ var ArrowLeft = function ArrowLeft(props) {
|
|
|
18
30
|
d: "M19.5 20.8L14.7 16l4.8-4.8-1.6-1.7-6.4 6.5 6.4 6.5z"
|
|
19
31
|
}));
|
|
20
32
|
};
|
|
33
|
+
|
|
21
34
|
var ArrowRight = function ArrowRight(props) {
|
|
22
35
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
23
36
|
viewBox: "0 0 32 32"
|
|
@@ -25,32 +38,37 @@ var ArrowRight = function ArrowRight(props) {
|
|
|
25
38
|
d: "M12.5 20.8l4.8-4.8-4.8-4.8 1.6-1.7 6.4 6.5-6.4 6.5z"
|
|
26
39
|
}));
|
|
27
40
|
};
|
|
28
|
-
|
|
41
|
+
|
|
42
|
+
var Theme = {
|
|
29
43
|
PURPLE: 'purple',
|
|
30
44
|
DARK: 'dark',
|
|
31
45
|
WHITE: 'white'
|
|
32
46
|
};
|
|
33
|
-
|
|
47
|
+
exports.Theme = Theme;
|
|
48
|
+
var View = {
|
|
34
49
|
PREV: 'prev',
|
|
35
50
|
NEXT: 'next'
|
|
36
51
|
};
|
|
52
|
+
exports.View = View;
|
|
37
53
|
var cn = (0, _uiHelpers.cnCreate)('mfui-nav-arrow');
|
|
54
|
+
|
|
38
55
|
var NavArrow = function NavArrow(_ref) {
|
|
39
56
|
var dataAttrs = _ref.dataAttrs,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
57
|
+
className = _ref.className,
|
|
58
|
+
_ref$view = _ref.view,
|
|
59
|
+
view = _ref$view === void 0 ? View.PREV : _ref$view,
|
|
60
|
+
_ref$theme = _ref.theme,
|
|
61
|
+
theme = _ref$theme === void 0 ? Theme.PURPLE : _ref$theme,
|
|
62
|
+
_ref$disabled = _ref.disabled,
|
|
63
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
64
|
+
onClick = _ref.onClick;
|
|
48
65
|
var renderIcon = React.useCallback(function () {
|
|
49
66
|
switch (view) {
|
|
50
67
|
case View.PREV:
|
|
51
68
|
return /*#__PURE__*/React.createElement(ArrowLeft, (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.prevArrow), {
|
|
52
69
|
className: cn('icon')
|
|
53
70
|
}));
|
|
71
|
+
|
|
54
72
|
default:
|
|
55
73
|
return /*#__PURE__*/React.createElement(ArrowRight, (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.nextArrow), {
|
|
56
74
|
className: cn('icon')
|
|
@@ -66,4 +84,18 @@ var NavArrow = function NavArrow(_ref) {
|
|
|
66
84
|
disabled: disabled
|
|
67
85
|
}), renderIcon());
|
|
68
86
|
};
|
|
69
|
-
|
|
87
|
+
|
|
88
|
+
NavArrow.propTypes = {
|
|
89
|
+
dataAttrs: PropTypes.shape({
|
|
90
|
+
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
91
|
+
prevArrow: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
92
|
+
nextArrow: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
93
|
+
}),
|
|
94
|
+
className: PropTypes.string,
|
|
95
|
+
theme: PropTypes.oneOf(Object.values(Theme)),
|
|
96
|
+
view: PropTypes.oneOf(Object.values(View)),
|
|
97
|
+
disabled: PropTypes.bool,
|
|
98
|
+
onClick: PropTypes.func
|
|
99
|
+
};
|
|
100
|
+
var _default = NavArrow;
|
|
101
|
+
exports["default"] = _default;
|
|
@@ -1 +1,350 @@
|
|
|
1
|
-
h1,
|
|
1
|
+
h1,
|
|
2
|
+
h2,
|
|
3
|
+
h3,
|
|
4
|
+
h4,
|
|
5
|
+
h5 {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
8
|
+
.mfui-notification {
|
|
9
|
+
position: relative;
|
|
10
|
+
padding: 20px 12px 20px 32px;
|
|
11
|
+
border-radius: 12px;
|
|
12
|
+
background-color: var(--base);
|
|
13
|
+
}
|
|
14
|
+
@media screen and (max-width: 767px) {
|
|
15
|
+
.mfui-notification {
|
|
16
|
+
padding: 16px 12px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.mfui-notification__container {
|
|
20
|
+
display: -webkit-box;
|
|
21
|
+
display: -ms-flexbox;
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
.mfui-notification__title {
|
|
25
|
+
display: block;
|
|
26
|
+
margin-bottom: 4px;
|
|
27
|
+
color: var(--content);
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
font-size: 15px;
|
|
30
|
+
line-height: 18px;
|
|
31
|
+
}
|
|
32
|
+
@media screen and (min-width: 1280px) {
|
|
33
|
+
.mfui-notification__title {
|
|
34
|
+
line-height: 24px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.mfui-notification__title_close-padding {
|
|
38
|
+
padding-right: 20px;
|
|
39
|
+
}
|
|
40
|
+
.mfui-notification__text {
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
line-height: 18px;
|
|
43
|
+
position: relative;
|
|
44
|
+
max-width: 100%;
|
|
45
|
+
margin: 0;
|
|
46
|
+
color: var(--content);
|
|
47
|
+
-webkit-transition: height 300ms;
|
|
48
|
+
transition: height 300ms;
|
|
49
|
+
}
|
|
50
|
+
@media screen and (min-width: 768px) {
|
|
51
|
+
.mfui-notification__text {
|
|
52
|
+
font-size: 15px;
|
|
53
|
+
line-height: 24px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.mfui-notification__short-text {
|
|
57
|
+
position: static;
|
|
58
|
+
visibility: visible;
|
|
59
|
+
opacity: 1;
|
|
60
|
+
-webkit-transition: opacity 200ms;
|
|
61
|
+
transition: opacity 200ms;
|
|
62
|
+
}
|
|
63
|
+
.mfui-notification__short-text_hidden,
|
|
64
|
+
.mfui-notification__full-text {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
visibility: hidden;
|
|
68
|
+
opacity: 0;
|
|
69
|
+
-webkit-transition: opacity 300ms, visibility 300ms;
|
|
70
|
+
transition: opacity 300ms, visibility 300ms;
|
|
71
|
+
}
|
|
72
|
+
.mfui-notification__full-text_visible {
|
|
73
|
+
position: static;
|
|
74
|
+
visibility: visible;
|
|
75
|
+
opacity: 1;
|
|
76
|
+
-webkit-transition: opacity 200ms;
|
|
77
|
+
transition: opacity 200ms;
|
|
78
|
+
}
|
|
79
|
+
.mfui-notification__content {
|
|
80
|
+
display: -webkit-box;
|
|
81
|
+
display: -ms-flexbox;
|
|
82
|
+
display: flex;
|
|
83
|
+
-webkit-box-orient: vertical;
|
|
84
|
+
-webkit-box-direction: normal;
|
|
85
|
+
-ms-flex-direction: column;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
-webkit-box-align: start;
|
|
88
|
+
-ms-flex-align: start;
|
|
89
|
+
align-items: flex-start;
|
|
90
|
+
-ms-flex-item-align: center;
|
|
91
|
+
align-self: center;
|
|
92
|
+
width: 100%;
|
|
93
|
+
margin-left: 12px;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
}
|
|
96
|
+
.mfui-notification__icon-container {
|
|
97
|
+
display: -webkit-box;
|
|
98
|
+
display: -ms-flexbox;
|
|
99
|
+
display: flex;
|
|
100
|
+
-ms-flex-negative: 0;
|
|
101
|
+
flex-shrink: 0;
|
|
102
|
+
-webkit-box-align: center;
|
|
103
|
+
-ms-flex-align: center;
|
|
104
|
+
align-items: center;
|
|
105
|
+
-ms-flex-item-align: start;
|
|
106
|
+
align-self: flex-start;
|
|
107
|
+
-webkit-box-pack: center;
|
|
108
|
+
-ms-flex-pack: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
width: 40px;
|
|
111
|
+
min-width: 40px;
|
|
112
|
+
height: 40px;
|
|
113
|
+
border-radius: 50%;
|
|
114
|
+
}
|
|
115
|
+
.mfui-notification__attention-icon,
|
|
116
|
+
.mfui-notification__icon-container svg {
|
|
117
|
+
width: 32px;
|
|
118
|
+
min-width: 32px;
|
|
119
|
+
height: 32px;
|
|
120
|
+
}
|
|
121
|
+
.mfui-notification__text-container {
|
|
122
|
+
width: 85%;
|
|
123
|
+
margin-right: 56px;
|
|
124
|
+
}
|
|
125
|
+
@media screen and (min-width: 768px) {
|
|
126
|
+
.mfui-notification__text-container {
|
|
127
|
+
margin-right: 72px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
.mfui-notification__bottom {
|
|
131
|
+
z-index: 1;
|
|
132
|
+
display: -webkit-box;
|
|
133
|
+
display: -ms-flexbox;
|
|
134
|
+
display: flex;
|
|
135
|
+
-webkit-box-align: end;
|
|
136
|
+
-ms-flex-align: end;
|
|
137
|
+
align-items: flex-end;
|
|
138
|
+
-webkit-box-pack: justify;
|
|
139
|
+
-ms-flex-pack: justify;
|
|
140
|
+
justify-content: space-between;
|
|
141
|
+
width: 100%;
|
|
142
|
+
margin-top: 8px;
|
|
143
|
+
}
|
|
144
|
+
.mfui-notification__bottom-block {
|
|
145
|
+
display: -webkit-box;
|
|
146
|
+
display: -ms-flexbox;
|
|
147
|
+
display: flex;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
}
|
|
150
|
+
.mfui-notification__bottom_has-button {
|
|
151
|
+
margin-top: 12px;
|
|
152
|
+
}
|
|
153
|
+
.mfui-notification__link {
|
|
154
|
+
display: -webkit-inline-box;
|
|
155
|
+
display: -ms-inline-flexbox;
|
|
156
|
+
display: inline-flex;
|
|
157
|
+
-webkit-box-align: center;
|
|
158
|
+
-ms-flex-align: center;
|
|
159
|
+
align-items: center;
|
|
160
|
+
color: var(--brandGreen);
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
}
|
|
163
|
+
.mfui-notification__button + .mfui-notification__link {
|
|
164
|
+
margin-left: 16px;
|
|
165
|
+
}
|
|
166
|
+
.mfui-notification__link,
|
|
167
|
+
.mfui-notification__collapse-button {
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
font-size: 15px;
|
|
170
|
+
font-family: inherit;
|
|
171
|
+
line-height: 18px;
|
|
172
|
+
}
|
|
173
|
+
@media screen and (max-width: 767px) {
|
|
174
|
+
.mfui-notification__link,
|
|
175
|
+
.mfui-notification__collapse-button {
|
|
176
|
+
font-size: 12px;
|
|
177
|
+
line-height: 14px;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
.mfui-notification__collapse-button {
|
|
181
|
+
display: -webkit-box;
|
|
182
|
+
display: -ms-flexbox;
|
|
183
|
+
display: flex;
|
|
184
|
+
-webkit-box-align: start;
|
|
185
|
+
-ms-flex-align: start;
|
|
186
|
+
align-items: flex-start;
|
|
187
|
+
height: -webkit-fit-content;
|
|
188
|
+
height: -moz-fit-content;
|
|
189
|
+
height: fit-content;
|
|
190
|
+
padding: 0;
|
|
191
|
+
border: none;
|
|
192
|
+
color: var(--brandGreen);
|
|
193
|
+
text-align: right;
|
|
194
|
+
background-color: transparent;
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
}
|
|
197
|
+
@media screen and (max-width: 767px) {
|
|
198
|
+
.mfui-notification__collapse-button {
|
|
199
|
+
-webkit-box-align: center;
|
|
200
|
+
-ms-flex-align: center;
|
|
201
|
+
align-items: center;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
.mfui-notification__link-arrow,
|
|
205
|
+
.mfui-notification__collapse-arrow {
|
|
206
|
+
width: 20px;
|
|
207
|
+
min-width: 20px;
|
|
208
|
+
height: 20px;
|
|
209
|
+
fill: var(--brandGreen);
|
|
210
|
+
}
|
|
211
|
+
.mfui-notification__collapse-arrow_close {
|
|
212
|
+
-webkit-transform: rotate(180deg);
|
|
213
|
+
transform: rotate(180deg);
|
|
214
|
+
}
|
|
215
|
+
.mfui-notification__link-arrow {
|
|
216
|
+
margin-bottom: -2px;
|
|
217
|
+
}
|
|
218
|
+
@media screen and (min-width: 768px) {
|
|
219
|
+
.mfui-notification__link-arrow {
|
|
220
|
+
margin-bottom: -4px;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
.mfui-notification__bottom-block + .mfui-notification__collapse-button {
|
|
224
|
+
margin-left: 20px;
|
|
225
|
+
}
|
|
226
|
+
@media screen and (max-width: 767px) {
|
|
227
|
+
.mfui-notification__bottom-block + .mfui-notification__collapse-button {
|
|
228
|
+
margin-left: 16px;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
.mfui-notification__collapse_hidden {
|
|
232
|
+
visibility: hidden;
|
|
233
|
+
}
|
|
234
|
+
.mfui-notification__close {
|
|
235
|
+
position: absolute;
|
|
236
|
+
top: 8px;
|
|
237
|
+
right: 8px;
|
|
238
|
+
display: -webkit-box;
|
|
239
|
+
display: -ms-flexbox;
|
|
240
|
+
display: flex;
|
|
241
|
+
-webkit-box-align: center;
|
|
242
|
+
-ms-flex-align: center;
|
|
243
|
+
align-items: center;
|
|
244
|
+
-webkit-box-pack: center;
|
|
245
|
+
-ms-flex-pack: center;
|
|
246
|
+
justify-content: center;
|
|
247
|
+
width: 24px;
|
|
248
|
+
height: 24px;
|
|
249
|
+
padding: 0;
|
|
250
|
+
border: none;
|
|
251
|
+
border-radius: 50%;
|
|
252
|
+
background-color: var(--stcBlack5);
|
|
253
|
+
cursor: pointer;
|
|
254
|
+
}
|
|
255
|
+
@media screen and (min-width: 768px) {
|
|
256
|
+
.mfui-notification__close {
|
|
257
|
+
top: 12px;
|
|
258
|
+
right: 12px;
|
|
259
|
+
width: 32px;
|
|
260
|
+
height: 32px;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
.mfui-notification__close:hover {
|
|
264
|
+
background-color: var(--spbSky1);
|
|
265
|
+
}
|
|
266
|
+
.mfui-notification__close:active {
|
|
267
|
+
background-color: var(--spbSky2);
|
|
268
|
+
}
|
|
269
|
+
.mfui-notification__close-icon {
|
|
270
|
+
width: 10px;
|
|
271
|
+
height: 10px;
|
|
272
|
+
opacity: 0.5;
|
|
273
|
+
fill: var(--content);
|
|
274
|
+
}
|
|
275
|
+
.mfui-notification_type_error .mfui-notification__icon-container {
|
|
276
|
+
background-color: var(--fury20);
|
|
277
|
+
}
|
|
278
|
+
.mfui-notification_type_error .mfui-notification__icon-container svg {
|
|
279
|
+
/* stylelint-disable-line max-nesting-depth */
|
|
280
|
+
fill: var(--fury);
|
|
281
|
+
}
|
|
282
|
+
.mfui-notification_type_success .mfui-notification__icon-container {
|
|
283
|
+
background-color: var(--brandGreen20);
|
|
284
|
+
}
|
|
285
|
+
.mfui-notification_type_success .mfui-notification__icon-container svg {
|
|
286
|
+
/* stylelint-disable-line max-nesting-depth */
|
|
287
|
+
fill: var(--brandGreen);
|
|
288
|
+
}
|
|
289
|
+
.mfui-notification_type_warning .mfui-notification__icon-container {
|
|
290
|
+
background-color: var(--137C20);
|
|
291
|
+
}
|
|
292
|
+
.mfui-notification_type_warning .mfui-notification__icon-container svg {
|
|
293
|
+
/* stylelint-disable-line max-nesting-depth */
|
|
294
|
+
fill: var(--137C);
|
|
295
|
+
}
|
|
296
|
+
.mfui-notification_type_info .mfui-notification__icon-container {
|
|
297
|
+
background-color: var(--311C20);
|
|
298
|
+
}
|
|
299
|
+
.mfui-notification_type_info .mfui-notification__icon-container svg {
|
|
300
|
+
/* stylelint-disable-line max-nesting-depth */
|
|
301
|
+
fill: var(--311C);
|
|
302
|
+
}
|
|
303
|
+
.mfui-notification_colored .mfui-notification__icon-container {
|
|
304
|
+
background-color: var(--base);
|
|
305
|
+
}
|
|
306
|
+
.mfui-notification_colored.mfui-notification_type_info {
|
|
307
|
+
background-color: var(--311C20);
|
|
308
|
+
}
|
|
309
|
+
.mfui-notification_colored.mfui-notification_type_warning {
|
|
310
|
+
background-color: var(--137C20);
|
|
311
|
+
}
|
|
312
|
+
.mfui-notification_colored.mfui-notification_type_success {
|
|
313
|
+
background-color: var(--brandGreen20);
|
|
314
|
+
}
|
|
315
|
+
.mfui-notification_colored.mfui-notification_type_info .mfui-notification__title,
|
|
316
|
+
.mfui-notification_colored.mfui-notification_type_warning .mfui-notification__title,
|
|
317
|
+
.mfui-notification_colored.mfui-notification_type_success .mfui-notification__title,
|
|
318
|
+
.mfui-notification_colored.mfui-notification_type_info .mfui-notification__text,
|
|
319
|
+
.mfui-notification_colored.mfui-notification_type_warning .mfui-notification__text,
|
|
320
|
+
.mfui-notification_colored.mfui-notification_type_success .mfui-notification__text {
|
|
321
|
+
color: var(--content);
|
|
322
|
+
}
|
|
323
|
+
.mfui-notification_colored.mfui-notification_type_error {
|
|
324
|
+
background-color: var(--fury80);
|
|
325
|
+
}
|
|
326
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__title,
|
|
327
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__text,
|
|
328
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__link,
|
|
329
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__collapse-button {
|
|
330
|
+
color: var(--stcWhite);
|
|
331
|
+
}
|
|
332
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__link-arrow,
|
|
333
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__collapse-arrow {
|
|
334
|
+
fill: var(--stcWhite);
|
|
335
|
+
}
|
|
336
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__icon-container {
|
|
337
|
+
background-color: var(--stcWhite20);
|
|
338
|
+
}
|
|
339
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__icon-container svg {
|
|
340
|
+
/* stylelint-disable-line max-nesting-depth */
|
|
341
|
+
fill: var(--stcWhite);
|
|
342
|
+
}
|
|
343
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__close:not(:hover) {
|
|
344
|
+
background-color: var(--stcWhite20);
|
|
345
|
+
}
|
|
346
|
+
.mfui-notification_colored.mfui-notification_type_error .mfui-notification__close:not(:hover) .mfui-notification__close-icon {
|
|
347
|
+
/* stylelint-disable-line max-nesting-depth */
|
|
348
|
+
opacity: 1;
|
|
349
|
+
fill: var(--stcWhite);
|
|
350
|
+
}
|