@megafon/ui-core 9.0.0-alpha.2 → 9.0.0-alpha.20
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/components/Accordion/Accordion.css +1 -1
- package/dist/es/components/Accordion/Accordion.d.ts +3 -1
- package/dist/es/components/Accordion/Accordion.js +3 -3
- package/dist/es/components/Avatar/Avatar.css +1 -1
- package/dist/es/components/Avatar/Avatar.d.ts +1 -1
- package/dist/es/components/Badges/CounterBadge/CounterBadge.js +1 -2
- package/dist/es/components/Badges/InfoBadge/InfoBadge.css +1 -0
- package/dist/es/components/Badges/InfoBadge/InfoBadge.d.ts +52 -0
- package/dist/es/components/Badges/InfoBadge/InfoBadge.js +226 -0
- package/dist/es/components/Badges/PriceBadge/PriceBadge.d.ts +1 -0
- package/dist/es/components/Badges/PriceBadge/PriceBadge.js +53 -13
- package/dist/es/components/Badges/PromoBadge/PromoBadge.css +1 -1
- package/dist/es/components/Badges/PromoBadge/PromoBadge.d.ts +1 -11
- package/dist/es/components/Badges/PromoBadge/PromoBadge.js +6 -16
- package/dist/es/components/Badges/StatusBadge/StatusBadge.css +1 -1
- package/dist/es/components/Badges/StatusBadge/StatusBadge.js +16 -7
- package/dist/es/components/Badges/TimerBadge/TimerBadge.d.ts +2 -0
- package/dist/es/components/Badges/TimerBadge/TimerBadge.js +6 -2
- package/dist/es/components/Buttons/Button/Button.css +1 -0
- package/dist/es/components/{Button → Buttons/Button}/Button.d.ts +5 -0
- package/dist/es/components/{Button → Buttons/Button}/Button.js +38 -12
- package/dist/es/components/Buttons/ButtonClose/ButtonClose.css +1 -0
- package/dist/es/components/Buttons/ButtonClose/ButtonClose.d.ts +34 -0
- package/dist/es/components/Buttons/ButtonClose/ButtonClose.js +69 -0
- package/dist/es/components/Calendar/components/_Month/Month.js +2 -6
- package/dist/es/components/Carousel/Carousel.css +1 -1
- package/dist/es/components/Carousel/Carousel.d.ts +9 -0
- package/dist/es/components/Carousel/Carousel.js +14 -2
- package/dist/es/components/Checkbox/Checkbox.css +1 -1
- package/dist/es/components/Checkbox/Checkbox.js +3 -2
- package/dist/es/components/Chips/Chips/Chip.css +1 -1
- package/dist/es/components/Chips/Chips/Chip.d.ts +9 -1
- package/dist/es/components/Chips/Chips/Chip.js +12 -7
- package/dist/es/components/Chips/Chips/Chips.d.ts +16 -1
- package/dist/es/components/Chips/Chips/Chips.js +28 -6
- package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.css +1 -1
- package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.d.ts +12 -4
- package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.js +55 -47
- package/dist/es/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +10 -1
- package/dist/es/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +12 -7
- package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.css +1 -1
- package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.d.ts +7 -0
- package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.js +7 -0
- package/dist/es/components/Chips/ChipsSuggest/ChipsSuggest.d.ts +4 -2
- package/dist/es/components/Chips/ChipsSuggest/ChipsSuggest.js +3 -0
- package/dist/es/components/ContentArea/ContentArea.css +1 -1
- package/dist/es/components/ContentArea/ContentArea.d.ts +3 -2
- package/dist/es/components/ContentArea/ContentArea.js +5 -0
- package/dist/es/components/ContentView/ContentView.css +1 -1
- package/dist/es/components/ContentView/ContentView.d.ts +15 -4
- package/dist/es/components/ContentView/ContentView.js +17 -4
- package/dist/es/components/Counter/Counter.css +1 -1
- package/dist/es/components/Counter/Counter.d.ts +2 -0
- package/dist/es/components/Counter/Counter.js +6 -3
- package/dist/es/components/Dropdown/Dropdown.css +1 -1
- package/dist/es/components/Dropdown/Dropdown.d.ts +6 -2
- package/dist/es/components/Dropdown/Dropdown.js +31 -22
- package/dist/es/components/ErrorLoad/ErrorLoad.css +1 -1
- package/dist/es/components/ErrorLoad/ErrorLoad.d.ts +1 -1
- package/dist/es/components/ErrorLoad/ErrorLoad.js +2 -4
- package/dist/es/components/Link/Link.css +1 -0
- package/dist/es/components/Link/Link.d.ts +1 -0
- package/dist/es/components/Link/Link.js +4 -2
- package/dist/es/components/ListData/ListData.css +1 -1
- package/dist/es/components/ListData/ListData.d.ts +9 -1
- package/dist/es/components/ListData/ListData.js +20 -14
- package/dist/es/components/ListData/components/ListDataSortable.css +1 -1
- package/dist/es/components/ListData/components/ListDataSortable.js +1 -3
- package/dist/es/components/Modal/Modal.css +1 -1
- package/dist/es/components/Modal/Modal.d.ts +23 -9
- package/dist/es/components/Modal/Modal.js +34 -23
- package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -1
- package/dist/es/components/Modal/_ModalContent/ModalContent.js +37 -39
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +1 -1
- package/dist/es/components/Modal/_ModalMobile/ModalMobile.css +1 -0
- package/dist/es/components/Modal/{_ModalMobileBottom/ModalMobileBottom.d.ts → _ModalMobile/ModalMobile.d.ts} +6 -5
- package/dist/es/components/Modal/{_ModalMobileBottom/ModalMobileBottom.js → _ModalMobile/ModalMobile.js} +36 -26
- package/dist/es/components/Modal/mocks.js +0 -1
- package/dist/es/components/Modal/types.d.ts +1 -2
- package/dist/es/components/NavArrow/NavArrow.css +1 -1
- package/dist/es/components/NavArrow/NavArrow.js +4 -4
- package/dist/es/components/Notification/Notification.css +1 -1
- package/dist/es/components/Notification/Notification.d.ts +0 -11
- package/dist/es/components/Notification/Notification.js +19 -38
- package/dist/es/components/Pagination/Pagination.css +1 -1
- package/dist/es/components/Pagination/Pagination.d.ts +1 -3
- package/dist/es/components/Pagination/Pagination.js +4 -13
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +1 -1
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +1 -2
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +0 -2
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -1
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +1 -3
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -16
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +1 -2
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +4 -4
- package/dist/es/components/Pagination/types.d.ts +1 -11
- package/dist/es/components/Pagination/types.js +1 -4
- package/dist/es/components/Pagination/usePagination.d.ts +2 -2
- package/dist/es/components/Pagination/usePagination.js +11 -29
- package/dist/es/components/Parameter/Parameter.d.ts +0 -3
- package/dist/es/components/Parameter/Parameter.js +3 -4
- package/dist/es/components/RadioButton/RadioButton.css +1 -1
- package/dist/es/components/Row/Row.css +1 -1
- package/dist/es/components/Row/Row.js +6 -4
- package/dist/es/components/ScrollBar/ScrollBar.d.ts +2 -0
- package/dist/es/components/ScrollBar/ScrollBar.js +6 -1
- package/dist/es/components/Search/Search.css +1 -1
- package/dist/es/components/Search/Search.d.ts +2 -2
- package/dist/es/components/Search/Search.js +72 -68
- package/dist/es/components/Select/Select.css +1 -1
- package/dist/es/components/Select/Select.d.ts +11 -20
- package/dist/es/components/Select/Select.js +40 -88
- package/dist/es/components/Select/reducer/selectReducer.js +1 -1
- package/dist/es/components/Selector/Selector.css +1 -1
- package/dist/es/components/Sliders/Slider/Slider.css +1 -1
- package/dist/es/components/Sliders/Slider/Slider.d.ts +12 -0
- package/dist/es/components/Sliders/Slider/Slider.js +26 -7
- package/dist/es/components/Sliders/SliderRange/SliderRange.css +1 -1
- package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +3 -0
- package/dist/es/components/Sliders/SliderRange/SliderRange.js +4 -1
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +1 -1
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +1 -1
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +6 -0
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +8 -1
- package/dist/es/components/Sliders/helpers.d.ts +1 -0
- package/dist/es/components/Sliders/helpers.js +7 -0
- package/dist/es/components/Snackbar/Snackbar.css +1 -1
- package/dist/es/components/Snackbar/Snackbar.js +20 -21
- package/dist/es/components/Stepper/Stepper.css +1 -0
- package/dist/es/components/Stepper/Stepper.d.ts +52 -0
- package/dist/es/components/Stepper/Stepper.js +159 -0
- package/dist/es/components/Stepper/StepperItem.css +1 -0
- package/dist/es/components/Stepper/StepperItem.d.ts +57 -0
- package/dist/es/components/Stepper/StepperItem.js +101 -0
- package/dist/es/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/es/components/Stepper/img/separator.png +0 -0
- package/dist/es/components/Switcher/Switcher.css +1 -1
- package/dist/es/components/Switcher/Switcher.d.ts +5 -0
- package/dist/es/components/Switcher/Switcher.js +22 -10
- package/dist/es/components/Tabs/Tabs.css +1 -1
- package/dist/es/components/Tabs/Tabs.d.ts +2 -0
- package/dist/es/components/Tabs/Tabs.js +64 -55
- package/dist/es/components/TextField/TextField.css +1 -1
- package/dist/es/components/TextField/TextField.d.ts +2 -2
- package/dist/es/components/TextField/TextField.js +16 -9
- package/dist/es/components/Tooltip/Tooltip.css +1 -1
- package/dist/es/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/es/components/Tooltip/Tooltip.js +22 -17
- package/dist/es/components/UploadForm/UploadField/UploadField.css +1 -1
- package/dist/es/components/UploadForm/UploadField/UploadField.d.ts +4 -1
- package/dist/es/components/UploadForm/UploadField/UploadField.js +8 -2
- package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.css +1 -1
- package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.d.ts +3 -1
- package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +30 -5
- package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.css +1 -1
- package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.d.ts +3 -1
- package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.js +9 -6
- package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/UploadFileItemIcon.js +6 -0
- package/dist/es/hooks/useResolution.js +15 -23
- package/dist/es/index.d.ts +6 -3
- package/dist/es/index.js +6 -3
- package/dist/lib/components/Accordion/Accordion.css +1 -1
- package/dist/lib/components/Accordion/Accordion.d.ts +3 -1
- package/dist/lib/components/Accordion/Accordion.js +3 -3
- package/dist/lib/components/Avatar/Avatar.css +1 -1
- package/dist/lib/components/Avatar/Avatar.d.ts +1 -1
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +1 -2
- package/dist/lib/components/Badges/InfoBadge/InfoBadge.css +1 -0
- package/dist/lib/components/Badges/InfoBadge/InfoBadge.d.ts +52 -0
- package/dist/lib/components/Badges/InfoBadge/InfoBadge.js +235 -0
- package/dist/lib/components/Badges/PriceBadge/PriceBadge.d.ts +1 -0
- package/dist/lib/components/Badges/PriceBadge/PriceBadge.js +54 -13
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +1 -1
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.d.ts +1 -11
- package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +7 -17
- package/dist/lib/components/Badges/StatusBadge/StatusBadge.css +1 -1
- package/dist/lib/components/Badges/StatusBadge/StatusBadge.js +16 -7
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.d.ts +2 -0
- package/dist/lib/components/Badges/TimerBadge/TimerBadge.js +6 -2
- package/dist/lib/components/Buttons/Button/Button.css +1 -0
- package/dist/lib/components/{Button → Buttons/Button}/Button.d.ts +5 -0
- package/dist/lib/components/{Button → Buttons/Button}/Button.js +38 -12
- package/dist/lib/components/Buttons/ButtonClose/ButtonClose.css +1 -0
- package/dist/lib/components/Buttons/ButtonClose/ButtonClose.d.ts +34 -0
- package/dist/lib/components/Buttons/ButtonClose/ButtonClose.js +78 -0
- package/dist/lib/components/Calendar/components/_Month/Month.js +2 -6
- package/dist/lib/components/Carousel/Carousel.css +1 -1
- package/dist/lib/components/Carousel/Carousel.d.ts +9 -0
- package/dist/lib/components/Carousel/Carousel.js +15 -3
- package/dist/lib/components/Checkbox/Checkbox.css +1 -1
- package/dist/lib/components/Checkbox/Checkbox.js +3 -2
- package/dist/lib/components/Chips/Chips/Chip.css +1 -1
- package/dist/lib/components/Chips/Chips/Chip.d.ts +9 -1
- package/dist/lib/components/Chips/Chips/Chip.js +13 -8
- package/dist/lib/components/Chips/Chips/Chips.d.ts +16 -1
- package/dist/lib/components/Chips/Chips/Chips.js +28 -6
- package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.css +1 -1
- package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.d.ts +12 -4
- package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.js +55 -47
- package/dist/lib/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +10 -1
- package/dist/lib/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +11 -6
- package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.css +1 -1
- package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.d.ts +7 -0
- package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.js +8 -1
- package/dist/lib/components/Chips/ChipsSuggest/ChipsSuggest.d.ts +4 -2
- package/dist/lib/components/Chips/ChipsSuggest/ChipsSuggest.js +3 -0
- package/dist/lib/components/ContentArea/ContentArea.css +1 -1
- package/dist/lib/components/ContentArea/ContentArea.d.ts +3 -2
- package/dist/lib/components/ContentArea/ContentArea.js +5 -0
- package/dist/lib/components/ContentView/ContentView.css +1 -1
- package/dist/lib/components/ContentView/ContentView.d.ts +15 -4
- package/dist/lib/components/ContentView/ContentView.js +17 -4
- package/dist/lib/components/Counter/Counter.css +1 -1
- package/dist/lib/components/Counter/Counter.d.ts +2 -0
- package/dist/lib/components/Counter/Counter.js +6 -3
- package/dist/lib/components/Dropdown/Dropdown.css +1 -1
- package/dist/lib/components/Dropdown/Dropdown.d.ts +6 -2
- package/dist/lib/components/Dropdown/Dropdown.js +31 -22
- package/dist/lib/components/ErrorLoad/ErrorLoad.css +1 -1
- package/dist/lib/components/ErrorLoad/ErrorLoad.d.ts +1 -1
- package/dist/lib/components/ErrorLoad/ErrorLoad.js +2 -4
- package/dist/lib/components/Link/Link.css +1 -0
- package/dist/lib/components/Link/Link.d.ts +1 -0
- package/dist/lib/components/Link/Link.js +2 -1
- package/dist/lib/components/ListData/ListData.css +1 -1
- package/dist/lib/components/ListData/ListData.d.ts +9 -1
- package/dist/lib/components/ListData/ListData.js +20 -14
- package/dist/lib/components/ListData/components/ListDataSortable.css +1 -1
- package/dist/lib/components/ListData/components/ListDataSortable.js +1 -3
- package/dist/lib/components/Modal/Modal.css +1 -1
- package/dist/lib/components/Modal/Modal.d.ts +23 -9
- package/dist/lib/components/Modal/Modal.js +35 -24
- package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -1
- package/dist/lib/components/Modal/_ModalContent/ModalContent.js +37 -39
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +1 -1
- package/dist/lib/components/Modal/_ModalMobile/ModalMobile.css +1 -0
- package/dist/lib/components/Modal/{_ModalMobileBottom/ModalMobileBottom.d.ts → _ModalMobile/ModalMobile.d.ts} +6 -5
- package/dist/lib/components/Modal/{_ModalMobileBottom/ModalMobileBottom.js → _ModalMobile/ModalMobile.js} +35 -25
- package/dist/lib/components/Modal/mocks.js +0 -1
- package/dist/lib/components/Modal/types.d.ts +1 -2
- package/dist/lib/components/NavArrow/NavArrow.css +1 -1
- package/dist/lib/components/NavArrow/NavArrow.js +4 -4
- package/dist/lib/components/Notification/Notification.css +1 -1
- package/dist/lib/components/Notification/Notification.d.ts +0 -11
- package/dist/lib/components/Notification/Notification.js +18 -37
- package/dist/lib/components/Pagination/Pagination.css +1 -1
- package/dist/lib/components/Pagination/Pagination.d.ts +1 -3
- package/dist/lib/components/Pagination/Pagination.js +4 -13
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +1 -1
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +1 -2
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +0 -2
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -1
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +1 -3
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -16
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +1 -2
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +4 -4
- package/dist/lib/components/Pagination/types.d.ts +1 -11
- package/dist/lib/components/Pagination/types.js +1 -6
- package/dist/lib/components/Pagination/usePagination.d.ts +2 -2
- package/dist/lib/components/Pagination/usePagination.js +11 -29
- package/dist/lib/components/Parameter/Parameter.d.ts +0 -3
- package/dist/lib/components/Parameter/Parameter.js +3 -4
- package/dist/lib/components/RadioButton/RadioButton.css +1 -1
- package/dist/lib/components/Row/Row.css +1 -1
- package/dist/lib/components/Row/Row.js +5 -3
- package/dist/lib/components/ScrollBar/ScrollBar.d.ts +2 -0
- package/dist/lib/components/ScrollBar/ScrollBar.js +6 -1
- package/dist/lib/components/Search/Search.css +1 -1
- package/dist/lib/components/Search/Search.d.ts +2 -2
- package/dist/lib/components/Search/Search.js +72 -68
- package/dist/lib/components/Select/Select.css +1 -1
- package/dist/lib/components/Select/Select.d.ts +11 -20
- package/dist/lib/components/Select/Select.js +40 -88
- package/dist/lib/components/Select/reducer/selectReducer.js +1 -1
- package/dist/lib/components/Selector/Selector.css +1 -1
- package/dist/lib/components/Sliders/Slider/Slider.css +1 -1
- package/dist/lib/components/Sliders/Slider/Slider.d.ts +12 -0
- package/dist/lib/components/Sliders/Slider/Slider.js +25 -6
- package/dist/lib/components/Sliders/SliderRange/SliderRange.css +1 -1
- package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +3 -0
- package/dist/lib/components/Sliders/SliderRange/SliderRange.js +4 -1
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +1 -1
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +1 -1
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +6 -0
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +9 -2
- package/dist/lib/components/Sliders/helpers.d.ts +1 -0
- package/dist/lib/components/Sliders/helpers.js +8 -1
- package/dist/lib/components/Snackbar/Snackbar.css +1 -1
- package/dist/lib/components/Snackbar/Snackbar.js +20 -21
- package/dist/lib/components/Stepper/Stepper.css +1 -0
- package/dist/lib/components/Stepper/Stepper.d.ts +52 -0
- package/dist/lib/components/Stepper/Stepper.js +168 -0
- package/dist/lib/components/Stepper/StepperItem.css +1 -0
- package/dist/lib/components/Stepper/StepperItem.d.ts +57 -0
- package/dist/lib/components/Stepper/StepperItem.js +110 -0
- package/dist/lib/components/Stepper/img/separator-mobile.png +0 -0
- package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
- package/dist/lib/components/Stepper/img/separator.png +0 -0
- package/dist/lib/components/Switcher/Switcher.css +1 -1
- package/dist/lib/components/Switcher/Switcher.d.ts +5 -0
- package/dist/lib/components/Switcher/Switcher.js +21 -9
- package/dist/lib/components/Tabs/Tabs.css +1 -1
- package/dist/lib/components/Tabs/Tabs.d.ts +2 -0
- package/dist/lib/components/Tabs/Tabs.js +64 -55
- package/dist/lib/components/TextField/TextField.css +1 -1
- package/dist/lib/components/TextField/TextField.d.ts +2 -2
- package/dist/lib/components/TextField/TextField.js +16 -9
- package/dist/lib/components/Tooltip/Tooltip.css +1 -1
- package/dist/lib/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/lib/components/Tooltip/Tooltip.js +23 -18
- package/dist/lib/components/UploadForm/UploadField/UploadField.css +1 -1
- package/dist/lib/components/UploadForm/UploadField/UploadField.d.ts +4 -1
- package/dist/lib/components/UploadForm/UploadField/UploadField.js +8 -2
- package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.css +1 -1
- package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.d.ts +3 -1
- package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +30 -5
- package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.css +1 -1
- package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.d.ts +3 -1
- package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.js +9 -6
- package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/UploadFileItemIcon.js +6 -0
- package/dist/lib/hooks/useResolution.js +15 -23
- package/dist/lib/index.d.ts +6 -3
- package/dist/lib/index.js +32 -11
- package/package.json +5 -5
- package/styles/base.scss +54 -0
- package/styles/colors.css +14 -0
- package/dist/es/components/Button/Button.css +0 -1
- package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
- package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -56
- package/dist/lib/components/Button/Button.css +0 -1
- package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
- package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -65
|
@@ -11,7 +11,8 @@ require("core-js/modules/es.string.link.js");
|
|
|
11
11
|
require("core-js/modules/web.timers.js");
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
14
|
-
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
14
|
+
var _Button = _interopRequireDefault(require("../Buttons/Button/Button"));
|
|
15
|
+
var _ButtonClose = _interopRequireDefault(require("../Buttons/ButtonClose/ButtonClose"));
|
|
15
16
|
var _TextLink = _interopRequireDefault(require("../TextLink/TextLink"));
|
|
16
17
|
var _Tile = _interopRequireDefault(require("../Tile/Tile"));
|
|
17
18
|
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); }
|
|
@@ -21,55 +22,50 @@ var ErrorIcon = function ErrorIcon(props) {
|
|
|
21
22
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
22
23
|
viewBox: "0 0 32 32"
|
|
23
24
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
24
|
-
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
|
+
d: "M23.5 13.008a1.5 1.5 0 011.5 1.5v7.513a6 6 0 01-6 6h-6a6 6 0 01-6-6v-7.513a1.5 1.5 0 011.5-1.5h15zm-7.501 4.398a1.501 1.501 0 00-.702 2.825v2.493a.751.751 0 001.5 0v-2.55a1.498 1.498 0 00-.798-2.768z"
|
|
25
28
|
}), /*#__PURE__*/React.createElement("path", {
|
|
26
|
-
d: "M16
|
|
29
|
+
d: "M16 4.022a5.25 5.25 0 015.25 5.25v2.255h-1.5V9.272a3.75 3.75 0 00-7.5 0v2.255h-1.5V9.272A5.25 5.25 0 0116 4.022z"
|
|
27
30
|
}));
|
|
28
31
|
};
|
|
29
32
|
var ArrowDown = function ArrowDown(props) {
|
|
30
33
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
31
34
|
viewBox: "0 0 20 20"
|
|
32
35
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
d: "
|
|
34
|
-
fillRule: "evenodd",
|
|
35
|
-
clipRule: "evenodd"
|
|
36
|
+
d: "M10.465 11.798a.609.609 0 01-.907 0L7.187 9.25c-.41-.44-.1-1.25.476-1.25h4.679c.575 0 .879.811.47 1.25l-2.347 2.548z"
|
|
36
37
|
}));
|
|
37
38
|
};
|
|
38
39
|
var RightArrow = function RightArrow(props) {
|
|
39
40
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
40
41
|
viewBox: "0 0 20 20"
|
|
41
42
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
42
|
-
d: "
|
|
43
|
+
d: "M10.084 5.282a1 1 0 011.414.022l3.61 3.726c.522.54.523 1.4 0 1.94l-3.61 3.726a1 1 0 01-1.436-1.392l2.225-2.297H5.5a1 1 0 010-2h6.8l-2.239-2.31a1 1 0 01.023-1.415z"
|
|
43
44
|
}));
|
|
44
45
|
};
|
|
45
46
|
var WarningIcon = function WarningIcon(props) {
|
|
46
47
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
47
48
|
viewBox: "0 0 32 32"
|
|
48
49
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
49
|
-
|
|
50
|
+
fillRule: "evenodd",
|
|
51
|
+
clipRule: "evenodd",
|
|
52
|
+
d: "M13.373 6.516c1.128-2.018 4.041-2.023 5.176-.008l9.067 16.094C28.725 24.571 27.296 27 25.03 27H6.97c-2.263 0-3.691-2.42-2.591-4.389l8.994-16.095zM16 21.163c-.829 0-1.5.657-1.5 1.467s.671 1.466 1.5 1.466c.828 0 1.5-.656 1.5-1.466 0-.81-.672-1.467-1.5-1.467zm0-10.3a1.5 1.5 0 00-1.5 1.5v5.867a1.5 1.5 0 003 0v-5.867a1.5 1.5 0 00-1.5-1.5z"
|
|
50
53
|
}));
|
|
51
54
|
};
|
|
52
55
|
var SuccessIcon = function SuccessIcon(props) {
|
|
53
56
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
54
57
|
viewBox: "0 0 32 32"
|
|
55
58
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
56
|
-
d: "
|
|
59
|
+
d: "M11.033 15.1l3.39 3.39 6.817-6.742c.578-.572 1.483-.595 2.02-.051.538.544.504 1.449-.075 2.021l-7.858 7.773c-.576.57-1.476.595-2.015.056L8.95 17.185c-.54-.541-.512-1.446.063-2.021.576-.576 1.48-.604 2.021-.063z"
|
|
57
60
|
}));
|
|
58
61
|
};
|
|
59
62
|
var InfoIcon = function InfoIcon(props) {
|
|
60
63
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
61
64
|
viewBox: "0 0 32 32"
|
|
62
|
-
}, props), /*#__PURE__*/React.createElement("path", {
|
|
63
|
-
d: "M15 12h2v-2h-2v2zm0 10h2v-8h-2v8zm1 6C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12-5.4 12-12 12zm0-22C10.5 6 6 10.5 6 16s4.5 10 10 10 10-4.5 10-10S21.5 6 16 6z"
|
|
64
|
-
}));
|
|
65
|
-
};
|
|
66
|
-
var CancelIcon = function CancelIcon(props) {
|
|
67
|
-
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
68
|
-
viewBox: "0 0 10 10"
|
|
69
65
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
70
66
|
fillRule: "evenodd",
|
|
71
67
|
clipRule: "evenodd",
|
|
72
|
-
d: "
|
|
68
|
+
d: "M16 4c6.627 0 12 5.373 12 12s-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4zm0 9.25c-.78 0-1.412.633-1.412 1.412v7.059a1.412 1.412 0 102.824 0v-7.059c0-.78-.632-1.412-1.412-1.412zm-.144-4.477a1.412 1.412 0 100 2.824 1.412 1.412 0 000-2.824z"
|
|
73
69
|
}));
|
|
74
70
|
};
|
|
75
71
|
var TIMEOUT_DELAY = 400;
|
|
@@ -82,12 +78,6 @@ var NotificationTypes = {
|
|
|
82
78
|
ERROR: 'error',
|
|
83
79
|
INFO: 'info'
|
|
84
80
|
};
|
|
85
|
-
var ShadowTypes = {
|
|
86
|
-
ZERO: 'zero',
|
|
87
|
-
HOVER: 'hover',
|
|
88
|
-
PRESSED: 'pressed',
|
|
89
|
-
DEFAULT: 'default'
|
|
90
|
-
};
|
|
91
81
|
var testIdPrefix = exports.testIdPrefix = 'Notification';
|
|
92
82
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-notification');
|
|
93
83
|
var Notification = function Notification(_ref) {
|
|
@@ -101,10 +91,6 @@ var Notification = function Notification(_ref) {
|
|
|
101
91
|
children = _ref.children,
|
|
102
92
|
_ref$type = _ref.type,
|
|
103
93
|
type = _ref$type === void 0 ? 'info' : _ref$type,
|
|
104
|
-
_ref$shadowLevel = _ref.shadowLevel,
|
|
105
|
-
shadowLevel = _ref$shadowLevel === void 0 ? 'zero' : _ref$shadowLevel,
|
|
106
|
-
_ref$isColored = _ref.isColored,
|
|
107
|
-
isColored = _ref$isColored === void 0 ? true : _ref$isColored,
|
|
108
94
|
hasCloseButton = _ref.hasCloseButton,
|
|
109
95
|
title = _ref.title,
|
|
110
96
|
shortText = _ref.shortText,
|
|
@@ -154,7 +140,6 @@ var Notification = function Notification(_ref) {
|
|
|
154
140
|
textClasses = _useState6[0],
|
|
155
141
|
setTextClass = _useState6[1];
|
|
156
142
|
var hasBottom = shortText || buttonText || link;
|
|
157
|
-
var isErrorType = type === NotificationTypes.ERROR;
|
|
158
143
|
useEffect(function () {
|
|
159
144
|
setShowFullText(isCollapseOpened);
|
|
160
145
|
}, [isCollapseOpened]);
|
|
@@ -202,7 +187,7 @@ var Notification = function Notification(_ref) {
|
|
|
202
187
|
},
|
|
203
188
|
className: cn('link', [linkClass]),
|
|
204
189
|
onClick: onLinkClick,
|
|
205
|
-
color:
|
|
190
|
+
color: "green",
|
|
206
191
|
rel: rel,
|
|
207
192
|
href: href,
|
|
208
193
|
target: target
|
|
@@ -218,7 +203,7 @@ var Notification = function Notification(_ref) {
|
|
|
218
203
|
},
|
|
219
204
|
sizeAll: "small",
|
|
220
205
|
sizeMobile: "extra-small",
|
|
221
|
-
theme:
|
|
206
|
+
theme: "green",
|
|
222
207
|
showLoader: buttonLoader,
|
|
223
208
|
disabled: buttonDisable,
|
|
224
209
|
ellipsis: !buttonLoader,
|
|
@@ -256,11 +241,10 @@ var Notification = function Notification(_ref) {
|
|
|
256
241
|
};
|
|
257
242
|
return /*#__PURE__*/React.createElement(_Tile["default"], {
|
|
258
243
|
className: cn({
|
|
259
|
-
type: type
|
|
260
|
-
colored: isColored
|
|
244
|
+
type: type
|
|
261
245
|
}, [className, rootClass]),
|
|
262
246
|
radius: "rounded",
|
|
263
|
-
|
|
247
|
+
radiusSize: "xl",
|
|
264
248
|
dataAttrs: {
|
|
265
249
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root
|
|
266
250
|
}
|
|
@@ -296,12 +280,9 @@ var Notification = function Notification(_ref) {
|
|
|
296
280
|
})
|
|
297
281
|
}, (buttonText || link) && /*#__PURE__*/React.createElement("div", {
|
|
298
282
|
className: cn('bottom-block')
|
|
299
|
-
}, buttonText && renderButton(), link && !shortText && renderLink()), shortText && renderCollapseButton()))), hasCloseButton && /*#__PURE__*/React.createElement("
|
|
283
|
+
}, buttonText && renderButton(), link && !shortText && renderLink()), shortText && renderCollapseButton()))), hasCloseButton && /*#__PURE__*/React.createElement(_ButtonClose["default"], (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.close), {
|
|
300
284
|
className: cn('close'),
|
|
301
|
-
type: "button",
|
|
302
285
|
onClick: onClose
|
|
303
|
-
}), /*#__PURE__*/React.createElement(CancelIcon, {
|
|
304
|
-
className: cn('close-icon')
|
|
305
286
|
})));
|
|
306
287
|
};
|
|
307
288
|
var _default = exports["default"] = Notification;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-pagination{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:767px){.mfui-9-pagination{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}}.mfui-9-pagination__input,.mfui-9-pagination__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-pagination__input{gap:8px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-pagination__input-caption{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.mfui-9-pagination__input-field{width:90px}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-pagination{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12px;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:767px){.mfui-9-pagination{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}}.mfui-9-pagination__input,.mfui-9-pagination__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-pagination__input{gap:8px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-pagination__input-caption{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.mfui-9-pagination__input-field{width:90px}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeType, ValueType } from './types';
|
|
3
3
|
import './Pagination.scss';
|
|
4
4
|
interface IPaginationProps {
|
|
5
5
|
/** Общее количество страниц */
|
|
6
6
|
totalPages: number;
|
|
7
7
|
/** Номер текущей страницы */
|
|
8
8
|
activePage: number;
|
|
9
|
-
/** Тип компонента. DEPRECATED: 'classic' */
|
|
10
|
-
type?: PaginationTypesType;
|
|
11
9
|
/** Цветовая тема компонента */
|
|
12
10
|
theme?: ThemeType;
|
|
13
11
|
/** Отобразить поле ввода номера страницы */
|
|
@@ -14,7 +14,6 @@ var _ValueField = _interopRequireDefault(require("../ValueField/ValueField"));
|
|
|
14
14
|
var _PaginationButtons = _interopRequireDefault(require("./components/PaginationButtons/PaginationButtons"));
|
|
15
15
|
var _PaginationNavigation = _interopRequireWildcard(require("./components/PaginationNavigation/PaginationNavigation"));
|
|
16
16
|
var _helpers = require("./helpers");
|
|
17
|
-
var _types = require("./types");
|
|
18
17
|
var _usePagination2 = _interopRequireWildcard(require("./usePagination"));
|
|
19
18
|
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); }
|
|
20
19
|
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; }
|
|
@@ -23,15 +22,13 @@ var cn = (0, _uiHelpers.cnCreate)('mfui-9-pagination');
|
|
|
23
22
|
var Pagination = function Pagination(_ref) {
|
|
24
23
|
var totalPages = _ref.totalPages,
|
|
25
24
|
activePage = _ref.activePage,
|
|
26
|
-
_ref$type = _ref.type,
|
|
27
|
-
type = _ref$type === void 0 ? _types.PaginationTypes.CLASSIC : _ref$type,
|
|
28
25
|
_ref$theme = _ref.theme,
|
|
29
26
|
theme = _ref$theme === void 0 ? 'default' : _ref$theme,
|
|
30
27
|
showSelectPage = _ref.showSelectPage,
|
|
31
28
|
onChange = _ref.onChange,
|
|
32
29
|
className = _ref.className,
|
|
33
30
|
dataAttrs = _ref.dataAttrs;
|
|
34
|
-
var _usePagination = (0, _usePagination2["default"])(
|
|
31
|
+
var _usePagination = (0, _usePagination2["default"])(totalPages, activePage),
|
|
35
32
|
paginationItems = _usePagination.paginationItems,
|
|
36
33
|
skipPrevPage = _usePagination.skipPrevPage,
|
|
37
34
|
skipNextPage = _usePagination.skipNextPage;
|
|
@@ -40,8 +37,6 @@ var Pagination = function Pagination(_ref) {
|
|
|
40
37
|
inputValue = _React$useState2[0],
|
|
41
38
|
setInputValue = _React$useState2[1];
|
|
42
39
|
var inputRef = React.useRef(null);
|
|
43
|
-
var isModernType = type === _types.PaginationTypes.MODERN;
|
|
44
|
-
var buttonForm = isModernType ? 'brick' : 'round';
|
|
45
40
|
var handleBackClick = React.useCallback(function () {
|
|
46
41
|
onChange(activePage - 1);
|
|
47
42
|
}, [activePage, onChange]);
|
|
@@ -83,9 +78,8 @@ var Pagination = function Pagination(_ref) {
|
|
|
83
78
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.prev
|
|
84
79
|
},
|
|
85
80
|
direction: "left",
|
|
86
|
-
form: buttonForm,
|
|
87
81
|
disabled: activePage === _usePagination2.BUTTONS.FIRST,
|
|
88
|
-
hint:
|
|
82
|
+
hint: _PaginationNavigation.HINTS.PREV,
|
|
89
83
|
theme: theme,
|
|
90
84
|
onClick: handleBackClick
|
|
91
85
|
}), /*#__PURE__*/React.createElement(_PaginationButtons["default"], {
|
|
@@ -98,9 +92,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
98
92
|
activeButton: activePage,
|
|
99
93
|
skipButtonPrev: _usePagination2.BUTTONS.SKIP_PREV,
|
|
100
94
|
skipButtonNext: _usePagination2.BUTTONS.SKIP_NEXT,
|
|
101
|
-
|
|
102
|
-
form: buttonForm,
|
|
103
|
-
showHints: isModernType,
|
|
95
|
+
showHints: true,
|
|
104
96
|
theme: theme,
|
|
105
97
|
onClick: handlePageButtonClick
|
|
106
98
|
}), /*#__PURE__*/React.createElement(_PaginationNavigation["default"], {
|
|
@@ -109,9 +101,8 @@ var Pagination = function Pagination(_ref) {
|
|
|
109
101
|
root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.next
|
|
110
102
|
},
|
|
111
103
|
direction: "right",
|
|
112
|
-
form: buttonForm,
|
|
113
104
|
disabled: activePage === totalPages,
|
|
114
|
-
hint:
|
|
105
|
+
hint: _PaginationNavigation.HINTS.NEXT,
|
|
115
106
|
theme: theme,
|
|
116
107
|
onClick: handleNextClick
|
|
117
108
|
})), showSelectPage && /*#__PURE__*/React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-pagination-button{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;font-weight:500;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;border:1px solid transparent;border-radius:
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-pagination-button{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;font-weight:500;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:transparent;border:1px solid transparent;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:32px;justify-content:center;padding:0;width:32px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-9-pagination-button:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-pagination-button:focus{outline:none}.mfui-9-pagination-button svg{width:100%}.mfui-9-pagination-button:disabled{pointer-events:none}.mfui-9-pagination-button_auto-width{min-width:32px;padding:0 8px;width:auto}.mfui-9-pagination-button_active{border-color:var(--brandGreen);pointer-events:none}.mfui-9-pagination-button_theme_default{color:var(--content)}.mfui-9-pagination-button_theme_default svg{fill:var(--content)}.mfui-9-pagination-button_theme_default:hover{background-color:var(--spbSky0)}.mfui-9-pagination-button_theme_default.mfui-9-pagination-button_active{border-color:var(--brandGreen);color:var(--brandGreen)}.mfui-9-pagination-button_theme_light{color:var(--stcWhite)}.mfui-9-pagination-button_theme_light svg{fill:var(--stcWhite)}.mfui-9-pagination-button_theme_light:hover{background-color:var(--stcWhite20)}.mfui-9-pagination-button_theme_light.mfui-9-pagination-button_active{border-color:var(--stcWhite)}.mfui-9-pagination-button_theme_gray{color:var(--content)}.mfui-9-pagination-button_theme_gray svg{fill:var(--content)}.mfui-9-pagination-button_theme_gray:hover{background-color:var(--base)}.mfui-9-pagination-button_theme_gray.mfui-9-pagination-button_active{border-color:var(--brandGreen);color:var(--brandGreen)}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ValueType, ThemeType
|
|
2
|
+
import { ValueType, ThemeType } from '../../types';
|
|
3
3
|
import './PaginationButton.scss';
|
|
4
4
|
export interface IPaginationButtonProps {
|
|
5
5
|
theme?: ThemeType;
|
|
6
|
-
form?: ButtonFormType;
|
|
7
6
|
value?: ValueType;
|
|
8
7
|
disabled?: boolean;
|
|
9
8
|
isActive?: boolean;
|
|
@@ -16,7 +16,6 @@ var PaginationButton = function PaginationButton(_ref) {
|
|
|
16
16
|
isActive = _ref$isActive === void 0 ? false : _ref$isActive,
|
|
17
17
|
_ref$theme = _ref.theme,
|
|
18
18
|
theme = _ref$theme === void 0 ? 'default' : _ref$theme,
|
|
19
|
-
form = _ref.form,
|
|
20
19
|
autoWidth = _ref.autoWidth,
|
|
21
20
|
className = _ref.className,
|
|
22
21
|
children = _ref.children,
|
|
@@ -33,7 +32,6 @@ var PaginationButton = function PaginationButton(_ref) {
|
|
|
33
32
|
className: cn({
|
|
34
33
|
active: isActive,
|
|
35
34
|
theme: theme,
|
|
36
|
-
form: form,
|
|
37
35
|
'auto-width': autoWidth
|
|
38
36
|
}, className),
|
|
39
37
|
type: "button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-pagination-buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-pagination-buttons__button{-ms-flex-negative:0;flex-shrink:0;margin:0
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-pagination-buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-pagination-buttons__button{-ms-flex-negative:0;flex-shrink:0;margin:0 2px}@media screen and (max-width:767px){.mfui-9-pagination-buttons__button{margin:0}}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ValueType, ThemeType
|
|
2
|
+
import { ValueType, ThemeType } from '../../types';
|
|
3
3
|
import './PaginationButtons.scss';
|
|
4
4
|
export interface IPaginationButtonsProps {
|
|
5
5
|
items: Array<string | number>;
|
|
6
|
-
type: PaginationTypesType;
|
|
7
|
-
form: ButtonFormType;
|
|
8
6
|
theme: ThemeType;
|
|
9
7
|
showHints: boolean;
|
|
10
8
|
activeButton: number;
|
|
@@ -8,7 +8,6 @@ exports["default"] = void 0;
|
|
|
8
8
|
require("core-js/modules/es.array.map.js");
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
11
|
-
var _types = require("../../types");
|
|
12
11
|
var _PaginationButton = _interopRequireDefault(require("../PaginationButton/PaginationButton"));
|
|
13
12
|
var _PaginationNavigation = _interopRequireWildcard(require("../PaginationNavigation/PaginationNavigation"));
|
|
14
13
|
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); }
|
|
@@ -17,16 +16,13 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
|
|
|
17
16
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-pagination-buttons');
|
|
18
17
|
var PaginationButtons = function PaginationButtons(_ref) {
|
|
19
18
|
var items = _ref.items,
|
|
20
|
-
type = _ref.type,
|
|
21
19
|
theme = _ref.theme,
|
|
22
|
-
form = _ref.form,
|
|
23
20
|
showHints = _ref.showHints,
|
|
24
21
|
onClick = _ref.onClick,
|
|
25
22
|
activeButton = _ref.activeButton,
|
|
26
23
|
skipButtonPrev = _ref.skipButtonPrev,
|
|
27
24
|
skipButtonNext = _ref.skipButtonNext,
|
|
28
25
|
dataAttrs = _ref.dataAttrs;
|
|
29
|
-
var isModernType = type === _types.PaginationTypes.MODERN;
|
|
30
26
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
27
|
className: cn()
|
|
32
28
|
}, items.map(function (pageNumber, index) {
|
|
@@ -37,14 +33,10 @@ var PaginationButtons = function PaginationButtons(_ref) {
|
|
|
37
33
|
var hint = isSkipButtonNext ? _PaginationNavigation.HINTS.SKIP_NEXT : _PaginationNavigation.HINTS.SKIP_PREV;
|
|
38
34
|
return /*#__PURE__*/_react["default"].createElement(_PaginationNavigation["default"], {
|
|
39
35
|
key: index,
|
|
40
|
-
className: cn('button',
|
|
41
|
-
form: form
|
|
42
|
-
}),
|
|
36
|
+
className: cn('button'),
|
|
43
37
|
theme: theme,
|
|
44
|
-
form: form,
|
|
45
38
|
value: pageNumber,
|
|
46
39
|
variant: "skip",
|
|
47
|
-
disabled: !isModernType,
|
|
48
40
|
direction: isSkipButtonNext ? 'right' : 'left',
|
|
49
41
|
hint: showHints ? hint : null,
|
|
50
42
|
onClick: onClick,
|
|
@@ -55,21 +47,18 @@ var PaginationButtons = function PaginationButtons(_ref) {
|
|
|
55
47
|
}
|
|
56
48
|
var isActive = pageNumber === activeButton;
|
|
57
49
|
var digitCount = String(pageNumber).length;
|
|
58
|
-
var pageNumberStyle =
|
|
50
|
+
var pageNumberStyle = {
|
|
59
51
|
width: 10 * digitCount
|
|
60
|
-
}
|
|
52
|
+
};
|
|
61
53
|
return /*#__PURE__*/_react["default"].createElement(_PaginationButton["default"], {
|
|
62
54
|
key: index,
|
|
63
|
-
className: cn('button',
|
|
64
|
-
form: form
|
|
65
|
-
}),
|
|
55
|
+
className: cn('button'),
|
|
66
56
|
dataAttrs: {
|
|
67
57
|
root: (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button, dataIndex)
|
|
68
58
|
},
|
|
69
59
|
theme: theme,
|
|
70
|
-
form: form,
|
|
71
60
|
value: pageNumber,
|
|
72
|
-
autoWidth:
|
|
61
|
+
autoWidth: true,
|
|
73
62
|
isActive: isActive,
|
|
74
63
|
onClick: onClick
|
|
75
64
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeType, ValueType } from '../../types';
|
|
3
3
|
import './PaginationNavigation.scss';
|
|
4
4
|
export declare const HINTS: {
|
|
5
5
|
PREV: string;
|
|
@@ -9,7 +9,6 @@ export declare const HINTS: {
|
|
|
9
9
|
};
|
|
10
10
|
interface IPaginationNavigationProps {
|
|
11
11
|
theme?: ThemeType;
|
|
12
|
-
form?: ButtonFormType;
|
|
13
12
|
direction?: 'left' | 'right';
|
|
14
13
|
variant?: 'default' | 'skip';
|
|
15
14
|
disabled?: boolean;
|
package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js
CHANGED
|
@@ -16,14 +16,16 @@ var NothingIcon = function NothingIcon(props) {
|
|
|
16
16
|
return /*#__PURE__*/_react["default"].createElement("svg", (0, _extends2["default"])({
|
|
17
17
|
viewBox: "0 0 20 20"
|
|
18
18
|
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
19
|
-
|
|
19
|
+
fillRule: "evenodd",
|
|
20
|
+
clipRule: "evenodd",
|
|
21
|
+
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM6 11a1 1 0 100-2 1 1 0 000 2zm4 0a1 1 0 100-2 1 1 0 000 2zm4 0a1 1 0 100-2 1 1 0 000 2z"
|
|
20
22
|
}));
|
|
21
23
|
};
|
|
22
24
|
var ArrowRightIcon = function ArrowRightIcon(props) {
|
|
23
25
|
return /*#__PURE__*/_react["default"].createElement("svg", (0, _extends2["default"])({
|
|
24
26
|
viewBox: "0 0 32 32"
|
|
25
27
|
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
26
|
-
d: "
|
|
28
|
+
d: "M16.326 9.118a1.25 1.25 0 011.768-.004l5.618 5.592a1.825 1.825 0 010 2.588l-5.618 5.592a1.25 1.25 0 01-1.764-1.772l3.871-3.853H9a1.25 1.25 0 010-2.5h11.223l-3.893-3.875a1.25 1.25 0 01-.004-1.768z"
|
|
27
29
|
}));
|
|
28
30
|
};
|
|
29
31
|
var ArrowsRightIcon = function ArrowsRightIcon(props) {
|
|
@@ -47,7 +49,6 @@ var PaginationNavigation = function PaginationNavigation(_ref) {
|
|
|
47
49
|
_ref$direction = _ref.direction,
|
|
48
50
|
direction = _ref$direction === void 0 ? 'right' : _ref$direction,
|
|
49
51
|
theme = _ref.theme,
|
|
50
|
-
form = _ref.form,
|
|
51
52
|
disabled = _ref.disabled,
|
|
52
53
|
value = _ref.value,
|
|
53
54
|
hint = _ref.hint,
|
|
@@ -116,7 +117,6 @@ var PaginationNavigation = function PaginationNavigation(_ref) {
|
|
|
116
117
|
dataAttrs: dataAttrs,
|
|
117
118
|
disabled: disabled,
|
|
118
119
|
theme: theme,
|
|
119
|
-
form: form,
|
|
120
120
|
onClick: handleClick,
|
|
121
121
|
onMouseEnter: hasHint ? handleMouseEnter : undefined,
|
|
122
122
|
onMouseLeave: hasHint ? handleMouseLeave : undefined,
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
export declare const PaginationTypes: {
|
|
2
|
-
readonly CLASSIC: "classic";
|
|
3
|
-
readonly MODERN: "modern";
|
|
4
|
-
};
|
|
5
|
-
export type PaginationTypesType = (typeof PaginationTypes)[keyof typeof PaginationTypes];
|
|
6
|
-
export type ButtonFormType = 'brick' | 'round';
|
|
7
1
|
export type ValueType = string | number;
|
|
8
2
|
export type ThemeType = 'default' | 'light' | 'gray';
|
|
9
|
-
type SettingsType = {
|
|
3
|
+
export type SettingsType = {
|
|
10
4
|
neighbourCount: {
|
|
11
5
|
main: number;
|
|
12
6
|
mobile: number;
|
|
@@ -19,7 +13,3 @@ type SettingsType = {
|
|
|
19
13
|
};
|
|
20
14
|
skipStep: number;
|
|
21
15
|
};
|
|
22
|
-
export type SettingsMapType = {
|
|
23
|
-
[key in PaginationTypesType]: SettingsType;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ValueType } from './types';
|
|
2
2
|
export declare const BUTTONS: {
|
|
3
3
|
SKIP_PREV: string;
|
|
4
4
|
SKIP_NEXT: string;
|
|
@@ -9,5 +9,5 @@ type usePaginationReturnType = {
|
|
|
9
9
|
skipPrevPage: number;
|
|
10
10
|
skipNextPage: number;
|
|
11
11
|
};
|
|
12
|
-
declare const usePagination: (
|
|
12
|
+
declare const usePagination: (totalPages: number, activePage: number) => usePaginationReturnType;
|
|
13
13
|
export default usePagination;
|
|
@@ -6,31 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = exports.BUTTONS = void 0;
|
|
7
7
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
9
|
require("core-js/modules/es.array.concat.js");
|
|
11
10
|
var _react = _interopRequireDefault(require("react"));
|
|
12
11
|
var _useResolution2 = _interopRequireDefault(require("../../hooks/useResolution"));
|
|
13
12
|
var _helpers = require("./helpers");
|
|
14
|
-
var _types = require("./types");
|
|
15
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
14
|
var BUTTONS = exports.BUTTONS = {
|
|
17
15
|
SKIP_PREV: 'SKIP_PREV',
|
|
18
16
|
SKIP_NEXT: 'SKIP_NEXT',
|
|
19
17
|
FIRST: 1
|
|
20
18
|
};
|
|
21
|
-
var PAGINATION_SETTINGS =
|
|
22
|
-
neighbourCount: {
|
|
23
|
-
main: 1,
|
|
24
|
-
mobile: 1,
|
|
25
|
-
mobileXS: 0
|
|
26
|
-
},
|
|
27
|
-
visibleNumbers: {
|
|
28
|
-
main: 7,
|
|
29
|
-
mobile: 7,
|
|
30
|
-
mobileXS: 5
|
|
31
|
-
},
|
|
32
|
-
skipStep: 0
|
|
33
|
-
}), _types.PaginationTypes.MODERN, {
|
|
19
|
+
var PAGINATION_SETTINGS = {
|
|
34
20
|
neighbourCount: {
|
|
35
21
|
main: 3,
|
|
36
22
|
mobile: 2,
|
|
@@ -42,37 +28,34 @@ var PAGINATION_SETTINGS = (0, _defineProperty2["default"])((0, _defineProperty2[
|
|
|
42
28
|
mobileXS: 4
|
|
43
29
|
},
|
|
44
30
|
skipStep: 4
|
|
45
|
-
}
|
|
31
|
+
};
|
|
46
32
|
var getItems = function getItems(_ref) {
|
|
47
|
-
var
|
|
48
|
-
totalPages = _ref.totalPages,
|
|
33
|
+
var totalPages = _ref.totalPages,
|
|
49
34
|
activePage = _ref.activePage,
|
|
50
35
|
buttonsCount = _ref.buttonsCount,
|
|
51
36
|
neighbourCount = _ref.neighbourCount;
|
|
52
|
-
var isClassicType = type === _types.PaginationTypes.CLASSIC;
|
|
53
37
|
var isMoreThenButtonsCount = totalPages > buttonsCount;
|
|
54
38
|
var lastPage = totalPages;
|
|
55
39
|
if (!isMoreThenButtonsCount) {
|
|
56
40
|
return (0, _helpers.getRange)(BUTTONS.FIRST, lastPage);
|
|
57
41
|
}
|
|
58
42
|
var hasLeftHiddenButtons = activePage > Math.ceil(buttonsCount / 2);
|
|
59
|
-
var hasRightHiddenButtons =
|
|
43
|
+
var hasRightHiddenButtons = lastPage > activePage + neighbourCount;
|
|
60
44
|
if (!hasLeftHiddenButtons && hasRightHiddenButtons) {
|
|
61
45
|
var _range = (0, _helpers.getRange)(BUTTONS.FIRST, buttonsCount - 2);
|
|
62
46
|
return [].concat((0, _toConsumableArray2["default"])(_range), [BUTTONS.SKIP_NEXT, lastPage]);
|
|
63
47
|
}
|
|
64
48
|
if (hasLeftHiddenButtons && !hasRightHiddenButtons) {
|
|
65
|
-
var _range2 =
|
|
49
|
+
var _range2 = (0, _helpers.getRange)(totalPages - neighbourCount, totalPages);
|
|
66
50
|
return [BUTTONS.FIRST, BUTTONS.SKIP_PREV].concat((0, _toConsumableArray2["default"])(_range2));
|
|
67
51
|
}
|
|
68
|
-
var range =
|
|
52
|
+
var range = (0, _helpers.getRange)(activePage, activePage + neighbourCount);
|
|
69
53
|
return [BUTTONS.FIRST, BUTTONS.SKIP_PREV].concat((0, _toConsumableArray2["default"])(range), [BUTTONS.SKIP_NEXT, lastPage]);
|
|
70
54
|
};
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
skipStep = _PAGINATION_SETTINGS$.skipStep;
|
|
55
|
+
var neighbourCount = PAGINATION_SETTINGS.neighbourCount,
|
|
56
|
+
visibleNumbers = PAGINATION_SETTINGS.visibleNumbers,
|
|
57
|
+
skipStep = PAGINATION_SETTINGS.skipStep;
|
|
58
|
+
var usePagination = function usePagination(totalPages, activePage) {
|
|
76
59
|
var _useResolution = (0, _useResolution2["default"])(),
|
|
77
60
|
isMobileExtraSmall = _useResolution.isMobileExtraSmall,
|
|
78
61
|
isMobile = _useResolution.isMobile;
|
|
@@ -84,7 +67,6 @@ var usePagination = function usePagination(type, totalPages, activePage) {
|
|
|
84
67
|
config = _React$useState2[0],
|
|
85
68
|
setConfig = _React$useState2[1];
|
|
86
69
|
var paginationItems = getItems({
|
|
87
|
-
type: type,
|
|
88
70
|
totalPages: totalPages,
|
|
89
71
|
activePage: activePage,
|
|
90
72
|
neighbourCount: config.neighbourCount,
|
|
@@ -104,7 +86,7 @@ var usePagination = function usePagination(type, totalPages, activePage) {
|
|
|
104
86
|
neighbourCount: isMobile ? neighbourCount.mobile : neighbourCount.main,
|
|
105
87
|
buttonsCount: isMobile ? visibleNumbers.mobile : visibleNumbers.main
|
|
106
88
|
});
|
|
107
|
-
}, [isMobile, isMobileExtraSmall
|
|
89
|
+
}, [isMobile, isMobileExtraSmall]);
|
|
108
90
|
return {
|
|
109
91
|
paginationItems: paginationItems,
|
|
110
92
|
skipPrevPage: skipPrevPage,
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import PromoBadge from '../Badges/PromoBadge/PromoBadge';
|
|
3
3
|
import { DescriptionType } from './components/ParameterDescription';
|
|
4
4
|
import './Parameter.scss';
|
|
5
|
-
type BadgeTypesType = React.ComponentProps<typeof PromoBadge>['type'];
|
|
6
5
|
type BadgeColorType = React.ComponentProps<typeof PromoBadge>['color'];
|
|
7
6
|
type TitleSizeType = 'default' | 'big';
|
|
8
7
|
type ValueFrameColorType = 'none' | 'default' | 'gray';
|
|
@@ -28,8 +27,6 @@ export interface IParameter {
|
|
|
28
27
|
className?: string;
|
|
29
28
|
/** Текст для бейджа */
|
|
30
29
|
badge?: string;
|
|
31
|
-
/** DEPRECATED. Тип бэйджа (используйте badgeColor) */
|
|
32
|
-
badgeType?: BadgeTypesType;
|
|
33
30
|
/** Цвет бейджа */
|
|
34
31
|
badgeColor?: BadgeColorType;
|
|
35
32
|
/** Текст тултипа */
|
|
@@ -25,7 +25,9 @@ var InfoIcon = function InfoIcon(props) {
|
|
|
25
25
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
26
26
|
viewBox: "0 0 20 20"
|
|
27
27
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
28
|
-
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
clipRule: "evenodd",
|
|
30
|
+
d: "M10 1.5a8.5 8.5 0 110 17 8.5 8.5 0 010-17zm0 6.553a1 1 0 00-1 1v5a1 1 0 002 0v-5a1 1 0 00-1-1zM9.898 4.88a1 1 0 100 2 1 1 0 000-2z"
|
|
29
31
|
}));
|
|
30
32
|
};
|
|
31
33
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-parameter');
|
|
@@ -34,8 +36,6 @@ var Parameter = function Parameter(_ref) {
|
|
|
34
36
|
className = _ref.className,
|
|
35
37
|
_ref$badge = _ref.badge,
|
|
36
38
|
badge = _ref$badge === void 0 ? '' : _ref$badge,
|
|
37
|
-
_ref$badgeType = _ref.badgeType,
|
|
38
|
-
badgeType = _ref$badgeType === void 0 ? 'popular' : _ref$badgeType,
|
|
39
39
|
badgeColor = _ref.badgeColor,
|
|
40
40
|
tooltip = _ref.tooltip,
|
|
41
41
|
icon = _ref.icon,
|
|
@@ -169,7 +169,6 @@ var Parameter = function Parameter(_ref) {
|
|
|
169
169
|
className: cn('title')
|
|
170
170
|
}, isRenderBadge && /*#__PURE__*/React.createElement(_PromoBadge["default"], {
|
|
171
171
|
className: cn('badge'),
|
|
172
|
-
type: badgeType,
|
|
173
172
|
color: badgeColor
|
|
174
173
|
}, badge), title ? renderTitle(title, titleSize, isFirstItem) : renderDescription(description)), mergedValue && isFirstItem && renderValue(valueFrameColor, mergedValue, valueUnit), !mergedValue && value && renderValue(valueFrameColor, value, valueUnit)), title && renderDescription(description));
|
|
175
174
|
})))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-radio-button__input{left:0;opacity:0;position:absolute;top:0}.mfui-9-radio-button__label{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;outline:none;position:relative}.mfui-9-radio-button__custom-input,.mfui-9-radio-button__label{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-radio-button__custom-input{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;height:32px;justify-content:center;margin-right:6px;width:32px}.mfui-9-radio-button__custom-input:before{border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;content:"";display:block;height:22px;-webkit-transition:background-color,border-color;transition:background-color,border-color;-webkit-transition-duration:.3s;transition-duration:.3s;width:22px}.mfui-9-radio-button__label_dark{color:var(--content)}.mfui-9-radio-button__label_dark .mfui-9-radio-button__custom-input:before{background-color:var(--base);border:2px solid var(--spbSky2)}.mfui-9-radio-button__input_dark:checked+.mfui-9-radio-button__custom-input:before{border:7px solid var(--brandGreen)}@media (hover:hover){.mfui-9-radio-button__label_dark:not(.mfui-9-radio-button__label_disabled):hover .mfui-9-radio-button__custom-input:before{border-color:var(--buttonHoverGreen)}}.mfui-9-radio-button__label_dark:not(.mfui-9-radio-button__label_disabled):active .mfui-9-radio-button__custom-input:before{border-color:var(--buttonDown)}.mfui-9-radio-button__label_dark.mfui-9-radio-button__label_disabled{color:var(--spbSky3);cursor:default}.mfui-9-radio-button__label_dark.mfui-9-radio-button__label_disabled .mfui-9-radio-button__custom-input:before,.mfui-9-radio-button__label_dark.mfui-9-radio-button__label_disabled .mfui-9-radio-button__input:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--spbSky1);border-color:var(--spbSky2)}.mfui-9-radio-button__label_light{color:var(--stcWhite)}.mfui-9-radio-button__label_light .mfui-9-radio-button__custom-input:before{background-color:var(--stcWhite);border:2px solid var(--stcWhite)}.mfui-9-radio-button__input_light:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--stcBlack);border:7px solid var(--stcWhite)}@media (hover:hover){.mfui-9-radio-button__label_light:not(.mfui-9-radio-button__label_disabled):hover .mfui-9-radio-button__custom-input:before{background-color:var(--buttonHoverGrey);border-color:var(--buttonHoverGrey)}.mfui-9-radio-button__label_light:not(.mfui-9-radio-button__label_disabled):hover .mfui-9-radio-button__input:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--stcBlack)}}.mfui-9-radio-button__label_light:not(.mfui-9-radio-button__label_disabled):active .mfui-9-radio-button__custom-input:before{background-color:var(--buttonDown);border-color:var(--buttonDown)}.mfui-9-radio-button__label_light:not(.mfui-9-radio-button__label_disabled):active .mfui-9-radio-button__input:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--stcWhite)}.mfui-9-radio-button__label_light.mfui-9-radio-button__label_disabled{color:var(--stcWhite50);cursor:default}.mfui-9-radio-button__label_light.mfui-9-radio-button__label_disabled .mfui-9-radio-button__custom-input:before,.mfui-9-radio-button__label_light.mfui-9-radio-button__label_disabled .mfui-9-radio-button__input:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--stcWhite);border-color:var(--spbSky2)}.mfui-9-radio-button__text_size_small{font-size:12px;line-height:18px}.mfui-9-radio-button__text_size_medium{font-size:15px;font-weight:400;line-height:24px}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-radio-button__input{left:0;opacity:0;position:absolute;top:0}.mfui-9-radio-button__input:focus-visible+.mfui-9-radio-button__custom-input{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-radio-button__label{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;outline:none;position:relative}.mfui-9-radio-button__custom-input,.mfui-9-radio-button__label{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-radio-button__custom-input{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;border-radius:12px;height:32px;justify-content:center;margin-right:6px;width:32px}.mfui-9-radio-button__custom-input:before{border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;content:"";display:block;height:22px;-webkit-transition:background-color,border-color;transition:background-color,border-color;-webkit-transition-duration:.3s;transition-duration:.3s;width:22px}.mfui-9-radio-button__label_dark{color:var(--content)}.mfui-9-radio-button__label_dark .mfui-9-radio-button__custom-input:before{background-color:var(--base);border:2px solid var(--spbSky2)}.mfui-9-radio-button__input_dark:checked+.mfui-9-radio-button__custom-input:before{border:7px solid var(--brandGreen)}@media (hover:hover){.mfui-9-radio-button__label_dark:not(.mfui-9-radio-button__label_disabled):hover .mfui-9-radio-button__custom-input:before{border-color:var(--buttonHoverGreen)}}.mfui-9-radio-button__label_dark:not(.mfui-9-radio-button__label_disabled):active .mfui-9-radio-button__custom-input:before{border-color:var(--buttonDown)}.mfui-9-radio-button__label_dark.mfui-9-radio-button__label_disabled{color:var(--spbSky3);cursor:default}.mfui-9-radio-button__label_dark.mfui-9-radio-button__label_disabled .mfui-9-radio-button__custom-input:before,.mfui-9-radio-button__label_dark.mfui-9-radio-button__label_disabled .mfui-9-radio-button__input:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--spbSky1);border-color:var(--spbSky2)}.mfui-9-radio-button__label_light{color:var(--stcWhite)}.mfui-9-radio-button__label_light .mfui-9-radio-button__custom-input:before{background-color:var(--stcWhite);border:2px solid var(--stcWhite)}.mfui-9-radio-button__input_light:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--stcBlack);border:7px solid var(--stcWhite)}@media (hover:hover){.mfui-9-radio-button__label_light:not(.mfui-9-radio-button__label_disabled):hover .mfui-9-radio-button__custom-input:before{background-color:var(--buttonHoverGrey);border-color:var(--buttonHoverGrey)}.mfui-9-radio-button__label_light:not(.mfui-9-radio-button__label_disabled):hover .mfui-9-radio-button__input:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--stcBlack)}}.mfui-9-radio-button__label_light:not(.mfui-9-radio-button__label_disabled):active .mfui-9-radio-button__custom-input:before{background-color:var(--buttonDown);border-color:var(--buttonDown)}.mfui-9-radio-button__label_light:not(.mfui-9-radio-button__label_disabled):active .mfui-9-radio-button__input:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--stcWhite)}.mfui-9-radio-button__label_light.mfui-9-radio-button__label_disabled{color:var(--stcWhite50);cursor:default}.mfui-9-radio-button__label_light.mfui-9-radio-button__label_disabled .mfui-9-radio-button__custom-input:before,.mfui-9-radio-button__label_light.mfui-9-radio-button__label_disabled .mfui-9-radio-button__input:checked+.mfui-9-radio-button__custom-input:before{background-color:var(--stcWhite);border-color:var(--spbSky2)}.mfui-9-radio-button__text_size_small{font-size:12px;line-height:18px}.mfui-9-radio-button__text_size_medium{font-size:15px;font-weight:400;line-height:24px}
|