@megafon/ui-core 6.2.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/colors/ColorItem/ColorItem.css +1 -45
- package/dist/es/colors/ColorItem/ColorItem.d.ts +2 -2
- package/dist/es/colors/ColorItem/ColorItem.js +5 -7
- package/dist/es/colors/Colors.css +1 -233
- package/dist/es/colors/Colors.d.ts +1 -1
- package/dist/es/colors/Colors.js +33 -55
- package/dist/es/colors/colorsData.d.ts +4 -4
- package/dist/es/components/Accordion/Accordion.css +1 -89
- package/dist/es/components/Accordion/Accordion.d.ts +2 -1
- package/dist/es/components/Accordion/Accordion.js +22 -65
- package/dist/es/components/Avatar/Avatar.css +1 -52
- package/dist/es/components/Avatar/Avatar.d.ts +1 -1
- package/dist/es/components/Avatar/Avatar.js +9 -27
- package/dist/es/components/Badges/CounterBadge/CounterBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/CounterBadge/CounterBadge.d.ts +2 -2
- package/dist/es/components/Badges/{components/CounterBadge → CounterBadge}/CounterBadge.js +10 -28
- package/dist/es/components/Badges/NotificationBadge/NotificationBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/NotificationBadge/NotificationBadge.d.ts +3 -3
- package/dist/es/components/Badges/{components/NotificationBadge → NotificationBadge}/NotificationBadge.js +8 -22
- package/dist/es/components/Badges/PriceBadge/PriceBadge.css +1 -0
- package/dist/es/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.d.ts +4 -4
- package/dist/es/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.js +11 -54
- package/dist/es/components/Badges/PromoBadge/PromoBadge.css +1 -0
- package/dist/es/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.d.ts +4 -4
- package/dist/es/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.js +9 -23
- package/dist/es/components/Badges/TimerBadge/TimerBadge.css +1 -0
- package/dist/{lib/components/Badges/components → es/components/Badges}/TimerBadge/TimerBadge.d.ts +2 -2
- package/dist/es/components/Badges/{components/TimerBadge → TimerBadge}/TimerBadge.js +22 -46
- package/dist/es/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.js +5 -32
- package/dist/es/components/Banner/Banner.css +1 -195
- package/dist/es/components/Banner/Banner.d.ts +5 -4
- package/dist/es/components/Banner/Banner.js +82 -130
- package/dist/es/components/Banner/BannerDot.css +1 -69
- package/dist/es/components/Banner/BannerDot.d.ts +1 -1
- package/dist/es/components/Banner/BannerDot.js +6 -22
- package/dist/es/components/Banner/slidesSettings.d.ts +4 -2
- package/dist/es/components/Banner/slidesSettings.js +3 -6
- package/dist/es/components/Button/Button.css +1 -814
- package/dist/es/components/Button/Button.d.ts +7 -6
- package/dist/es/components/Button/Button.js +44 -104
- package/dist/es/components/Calendar/Calendar.css +1 -24
- package/dist/es/components/Calendar/Calendar.d.ts +4 -4
- package/dist/es/components/Calendar/Calendar.js +75 -144
- package/dist/es/components/Calendar/components/_Day/Day.css +1 -0
- package/dist/es/components/Calendar/components/{Day → _Day}/Day.d.ts +4 -4
- package/dist/es/components/Calendar/components/{Day → _Day}/Day.js +21 -53
- package/dist/es/components/Calendar/components/_Month/Month.css +1 -0
- package/dist/es/components/Calendar/components/{Month → _Month}/Month.d.ts +3 -2
- package/dist/es/components/Calendar/components/{Month → _Month}/Month.js +11 -36
- package/dist/es/components/Caption/Caption.css +1 -48
- package/dist/es/components/Caption/Caption.d.ts +4 -2
- package/dist/es/components/Caption/Caption.js +11 -25
- package/dist/es/components/Carousel/Carousel.css +1 -215
- package/dist/es/components/Carousel/Carousel.d.ts +11 -10
- package/dist/es/components/Carousel/Carousel.js +135 -162
- package/dist/es/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
- package/dist/es/components/Carousel/checkBreakpointsPropTypes.js +1 -4
- package/dist/es/components/Carousel/useGradient.d.ts +1 -1
- package/dist/es/components/Carousel/useGradient.js +9 -13
- package/dist/es/components/Checkbox/Checkbox.css +1 -150
- package/dist/es/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/es/components/Checkbox/Checkbox.js +21 -50
- package/dist/es/components/Chips/Chip.css +1 -132
- package/dist/es/components/Chips/Chip.d.ts +6 -26
- package/dist/es/components/Chips/Chip.js +17 -42
- package/dist/es/components/Chips/Chips.css +1 -19
- package/dist/es/components/Chips/Chips.d.ts +2 -2
- package/dist/es/components/Chips/Chips.js +32 -56
- package/dist/es/components/Chips/components/ChipsDropdown.css +1 -106
- package/dist/es/components/Chips/components/ChipsDropdown.d.ts +2 -2
- package/dist/es/components/Chips/components/ChipsDropdown.js +12 -27
- package/dist/es/components/ContentArea/ContentArea.css +1 -109
- package/dist/es/components/ContentArea/ContentArea.d.ts +5 -4
- package/dist/es/components/ContentArea/ContentArea.js +9 -28
- package/dist/es/components/ContentView/ContentView.css +1 -103
- package/dist/es/components/ContentView/ContentView.d.ts +3 -2
- package/dist/es/components/ContentView/ContentView.js +12 -46
- package/dist/es/components/Counter/Counter.css +1 -123
- package/dist/es/components/Counter/Counter.d.ts +1 -1
- package/dist/es/components/Counter/Counter.js +20 -55
- package/dist/es/components/Grid/Grid.css +1 -102
- package/dist/es/components/Grid/Grid.d.ts +1 -1
- package/dist/es/components/Grid/Grid.js +8 -24
- package/dist/es/components/Grid/GridColumn.css +1 -3102
- package/dist/es/components/Grid/GridColumn.d.ts +2 -2
- package/dist/es/components/Grid/GridColumn.js +33 -62
- package/dist/es/components/Header/Header.css +1 -122
- package/dist/es/components/Header/Header.d.ts +3 -1
- package/dist/es/components/Header/Header.js +13 -28
- package/dist/es/components/Link/Link.d.ts +2 -2
- package/dist/es/components/Link/Link.js +9 -25
- package/dist/es/components/List/List.css +1 -66
- package/dist/es/components/List/List.d.ts +2 -1
- package/dist/es/components/List/List.js +8 -18
- package/dist/es/components/List/ListItem.css +1 -6
- package/dist/es/components/List/ListItem.d.ts +2 -1
- package/dist/es/components/List/ListItem.js +1 -7
- package/dist/es/components/ListData/ListData.css +1 -162
- package/dist/es/components/ListData/ListData.d.ts +6 -34
- package/dist/es/components/ListData/ListData.js +22 -65
- package/dist/es/components/ListData/ListDataGroup.css +1 -15
- package/dist/es/components/ListData/ListDataGroup.d.ts +4 -4
- package/dist/es/components/ListData/ListDataGroup.js +29 -74
- package/dist/es/components/ListData/components/ListDataSortable.css +1 -79
- package/dist/es/components/ListData/components/ListDataSortable.d.ts +4 -4
- package/dist/es/components/ListData/components/ListDataSortable.js +21 -42
- package/dist/es/components/ListData/helpers.js +1 -8
- package/dist/es/components/Logo/Logo.css +1 -43
- package/dist/es/components/Logo/Logo.d.ts +1 -1
- package/dist/es/components/Logo/Logo.js +9 -25
- package/dist/es/components/Modal/Modal.css +1 -0
- package/dist/es/components/Modal/Modal.d.ts +106 -0
- package/dist/es/components/Modal/Modal.js +278 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.d.ts +8 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.js +168 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +1 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.d.ts +8 -0
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.js +32 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +1 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +12 -0
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +114 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +1 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +8 -0
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +55 -0
- package/dist/es/components/Modal/mocks.d.ts +3 -0
- package/dist/es/components/Modal/mocks.js +79 -0
- package/dist/es/components/Modal/types.d.ts +27 -0
- package/dist/es/components/Modal/types.js +1 -0
- package/dist/es/components/Modal/utils/utils.d.ts +18 -0
- package/dist/es/components/Modal/utils/utils.js +66 -0
- package/dist/es/components/NavArrow/NavArrow.css +1 -63
- package/dist/es/components/NavArrow/NavArrow.d.ts +3 -3
- package/dist/es/components/NavArrow/NavArrow.js +8 -28
- package/dist/es/components/Notification/Notification.css +1 -350
- package/dist/es/components/Notification/Notification.d.ts +5 -4
- package/dist/es/components/Notification/Notification.js +61 -131
- package/dist/es/components/Pagination/Pagination.css +1 -5
- package/dist/es/components/Pagination/Pagination.d.ts +4 -3
- package/dist/es/components/Pagination/Pagination.js +7 -22
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +1 -62
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +5 -4
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +10 -26
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -10
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +3 -2
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -22
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +1 -17
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +3 -2
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +7 -23
- package/dist/es/components/Pagination/helpers.js +0 -3
- package/dist/es/components/Pagination/usePagination.d.ts +2 -1
- package/dist/es/components/Pagination/usePagination.js +6 -18
- package/dist/es/components/Paragraph/Paragraph.css +1 -43
- package/dist/es/components/Paragraph/Paragraph.d.ts +4 -2
- package/dist/es/components/Paragraph/Paragraph.js +9 -22
- package/dist/es/components/Preloader/Preloader.css +1 -224
- package/dist/es/components/Preloader/Preloader.d.ts +3 -3
- package/dist/es/components/Preloader/Preloader.js +16 -36
- package/dist/es/components/RadioButton/RadioButton.css +1 -120
- package/dist/es/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/es/components/RadioButton/RadioButton.js +18 -50
- package/dist/es/components/Row/Row.css +1 -238
- package/dist/es/components/Row/Row.d.ts +2 -2
- package/dist/es/components/Row/Row.js +23 -48
- package/dist/es/components/ScrollBar/ScrollBar.css +1 -0
- package/dist/es/components/ScrollBar/ScrollBar.d.ts +34 -0
- package/dist/es/components/ScrollBar/ScrollBar.js +86 -0
- package/dist/es/components/Search/Search.css +1 -453
- package/dist/es/components/Search/Search.d.ts +7 -8
- package/dist/es/components/Search/Search.js +54 -149
- package/dist/es/components/Select/Select.css +1 -389
- package/dist/es/components/Select/Select.d.ts +8 -84
- package/dist/es/components/Select/Select.js +52 -142
- package/dist/es/components/Select/reducer/selectReducer.d.ts +1 -1
- package/dist/es/components/Select/reducer/selectReducer.js +18 -32
- package/dist/es/components/Selector/Selector.css +1 -132
- package/dist/es/components/Selector/Selector.d.ts +1 -1
- package/dist/es/components/Selector/Selector.js +23 -50
- package/dist/es/components/Sliders/Slider/Slider.css +1 -128
- package/dist/es/components/Sliders/Slider/Slider.d.ts +1 -1
- package/dist/es/components/Sliders/Slider/Slider.js +25 -56
- package/dist/es/components/Sliders/SliderRange/SliderRange.css +1 -169
- package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRange/SliderRange.js +33 -80
- package/dist/es/components/Sliders/SliderRange/helpers.js +0 -2
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +1 -219
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.js +36 -85
- package/dist/es/components/Sliders/SliderRatio/helpers.js +1 -1
- package/dist/es/components/Sliders/SliderRatio/types.d.ts +1 -1
- package/dist/es/components/Sliders/SliderRatio/types.js +0 -1
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +1 -84
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +11 -35
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +1 -15
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +6 -20
- package/dist/es/components/Sliders/components/SliderScale/helpers.js +12 -16
- package/dist/es/components/Sliders/helpers.js +1 -5
- package/dist/es/components/Snackbar/Snackbar.css +1 -220
- package/dist/es/components/Snackbar/Snackbar.d.ts +3 -3
- package/dist/es/components/Snackbar/Snackbar.js +44 -82
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.css +1 -66
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.js +9 -17
- package/dist/es/components/Switcher/Switcher.css +1 -160
- package/dist/es/components/Switcher/Switcher.d.ts +2 -1
- package/dist/es/components/Switcher/Switcher.js +17 -39
- package/dist/es/components/Tabs/Tab.js +0 -14
- package/dist/es/components/Tabs/Tabs.css +1 -306
- package/dist/es/components/Tabs/Tabs.d.ts +6 -5
- package/dist/es/components/Tabs/Tabs.js +110 -166
- package/dist/es/components/TextField/TextField.css +1 -343
- package/dist/es/components/TextField/TextField.d.ts +3 -3
- package/dist/es/components/TextField/TextField.js +85 -193
- package/dist/es/components/TextField/utils/countGraphemes.js +10 -18
- package/dist/es/components/TextLink/TextLink.css +1 -50
- package/dist/es/components/TextLink/TextLink.d.ts +2 -2
- package/dist/es/components/TextLink/TextLink.js +14 -27
- package/dist/es/components/Tile/Tile.css +1 -43
- package/dist/es/components/Tile/Tile.d.ts +7 -5
- package/dist/es/components/Tile/Tile.js +16 -36
- package/dist/es/components/Tooltip/Tooltip.css +1 -335
- package/dist/es/components/Tooltip/Tooltip.d.ts +9 -8
- package/dist/es/components/Tooltip/Tooltip.js +58 -139
- package/dist/es/components/_Collapse/Collapse.css +1 -0
- package/dist/{lib/components/Collapse → es/components/_Collapse}/Collapse.d.ts +3 -3
- package/dist/es/components/{Collapse → _Collapse}/Collapse.js +25 -62
- package/dist/es/hooks/usePrevious.js +0 -2
- package/dist/es/hooks/useResolution.d.ts +1 -1
- package/dist/es/hooks/useResolution.js +5 -11
- package/dist/es/hooks/useSwipe.d.ts +1 -1
- package/dist/es/hooks/useSwipe.js +17 -44
- package/dist/es/index.d.ts +16 -9
- package/dist/es/index.js +17 -10
- package/dist/es/styles/base.css +1 -0
- package/dist/lib/colors/ColorItem/ColorItem.css +1 -45
- package/dist/lib/colors/ColorItem/ColorItem.d.ts +2 -2
- package/dist/lib/colors/ColorItem/ColorItem.js +9 -18
- package/dist/lib/colors/Colors.css +1 -233
- package/dist/lib/colors/Colors.d.ts +1 -1
- package/dist/lib/colors/Colors.js +38 -80
- package/dist/lib/colors/colorsData.d.ts +4 -4
- package/dist/lib/colors/colorsData.js +1 -2
- package/dist/lib/components/Accordion/Accordion.css +1 -89
- package/dist/lib/components/Accordion/Accordion.d.ts +2 -1
- package/dist/lib/components/Accordion/Accordion.js +27 -82
- package/dist/lib/components/Avatar/Avatar.css +1 -52
- package/dist/lib/components/Avatar/Avatar.d.ts +1 -1
- package/dist/lib/components/Avatar/Avatar.js +14 -42
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/CounterBadge/CounterBadge.d.ts +2 -2
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +52 -0
- package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/NotificationBadge/NotificationBadge.d.ts +3 -3
- package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.js +44 -0
- package/dist/lib/components/Badges/PriceBadge/PriceBadge.css +1 -0
- package/dist/lib/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.d.ts +4 -4
- package/dist/lib/components/Badges/{components/PriceBadge → PriceBadge}/PriceBadge.js +20 -76
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +1 -0
- package/dist/lib/components/Badges/{components/PromoBadge → PromoBadge}/PromoBadge.d.ts +4 -4
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +56 -0
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.css +1 -0
- package/dist/{es/components/Badges/components → lib/components/Badges}/TimerBadge/TimerBadge.d.ts +2 -2
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.js +96 -0
- package/dist/lib/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.js +12 -56
- package/dist/lib/components/Banner/Banner.css +1 -195
- package/dist/lib/components/Banner/Banner.d.ts +5 -4
- package/dist/lib/components/Banner/Banner.js +94 -164
- package/dist/lib/components/Banner/BannerDot.css +1 -69
- package/dist/lib/components/Banner/BannerDot.d.ts +1 -1
- package/dist/lib/components/Banner/BannerDot.js +11 -37
- package/dist/lib/components/Banner/slidesSettings.d.ts +4 -2
- package/dist/lib/components/Banner/slidesSettings.js +5 -12
- package/dist/lib/components/Button/Button.css +1 -814
- package/dist/lib/components/Button/Button.d.ts +7 -6
- package/dist/lib/components/Button/Button.js +71 -158
- package/dist/lib/components/Calendar/Calendar.css +1 -24
- package/dist/lib/components/Calendar/Calendar.d.ts +4 -4
- package/dist/lib/components/Calendar/Calendar.js +90 -191
- package/dist/lib/components/Calendar/components/_Day/Day.css +1 -0
- package/dist/lib/components/Calendar/components/{Day → _Day}/Day.d.ts +4 -4
- package/dist/lib/components/Calendar/components/{Day → _Day}/Day.js +29 -72
- package/dist/lib/components/Calendar/components/_Month/Month.css +1 -0
- package/dist/lib/components/Calendar/components/{Month → _Month}/Month.d.ts +3 -2
- package/dist/lib/components/Calendar/components/_Month/Month.js +97 -0
- package/dist/lib/components/Caption/Caption.css +1 -48
- package/dist/lib/components/Caption/Caption.d.ts +4 -2
- package/dist/lib/components/Caption/Caption.js +16 -41
- package/dist/lib/components/Carousel/Carousel.css +1 -215
- package/dist/lib/components/Carousel/Carousel.d.ts +11 -10
- package/dist/lib/components/Carousel/Carousel.js +223 -228
- package/dist/lib/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
- package/dist/lib/components/Carousel/checkBreakpointsPropTypes.js +6 -18
- package/dist/lib/components/Carousel/useGradient.d.ts +1 -1
- package/dist/lib/components/Carousel/useGradient.js +12 -25
- package/dist/lib/components/Checkbox/Checkbox.css +1 -150
- package/dist/lib/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/lib/components/Checkbox/Checkbox.js +35 -75
- package/dist/lib/components/Chips/Chip.css +1 -132
- package/dist/lib/components/Chips/Chip.d.ts +6 -26
- package/dist/lib/components/Chips/Chip.js +36 -76
- package/dist/lib/components/Chips/Chips.css +1 -19
- package/dist/lib/components/Chips/Chips.d.ts +2 -2
- package/dist/lib/components/Chips/Chips.js +47 -92
- package/dist/lib/components/Chips/components/ChipsDropdown.css +1 -106
- package/dist/lib/components/Chips/components/ChipsDropdown.d.ts +2 -2
- package/dist/lib/components/Chips/components/ChipsDropdown.js +31 -67
- package/dist/lib/components/ContentArea/ContentArea.css +1 -109
- package/dist/lib/components/ContentArea/ContentArea.d.ts +5 -4
- package/dist/lib/components/ContentArea/ContentArea.js +14 -44
- package/dist/lib/components/ContentView/ContentView.css +1 -103
- package/dist/lib/components/ContentView/ContentView.d.ts +3 -2
- package/dist/lib/components/ContentView/ContentView.js +17 -63
- package/dist/lib/components/Counter/Counter.css +1 -123
- package/dist/lib/components/Counter/Counter.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.js +25 -71
- package/dist/lib/components/Grid/Grid.css +1 -102
- package/dist/lib/components/Grid/Grid.d.ts +1 -1
- package/dist/lib/components/Grid/Grid.js +13 -40
- package/dist/lib/components/Grid/GridColumn.css +1 -3102
- package/dist/lib/components/Grid/GridColumn.d.ts +2 -2
- package/dist/lib/components/Grid/GridColumn.js +38 -77
- package/dist/lib/components/Header/Header.css +1 -122
- package/dist/lib/components/Header/Header.d.ts +3 -1
- package/dist/lib/components/Header/Header.js +18 -43
- package/dist/lib/components/Link/Link.d.ts +2 -2
- package/dist/lib/components/Link/Link.js +15 -34
- package/dist/lib/components/List/List.css +1 -66
- package/dist/lib/components/List/List.d.ts +2 -1
- package/dist/lib/components/List/List.js +12 -30
- package/dist/lib/components/List/ListItem.css +1 -6
- package/dist/lib/components/List/ListItem.d.ts +2 -1
- package/dist/lib/components/List/ListItem.js +5 -19
- package/dist/lib/components/ListData/ListData.css +1 -162
- package/dist/lib/components/ListData/ListData.d.ts +6 -34
- package/dist/lib/components/ListData/ListData.js +51 -111
- package/dist/lib/components/ListData/ListDataGroup.css +1 -15
- package/dist/lib/components/ListData/ListDataGroup.d.ts +4 -4
- package/dist/lib/components/ListData/ListDataGroup.js +48 -118
- package/dist/lib/components/ListData/components/ListDataSortable.css +1 -79
- package/dist/lib/components/ListData/components/ListDataSortable.d.ts +4 -4
- package/dist/lib/components/ListData/components/ListDataSortable.js +35 -74
- package/dist/lib/components/ListData/helpers.js +7 -25
- package/dist/lib/components/Logo/Logo.css +1 -43
- package/dist/lib/components/Logo/Logo.d.ts +1 -1
- package/dist/lib/components/Logo/Logo.js +14 -41
- package/dist/lib/components/Modal/Modal.css +1 -0
- package/dist/lib/components/Modal/Modal.d.ts +106 -0
- package/dist/lib/components/Modal/Modal.js +287 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalContent/ModalContent.js +177 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +1 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.js +41 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +1 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +12 -0
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +123 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +1 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +8 -0
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +64 -0
- package/dist/lib/components/Modal/mocks.d.ts +3 -0
- package/dist/lib/components/Modal/mocks.js +85 -0
- package/dist/lib/components/Modal/types.d.ts +27 -0
- package/dist/lib/components/Modal/types.js +5 -0
- package/dist/lib/components/Modal/utils/utils.d.ts +18 -0
- package/dist/lib/components/Modal/utils/utils.js +72 -0
- package/dist/lib/components/NavArrow/NavArrow.css +1 -63
- package/dist/lib/components/NavArrow/NavArrow.d.ts +3 -3
- package/dist/lib/components/NavArrow/NavArrow.js +15 -47
- package/dist/lib/components/Notification/Notification.css +1 -350
- package/dist/lib/components/Notification/Notification.d.ts +5 -4
- package/dist/lib/components/Notification/Notification.js +114 -201
- package/dist/lib/components/Pagination/Pagination.css +1 -5
- package/dist/lib/components/Pagination/Pagination.d.ts +4 -3
- package/dist/lib/components/Pagination/Pagination.js +19 -51
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +1 -62
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +5 -4
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +12 -35
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -10
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +3 -2
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +7 -32
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +1 -17
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +3 -2
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +9 -32
- package/dist/lib/components/Pagination/helpers.js +1 -6
- package/dist/lib/components/Pagination/usePagination.d.ts +2 -1
- package/dist/lib/components/Pagination/usePagination.js +10 -36
- package/dist/lib/components/Paragraph/Paragraph.css +1 -43
- package/dist/lib/components/Paragraph/Paragraph.d.ts +4 -2
- package/dist/lib/components/Paragraph/Paragraph.js +14 -38
- package/dist/lib/components/Preloader/Preloader.css +1 -224
- package/dist/lib/components/Preloader/Preloader.d.ts +3 -3
- package/dist/lib/components/Preloader/Preloader.js +23 -58
- package/dist/lib/components/RadioButton/RadioButton.css +1 -120
- package/dist/lib/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/lib/components/RadioButton/RadioButton.js +23 -70
- package/dist/lib/components/Row/Row.css +1 -238
- package/dist/lib/components/Row/Row.d.ts +2 -2
- package/dist/lib/components/Row/Row.js +40 -76
- package/dist/lib/components/ScrollBar/ScrollBar.css +1 -0
- package/dist/lib/components/ScrollBar/ScrollBar.d.ts +34 -0
- package/dist/lib/components/ScrollBar/ScrollBar.js +94 -0
- package/dist/lib/components/Search/Search.css +1 -453
- package/dist/lib/components/Search/Search.d.ts +7 -8
- package/dist/lib/components/Search/Search.js +122 -262
- package/dist/lib/components/Select/Select.css +1 -389
- package/dist/lib/components/Select/Select.d.ts +8 -84
- package/dist/lib/components/Select/Select.js +70 -187
- package/dist/lib/components/Select/reducer/selectReducer.d.ts +1 -1
- package/dist/lib/components/Select/reducer/selectReducer.js +22 -42
- package/dist/lib/components/Selector/Selector.css +1 -132
- package/dist/lib/components/Selector/Selector.d.ts +1 -1
- package/dist/lib/components/Selector/Selector.js +28 -71
- package/dist/lib/components/Sliders/Slider/Slider.css +1 -128
- package/dist/lib/components/Sliders/Slider/Slider.d.ts +1 -1
- package/dist/lib/components/Sliders/Slider/Slider.js +30 -76
- package/dist/lib/components/Sliders/SliderRange/SliderRange.css +1 -169
- package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRange/SliderRange.js +38 -101
- package/dist/lib/components/Sliders/SliderRange/helpers.js +5 -18
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +1 -219
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.js +41 -112
- package/dist/lib/components/Sliders/SliderRatio/helpers.js +9 -28
- package/dist/lib/components/Sliders/SliderRatio/types.d.ts +1 -1
- package/dist/lib/components/Sliders/SliderRatio/types.js +0 -2
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +1 -84
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +18 -57
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +1 -15
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +12 -40
- package/dist/lib/components/Sliders/components/SliderScale/helpers.js +16 -34
- package/dist/lib/components/Sliders/helpers.js +5 -22
- package/dist/lib/components/Snackbar/Snackbar.css +1 -220
- package/dist/lib/components/Snackbar/Snackbar.d.ts +3 -3
- package/dist/lib/components/Snackbar/Snackbar.js +82 -139
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.css +1 -66
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.js +18 -37
- package/dist/lib/components/Switcher/Switcher.css +1 -160
- package/dist/lib/components/Switcher/Switcher.d.ts +2 -1
- package/dist/lib/components/Switcher/Switcher.js +22 -53
- package/dist/lib/components/Tabs/Tab.js +5 -26
- package/dist/lib/components/Tabs/Tabs.css +1 -306
- package/dist/lib/components/Tabs/Tabs.d.ts +6 -5
- package/dist/lib/components/Tabs/Tabs.js +121 -200
- package/dist/lib/components/TextField/TextField.css +1 -343
- package/dist/lib/components/TextField/TextField.d.ts +3 -3
- package/dist/lib/components/TextField/TextField.js +119 -244
- package/dist/lib/components/TextField/utils/countGraphemes.js +11 -28
- package/dist/lib/components/TextLink/TextLink.css +1 -50
- package/dist/lib/components/TextLink/TextLink.d.ts +2 -2
- package/dist/lib/components/TextLink/TextLink.js +19 -42
- package/dist/lib/components/Tile/Tile.css +1 -43
- package/dist/lib/components/Tile/Tile.d.ts +7 -5
- package/dist/lib/components/Tile/Tile.js +27 -55
- package/dist/lib/components/Tooltip/Tooltip.css +1 -335
- package/dist/lib/components/Tooltip/Tooltip.d.ts +9 -8
- package/dist/lib/components/Tooltip/Tooltip.js +111 -219
- package/dist/lib/components/_Collapse/Collapse.css +1 -0
- package/dist/{es/components/Collapse → lib/components/_Collapse}/Collapse.d.ts +3 -3
- package/dist/lib/components/_Collapse/Collapse.js +95 -0
- package/dist/lib/constants/throttleTime.js +2 -3
- package/dist/lib/hooks/usePrevious.js +4 -11
- package/dist/lib/hooks/useResolution.d.ts +1 -1
- package/dist/lib/hooks/useResolution.js +10 -24
- package/dist/lib/hooks/useSwipe.d.ts +1 -1
- package/dist/lib/hooks/useSwipe.js +22 -64
- package/dist/lib/index.d.ts +16 -9
- package/dist/lib/index.js +83 -102
- package/dist/lib/styles/base.css +1 -0
- package/package.json +106 -101
- package/styles/base.scss +150 -0
- package/styles/colors.css +53 -0
- package/CHANGELOG.md +0 -4062
- package/dist/es/components/Avatar/doc/i/img.png +0 -0
- package/dist/es/components/Badges/components/CounterBadge/CounterBadge.css +0 -54
- package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.css +0 -58
- package/dist/es/components/Badges/components/PriceBadge/PriceBadge.css +0 -119
- package/dist/es/components/Badges/components/PromoBadge/PromoBadge.css +0 -69
- package/dist/es/components/Badges/components/TimerBadge/TimerBadge.css +0 -60
- package/dist/es/components/Calendar/components/Day/Day.css +0 -243
- package/dist/es/components/Calendar/components/Month/Month.css +0 -135
- package/dist/es/components/Collapse/Collapse.css +0 -3
- package/dist/es/components/ListData/doc/i/img.png +0 -0
- package/dist/es/components/Selector/doc/Selector.example.css +0 -17
- package/dist/lib/components/Avatar/doc/i/img.png +0 -0
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.css +0 -54
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.js +0 -81
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.css +0 -58
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.js +0 -71
- package/dist/lib/components/Badges/components/PriceBadge/PriceBadge.css +0 -119
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.css +0 -69
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.js +0 -84
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.css +0 -60
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.js +0 -135
- package/dist/lib/components/Calendar/components/Day/Day.css +0 -243
- package/dist/lib/components/Calendar/components/Month/Month.css +0 -135
- package/dist/lib/components/Calendar/components/Month/Month.js +0 -127
- package/dist/lib/components/Collapse/Collapse.css +0 -3
- package/dist/lib/components/Collapse/Collapse.js +0 -141
- package/dist/lib/components/ListData/doc/i/img.png +0 -0
- package/dist/lib/components/Selector/doc/Selector.example.css +0 -17
- package/styles/base.less +0 -171
- /package/dist/es/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.d.ts +0 -0
- /package/dist/lib/components/Badges/{components/TimerBadge → TimerBadge/components}/Timer/Timer.d.ts +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.PromoBadgeTypes = exports.PromoBadgeSize = exports.PromoBadgeColors = void 0;
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
|
-
require("core-js/modules/es.object.values.js");
|
|
13
|
-
|
|
14
|
-
var React = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
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
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
|
-
var PromoBadgeColors = {
|
|
27
|
-
'137C': '137c',
|
|
28
|
-
BRAND_PURPLE_20: 'brand-purple-20',
|
|
29
|
-
BRAND_PURPLE: 'brand-purple',
|
|
30
|
-
REFLEX_BLUE: 'reflex-blue',
|
|
31
|
-
SYSTEM_BLUE: 'system-blue',
|
|
32
|
-
WARM_RED: 'warm-red',
|
|
33
|
-
GRADIENT_PURPLE: 'gradient-purple'
|
|
34
|
-
};
|
|
35
|
-
exports.PromoBadgeColors = PromoBadgeColors;
|
|
36
|
-
var PromoBadgeSize = {
|
|
37
|
-
SMALL: 'small',
|
|
38
|
-
MEDIUM: 'medium'
|
|
39
|
-
}; // DEPRECATED
|
|
40
|
-
|
|
41
|
-
exports.PromoBadgeSize = PromoBadgeSize;
|
|
42
|
-
var PromoBadgeTypes = {
|
|
43
|
-
HIT: 'hit',
|
|
44
|
-
NEW: 'new',
|
|
45
|
-
VIP: 'vip',
|
|
46
|
-
POPULAR: 'popular',
|
|
47
|
-
USER_CHOICE: 'user-choice',
|
|
48
|
-
INTERESTS: 'interests'
|
|
49
|
-
};
|
|
50
|
-
exports.PromoBadgeTypes = PromoBadgeTypes;
|
|
51
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-promo-badge');
|
|
52
|
-
|
|
53
|
-
var PromoBadge = function PromoBadge(_ref) {
|
|
54
|
-
var color = _ref.color,
|
|
55
|
-
_ref$size = _ref.size,
|
|
56
|
-
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
57
|
-
_ref$type = _ref.type,
|
|
58
|
-
type = _ref$type === void 0 ? PromoBadgeTypes.HIT : _ref$type,
|
|
59
|
-
className = _ref.className,
|
|
60
|
-
children = _ref.children,
|
|
61
|
-
dataAttrs = _ref.dataAttrs;
|
|
62
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
63
|
-
className: cn({
|
|
64
|
-
color: color,
|
|
65
|
-
size: size,
|
|
66
|
-
type: color ? undefined : type
|
|
67
|
-
}, className)
|
|
68
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
69
|
-
className: cn('text')
|
|
70
|
-
}, children));
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
PromoBadge.propTypes = {
|
|
74
|
-
color: PropTypes.oneOf(Object.values(PromoBadgeColors)),
|
|
75
|
-
// DEPRECATED
|
|
76
|
-
type: PropTypes.oneOf(Object.values(PromoBadgeTypes)),
|
|
77
|
-
className: PropTypes.string,
|
|
78
|
-
dataAttrs: PropTypes.shape({
|
|
79
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
80
|
-
}),
|
|
81
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element.isRequired), PropTypes.element, PropTypes.string]).isRequired
|
|
82
|
-
};
|
|
83
|
-
var _default = PromoBadge;
|
|
84
|
-
exports["default"] = _default;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
.mfui-timer-badge {
|
|
2
|
-
display: -webkit-box;
|
|
3
|
-
display: -ms-flexbox;
|
|
4
|
-
display: flex;
|
|
5
|
-
-webkit-box-align: center;
|
|
6
|
-
-ms-flex-align: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
padding: 1px 2px;
|
|
9
|
-
padding-right: 8px;
|
|
10
|
-
width: -webkit-fit-content;
|
|
11
|
-
width: -moz-fit-content;
|
|
12
|
-
width: fit-content;
|
|
13
|
-
height: -webkit-fit-content;
|
|
14
|
-
height: -moz-fit-content;
|
|
15
|
-
height: fit-content;
|
|
16
|
-
border: 1px solid var(--spbSky1);
|
|
17
|
-
border-radius: 12px;
|
|
18
|
-
background: var(--base);
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
}
|
|
21
|
-
.mfui-timer-badge_theme_grey .mfui-timer-badge__text {
|
|
22
|
-
color: var(--spbSky3);
|
|
23
|
-
}
|
|
24
|
-
.mfui-timer-badge_theme_grey .mfui-timer-badge__icon {
|
|
25
|
-
fill: var(--spbSky3);
|
|
26
|
-
}
|
|
27
|
-
.mfui-timer-badge_theme_red .mfui-timer-badge__text {
|
|
28
|
-
color: var(--fury);
|
|
29
|
-
}
|
|
30
|
-
.mfui-timer-badge_theme_red .mfui-timer-badge__icon {
|
|
31
|
-
fill: var(--fury);
|
|
32
|
-
}
|
|
33
|
-
.mfui-timer-badge__text {
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
line-height: 18px;
|
|
36
|
-
font-family: inherit;
|
|
37
|
-
margin-left: 2px;
|
|
38
|
-
font-weight: 500;
|
|
39
|
-
}
|
|
40
|
-
.mfui-timer-badge__icon {
|
|
41
|
-
height: 20px;
|
|
42
|
-
width: 20px;
|
|
43
|
-
}
|
|
44
|
-
.mfui-timer-badge__icon-container {
|
|
45
|
-
position: relative;
|
|
46
|
-
display: -webkit-box;
|
|
47
|
-
display: -ms-flexbox;
|
|
48
|
-
display: flex;
|
|
49
|
-
}
|
|
50
|
-
.mfui-timer-badge__icon-container_shadow:before {
|
|
51
|
-
content: '';
|
|
52
|
-
position: absolute;
|
|
53
|
-
top: 2px;
|
|
54
|
-
left: 2px;
|
|
55
|
-
height: 16px;
|
|
56
|
-
width: 16px;
|
|
57
|
-
border-radius: 50%;
|
|
58
|
-
-webkit-box-shadow: 0px 0px 6px var(--fury);
|
|
59
|
-
box-shadow: 0px 0px 6px var(--fury);
|
|
60
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.TIMEOUT = void 0;
|
|
9
|
-
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
|
-
require("core-js/modules/es.date.now.js");
|
|
15
|
-
|
|
16
|
-
require("core-js/modules/es.date.to-string.js");
|
|
17
|
-
|
|
18
|
-
require("core-js/modules/web.timers.js");
|
|
19
|
-
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _uiHelpers = require("@megafon/ui-helpers");
|
|
23
|
-
|
|
24
|
-
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
|
25
|
-
|
|
26
|
-
var _Timer = _interopRequireDefault(require("./Timer/Timer"));
|
|
27
|
-
|
|
28
|
-
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); }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
-
|
|
34
|
-
var TimerIcon = function TimerIcon(props) {
|
|
35
|
-
return /*#__PURE__*/_react["default"].createElement("svg", (0, _extends2["default"])({
|
|
36
|
-
viewBox: "0 0 20 20"
|
|
37
|
-
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
-
fillRule: "evenodd",
|
|
39
|
-
clipRule: "evenodd",
|
|
40
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-8.414V5H9v5.414l3 3L13.414 12 11 9.586z"
|
|
41
|
-
}));
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
var SECONDS_IN_HOUR = 3600;
|
|
45
|
-
var MS_IN_SECOND = 1000;
|
|
46
|
-
var TIMEOUT = 1000;
|
|
47
|
-
exports.TIMEOUT = TIMEOUT;
|
|
48
|
-
var TimerBadgeTheme = {
|
|
49
|
-
RED: 'red',
|
|
50
|
-
GREY: 'grey'
|
|
51
|
-
};
|
|
52
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-timer-badge');
|
|
53
|
-
|
|
54
|
-
var TimerBadge = function TimerBadge(_ref) {
|
|
55
|
-
var expirationDate = _ref.expirationDate,
|
|
56
|
-
_ref$countdownStart = _ref.countdownStart,
|
|
57
|
-
countdownStart = _ref$countdownStart === void 0 ? 86400 : _ref$countdownStart,
|
|
58
|
-
_ref$hasPrefix = _ref.hasPrefix,
|
|
59
|
-
hasPrefix = _ref$hasPrefix === void 0 ? false : _ref$hasPrefix,
|
|
60
|
-
_ref$countdownText = _ref.countdownText,
|
|
61
|
-
countdownText = _ref$countdownText === void 0 ? 'Закончится через' : _ref$countdownText,
|
|
62
|
-
_ref$expirationDateTe = _ref.expirationDateText,
|
|
63
|
-
expirationDateText = _ref$expirationDateTe === void 0 ? 'Воспользуйтесь до' : _ref$expirationDateTe,
|
|
64
|
-
className = _ref.className,
|
|
65
|
-
dataAttrs = _ref.dataAttrs;
|
|
66
|
-
var remainingTime = (expirationDate.getTime() - Date.now()) / MS_IN_SECOND;
|
|
67
|
-
|
|
68
|
-
var _useState = (0, _react.useState)(remainingTime),
|
|
69
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
70
|
-
actualRemainingTime = _useState2[0],
|
|
71
|
-
setActualRemainingTime = _useState2[1];
|
|
72
|
-
|
|
73
|
-
var _useState3 = (0, _react.useState)(false),
|
|
74
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
75
|
-
showCountdown = _useState4[0],
|
|
76
|
-
setShowCountdown = _useState4[1];
|
|
77
|
-
|
|
78
|
-
var isLastHour = actualRemainingTime < SECONDS_IN_HOUR;
|
|
79
|
-
var isTimeExpired = actualRemainingTime < 1;
|
|
80
|
-
var theme = showCountdown ? TimerBadgeTheme.RED : TimerBadgeTheme.GREY;
|
|
81
|
-
var additionalText = showCountdown ? countdownText : expirationDateText;
|
|
82
|
-
(0, _react.useEffect)(function () {
|
|
83
|
-
setShowCountdown(actualRemainingTime < countdownStart);
|
|
84
|
-
}, [actualRemainingTime, countdownStart]);
|
|
85
|
-
(0, _react.useEffect)(function () {
|
|
86
|
-
if (isTimeExpired) {
|
|
87
|
-
return undefined;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
var timeoutId = window.setTimeout(function () {
|
|
91
|
-
return setActualRemainingTime(actualRemainingTime - 1);
|
|
92
|
-
}, TIMEOUT);
|
|
93
|
-
return function () {
|
|
94
|
-
return clearTimeout(timeoutId);
|
|
95
|
-
};
|
|
96
|
-
}, [isTimeExpired, showCountdown, actualRemainingTime]);
|
|
97
|
-
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
98
|
-
className: cn({
|
|
99
|
-
theme: theme
|
|
100
|
-
}, className)
|
|
101
|
-
}), /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.iconContainer), {
|
|
102
|
-
className: cn('icon-container', {
|
|
103
|
-
shadow: isLastHour && showCountdown
|
|
104
|
-
})
|
|
105
|
-
}), /*#__PURE__*/_react["default"].createElement(TimerIcon, {
|
|
106
|
-
className: cn('icon')
|
|
107
|
-
})), /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.text), {
|
|
108
|
-
className: cn('text')
|
|
109
|
-
}), isTimeExpired ? 'Время действия истекло' : /*#__PURE__*/_react["default"].createElement(_Timer["default"], {
|
|
110
|
-
additionalText: hasPrefix ? additionalText : undefined,
|
|
111
|
-
showCountdown: showCountdown,
|
|
112
|
-
expirationDate: expirationDate,
|
|
113
|
-
actualRemainingTime: actualRemainingTime,
|
|
114
|
-
dataAttrs: {
|
|
115
|
-
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.timer
|
|
116
|
-
}
|
|
117
|
-
})));
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
TimerBadge.propTypes = {
|
|
121
|
-
expirationDate: PropTypes.instanceOf(Date).isRequired,
|
|
122
|
-
countdownStart: PropTypes.number,
|
|
123
|
-
hasPrefix: PropTypes.bool,
|
|
124
|
-
countdownText: PropTypes.string,
|
|
125
|
-
expirationDateText: PropTypes.string,
|
|
126
|
-
className: PropTypes.string,
|
|
127
|
-
dataAttrs: PropTypes.shape({
|
|
128
|
-
root: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
129
|
-
text: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
130
|
-
timer: PropTypes.objectOf(PropTypes.string.isRequired),
|
|
131
|
-
iconContainer: PropTypes.objectOf(PropTypes.string.isRequired)
|
|
132
|
-
})
|
|
133
|
-
};
|
|
134
|
-
var _default = TimerBadge;
|
|
135
|
-
exports["default"] = _default;
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
.mfui-day {
|
|
2
|
-
position: relative;
|
|
3
|
-
-webkit-box-sizing: content-box;
|
|
4
|
-
box-sizing: content-box;
|
|
5
|
-
width: 32px;
|
|
6
|
-
height: 32px;
|
|
7
|
-
padding: 0 10px 8px 0;
|
|
8
|
-
border: none;
|
|
9
|
-
color: var(--content);
|
|
10
|
-
line-height: 24px;
|
|
11
|
-
text-decoration: none;
|
|
12
|
-
background-color: rgba(0, 0, 0, 0);
|
|
13
|
-
outline: none;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
-webkit-appearance: none;
|
|
16
|
-
-moz-appearance: none;
|
|
17
|
-
appearance: none;
|
|
18
|
-
-webkit-user-select: none;
|
|
19
|
-
-moz-user-select: none;
|
|
20
|
-
-ms-user-select: none;
|
|
21
|
-
user-select: none;
|
|
22
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
23
|
-
font-size: 12px;
|
|
24
|
-
line-height: 18px;
|
|
25
|
-
}
|
|
26
|
-
.mfui-day:last-child {
|
|
27
|
-
padding-right: 0;
|
|
28
|
-
}
|
|
29
|
-
.mfui-day:not(:disabled):not(.mfui-day_active):hover:after,
|
|
30
|
-
.mfui-day:not(:disabled):not(.mfui-day_active):focus:after,
|
|
31
|
-
.mfui-day_active:after,
|
|
32
|
-
.mfui-day_active-modern:after {
|
|
33
|
-
content: '';
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 0;
|
|
36
|
-
left: 0;
|
|
37
|
-
z-index: 1;
|
|
38
|
-
width: 32px;
|
|
39
|
-
height: 32px;
|
|
40
|
-
border-radius: 50% !important;
|
|
41
|
-
color: var(--content);
|
|
42
|
-
background-color: var(--spbSky0);
|
|
43
|
-
}
|
|
44
|
-
.mfui-day_active-modern:after {
|
|
45
|
-
width: 38px;
|
|
46
|
-
height: 38px;
|
|
47
|
-
}
|
|
48
|
-
.mfui-day_active-modern:hover:after {
|
|
49
|
-
background-color: var(--brandGreen) !important;
|
|
50
|
-
}
|
|
51
|
-
.mfui-day:not(:disabled):not(.mfui-day_active):hover:after {
|
|
52
|
-
color: var(--content);
|
|
53
|
-
background-color: var(--spbSky0);
|
|
54
|
-
}
|
|
55
|
-
.mfui-day:not(:disabled):not(.mfui-day_active):focus:after,
|
|
56
|
-
.mfui-day_active:after,
|
|
57
|
-
.mfui-day_active-modern:after {
|
|
58
|
-
background-color: var(--brandGreen);
|
|
59
|
-
}
|
|
60
|
-
.mfui-day_disabled {
|
|
61
|
-
cursor: default;
|
|
62
|
-
opacity: 0.3;
|
|
63
|
-
pointer-events: none;
|
|
64
|
-
}
|
|
65
|
-
.mfui-day_active,
|
|
66
|
-
.mfui-day_active-modern,
|
|
67
|
-
.mfui-day:not(:disabled):not(.mfui-day_active):focus {
|
|
68
|
-
color: var(--stcWhite);
|
|
69
|
-
}
|
|
70
|
-
.mfui-day_active + .mfui-day_active:before,
|
|
71
|
-
.mfui-day_between:hover + .mfui-day:not(.mfui-day_monday).mfui-day_active:before {
|
|
72
|
-
content: '';
|
|
73
|
-
position: absolute;
|
|
74
|
-
top: 0;
|
|
75
|
-
left: -22px;
|
|
76
|
-
z-index: -1;
|
|
77
|
-
display: block;
|
|
78
|
-
width: 32px;
|
|
79
|
-
height: 32px;
|
|
80
|
-
background-color: var(--spbSky1);
|
|
81
|
-
}
|
|
82
|
-
.mfui-day_between {
|
|
83
|
-
position: relative;
|
|
84
|
-
border-radius: 0;
|
|
85
|
-
}
|
|
86
|
-
.mfui-day_between:before {
|
|
87
|
-
content: '';
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 0;
|
|
90
|
-
left: -22px;
|
|
91
|
-
z-index: -1;
|
|
92
|
-
display: block;
|
|
93
|
-
height: 32px;
|
|
94
|
-
padding: 0 20px;
|
|
95
|
-
background-color: var(--spbSky1);
|
|
96
|
-
}
|
|
97
|
-
.mfui-day_between:after {
|
|
98
|
-
content: '';
|
|
99
|
-
position: absolute;
|
|
100
|
-
top: 0;
|
|
101
|
-
right: -16px;
|
|
102
|
-
z-index: -1;
|
|
103
|
-
display: block;
|
|
104
|
-
width: 40px;
|
|
105
|
-
height: 32px;
|
|
106
|
-
background-color: var(--spbSky1);
|
|
107
|
-
}
|
|
108
|
-
.mfui-day_sunday,
|
|
109
|
-
.mfui-day_last {
|
|
110
|
-
border-radius: 50%;
|
|
111
|
-
}
|
|
112
|
-
.mfui-day_sunday:after,
|
|
113
|
-
.mfui-day_last:after {
|
|
114
|
-
right: 10px;
|
|
115
|
-
width: 32px;
|
|
116
|
-
border-radius: 50%;
|
|
117
|
-
}
|
|
118
|
-
.mfui-day_last:after {
|
|
119
|
-
right: 0;
|
|
120
|
-
}
|
|
121
|
-
.mfui-day_monday,
|
|
122
|
-
.mfui-day_first {
|
|
123
|
-
border-radius: 50%;
|
|
124
|
-
}
|
|
125
|
-
.mfui-day_monday:before,
|
|
126
|
-
.mfui-day_first:before {
|
|
127
|
-
left: 0;
|
|
128
|
-
width: 32px;
|
|
129
|
-
padding: 0;
|
|
130
|
-
border-radius: 50%;
|
|
131
|
-
}
|
|
132
|
-
.mfui-day_sunday.mfui-day_first {
|
|
133
|
-
border-radius: 50%;
|
|
134
|
-
}
|
|
135
|
-
.mfui-day__label {
|
|
136
|
-
position: relative;
|
|
137
|
-
z-index: 99;
|
|
138
|
-
}
|
|
139
|
-
.mfui-day_modern {
|
|
140
|
-
width: 38.29px;
|
|
141
|
-
height: 38px;
|
|
142
|
-
}
|
|
143
|
-
.mfui-day_modern:not(:disabled):not(.mfui-day_modern_active-modern):hover:after,
|
|
144
|
-
.mfui-day_modern:not(:disabled):not(.mfui-day_modern_active-modern):focus:after,
|
|
145
|
-
.mfui-day_modern_active-modern:after {
|
|
146
|
-
content: '';
|
|
147
|
-
position: absolute;
|
|
148
|
-
top: 0;
|
|
149
|
-
left: 0;
|
|
150
|
-
z-index: 1;
|
|
151
|
-
width: 38px;
|
|
152
|
-
height: 38px;
|
|
153
|
-
border-radius: 50% !important;
|
|
154
|
-
color: var(--content);
|
|
155
|
-
background-color: var(--spbSky0);
|
|
156
|
-
}
|
|
157
|
-
.mfui-day_modern:not(:disabled):not(.mfui-day_modern_active-modern):hover:after {
|
|
158
|
-
color: var(--content);
|
|
159
|
-
background-color: var(--spbSky0);
|
|
160
|
-
}
|
|
161
|
-
.mfui-day_modern:not(:disabled):not(.mfui-day_modern_active-modern):focus:after,
|
|
162
|
-
.mfui-day_modern_active-modern:after {
|
|
163
|
-
background-color: var(--brandGreen);
|
|
164
|
-
}
|
|
165
|
-
.mfui-day_active-modern,
|
|
166
|
-
.mfui-day:not(:disabled):focus {
|
|
167
|
-
color: var(--stcWhite);
|
|
168
|
-
}
|
|
169
|
-
.mfui-day_active-modern + .mfui-day_active-modern:before,
|
|
170
|
-
.mfui-day_between-modern:hover + .mfui-day:not(.mfui-day_monday-modern).mfui-day_active-modern:before {
|
|
171
|
-
content: '';
|
|
172
|
-
position: absolute;
|
|
173
|
-
top: 0;
|
|
174
|
-
left: -22px;
|
|
175
|
-
z-index: -1;
|
|
176
|
-
display: block;
|
|
177
|
-
width: 40px;
|
|
178
|
-
height: 38px;
|
|
179
|
-
background-color: var(--spbSky1);
|
|
180
|
-
}
|
|
181
|
-
.mfui-day_between-modern {
|
|
182
|
-
position: relative;
|
|
183
|
-
border-radius: 0;
|
|
184
|
-
}
|
|
185
|
-
.mfui-day_between-modern:before {
|
|
186
|
-
content: '';
|
|
187
|
-
position: absolute;
|
|
188
|
-
top: 0;
|
|
189
|
-
left: -28px;
|
|
190
|
-
z-index: -1;
|
|
191
|
-
display: block;
|
|
192
|
-
height: 38px;
|
|
193
|
-
padding: 0 29px;
|
|
194
|
-
background-color: var(--spbSky1);
|
|
195
|
-
}
|
|
196
|
-
.mfui-day_between-modern:after {
|
|
197
|
-
content: '';
|
|
198
|
-
position: absolute;
|
|
199
|
-
top: 0;
|
|
200
|
-
right: -18px;
|
|
201
|
-
z-index: -1;
|
|
202
|
-
display: block;
|
|
203
|
-
width: 45px;
|
|
204
|
-
height: 38px;
|
|
205
|
-
background-color: var(--spbSky1);
|
|
206
|
-
}
|
|
207
|
-
.mfui-day_sunday-modern,
|
|
208
|
-
.mfui-day_last-modern {
|
|
209
|
-
border-radius: 50%;
|
|
210
|
-
}
|
|
211
|
-
.mfui-day_sunday-modern:before,
|
|
212
|
-
.mfui-day_last-modern:before {
|
|
213
|
-
padding-left: 20px;
|
|
214
|
-
}
|
|
215
|
-
.mfui-day_sunday-modern:after,
|
|
216
|
-
.mfui-day_last-modern:after {
|
|
217
|
-
right: 10px;
|
|
218
|
-
width: 38.29px;
|
|
219
|
-
border-radius: 50%;
|
|
220
|
-
}
|
|
221
|
-
.mfui-day_last-modern:after {
|
|
222
|
-
right: 0;
|
|
223
|
-
}
|
|
224
|
-
.mfui-day_monday-modern,
|
|
225
|
-
.mfui-day_first-modern {
|
|
226
|
-
border-radius: 50%;
|
|
227
|
-
}
|
|
228
|
-
.mfui-day_monday-modern:before,
|
|
229
|
-
.mfui-day_first-modern:before {
|
|
230
|
-
left: 0;
|
|
231
|
-
width: 38px;
|
|
232
|
-
padding: 0;
|
|
233
|
-
border-radius: 50%;
|
|
234
|
-
}
|
|
235
|
-
.mfui-day_sunday-modern.mfui-day_first-modern {
|
|
236
|
-
border-radius: 50%;
|
|
237
|
-
}
|
|
238
|
-
.mfui-day__label_modern {
|
|
239
|
-
font-weight: 400;
|
|
240
|
-
font-size: 15px;
|
|
241
|
-
line-height: 24px;
|
|
242
|
-
text-align: center;
|
|
243
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
.mfui-month {
|
|
2
|
-
position: relative;
|
|
3
|
-
z-index: 1;
|
|
4
|
-
display: -webkit-box;
|
|
5
|
-
display: -ms-flexbox;
|
|
6
|
-
display: flex;
|
|
7
|
-
-webkit-box-orient: vertical;
|
|
8
|
-
-webkit-box-direction: normal;
|
|
9
|
-
-ms-flex-direction: column;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
-webkit-box-align: center;
|
|
12
|
-
-ms-flex-align: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
width: 284px;
|
|
15
|
-
padding: 28px 0;
|
|
16
|
-
}
|
|
17
|
-
.mfui-month__header {
|
|
18
|
-
display: -webkit-box;
|
|
19
|
-
display: -ms-flexbox;
|
|
20
|
-
display: flex;
|
|
21
|
-
-webkit-box-align: center;
|
|
22
|
-
-ms-flex-align: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
-webkit-box-pack: justify;
|
|
25
|
-
-ms-flex-pack: justify;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
width: 282px;
|
|
28
|
-
margin-bottom: 20px;
|
|
29
|
-
text-transform: capitalize;
|
|
30
|
-
}
|
|
31
|
-
.mfui-month__header svg {
|
|
32
|
-
height: 24.5px;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
-webkit-user-select: none;
|
|
35
|
-
-moz-user-select: none;
|
|
36
|
-
-ms-user-select: none;
|
|
37
|
-
user-select: none;
|
|
38
|
-
fill: var(--content);
|
|
39
|
-
}
|
|
40
|
-
.mfui-month__title {
|
|
41
|
-
font-size: 15px;
|
|
42
|
-
line-height: 24px;
|
|
43
|
-
font-weight: 500;
|
|
44
|
-
width: 224px;
|
|
45
|
-
text-align: center;
|
|
46
|
-
}
|
|
47
|
-
.mfui-month__weekday-labels {
|
|
48
|
-
display: grid;
|
|
49
|
-
grid-template-columns: repeat(7, 1fr);
|
|
50
|
-
width: 272px;
|
|
51
|
-
padding-bottom: 13px;
|
|
52
|
-
border-bottom: 1px solid var(--spbSky1);
|
|
53
|
-
-webkit-column-gap: 22px;
|
|
54
|
-
-moz-column-gap: 22px;
|
|
55
|
-
column-gap: 22px;
|
|
56
|
-
}
|
|
57
|
-
.mfui-month__weekday {
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
line-height: 18px;
|
|
60
|
-
width: 20px;
|
|
61
|
-
height: 16px;
|
|
62
|
-
color: var(--content);
|
|
63
|
-
font-weight: 600;
|
|
64
|
-
line-height: 24px;
|
|
65
|
-
text-align: center;
|
|
66
|
-
text-transform: capitalize;
|
|
67
|
-
}
|
|
68
|
-
.mfui-month__days {
|
|
69
|
-
display: grid;
|
|
70
|
-
grid-template-columns: repeat(7, 1fr);
|
|
71
|
-
width: 284px;
|
|
72
|
-
margin-top: 8px;
|
|
73
|
-
-webkit-column-gap: 0;
|
|
74
|
-
-moz-column-gap: 0;
|
|
75
|
-
column-gap: 0;
|
|
76
|
-
row-gap: 0;
|
|
77
|
-
}
|
|
78
|
-
svg.mfui-month__arrow_disabled {
|
|
79
|
-
cursor: default;
|
|
80
|
-
opacity: 0.5;
|
|
81
|
-
}
|
|
82
|
-
.mfui-month_modern {
|
|
83
|
-
width: 344px;
|
|
84
|
-
padding: 0 0 24px;
|
|
85
|
-
}
|
|
86
|
-
.mfui-month_modern .mfui-month__header {
|
|
87
|
-
display: -webkit-box;
|
|
88
|
-
display: -ms-flexbox;
|
|
89
|
-
display: flex;
|
|
90
|
-
-webkit-box-align: center;
|
|
91
|
-
-ms-flex-align: center;
|
|
92
|
-
align-items: center;
|
|
93
|
-
width: 328px;
|
|
94
|
-
margin-bottom: 16px;
|
|
95
|
-
text-transform: capitalize;
|
|
96
|
-
}
|
|
97
|
-
.mfui-month_modern .mfui-month__title {
|
|
98
|
-
font-size: 15px;
|
|
99
|
-
line-height: 24px;
|
|
100
|
-
font-weight: 500;
|
|
101
|
-
width: 224px;
|
|
102
|
-
margin: 0 auto;
|
|
103
|
-
text-align: center;
|
|
104
|
-
}
|
|
105
|
-
.mfui-month_modern .mfui-month__weekday-labels {
|
|
106
|
-
display: grid;
|
|
107
|
-
grid-template-columns: repeat(7, 1fr);
|
|
108
|
-
width: 328px;
|
|
109
|
-
padding-bottom: 0;
|
|
110
|
-
border-bottom: none;
|
|
111
|
-
-webkit-column-gap: 8px;
|
|
112
|
-
-moz-column-gap: 8px;
|
|
113
|
-
column-gap: 8px;
|
|
114
|
-
}
|
|
115
|
-
.mfui-month_modern .mfui-month__weekday {
|
|
116
|
-
width: 20px;
|
|
117
|
-
height: 24px;
|
|
118
|
-
margin: 0 auto;
|
|
119
|
-
color: var(--spbSky3);
|
|
120
|
-
font-weight: 400;
|
|
121
|
-
font-size: 15px;
|
|
122
|
-
line-height: 24px;
|
|
123
|
-
text-align: center;
|
|
124
|
-
text-transform: capitalize;
|
|
125
|
-
}
|
|
126
|
-
.mfui-month_modern .mfui-month__days {
|
|
127
|
-
display: grid;
|
|
128
|
-
grid-template-columns: repeat(7, 1fr);
|
|
129
|
-
width: 328px;
|
|
130
|
-
margin-top: 10px;
|
|
131
|
-
-webkit-column-gap: 0;
|
|
132
|
-
-moz-column-gap: 0;
|
|
133
|
-
column-gap: 0;
|
|
134
|
-
row-gap: 0;
|
|
135
|
-
}
|