@megafon/ui-core 9.0.0-alpha.8 → 9.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/components/Accordion/Accordion.css +1 -1
- package/dist/es/components/Accordion/Accordion.js +1 -3
- package/dist/es/components/Badges/CounterBadge/CounterBadge.js +1 -2
- package/dist/es/components/Badges/InfoBadge/InfoBadge.js +28 -16
- package/dist/es/components/Badges/PriceBadge/PriceBadge.js +28 -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 -1
- package/dist/es/components/Buttons/Button/Button.d.ts +4 -0
- package/dist/es/components/Buttons/Button/Button.js +37 -12
- package/dist/es/components/Buttons/ButtonClose/ButtonClose.css +1 -1
- package/dist/es/components/Buttons/ButtonClose/ButtonClose.js +1 -2
- 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 +7 -0
- package/dist/es/components/Carousel/Carousel.js +7 -1
- 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.js +4 -6
- package/dist/es/components/Chips/Chips/Chips.d.ts +4 -0
- package/dist/es/components/Chips/Chips/Chips.js +8 -0
- package/dist/es/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +8 -0
- package/dist/es/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +10 -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 +16 -3
- package/dist/es/components/Counter/Counter.css +1 -1
- package/dist/es/components/Counter/Counter.js +2 -2
- package/dist/es/components/Dropdown/Dropdown.css +1 -1
- package/dist/es/components/Dropdown/Dropdown.d.ts +3 -1
- package/dist/es/components/Dropdown/Dropdown.js +26 -4
- package/dist/es/components/ErrorLoad/ErrorLoad.css +1 -1
- package/dist/es/components/ErrorLoad/ErrorLoad.js +1 -3
- 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.js +12 -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.d.ts +11 -2
- package/dist/es/components/Modal/Modal.js +4 -0
- package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -1
- package/dist/es/components/Modal/_ModalContent/ModalContent.js +37 -13
- package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +1 -1
- package/dist/es/components/Modal/_ModalMobile/ModalMobile.css +1 -1
- package/dist/es/components/Modal/_ModalMobile/ModalMobile.js +2 -3
- package/dist/es/components/NavArrow/NavArrow.css +1 -1
- package/dist/es/components/NavArrow/NavArrow.js +4 -4
- package/dist/es/components/Notification/Notification.js +13 -9
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +1 -1
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +1 -1
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +4 -4
- package/dist/es/components/Parameter/Parameter.js +3 -1
- 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 -0
- package/dist/es/components/Search/Search.js +14 -7
- package/dist/es/components/SectionAccordionGroup/SectionAccordionGroup.css +1 -0
- package/dist/es/components/SectionAccordionGroup/SectionAccordionGroup.d.ts +45 -0
- package/dist/es/components/SectionAccordionGroup/SectionAccordionGroup.js +161 -0
- package/dist/es/components/Select/Select.css +1 -1
- package/dist/es/components/Select/Select.d.ts +8 -1
- package/dist/es/components/Select/Select.js +17 -2
- package/dist/es/components/Selector/Selector.css +1 -1
- package/dist/es/components/Sliders/Slider/Slider.css +1 -1
- package/dist/es/components/Sliders/SliderRange/SliderRange.css +1 -1
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +1 -1
- package/dist/es/components/Snackbar/Snackbar.css +1 -1
- package/dist/es/components/Snackbar/Snackbar.js +19 -20
- 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.js +3 -2
- 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.js +5 -3
- package/dist/es/components/UploadForm/UploadField/UploadField.css +1 -1
- package/dist/es/components/UploadForm/UploadField/UploadField.d.ts +3 -0
- 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 +2 -0
- package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +9 -2
- package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.css +1 -1
- package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.js +3 -4
- 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 +3 -0
- package/dist/es/index.js +3 -0
- package/dist/lib/components/Accordion/Accordion.css +1 -1
- package/dist/lib/components/Accordion/Accordion.js +1 -3
- package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +1 -2
- package/dist/lib/components/Badges/InfoBadge/InfoBadge.js +28 -16
- package/dist/lib/components/Badges/PriceBadge/PriceBadge.js +28 -16
- 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 -1
- package/dist/lib/components/Buttons/Button/Button.d.ts +4 -0
- package/dist/lib/components/Buttons/Button/Button.js +37 -12
- package/dist/lib/components/Buttons/ButtonClose/ButtonClose.css +1 -1
- package/dist/lib/components/Buttons/ButtonClose/ButtonClose.js +1 -2
- 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 +7 -0
- package/dist/lib/components/Carousel/Carousel.js +8 -2
- 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.js +4 -6
- package/dist/lib/components/Chips/Chips/Chips.d.ts +4 -0
- package/dist/lib/components/Chips/Chips/Chips.js +8 -0
- package/dist/lib/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +8 -0
- package/dist/lib/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +9 -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 +16 -3
- package/dist/lib/components/Counter/Counter.css +1 -1
- package/dist/lib/components/Counter/Counter.js +2 -2
- package/dist/lib/components/Dropdown/Dropdown.css +1 -1
- package/dist/lib/components/Dropdown/Dropdown.d.ts +3 -1
- package/dist/lib/components/Dropdown/Dropdown.js +26 -4
- package/dist/lib/components/ErrorLoad/ErrorLoad.css +1 -1
- package/dist/lib/components/ErrorLoad/ErrorLoad.js +1 -3
- 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.js +12 -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.d.ts +11 -2
- package/dist/lib/components/Modal/Modal.js +5 -1
- package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -1
- package/dist/lib/components/Modal/_ModalContent/ModalContent.js +37 -13
- package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +1 -1
- package/dist/lib/components/Modal/_ModalMobile/ModalMobile.css +1 -1
- package/dist/lib/components/Modal/_ModalMobile/ModalMobile.js +2 -3
- package/dist/lib/components/NavArrow/NavArrow.css +1 -1
- package/dist/lib/components/NavArrow/NavArrow.js +4 -4
- package/dist/lib/components/Notification/Notification.js +13 -9
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +1 -1
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +1 -1
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +4 -4
- package/dist/lib/components/Parameter/Parameter.js +3 -1
- 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 -0
- package/dist/lib/components/Search/Search.js +14 -7
- package/dist/lib/components/SectionAccordionGroup/SectionAccordionGroup.css +1 -0
- package/dist/lib/components/SectionAccordionGroup/SectionAccordionGroup.d.ts +45 -0
- package/dist/lib/components/SectionAccordionGroup/SectionAccordionGroup.js +170 -0
- package/dist/lib/components/Select/Select.css +1 -1
- package/dist/lib/components/Select/Select.d.ts +8 -1
- package/dist/lib/components/Select/Select.js +17 -2
- package/dist/lib/components/Selector/Selector.css +1 -1
- package/dist/lib/components/Sliders/Slider/Slider.css +1 -1
- package/dist/lib/components/Sliders/SliderRange/SliderRange.css +1 -1
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +1 -1
- package/dist/lib/components/Snackbar/Snackbar.css +1 -1
- package/dist/lib/components/Snackbar/Snackbar.js +19 -20
- 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.js +3 -2
- 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.js +5 -3
- package/dist/lib/components/UploadForm/UploadField/UploadField.css +1 -1
- package/dist/lib/components/UploadForm/UploadField/UploadField.d.ts +3 -0
- 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 +2 -0
- package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +9 -2
- package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.css +1 -1
- package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.js +3 -4
- 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 +3 -0
- package/dist/lib/index.js +21 -0
- package/package.json +5 -5
- package/styles/base.scss +54 -0
|
@@ -3,14 +3,20 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
5
5
|
import { CSSTransition } from 'react-transition-group';
|
|
6
|
-
import ButtonClose from "../../Buttons/ButtonClose/ButtonClose";
|
|
7
6
|
import ScrollBar from "../../ScrollBar/ScrollBar";
|
|
8
7
|
import "./ModalContent.css";
|
|
9
8
|
var ArrowLeft24 = function ArrowLeft24(props) {
|
|
10
9
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
11
10
|
viewBox: "0 0 32 32"
|
|
12
11
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
13
|
-
d: "
|
|
12
|
+
d: "M13.906 9.114a1.25 1.25 0 111.764 1.772l-3.871 3.853H23a1.25 1.25 0 110 2.5H11.777l3.893 3.875a1.25 1.25 0 01-1.764 1.772l-5.618-5.592a1.825 1.825 0 010-2.588l5.618-5.592z"
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
var Cancel24 = function Cancel24(props) {
|
|
16
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
17
|
+
viewBox: "0 0 32 32"
|
|
18
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
d: "M9.405 9.402a1.558 1.558 0 012.201 0l4.348 4.344 4.337-4.333a1.555 1.555 0 112.201 2.2l-4.338 4.331 4.339 4.335a1.555 1.555 0 11-2.201 2.2l-4.34-4.336-4.348 4.346a1.554 1.554 0 11-2.2-2.2l4.348-4.344L9.405 11.6a1.554 1.554 0 010-2.2z"
|
|
14
20
|
}));
|
|
15
21
|
};
|
|
16
22
|
var cn = cnCreate('mfui-9-modal-content');
|
|
@@ -24,6 +30,8 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
24
30
|
showBackButton = _ref$headerProps2.showBackButton,
|
|
25
31
|
hideCloseButton = _ref$headerProps2.hideCloseButton,
|
|
26
32
|
headerAdditionalContent = _ref$headerProps2.headerAdditionalContent,
|
|
33
|
+
headerCustomContent = _ref$headerProps2.headerCustomContent,
|
|
34
|
+
buttonsTheme = _ref$headerProps2.buttonsTheme,
|
|
27
35
|
hasHeaderShadow = _ref$headerProps2.hasHeaderShadow,
|
|
28
36
|
_ref$headerProps2$isS = _ref$headerProps2.isStickyHeader,
|
|
29
37
|
isStickyHeaderProps = _ref$headerProps2$isS === void 0 ? true : _ref$headerProps2$isS,
|
|
@@ -41,6 +49,7 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
41
49
|
footerRef = _ref$refs.footerRef,
|
|
42
50
|
containerInnerRef = _ref$refs.containerInnerRef,
|
|
43
51
|
containerBodyRef = _ref$refs.containerBodyRef,
|
|
52
|
+
containerWrapRef = _ref$refs.containerWrapRef,
|
|
44
53
|
isEnabledNativeScroll = _ref.isEnabledNativeScroll,
|
|
45
54
|
isGrayColorModal = _ref.isGrayColorModal,
|
|
46
55
|
isDisabledBackgroundClick = _ref.isDisabledBackgroundClick,
|
|
@@ -60,7 +69,7 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
60
69
|
showHeaderShadow = _React$useState2[0],
|
|
61
70
|
setShowHeaderShadow = _React$useState2[1];
|
|
62
71
|
var showHeaderMain = !!showBackButton || !!headerTitle || !hideCloseButton;
|
|
63
|
-
var showHeader = showHeaderMain || !!headerAdditionalContent;
|
|
72
|
+
var showHeader = showHeaderMain || !!headerAdditionalContent || !!headerCustomContent;
|
|
64
73
|
var isStickyHeader = showHeader && isStickyHeaderProps;
|
|
65
74
|
var isStaticHeader = showHeader && !isStickyHeaderProps;
|
|
66
75
|
var isStickyFooter = !!footer && !!isStickyFooterProps;
|
|
@@ -71,22 +80,34 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
71
80
|
}, []);
|
|
72
81
|
var renderBackButton = /*#__PURE__*/React.createElement("button", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.headerBackButton), {
|
|
73
82
|
className: cn('header-button', {
|
|
74
|
-
back: true
|
|
83
|
+
back: true,
|
|
84
|
+
theme: buttonsTheme
|
|
75
85
|
}, classes === null || classes === void 0 ? void 0 : classes.headerBackButton),
|
|
76
86
|
type: "button",
|
|
77
|
-
onClick: onBackButtonClick
|
|
87
|
+
onClick: onBackButtonClick,
|
|
88
|
+
tabIndex: -1
|
|
78
89
|
}), /*#__PURE__*/React.createElement("div", {
|
|
79
|
-
className: cn('header-inner')
|
|
90
|
+
className: cn('header-inner'),
|
|
91
|
+
role: "button",
|
|
92
|
+
tabIndex: 0
|
|
80
93
|
}, /*#__PURE__*/React.createElement(ArrowLeft24, {
|
|
81
94
|
className: cn('header-icon')
|
|
82
95
|
})));
|
|
83
|
-
var renderCloseButton = /*#__PURE__*/React.createElement(
|
|
96
|
+
var renderCloseButton = /*#__PURE__*/React.createElement("button", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.headerCloseButton), {
|
|
84
97
|
className: cn('header-button', {
|
|
85
|
-
close: true
|
|
98
|
+
close: true,
|
|
99
|
+
theme: buttonsTheme
|
|
86
100
|
}, classes === null || classes === void 0 ? void 0 : classes.headerCloseButton),
|
|
87
|
-
|
|
88
|
-
onClick: onPopupClose
|
|
89
|
-
|
|
101
|
+
type: "button",
|
|
102
|
+
onClick: onPopupClose,
|
|
103
|
+
tabIndex: -1
|
|
104
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
105
|
+
className: cn('header-inner'),
|
|
106
|
+
role: "button",
|
|
107
|
+
tabIndex: 0
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Cancel24, {
|
|
109
|
+
className: cn('header-icon')
|
|
110
|
+
})));
|
|
90
111
|
var renderHeader = /*#__PURE__*/React.createElement("div", {
|
|
91
112
|
className: cn('header', {
|
|
92
113
|
shadow: showHeaderShadow,
|
|
@@ -96,11 +117,13 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
96
117
|
ref: headerRef
|
|
97
118
|
}, !!isOutSideHeaderButtons && showBackButton && renderBackButton, !isOutSideHeaderButtons && showHeaderMain && /*#__PURE__*/React.createElement("div", {
|
|
98
119
|
className: cn('header-main')
|
|
99
|
-
}, showBackButton && renderBackButton, !!
|
|
120
|
+
}, showBackButton && renderBackButton, !!headerCustomContent && /*#__PURE__*/React.createElement("div", {
|
|
121
|
+
className: cn('header-custom-content')
|
|
122
|
+
}, headerCustomContent), !!headerTitle && !headerCustomContent && /*#__PURE__*/React.createElement("div", {
|
|
100
123
|
className: cn('title-area', classes === null || classes === void 0 ? void 0 : classes.titleArea)
|
|
101
124
|
}, /*#__PURE__*/React.createElement("div", {
|
|
102
125
|
className: cn('title', classes === null || classes === void 0 ? void 0 : classes.title)
|
|
103
|
-
}, headerTitle)), !hideCloseButton && renderCloseButton), !!isOutSideHeaderButtons && !hideCloseButton && renderCloseButton, !!headerAdditionalContent && /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
}, headerTitle)), !hideCloseButton && renderCloseButton), !!isOutSideHeaderButtons && !hideCloseButton && renderCloseButton, !!headerAdditionalContent && !headerCustomContent && /*#__PURE__*/React.createElement("div", {
|
|
104
127
|
className: cn('header-additional')
|
|
105
128
|
}, headerAdditionalContent));
|
|
106
129
|
var renderFooter = /*#__PURE__*/React.createElement("div", {
|
|
@@ -150,6 +173,7 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
150
173
|
className: cn('background', classes === null || classes === void 0 ? void 0 : classes.background),
|
|
151
174
|
onClick: isDisabledBackgroundClick ? undefined : onPopupClose
|
|
152
175
|
})), /*#__PURE__*/React.createElement(CSSTransition, {
|
|
176
|
+
nodeRef: containerWrapRef,
|
|
153
177
|
"in": isBottomTransitionIn,
|
|
154
178
|
timeout: 190,
|
|
155
179
|
onExited: onTransitionExited
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-modal-desktop__container-inner{border-radius:32px}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-modal-desktop__container-inner{border-radius:32px;overflow:hidden}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-modal-mobile{width:100%}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__container-wrap{display:block;height:calc(var(--vh)*100 - 72px);width:100%}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__container-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__container-body{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow-y:auto}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__children{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__children-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__scroll-content,.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__scroll-init,.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__scroll-root{height:100%}.mfui-9-modal-mobile__container-wrap{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;position:fixed;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;-webkit-animation:show-popup-from-bottom .3s linear;animation:show-popup-from-bottom .3s linear;height:auto;justify-content:flex-end;max-height:100%;overflow:hidden;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.mfui-9-modal-mobile__container-wrap:before{content:"";display:block;-ms-flex-item-align:end;align-self:flex-end;background-color:var(--spbSky2);border-radius:10px;height:6px;margin:0 auto 8px;width:40px}.mfui-9-modal-mobile__container-wrap_move{-webkit-transition:none;transition:none}.mfui-9-modal-mobile__container-wrap_transition-end{-webkit-animation:hide-popup-to-bottom .2s linear forwards;animation:hide-popup-to-bottom .2s linear forwards}.mfui-9-modal-mobile__container-inner{-webkit-box-flex:0;-ms-flex-positive:0;border-top-left-radius:32px;border-top-right-radius:32px;flex-grow:0;height:auto}@-webkit-keyframes show-popup-from-bottom{0%{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes show-popup-from-bottom{0%{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes hide-popup-to-bottom{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes hide-popup-to-bottom{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-modal-mobile{width:100%}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__container-wrap{display:block;height:calc(var(--vh)*100 - 72px);width:100%}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__container-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__container-body{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow-y:auto}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__children{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__children-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__scroll-content,.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__scroll-init,.mfui-9-modal-mobile_full-view .mfui-9-modal-mobile__scroll-root{height:100%}.mfui-9-modal-mobile__container-wrap{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;position:fixed;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;-webkit-animation:show-popup-from-bottom .3s linear;animation:show-popup-from-bottom .3s linear;height:auto;justify-content:flex-end;max-height:100%;overflow:hidden;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.mfui-9-modal-mobile__container-wrap:before{content:"";display:block;-ms-flex-item-align:end;align-self:flex-end;background-color:var(--spbSky2);border-radius:10px;height:6px;margin:0 auto 8px;width:40px}.mfui-9-modal-mobile__container-wrap_move{-webkit-transition:none;transition:none}.mfui-9-modal-mobile__container-wrap_transition-end{-webkit-animation:hide-popup-to-bottom .2s linear forwards;animation:hide-popup-to-bottom .2s linear forwards}.mfui-9-modal-mobile__container-inner{-webkit-box-flex:0;-ms-flex-positive:0;border-top-left-radius:32px;border-top-right-radius:32px;flex-grow:0;height:auto;overflow:hidden}@-webkit-keyframes show-popup-from-bottom{0%{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes show-popup-from-bottom{0%{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes hide-popup-to-bottom{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes hide-popup-to-bottom{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}
|
|
@@ -100,12 +100,11 @@ var ModalMobile = function ModalMobile(_a) {
|
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
window.cancelAnimationFrame(animationFrameId.current);
|
|
103
|
-
var
|
|
104
|
-
var isMoreHalfClosed = ((_a = e.changedTouches[0]) === null || _a === void 0 ? void 0 : _a.clientY) > containerCenterPosition;
|
|
103
|
+
var isMoreHalfClosed = ((_a = e.changedTouches[0]) === null || _a === void 0 ? void 0 : _a.clientY) - (initialTouchPosition || 0) > offsetHeightCenter;
|
|
105
104
|
setInitialTouchPosition(null);
|
|
106
105
|
onChangeContainerWrapTransform(isMoreHalfClosed ? 'translateY(100%)' : 'none');
|
|
107
106
|
onChangeTransitionStep(isMoreHalfClosed ? MODAL_TRANSITIONS_STEPS_ENUM.MOVE_END_STEP : MODAL_TRANSITIONS_STEPS_ENUM.INITIAL_STEP);
|
|
108
|
-
}, [containerWrapRef, scrollBarScrollableRef, isTransitionMoveStep, offsetHeightCenter, onChangeContainerWrapTransform, onChangeTransitionStep]);
|
|
107
|
+
}, [containerWrapRef, scrollBarScrollableRef, isTransitionMoveStep, initialTouchPosition, offsetHeightCenter, onChangeContainerWrapTransform, onChangeTransitionStep]);
|
|
109
108
|
React.useEffect(function () {
|
|
110
109
|
if (isSwipeDisabled) {
|
|
111
110
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-nav-arrow{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;margin:0;outline:none;-webkit-transition:background-color .3s,opacity .3s;transition:background-color .3s,opacity .3s;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-9-nav-arrow:disabled{cursor:default;opacity:.3;pointer-events:none}.mfui-9-nav-arrow__icon{display:block;height:100%;width:100%;fill:var(--stcWhite)}.mfui-9-nav-arrow_size_middle{height:40px;padding:4px;width:40px}.mfui-9-nav-arrow_size_large{height:64px;padding:12px;width:64px}.mfui-9-nav-arrow_theme_purple{background-color:var(--brandPurple)}.mfui-9-nav-arrow_theme_purple:hover{background-color:var(--buttonHoverPurple)}.mfui-9-nav-arrow_theme_purple:active{background-color:var(--buttonDown)}.mfui-9-nav-arrow_theme_dark{background-color:var(--stcBlack20)}.mfui-9-nav-arrow_theme_dark:hover{background-color:var(--stcBlack50)}.mfui-9-nav-arrow_theme_dark:active{background-color:var(--buttonDown)}.mfui-9-nav-arrow_theme_white{background-color:var(--stcWhite);-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.mfui-9-nav-arrow_theme_white:hover{-webkit-box-shadow:0 8px 28px 0 rgba(0,0,0,.1);box-shadow:0 8px 28px 0 rgba(0,0,0,.1)}.mfui-9-nav-arrow_theme_white:active{-webkit-box-shadow:0 2px 8px 0 rgba(0,0,0,.16);box-shadow:0 2px 8px 0 rgba(0,0,0,.16)}.mfui-9-nav-arrow_theme_white .mfui-9-nav-arrow__icon{fill:var(--stcBlack)}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-nav-arrow{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;margin:0;outline:none;-webkit-transition:background-color .3s,opacity .3s;transition:background-color .3s,opacity .3s;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-9-nav-arrow: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-nav-arrow:focus{outline:none}.mfui-9-nav-arrow:disabled{cursor:default;opacity:.3;pointer-events:none}.mfui-9-nav-arrow__icon{display:block;height:100%;width:100%;fill:var(--stcWhite)}.mfui-9-nav-arrow_size_middle{height:40px;padding:4px;width:40px}.mfui-9-nav-arrow_size_large{height:64px;padding:12px;width:64px}.mfui-9-nav-arrow_theme_purple{background-color:var(--brandPurple)}.mfui-9-nav-arrow_theme_purple:hover{background-color:var(--buttonHoverPurple)}.mfui-9-nav-arrow_theme_purple:active{background-color:var(--buttonDown)}.mfui-9-nav-arrow_theme_dark{background-color:var(--stcBlack20)}.mfui-9-nav-arrow_theme_dark:hover{background-color:var(--stcBlack50)}.mfui-9-nav-arrow_theme_dark:active{background-color:var(--buttonDown)}.mfui-9-nav-arrow_theme_white{background-color:var(--stcWhite);-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.mfui-9-nav-arrow_theme_white:hover{-webkit-box-shadow:0 8px 28px 0 rgba(0,0,0,.1);box-shadow:0 8px 28px 0 rgba(0,0,0,.1)}.mfui-9-nav-arrow_theme_white:active{-webkit-box-shadow:0 2px 8px 0 rgba(0,0,0,.16);box-shadow:0 2px 8px 0 rgba(0,0,0,.16)}.mfui-9-nav-arrow_theme_white .mfui-9-nav-arrow__icon{fill:var(--stcBlack)}
|
|
@@ -6,28 +6,28 @@ var ArrowLeft24 = function ArrowLeft24(props) {
|
|
|
6
6
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
7
|
viewBox: "0 0 32 32"
|
|
8
8
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
9
|
-
d: "
|
|
9
|
+
d: "M13.906 9.114a1.25 1.25 0 111.764 1.772l-3.871 3.853H23a1.25 1.25 0 110 2.5H11.777l3.893 3.875a1.25 1.25 0 01-1.764 1.772l-5.618-5.592a1.825 1.825 0 010-2.588l5.618-5.592z"
|
|
10
10
|
}));
|
|
11
11
|
};
|
|
12
12
|
var ArrowRight24 = function ArrowRight24(props) {
|
|
13
13
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
14
14
|
viewBox: "0 0 32 32"
|
|
15
15
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
16
|
-
d: "
|
|
16
|
+
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"
|
|
17
17
|
}));
|
|
18
18
|
};
|
|
19
19
|
var ArrowLeft32 = function ArrowLeft32(props) {
|
|
20
20
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
21
21
|
viewBox: "0 0 40 40"
|
|
22
22
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
23
|
-
d: "
|
|
23
|
+
d: "M16.964 10.562a1.972 1.972 0 112.757 2.822l-4.732 4.628h14.538a1.973 1.973 0 010 3.947H14.96l4.762 4.657a1.973 1.973 0 11-2.757 2.822l-7.633-7.465a2.76 2.76 0 010-3.946l7.633-7.465z"
|
|
24
24
|
}));
|
|
25
25
|
};
|
|
26
26
|
var ArrowRight32 = function ArrowRight32(props) {
|
|
27
27
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
28
28
|
viewBox: "0 0 40 40"
|
|
29
29
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
30
|
-
d: "
|
|
30
|
+
d: "M19.996 10.594a1.972 1.972 0 012.79-.032l7.633 7.465a2.759 2.759 0 010 3.946l-7.634 7.465a1.972 1.972 0 11-2.756-2.822l4.732-4.628H10.223a1.973 1.973 0 010-3.947H24.79l-4.761-4.657a1.974 1.974 0 01-.033-2.79z"
|
|
31
31
|
}));
|
|
32
32
|
};
|
|
33
33
|
export var Theme = {
|
|
@@ -13,46 +13,50 @@ var ErrorIcon = function ErrorIcon(props) {
|
|
|
13
13
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
14
14
|
viewBox: "0 0 32 32"
|
|
15
15
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
16
|
-
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
clipRule: "evenodd",
|
|
18
|
+
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"
|
|
17
19
|
}), /*#__PURE__*/React.createElement("path", {
|
|
18
|
-
d: "M16
|
|
20
|
+
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"
|
|
19
21
|
}));
|
|
20
22
|
};
|
|
21
23
|
var ArrowDown = function ArrowDown(props) {
|
|
22
24
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
23
25
|
viewBox: "0 0 20 20"
|
|
24
26
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
25
|
-
d: "
|
|
26
|
-
fillRule: "evenodd",
|
|
27
|
-
clipRule: "evenodd"
|
|
27
|
+
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"
|
|
28
28
|
}));
|
|
29
29
|
};
|
|
30
30
|
var RightArrow = function RightArrow(props) {
|
|
31
31
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
32
32
|
viewBox: "0 0 20 20"
|
|
33
33
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
34
|
-
d: "
|
|
34
|
+
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"
|
|
35
35
|
}));
|
|
36
36
|
};
|
|
37
37
|
var WarningIcon = function WarningIcon(props) {
|
|
38
38
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
39
39
|
viewBox: "0 0 32 32"
|
|
40
40
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
41
|
-
|
|
41
|
+
fillRule: "evenodd",
|
|
42
|
+
clipRule: "evenodd",
|
|
43
|
+
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"
|
|
42
44
|
}));
|
|
43
45
|
};
|
|
44
46
|
var SuccessIcon = function SuccessIcon(props) {
|
|
45
47
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
46
48
|
viewBox: "0 0 32 32"
|
|
47
49
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
48
|
-
d: "
|
|
50
|
+
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"
|
|
49
51
|
}));
|
|
50
52
|
};
|
|
51
53
|
var InfoIcon = function InfoIcon(props) {
|
|
52
54
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
53
55
|
viewBox: "0 0 32 32"
|
|
54
56
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
55
|
-
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
clipRule: "evenodd",
|
|
59
|
+
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"
|
|
56
60
|
}));
|
|
57
61
|
};
|
|
58
62
|
var TIMEOUT_DELAY = 400;
|
|
@@ -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;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 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
|
+
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)}
|
package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-pagination-navigation__icon{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mfui-9-pagination-navigation__skip-icon-hover{height:20px;left:50%;opacity:0;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:20px}.mfui-9-pagination-navigation__button_direction_left .mfui-9-pagination-navigation__icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.mfui-9-pagination-navigation__button:disabled .mfui-9-pagination-navigation__arrow-icon{opacity:.25}.mfui-9-pagination-navigation__button:not(:disabled):hover .mfui-9-pagination-navigation__skip-icon-base{opacity:0}.mfui-9-pagination-navigation__button:not(:disabled):hover .mfui-9-pagination-navigation__skip-icon-hover{opacity:1}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-pagination-navigation__icon{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mfui-9-pagination-navigation__skip-icon-base{height:20px;width:20px}.mfui-9-pagination-navigation__skip-icon-hover{height:20px;left:50%;opacity:0;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:20px}.mfui-9-pagination-navigation__button_direction_left .mfui-9-pagination-navigation__icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.mfui-9-pagination-navigation__button:disabled .mfui-9-pagination-navigation__arrow-icon{opacity:.25}.mfui-9-pagination-navigation__button:not(:disabled):hover .mfui-9-pagination-navigation__skip-icon-base{opacity:0}.mfui-9-pagination-navigation__button:not(:disabled):hover .mfui-9-pagination-navigation__skip-icon-hover{opacity:1}
|
package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js
CHANGED
|
@@ -6,18 +6,18 @@ import { cnCreate, detectTouch } from '@megafon/ui-helpers';
|
|
|
6
6
|
import Tooltip from "../../../Tooltip/Tooltip";
|
|
7
7
|
import PaginationButton from "../PaginationButton/PaginationButton";
|
|
8
8
|
import "./PaginationNavigation.css";
|
|
9
|
-
var
|
|
9
|
+
var MoreIcon = function MoreIcon(props) {
|
|
10
10
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
11
11
|
viewBox: "0 0 20 20"
|
|
12
12
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
13
|
-
d: "
|
|
13
|
+
d: "M4 8a2 2 0 110 4 2 2 0 010-4zm6 0a2 2 0 110 4 2 2 0 010-4zm6 0a2 2 0 110 4 2 2 0 010-4z"
|
|
14
14
|
}));
|
|
15
15
|
};
|
|
16
16
|
var ArrowRightIcon = function ArrowRightIcon(props) {
|
|
17
17
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18
18
|
viewBox: "0 0 32 32"
|
|
19
19
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
20
|
-
d: "
|
|
20
|
+
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"
|
|
21
21
|
}));
|
|
22
22
|
};
|
|
23
23
|
var ArrowsRightIcon = function ArrowsRightIcon(props) {
|
|
@@ -79,7 +79,7 @@ var PaginationNavigation = function PaginationNavigation(_ref) {
|
|
|
79
79
|
}, [handleHover]);
|
|
80
80
|
var renderIcon = function renderIcon() {
|
|
81
81
|
if (variant === 'skip') {
|
|
82
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
82
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MoreIcon, {
|
|
83
83
|
className: cn('skip-icon-base')
|
|
84
84
|
}), !disabled && /*#__PURE__*/React.createElement(ArrowsRightIcon, {
|
|
85
85
|
className: cn('skip-icon-hover')
|
|
@@ -16,7 +16,9 @@ var InfoIcon = function InfoIcon(props) {
|
|
|
16
16
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
17
17
|
viewBox: "0 0 20 20"
|
|
18
18
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
19
|
-
|
|
19
|
+
fillRule: "evenodd",
|
|
20
|
+
clipRule: "evenodd",
|
|
21
|
+
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"
|
|
20
22
|
}));
|
|
21
23
|
};
|
|
22
24
|
var cn = cnCreate('mfui-9-parameter');
|
|
@@ -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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-row{background-color:var(--base);border:none;border-radius:16px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:12px 16px;position:relative;text-decoration:none;-webkit-transition:background-color,color,-webkit-box-shadow;transition:background-color,color,-webkit-box-shadow;transition:background-color,color,box-shadow;transition:background-color,color,box-shadow,-webkit-box-shadow;-webkit-transition-duration:.3s;transition-duration:.3s;width:100%}@media screen and (min-width:768px){.mfui-9-row{padding:20px 24px}}@media screen and (min-width:1024px){.mfui-9-row{padding:24px 32px}}.mfui-9-row:hover{text-decoration:none}.mfui-9-row__wrapper{width:100%}.mfui-9-row__icon-container,.mfui-9-row__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-row__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}@media screen and (max-width:767px){.mfui-9-row__icon-container{margin-left:-4px}}@media screen and (min-width:768px){.mfui-9-row__icon-container{height:48px;margin-right:12px;width:48px}}@media screen and (min-width:1024px){.mfui-9-row__icon-container{height:56px;margin-right:16px;width:56px}}.mfui-9-row__icon-container svg{fill:var(--content)}.mfui-9-row__icon-container_colored{background-color:var(--brandGreen20);border-radius:12px}.mfui-9-row__icon-container_colored svg{fill:var(--brandGreen)}.mfui-9-row__icon,.mfui-9-row__icon svg{height:32px;min-width:32px;width:32px}@media screen and (min-width:1024px){.mfui-9-row__icon,.mfui-9-row__icon svg{height:40px;min-width:40px;width:40px}}.mfui-9-row__header{margin-right:auto;padding-right:12px}@media screen and (max-width:767px){.mfui-9-row__title{font-size:15px;font-weight:500;line-height:24px}}.mfui-9-row__sub-title{color:var(--spbSky3);font-size:12px;line-height:18px;margin-top:2px}@media screen and (min-width:768px){.mfui-9-row__sub-title:not(.mfui-9-row_size_small){font-size:15px;line-height:24px;margin-top:4px}}.mfui-9-row__arrow{height:32px;min-width:32px;width:32px;fill:var(--spbSky3)}@media screen and (min-width:768px){.mfui-9-row__arrow{margin-left:4px}}@media screen and (min-width:1024px){.mfui-9-row__arrow{margin-left:12px}}.mfui-9-row__children{font-size:15px;font-weight:500;line-height:24px}@media screen and (min-width:768px){.mfui-9-row__children{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}}@media screen and (min-width:768px) and (min-width:1280px){.mfui-9-row__children{font-size:20px;line-height:28px}}.mfui-9-row_view_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-9-row_view_stroke{background-color:inherit;border:1px solid var(--spbSky2)}.mfui-9-row_view_gray{background-color:var(--spbSky0)}.mfui-9-row_view_gray .mfui-9-row__icon-container{background-color:var(--base);border-radius:12px}.mfui-9-row_view_white{background-color:var(--base)}.mfui-9-row_pointer{cursor:pointer}.mfui-9-row_pointer.mfui-9-row_view_shadow:hover{-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-9-row_pointer.mfui-9-row_view_shadow:hover:after{background-color:var(--stcWhite10);border-radius:12px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.mfui-9-row_pointer.mfui-9-row_view_stroke:hover{background-color:var(--spbSky0)}.mfui-9-row_pointer.mfui-9-row_view_gray:hover{background-color:var(--spbSky1)}.mfui-9-row_pointer.mfui-9-row_view_white:hover{-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-9-row_pointer.mfui-9-row_view_white:hover:after{background-color:var(--stcWhite10);border-radius:12px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.mfui-9-row_has-arrow{padding-right:8px}@media screen and (min-width:768px){.mfui-9-row_has-arrow{padding-right:16px}}@media screen and (min-width:1024px){.mfui-9-row_has-arrow{padding-right:20px}.mfui-9-row_has-arrow.mfui-9-row_size_small{padding-right:16px}}@media screen and (min-width:768px){.mfui-9-row_size_small{padding:16px 24px 16px 20px}}@media screen and (min-width:1024px){.mfui-9-row_size_small{padding:20px 24px}.mfui-9-row_size_small .mfui-9-row__sub-title{font-size:15px;line-height:24px;margin-top:4px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-row_size_small .mfui-9-row__icon-container{height:40px;width:40px}.mfui-9-row_size_small .mfui-9-row__arrow{margin-right:-4px}}.mfui-9-row_size_small .mfui-9-row__children{font-size:15px;font-weight:500;line-height:24px}.mfui-9-row_auto-height{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:auto}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-row{background-color:var(--base);border:none;border-radius:16px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:12px 16px;position:relative;text-decoration:none;-webkit-transition:background-color,color,-webkit-box-shadow;transition:background-color,color,-webkit-box-shadow;transition:background-color,color,box-shadow;transition:background-color,color,box-shadow,-webkit-box-shadow;-webkit-transition-duration:.3s;transition-duration:.3s;width:100%}.mfui-9-row: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-row:focus{outline:none}@media screen and (min-width:768px){.mfui-9-row{padding:20px 24px}}@media screen and (min-width:1024px){.mfui-9-row{padding:24px 32px}}.mfui-9-row:hover{text-decoration:none}.mfui-9-row__wrapper{width:100%}.mfui-9-row__icon-container,.mfui-9-row__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-row__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}@media screen and (max-width:767px){.mfui-9-row__icon-container{margin-left:-4px}}@media screen and (min-width:768px){.mfui-9-row__icon-container{height:48px;margin-right:12px;width:48px}}@media screen and (min-width:1024px){.mfui-9-row__icon-container{height:56px;margin-right:16px;width:56px}}.mfui-9-row__icon-container svg{fill:var(--content)}.mfui-9-row__icon-container_colored{background-color:var(--brandGreen20);border-radius:12px}.mfui-9-row__icon-container_colored svg{fill:var(--brandGreen)}.mfui-9-row__icon,.mfui-9-row__icon svg{height:32px;min-width:32px;width:32px}@media screen and (min-width:1024px){.mfui-9-row__icon,.mfui-9-row__icon svg{height:40px;min-width:40px;width:40px}}.mfui-9-row__header{margin-right:auto;padding-right:12px}@media screen and (max-width:767px){.mfui-9-row__title{font-size:15px;font-weight:500;line-height:24px}}.mfui-9-row__sub-title{color:var(--spbSky3);font-size:12px;line-height:18px;margin-top:2px}@media screen and (min-width:768px){.mfui-9-row__sub-title:not(.mfui-9-row_size_small){font-size:15px;line-height:24px;margin-top:4px}}.mfui-9-row__arrow{height:32px;min-width:32px;width:32px;fill:var(--spbSky3)}@media screen and (min-width:768px){.mfui-9-row__arrow{margin-left:4px}}@media screen and (min-width:1024px){.mfui-9-row__arrow{margin-left:12px}}.mfui-9-row__children{font-size:15px;font-weight:500;line-height:24px}@media screen and (min-width:768px){.mfui-9-row__children{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}}@media screen and (min-width:768px) and (min-width:1280px){.mfui-9-row__children{font-size:20px;line-height:28px}}.mfui-9-row_view_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-9-row_view_stroke{background-color:inherit;border:1px solid var(--spbSky2)}.mfui-9-row_view_gray{background-color:var(--spbSky0)}.mfui-9-row_view_gray .mfui-9-row__icon-container{background-color:var(--base);border-radius:12px}.mfui-9-row_view_white{background-color:var(--base)}.mfui-9-row_pointer{cursor:pointer}.mfui-9-row_pointer.mfui-9-row_view_shadow:hover{-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-9-row_pointer.mfui-9-row_view_shadow:hover:after{background-color:var(--stcWhite10);border-radius:12px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.mfui-9-row_pointer.mfui-9-row_view_stroke:hover{background-color:var(--spbSky0)}.mfui-9-row_pointer.mfui-9-row_view_gray:hover{background-color:var(--spbSky1)}.mfui-9-row_pointer.mfui-9-row_view_white:hover{-webkit-box-shadow:0 8px 28px rgba(0,0,0,.1);box-shadow:0 8px 28px rgba(0,0,0,.1)}.mfui-9-row_pointer.mfui-9-row_view_white:hover:after{background-color:var(--stcWhite10);border-radius:12px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.mfui-9-row_has-arrow{padding-right:8px}@media screen and (min-width:768px){.mfui-9-row_has-arrow{padding-right:16px}}@media screen and (min-width:1024px){.mfui-9-row_has-arrow{padding-right:20px}.mfui-9-row_has-arrow.mfui-9-row_size_small{padding-right:16px}}@media screen and (min-width:768px){.mfui-9-row_size_small{padding:16px 24px 16px 20px}}@media screen and (min-width:1024px){.mfui-9-row_size_small{padding:20px 24px}.mfui-9-row_size_small .mfui-9-row__sub-title{font-size:15px;line-height:24px;margin-top:4px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-row_size_small .mfui-9-row__icon-container{height:40px;width:40px}.mfui-9-row_size_small .mfui-9-row__arrow{margin-right:-4px}}.mfui-9-row_size_small .mfui-9-row__children{font-size:15px;font-weight:500;line-height:24px}.mfui-9-row_auto-height{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:auto}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
3
|
+
import { cnCreate, convert, filterDataAttrs, textConvertConfig, titleConvertConfig } from '@megafon/ui-helpers';
|
|
4
4
|
import Header from "../Header/Header";
|
|
5
5
|
import Preloader from "../Preloader/Preloader";
|
|
6
6
|
import "./Row.css";
|
|
@@ -8,7 +8,7 @@ var ArrowRight = function ArrowRight(props) {
|
|
|
8
8
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
9
9
|
viewBox: "0 0 32 32"
|
|
10
10
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
11
|
-
d: "
|
|
11
|
+
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"
|
|
12
12
|
}));
|
|
13
13
|
};
|
|
14
14
|
var cn = cnCreate('mfui-9-row');
|
|
@@ -56,6 +56,8 @@ var Row = function Row(_ref) {
|
|
|
56
56
|
target: href ? target : undefined,
|
|
57
57
|
rel: rel,
|
|
58
58
|
onClick: handleClick
|
|
59
|
+
}, !!onClick && {
|
|
60
|
+
tabIndex: 0
|
|
59
61
|
}), /*#__PURE__*/React.createElement("div", {
|
|
60
62
|
className: cn('wrapper')
|
|
61
63
|
}, !!icon && /*#__PURE__*/React.createElement("div", {
|
|
@@ -70,9 +72,9 @@ var Row = function Row(_ref) {
|
|
|
70
72
|
className: cn('title', [classes.title]),
|
|
71
73
|
as: isSmallSize ? 'h5' : 'h3',
|
|
72
74
|
space: isSmallSize ? 'tight' : 'wide'
|
|
73
|
-
}, title), !!subTitle && /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
}, convert(title, titleConvertConfig)), !!subTitle && /*#__PURE__*/React.createElement("div", {
|
|
74
76
|
className: cn('sub-title', [classes.subtitle])
|
|
75
|
-
}, subTitle)), !showLoader ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
}, convert(subTitle, textConvertConfig))), !showLoader ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
76
78
|
className: cn('children')
|
|
77
79
|
}, children), showArrow && /*#__PURE__*/React.createElement(ArrowRight, _extends({
|
|
78
80
|
className: cn('arrow')
|
|
@@ -32,6 +32,8 @@ export interface IScrollBarProps {
|
|
|
32
32
|
getScrollBar?: (node: HTMLElement) => void;
|
|
33
33
|
/** Ref обработчик для Scrollable element */
|
|
34
34
|
getScrollable?: (node: HTMLElement) => void;
|
|
35
|
+
/** Событие скролла */
|
|
36
|
+
onScroll?: (event: React.UIEvent<HTMLDivElement>) => void;
|
|
35
37
|
children?: React.ReactNode;
|
|
36
38
|
}
|
|
37
39
|
declare const ScrollBar: React.FC<IScrollBarProps>;
|
|
@@ -18,6 +18,7 @@ var ScrollBar = function ScrollBar(_ref) {
|
|
|
18
18
|
showAlways = _ref.showAlways,
|
|
19
19
|
getScrollBar = _ref.getScrollBar,
|
|
20
20
|
getScrollable = _ref.getScrollable,
|
|
21
|
+
onScroll = _ref.onScroll,
|
|
21
22
|
children = _ref.children;
|
|
22
23
|
var _React$useState = React.useState(false),
|
|
23
24
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -51,6 +52,9 @@ var ScrollBar = function ScrollBar(_ref) {
|
|
|
51
52
|
var scrollContentOffsetHeight = scrollContentNode.offsetHeight;
|
|
52
53
|
setIsInitialHide(scrollContentOffsetHeight <= maxHeight);
|
|
53
54
|
}, [maxHeight]);
|
|
55
|
+
var handleScroll = function handleScroll(event) {
|
|
56
|
+
onScroll === null || onScroll === void 0 ? void 0 : onScroll(event);
|
|
57
|
+
};
|
|
54
58
|
React.useEffect(function () {
|
|
55
59
|
if (!scrollBarInitNode.current || !maxHeight) {
|
|
56
60
|
return undefined;
|
|
@@ -88,7 +92,8 @@ var ScrollBar = function ScrollBar(_ref) {
|
|
|
88
92
|
forceVisible: "y",
|
|
89
93
|
ref: handleGetScrollBarRef,
|
|
90
94
|
scrollableNodeProps: {
|
|
91
|
-
ref: handleGetScrollableRef
|
|
95
|
+
ref: handleGetScrollableRef,
|
|
96
|
+
onScroll: handleScroll
|
|
92
97
|
}
|
|
93
98
|
}), /*#__PURE__*/React.createElement("div", {
|
|
94
99
|
className: cn('children-wrap', [classes === null || classes === void 0 ? void 0 : classes.childrenWrap])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}@-webkit-keyframes listAppear{0%{opacity:0;-webkit-transform:translateY(-25px);transform:translateY(-25px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes listAppear{0%{opacity:0;-webkit-transform:translateY(-25px);transform:translateY(-25px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.mfui-9-search{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);font-family:inherit;font-size:15px;line-height:24px;min-height:40px;position:relative;z-index:auto}.mfui-9-search__require-mark{color:var(--fury);font-size:20px;line-height:0;margin-left:1px}.mfui-9-search__control{border:1px solid;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;outline:none;position:relative;-webkit-transition:border-color .3s;transition:border-color .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:1}.mfui-9-search__field_labeled::-webkit-input-placeholder{color:var(--spbSky3);opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field_labeled::-moz-placeholder{color:var(--spbSky3);opacity:0;-moz-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field_labeled:-ms-input-placeholder{color:var(--spbSky3);opacity:0;-ms-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field_labeled::-ms-input-placeholder{color:var(--spbSky3);opacity:0;-ms-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field_labeled::placeholder{color:var(--spbSky3);opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field:focus::-webkit-input-placeholder{opacity:1}.mfui-9-search__field:focus::-moz-placeholder{opacity:1}.mfui-9-search__field:focus:-ms-input-placeholder{opacity:1}.mfui-9-search__field:focus::-ms-input-placeholder{opacity:1}.mfui-9-search__field:focus::placeholder{opacity:1}.mfui-9-search__field{display:block;position:relative;z-index:1;-webkit-box-flex:1;-ms-flex-positive:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;caret-color:var(--brandGreen);color:var(--content);cursor:text;flex-grow:1;font-family:inherit;font-size:100%;height:100%;line-height:24px;opacity:1;outline:none;overflow:auto;padding:0;resize:none;width:100%}@media screen and (max-width:767px){.mfui-9-search__field{width:90%}}.mfui-9-search__label{color:var(--spbSky3);display:block;font-family:inherit;font-size:15px;line-height:24px;overflow:auto;pointer-events:none;position:absolute;-webkit-transition:scale .5s,top .01s,-webkit-transform .5s;transition:scale .5s,top .01s,-webkit-transform .5s;transition:transform .5s,scale .5s,top .01s;transition:transform .5s,scale .5s,top .01s,-webkit-transform .5s;z-index:1}.mfui-9-search__list{background-color:var(--base);border-radius:12px;-webkit-box-shadow:0 4px 12px rgba(0,0,0,.08);box-shadow:0 4px 12px rgba(0,0,0,.08);display:none;left:-1px;position:absolute;right:-1px;top:calc(100% + 1px);z-index:0}.mfui-9-search__clear,.mfui-9-search__submit-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:transparent;border:none;cursor:pointer;height:100%;justify-content:center;padding:0;text-align:center}.mfui-9-search__list-inner{-webkit-box-sizing:border-box;box-sizing:border-box;max-height:368px;overflow-y:auto;padding:16px;scrollbar-width:none}.mfui-9-search__list-inner::-webkit-scrollbar{display:none}.mfui-9-search__list-item{background-color:var(--base);border-radius:16px;cursor:pointer;font-family:inherit;padding-bottom:12px;padding-top:12px}.mfui-9-search__list-item_paddings_large{padding-left:32px;padding-right:32px}.mfui-9-search__list-item_paddings_small{padding-left:12px;padding-right:12px}.mfui-9-search__popular-item{background-color:var(--base);border-radius:16px;cursor:pointer;min-height:48px;padding-left:12px;padding-right:16px;text-decoration:none}.mfui-9-search__popular-icon,.mfui-9-search__popular-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-search__popular-icon{-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;height:32px;justify-content:center;margin-right:16px;width:32px}.mfui-9-search__list-item_active,.mfui-9-search__popular-item_active{background-color:var(--spbSky0)}.mfui-9-search__item-title,.mfui-9-search__popular-item-title{position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;white-space:nowrap}.mfui-9-search__item-title:after,.mfui-9-search__popular-item-title:after{background:var(--base);bottom:0;content:"";-webkit-mask-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(var(--base)));-webkit-mask-image:linear-gradient(to right,hsla(0,0%,100%,0) 0,var(--base) 100%);mask-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(var(--spbSky0)));mask-image:linear-gradient(to right,hsla(0,0%,100%,0) 0,var(--spbSky0) 100%);position:absolute;right:0;top:0;width:40px}.mfui-9-search__list-item_active .mfui-9-search__item-title:after,.mfui-9-search__popular-item_active .mfui-9-search__popular-item-title:after{background:var(--spbSky0);-webkit-mask-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(var(--spbSky0)));-webkit-mask-image:linear-gradient(to right,hsla(0,0%,100%,0) 0,var(--spbSky0) 100%);mask-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(var(--spbSky0)));mask-image:linear-gradient(to right,hsla(0,0%,100%,0) 0,var(--spbSky0) 100%)}.mfui-9-search__notice{font-size:12px;line-height:16px;margin-top:4px}.mfui-9-search__notice_error{color:var(--fury)}.mfui-9-search__notice_success{color:var(--brandGreen)}.mfui-9-search__icons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%}.mfui-9-search__list_not-found{cursor:default}.mfui-9-search__not-found-text{background-color:var(--base);color:var(--spbSky3);font-family:inherit;padding:12px 32px}.mfui-9-search__not-found-text_show-popular{border-bottom:1px solid var(--spbSky2);padding:0 0 16px}.mfui-9-search__popular-title{padding-bottom:8px;padding-top:16px}.mfui-9-search_open{z-index:12}.mfui-9-search_open .mfui-9-search__list{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-name:listAppear;animation-name:listAppear;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;display:block}.mfui-9-search_type_textfield .mfui-9-search__control{background-color:var(--base);border-color:var(--spbSky2);border-radius:16px;height:60px;padding:0 16px}.mfui-9-search_type_textfield .mfui-9-search__control:hover,.mfui-9-search_type_textfield .mfui-9-search__control_focused{border-color:var(--content)}.mfui-9-search_type_textfield .mfui-9-search__label{top:17px}.mfui-9-search_type_textfield .mfui-9-search__field:focus+.mfui-9-search__label,.mfui-9-search_type_textfield .mfui-9-search__field_filled+.mfui-9-search__label{-webkit-transform:scale(.8) translate(-12.5%,-75%);transform:scale(.8) translate(-12.5%,-75%);-webkit-transition:scale .2s,top .01s,-webkit-transform .2s;transition:scale .2s,top .01s,-webkit-transform .2s;transition:transform .2s,scale .2s,top .01s;transition:transform .2s,scale .2s,top .01s,-webkit-transform .2s}.mfui-9-search_type_textfield .mfui-9-search__field_labeled{padding-bottom:9px;padding-top:25px}.mfui-9-search_type_textfield .mfui-9-search__submit-icon{height:32px;width:32px;fill:var(--content)}.mfui-9-search_textarea .mfui-9-search__control{height:auto;min-height:60px}.mfui-9-search_textarea .mfui-9-search__field{-webkit-box-sizing:content-box;box-sizing:content-box;max-height:204px;padding-bottom:9px;padding-top:17px;scrollbar-color:var(--spbSky2) transparent;scrollbar-width:thin}.mfui-9-search_textarea .mfui-9-search__field_labeled{padding-bottom:9px;padding-top:25px}.mfui-9-search_textarea .mfui-9-search__icons{height:58px;margin-left:8px}.mfui-9-search_textarea .mfui-9-search__field_resized{-webkit-transition:height .1s;transition:height .1s;will-change:height}.mfui-9-search__textarea-wrapper{position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;width:100%}.mfui-9-search_type_textfield.mfui-9-search_disabled .mfui-9-search__control{background-color:var(--spbSky1);border-color:var(--spbSky1)}.mfui-9-search_type_textfield.mfui-9-search_disabled .mfui-9-search__submit-icon{opacity:.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfui-9-search_type_compact .mfui-9-search__control{background-color:var(--spbSky0);border-color:var(--spbSky0);border-radius:12px;height:40px;padding:0 12px;-webkit-transition:background-color,border-color .3s;transition:background-color,border-color .3s}.mfui-9-search_type_compact .mfui-9-search__control:hover{background-color:var(--spbSky1)}.mfui-9-search_type_compact .mfui-9-search__field{height:100%;padding:8px 0 8px 12px}.mfui-9-search_type_compact .mfui-9-search__label{left:44px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.mfui-9-search_type_compact .mfui-9-search__field:focus+.mfui-9-search__label,.mfui-9-search_type_compact .mfui-9-search__field_filled+.mfui-9-search__label{opacity:0}.mfui-9-search_type_compact .mfui-9-search__submit-icon{height:20px;width:20px;fill:var(--spbSky3)}.mfui-9-search_type_compact .mfui-9-search__clear{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:transparent;border:none;cursor:pointer;height:24px;justify-content:center;margin-left:12px;padding:0;width:24px}.mfui-9-search_type_compact .mfui-9-search__clear-icon{height:24px;width:24px;fill:var(--spbSky3)}.mfui-9-search_type_compact .mfui-9-search__clear-icon:hover{fill:var(--content)}.mfui-9-search_type_compact .mfui-9-search__clear-icon:active{fill:var(--buttonDown)}.mfui-9-search_type_compact.mfui-9-search_open .mfui-9-search__control{background-color:var(--spbSky1)}.mfui-9-search_type_compact.mfui-9-search_open .mfui-9-search__submit-icon{fill:var(--content)}.mfui-9-search_disabled .mfui-9-search__control{cursor:default;pointer-events:none}.mfui-9-search_disabled .mfui-9-search__submit-icon{opacity:.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfui-9-search_error .mfui-9-search__control{border-color:var(--fury)}.mfui-9-search_success .mfui-9-search__control{border-color:var(--brandGreen)}.mfui-9-search__resizer{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;right:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-sizing:content-box;box-sizing:content-box;cursor:ns-resize;height:12px;justify-content:center;padding:4px;width:12px}.mfui-9-search__resizer svg{-webkit-transition:stroke .3s;transition:stroke .3s;stroke:var(--spbSky2)}.mfui-9-search__resizer:active svg,.mfui-9-search__resizer:hover svg{stroke:var(--spbSky3)}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}@-webkit-keyframes listAppear{0%{opacity:0;-webkit-transform:translateY(-25px);transform:translateY(-25px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes listAppear{0%{opacity:0;-webkit-transform:translateY(-25px);transform:translateY(-25px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.mfui-9-search{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);font-family:inherit;font-size:15px;line-height:24px;min-height:40px;position:relative;z-index:auto}.mfui-9-search__require-mark{color:var(--fury);font-size:20px;line-height:0;margin-left:1px}.mfui-9-search__control{border:1px solid;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;outline:none;position:relative;-webkit-transition:border-color .3s;transition:border-color .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:1}.mfui-9-search__field_labeled::-webkit-input-placeholder{color:var(--spbSky3);opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field_labeled::-moz-placeholder{color:var(--spbSky3);opacity:0;-moz-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field_labeled:-ms-input-placeholder{color:var(--spbSky3);opacity:0;-ms-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field_labeled::-ms-input-placeholder{color:var(--spbSky3);opacity:0;-ms-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field_labeled::placeholder{color:var(--spbSky3);opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s}.mfui-9-search__field:focus::-webkit-input-placeholder{opacity:1}.mfui-9-search__field:focus::-moz-placeholder{opacity:1}.mfui-9-search__field:focus:-ms-input-placeholder{opacity:1}.mfui-9-search__field:focus::-ms-input-placeholder{opacity:1}.mfui-9-search__field:focus::placeholder{opacity:1}.mfui-9-search__field{display:block;position:relative;z-index:1;-webkit-box-flex:1;-ms-flex-positive:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;caret-color:var(--brandGreen);color:var(--content);cursor:text;flex-grow:1;font-family:inherit;font-size:100%;height:100%;line-height:24px;opacity:1;outline:none;overflow:auto;padding:0;resize:none;width:100%}@media screen and (max-width:767px){.mfui-9-search__field{width:90%}}.mfui-9-search__label{color:var(--spbSky3);display:block;font-family:inherit;font-size:15px;line-height:24px;overflow:auto;pointer-events:none;position:absolute;-webkit-transition:scale .5s,top .01s,-webkit-transform .5s;transition:scale .5s,top .01s,-webkit-transform .5s;transition:transform .5s,scale .5s,top .01s;transition:transform .5s,scale .5s,top .01s,-webkit-transform .5s;z-index:1}.mfui-9-search__list{background-color:var(--base);border-radius:12px;-webkit-box-shadow:0 4px 12px rgba(0,0,0,.08);box-shadow:0 4px 12px rgba(0,0,0,.08);display:none;left:-1px;position:absolute;right:-1px;top:calc(100% + 1px);z-index:0}.mfui-9-search__clear,.mfui-9-search__submit-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:transparent;border:none;cursor:pointer;height:100%;justify-content:center;padding:0;text-align:center}.mfui-9-search__submit-button:focus-visible{outline:none}.mfui-9-search__submit-button:focus-visible .mfui-9-search__submit-icon{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;border-radius:12px;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-search__clear:focus-visible{outline:none}.mfui-9-search__clear:focus-visible .mfui-9-search__clear-icon{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;border-radius:12px;outline-offset:2px}.mfui-9-search__list-inner{-webkit-box-sizing:border-box;box-sizing:border-box;max-height:368px;overflow-y:auto;padding:16px;scrollbar-width:none}.mfui-9-search__list-inner::-webkit-scrollbar{display:none}.mfui-9-search__list-item{background-color:var(--base);border-radius:16px;cursor:pointer;font-family:inherit;padding-bottom:12px;padding-top:12px}.mfui-9-search__list-item_paddings_large{padding-left:32px;padding-right:32px}.mfui-9-search__list-item_paddings_small{padding-left:12px;padding-right:12px}.mfui-9-search__popular-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--base);border-radius:16px;cursor:pointer;min-height:48px;padding-left:12px;padding-right:16px;text-decoration:none}.mfui-9-search__popular-item:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-search__popular-item:focus{outline:none}.mfui-9-search__popular-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;height:32px;justify-content:center;margin-right:16px;width:32px}.mfui-9-search__list-item_active,.mfui-9-search__popular-item_active{background-color:var(--spbSky0)}.mfui-9-search__item-title,.mfui-9-search__popular-item-title{position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;white-space:nowrap}.mfui-9-search__item-title:after,.mfui-9-search__popular-item-title:after{background:var(--base);bottom:0;content:"";-webkit-mask-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(var(--base)));-webkit-mask-image:linear-gradient(to right,hsla(0,0%,100%,0) 0,var(--base) 100%);mask-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(var(--spbSky0)));mask-image:linear-gradient(to right,hsla(0,0%,100%,0) 0,var(--spbSky0) 100%);position:absolute;right:0;top:0;width:40px}.mfui-9-search__list-item_active .mfui-9-search__item-title:after,.mfui-9-search__popular-item_active .mfui-9-search__popular-item-title:after{background:var(--spbSky0);-webkit-mask-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(var(--spbSky0)));-webkit-mask-image:linear-gradient(to right,hsla(0,0%,100%,0) 0,var(--spbSky0) 100%);mask-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(var(--spbSky0)));mask-image:linear-gradient(to right,hsla(0,0%,100%,0) 0,var(--spbSky0) 100%)}.mfui-9-search__notice{color:var(--spbSky3);font-size:12px;line-height:16px;margin-top:4px}.mfui-9-search__notice_error{color:var(--fury)}.mfui-9-search__notice_success{color:var(--brandGreen)}.mfui-9-search__icons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%}.mfui-9-search__list_not-found{cursor:default}.mfui-9-search__not-found-text{background-color:var(--base);color:var(--spbSky3);font-family:inherit;padding:12px 32px}.mfui-9-search__not-found-text_show-popular{border-bottom:1px solid var(--spbSky2);padding:0 0 16px}.mfui-9-search__popular-title{padding-bottom:8px;padding-top:16px}.mfui-9-search_open{z-index:12}.mfui-9-search_open .mfui-9-search__list{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-name:listAppear;animation-name:listAppear;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;display:block}.mfui-9-search_type_textfield .mfui-9-search__control{background-color:var(--base);border-color:var(--spbSky2);border-radius:16px;height:60px;padding:0 16px}.mfui-9-search_type_textfield .mfui-9-search__control:hover,.mfui-9-search_type_textfield .mfui-9-search__control_focused{border-color:var(--content)}.mfui-9-search_type_textfield .mfui-9-search__label{top:17px}.mfui-9-search_type_textfield .mfui-9-search__field:focus+.mfui-9-search__label,.mfui-9-search_type_textfield .mfui-9-search__field_filled+.mfui-9-search__label{-webkit-transform:scale(.8) translate(-12.5%,-75%);transform:scale(.8) translate(-12.5%,-75%);-webkit-transition:scale .2s,top .01s,-webkit-transform .2s;transition:scale .2s,top .01s,-webkit-transform .2s;transition:transform .2s,scale .2s,top .01s;transition:transform .2s,scale .2s,top .01s,-webkit-transform .2s}.mfui-9-search_type_textfield .mfui-9-search__field_labeled{padding-bottom:9px;padding-top:25px}.mfui-9-search_type_textfield .mfui-9-search__submit-icon{height:32px;width:32px;fill:var(--content)}.mfui-9-search_textarea .mfui-9-search__control{height:auto;min-height:60px}.mfui-9-search_textarea .mfui-9-search__field{-webkit-box-sizing:content-box;box-sizing:content-box;max-height:204px;padding-bottom:9px;padding-top:17px;scrollbar-color:var(--spbSky2) transparent;scrollbar-width:thin}.mfui-9-search_textarea .mfui-9-search__field_labeled{padding-bottom:9px;padding-top:25px}.mfui-9-search_textarea .mfui-9-search__icons{height:58px;margin-left:8px}.mfui-9-search_textarea .mfui-9-search__field_resized{-webkit-transition:height .1s;transition:height .1s;will-change:height}.mfui-9-search__textarea-wrapper{position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;width:100%}.mfui-9-search_type_textfield.mfui-9-search_disabled .mfui-9-search__control{background-color:var(--spbSky0);border-color:var(--spbSky2)}.mfui-9-search_type_textfield.mfui-9-search_disabled .mfui-9-search__submit-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:var(--spbSky2)}.mfui-9-search_type_compact .mfui-9-search__control{background-color:var(--spbSky0);border-color:var(--spbSky0);border-radius:12px;height:40px;padding:0 12px;-webkit-transition:background-color,border-color .3s;transition:background-color,border-color .3s}.mfui-9-search_type_compact .mfui-9-search__control:hover{background-color:var(--spbSky1)}.mfui-9-search_type_compact .mfui-9-search__field{height:100%;padding:8px 0 8px 12px}.mfui-9-search_type_compact .mfui-9-search__label{left:44px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.mfui-9-search_type_compact .mfui-9-search__field:focus+.mfui-9-search__label,.mfui-9-search_type_compact .mfui-9-search__field_filled+.mfui-9-search__label{opacity:0}.mfui-9-search_type_compact .mfui-9-search__submit-icon{height:20px;width:20px;fill:var(--content)}.mfui-9-search_type_compact .mfui-9-search__clear{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:transparent;border:none;cursor:pointer;height:24px;justify-content:center;margin-left:12px;padding:0;width:24px}.mfui-9-search_type_compact .mfui-9-search__clear-icon{height:24px;width:24px;fill:var(--spbSky3)}.mfui-9-search_type_compact .mfui-9-search__clear-icon:hover{fill:var(--content)}.mfui-9-search_type_compact .mfui-9-search__clear-icon:active{fill:var(--buttonDown)}.mfui-9-search_type_compact.mfui-9-search_open .mfui-9-search__control{background-color:var(--spbSky1)}.mfui-9-search_type_compact.mfui-9-search_disabled .mfui-9-search__field{color:var(--spbSky3)}.mfui-9-search_compact-theme_white .mfui-9-search__control{background-color:var(--base);border-color:var(--base)}.mfui-9-search_compact-theme_white .mfui-9-search__control:hover{background-color:var(--base)}.mfui-9-search_compact-theme_white.mfui-9-search_disabled .mfui-9-search__control{background-color:var(--spbSky0);border-color:var(--spbSky2)}.mfui-9-search_compact-theme_white.mfui-9-search_open .mfui-9-search__control{background-color:var(--base)}.mfui-9-search_disabled .mfui-9-search__control{cursor:default;pointer-events:none}.mfui-9-search_disabled .mfui-9-search__submit-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:var(--spbSky2)}.mfui-9-search_error .mfui-9-search__control{border-color:var(--fury)}.mfui-9-search_success .mfui-9-search__control{border-color:var(--brandGreen)}.mfui-9-search__resizer{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;right:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-sizing:content-box;box-sizing:content-box;cursor:ns-resize;height:12px;justify-content:center;padding:4px;width:12px}.mfui-9-search__resizer svg{-webkit-transition:stroke .3s;transition:stroke .3s;stroke:var(--spbSky2)}.mfui-9-search__resizer:active svg,.mfui-9-search__resizer:hover svg{stroke:var(--spbSky3)}
|
|
@@ -50,6 +50,8 @@ export interface ISearchProps {
|
|
|
50
50
|
value?: string;
|
|
51
51
|
/** Вид отображения */
|
|
52
52
|
type?: 'textfield' | 'compact';
|
|
53
|
+
/** Цветовая тема для типа compact */
|
|
54
|
+
compactTheme?: 'default' | 'white';
|
|
53
55
|
/** Включить режим textarea */
|
|
54
56
|
textarea?: boolean;
|
|
55
57
|
/** Заголовок поля */
|
|
@@ -19,28 +19,32 @@ var SearchIcon16 = function SearchIcon16(props) {
|
|
|
19
19
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
20
20
|
viewBox: "0 0 20 20"
|
|
21
21
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
22
|
-
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
clipRule: "evenodd",
|
|
24
|
+
d: "M9.055 2.305a6.5 6.5 0 014.698 10.989l2.657 2.657a.5.5 0 01-.707.707l-2.695-2.695A6.5 6.5 0 119.055 2.305zm0 1a5.5 5.5 0 000 11 5.476 5.476 0 003.587-1.334.5.5 0 01.136-.12 5.5 5.5 0 00-3.723-9.547z"
|
|
23
25
|
}));
|
|
24
26
|
};
|
|
25
27
|
var SearchIcon = function SearchIcon(props) {
|
|
26
28
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
27
29
|
viewBox: "0 0 32 32"
|
|
28
30
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
clipRule: "evenodd",
|
|
33
|
+
d: "M14.336 3.68c5.668 0 10.262 4.595 10.263 10.263 0 2.79-1.115 5.317-2.921 7.167l4.166 4.208a.801.801 0 01-1.137 1.126l-4.232-4.275a10.216 10.216 0 01-6.14 2.038c-5.667 0-10.263-4.596-10.263-10.264 0-5.668 4.596-10.262 10.264-10.262zm0 1.6a8.664 8.664 0 000 17.327 8.626 8.626 0 005.601-2.058.832.832 0 01.15-.128 8.664 8.664 0 00-5.751-15.14z"
|
|
30
34
|
}));
|
|
31
35
|
};
|
|
32
36
|
var ClearIcon = function ClearIcon(props) {
|
|
33
37
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
34
38
|
viewBox: "0 0 20 20"
|
|
35
39
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
36
|
-
|
|
37
|
-
d: "M10 8.8L6.2 5 5 6.2 8.8 10 5 13.8 6.2 15l3.8-3.8 3.8 3.8 1.2-1.2-3.8-3.8L15 6.2 13.8 5 10 8.8z"
|
|
40
|
+
d: "M5.762 5.76a1 1 0 011.415 0l2.795 2.79 2.788-2.785a1.001 1.001 0 011.415 1.414l-2.788 2.785 2.789 2.787a1 1 0 01-1.414 1.414l-2.79-2.787-2.796 2.794A1 1 0 115.76 12.76l2.796-2.794-2.795-2.792a1 1 0 010-1.414z"
|
|
38
41
|
}));
|
|
39
42
|
};
|
|
40
43
|
var ResizeIcon = function ResizeIcon(props) {
|
|
41
44
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
42
45
|
width: 12,
|
|
43
|
-
height: 12
|
|
46
|
+
height: 12,
|
|
47
|
+
viewBox: "0 0 12 12"
|
|
44
48
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
45
49
|
d: "M1 11L11 1M7 11l4-4"
|
|
46
50
|
}));
|
|
@@ -86,6 +90,7 @@ var Search = function Search(_ref) {
|
|
|
86
90
|
classes = _ref.classes,
|
|
87
91
|
_ref$type = _ref.type,
|
|
88
92
|
type = _ref$type === void 0 ? 'textfield' : _ref$type,
|
|
93
|
+
compactTheme = _ref.compactTheme,
|
|
89
94
|
textarea = _ref.textarea,
|
|
90
95
|
showLoader = _ref.showLoader,
|
|
91
96
|
showNotFound = _ref.showNotFound,
|
|
@@ -543,14 +548,16 @@ var Search = function Search(_ref) {
|
|
|
543
548
|
ref: getFieldRef
|
|
544
549
|
})), label && renderLabel));
|
|
545
550
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
546
|
-
className: cn({
|
|
551
|
+
className: cn(_extends({
|
|
547
552
|
open: isFocused,
|
|
548
553
|
disabled: disabled,
|
|
549
554
|
type: type,
|
|
550
555
|
textarea: isTextarea,
|
|
551
556
|
error: verification === Verification.ERROR,
|
|
552
557
|
success: verification === Verification.VALID
|
|
553
|
-
},
|
|
558
|
+
}, isCompact && {
|
|
559
|
+
'compact-theme': compactTheme
|
|
560
|
+
}), [className])
|
|
554
561
|
}), /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.control), {
|
|
555
562
|
className: cn('control', {
|
|
556
563
|
focused: isTextareaResizing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-section-accordion-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mfui-9-section-accordion-group__item{background-color:var(--base);overflow:hidden;-webkit-transition:margin-top .3s ease-out,border-radius .3s ease-out;transition:margin-top .3s ease-out,border-radius .3s ease-out}.mfui-9-section-accordion-group__item:has(.mfui-9-section-accordion-group__header:focus-visible){-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px;position:relative;z-index:1}@-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-section-accordion-group__item_closed-single{border-radius:24px}.mfui-9-section-accordion-group__item_closed-single .mfui-9-section-accordion-group__header{padding:20px 16px}.mfui-9-section-accordion-group__item_closed-top{border-radius:24px 24px 8px 8px}.mfui-9-section-accordion-group__item_closed-top .mfui-9-section-accordion-group__header{padding:20px 16px 16px}.mfui-9-section-accordion-group__item_closed-middle{border-radius:8px}.mfui-9-section-accordion-group__item_closed-middle .mfui-9-section-accordion-group__header{padding:16px}.mfui-9-section-accordion-group__item_closed-bottom{border-radius:8px 8px 24px 24px}.mfui-9-section-accordion-group__item_closed-bottom .mfui-9-section-accordion-group__header{padding:16px 16px 20px}.mfui-9-section-accordion-group__item_opened{border-radius:24px}.mfui-9-section-accordion-group__item_opened .mfui-9-section-accordion-group__header{padding:20px 16px 16px}.mfui-9-section-accordion-group__item_closed+.mfui-9-section-accordion-group__item_closed{margin-top:1px}.mfui-9-section-accordion-group__item_closed+.mfui-9-section-accordion-group__item_opened,.mfui-9-section-accordion-group__item_opened+.mfui-9-section-accordion-group__item_closed{margin-top:12px}@media screen and (min-width:1024px){.mfui-9-section-accordion-group__item_closed+.mfui-9-section-accordion-group__item_opened,.mfui-9-section-accordion-group__item_opened+.mfui-9-section-accordion-group__item_closed{margin-top:24px}}.mfui-9-section-accordion-group__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;cursor:pointer;justify-content:space-between;width:100%;-webkit-tap-highlight-color:transparent;-webkit-transition:background-color .3s ease-out;transition:background-color .3s ease-out}.mfui-9-section-accordion-group__header:focus,.mfui-9-section-accordion-group__header:focus-visible{outline:none}@media screen and (max-width:767px){.mfui-9-section-accordion-group__header:active{background-color:var(--spbSky1)}}@media screen and (min-width:1024px){.mfui-9-section-accordion-group__header:hover{background-color:var(--spbSky1)}.mfui-9-section-accordion-group__header:hover+.mfui-9-section-accordion-group__divider{background-color:var(--spbSky1);margin:0;opacity:1}.mfui-9-section-accordion-group__header:hover+.mfui-9-section-accordion-group__divider_visible{opacity:0}}.mfui-9-section-accordion-group__header-left,.mfui-9-section-accordion-group__header-right{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-section-accordion-group__icon{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;height:24px;justify-content:center;width:24px}.mfui-9-section-accordion-group__icon svg{fill:var(--brandGreen)}.mfui-9-section-accordion-group__title{font-size:15px;font-weight:500;line-height:24px}.mfui-9-section-accordion-group__arrow-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:var(--spbSky0);border-radius:50%;height:24px;justify-content:center;width:24px}@media screen and (min-width:768px){.mfui-9-section-accordion-group__arrow-wrapper{height:32px;width:32px}}.mfui-9-section-accordion-group__arrow-icon{-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}.mfui-9-section-accordion-group__item_opened .mfui-9-section-accordion-group__arrow-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.mfui-9-section-accordion-group__divider{background-color:var(--spbSky1);height:1px;opacity:0;-webkit-transition:opacity .3s ease-out,height .3s ease-out,margin .3s ease-out;transition:opacity .3s ease-out,height .3s ease-out,margin .3s ease-out}@media screen and (max-width:767px){.mfui-9-section-accordion-group__divider{margin:0 16px}}.mfui-9-section-accordion-group__divider_visible{margin:0 16px;opacity:1}.mfui-9-section-accordion-group__content-inner{padding:12px 16px 16px}.mfui-9-section-accordion-group__body{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px}
|