@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,34 +1,20 @@
|
|
|
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
|
-
var
|
|
15
|
-
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
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; }
|
|
20
12
|
var cn = (0, _uiHelpers.cnCreate)('mfui-list-item');
|
|
21
|
-
|
|
22
13
|
var ListItem = function ListItem(_ref) {
|
|
23
14
|
var className = _ref.className,
|
|
24
|
-
|
|
15
|
+
children = _ref.children;
|
|
25
16
|
return /*#__PURE__*/React.createElement("li", {
|
|
26
17
|
className: cn([className])
|
|
27
18
|
}, children);
|
|
28
19
|
};
|
|
29
|
-
|
|
30
|
-
ListItem.propTypes = {
|
|
31
|
-
className: PropTypes.string
|
|
32
|
-
};
|
|
33
|
-
var _default = ListItem;
|
|
34
|
-
exports["default"] = _default;
|
|
20
|
+
var _default = exports["default"] = ListItem;
|
|
@@ -1,162 +1 @@
|
|
|
1
|
-
.mfui-list-data {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: -webkit-box;
|
|
4
|
-
display: -ms-flexbox;
|
|
5
|
-
display: flex;
|
|
6
|
-
-webkit-box-align: center;
|
|
7
|
-
-ms-flex-align: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
-webkit-box-sizing: border-box;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
width: 100%;
|
|
12
|
-
height: -webkit-fit-content;
|
|
13
|
-
height: -moz-fit-content;
|
|
14
|
-
height: fit-content;
|
|
15
|
-
padding: 8px 16px 8px 12px;
|
|
16
|
-
border: none;
|
|
17
|
-
color: var(--content);
|
|
18
|
-
text-decoration: none;
|
|
19
|
-
background-color: transparent;
|
|
20
|
-
-webkit-transition: background-color, opacity;
|
|
21
|
-
transition: background-color, opacity;
|
|
22
|
-
-webkit-transition-duration: 0.3s;
|
|
23
|
-
transition-duration: 0.3s;
|
|
24
|
-
}
|
|
25
|
-
.mfui-list-data__icon-container {
|
|
26
|
-
display: -webkit-box;
|
|
27
|
-
display: -ms-flexbox;
|
|
28
|
-
display: flex;
|
|
29
|
-
-ms-flex-negative: 0;
|
|
30
|
-
flex-shrink: 0;
|
|
31
|
-
-webkit-box-align: center;
|
|
32
|
-
-ms-flex-align: center;
|
|
33
|
-
align-items: center;
|
|
34
|
-
-webkit-box-pack: center;
|
|
35
|
-
-ms-flex-pack: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
width: 40px;
|
|
38
|
-
height: 40px;
|
|
39
|
-
margin-right: 8px;
|
|
40
|
-
}
|
|
41
|
-
.mfui-list-data__icon-container svg {
|
|
42
|
-
fill: var(--content);
|
|
43
|
-
}
|
|
44
|
-
.mfui-list-data__icon-container_colored {
|
|
45
|
-
border-radius: 50%;
|
|
46
|
-
background-color: var(--brandGreen20);
|
|
47
|
-
}
|
|
48
|
-
.mfui-list-data__icon-container_colored svg {
|
|
49
|
-
fill: var(--brandGreen);
|
|
50
|
-
}
|
|
51
|
-
.mfui-list-data__icon {
|
|
52
|
-
width: 32px;
|
|
53
|
-
min-width: 32px;
|
|
54
|
-
height: 32px;
|
|
55
|
-
}
|
|
56
|
-
.mfui-list-data__icon_small {
|
|
57
|
-
width: 20px;
|
|
58
|
-
min-width: 20px;
|
|
59
|
-
height: 20px;
|
|
60
|
-
}
|
|
61
|
-
.mfui-list-data__header {
|
|
62
|
-
display: grid;
|
|
63
|
-
grid-template-columns: 100%;
|
|
64
|
-
margin-right: auto;
|
|
65
|
-
padding-left: 4px;
|
|
66
|
-
}
|
|
67
|
-
.mfui-list-data__header_gap {
|
|
68
|
-
padding-right: 8px;
|
|
69
|
-
}
|
|
70
|
-
.mfui-list-data__header_align {
|
|
71
|
-
-ms-flex-item-align: end;
|
|
72
|
-
align-self: flex-end;
|
|
73
|
-
}
|
|
74
|
-
.mfui-list-data__title {
|
|
75
|
-
font-size: 15px;
|
|
76
|
-
line-height: 24px;
|
|
77
|
-
/* stylelint-disable-next-line value-no-vendor-prefix */
|
|
78
|
-
display: -webkit-box;
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
white-space: normal;
|
|
81
|
-
text-overflow: ellipsis;
|
|
82
|
-
-webkit-box-orient: vertical;
|
|
83
|
-
-webkit-line-clamp: 2;
|
|
84
|
-
font-weight: 500;
|
|
85
|
-
line-height: 18px;
|
|
86
|
-
}
|
|
87
|
-
.mfui-list-data__title-link {
|
|
88
|
-
color: var(--content);
|
|
89
|
-
}
|
|
90
|
-
.mfui-list-data__sub-title {
|
|
91
|
-
font-size: 12px;
|
|
92
|
-
line-height: 18px;
|
|
93
|
-
margin-top: 4px;
|
|
94
|
-
overflow: hidden;
|
|
95
|
-
color: var(--spbSky3);
|
|
96
|
-
font-weight: 400;
|
|
97
|
-
white-space: nowrap;
|
|
98
|
-
text-overflow: ellipsis;
|
|
99
|
-
}
|
|
100
|
-
.mfui-list-data__value-container {
|
|
101
|
-
display: grid;
|
|
102
|
-
grid-template-columns: -webkit-min-content;
|
|
103
|
-
grid-template-columns: min-content;
|
|
104
|
-
align-self: flex-start;
|
|
105
|
-
padding-left: 12px;
|
|
106
|
-
}
|
|
107
|
-
.mfui-list-data__value {
|
|
108
|
-
font-size: 15px;
|
|
109
|
-
line-height: 24px;
|
|
110
|
-
/* stylelint-disable-next-line value-no-vendor-prefix */
|
|
111
|
-
display: -webkit-box;
|
|
112
|
-
overflow: hidden;
|
|
113
|
-
white-space: normal;
|
|
114
|
-
text-overflow: ellipsis;
|
|
115
|
-
-webkit-box-orient: vertical;
|
|
116
|
-
-webkit-line-clamp: 2;
|
|
117
|
-
max-width: 110px;
|
|
118
|
-
line-height: 18px;
|
|
119
|
-
}
|
|
120
|
-
.mfui-list-data__value_color_green {
|
|
121
|
-
color: var(--brandGreen);
|
|
122
|
-
}
|
|
123
|
-
.mfui-list-data__sub-value {
|
|
124
|
-
font-size: 12px;
|
|
125
|
-
line-height: 18px;
|
|
126
|
-
max-width: 110px;
|
|
127
|
-
margin-top: 4px;
|
|
128
|
-
overflow: hidden;
|
|
129
|
-
color: var(--spbSky3);
|
|
130
|
-
font-weight: 400;
|
|
131
|
-
white-space: nowrap;
|
|
132
|
-
text-overflow: ellipsis;
|
|
133
|
-
}
|
|
134
|
-
.mfui-list-data__action-icon {
|
|
135
|
-
fill: var(--spbSky3);
|
|
136
|
-
}
|
|
137
|
-
.mfui-list-data__action-icon_active {
|
|
138
|
-
cursor: pointer;
|
|
139
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
140
|
-
-webkit-transition: fill 0.3s;
|
|
141
|
-
transition: fill 0.3s;
|
|
142
|
-
}
|
|
143
|
-
.mfui-list-data__action-icon_active:hover {
|
|
144
|
-
fill: var(--content);
|
|
145
|
-
}
|
|
146
|
-
.mfui-list-data__children_event-none {
|
|
147
|
-
pointer-events: none;
|
|
148
|
-
}
|
|
149
|
-
.mfui-list-data_active:not(.mfui-list-data_disabled) {
|
|
150
|
-
border-radius: 12px;
|
|
151
|
-
cursor: pointer;
|
|
152
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
153
|
-
}
|
|
154
|
-
.mfui-list-data_active:not(.mfui-list-data_disabled):hover {
|
|
155
|
-
background-color: var(--spbSky0);
|
|
156
|
-
}
|
|
157
|
-
.mfui-list-data_disabled {
|
|
158
|
-
opacity: 0.5;
|
|
159
|
-
}
|
|
160
|
-
.mfui-list-data_disabled .mfui-list-data__title-link {
|
|
161
|
-
pointer-events: none;
|
|
162
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-list-data{background-color:transparent;border:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:8px 16px 8px 12px;position:relative;text-decoration:none;-webkit-transition:background-color,opacity;transition:background-color,opacity;-webkit-transition-duration:.3s;transition-duration:.3s;width:100%}.mfui-list-data,.mfui-list-data__icon-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-list-data__icon-container{-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;height:40px;justify-content:center;margin-right:8px;width:40px}.mfui-list-data__icon-container svg{fill:var(--content)}.mfui-list-data__icon-container_colored{background-color:var(--brandGreen20);border-radius:50%}.mfui-list-data__icon-container_colored svg{fill:var(--brandGreen)}.mfui-list-data__icon{height:32px;min-width:32px;width:32px}.mfui-list-data__icon_small{height:20px;min-width:20px;width:20px}.mfui-list-data__header{display:grid;grid-template-columns:100%;margin-right:auto;padding-left:4px}.mfui-list-data__header_gap{padding-right:8px}.mfui-list-data__header_align{-ms-flex-item-align:end;align-self:flex-end}.mfui-list-data__title{display:-webkit-box;font-size:15px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-weight:500;line-height:18px}.mfui-list-data__title-link{color:var(--content)}.mfui-list-data__sub-title{color:var(--spbSky3);font-size:12px;font-weight:400;line-height:18px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfui-list-data__value-container{align-self:flex-start;display:grid;grid-template-columns:-webkit-min-content;grid-template-columns:min-content;padding-left:12px}.mfui-list-data__value{display:-webkit-box;font-size:15px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:18px;max-width:110px}.mfui-list-data__value_color_green{color:var(--brandGreen)}.mfui-list-data__sub-value{color:var(--spbSky3);font-size:12px;font-weight:400;line-height:18px;margin-top:4px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfui-list-data__action-icon{fill:var(--spbSky3)}.mfui-list-data__action-icon_active{cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-transition:fill .3s;transition:fill .3s}.mfui-list-data__action-icon_active:hover{fill:var(--content)}.mfui-list-data__children_event-none{pointer-events:none}.mfui-list-data_active:not(.mfui-list-data_disabled){border-radius:12px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-list-data_active:not(.mfui-list-data_disabled):hover{background-color:var(--spbSky0)}.mfui-list-data_disabled{opacity:.5}.mfui-list-data_disabled .mfui-list-data__title-link{pointer-events:none}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare type TitlePropsType = {
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './ListData.scss';
|
|
3
|
+
type Target = '_self' | '_blank' | '_parent' | '_top';
|
|
4
|
+
export type TitlePropsType = {
|
|
6
5
|
/** Текст заголовка */
|
|
7
6
|
text: string;
|
|
8
7
|
/** Ссылка */
|
|
@@ -16,12 +15,12 @@ declare const ValueColors: {
|
|
|
16
15
|
readonly DEFAULT: "default";
|
|
17
16
|
readonly GREEN: "green";
|
|
18
17
|
};
|
|
19
|
-
export
|
|
18
|
+
export type ValueColorsType = (typeof ValueColors)[keyof typeof ValueColors];
|
|
20
19
|
declare const Actions: {
|
|
21
20
|
readonly DELETE: "delete";
|
|
22
21
|
readonly CONTROL: "control";
|
|
23
22
|
};
|
|
24
|
-
export
|
|
23
|
+
export type ActionsType = (typeof Actions)[keyof typeof Actions];
|
|
25
24
|
export interface IListDataProps {
|
|
26
25
|
/** Заголовок */
|
|
27
26
|
title: string | TitlePropsType;
|
|
@@ -64,31 +63,4 @@ export interface IListDataProps {
|
|
|
64
63
|
children?: React.ReactNode;
|
|
65
64
|
}
|
|
66
65
|
declare const ListData: React.FC<IListDataProps>;
|
|
67
|
-
export declare const ListDataPropType: {
|
|
68
|
-
title: PropTypes.Validator<string | PropTypes.InferProps<{
|
|
69
|
-
text: PropTypes.Validator<string>;
|
|
70
|
-
href: PropTypes.Validator<string>;
|
|
71
|
-
target: PropTypes.Requireable<string>;
|
|
72
|
-
rel: PropTypes.Requireable<string>;
|
|
73
|
-
}>>;
|
|
74
|
-
subTitle: PropTypes.Requireable<string>;
|
|
75
|
-
value: PropTypes.Requireable<string>;
|
|
76
|
-
valueColor: PropTypes.Requireable<"default" | "green">;
|
|
77
|
-
subValue: PropTypes.Requireable<string>;
|
|
78
|
-
icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
79
|
-
isIconColored: PropTypes.Requireable<boolean>;
|
|
80
|
-
avatar: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
81
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
82
|
-
actionType: PropTypes.Requireable<"delete" | "control">;
|
|
83
|
-
onAction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
84
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
85
|
-
className: PropTypes.Requireable<string>;
|
|
86
|
-
classes: PropTypes.Requireable<{
|
|
87
|
-
[x: string]: string | null | undefined;
|
|
88
|
-
}>;
|
|
89
|
-
dataAttrs: PropTypes.Requireable<{
|
|
90
|
-
[x: string]: object | null | undefined;
|
|
91
|
-
}>;
|
|
92
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
93
|
-
};
|
|
94
66
|
export default ListData;
|
|
@@ -1,60 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof3(
|
|
4
|
-
|
|
3
|
+
function _typeof3(o) { "@babel/helpers - typeof"; return _typeof3 = "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; }, _typeof3(o); }
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
|
-
exports["default"] =
|
|
9
|
-
|
|
7
|
+
exports["default"] = void 0;
|
|
10
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
|
-
|
|
12
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
-
|
|
14
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
-
|
|
16
11
|
require("core-js/modules/es.parse-int.js");
|
|
17
|
-
|
|
18
|
-
require("core-js/modules/es.object.values.js");
|
|
19
|
-
|
|
20
|
-
var _react = _interopRequireDefault(require("react"));
|
|
21
|
-
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
22
13
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(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; }
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
-
|
|
14
|
+
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); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(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; }
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
32
17
|
var DeleteIcon = function DeleteIcon(props) {
|
|
33
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
34
19
|
viewBox: "0 0 20 20"
|
|
35
|
-
}, props), /*#__PURE__*/
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
36
21
|
d: "M16 4h-3.2c-.4-1.2-1.5-2-2.8-2s-2.4.8-2.8 2H4v4h1l1 10h8l1-10h1V4zM5 5h3v-.4C8.2 3.7 9.1 3 10 3s1.8.7 2 1.6V5h3v2H5V5zm8 12H7l-.9-9H14l-1 9z"
|
|
37
22
|
}));
|
|
38
23
|
};
|
|
39
|
-
|
|
40
24
|
var NothingIcon = function NothingIcon(props) {
|
|
41
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
42
26
|
viewBox: "0 0 32 32"
|
|
43
|
-
}, props), /*#__PURE__*/
|
|
27
|
+
}, props), /*#__PURE__*/React.createElement("circle", {
|
|
44
28
|
cx: 21,
|
|
45
29
|
cy: 16,
|
|
46
30
|
r: 1.5
|
|
47
|
-
}), /*#__PURE__*/
|
|
31
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
48
32
|
cx: 16,
|
|
49
33
|
cy: 16,
|
|
50
34
|
r: 1.5
|
|
51
|
-
}), /*#__PURE__*/
|
|
35
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
52
36
|
cx: 11,
|
|
53
37
|
cy: 16,
|
|
54
38
|
r: 1.5
|
|
55
39
|
}));
|
|
56
40
|
};
|
|
57
|
-
|
|
58
41
|
var LINE_COUNT = 2;
|
|
59
42
|
var ValueColors = {
|
|
60
43
|
DEFAULT: 'default',
|
|
@@ -65,94 +48,81 @@ var Actions = {
|
|
|
65
48
|
CONTROL: 'control'
|
|
66
49
|
};
|
|
67
50
|
var cn = (0, _uiHelpers.cnCreate)('mfui-list-data');
|
|
68
|
-
|
|
69
51
|
var ListData = function ListData(_ref) {
|
|
70
52
|
var title = _ref.title,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
valueAlignment = _React$useState2[0],
|
|
95
|
-
setValueAlignment = _React$useState2[1];
|
|
96
|
-
|
|
53
|
+
subTitle = _ref.subTitle,
|
|
54
|
+
value = _ref.value,
|
|
55
|
+
valueColor = _ref.valueColor,
|
|
56
|
+
subValue = _ref.subValue,
|
|
57
|
+
icon = _ref.icon,
|
|
58
|
+
_ref$isIconColored = _ref.isIconColored,
|
|
59
|
+
isIconColored = _ref$isIconColored === void 0 ? false : _ref$isIconColored,
|
|
60
|
+
avatar = _ref.avatar,
|
|
61
|
+
_ref$disabled = _ref.disabled,
|
|
62
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
63
|
+
actionType = _ref.actionType,
|
|
64
|
+
onClick = _ref.onClick,
|
|
65
|
+
onAction = _ref.onAction,
|
|
66
|
+
className = _ref.className,
|
|
67
|
+
_ref$classes = _ref.classes,
|
|
68
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
69
|
+
dataAttrs = _ref.dataAttrs,
|
|
70
|
+
children = _ref.children;
|
|
71
|
+
var valueRef = React.useRef(null);
|
|
72
|
+
var _React$useState = React.useState('right'),
|
|
73
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
74
|
+
valueAlignment = _React$useState2[0],
|
|
75
|
+
setValueAlignment = _React$useState2[1];
|
|
97
76
|
var isActive = !!onClick && !((0, _typeof2["default"])(title) === 'object' && (title === null || title === void 0 ? void 0 : title.href));
|
|
98
77
|
var showActionElement = !!actionType || !!children;
|
|
99
|
-
|
|
100
78
|
var handleClick = function handleClick(e) {
|
|
101
79
|
!disabled && (onClick === null || onClick === void 0 ? void 0 : onClick(e));
|
|
102
80
|
};
|
|
103
|
-
|
|
104
|
-
var handleAction = _react["default"].useCallback(function (e) {
|
|
81
|
+
var handleAction = React.useCallback(function (e) {
|
|
105
82
|
e.stopPropagation();
|
|
106
83
|
!disabled && (onAction === null || onAction === void 0 ? void 0 : onAction(e));
|
|
107
84
|
}, [disabled, onAction]);
|
|
108
|
-
|
|
109
|
-
_react["default"].useEffect(function () {
|
|
85
|
+
React.useEffect(function () {
|
|
110
86
|
if (!valueRef.current) {
|
|
111
87
|
return;
|
|
112
88
|
}
|
|
113
|
-
|
|
114
89
|
var lineHeight = parseInt(getComputedStyle(valueRef.current).lineHeight, 10);
|
|
115
90
|
var actualHeight = valueRef.current.offsetHeight;
|
|
116
91
|
var currentLineCount = actualHeight / lineHeight;
|
|
117
92
|
setValueAlignment(currentLineCount >= LINE_COUNT ? 'left' : 'right');
|
|
118
93
|
}, [value]);
|
|
119
|
-
|
|
120
|
-
var renderedTitle = /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
|
+
var renderedTitle = /*#__PURE__*/React.createElement("div", {
|
|
121
95
|
className: cn('title', [classes.title])
|
|
122
|
-
}, typeof title === 'string' ? title : /*#__PURE__*/
|
|
96
|
+
}, typeof title === 'string' ? title : /*#__PURE__*/React.createElement("a", {
|
|
123
97
|
className: cn('title-link'),
|
|
124
98
|
href: title.href,
|
|
125
99
|
target: title === null || title === void 0 ? void 0 : title.target,
|
|
126
100
|
rel: title === null || title === void 0 ? void 0 : title.rel
|
|
127
101
|
}, title.text));
|
|
128
|
-
|
|
129
102
|
var renderIcon = function renderIcon() {
|
|
130
103
|
if (!icon && !avatar) {
|
|
131
104
|
return null;
|
|
132
105
|
}
|
|
133
|
-
|
|
134
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
135
107
|
className: cn('icon-container', {
|
|
136
108
|
colored: isIconColored && !avatar
|
|
137
109
|
})
|
|
138
|
-
}, avatar || /*#__PURE__*/
|
|
110
|
+
}, avatar || /*#__PURE__*/React.createElement("div", {
|
|
139
111
|
className: cn('icon')
|
|
140
112
|
}, icon));
|
|
141
113
|
};
|
|
142
|
-
|
|
143
114
|
var renderExtraContent = function renderExtraContent() {
|
|
144
115
|
if (children) {
|
|
145
|
-
return /*#__PURE__*/
|
|
116
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
146
117
|
className: cn('children', {
|
|
147
118
|
'event-none': !!onClick
|
|
148
119
|
})
|
|
149
120
|
}, children);
|
|
150
121
|
}
|
|
151
|
-
|
|
152
122
|
if (value) {
|
|
153
|
-
return /*#__PURE__*/
|
|
123
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
154
124
|
className: cn('value-container')
|
|
155
|
-
}, /*#__PURE__*/
|
|
125
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
156
126
|
className: cn('value', {
|
|
157
127
|
color: valueColor
|
|
158
128
|
}),
|
|
@@ -160,70 +130,40 @@ var ListData = function ListData(_ref) {
|
|
|
160
130
|
style: {
|
|
161
131
|
textAlign: valueAlignment
|
|
162
132
|
}
|
|
163
|
-
}, (0, _uiHelpers.convert)(value, _uiHelpers.textConvertConfig)), !!subValue && /*#__PURE__*/
|
|
133
|
+
}, (0, _uiHelpers.convert)(value, _uiHelpers.textConvertConfig)), !!subValue && /*#__PURE__*/React.createElement("div", {
|
|
164
134
|
className: cn('sub-value')
|
|
165
135
|
}, subValue));
|
|
166
136
|
}
|
|
167
|
-
|
|
168
137
|
if (actionType) {
|
|
169
138
|
var isDelete = actionType === Actions.DELETE;
|
|
170
139
|
var ActionIcon = isDelete ? DeleteIcon : NothingIcon;
|
|
171
|
-
return /*#__PURE__*/
|
|
140
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
172
141
|
className: cn('icon', {
|
|
173
142
|
small: isDelete
|
|
174
143
|
})
|
|
175
144
|
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.actionIcon), {
|
|
176
145
|
onClick: handleAction
|
|
177
|
-
}), /*#__PURE__*/
|
|
146
|
+
}), /*#__PURE__*/React.createElement(ActionIcon, {
|
|
178
147
|
className: cn('action-icon', {
|
|
179
148
|
active: !disabled
|
|
180
149
|
})
|
|
181
150
|
}));
|
|
182
151
|
}
|
|
183
|
-
|
|
184
152
|
return null;
|
|
185
153
|
};
|
|
186
|
-
|
|
187
|
-
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
154
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
188
155
|
className: cn({
|
|
189
156
|
active: isActive,
|
|
190
157
|
disabled: disabled
|
|
191
158
|
}, [className, classes.root]),
|
|
192
159
|
onClick: handleClick
|
|
193
|
-
}), renderIcon(), /*#__PURE__*/
|
|
160
|
+
}), renderIcon(), /*#__PURE__*/React.createElement("div", {
|
|
194
161
|
className: cn('header', {
|
|
195
162
|
gap: showActionElement,
|
|
196
163
|
align: !!subTitle
|
|
197
164
|
})
|
|
198
|
-
}, renderedTitle, !!subTitle && /*#__PURE__*/
|
|
165
|
+
}, renderedTitle, !!subTitle && /*#__PURE__*/React.createElement("div", {
|
|
199
166
|
className: cn('sub-title', [classes.subtitle])
|
|
200
167
|
}, subTitle)), renderExtraContent());
|
|
201
168
|
};
|
|
202
|
-
|
|
203
|
-
var ListDataPropType = {
|
|
204
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
205
|
-
text: PropTypes.string.isRequired,
|
|
206
|
-
href: PropTypes.string.isRequired,
|
|
207
|
-
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
|
|
208
|
-
rel: PropTypes.string
|
|
209
|
-
})]).isRequired,
|
|
210
|
-
subTitle: PropTypes.string,
|
|
211
|
-
value: PropTypes.string,
|
|
212
|
-
valueColor: PropTypes.oneOf(Object.values(ValueColors)),
|
|
213
|
-
subValue: PropTypes.string,
|
|
214
|
-
icon: PropTypes.element,
|
|
215
|
-
isIconColored: PropTypes.bool,
|
|
216
|
-
avatar: PropTypes.element,
|
|
217
|
-
disabled: PropTypes.bool,
|
|
218
|
-
actionType: PropTypes.oneOf(Object.values(Actions)),
|
|
219
|
-
onAction: PropTypes.func,
|
|
220
|
-
onClick: PropTypes.func,
|
|
221
|
-
className: PropTypes.string,
|
|
222
|
-
classes: PropTypes.objectOf(PropTypes.string),
|
|
223
|
-
dataAttrs: PropTypes.objectOf(PropTypes.object),
|
|
224
|
-
children: PropTypes.node
|
|
225
|
-
};
|
|
226
|
-
exports.ListDataPropType = ListDataPropType;
|
|
227
|
-
ListData.propTypes = ListDataPropType;
|
|
228
|
-
var _default = ListData;
|
|
229
|
-
exports["default"] = _default;
|
|
169
|
+
var _default = exports["default"] = ListData;
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
.mfui-list-data-group
|
|
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-sizing: border-box;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
overflow-y: hidden;
|
|
12
|
-
}
|
|
13
|
-
.mfui-list-data-group__item_divider:not(:last-child) {
|
|
14
|
-
border-bottom: 1px solid var(--spbSky1);
|
|
15
|
-
}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-list-data-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;overflow-y:hidden}.mfui-list-data-group__item_divider:not(:last-child){border-bottom:1px solid var(--spbSky1)}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
|
|
3
3
|
import { ActivatorNodesType, GapSizesType } from './components/ListDataSortable';
|
|
4
4
|
import { IListDataProps } from './ListData';
|
|
5
|
-
import './ListDataGroup.
|
|
6
|
-
export
|
|
5
|
+
import './ListDataGroup.scss';
|
|
6
|
+
export type ListItemPropsType = IListDataProps & {
|
|
7
7
|
id: string | number;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type DragOverlayPropsType = {
|
|
10
10
|
className?: string;
|
|
11
11
|
zIndex?: number;
|
|
12
12
|
};
|