@megafon/ui-core 6.2.0 → 7.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/colors/ColorItem/ColorItem.css +1 -45
- package/dist/es/colors/ColorItem/ColorItem.d.ts +2 -2
- package/dist/es/colors/ColorItem/ColorItem.js +5 -7
- package/dist/es/colors/Colors.css +1 -233
- package/dist/es/colors/Colors.d.ts +1 -1
- package/dist/es/colors/Colors.js +33 -55
- package/dist/es/colors/colorsData.d.ts +4 -4
- package/dist/es/components/Accordion/Accordion.css +1 -89
- package/dist/es/components/Accordion/Accordion.d.ts +2 -1
- package/dist/es/components/Accordion/Accordion.js +22 -65
- package/dist/es/components/Avatar/Avatar.css +1 -52
- package/dist/es/components/Avatar/Avatar.d.ts +1 -1
- package/dist/es/components/Avatar/Avatar.js +9 -27
- package/dist/es/components/Badges/CounterBadge/CounterBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/CounterBadge/CounterBadge.d.ts +2 -2
- package/dist/es/components/Badges/{components/CounterBadge → CounterBadge}/CounterBadge.js +10 -28
- package/dist/es/components/Badges/NotificationBadge/NotificationBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/NotificationBadge/NotificationBadge.d.ts +3 -3
- package/dist/es/components/Badges/{components/NotificationBadge → NotificationBadge}/NotificationBadge.js +8 -22
- package/dist/es/components/Badges/PriceBadge/PriceBadge.css +1 -0
- package/dist/es/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.d.ts +4 -4
- package/dist/es/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.js +11 -54
- package/dist/es/components/Badges/PromoBadge/PromoBadge.css +1 -0
- package/dist/es/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.d.ts +4 -4
- package/dist/es/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.js +9 -23
- package/dist/es/components/Badges/TimerBadge/TimerBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/TimerBadge/TimerBadge.d.ts +2 -2
- package/dist/es/components/Badges/{components/TimerBadge → TimerBadge}/TimerBadge.js +22 -46
- package/dist/es/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.js +5 -32
- package/dist/es/components/Banner/Banner.css +1 -195
- package/dist/es/components/Banner/Banner.d.ts +5 -4
- package/dist/es/components/Banner/Banner.js +82 -130
- package/dist/es/components/Banner/BannerDot.css +1 -69
- package/dist/es/components/Banner/BannerDot.d.ts +1 -1
- package/dist/es/components/Banner/BannerDot.js +6 -22
- package/dist/es/components/Banner/slidesSettings.d.ts +4 -2
- package/dist/es/components/Banner/slidesSettings.js +3 -6
- package/dist/es/components/Button/Button.css +1 -814
- package/dist/es/components/Button/Button.d.ts +7 -6
- package/dist/es/components/Button/Button.js +44 -104
- package/dist/es/components/Calendar/Calendar.css +1 -24
- package/dist/es/components/Calendar/Calendar.d.ts +4 -4
- package/dist/es/components/Calendar/Calendar.js +75 -144
- package/dist/es/components/Calendar/components/_Day/Day.css +1 -0
- package/dist/es/components/Calendar/components/{Day → _Day}/Day.d.ts +4 -4
- package/dist/es/components/Calendar/components/{Day → _Day}/Day.js +21 -53
- package/dist/es/components/Calendar/components/_Month/Month.css +1 -0
- package/dist/es/components/Calendar/components/{Month → _Month}/Month.d.ts +3 -2
- package/dist/es/components/Calendar/components/{Month → _Month}/Month.js +11 -36
- package/dist/es/components/Caption/Caption.css +1 -48
- package/dist/es/components/Caption/Caption.d.ts +4 -2
- package/dist/es/components/Caption/Caption.js +11 -25
- package/dist/es/components/Carousel/Carousel.css +1 -215
- package/dist/es/components/Carousel/Carousel.d.ts +11 -10
- package/dist/es/components/Carousel/Carousel.js +135 -162
- package/dist/es/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
- package/dist/es/components/Carousel/checkBreakpointsPropTypes.js +1 -4
- package/dist/es/components/Carousel/useGradient.d.ts +1 -1
- package/dist/es/components/Carousel/useGradient.js +9 -13
- package/dist/es/components/Checkbox/Checkbox.css +1 -150
- package/dist/es/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/es/components/Checkbox/Checkbox.js +21 -50
- package/dist/es/components/Chips/Chip.css +1 -132
- package/dist/es/components/Chips/Chip.d.ts +6 -26
- package/dist/es/components/Chips/Chip.js +17 -42
- package/dist/es/components/Chips/Chips.css +1 -19
- package/dist/es/components/Chips/Chips.d.ts +2 -2
- package/dist/es/components/Chips/Chips.js +32 -56
- package/dist/es/components/Chips/components/ChipsDropdown.css +1 -106
- package/dist/es/components/Chips/components/ChipsDropdown.d.ts +2 -2
- package/dist/es/components/Chips/components/ChipsDropdown.js +12 -27
- package/dist/es/components/ContentArea/ContentArea.css +1 -109
- package/dist/es/components/ContentArea/ContentArea.d.ts +5 -4
- package/dist/es/components/ContentArea/ContentArea.js +9 -28
- package/dist/es/components/ContentView/ContentView.css +1 -103
- package/dist/es/components/ContentView/ContentView.d.ts +3 -2
- package/dist/es/components/ContentView/ContentView.js +12 -46
- package/dist/es/components/Counter/Counter.css +1 -123
- package/dist/es/components/Counter/Counter.d.ts +1 -1
- package/dist/es/components/Counter/Counter.js +20 -55
- package/dist/es/components/Grid/Grid.css +1 -102
- package/dist/es/components/Grid/Grid.d.ts +1 -1
- package/dist/es/components/Grid/Grid.js +8 -24
- package/dist/es/components/Grid/GridColumn.css +1 -3102
- package/dist/es/components/Grid/GridColumn.d.ts +2 -2
- package/dist/es/components/Grid/GridColumn.js +33 -62
- package/dist/es/components/Header/Header.css +1 -122
- package/dist/es/components/Header/Header.d.ts +3 -1
- package/dist/es/components/Header/Header.js +13 -28
- package/dist/es/components/Link/Link.d.ts +2 -2
- package/dist/es/components/Link/Link.js +9 -25
- package/dist/es/components/List/List.css +1 -66
- package/dist/es/components/List/List.d.ts +2 -1
- package/dist/es/components/List/List.js +8 -18
- package/dist/es/components/List/ListItem.css +1 -6
- package/dist/es/components/List/ListItem.d.ts +2 -1
- package/dist/es/components/List/ListItem.js +1 -7
- package/dist/es/components/ListData/ListData.css +1 -162
- package/dist/es/components/ListData/ListData.d.ts +6 -34
- package/dist/es/components/ListData/ListData.js +22 -65
- package/dist/es/components/ListData/ListDataGroup.css +1 -15
- package/dist/es/components/ListData/ListDataGroup.d.ts +4 -4
- package/dist/es/components/ListData/ListDataGroup.js +29 -74
- package/dist/es/components/ListData/components/ListDataSortable.css +1 -79
- package/dist/es/components/ListData/components/ListDataSortable.d.ts +4 -4
- package/dist/es/components/ListData/components/ListDataSortable.js +21 -42
- package/dist/es/components/ListData/helpers.js +1 -8
- package/dist/es/components/Logo/Logo.css +1 -43
- package/dist/es/components/Logo/Logo.d.ts +1 -1
- package/dist/es/components/Logo/Logo.js +9 -25
- package/dist/es/components/Modal/Modal.css +1 -0
- package/dist/es/components/Modal/Modal.d.ts +106 -0
- package/dist/es/components/Modal/Modal.js +278 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.d.ts +8 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.js +168 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +1 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.d.ts +8 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.js +32 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +1 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +12 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +114 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +1 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +8 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +55 -0
- package/dist/es/components/Modal/mocks.d.ts +3 -0
- package/dist/es/components/Modal/mocks.js +79 -0
- package/dist/es/components/Modal/types.d.ts +27 -0
- package/dist/es/components/Modal/types.js +1 -0
- package/dist/es/components/Modal/utils/utils.d.ts +18 -0
- package/dist/es/components/Modal/utils/utils.js +66 -0
- package/dist/es/components/NavArrow/NavArrow.css +1 -63
- package/dist/es/components/NavArrow/NavArrow.d.ts +3 -3
- package/dist/es/components/NavArrow/NavArrow.js +8 -28
- package/dist/es/components/Notification/Notification.css +1 -350
- package/dist/es/components/Notification/Notification.d.ts +5 -4
- package/dist/es/components/Notification/Notification.js +61 -131
- package/dist/es/components/Pagination/Pagination.css +1 -5
- package/dist/es/components/Pagination/Pagination.d.ts +4 -3
- package/dist/es/components/Pagination/Pagination.js +7 -22
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +1 -62
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +5 -4
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +10 -26
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -10
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +3 -2
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -22
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +1 -17
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +3 -2
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +7 -23
- package/dist/es/components/Pagination/helpers.js +0 -3
- package/dist/es/components/Pagination/usePagination.d.ts +2 -1
- package/dist/es/components/Pagination/usePagination.js +6 -18
- package/dist/es/components/Paragraph/Paragraph.css +1 -43
- package/dist/es/components/Paragraph/Paragraph.d.ts +4 -2
- package/dist/es/components/Paragraph/Paragraph.js +9 -22
- package/dist/es/components/Preloader/Preloader.css +1 -224
- package/dist/es/components/Preloader/Preloader.d.ts +3 -3
- package/dist/es/components/Preloader/Preloader.js +16 -36
- package/dist/es/components/RadioButton/RadioButton.css +1 -120
- package/dist/es/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/es/components/RadioButton/RadioButton.js +18 -50
- package/dist/es/components/Row/Row.css +1 -238
- package/dist/es/components/Row/Row.d.ts +2 -2
- package/dist/es/components/Row/Row.js +23 -48
- package/dist/es/components/ScrollBar/ScrollBar.css +1 -0
- package/dist/es/components/ScrollBar/ScrollBar.d.ts +34 -0
- package/dist/es/components/ScrollBar/ScrollBar.js +86 -0
- package/dist/es/components/Search/Search.css +1 -453
- package/dist/es/components/Search/Search.d.ts +8 -9
- package/dist/es/components/Search/Search.js +54 -149
- package/dist/es/components/Select/Select.css +1 -389
- package/dist/es/components/Select/Select.d.ts +9 -85
- package/dist/es/components/Select/Select.js +52 -142
- package/dist/es/components/Select/reducer/selectReducer.d.ts +1 -1
- package/dist/es/components/Select/reducer/selectReducer.js +18 -32
- package/dist/es/components/Selector/Selector.css +1 -132
- package/dist/es/components/Selector/Selector.d.ts +1 -1
- package/dist/es/components/Selector/Selector.js +23 -50
- package/dist/es/components/Sliders/Slider/Slider.css +1 -128
- package/dist/es/components/Sliders/Slider/Slider.d.ts +1 -1
- package/dist/es/components/Sliders/Slider/Slider.js +25 -56
- package/dist/es/components/Sliders/SliderRange/SliderRange.css +1 -169
- package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRange/SliderRange.js +33 -80
- package/dist/es/components/Sliders/SliderRange/helpers.js +0 -2
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +1 -219
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.js +36 -85
- package/dist/es/components/Sliders/SliderRatio/helpers.js +1 -1
- package/dist/es/components/Sliders/SliderRatio/types.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRatio/types.js +0 -1
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +1 -84
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +11 -35
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +1 -15
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +6 -20
- package/dist/es/components/Sliders/components/SliderScale/helpers.js +12 -16
- package/dist/es/components/Sliders/helpers.js +1 -5
- package/dist/es/components/Snackbar/Snackbar.css +1 -220
- package/dist/es/components/Snackbar/Snackbar.d.ts +3 -3
- package/dist/es/components/Snackbar/Snackbar.js +44 -82
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.css +1 -66
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.js +9 -17
- package/dist/es/components/Switcher/Switcher.css +1 -160
- package/dist/es/components/Switcher/Switcher.d.ts +2 -1
- package/dist/es/components/Switcher/Switcher.js +17 -39
- package/dist/es/components/Tabs/Tab.js +0 -14
- package/dist/es/components/Tabs/Tabs.css +1 -306
- package/dist/es/components/Tabs/Tabs.d.ts +6 -5
- package/dist/es/components/Tabs/Tabs.js +110 -166
- package/dist/es/components/TextField/TextField.css +1 -343
- package/dist/es/components/TextField/TextField.d.ts +4 -4
- package/dist/es/components/TextField/TextField.js +85 -193
- package/dist/es/components/TextField/utils/countGraphemes.js +10 -18
- package/dist/es/components/TextLink/TextLink.css +1 -50
- package/dist/es/components/TextLink/TextLink.d.ts +2 -2
- package/dist/es/components/TextLink/TextLink.js +14 -27
- package/dist/es/components/Tile/Tile.css +1 -43
- package/dist/es/components/Tile/Tile.d.ts +7 -5
- package/dist/es/components/Tile/Tile.js +16 -36
- package/dist/es/components/Tooltip/Tooltip.css +1 -335
- package/dist/es/components/Tooltip/Tooltip.d.ts +9 -8
- package/dist/es/components/Tooltip/Tooltip.js +58 -139
- package/dist/es/components/_Collapse/Collapse.css +1 -0
- package/dist/{lib/components/Collapse → es/components/_Collapse}/Collapse.d.ts +3 -3
- package/dist/es/components/{Collapse → _Collapse}/Collapse.js +25 -62
- package/dist/es/hooks/usePrevious.js +0 -2
- package/dist/es/hooks/useResolution.d.ts +1 -1
- package/dist/es/hooks/useResolution.js +5 -11
- package/dist/es/hooks/useSwipe.d.ts +1 -1
- package/dist/es/hooks/useSwipe.js +17 -44
- package/dist/es/index.d.ts +16 -9
- package/dist/es/index.js +17 -10
- package/dist/es/styles/base.css +1 -0
- package/dist/lib/colors/ColorItem/ColorItem.css +1 -45
- package/dist/lib/colors/ColorItem/ColorItem.d.ts +2 -2
- package/dist/lib/colors/ColorItem/ColorItem.js +9 -18
- package/dist/lib/colors/Colors.css +1 -233
- package/dist/lib/colors/Colors.d.ts +1 -1
- package/dist/lib/colors/Colors.js +38 -80
- package/dist/lib/colors/colorsData.d.ts +4 -4
- package/dist/lib/colors/colorsData.js +1 -2
- package/dist/lib/components/Accordion/Accordion.css +1 -89
- package/dist/lib/components/Accordion/Accordion.d.ts +2 -1
- package/dist/lib/components/Accordion/Accordion.js +27 -82
- package/dist/lib/components/Avatar/Avatar.css +1 -52
- package/dist/lib/components/Avatar/Avatar.d.ts +1 -1
- package/dist/lib/components/Avatar/Avatar.js +14 -42
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/CounterBadge/CounterBadge.d.ts +2 -2
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +52 -0
- package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/NotificationBadge/NotificationBadge.d.ts +3 -3
- package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.js +44 -0
- package/dist/lib/components/Badges/PriceBadge/PriceBadge.css +1 -0
- package/dist/lib/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.d.ts +4 -4
- package/dist/lib/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.js +20 -76
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +1 -0
- package/dist/lib/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.d.ts +4 -4
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +56 -0
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/TimerBadge/TimerBadge.d.ts +2 -2
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.js +96 -0
- package/dist/lib/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.js +12 -56
- package/dist/lib/components/Banner/Banner.css +1 -195
- package/dist/lib/components/Banner/Banner.d.ts +5 -4
- package/dist/lib/components/Banner/Banner.js +94 -164
- package/dist/lib/components/Banner/BannerDot.css +1 -69
- package/dist/lib/components/Banner/BannerDot.d.ts +1 -1
- package/dist/lib/components/Banner/BannerDot.js +11 -37
- package/dist/lib/components/Banner/slidesSettings.d.ts +4 -2
- package/dist/lib/components/Banner/slidesSettings.js +5 -12
- package/dist/lib/components/Button/Button.css +1 -814
- package/dist/lib/components/Button/Button.d.ts +7 -6
- package/dist/lib/components/Button/Button.js +71 -158
- package/dist/lib/components/Calendar/Calendar.css +1 -24
- package/dist/lib/components/Calendar/Calendar.d.ts +4 -4
- package/dist/lib/components/Calendar/Calendar.js +90 -191
- package/dist/lib/components/Calendar/components/_Day/Day.css +1 -0
- package/dist/lib/components/Calendar/components/{Day → _Day}/Day.d.ts +4 -4
- package/dist/lib/components/Calendar/components/{Day → _Day}/Day.js +29 -72
- package/dist/lib/components/Calendar/components/_Month/Month.css +1 -0
- package/dist/lib/components/Calendar/components/{Month → _Month}/Month.d.ts +3 -2
- package/dist/lib/components/Calendar/components/_Month/Month.js +97 -0
- package/dist/lib/components/Caption/Caption.css +1 -48
- package/dist/lib/components/Caption/Caption.d.ts +4 -2
- package/dist/lib/components/Caption/Caption.js +16 -41
- package/dist/lib/components/Carousel/Carousel.css +1 -215
- package/dist/lib/components/Carousel/Carousel.d.ts +11 -10
- package/dist/lib/components/Carousel/Carousel.js +223 -228
- package/dist/lib/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
- package/dist/lib/components/Carousel/checkBreakpointsPropTypes.js +6 -18
- package/dist/lib/components/Carousel/useGradient.d.ts +1 -1
- package/dist/lib/components/Carousel/useGradient.js +12 -25
- package/dist/lib/components/Checkbox/Checkbox.css +1 -150
- package/dist/lib/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/lib/components/Checkbox/Checkbox.js +35 -75
- package/dist/lib/components/Chips/Chip.css +1 -132
- package/dist/lib/components/Chips/Chip.d.ts +6 -26
- package/dist/lib/components/Chips/Chip.js +36 -76
- package/dist/lib/components/Chips/Chips.css +1 -19
- package/dist/lib/components/Chips/Chips.d.ts +2 -2
- package/dist/lib/components/Chips/Chips.js +47 -92
- package/dist/lib/components/Chips/components/ChipsDropdown.css +1 -106
- package/dist/lib/components/Chips/components/ChipsDropdown.d.ts +2 -2
- package/dist/lib/components/Chips/components/ChipsDropdown.js +31 -67
- package/dist/lib/components/ContentArea/ContentArea.css +1 -109
- package/dist/lib/components/ContentArea/ContentArea.d.ts +5 -4
- package/dist/lib/components/ContentArea/ContentArea.js +14 -44
- package/dist/lib/components/ContentView/ContentView.css +1 -103
- package/dist/lib/components/ContentView/ContentView.d.ts +3 -2
- package/dist/lib/components/ContentView/ContentView.js +17 -63
- package/dist/lib/components/Counter/Counter.css +1 -123
- package/dist/lib/components/Counter/Counter.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.js +25 -71
- package/dist/lib/components/Grid/Grid.css +1 -102
- package/dist/lib/components/Grid/Grid.d.ts +1 -1
- package/dist/lib/components/Grid/Grid.js +13 -40
- package/dist/lib/components/Grid/GridColumn.css +1 -3102
- package/dist/lib/components/Grid/GridColumn.d.ts +2 -2
- package/dist/lib/components/Grid/GridColumn.js +38 -77
- package/dist/lib/components/Header/Header.css +1 -122
- package/dist/lib/components/Header/Header.d.ts +3 -1
- package/dist/lib/components/Header/Header.js +18 -43
- package/dist/lib/components/Link/Link.d.ts +2 -2
- package/dist/lib/components/Link/Link.js +15 -34
- package/dist/lib/components/List/List.css +1 -66
- package/dist/lib/components/List/List.d.ts +2 -1
- package/dist/lib/components/List/List.js +12 -30
- package/dist/lib/components/List/ListItem.css +1 -6
- package/dist/lib/components/List/ListItem.d.ts +2 -1
- package/dist/lib/components/List/ListItem.js +5 -19
- package/dist/lib/components/ListData/ListData.css +1 -162
- package/dist/lib/components/ListData/ListData.d.ts +6 -34
- package/dist/lib/components/ListData/ListData.js +51 -111
- package/dist/lib/components/ListData/ListDataGroup.css +1 -15
- package/dist/lib/components/ListData/ListDataGroup.d.ts +4 -4
- package/dist/lib/components/ListData/ListDataGroup.js +48 -118
- package/dist/lib/components/ListData/components/ListDataSortable.css +1 -79
- package/dist/lib/components/ListData/components/ListDataSortable.d.ts +4 -4
- package/dist/lib/components/ListData/components/ListDataSortable.js +35 -74
- package/dist/lib/components/ListData/helpers.js +7 -25
- package/dist/lib/components/Logo/Logo.css +1 -43
- package/dist/lib/components/Logo/Logo.d.ts +1 -1
- package/dist/lib/components/Logo/Logo.js +14 -41
- package/dist/lib/components/Modal/Modal.css +1 -0
- package/dist/lib/components/Modal/Modal.d.ts +106 -0
- package/dist/lib/components/Modal/Modal.js +287 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.js +177 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +1 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.js +41 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +1 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +12 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +123 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +1 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +64 -0
- package/dist/lib/components/Modal/mocks.d.ts +3 -0
- package/dist/lib/components/Modal/mocks.js +85 -0
- package/dist/lib/components/Modal/types.d.ts +27 -0
- package/dist/lib/components/Modal/types.js +5 -0
- package/dist/lib/components/Modal/utils/utils.d.ts +18 -0
- package/dist/lib/components/Modal/utils/utils.js +72 -0
- package/dist/lib/components/NavArrow/NavArrow.css +1 -63
- package/dist/lib/components/NavArrow/NavArrow.d.ts +3 -3
- package/dist/lib/components/NavArrow/NavArrow.js +15 -47
- package/dist/lib/components/Notification/Notification.css +1 -350
- package/dist/lib/components/Notification/Notification.d.ts +5 -4
- package/dist/lib/components/Notification/Notification.js +114 -201
- package/dist/lib/components/Pagination/Pagination.css +1 -5
- package/dist/lib/components/Pagination/Pagination.d.ts +4 -3
- package/dist/lib/components/Pagination/Pagination.js +19 -51
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +1 -62
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +5 -4
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +12 -35
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -10
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +3 -2
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +7 -32
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +1 -17
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +3 -2
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +9 -32
- package/dist/lib/components/Pagination/helpers.js +1 -6
- package/dist/lib/components/Pagination/usePagination.d.ts +2 -1
- package/dist/lib/components/Pagination/usePagination.js +10 -36
- package/dist/lib/components/Paragraph/Paragraph.css +1 -43
- package/dist/lib/components/Paragraph/Paragraph.d.ts +4 -2
- package/dist/lib/components/Paragraph/Paragraph.js +14 -38
- package/dist/lib/components/Preloader/Preloader.css +1 -224
- package/dist/lib/components/Preloader/Preloader.d.ts +3 -3
- package/dist/lib/components/Preloader/Preloader.js +23 -58
- package/dist/lib/components/RadioButton/RadioButton.css +1 -120
- package/dist/lib/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/lib/components/RadioButton/RadioButton.js +23 -70
- package/dist/lib/components/Row/Row.css +1 -238
- package/dist/lib/components/Row/Row.d.ts +2 -2
- package/dist/lib/components/Row/Row.js +40 -76
- package/dist/lib/components/ScrollBar/ScrollBar.css +1 -0
- package/dist/lib/components/ScrollBar/ScrollBar.d.ts +34 -0
- package/dist/lib/components/ScrollBar/ScrollBar.js +94 -0
- package/dist/lib/components/Search/Search.css +1 -453
- package/dist/lib/components/Search/Search.d.ts +8 -9
- package/dist/lib/components/Search/Search.js +122 -262
- package/dist/lib/components/Select/Select.css +1 -389
- package/dist/lib/components/Select/Select.d.ts +9 -85
- package/dist/lib/components/Select/Select.js +70 -187
- package/dist/lib/components/Select/reducer/selectReducer.d.ts +1 -1
- package/dist/lib/components/Select/reducer/selectReducer.js +22 -42
- package/dist/lib/components/Selector/Selector.css +1 -132
- package/dist/lib/components/Selector/Selector.d.ts +1 -1
- package/dist/lib/components/Selector/Selector.js +28 -71
- package/dist/lib/components/Sliders/Slider/Slider.css +1 -128
- package/dist/lib/components/Sliders/Slider/Slider.d.ts +1 -1
- package/dist/lib/components/Sliders/Slider/Slider.js +30 -76
- package/dist/lib/components/Sliders/SliderRange/SliderRange.css +1 -169
- package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRange/SliderRange.js +38 -101
- package/dist/lib/components/Sliders/SliderRange/helpers.js +5 -18
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +1 -219
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.js +41 -112
- package/dist/lib/components/Sliders/SliderRatio/helpers.js +9 -28
- package/dist/lib/components/Sliders/SliderRatio/types.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRatio/types.js +0 -2
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +1 -84
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +18 -57
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +1 -15
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +12 -40
- package/dist/lib/components/Sliders/components/SliderScale/helpers.js +16 -34
- package/dist/lib/components/Sliders/helpers.js +5 -22
- package/dist/lib/components/Snackbar/Snackbar.css +1 -220
- package/dist/lib/components/Snackbar/Snackbar.d.ts +3 -3
- package/dist/lib/components/Snackbar/Snackbar.js +82 -139
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.css +1 -66
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.js +18 -37
- package/dist/lib/components/Switcher/Switcher.css +1 -160
- package/dist/lib/components/Switcher/Switcher.d.ts +2 -1
- package/dist/lib/components/Switcher/Switcher.js +22 -53
- package/dist/lib/components/Tabs/Tab.js +5 -26
- package/dist/lib/components/Tabs/Tabs.css +1 -306
- package/dist/lib/components/Tabs/Tabs.d.ts +6 -5
- package/dist/lib/components/Tabs/Tabs.js +121 -200
- package/dist/lib/components/TextField/TextField.css +1 -343
- package/dist/lib/components/TextField/TextField.d.ts +4 -4
- package/dist/lib/components/TextField/TextField.js +119 -244
- package/dist/lib/components/TextField/utils/countGraphemes.js +11 -28
- package/dist/lib/components/TextLink/TextLink.css +1 -50
- package/dist/lib/components/TextLink/TextLink.d.ts +2 -2
- package/dist/lib/components/TextLink/TextLink.js +19 -42
- package/dist/lib/components/Tile/Tile.css +1 -43
- package/dist/lib/components/Tile/Tile.d.ts +7 -5
- package/dist/lib/components/Tile/Tile.js +27 -55
- package/dist/lib/components/Tooltip/Tooltip.css +1 -335
- package/dist/lib/components/Tooltip/Tooltip.d.ts +9 -8
- package/dist/lib/components/Tooltip/Tooltip.js +111 -219
- package/dist/lib/components/_Collapse/Collapse.css +1 -0
- package/dist/{es/components/Collapse → lib/components/_Collapse}/Collapse.d.ts +3 -3
- package/dist/lib/components/_Collapse/Collapse.js +95 -0
- package/dist/lib/constants/throttleTime.js +2 -3
- package/dist/lib/hooks/usePrevious.js +4 -11
- package/dist/lib/hooks/useResolution.d.ts +1 -1
- package/dist/lib/hooks/useResolution.js +10 -24
- package/dist/lib/hooks/useSwipe.d.ts +1 -1
- package/dist/lib/hooks/useSwipe.js +22 -64
- package/dist/lib/index.d.ts +16 -9
- package/dist/lib/index.js +83 -102
- package/dist/lib/styles/base.css +1 -0
- package/package.json +106 -101
- package/styles/base.scss +150 -0
- package/styles/colors.css +53 -0
- package/CHANGELOG.md +0 -4051
- package/dist/es/components/Avatar/doc/i/img.png +0 -0
- package/dist/es/components/Badges/components/CounterBadge/CounterBadge.css +0 -54
- package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.css +0 -58
- package/dist/es/components/Badges/components/PriceBadge/PriceBadge.css +0 -119
- package/dist/es/components/Badges/components/PromoBadge/PromoBadge.css +0 -69
- package/dist/es/components/Badges/components/TimerBadge/TimerBadge.css +0 -60
- package/dist/es/components/Calendar/components/Day/Day.css +0 -243
- package/dist/es/components/Calendar/components/Month/Month.css +0 -135
- package/dist/es/components/Collapse/Collapse.css +0 -3
- package/dist/es/components/ListData/doc/i/img.png +0 -0
- package/dist/es/components/Selector/doc/Selector.example.css +0 -17
- package/dist/lib/components/Avatar/doc/i/img.png +0 -0
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.css +0 -54
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.js +0 -81
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.css +0 -58
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.js +0 -71
- package/dist/lib/components/Badges/components/PriceBadge/PriceBadge.css +0 -119
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.css +0 -69
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.js +0 -84
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.css +0 -60
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.js +0 -135
- package/dist/lib/components/Calendar/components/Day/Day.css +0 -243
- package/dist/lib/components/Calendar/components/Month/Month.css +0 -135
- package/dist/lib/components/Calendar/components/Month/Month.js +0 -127
- package/dist/lib/components/Collapse/Collapse.css +0 -3
- package/dist/lib/components/Collapse/Collapse.js +0 -141
- package/dist/lib/components/ListData/doc/i/img.png +0 -0
- package/dist/lib/components/Selector/doc/Selector.example.css +0 -17
- package/styles/base.less +0 -171
- /package/dist/es/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.d.ts +0 -0
- /package/dist/lib/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ChipColorsType, ChipIdType, IChipProps } from '../Chip';
|
|
3
|
-
import './ChipsDropdown.
|
|
3
|
+
import './ChipsDropdown.scss';
|
|
4
4
|
export interface IChipsDropdownProps {
|
|
5
5
|
moreTitle: string;
|
|
6
6
|
value: ChipIdType;
|
|
@@ -2,28 +2,24 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "core-js/modules/es.array.find.js";
|
|
4
4
|
import "core-js/modules/es.array.map.js";
|
|
5
|
-
import "core-js/modules/es.object.
|
|
6
|
-
import React from 'react';
|
|
5
|
+
import "core-js/modules/es.object.to-string.js";
|
|
6
|
+
import * as React from 'react';
|
|
7
7
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
8
|
-
import
|
|
9
|
-
import Chip, { ChipColors, ChipPropType } from "../Chip";
|
|
8
|
+
import Chip from "../Chip";
|
|
10
9
|
import "./ChipsDropdown.css";
|
|
11
10
|
var cn = cnCreate('mfui-chips-dropdown');
|
|
12
|
-
|
|
13
11
|
var ChipsDropdown = function ChipsDropdown(_ref) {
|
|
14
12
|
var color = _ref.color,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
moreTitle = _ref.moreTitle,
|
|
14
|
+
_ref$items = _ref.items,
|
|
15
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
16
|
+
value = _ref.value,
|
|
17
|
+
onClick = _ref.onClick,
|
|
18
|
+
dataAttrs = _ref.dataAttrs;
|
|
22
19
|
var _React$useState = React.useState(false),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
21
|
+
isDropdownOpen = _React$useState2[0],
|
|
22
|
+
setIsDropdownOpen = _React$useState2[1];
|
|
27
23
|
var dropdownRef = React.useRef(null);
|
|
28
24
|
var listRef = React.useRef(null);
|
|
29
25
|
var currentItem = React.useMemo(function () {
|
|
@@ -39,12 +35,10 @@ var ChipsDropdown = function ChipsDropdown(_ref) {
|
|
|
39
35
|
setIsDropdownOpen(false);
|
|
40
36
|
}
|
|
41
37
|
}, []);
|
|
42
|
-
|
|
43
38
|
var handleOpenItemList = function handleOpenItemList() {
|
|
44
39
|
setIsDropdownOpen(true);
|
|
45
40
|
document.addEventListener('mousedown', handleOutsideClick);
|
|
46
41
|
};
|
|
47
|
-
|
|
48
42
|
var handleItemClick = React.useCallback(function (item) {
|
|
49
43
|
return function (e) {
|
|
50
44
|
e.persist();
|
|
@@ -89,13 +83,4 @@ var ChipsDropdown = function ChipsDropdown(_ref) {
|
|
|
89
83
|
}, item.icon), !!(item === null || item === void 0 ? void 0 : item.children) && item.children);
|
|
90
84
|
}))));
|
|
91
85
|
};
|
|
92
|
-
|
|
93
|
-
ChipsDropdown.propTypes = {
|
|
94
|
-
moreTitle: PropTypes.string.isRequired,
|
|
95
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
96
|
-
items: PropTypes.arrayOf(PropTypes.shape(ChipPropType).isRequired).isRequired,
|
|
97
|
-
color: PropTypes.oneOf(Object.values(ChipColors)).isRequired,
|
|
98
|
-
onClick: PropTypes.func.isRequired,
|
|
99
|
-
dataAttrs: PropTypes.objectOf(PropTypes.object)
|
|
100
|
-
};
|
|
101
86
|
export default ChipsDropdown;
|
|
@@ -1,109 +1 @@
|
|
|
1
|
-
h1,
|
|
2
|
-
h2,
|
|
3
|
-
h3,
|
|
4
|
-
h4,
|
|
5
|
-
h5 {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
|
-
.mfui-content-area_background-color_transparent {
|
|
9
|
-
background-color: transparent;
|
|
10
|
-
}
|
|
11
|
-
.mfui-content-area_background-color_black {
|
|
12
|
-
background-color: var(--stcBlack);
|
|
13
|
-
}
|
|
14
|
-
.mfui-content-area_background-color_white {
|
|
15
|
-
background-color: var(--stcWhite);
|
|
16
|
-
}
|
|
17
|
-
.mfui-content-area_background-color_green {
|
|
18
|
-
background-color: var(--brandGreen);
|
|
19
|
-
}
|
|
20
|
-
.mfui-content-area_background-color_purple {
|
|
21
|
-
background-color: var(--brandPurple);
|
|
22
|
-
}
|
|
23
|
-
.mfui-content-area_background-color_spbSky0 {
|
|
24
|
-
background-color: var(--spbSky0);
|
|
25
|
-
}
|
|
26
|
-
.mfui-content-area_background-color_spbSky1 {
|
|
27
|
-
background-color: var(--spbSky1);
|
|
28
|
-
}
|
|
29
|
-
.mfui-content-area_background-color_spbSky2 {
|
|
30
|
-
background-color: var(--spbSky2);
|
|
31
|
-
}
|
|
32
|
-
.mfui-content-area__inner {
|
|
33
|
-
-webkit-box-sizing: content-box;
|
|
34
|
-
box-sizing: content-box;
|
|
35
|
-
max-width: 1440px;
|
|
36
|
-
margin: 0 auto;
|
|
37
|
-
padding-right: 80px;
|
|
38
|
-
padding-left: 80px;
|
|
39
|
-
}
|
|
40
|
-
@media screen and (max-width: 767px) {
|
|
41
|
-
.mfui-content-area__inner {
|
|
42
|
-
padding-right: 16px;
|
|
43
|
-
padding-left: 16px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
@media screen and (min-width: 768px) and (max-width: 1023px) {
|
|
47
|
-
.mfui-content-area__inner {
|
|
48
|
-
padding-right: 48px;
|
|
49
|
-
padding-left: 48px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
|
53
|
-
.mfui-content-area__inner {
|
|
54
|
-
padding-right: 64px;
|
|
55
|
-
padding-left: 64px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
@media screen and (max-width: 767px) {
|
|
59
|
-
.mfui-content-area__inner_disable-indents_mobile {
|
|
60
|
-
padding-right: 0;
|
|
61
|
-
padding-left: 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
@media screen and (max-width: 1023px) {
|
|
65
|
-
.mfui-content-area__inner_disable-indents_mobile-tablet {
|
|
66
|
-
padding-right: 0;
|
|
67
|
-
padding-left: 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
@media screen and (min-width: 768px) {
|
|
71
|
-
.mfui-content-area__inner_disable-indents_tablet-desktop {
|
|
72
|
-
padding-right: 0;
|
|
73
|
-
padding-left: 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
.mfui-content-area__inner_disable-indents_all {
|
|
77
|
-
padding-right: 0;
|
|
78
|
-
padding-left: 0;
|
|
79
|
-
}
|
|
80
|
-
@media screen and (max-width: 359px) {
|
|
81
|
-
.mfui-content-area__inner_indents_small-mobile {
|
|
82
|
-
padding-right: 8px;
|
|
83
|
-
padding-left: 8px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
.mfui-content-area__inner_background-color_transparent {
|
|
87
|
-
background-color: transparent;
|
|
88
|
-
}
|
|
89
|
-
.mfui-content-area__inner_background-color_black {
|
|
90
|
-
background-color: var(--stcBlack);
|
|
91
|
-
}
|
|
92
|
-
.mfui-content-area__inner_background-color_white {
|
|
93
|
-
background-color: var(--stcWhite);
|
|
94
|
-
}
|
|
95
|
-
.mfui-content-area__inner_background-color_green {
|
|
96
|
-
background-color: var(--brandGreen);
|
|
97
|
-
}
|
|
98
|
-
.mfui-content-area__inner_background-color_purple {
|
|
99
|
-
background-color: var(--brandPurple);
|
|
100
|
-
}
|
|
101
|
-
.mfui-content-area__inner_background-color_spbSky0 {
|
|
102
|
-
background-color: var(--spbSky0);
|
|
103
|
-
}
|
|
104
|
-
.mfui-content-area__inner_background-color_spbSky1 {
|
|
105
|
-
background-color: var(--spbSky1);
|
|
106
|
-
}
|
|
107
|
-
.mfui-content-area__inner_background-color_spbSky2 {
|
|
108
|
-
background-color: var(--spbSky2);
|
|
109
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-content-area_background-color_transparent{background-color:transparent}.mfui-content-area_background-color_black{background-color:var(--stcBlack)}.mfui-content-area_background-color_white{background-color:var(--stcWhite)}.mfui-content-area_background-color_green{background-color:var(--brandGreen)}.mfui-content-area_background-color_purple{background-color:var(--brandPurple)}.mfui-content-area_background-color_spbSky0{background-color:var(--spbSky0)}.mfui-content-area_background-color_spbSky1{background-color:var(--spbSky1)}.mfui-content-area_background-color_spbSky2{background-color:var(--spbSky2)}.mfui-content-area__inner{-webkit-box-sizing:content-box;box-sizing:content-box;margin:0 auto;max-width:1440px;padding-left:80px;padding-right:80px}@media screen and (max-width:767px){.mfui-content-area__inner{padding-left:16px;padding-right:16px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-content-area__inner{padding-left:48px;padding-right:48px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-content-area__inner{padding-left:64px;padding-right:64px}}@media screen and (max-width:767px){.mfui-content-area__inner_disable-indents_mobile{padding-left:0;padding-right:0}}@media screen and (max-width:1023px){.mfui-content-area__inner_disable-indents_mobile-tablet{padding-left:0;padding-right:0}}@media screen and (min-width:768px){.mfui-content-area__inner_disable-indents_tablet-desktop{padding-left:0;padding-right:0}}.mfui-content-area__inner_disable-indents_all{padding-left:0;padding-right:0}@media screen and (max-width:359px){.mfui-content-area__inner_indents_small-mobile{padding-left:8px;padding-right:8px}}.mfui-content-area__inner_background-color_transparent{background-color:transparent}.mfui-content-area__inner_background-color_black{background-color:var(--stcBlack)}.mfui-content-area__inner_background-color_white{background-color:var(--stcWhite)}.mfui-content-area__inner_background-color_green{background-color:var(--brandGreen)}.mfui-content-area__inner_background-color_purple{background-color:var(--brandPurple)}.mfui-content-area__inner_background-color_spbSky0{background-color:var(--spbSky0)}.mfui-content-area__inner_background-color_spbSky1{background-color:var(--spbSky1)}.mfui-content-area__inner_background-color_spbSky2{background-color:var(--spbSky2)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import './ContentArea.
|
|
2
|
+
import './ContentArea.scss';
|
|
3
3
|
declare const BACKGROUND_COLORS: {
|
|
4
4
|
readonly TRANSPARENT: "transparent";
|
|
5
5
|
readonly BLACK: "black";
|
|
@@ -10,7 +10,7 @@ declare const BACKGROUND_COLORS: {
|
|
|
10
10
|
readonly SPB_SKY_1: "spbSky1";
|
|
11
11
|
readonly SPB_SKY_2: "spbSky2";
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type BackgroundColorType = (typeof BACKGROUND_COLORS)[keyof typeof BACKGROUND_COLORS];
|
|
14
14
|
declare const DisableIndents: {
|
|
15
15
|
readonly MOBILE: "mobile";
|
|
16
16
|
readonly MOBILE_TABLET: "mobile-tablet";
|
|
@@ -20,8 +20,8 @@ declare const DisableIndents: {
|
|
|
20
20
|
declare const Indents: {
|
|
21
21
|
readonly SMALL_MOBILE: "small-mobile";
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
type DisableIndentsType = (typeof DisableIndents)[keyof typeof DisableIndents];
|
|
24
|
+
type IndentsType = (typeof Indents)[keyof typeof Indents];
|
|
25
25
|
export interface IConrentAreaProps {
|
|
26
26
|
/** Фоновый цвет внешнего контейнера */
|
|
27
27
|
outerBackgroundColor?: BackgroundColorType;
|
|
@@ -43,6 +43,7 @@ export interface IConrentAreaProps {
|
|
|
43
43
|
root?: Record<string, string>;
|
|
44
44
|
inner?: Record<string, string>;
|
|
45
45
|
};
|
|
46
|
+
children: React.ReactNode;
|
|
46
47
|
}
|
|
47
48
|
declare const ContentArea: React.FC<IConrentAreaProps>;
|
|
48
49
|
export default ContentArea;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import "core-js/modules/es.object.values.js";
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
5
|
-
import * as PropTypes from 'prop-types';
|
|
6
4
|
import "./ContentArea.css";
|
|
7
5
|
var BACKGROUND_COLORS = {
|
|
8
6
|
TRANSPARENT: 'transparent',
|
|
@@ -24,18 +22,17 @@ var Indents = {
|
|
|
24
22
|
SMALL_MOBILE: 'small-mobile'
|
|
25
23
|
};
|
|
26
24
|
var cn = cnCreate('mfui-content-area');
|
|
27
|
-
|
|
28
25
|
var ContentArea = function ContentArea(_ref) {
|
|
29
26
|
var _ref$outerBackgroundC = _ref.outerBackgroundColor,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
outerBackgroundColor = _ref$outerBackgroundC === void 0 ? 'transparent' : _ref$outerBackgroundC,
|
|
28
|
+
_ref$innerBackgroundC = _ref.innerBackgroundColor,
|
|
29
|
+
innerBackgroundColor = _ref$innerBackgroundC === void 0 ? 'transparent' : _ref$innerBackgroundC,
|
|
30
|
+
disableIndents = _ref.disableIndents,
|
|
31
|
+
indents = _ref.indents,
|
|
32
|
+
children = _ref.children,
|
|
33
|
+
className = _ref.className,
|
|
34
|
+
classes = _ref.classes,
|
|
35
|
+
dataAttrs = _ref.dataAttrs;
|
|
39
36
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
40
37
|
className: cn({
|
|
41
38
|
'background-color': outerBackgroundColor
|
|
@@ -48,20 +45,4 @@ var ContentArea = function ContentArea(_ref) {
|
|
|
48
45
|
}, classes === null || classes === void 0 ? void 0 : classes.inner)
|
|
49
46
|
}), children));
|
|
50
47
|
};
|
|
51
|
-
|
|
52
|
-
ContentArea.propTypes = {
|
|
53
|
-
disableIndents: PropTypes.oneOf(Object.values(DisableIndents)),
|
|
54
|
-
indents: PropTypes.oneOf(Object.values(Indents)),
|
|
55
|
-
className: PropTypes.string,
|
|
56
|
-
classes: PropTypes.shape({
|
|
57
|
-
root: PropTypes.string,
|
|
58
|
-
inner: PropTypes.string
|
|
59
|
-
}),
|
|
60
|
-
dataAttrs: PropTypes.shape({
|
|
61
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
62
|
-
inner: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
63
|
-
}),
|
|
64
|
-
outerBackgroundColor: PropTypes.oneOf(Object.values(BACKGROUND_COLORS)),
|
|
65
|
-
innerBackgroundColor: PropTypes.oneOf(Object.values(BACKGROUND_COLORS))
|
|
66
|
-
};
|
|
67
48
|
export default ContentArea;
|
|
@@ -1,103 +1 @@
|
|
|
1
|
-
.mfui-content-view {
|
|
2
|
-
min-width: 240px;
|
|
3
|
-
padding: 0 16px;
|
|
4
|
-
color: var(--content);
|
|
5
|
-
text-align: center;
|
|
6
|
-
}
|
|
7
|
-
.mfui-content-view__image {
|
|
8
|
-
display: inline-block;
|
|
9
|
-
max-width: 144px;
|
|
10
|
-
margin-bottom: 24px;
|
|
11
|
-
vertical-align: top;
|
|
12
|
-
}
|
|
13
|
-
.mfui-content-view__bg-image {
|
|
14
|
-
display: inline-block;
|
|
15
|
-
width: 144px;
|
|
16
|
-
height: 144px;
|
|
17
|
-
margin-bottom: 24px;
|
|
18
|
-
vertical-align: top;
|
|
19
|
-
background-repeat: no-repeat;
|
|
20
|
-
background-size: 100%;
|
|
21
|
-
}
|
|
22
|
-
.mfui-content-view__bg-image_type_waiting {
|
|
23
|
-
background-image: url('./i/waiting.png');
|
|
24
|
-
}
|
|
25
|
-
.mfui-content-view__bg-image_type_error {
|
|
26
|
-
background-image: url('./i/error.png');
|
|
27
|
-
}
|
|
28
|
-
.mfui-content-view__bg-image_type_submit {
|
|
29
|
-
background-image: url('./i/submit.png');
|
|
30
|
-
}
|
|
31
|
-
.mfui-content-view__bg-image_type_success {
|
|
32
|
-
background-image: url('./i/success.png');
|
|
33
|
-
}
|
|
34
|
-
.mfui-content-view__bg-image_type_fail {
|
|
35
|
-
background-image: url('./i/fail.png');
|
|
36
|
-
}
|
|
37
|
-
.mfui-content-view__bg-image_type_update {
|
|
38
|
-
background-image: url('./i/update.png');
|
|
39
|
-
}
|
|
40
|
-
.mfui-content-view__bg-image_type_alarm {
|
|
41
|
-
background-image: url('./i/alarm.png');
|
|
42
|
-
}
|
|
43
|
-
.mfui-content-view__bg-image_type_empty {
|
|
44
|
-
background-image: url('./i/empty.png');
|
|
45
|
-
}
|
|
46
|
-
.mfui-content-view__bg-image_type_searchNoResult {
|
|
47
|
-
background-image: url('./i/searchNoResult.png');
|
|
48
|
-
}
|
|
49
|
-
.mfui-content-view__title {
|
|
50
|
-
font-weight: 500;
|
|
51
|
-
font-size: 18px;
|
|
52
|
-
line-height: 24px;
|
|
53
|
-
}
|
|
54
|
-
@media screen and (min-width: 768px) {
|
|
55
|
-
.mfui-content-view__title {
|
|
56
|
-
font-size: 20px;
|
|
57
|
-
line-height: 28px;
|
|
58
|
-
letter-spacing: 0.5px;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.mfui-content-view__text {
|
|
62
|
-
font-size: 15px;
|
|
63
|
-
line-height: 24px;
|
|
64
|
-
font-weight: 400;
|
|
65
|
-
margin-top: 4px;
|
|
66
|
-
}
|
|
67
|
-
.mfui-content-view__buttons {
|
|
68
|
-
display: -webkit-box;
|
|
69
|
-
display: -ms-flexbox;
|
|
70
|
-
display: flex;
|
|
71
|
-
-webkit-box-orient: vertical;
|
|
72
|
-
-webkit-box-direction: normal;
|
|
73
|
-
-ms-flex-direction: column;
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
gap: 12px;
|
|
76
|
-
-webkit-box-align: center;
|
|
77
|
-
-ms-flex-align: center;
|
|
78
|
-
align-items: center;
|
|
79
|
-
padding-top: 32px;
|
|
80
|
-
}
|
|
81
|
-
.mfui-content-view_fullscreen {
|
|
82
|
-
display: -webkit-box;
|
|
83
|
-
display: -ms-flexbox;
|
|
84
|
-
display: flex;
|
|
85
|
-
-webkit-box-orient: vertical;
|
|
86
|
-
-webkit-box-direction: normal;
|
|
87
|
-
-ms-flex-direction: column;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
-webkit-box-align: center;
|
|
90
|
-
-ms-flex-align: center;
|
|
91
|
-
align-items: center;
|
|
92
|
-
-webkit-box-pack: center;
|
|
93
|
-
-ms-flex-pack: center;
|
|
94
|
-
justify-content: center;
|
|
95
|
-
min-height: 100%;
|
|
96
|
-
}
|
|
97
|
-
.mfui-content-view_fullscreen .mfui-content-view__content {
|
|
98
|
-
margin-top: auto;
|
|
99
|
-
}
|
|
100
|
-
.mfui-content-view_fullscreen .mfui-content-view__buttons {
|
|
101
|
-
margin-top: auto;
|
|
102
|
-
padding-bottom: 24px;
|
|
103
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-content-view{color:var(--content);min-width:240px;padding:0 16px;text-align:center}.mfui-content-view__image{max-width:144px}.mfui-content-view__bg-image,.mfui-content-view__image{display:inline-block;margin-bottom:24px;vertical-align:top}.mfui-content-view__bg-image{background-repeat:no-repeat;background-size:100%;height:144px;width:144px}.mfui-content-view__bg-image_type_waiting{background-image:url(i/waiting.png)}.mfui-content-view__bg-image_type_error{background-image:url(i/error.png)}.mfui-content-view__bg-image_type_submit{background-image:url(i/submit.png)}.mfui-content-view__bg-image_type_success{background-image:url(i/success.png)}.mfui-content-view__bg-image_type_fail{background-image:url(i/fail.png)}.mfui-content-view__bg-image_type_update{background-image:url(i/update.png)}.mfui-content-view__bg-image_type_alarm{background-image:url(i/alarm.png)}.mfui-content-view__bg-image_type_empty{background-image:url(i/empty.png)}.mfui-content-view__bg-image_type_searchNoResult{background-image:url(i/searchNoResult.png)}.mfui-content-view__title{font-size:18px;font-weight:500;line-height:24px}@media screen and (min-width:768px){.mfui-content-view__title{font-size:20px;letter-spacing:.5px;line-height:28px}}.mfui-content-view__text{font-size:15px;font-weight:400;line-height:24px;margin-top:4px}.mfui-content-view__buttons{gap:12px;padding-top:32px}.mfui-content-view__buttons,.mfui-content-view_fullscreen{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-content-view_fullscreen{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:100%}.mfui-content-view_fullscreen .mfui-content-view__content{margin-top:auto}.mfui-content-view_fullscreen .mfui-content-view__buttons{margin-top:auto;padding-bottom:24px}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import './ContentView.
|
|
3
|
-
|
|
2
|
+
import './ContentView.scss';
|
|
3
|
+
type ElementType = {
|
|
4
4
|
/** Текст */
|
|
5
5
|
text?: string;
|
|
6
6
|
/** Атрибут href */
|
|
@@ -45,6 +45,7 @@ export interface IContentViewProps {
|
|
|
45
45
|
link?: Record<string, string>;
|
|
46
46
|
bgImage?: Record<string, string>;
|
|
47
47
|
};
|
|
48
|
+
children?: React.ReactNode;
|
|
48
49
|
}
|
|
49
50
|
declare const ContentView: React.FC<IContentViewProps>;
|
|
50
51
|
export default ContentView;
|
|
@@ -2,25 +2,23 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import "core-js/modules/es.string.link.js";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { cnCreate, convert, filterDataAttrs, titleConvertConfig } from '@megafon/ui-helpers';
|
|
5
|
-
import * as PropTypes from 'prop-types';
|
|
6
5
|
import Button from "../Button/Button";
|
|
7
6
|
import "./ContentView.css";
|
|
8
7
|
var cn = cnCreate('mfui-content-view');
|
|
9
|
-
|
|
10
8
|
var ContentView = function ContentView(_ref) {
|
|
11
9
|
var className = _ref.className,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
_ref$classes = _ref.classes,
|
|
11
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
12
|
+
title = _ref.title,
|
|
13
|
+
type = _ref.type,
|
|
14
|
+
_ref$alt = _ref.alt,
|
|
15
|
+
alt = _ref$alt === void 0 ? '' : _ref$alt,
|
|
16
|
+
src = _ref.src,
|
|
17
|
+
buttonParams = _ref.buttonParams,
|
|
18
|
+
linkParams = _ref.linkParams,
|
|
19
|
+
isFullscreen = _ref.isFullscreen,
|
|
20
|
+
dataAttrs = _ref.dataAttrs,
|
|
21
|
+
children = _ref.children;
|
|
24
22
|
var showButtons = !!(buttonParams === null || buttonParams === void 0 ? void 0 : buttonParams.text) || !!(linkParams === null || linkParams === void 0 ? void 0 : linkParams.text);
|
|
25
23
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
26
24
|
className: cn({
|
|
@@ -65,36 +63,4 @@ var ContentView = function ContentView(_ref) {
|
|
|
65
63
|
}
|
|
66
64
|
}, linkParams.text)));
|
|
67
65
|
};
|
|
68
|
-
|
|
69
|
-
ContentView.propTypes = {
|
|
70
|
-
className: PropTypes.string,
|
|
71
|
-
classes: PropTypes.shape({
|
|
72
|
-
title: PropTypes.string,
|
|
73
|
-
button: PropTypes.string,
|
|
74
|
-
link: PropTypes.string,
|
|
75
|
-
bgImage: PropTypes.string
|
|
76
|
-
}),
|
|
77
|
-
title: PropTypes.string.isRequired,
|
|
78
|
-
type: PropTypes.oneOf(['waiting', 'error', 'submit', 'success', 'fail', 'update', 'alarm', 'empty', 'searchNoResult']),
|
|
79
|
-
alt: PropTypes.string,
|
|
80
|
-
src: PropTypes.string,
|
|
81
|
-
buttonParams: PropTypes.shape({
|
|
82
|
-
text: PropTypes.string,
|
|
83
|
-
href: PropTypes.string,
|
|
84
|
-
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
|
|
85
|
-
onClick: PropTypes.func
|
|
86
|
-
}),
|
|
87
|
-
linkParams: PropTypes.shape({
|
|
88
|
-
text: PropTypes.string,
|
|
89
|
-
href: PropTypes.string,
|
|
90
|
-
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
|
|
91
|
-
onClick: PropTypes.func
|
|
92
|
-
}),
|
|
93
|
-
isFullscreen: PropTypes.bool,
|
|
94
|
-
dataAttrs: PropTypes.shape({
|
|
95
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
96
|
-
button: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
97
|
-
link: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
98
|
-
})
|
|
99
|
-
};
|
|
100
66
|
export default ContentView;
|
|
@@ -1,123 +1 @@
|
|
|
1
|
-
h1,
|
|
2
|
-
h2,
|
|
3
|
-
h3,
|
|
4
|
-
h4,
|
|
5
|
-
h5 {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
|
-
.mfui-counter {
|
|
9
|
-
display: -webkit-box;
|
|
10
|
-
display: -ms-flexbox;
|
|
11
|
-
display: flex;
|
|
12
|
-
-webkit-box-pack: justify;
|
|
13
|
-
-ms-flex-pack: justify;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
-webkit-box-sizing: border-box;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
width: 120px;
|
|
18
|
-
height: 32px;
|
|
19
|
-
}
|
|
20
|
-
.mfui-counter__btn {
|
|
21
|
-
display: -webkit-box;
|
|
22
|
-
display: -ms-flexbox;
|
|
23
|
-
display: flex;
|
|
24
|
-
-webkit-box-flex: 1;
|
|
25
|
-
-ms-flex-positive: 1;
|
|
26
|
-
flex-grow: 1;
|
|
27
|
-
-ms-flex-negative: 0;
|
|
28
|
-
flex-shrink: 0;
|
|
29
|
-
-webkit-box-align: center;
|
|
30
|
-
-ms-flex-align: center;
|
|
31
|
-
align-items: center;
|
|
32
|
-
-webkit-box-pack: center;
|
|
33
|
-
-ms-flex-pack: center;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
-webkit-box-sizing: border-box;
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
width: 100%;
|
|
38
|
-
max-width: 32px;
|
|
39
|
-
height: 100%;
|
|
40
|
-
margin: 0;
|
|
41
|
-
padding: 0;
|
|
42
|
-
border: 1px solid var(--spbSky2);
|
|
43
|
-
font-size: 20px;
|
|
44
|
-
text-decoration: none;
|
|
45
|
-
background-color: var(--base);
|
|
46
|
-
outline: none;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
-webkit-appearance: none;
|
|
49
|
-
-moz-appearance: none;
|
|
50
|
-
appearance: none;
|
|
51
|
-
fill: var(--content);
|
|
52
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
53
|
-
}
|
|
54
|
-
.mfui-counter__btn:hover {
|
|
55
|
-
background-color: var(--spbSky0);
|
|
56
|
-
}
|
|
57
|
-
.mfui-counter__btn:disabled {
|
|
58
|
-
background-color: var(--spbSky1);
|
|
59
|
-
cursor: default;
|
|
60
|
-
}
|
|
61
|
-
.mfui-counter__btn:disabled .mfui-counter__icon {
|
|
62
|
-
fill: var(--spbSky2);
|
|
63
|
-
}
|
|
64
|
-
.mfui-counter__btn_left {
|
|
65
|
-
border-top-left-radius: 50px;
|
|
66
|
-
border-bottom-left-radius: 50px;
|
|
67
|
-
}
|
|
68
|
-
.mfui-counter__btn_right {
|
|
69
|
-
border-top-right-radius: 50px;
|
|
70
|
-
border-bottom-right-radius: 50px;
|
|
71
|
-
}
|
|
72
|
-
.mfui-counter__icon {
|
|
73
|
-
display: block;
|
|
74
|
-
width: 20px;
|
|
75
|
-
height: 20px;
|
|
76
|
-
}
|
|
77
|
-
.mfui-counter__input-box {
|
|
78
|
-
display: -webkit-box;
|
|
79
|
-
display: -ms-flexbox;
|
|
80
|
-
display: flex;
|
|
81
|
-
-webkit-box-align: center;
|
|
82
|
-
-ms-flex-align: center;
|
|
83
|
-
align-items: center;
|
|
84
|
-
-webkit-box-sizing: border-box;
|
|
85
|
-
box-sizing: border-box;
|
|
86
|
-
height: 100%;
|
|
87
|
-
border-top: 1px solid var(--spbSky2);
|
|
88
|
-
border-bottom: 1px solid var(--spbSky2);
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
}
|
|
91
|
-
.mfui-counter__input {
|
|
92
|
-
-webkit-box-sizing: border-box;
|
|
93
|
-
box-sizing: border-box;
|
|
94
|
-
width: 100%;
|
|
95
|
-
height: 100%;
|
|
96
|
-
margin: 0;
|
|
97
|
-
padding: 0;
|
|
98
|
-
border: none;
|
|
99
|
-
border-radius: 0;
|
|
100
|
-
overflow: auto;
|
|
101
|
-
color: var(--content);
|
|
102
|
-
text-align: center;
|
|
103
|
-
background: var(--base);
|
|
104
|
-
outline: none;
|
|
105
|
-
-webkit-box-shadow: none;
|
|
106
|
-
box-shadow: none;
|
|
107
|
-
cursor: text;
|
|
108
|
-
-webkit-appearance: none;
|
|
109
|
-
-moz-appearance: none;
|
|
110
|
-
appearance: none;
|
|
111
|
-
}
|
|
112
|
-
.mfui-counter_disabled .mfui-counter__btn {
|
|
113
|
-
background-color: var(--spbSky1);
|
|
114
|
-
cursor: default;
|
|
115
|
-
}
|
|
116
|
-
.mfui-counter_disabled .mfui-counter__input {
|
|
117
|
-
background-color: var(--spbSky1);
|
|
118
|
-
cursor: default;
|
|
119
|
-
color: var(--spbSky3);
|
|
120
|
-
}
|
|
121
|
-
.mfui-counter_disabled .mfui-counter__icon {
|
|
122
|
-
fill: var(--spbSky2);
|
|
123
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-counter{-webkit-box-pack:justify;-ms-flex-pack:justify;height:32px;justify-content:space-between;width:120px}.mfui-counter,.mfui-counter__btn{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-counter__btn{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--base);border:1px solid var(--spbSky2);cursor:pointer;font-size:20px;height:100%;justify-content:center;margin:0;max-width:32px;outline:none;padding:0;text-decoration:none;width:100%;fill:var(--content);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-counter__btn:hover{background-color:var(--spbSky0)}.mfui-counter__btn:disabled{background-color:var(--spbSky1);cursor:default}.mfui-counter__btn:disabled .mfui-counter__icon{fill:var(--spbSky2)}.mfui-counter__btn_left{border-bottom-left-radius:50px;border-top-left-radius:50px}.mfui-counter__btn_right{border-bottom-right-radius:50px;border-top-right-radius:50px}.mfui-counter__icon{display:block;height:20px;width:20px}.mfui-counter__input-box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid var(--spbSky2);border-top:1px solid var(--spbSky2);overflow:hidden}.mfui-counter__input,.mfui-counter__input-box{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%}.mfui-counter__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--base);border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;color:var(--content);cursor:text;margin:0;outline:none;overflow:auto;padding:0;text-align:center;width:100%}.mfui-counter_disabled .mfui-counter__btn,.mfui-counter_disabled .mfui-counter__input{background-color:var(--spbSky1);cursor:default}.mfui-counter_disabled .mfui-counter__input{color:var(--spbSky3)}.mfui-counter_disabled .mfui-counter__icon{fill:var(--spbSky2)}
|