@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,45 +1,37 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import "core-js/modules/es.number.constructor.js";
|
|
3
|
+
import "core-js/modules/es.number.is-nan.js";
|
|
2
4
|
import "core-js/modules/es.regexp.exec.js";
|
|
3
5
|
import "core-js/modules/es.string.match.js";
|
|
4
|
-
import "core-js/modules/es.string.split.js";
|
|
5
|
-
import "core-js/modules/es.number.is-nan.js";
|
|
6
|
-
import "core-js/modules/es.number.constructor.js";
|
|
7
6
|
import * as React from 'react';
|
|
8
7
|
import useResolution from "./useResolution";
|
|
9
8
|
export var TransitionSteps;
|
|
10
|
-
|
|
11
9
|
(function (TransitionSteps) {
|
|
12
10
|
TransitionSteps["INITIAL_STEP"] = "initial-step";
|
|
13
11
|
TransitionSteps["MOVE_STEP"] = "move-step";
|
|
14
12
|
TransitionSteps["MOVE_END_STEP"] = "move-end-step";
|
|
15
|
-
})(TransitionSteps || (TransitionSteps = {}));
|
|
13
|
+
})(TransitionSteps || (TransitionSteps = {}));
|
|
14
|
+
// Смахивание элемента влево или вправо на мобильном устройстве.
|
|
16
15
|
// Элемент закрывается на событии 'touchend', если он был смещен пользователем больше, чем на половину ширины окна.
|
|
17
|
-
|
|
18
|
-
|
|
19
16
|
function useSwipe(element) {
|
|
20
17
|
var _useResolution = useResolution(),
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
isMobile = _useResolution.isMobile;
|
|
23
19
|
var _React$useState = React.useState(null),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
21
|
+
initialTouchPositionX = _React$useState2[0],
|
|
22
|
+
setInitialTouchPositionX = _React$useState2[1];
|
|
28
23
|
var _React$useState3 = React.useState(null),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
25
|
+
initialTouchPositionY = _React$useState4[0],
|
|
26
|
+
setInitialTouchPositionY = _React$useState4[1];
|
|
33
27
|
var _React$useState5 = React.useState(TransitionSteps.INITIAL_STEP),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
29
|
+
transitionStep = _React$useState6[0],
|
|
30
|
+
setTransitionStep = _React$useState6[1];
|
|
38
31
|
var _React$useState7 = React.useState(''),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
33
|
+
transform = _React$useState8[0],
|
|
34
|
+
setTransform = _React$useState8[1];
|
|
43
35
|
var animationFrameId = React.useRef(0);
|
|
44
36
|
var currentElement = element;
|
|
45
37
|
var isTransitionMoveStep = transitionStep === TransitionSteps.MOVE_STEP;
|
|
@@ -48,33 +40,25 @@ function useSwipe(element) {
|
|
|
48
40
|
if (animationFrameId) {
|
|
49
41
|
window.cancelAnimationFrame(animationFrameId.current);
|
|
50
42
|
}
|
|
51
|
-
|
|
52
43
|
animationFrameId.current = window.requestAnimationFrame(function () {
|
|
53
44
|
var _a;
|
|
54
|
-
|
|
55
45
|
if (!initialTouchPositionY) {
|
|
56
46
|
setInitialTouchPositionY(e.touches[0].clientY);
|
|
57
47
|
return;
|
|
58
48
|
}
|
|
59
|
-
|
|
60
49
|
if (!initialTouchPositionX) {
|
|
61
50
|
setInitialTouchPositionX(e.touches[0].clientX);
|
|
62
51
|
return;
|
|
63
52
|
}
|
|
64
|
-
|
|
65
53
|
var positionsDiffX = initialTouchPositionX - e.touches[0].clientX;
|
|
66
54
|
var positionsDiffY = initialTouchPositionY - e.touches[0].clientY;
|
|
67
|
-
|
|
68
55
|
if (Math.abs(positionsDiffY) > Math.abs(positionsDiffX)) {
|
|
69
56
|
return;
|
|
70
57
|
}
|
|
71
|
-
|
|
72
58
|
setTransitionStep(TransitionSteps.MOVE_STEP);
|
|
73
|
-
|
|
74
59
|
if (!currentElement) {
|
|
75
60
|
return;
|
|
76
61
|
}
|
|
77
|
-
|
|
78
62
|
var positionsDiff = initialTouchPositionX - e.touches[0].clientX;
|
|
79
63
|
var values = !!currentTransform && currentTransform !== 'none' ? (_a = currentTransform.match(/\(((?:[0-9][,\s]*)+)\)/)) === null || _a === void 0 ? void 0 : _a[0].split(', ') : undefined;
|
|
80
64
|
var currentTranslateX = !values || Number.isNaN(Number(values === null || values === void 0 ? void 0 : values[4])) ? 0 : Number(values === null || values === void 0 ? void 0 : values[4]);
|
|
@@ -84,27 +68,22 @@ function useSwipe(element) {
|
|
|
84
68
|
}, [initialTouchPositionX, initialTouchPositionY, currentElement, currentTransform]);
|
|
85
69
|
var handleWindowTouchEnd = React.useCallback(function (e) {
|
|
86
70
|
var _a, _b;
|
|
87
|
-
|
|
88
71
|
if (!currentElement || !isTransitionMoveStep || !initialTouchPositionX || !initialTouchPositionY) {
|
|
89
72
|
return;
|
|
90
73
|
}
|
|
91
|
-
|
|
92
74
|
window.cancelAnimationFrame(animationFrameId.current);
|
|
93
75
|
var touchPositionY = (_a = e.changedTouches[0]) === null || _a === void 0 ? void 0 : _a.clientY;
|
|
94
76
|
var touchPositionX = (_b = e.changedTouches[0]) === null || _b === void 0 ? void 0 : _b.clientX;
|
|
95
|
-
|
|
96
77
|
if (Math.abs(touchPositionY - initialTouchPositionY) > Math.abs(touchPositionX - initialTouchPositionX)) {
|
|
97
78
|
setInitialTouchPositionX(null);
|
|
98
79
|
setInitialTouchPositionY(null);
|
|
99
80
|
return;
|
|
100
81
|
}
|
|
101
|
-
|
|
102
82
|
var windowCenterPosition = window.innerWidth / 2;
|
|
103
83
|
var isRightSwipe = touchPositionX > initialTouchPositionX;
|
|
104
84
|
var isLeftSwipe = touchPositionX < initialTouchPositionX;
|
|
105
85
|
var isMoreHalfSwiped = Math.abs(initialTouchPositionX - touchPositionX) > windowCenterPosition;
|
|
106
86
|
setInitialTouchPositionX(null);
|
|
107
|
-
|
|
108
87
|
switch (true) {
|
|
109
88
|
case isMoreHalfSwiped && isRightSwipe:
|
|
110
89
|
{
|
|
@@ -112,14 +91,12 @@ function useSwipe(element) {
|
|
|
112
91
|
setTransitionStep(TransitionSteps.MOVE_END_STEP);
|
|
113
92
|
break;
|
|
114
93
|
}
|
|
115
|
-
|
|
116
94
|
case isMoreHalfSwiped && isLeftSwipe:
|
|
117
95
|
{
|
|
118
96
|
setTransform('translateX(-110%)');
|
|
119
97
|
setTransitionStep(TransitionSteps.MOVE_END_STEP);
|
|
120
98
|
break;
|
|
121
99
|
}
|
|
122
|
-
|
|
123
100
|
default:
|
|
124
101
|
{
|
|
125
102
|
setTransform('none');
|
|
@@ -131,16 +108,13 @@ function useSwipe(element) {
|
|
|
131
108
|
if (!isMobile || !currentElement) {
|
|
132
109
|
return;
|
|
133
110
|
}
|
|
134
|
-
|
|
135
111
|
currentElement.addEventListener('touchmove', handleWindowTouchMove);
|
|
136
112
|
currentElement.addEventListener('touchend', handleWindowTouchEnd);
|
|
137
113
|
/* eslint-disable-next-line consistent-return */
|
|
138
|
-
|
|
139
114
|
return function () {
|
|
140
115
|
if (!currentElement) {
|
|
141
116
|
return;
|
|
142
117
|
}
|
|
143
|
-
|
|
144
118
|
currentElement.removeEventListener('touchmove', handleWindowTouchMove);
|
|
145
119
|
currentElement.removeEventListener('touchend', handleWindowTouchEnd);
|
|
146
120
|
};
|
|
@@ -150,5 +124,4 @@ function useSwipe(element) {
|
|
|
150
124
|
transitionStep: transitionStep
|
|
151
125
|
};
|
|
152
126
|
}
|
|
153
|
-
|
|
154
127
|
export default useSwipe;
|
package/dist/es/index.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ export { default as checkBreakpointsPropTypes } from './components/Carousel/chec
|
|
|
11
11
|
export { default as Chip } from './components/Chips/Chip';
|
|
12
12
|
export { default as Chips } from './components/Chips/Chips';
|
|
13
13
|
export { default as ChipsDropdown } from './components/Chips/components/ChipsDropdown';
|
|
14
|
-
export { default as Collapse } from './components/
|
|
14
|
+
export { default as Collapse } from './components/_Collapse/Collapse';
|
|
15
15
|
export { default as ContentArea } from './components/ContentArea/ContentArea';
|
|
16
16
|
export { default as ContentView } from './components/ContentView/ContentView';
|
|
17
17
|
export { default as Counter } from './components/Counter/Counter';
|
|
18
|
-
export { default as CounterBadge } from './components/Badges/
|
|
18
|
+
export { default as CounterBadge } from './components/Badges/CounterBadge/CounterBadge';
|
|
19
19
|
export { default as countGraphemes } from './components/TextField/utils/countGraphemes';
|
|
20
|
-
export { default as Day } from './components/Calendar/components/
|
|
20
|
+
export { default as Day } from './components/Calendar/components/_Day/Day';
|
|
21
21
|
export { default as Grid } from './components/Grid/Grid';
|
|
22
22
|
export { default as GridColumn } from './components/Grid/GridColumn';
|
|
23
23
|
export { default as Header } from './components/Header/Header';
|
|
@@ -28,20 +28,26 @@ export { default as ListDataGroup } from './components/ListData/ListDataGroup';
|
|
|
28
28
|
export { default as ListDataSortable } from './components/ListData/components/ListDataSortable';
|
|
29
29
|
export { default as ListItem } from './components/List/ListItem';
|
|
30
30
|
export { default as Logo } from './components/Logo/Logo';
|
|
31
|
-
export { default as
|
|
31
|
+
export { default as Modal } from './components/Modal/Modal';
|
|
32
|
+
export { default as ModalContent } from './components/Modal/_ModalContent/ModalContent';
|
|
33
|
+
export { default as ModalDesktop } from './components/Modal/_ModalDesktop/ModalDesktop';
|
|
34
|
+
export { default as ModalMobileBottom } from './components/Modal/_ModalMobileBottom/ModalMobileBottom';
|
|
35
|
+
export { default as ModalMobileFullScreen } from './components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen';
|
|
36
|
+
export { default as Month } from './components/Calendar/components/_Month/Month';
|
|
32
37
|
export { default as NavArrow } from './components/NavArrow/NavArrow';
|
|
33
38
|
export { default as Notification } from './components/Notification/Notification';
|
|
34
|
-
export { default as NotificationBadge } from './components/Badges/
|
|
39
|
+
export { default as NotificationBadge } from './components/Badges/NotificationBadge/NotificationBadge';
|
|
35
40
|
export { default as Pagination } from './components/Pagination/Pagination';
|
|
36
41
|
export { default as PaginationButton } from './components/Pagination/components/PaginationButton/PaginationButton';
|
|
37
42
|
export { default as PaginationButtons } from './components/Pagination/components/PaginationButtons/PaginationButtons';
|
|
38
43
|
export { default as PaginationNavigation } from './components/Pagination/components/PaginationNavigation/PaginationNavigation';
|
|
39
44
|
export { default as Paragraph } from './components/Paragraph/Paragraph';
|
|
40
45
|
export { default as Preloader } from './components/Preloader/Preloader';
|
|
41
|
-
export { default as PriceBadge } from './components/Badges/
|
|
42
|
-
export { default as PromoBadge } from './components/Badges/
|
|
46
|
+
export { default as PriceBadge } from './components/Badges/PriceBadge/PriceBadge';
|
|
47
|
+
export { default as PromoBadge } from './components/Badges/PromoBadge/PromoBadge';
|
|
43
48
|
export { default as RadioButton } from './components/RadioButton/RadioButton';
|
|
44
49
|
export { default as Row } from './components/Row/Row';
|
|
50
|
+
export { default as ScrollBar } from './components/ScrollBar/ScrollBar';
|
|
45
51
|
export { default as Search } from './components/Search/Search';
|
|
46
52
|
export { default as Select } from './components/Select/Select';
|
|
47
53
|
export { default as Selector } from './components/Selector/Selector';
|
|
@@ -60,8 +66,9 @@ export { default as Tabs } from './components/Tabs/Tabs';
|
|
|
60
66
|
export { default as TextField } from './components/TextField/TextField';
|
|
61
67
|
export { default as TextLink } from './components/TextLink/TextLink';
|
|
62
68
|
export { default as Tile } from './components/Tile/Tile';
|
|
63
|
-
export { default as Timer } from './components/Badges/components/
|
|
64
|
-
export { default as TimerBadge } from './components/Badges/
|
|
69
|
+
export { default as Timer } from './components/Badges/TimerBadge/components/Timer/Timer';
|
|
70
|
+
export { default as TimerBadge } from './components/Badges/TimerBadge/TimerBadge';
|
|
65
71
|
export { default as Tooltip } from './components/Tooltip/Tooltip';
|
|
66
72
|
export { default as useGradient } from './components/Carousel/useGradient';
|
|
67
73
|
export { default as usePagination } from './components/Pagination/usePagination';
|
|
74
|
+
export { default as utils } from './components/Modal/utils/utils';
|
package/dist/es/index.js
CHANGED
|
@@ -11,13 +11,13 @@ export { default as checkBreakpointsPropTypes } from "./components/Carousel/chec
|
|
|
11
11
|
export { default as Chip } from "./components/Chips/Chip";
|
|
12
12
|
export { default as Chips } from "./components/Chips/Chips";
|
|
13
13
|
export { default as ChipsDropdown } from "./components/Chips/components/ChipsDropdown";
|
|
14
|
-
export { default as Collapse } from "./components/
|
|
14
|
+
export { default as Collapse } from "./components/_Collapse/Collapse";
|
|
15
15
|
export { default as ContentArea } from "./components/ContentArea/ContentArea";
|
|
16
16
|
export { default as ContentView } from "./components/ContentView/ContentView";
|
|
17
17
|
export { default as Counter } from "./components/Counter/Counter";
|
|
18
|
-
export { default as CounterBadge } from "./components/Badges/
|
|
18
|
+
export { default as CounterBadge } from "./components/Badges/CounterBadge/CounterBadge";
|
|
19
19
|
export { default as countGraphemes } from "./components/TextField/utils/countGraphemes";
|
|
20
|
-
export { default as Day } from "./components/Calendar/components/
|
|
20
|
+
export { default as Day } from "./components/Calendar/components/_Day/Day";
|
|
21
21
|
export { default as Grid } from "./components/Grid/Grid";
|
|
22
22
|
export { default as GridColumn } from "./components/Grid/GridColumn";
|
|
23
23
|
export { default as Header } from "./components/Header/Header";
|
|
@@ -28,20 +28,26 @@ export { default as ListDataGroup } from "./components/ListData/ListDataGroup";
|
|
|
28
28
|
export { default as ListDataSortable } from "./components/ListData/components/ListDataSortable";
|
|
29
29
|
export { default as ListItem } from "./components/List/ListItem";
|
|
30
30
|
export { default as Logo } from "./components/Logo/Logo";
|
|
31
|
-
export { default as
|
|
31
|
+
export { default as Modal } from "./components/Modal/Modal";
|
|
32
|
+
export { default as ModalContent } from "./components/Modal/_ModalContent/ModalContent";
|
|
33
|
+
export { default as ModalDesktop } from "./components/Modal/_ModalDesktop/ModalDesktop";
|
|
34
|
+
export { default as ModalMobileBottom } from "./components/Modal/_ModalMobileBottom/ModalMobileBottom";
|
|
35
|
+
export { default as ModalMobileFullScreen } from "./components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen";
|
|
36
|
+
export { default as Month } from "./components/Calendar/components/_Month/Month";
|
|
32
37
|
export { default as NavArrow } from "./components/NavArrow/NavArrow";
|
|
33
38
|
export { default as Notification } from "./components/Notification/Notification";
|
|
34
|
-
export { default as NotificationBadge } from "./components/Badges/
|
|
39
|
+
export { default as NotificationBadge } from "./components/Badges/NotificationBadge/NotificationBadge";
|
|
35
40
|
export { default as Pagination } from "./components/Pagination/Pagination";
|
|
36
41
|
export { default as PaginationButton } from "./components/Pagination/components/PaginationButton/PaginationButton";
|
|
37
42
|
export { default as PaginationButtons } from "./components/Pagination/components/PaginationButtons/PaginationButtons";
|
|
38
43
|
export { default as PaginationNavigation } from "./components/Pagination/components/PaginationNavigation/PaginationNavigation";
|
|
39
44
|
export { default as Paragraph } from "./components/Paragraph/Paragraph";
|
|
40
45
|
export { default as Preloader } from "./components/Preloader/Preloader";
|
|
41
|
-
export { default as PriceBadge } from "./components/Badges/
|
|
42
|
-
export { default as PromoBadge } from "./components/Badges/
|
|
46
|
+
export { default as PriceBadge } from "./components/Badges/PriceBadge/PriceBadge";
|
|
47
|
+
export { default as PromoBadge } from "./components/Badges/PromoBadge/PromoBadge";
|
|
43
48
|
export { default as RadioButton } from "./components/RadioButton/RadioButton";
|
|
44
49
|
export { default as Row } from "./components/Row/Row";
|
|
50
|
+
export { default as ScrollBar } from "./components/ScrollBar/ScrollBar";
|
|
45
51
|
export { default as Search } from "./components/Search/Search";
|
|
46
52
|
export { default as Select } from "./components/Select/Select";
|
|
47
53
|
export { default as Selector } from "./components/Selector/Selector";
|
|
@@ -60,8 +66,9 @@ export { default as Tabs } from "./components/Tabs/Tabs";
|
|
|
60
66
|
export { default as TextField } from "./components/TextField/TextField";
|
|
61
67
|
export { default as TextLink } from "./components/TextLink/TextLink";
|
|
62
68
|
export { default as Tile } from "./components/Tile/Tile";
|
|
63
|
-
export { default as Timer } from "./components/Badges/components/
|
|
64
|
-
export { default as TimerBadge } from "./components/Badges/
|
|
69
|
+
export { default as Timer } from "./components/Badges/TimerBadge/components/Timer/Timer";
|
|
70
|
+
export { default as TimerBadge } from "./components/Badges/TimerBadge/TimerBadge";
|
|
65
71
|
export { default as Tooltip } from "./components/Tooltip/Tooltip";
|
|
66
72
|
export { default as useGradient } from "./components/Carousel/useGradient";
|
|
67
|
-
export { default as usePagination } from "./components/Pagination/usePagination";
|
|
73
|
+
export { default as usePagination } from "./components/Pagination/usePagination";
|
|
74
|
+
export { default as utils } from "./components/Modal/utils/utils";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
.color-item
|
|
2
|
-
display: -webkit-box;
|
|
3
|
-
display: -ms-flexbox;
|
|
4
|
-
display: flex;
|
|
5
|
-
-webkit-box-orient: vertical;
|
|
6
|
-
-webkit-box-direction: normal;
|
|
7
|
-
-ms-flex-direction: column;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
-webkit-box-align: center;
|
|
10
|
-
-ms-flex-align: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
width: 120px;
|
|
13
|
-
text-align: center;
|
|
14
|
-
}
|
|
15
|
-
.color-item__container {
|
|
16
|
-
position: relative;
|
|
17
|
-
width: 48px;
|
|
18
|
-
height: 48px;
|
|
19
|
-
margin-bottom: 8px;
|
|
20
|
-
}
|
|
21
|
-
.color-item__color {
|
|
22
|
-
position: relative;
|
|
23
|
-
z-index: 0;
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
border-radius: 50%;
|
|
27
|
-
}
|
|
28
|
-
.color-item__parent-color {
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 0;
|
|
31
|
-
right: 0;
|
|
32
|
-
z-index: 1;
|
|
33
|
-
width: 16px;
|
|
34
|
-
height: 16px;
|
|
35
|
-
border-radius: 50%;
|
|
36
|
-
}
|
|
37
|
-
.color-item__name {
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
line-height: 20px;
|
|
40
|
-
}
|
|
41
|
-
.color-item__code {
|
|
42
|
-
color: var(--spbSky3);
|
|
43
|
-
font-size: 12px;
|
|
44
|
-
line-height: 18px;
|
|
45
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.color-item{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;text-align:center;width:120px}.color-item__container{height:48px;margin-bottom:8px;position:relative;width:48px}.color-item__color{border-radius:50%;height:100%;position:relative;width:100%;z-index:0}.color-item__parent-color{border-radius:50%;height:16px;position:absolute;right:0;top:0;width:16px;z-index:1}.color-item__name{font-size:14px;line-height:20px}.color-item__code{color:var(--spbSky3);font-size:12px;line-height:18px}
|
|
@@ -1,29 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
4
|
-
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
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; }
|
|
17
|
-
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
12
|
var cn = (0, _uiHelpers.cnCreate)('color-item');
|
|
19
|
-
|
|
20
13
|
var ColorItem = function ColorItem(_ref) {
|
|
21
14
|
var colorCode = _ref.colorCode,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
colorName = _ref.colorName,
|
|
16
|
+
parentColorCode = _ref.parentColorCode,
|
|
17
|
+
gradient = _ref.gradient,
|
|
18
|
+
border = _ref.border,
|
|
19
|
+
className = _ref.className;
|
|
27
20
|
return /*#__PURE__*/React.createElement("div", {
|
|
28
21
|
className: cn([className])
|
|
29
22
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -45,6 +38,4 @@ var ColorItem = function ColorItem(_ref) {
|
|
|
45
38
|
className: cn('code')
|
|
46
39
|
}, colorCode));
|
|
47
40
|
};
|
|
48
|
-
|
|
49
|
-
var _default = ColorItem;
|
|
50
|
-
exports["default"] = _default;
|
|
41
|
+
var _default = exports["default"] = ColorItem;
|
|
@@ -1,233 +1 @@
|
|
|
1
|
-
.colors__inner {
|
|
2
|
-
margin: 0 -80px;
|
|
3
|
-
padding: 56px 80px 40px;
|
|
4
|
-
background-color: var(--spbSky0);
|
|
5
|
-
-webkit-transition: background-color 0.3s;
|
|
6
|
-
transition: background-color 0.3s;
|
|
7
|
-
}
|
|
8
|
-
@media screen and (max-width: 1120px) {
|
|
9
|
-
.colors__inner {
|
|
10
|
-
margin: 0 -24px;
|
|
11
|
-
padding: 24px;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
@media screen and (max-width: 350px) {
|
|
15
|
-
.colors__inner {
|
|
16
|
-
margin: 0 -15px;
|
|
17
|
-
padding: 15px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
.colors__title {
|
|
21
|
-
margin-bottom: 8px;
|
|
22
|
-
}
|
|
23
|
-
.colors__title-note {
|
|
24
|
-
margin-bottom: 60px;
|
|
25
|
-
}
|
|
26
|
-
.colors__group-title {
|
|
27
|
-
margin-bottom: 24px;
|
|
28
|
-
}
|
|
29
|
-
@media screen and (min-width: 768px) {
|
|
30
|
-
.colors__group-title {
|
|
31
|
-
margin-bottom: 36px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
@media screen and (max-width: 1023px) {
|
|
35
|
-
.colors__basic-group {
|
|
36
|
-
display: -webkit-box;
|
|
37
|
-
display: -ms-flexbox;
|
|
38
|
-
display: flex;
|
|
39
|
-
-webkit-box-orient: vertical;
|
|
40
|
-
-webkit-box-direction: normal;
|
|
41
|
-
-ms-flex-direction: column;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
margin-bottom: 24px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
.colors__basic-group:last-child {
|
|
47
|
-
margin-bottom: 0;
|
|
48
|
-
}
|
|
49
|
-
@media screen and (min-width: 768px) {
|
|
50
|
-
.colors__basic-group:last-child {
|
|
51
|
-
padding-left: 24px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.colors__list,
|
|
55
|
-
.colors__group {
|
|
56
|
-
display: -webkit-box;
|
|
57
|
-
display: -ms-flexbox;
|
|
58
|
-
display: flex;
|
|
59
|
-
-webkit-box-pack: justify;
|
|
60
|
-
-ms-flex-pack: justify;
|
|
61
|
-
justify-content: space-between;
|
|
62
|
-
}
|
|
63
|
-
@media screen and (max-width: 1023px) {
|
|
64
|
-
.colors__list,
|
|
65
|
-
.colors__group {
|
|
66
|
-
-ms-flex-wrap: wrap;
|
|
67
|
-
flex-wrap: wrap;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
.colors__list {
|
|
71
|
-
-webkit-box-pack: space-evenly;
|
|
72
|
-
-ms-flex-pack: space-evenly;
|
|
73
|
-
justify-content: space-evenly;
|
|
74
|
-
padding-bottom: 12px;
|
|
75
|
-
}
|
|
76
|
-
@media screen and (max-width: 1023px) {
|
|
77
|
-
.colors__list {
|
|
78
|
-
-webkit-box-ordinal-group: 3;
|
|
79
|
-
-ms-flex-order: 2;
|
|
80
|
-
order: 2;
|
|
81
|
-
padding-bottom: 0;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
.colors__list_soft {
|
|
85
|
-
-ms-flex-wrap: wrap;
|
|
86
|
-
flex-wrap: wrap;
|
|
87
|
-
}
|
|
88
|
-
.colors__description {
|
|
89
|
-
position: relative;
|
|
90
|
-
padding-top: 11px;
|
|
91
|
-
color: var(--spbSky3);
|
|
92
|
-
font-size: 12px;
|
|
93
|
-
line-height: 18px;
|
|
94
|
-
text-align: center;
|
|
95
|
-
-webkit-transition: color 0.3s;
|
|
96
|
-
transition: color 0.3s;
|
|
97
|
-
}
|
|
98
|
-
@media screen and (max-width: 1023px) {
|
|
99
|
-
.colors__description {
|
|
100
|
-
-webkit-box-ordinal-group: 1;
|
|
101
|
-
-ms-flex-order: 0;
|
|
102
|
-
order: 0;
|
|
103
|
-
margin-bottom: 18px;
|
|
104
|
-
padding-top: 0;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
.colors__container {
|
|
108
|
-
max-width: 978px;
|
|
109
|
-
}
|
|
110
|
-
.colors__line {
|
|
111
|
-
display: -webkit-box;
|
|
112
|
-
display: -ms-flexbox;
|
|
113
|
-
display: flex;
|
|
114
|
-
-webkit-box-orient: vertical;
|
|
115
|
-
-webkit-box-direction: normal;
|
|
116
|
-
-ms-flex-direction: column;
|
|
117
|
-
flex-direction: column;
|
|
118
|
-
margin-bottom: 18px;
|
|
119
|
-
}
|
|
120
|
-
@media screen and (min-width: 768px) {
|
|
121
|
-
.colors__line {
|
|
122
|
-
margin-bottom: 48px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
.colors__item {
|
|
126
|
-
margin-bottom: 18px;
|
|
127
|
-
}
|
|
128
|
-
@media screen and (min-width: 1024px) {
|
|
129
|
-
.colors__item {
|
|
130
|
-
margin-right: 24px;
|
|
131
|
-
margin-bottom: 0;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
.colors__item:last-child {
|
|
135
|
-
margin-right: 0;
|
|
136
|
-
}
|
|
137
|
-
.colors__item_soft {
|
|
138
|
-
display: -webkit-box;
|
|
139
|
-
display: -ms-flexbox;
|
|
140
|
-
display: flex;
|
|
141
|
-
-webkit-box-pack: center;
|
|
142
|
-
-ms-flex-pack: center;
|
|
143
|
-
justify-content: center;
|
|
144
|
-
margin-right: 0;
|
|
145
|
-
}
|
|
146
|
-
@media screen and (min-width: 1024px) {
|
|
147
|
-
.colors__item_soft {
|
|
148
|
-
width: 14.28571429%;
|
|
149
|
-
min-width: 120px;
|
|
150
|
-
margin-bottom: 36px;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
.colors__diagram {
|
|
154
|
-
max-width: 259px;
|
|
155
|
-
margin: 0 auto 24px;
|
|
156
|
-
}
|
|
157
|
-
@media screen and (min-width: 1024px) {
|
|
158
|
-
.colors__diagram {
|
|
159
|
-
width: 259px;
|
|
160
|
-
min-width: 259px;
|
|
161
|
-
height: 259px;
|
|
162
|
-
margin: 0 40px 0 0;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
.colors__soft {
|
|
166
|
-
padding: 24px 16px;
|
|
167
|
-
}
|
|
168
|
-
@media screen and (min-width: 1024px) {
|
|
169
|
-
.colors__soft {
|
|
170
|
-
padding: 36px 32px 30px;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
.colors__soft-list {
|
|
174
|
-
display: -webkit-box;
|
|
175
|
-
display: -ms-flexbox;
|
|
176
|
-
display: flex;
|
|
177
|
-
-webkit-box-orient: vertical;
|
|
178
|
-
-webkit-box-direction: normal;
|
|
179
|
-
-ms-flex-direction: column;
|
|
180
|
-
flex-direction: column;
|
|
181
|
-
-webkit-box-flex: 1;
|
|
182
|
-
-ms-flex-positive: 1;
|
|
183
|
-
flex-grow: 1;
|
|
184
|
-
}
|
|
185
|
-
.colors__underline {
|
|
186
|
-
position: relative;
|
|
187
|
-
width: 100%;
|
|
188
|
-
height: 8px;
|
|
189
|
-
}
|
|
190
|
-
@media screen and (max-width: 1023px) {
|
|
191
|
-
.colors__underline {
|
|
192
|
-
display: none;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
.colors__pointer {
|
|
196
|
-
position: absolute;
|
|
197
|
-
top: 50%;
|
|
198
|
-
display: block;
|
|
199
|
-
width: 100%;
|
|
200
|
-
height: 1px;
|
|
201
|
-
background-color: var(--spbSky2);
|
|
202
|
-
-webkit-transform: translateY(-50%);
|
|
203
|
-
transform: translateY(-50%);
|
|
204
|
-
}
|
|
205
|
-
.colors__underline:after,
|
|
206
|
-
.colors__underline:before,
|
|
207
|
-
.colors__pointer:after {
|
|
208
|
-
content: '';
|
|
209
|
-
position: absolute;
|
|
210
|
-
width: 1px;
|
|
211
|
-
height: 4px;
|
|
212
|
-
background-color: var(--spbSky2);
|
|
213
|
-
}
|
|
214
|
-
.colors__underline:after,
|
|
215
|
-
.colors__underline:before {
|
|
216
|
-
top: 0;
|
|
217
|
-
border-top-left-radius: 8px;
|
|
218
|
-
border-top-right-radius: 8px;
|
|
219
|
-
}
|
|
220
|
-
.colors__underline:before {
|
|
221
|
-
left: 0;
|
|
222
|
-
}
|
|
223
|
-
.colors__underline:after {
|
|
224
|
-
right: 0;
|
|
225
|
-
}
|
|
226
|
-
.colors__pointer:after {
|
|
227
|
-
top: 100%;
|
|
228
|
-
left: 50%;
|
|
229
|
-
border-bottom-right-radius: 8px;
|
|
230
|
-
border-bottom-left-radius: 8px;
|
|
231
|
-
-webkit-transform: translateX(-50%);
|
|
232
|
-
transform: translateX(-50%);
|
|
233
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.colors__inner{background-color:var(--spbSky0);margin:0 -80px;padding:56px 80px 40px;-webkit-transition:background-color .3s;transition:background-color .3s}@media screen and (max-width:1120px){.colors__inner{margin:0 -24px;padding:24px}}@media screen and (max-width:350px){.colors__inner{margin:0 -15px;padding:15px}}.colors__title{margin-bottom:8px}.colors__title-note{margin-bottom:60px}.colors__group-title{margin-bottom:24px}@media screen and (min-width:768px){.colors__group-title{margin-bottom:36px}}@media screen and (max-width:1023px){.colors__basic-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-bottom:24px}}.colors__basic-group:last-child{margin-bottom:0}@media screen and (min-width:768px){.colors__basic-group:last-child{padding-left:24px}}.colors__group,.colors__list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width:1023px){.colors__group,.colors__list{-ms-flex-wrap:wrap;flex-wrap:wrap}}.colors__list{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;padding-bottom:12px}@media screen and (max-width:1023px){.colors__list{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;padding-bottom:0}}.colors__list_soft{-ms-flex-wrap:wrap;flex-wrap:wrap}.colors__description{color:var(--spbSky3);font-size:12px;line-height:18px;padding-top:11px;position:relative;text-align:center;-webkit-transition:color .3s;transition:color .3s}@media screen and (max-width:1023px){.colors__description{-webkit-box-ordinal-group:1;-ms-flex-order:0;margin-bottom:18px;order:0;padding-top:0}}.colors__container{max-width:978px}.colors__line{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-bottom:18px}@media screen and (min-width:768px){.colors__line{margin-bottom:48px}}.colors__item{margin-bottom:18px}@media screen and (min-width:1024px){.colors__item{margin-bottom:0;margin-right:24px}}.colors__item:last-child{margin-right:0}.colors__item_soft{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:0}@media screen and (min-width:1024px){.colors__item_soft{margin-bottom:36px;min-width:120px;width:100%/7}}.colors__diagram{margin:0 auto 24px;max-width:259px}@media screen and (min-width:1024px){.colors__diagram{height:259px;margin:0 40px 0 0;min-width:259px;width:259px}}.colors__soft{padding:24px 16px}@media screen and (min-width:1024px){.colors__soft{padding:36px 32px 30px}}.colors__soft-list{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-flex:1;-ms-flex-positive:1;flex-grow:1}.colors__underline{height:8px;position:relative;width:100%}@media screen and (max-width:1023px){.colors__underline{display:none}}.colors__pointer{background-color:var(--spbSky2);display:block;height:1px;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:100%}.colors__pointer:after,.colors__underline:after,.colors__underline:before{background-color:var(--spbSky2);content:"";height:4px;position:absolute;width:1px}.colors__underline:after,.colors__underline:before{border-top-left-radius:8px;border-top-right-radius:8px;top:0}.colors__underline:before{left:0}.colors__underline:after{right:0}.colors__pointer:after{border-bottom-left-radius:8px;border-bottom-right-radius:8px;left:50%;top:100%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}
|