@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
|
@@ -37,6 +37,8 @@ export interface IDropdownProps<T extends DropdownItemValueType> {
|
|
|
37
37
|
hoveredIndex?: number;
|
|
38
38
|
/** Текст при отсутствии элементов */
|
|
39
39
|
emptyText?: string;
|
|
40
|
+
/** Контент, отображаемый в шапке дропдауна */
|
|
41
|
+
headerContent?: React.ReactNode;
|
|
40
42
|
/** Отключение компонента */
|
|
41
43
|
disabled?: boolean;
|
|
42
44
|
/** Отображать короткий выпадающий список */
|
|
@@ -60,5 +62,5 @@ export interface IDropdownProps<T extends DropdownItemValueType> {
|
|
|
60
62
|
/** Обработчик закрытия списка */
|
|
61
63
|
onClose?: () => void;
|
|
62
64
|
}
|
|
63
|
-
declare const Dropdown: <T extends DropdownItemValueType>({ items, value, filterValue, isOpen, hoveredIndex, targetRef, emptyText, disabled, short, className, classes, dataAttrs, onItemClick, onClose, }: IDropdownProps<T>) => JSX.Element | null;
|
|
65
|
+
declare const Dropdown: <T extends DropdownItemValueType>({ items, value, filterValue, isOpen, hoveredIndex, targetRef, emptyText, headerContent, disabled, short, className, classes, dataAttrs, onItemClick, onClose, }: IDropdownProps<T>) => JSX.Element | null;
|
|
64
66
|
export default Dropdown;
|
|
@@ -29,6 +29,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
29
29
|
targetRef = _ref.targetRef,
|
|
30
30
|
_ref$emptyText = _ref.emptyText,
|
|
31
31
|
emptyText = _ref$emptyText === void 0 ? 'Нет элементов' : _ref$emptyText,
|
|
32
|
+
headerContent = _ref.headerContent,
|
|
32
33
|
_ref$disabled = _ref.disabled,
|
|
33
34
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
34
35
|
_ref$short = _ref["short"],
|
|
@@ -43,6 +44,10 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
43
44
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
44
45
|
isVisible = _React$useState2[0],
|
|
45
46
|
setIsVisible = _React$useState2[1];
|
|
47
|
+
var _React$useState3 = React.useState(null),
|
|
48
|
+
_React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
|
|
49
|
+
mouseOverIndex = _React$useState4[0],
|
|
50
|
+
setMouseOverIndex = _React$useState4[1];
|
|
46
51
|
var dropdownRef = React.useRef(null);
|
|
47
52
|
var handleOutsideClick = React.useCallback(function (event) {
|
|
48
53
|
var target = event.target;
|
|
@@ -60,6 +65,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
60
65
|
} else {
|
|
61
66
|
document.removeEventListener('mousedown', handleOutsideClick);
|
|
62
67
|
setIsVisible(false);
|
|
68
|
+
setMouseOverIndex(null);
|
|
63
69
|
}
|
|
64
70
|
return function () {
|
|
65
71
|
document.removeEventListener('mousedown', handleOutsideClick);
|
|
@@ -77,9 +83,19 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
77
83
|
}
|
|
78
84
|
return item.view;
|
|
79
85
|
};
|
|
86
|
+
var handleKeyDown = React.useCallback(function (e, index) {
|
|
87
|
+
if (e.code === 'Enter') {
|
|
88
|
+
onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(index)(e);
|
|
89
|
+
}
|
|
90
|
+
}, [onItemClick]);
|
|
91
|
+
var handleItemMouseEnter = React.useCallback(function (index) {
|
|
92
|
+
return function () {
|
|
93
|
+
setMouseOverIndex(index);
|
|
94
|
+
};
|
|
95
|
+
}, []);
|
|
80
96
|
var renderItem = function renderItem(item, index) {
|
|
81
97
|
var isActive = item.value === value;
|
|
82
|
-
var isHovered = index === hoveredIndex;
|
|
98
|
+
var isHovered = index === (mouseOverIndex !== null && mouseOverIndex !== void 0 ? mouseOverIndex : hoveredIndex);
|
|
83
99
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
84
100
|
key: item.value
|
|
85
101
|
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, index + 1), {
|
|
@@ -91,7 +107,11 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
91
107
|
onClick: onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(index),
|
|
92
108
|
role: "option",
|
|
93
109
|
"aria-selected": isActive,
|
|
94
|
-
tabIndex:
|
|
110
|
+
tabIndex: 0,
|
|
111
|
+
onKeyDown: function onKeyDown(e) {
|
|
112
|
+
return handleKeyDown(e, index);
|
|
113
|
+
},
|
|
114
|
+
onMouseEnter: handleItemMouseEnter(index)
|
|
95
115
|
}), getItemContent(item, isActive));
|
|
96
116
|
};
|
|
97
117
|
if (!isOpen) {
|
|
@@ -105,8 +125,10 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
105
125
|
"short": _short
|
|
106
126
|
}, [className, classes.root]),
|
|
107
127
|
role: "listbox",
|
|
108
|
-
tabIndex:
|
|
109
|
-
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement("div",
|
|
128
|
+
tabIndex: -1
|
|
129
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), !!headerContent && /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: cn('header')
|
|
131
|
+
}, headerContent), /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.list), {
|
|
110
132
|
className: cn('list', [classes.list])
|
|
111
133
|
}), items.length > 0 ? items.map(renderItem) : /*#__PURE__*/React.createElement("div", {
|
|
112
134
|
className: cn('empty')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-error-load{background:inherit}.mfui-9-error-load_cardinal_vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;-ms-flex-align:center;-ms-flex-item-align:stretch;align-self:stretch}.mfui-9-error-load_cardinal_horizontal,.mfui-9-error-load_cardinal_vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;align-items:center}.mfui-9-error-load_cardinal_horizontal{gap:8px;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-9-error-load__header{text-align:center}.mfui-9-error-load__text .mfui-9-error-load__caption_background_on-color,.mfui-9-error-load__text .mfui-9-error-load__header_background_on-color{color:var(--stcWhite)}.mfui-9-error-load__text .mfui-9-error-load__caption_background_on-base{color:var(--spbSky3)}.mfui-9-error-load__text{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px}.mfui-9-error-load__text_cardinal_vertical{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-error-load{background:inherit}.mfui-9-error-load_cardinal_vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;-ms-flex-align:center;-ms-flex-item-align:stretch;align-self:stretch}.mfui-9-error-load_cardinal_horizontal,.mfui-9-error-load_cardinal_vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;align-items:center}.mfui-9-error-load_cardinal_horizontal{gap:8px;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-9-error-load_cardinal_horizontal .mfui-9-error-load__header{text-align:left}.mfui-9-error-load__header{text-align:center}.mfui-9-error-load__text .mfui-9-error-load__caption_background_on-color,.mfui-9-error-load__text .mfui-9-error-load__header_background_on-color{color:var(--stcWhite)}.mfui-9-error-load__text .mfui-9-error-load__caption_background_on-base{color:var(--spbSky3)}.mfui-9-error-load__text{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px}.mfui-9-error-load__text_cardinal_vertical{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch}
|
|
@@ -19,9 +19,7 @@ var RefreshIcon24 = function RefreshIcon24(props) {
|
|
|
19
19
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
20
20
|
viewBox: "0 0 32 32"
|
|
21
21
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
22
|
-
|
|
23
|
-
clipRule: "evenodd",
|
|
24
|
-
d: "M16.064 8C11.604 8 8 11.588 8 16s3.604 8 8.064 8c4.1 0 7.478-3.033 7.995-6.948l1.983.262C25.393 22.223 21.17 26 16.064 26 10.513 26 6 21.53 6 16S10.513 6 16.064 6c3.456 0 6.507 1.731 8.32 4.371l.704-2.345 1.915.575-1.419 4.726a1 1 0 01-1.228.675l-4.855-1.364.541-1.925 2.664.748A8.074 8.074 0 0016.064 8z"
|
|
22
|
+
d: "M15.698 5.172a11.6 11.6 0 019.24 4.562l.079-.83a1.547 1.547 0 013.083.285l-.353 3.797a2.323 2.323 0 01-2.526 2.098l-3.796-.352a1.549 1.549 0 01.286-3.083l.854.079a8.508 8.508 0 00-6.867-3.46c-4.703 0-8.493 3.776-8.493 8.406 0 4.63 3.79 8.405 8.493 8.405 3.787 0 6.989-2.452 8.086-5.828a1.549 1.549 0 012.946.957c-1.505 4.628-5.879 7.968-11.032 7.968-6.387 0-11.588-5.137-11.589-11.502 0-6.365 5.202-11.502 11.59-11.502z"
|
|
25
23
|
}));
|
|
26
24
|
};
|
|
27
25
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-error-load');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-link{border-radius:8px}.mfui-9-link: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-link:focus{outline:none}
|
|
@@ -11,6 +11,7 @@ var _uiHelpers = require("@megafon/ui-helpers");
|
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-9-link');
|
|
14
15
|
var Link = function Link(_ref) {
|
|
15
16
|
var target = _ref.target,
|
|
16
17
|
href = _ref.href,
|
|
@@ -22,7 +23,7 @@ var Link = function Link(_ref) {
|
|
|
22
23
|
children = _ref.children,
|
|
23
24
|
dataAttrs = _ref.dataAttrs;
|
|
24
25
|
return /*#__PURE__*/React.createElement("a", (0, _extends2["default"])({
|
|
25
|
-
className: className,
|
|
26
|
+
className: cn([className]),
|
|
26
27
|
href: href,
|
|
27
28
|
target: target,
|
|
28
29
|
rel: rel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-list-data{border:none;border-radius:16px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:12px 16px 12px 12px;position:relative;text-decoration:none;-webkit-transition:background-color,opacity,-webkit-box-shadow;transition:background-color,opacity,-webkit-box-shadow;transition:background-color,opacity,box-shadow;transition:background-color,opacity,box-shadow,-webkit-box-shadow;-webkit-transition-duration:.3s;transition-duration:.3s;width:100%}.mfui-9-list-data,.mfui-9-list-data__icon-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-list-data__icon-container{-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;border-radius:12px;height:40px;justify-content:center;margin-right:8px;width:40px}.mfui-9-list-data__icon-container svg{fill:var(--content)}.mfui-9-list-data__icon-container_colored{background-color:var(--brandGreen20)}.mfui-9-list-data__icon-container_colored svg{fill:var(--brandGreen)}.mfui-9-list-data__icon{height:32px;min-width:32px;width:32px}.mfui-9-list-data__icon_small{height:20px;min-width:20px;width:20px}.mfui-9-list-data__header{display:grid;grid-template-columns:100%;margin-right:auto;padding-left:4px}.mfui-9-list-data__header_gap{padding-right:8px}.mfui-9-list-data__header_align{-ms-flex-item-align:end;align-self:flex-end}.mfui-9-list-data__title{display:-webkit-box;font-size:15px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-weight:500;line-height:18px}.mfui-9-list-data__title-link{color:var(--content)}.mfui-9-list-data__sub-title{color:var(--spbSky3);font-size:12px;font-weight:400;line-height:18px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfui-9-list-data__value-container{align-self:flex-start;display:grid;grid-template-columns:-webkit-min-content;grid-template-columns:min-content;padding-left:12px}.mfui-9-list-data__value{display:-webkit-box;font-size:15px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:18px;max-width:110px}.mfui-9-list-data__value_color_green{color:var(--brandGreen)}.mfui-9-list-data__sub-value{color:var(--spbSky3);font-size:12px;font-weight:400;line-height:18px;margin-top:4px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfui-9-list-data__action-icon{fill:var(--spbSky3)}.mfui-9-list-data__action-icon_active{cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-transition:fill .3s;transition:fill .3s}.mfui-9-list-data__action-icon_active:hover{fill:var(--content)}.mfui-9-list-data__children{display:-webkit-box;display:-ms-flexbox;display:flex;gap:4px}.mfui-9-list-data__children_event-none{pointer-events:none}.mfui-9-list-data_active:not(.mfui-9-list-data_disabled){cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-9-list-data_active:not(.mfui-9-list-data_disabled):hover{background-color:var(--spbSky0)}.mfui-9-list-data_active:not(.mfui-9-list-data_disabled).mfui-9-list-data_view_gray:hover{background-color:var(--spbSky1)}.mfui-9-list-data_active:not(.mfui-9-list-data_disabled).mfui-9-list-data_view_white:hover{background-color:var(--base);-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-list-data_disabled{opacity:.5}.mfui-9-list-data_disabled .mfui-9-list-data__title-link{pointer-events:none}.mfui-9-list-data_view_default{background-color:transparent}.mfui-9-list-data_view_gray{background-color:var(--spbSky0)}.mfui-9-list-data_view_gray .mfui-9-list-data__icon-container,.mfui-9-list-data_view_white{background-color:var(--base)}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-list-data{border:none;border-radius:16px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--content);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:12px 16px 12px 12px;position:relative;text-decoration:none;-webkit-transition:background-color,opacity,-webkit-box-shadow;transition:background-color,opacity,-webkit-box-shadow;transition:background-color,opacity,box-shadow;transition:background-color,opacity,box-shadow,-webkit-box-shadow;-webkit-transition-duration:.3s;transition-duration:.3s;width:100%}.mfui-9-list-data,.mfui-9-list-data__icon-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-list-data__icon-container{-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;border-radius:12px;height:40px;justify-content:center;margin-right:8px;width:40px}.mfui-9-list-data__icon-container svg{fill:var(--content)}.mfui-9-list-data__icon-container_colored{background-color:var(--brandGreen20)}.mfui-9-list-data__icon-container_colored svg{fill:var(--brandGreen)}.mfui-9-list-data__icon{border-radius:8px;height:32px;min-width:32px;width:32px}.mfui-9-list-data__icon: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-list-data__icon:focus{outline:none}.mfui-9-list-data__icon_small{border-radius:8px;height:20px;min-width:20px;width:20px}.mfui-9-list-data__header{display:grid;grid-template-columns:100%;margin-right:auto;padding-left:4px}.mfui-9-list-data__header_gap{padding-right:8px}.mfui-9-list-data__header_align{-ms-flex-item-align:end;align-self:flex-end}.mfui-9-list-data__title{display:-webkit-box;font-size:15px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-weight:500;line-height:18px}.mfui-9-list-data__title-link{color:var(--content)}.mfui-9-list-data__sub-title{color:var(--spbSky3);font-size:12px;font-weight:400;line-height:18px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfui-9-list-data__value-container{align-self:flex-start;display:grid;grid-template-columns:-webkit-min-content;grid-template-columns:min-content;padding-left:12px}.mfui-9-list-data__value{display:-webkit-box;font-size:15px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:18px;max-width:110px}.mfui-9-list-data__value_color_green{color:var(--brandGreen)}.mfui-9-list-data__sub-value{color:var(--spbSky3);font-size:12px;font-weight:400;line-height:18px;margin-top:4px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfui-9-list-data__action-icon{fill:var(--spbSky3)}.mfui-9-list-data__action-icon_active{cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-transition:fill .3s;transition:fill .3s}.mfui-9-list-data__action-icon_active:hover{fill:var(--content)}.mfui-9-list-data__children{display:-webkit-box;display:-ms-flexbox;display:flex;gap:4px}.mfui-9-list-data__children_event-none{pointer-events:none}.mfui-9-list-data_active:not(.mfui-9-list-data_disabled){cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-9-list-data_active:not(.mfui-9-list-data_disabled):hover{background-color:var(--spbSky0)}.mfui-9-list-data_active:not(.mfui-9-list-data_disabled).mfui-9-list-data_view_gray:hover{background-color:var(--spbSky1)}.mfui-9-list-data_active:not(.mfui-9-list-data_disabled).mfui-9-list-data_view_white:hover{background-color:var(--base);-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-list-data_disabled{opacity:.5}.mfui-9-list-data_disabled .mfui-9-list-data__title-link{pointer-events:none}.mfui-9-list-data_view_default{background-color:transparent}.mfui-9-list-data_view_gray{background-color:var(--spbSky0)}.mfui-9-list-data_view_gray .mfui-9-list-data__icon-container,.mfui-9-list-data_view_white{background-color:var(--base)}
|
|
@@ -18,24 +18,20 @@ var DeleteIcon = function DeleteIcon(props) {
|
|
|
18
18
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
19
19
|
viewBox: "0 0 20 20"
|
|
20
20
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
-
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
clipRule: "evenodd",
|
|
23
|
+
d: "M15.009 14.31c-.137 1.75-.205 2.626-.78 3.158-.574.532-1.452.532-3.207.532H8.98c-1.755 0-2.633 0-3.208-.532-.574-.532-.642-1.407-.779-3.158l-.571-7.326H15.58l-.571 7.326zm-2.846-4.97a.499.499 0 00-.706 0l-1.388 1.391-1.386-1.39a.498.498 0 00-.706 0 .502.502 0 000 .709l1.386 1.39-1.396 1.4a.502.502 0 000 .709.498.498 0 00.706 0l1.396-1.401 1.398 1.4a.498.498 0 00.706 0 .502.502 0 000-.707l-1.398-1.401 1.388-1.391a.502.502 0 000-.708z"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M16.006 4a1 1 0 010 2h-12a1 1 0 110-2h12zm-3.979-2c.551 0 .997.446.997.997H6.977c0-.55.446-.997.997-.997h4.053z"
|
|
22
26
|
}));
|
|
23
27
|
};
|
|
24
28
|
var NothingIcon = function NothingIcon(props) {
|
|
25
29
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
26
30
|
viewBox: "0 0 32 32"
|
|
27
|
-
}, props), /*#__PURE__*/React.createElement("
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}), /*#__PURE__*/React.createElement("circle", {
|
|
32
|
-
cx: 16,
|
|
33
|
-
cy: 16,
|
|
34
|
-
r: 1.5
|
|
35
|
-
}), /*#__PURE__*/React.createElement("circle", {
|
|
36
|
-
cx: 11,
|
|
37
|
-
cy: 16,
|
|
38
|
-
r: 1.5
|
|
31
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
d: "M28 16c0 6.627-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4s12 5.373 12 12zM9.6 17.6a1.6 1.6 0 100-3.2 1.6 1.6 0 000 3.2zm6.4 0a1.6 1.6 0 100-3.2 1.6 1.6 0 000 3.2zm6.4 0a1.6 1.6 0 100-3.2 1.6 1.6 0 000 3.2z"
|
|
39
35
|
}));
|
|
40
36
|
};
|
|
41
37
|
var LINE_COUNT = 2;
|
|
@@ -149,7 +145,9 @@ var ListData = function ListData(_ref) {
|
|
|
149
145
|
small: isDelete
|
|
150
146
|
})
|
|
151
147
|
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.actionIcon), {
|
|
152
|
-
onClick: handleAction
|
|
148
|
+
onClick: handleAction,
|
|
149
|
+
tabIndex: disabled ? -1 : 0,
|
|
150
|
+
role: "button"
|
|
153
151
|
}), /*#__PURE__*/React.createElement(ActionIcon, {
|
|
154
152
|
className: cn('action-icon', {
|
|
155
153
|
active: !disabled
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-list-data-sortable{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfui-9-list-data-sortable__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;border-radius:12px;justify-content:space-between}.mfui-9-list-data-sortable__item{padding-right:0}.mfui-9-list-data-sortable__control{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;justify-content:center;margin:12px 16px 12px 8px}.mfui-9-list-data-sortable__icon{height:32px;width:32px;fill:var(--spbSky2)}.mfui-9-list-data-sortable_gap_small{padding:2px 0}.mfui-9-list-data-sortable_gap_medium{padding:4px 0}.mfui-9-list-data-sortable_gap_large{padding:6px 0}.mfui-9-list-data-sortable_dragging{opacity:0}.mfui-9-list-data-sortable_drag-overlay .mfui-9-list-data-sortable__wrapper{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;background-color:var(--spbSky0)}.mfui-9-list-data-sortable_activator_cell:not(.mfui-9-list-data-sortable_disabled){cursor:-webkit-grab;cursor:grab}.mfui-9-list-data-sortable_activator_cell:not(.mfui-9-list-data-sortable_disabled).mfui-9-list-data-sortable_drag-overlay{cursor:-webkit-grabbing;cursor:grabbing}.mfui-9-list-data-sortable_activator_control:not(.mfui-9-list-data-sortable_disabled) .mfui-9-list-data-sortable__control{cursor:-webkit-grab;cursor:grab}.mfui-9-list-data-sortable_activator_control:not(.mfui-9-list-data-sortable_disabled).mfui-9-list-data-sortable_drag-overlay .mfui-9-list-data-sortable__control{cursor:-webkit-grabbing;cursor:grabbing}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-list-data-sortable{border-radius:16px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfui-9-list-data-sortable:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:-6px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-list-data-sortable:focus{outline:none}.mfui-9-list-data-sortable__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;border-radius:12px;justify-content:space-between}.mfui-9-list-data-sortable__item{padding-right:0}.mfui-9-list-data-sortable__control{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;border-radius:8px;justify-content:center;margin:12px 16px 12px 8px}.mfui-9-list-data-sortable__control: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-list-data-sortable__control:focus{outline:none}.mfui-9-list-data-sortable__icon{height:32px;width:32px;fill:var(--spbSky2)}.mfui-9-list-data-sortable_gap_small{padding:2px 0}.mfui-9-list-data-sortable_gap_medium{padding:4px 0}.mfui-9-list-data-sortable_gap_large{padding:6px 0}.mfui-9-list-data-sortable_dragging{opacity:0}.mfui-9-list-data-sortable_drag-overlay .mfui-9-list-data-sortable__wrapper{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;background-color:var(--spbSky0)}.mfui-9-list-data-sortable_activator_cell:not(.mfui-9-list-data-sortable_disabled){cursor:-webkit-grab;cursor:grab}.mfui-9-list-data-sortable_activator_cell:not(.mfui-9-list-data-sortable_disabled).mfui-9-list-data-sortable_drag-overlay{cursor:-webkit-grabbing;cursor:grabbing}.mfui-9-list-data-sortable_activator_control:not(.mfui-9-list-data-sortable_disabled) .mfui-9-list-data-sortable__control{cursor:-webkit-grab;cursor:grab}.mfui-9-list-data-sortable_activator_control:not(.mfui-9-list-data-sortable_disabled).mfui-9-list-data-sortable_drag-overlay .mfui-9-list-data-sortable__control{cursor:-webkit-grabbing;cursor:grabbing}
|
|
@@ -21,9 +21,7 @@ var DragIcon = function DragIcon(props) {
|
|
|
21
21
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
22
22
|
viewBox: "0 0 32 32"
|
|
23
23
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
24
|
-
|
|
25
|
-
clipRule: "evenodd",
|
|
26
|
-
d: "M24 14H8v-2h16v2zm0 6H8v-2h16v2z"
|
|
24
|
+
d: "M22.4 17.799a1.6 1.6 0 110 3.199H9.6a1.6 1.6 0 110-3.2h12.8zm0-6.797a1.6 1.6 0 110 3.2H9.6a1.6 1.6 0 110-3.2h12.8z"
|
|
27
25
|
}));
|
|
28
26
|
};
|
|
29
27
|
var ActivatorNodes = exports.ActivatorNodes = {
|
|
@@ -6,6 +6,11 @@ declare const ModalMobileViews: {
|
|
|
6
6
|
readonly BOTTOM: "bottom";
|
|
7
7
|
};
|
|
8
8
|
type ModalMobileViewsType = (typeof ModalMobileViews)[keyof typeof ModalMobileViews];
|
|
9
|
+
export declare const HeaderButtonsTheme: {
|
|
10
|
+
readonly DEFAULT: "default";
|
|
11
|
+
readonly WHITE: "white";
|
|
12
|
+
};
|
|
13
|
+
export type HeaderButtonsThemeType = (typeof HeaderButtonsTheme)[keyof typeof HeaderButtonsTheme];
|
|
9
14
|
export declare enum MODAL_TRANSITIONS_STEPS_ENUM {
|
|
10
15
|
INITIAL_STEP = "initial-step",
|
|
11
16
|
MOVE_STEP = "move-step",
|
|
@@ -44,13 +49,17 @@ export type ModalHeaderPropsType = {
|
|
|
44
49
|
showBackButton?: boolean;
|
|
45
50
|
/** Скрыть крестик */
|
|
46
51
|
hideCloseButton?: boolean;
|
|
47
|
-
/**
|
|
52
|
+
/** Дополнительный контент в шапке */
|
|
48
53
|
headerAdditionalContent?: JSX.Element | JSX.Element[] | string | null;
|
|
54
|
+
/** Кастомный контент в шапке */
|
|
55
|
+
headerCustomContent?: JSX.Element | JSX.Element[] | string | null;
|
|
56
|
+
/** Цветовая тема кнопок */
|
|
57
|
+
buttonsTheme?: HeaderButtonsThemeType;
|
|
49
58
|
/** Отобразить тень у шапки */
|
|
50
59
|
hasHeaderShadow?: boolean;
|
|
51
60
|
/** Закрепленная шапка */
|
|
52
61
|
isStickyHeader?: boolean;
|
|
53
|
-
/** Кнопки находятся вне основной
|
|
62
|
+
/** Кнопки находятся вне основной шапки */
|
|
54
63
|
isOutSideHeaderButtons?: boolean;
|
|
55
64
|
/** Использовать серый фон в шапке */
|
|
56
65
|
isGrayColorHeader?: boolean;
|
|
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports["default"] = exports.MODAL_TRANSITIONS_STEPS_ENUM = void 0;
|
|
7
|
+
exports["default"] = exports.MODAL_TRANSITIONS_STEPS_ENUM = exports.HeaderButtonsTheme = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
@@ -27,6 +27,10 @@ var ModalMobileViews = {
|
|
|
27
27
|
// use camelCase for simple using in props from backend
|
|
28
28
|
BOTTOM: 'bottom'
|
|
29
29
|
};
|
|
30
|
+
var HeaderButtonsTheme = exports.HeaderButtonsTheme = {
|
|
31
|
+
DEFAULT: 'default',
|
|
32
|
+
WHITE: 'white'
|
|
33
|
+
};
|
|
30
34
|
var MODAL_TRANSITIONS_STEPS_ENUM;
|
|
31
35
|
(function (MODAL_TRANSITIONS_STEPS_ENUM) {
|
|
32
36
|
MODAL_TRANSITIONS_STEPS_ENUM["INITIAL_STEP"] = "initial-step";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-9-modal-content__background{background-color:rgba(0,0,0,.8);bottom:0;left:0;position:fixed;right:0;top:0}.mfui-9-modal-content__container-wrap{-webkit-animation:show-popup .3s ease-out;animation:show-popup .3s ease-out;position:relative;width:100%}@media screen and (min-width:768px){.mfui-9-modal-content__container-wrap{-webkit-transition:height .1s;transition:height .1s;width:740px}}.mfui-9-modal-content__container-inner{background-color:var(--background);font-family:inherit;width:100%}.mfui-9-modal-content__container-inner_native-scroll{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width:768px){.mfui-9-modal-content__container-inner_native-scroll{max-height:80vh}}.mfui-9-modal-content__header{position:relative}.mfui-9-modal-content__header_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-9-modal-content__header_gray{background-color:var(--backgroundGray)
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-9-modal-content__background{background-color:rgba(0,0,0,.8);bottom:0;left:0;position:fixed;right:0;top:0}.mfui-9-modal-content__container-wrap{-webkit-animation:show-popup .3s ease-out;animation:show-popup .3s ease-out;position:relative;width:100%}@media screen and (min-width:768px){.mfui-9-modal-content__container-wrap{-webkit-transition:height .1s;transition:height .1s;width:740px}}.mfui-9-modal-content__container-inner{background-color:var(--background);font-family:inherit;width:100%}.mfui-9-modal-content__container-inner_native-scroll{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width:768px){.mfui-9-modal-content__container-inner_native-scroll{max-height:80vh}}.mfui-9-modal-content__header{position:relative}.mfui-9-modal-content__header_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-9-modal-content__header_gray{background-color:var(--backgroundGray)}.mfui-9-modal-content__header_native-scroll{background-color:var(--background);border-radius:12px;position:sticky;top:0}.mfui-9-modal-content__header-main{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;justify-content:center;min-height:64px}@media screen and (min-width:768px){.mfui-9-modal-content__header-main{min-height:64px}}.mfui-9-modal-content__header-custom-content{width:100%}.mfui-9-modal-content__header-button{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:12px;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background:transparent;border:none;cursor:pointer;height:44px;justify-content:center;outline:none;width:44px}.mfui-9-modal-content__header-button_back{left:14px}@media screen and (max-width:767px){.mfui-9-modal-content__header-button_back{left:10px;top:10px}}.mfui-9-modal-content__header-button_close{right:18px}@media screen and (max-width:767px){.mfui-9-modal-content__header-button_close{right:10px;top:10px}}.mfui-9-modal-content__header-inner{background-color:var(--spbSky0);border-radius:12px;height:32px;position:relative;-webkit-transition:background-color .3s;transition:background-color .3s;width:32px}.mfui-9-modal-content__header-inner: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-modal-content__header-inner:focus{outline:none}.mfui-9-modal-content__header-inner:hover{background-color:var(--spbSky1)}.mfui-9-modal-content__header-inner:active{background-color:var(--spbSky2)}.mfui-9-modal-content__header-icon{height:32px;min-width:32px;width:32px;fill:var(--content)}.mfui-9-modal-content__title-area{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 48px;padding:12px}@media screen and (min-width:768px){.mfui-9-modal-content__title-area{margin:0 56px;padding:16px}}.mfui-9-modal-content__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px;text-align:center}@media screen and (min-width:1280px){.mfui-9-modal-content__title{font-size:20px;line-height:28px}}@media screen and (min-width:768px){.mfui-9-modal-content__title{font-size:20px;font-weight:500;letter-spacing:.5px;line-height:28px}}.mfui-9-modal-content__header-additional{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px 16px;text-align:center}@media screen and (min-width:768px){.mfui-9-modal-content__header-additional{padding-left:32px;padding-right:32px}}.mfui-9-modal-content__container-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding-bottom:24px;padding-right:6px}@media screen and (min-width:768px){.mfui-9-modal-content__container-body{padding-bottom:24px;padding-right:12px}}.mfui-9-modal-content__container-body_native-scroll{-webkit-box-flex:1;-ms-flex-positive:1;background-color:var(--base);border-bottom-left-radius:32px;border-top-left-radius:32px;flex-grow:1;overflow-x:hidden;overflow-y:auto}.mfui-9-modal-content__container-body_gray{background-color:var(--backgroundGray)}.mfui-9-modal-content__container-body_gray-with-footer{background-color:var(--backgroundGray);border-bottom-left-radius:32px;border-bottom-right-radius:32px}.mfui-9-modal-content__children{-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px;padding-right:4px;padding-top:24px}@media screen and (min-width:768px){.mfui-9-modal-content__children{padding-left:24px;padding-right:6px}}.mfui-9-modal-content__header-button_theme_white .mfui-9-modal-content__header-inner{background-color:var(--stcWhite);position:relative}.mfui-9-modal-content__header-button_theme_white .mfui-9-modal-content__header-inner:after{background-color:var(--stcBlack);border-radius:12px;bottom:0;content:"";left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;-webkit-transition:opacity .3s;transition:opacity .3s}.mfui-9-modal-content__header-button_theme_white .mfui-9-modal-content__header-inner:hover:after{opacity:.1}.mfui-9-modal-content__header-button_theme_white .mfui-9-modal-content__header-inner:active:after{opacity:.2}.mfui-9-modal-content__header-button_theme_white .mfui-9-modal-content__header-icon{fill:var(--stcBlack)}.mfui-9-modal-content__container-wrap_static-header .mfui-9-modal-content__container-body{padding-top:24px}.mfui-9-modal-content__container-wrap_static-header .mfui-9-modal-content__children{overflow-x:hidden;padding-top:0}.mfui-9-modal-content__container-wrap_static-header .mfui-9-modal-content__header{margin-bottom:24px;margin-left:-16px;margin-right:-16px}@media screen and (min-width:768px){.mfui-9-modal-content__container-wrap_static-header .mfui-9-modal-content__header{margin-left:-32px;margin-right:-32px}}.mfui-9-modal-content__container-wrap_static-header .mfui-9-modal-content__header-main{min-height:40px}.mfui-9-modal-content__container-wrap_static-header .mfui-9-modal-content__header-button{top:0}.mfui-9-modal-content__container-wrap_static-header .mfui-9-modal-content__title-area{padding-bottom:4px;padding-top:4px}.mfui-9-modal-content__container-wrap_hide-header .mfui-9-modal-content__container-body{padding-top:24px}.mfui-9-modal-content__container-wrap_hide-header .mfui-9-modal-content__children{padding-top:0}.mfui-9-modal-content__container-wrap_sticky-footer .mfui-9-modal-content__container-body{padding-bottom:0}.mfui-9-modal-content__container-wrap_sticky-footer .mfui-9-modal-content__footer{padding-left:16px;padding-right:16px}@media screen and (min-width:768px){.mfui-9-modal-content__container-wrap_sticky-footer .mfui-9-modal-content__footer{padding-left:32px;padding-right:32px}}.mfui-9-modal-content__container-wrap_sticky-footer .mfui-9-modal-content__footer_native-scroll{background-color:var(--background);border-radius:12px;bottom:0;position:sticky}.mfui-9-modal-content__container-wrap_sticky-footer .mfui-9-modal-content__footer_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-9-modal-content__container-wrap_sticky-footer .mfui-9-modal-content__footer_gray{background-color:var(--backgroundGray);border-bottom-left-radius:32px;border-bottom-right-radius:32px}.mfui-9-modal-content__container-wrap_out-side-buttons .mfui-9-modal-content__container-body{padding-top:24px}.mfui-9-modal-content__container-wrap_native-scroll .mfui-9-modal-content__children,.mfui-9-modal-content__container-wrap_native-scroll .mfui-9-modal-content__container-body{padding:0}.mfui-9-modal-content__container-wrap_transition-end{-webkit-animation:hide-popup .2s ease-in;animation:hide-popup .2s ease-in}@-webkit-keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@-webkit-keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}@keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}
|
|
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
12
12
|
var _reactTransitionGroup = require("react-transition-group");
|
|
13
|
-
var _ButtonClose = _interopRequireDefault(require("../../Buttons/ButtonClose/ButtonClose"));
|
|
14
13
|
var _ScrollBar = _interopRequireDefault(require("../../ScrollBar/ScrollBar"));
|
|
15
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -19,7 +18,14 @@ var ArrowLeft24 = function ArrowLeft24(props) {
|
|
|
19
18
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
20
19
|
viewBox: "0 0 32 32"
|
|
21
20
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
22
|
-
d: "
|
|
21
|
+
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"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
var Cancel24 = function Cancel24(props) {
|
|
25
|
+
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
26
|
+
viewBox: "0 0 32 32"
|
|
27
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
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"
|
|
23
29
|
}));
|
|
24
30
|
};
|
|
25
31
|
var cn = (0, _uiHelpers.cnCreate)('mfui-9-modal-content');
|
|
@@ -33,6 +39,8 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
33
39
|
showBackButton = _ref$headerProps2.showBackButton,
|
|
34
40
|
hideCloseButton = _ref$headerProps2.hideCloseButton,
|
|
35
41
|
headerAdditionalContent = _ref$headerProps2.headerAdditionalContent,
|
|
42
|
+
headerCustomContent = _ref$headerProps2.headerCustomContent,
|
|
43
|
+
buttonsTheme = _ref$headerProps2.buttonsTheme,
|
|
36
44
|
hasHeaderShadow = _ref$headerProps2.hasHeaderShadow,
|
|
37
45
|
_ref$headerProps2$isS = _ref$headerProps2.isStickyHeader,
|
|
38
46
|
isStickyHeaderProps = _ref$headerProps2$isS === void 0 ? true : _ref$headerProps2$isS,
|
|
@@ -50,6 +58,7 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
50
58
|
footerRef = _ref$refs.footerRef,
|
|
51
59
|
containerInnerRef = _ref$refs.containerInnerRef,
|
|
52
60
|
containerBodyRef = _ref$refs.containerBodyRef,
|
|
61
|
+
containerWrapRef = _ref$refs.containerWrapRef,
|
|
53
62
|
isEnabledNativeScroll = _ref.isEnabledNativeScroll,
|
|
54
63
|
isGrayColorModal = _ref.isGrayColorModal,
|
|
55
64
|
isDisabledBackgroundClick = _ref.isDisabledBackgroundClick,
|
|
@@ -69,7 +78,7 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
69
78
|
showHeaderShadow = _React$useState2[0],
|
|
70
79
|
setShowHeaderShadow = _React$useState2[1];
|
|
71
80
|
var showHeaderMain = !!showBackButton || !!headerTitle || !hideCloseButton;
|
|
72
|
-
var showHeader = showHeaderMain || !!headerAdditionalContent;
|
|
81
|
+
var showHeader = showHeaderMain || !!headerAdditionalContent || !!headerCustomContent;
|
|
73
82
|
var isStickyHeader = showHeader && isStickyHeaderProps;
|
|
74
83
|
var isStaticHeader = showHeader && !isStickyHeaderProps;
|
|
75
84
|
var isStickyFooter = !!footer && !!isStickyFooterProps;
|
|
@@ -80,22 +89,34 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
80
89
|
}, []);
|
|
81
90
|
var renderBackButton = /*#__PURE__*/React.createElement("button", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.headerBackButton), {
|
|
82
91
|
className: cn('header-button', {
|
|
83
|
-
back: true
|
|
92
|
+
back: true,
|
|
93
|
+
theme: buttonsTheme
|
|
84
94
|
}, classes === null || classes === void 0 ? void 0 : classes.headerBackButton),
|
|
85
95
|
type: "button",
|
|
86
|
-
onClick: onBackButtonClick
|
|
96
|
+
onClick: onBackButtonClick,
|
|
97
|
+
tabIndex: -1
|
|
87
98
|
}), /*#__PURE__*/React.createElement("div", {
|
|
88
|
-
className: cn('header-inner')
|
|
99
|
+
className: cn('header-inner'),
|
|
100
|
+
role: "button",
|
|
101
|
+
tabIndex: 0
|
|
89
102
|
}, /*#__PURE__*/React.createElement(ArrowLeft24, {
|
|
90
103
|
className: cn('header-icon')
|
|
91
104
|
})));
|
|
92
|
-
var renderCloseButton = /*#__PURE__*/React.createElement(
|
|
105
|
+
var renderCloseButton = /*#__PURE__*/React.createElement("button", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.headerCloseButton), {
|
|
93
106
|
className: cn('header-button', {
|
|
94
|
-
close: true
|
|
107
|
+
close: true,
|
|
108
|
+
theme: buttonsTheme
|
|
95
109
|
}, classes === null || classes === void 0 ? void 0 : classes.headerCloseButton),
|
|
96
|
-
|
|
97
|
-
onClick: onPopupClose
|
|
98
|
-
|
|
110
|
+
type: "button",
|
|
111
|
+
onClick: onPopupClose,
|
|
112
|
+
tabIndex: -1
|
|
113
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
className: cn('header-inner'),
|
|
115
|
+
role: "button",
|
|
116
|
+
tabIndex: 0
|
|
117
|
+
}, /*#__PURE__*/React.createElement(Cancel24, {
|
|
118
|
+
className: cn('header-icon')
|
|
119
|
+
})));
|
|
99
120
|
var renderHeader = /*#__PURE__*/React.createElement("div", {
|
|
100
121
|
className: cn('header', {
|
|
101
122
|
shadow: showHeaderShadow,
|
|
@@ -105,11 +126,13 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
105
126
|
ref: headerRef
|
|
106
127
|
}, !!isOutSideHeaderButtons && showBackButton && renderBackButton, !isOutSideHeaderButtons && showHeaderMain && /*#__PURE__*/React.createElement("div", {
|
|
107
128
|
className: cn('header-main')
|
|
108
|
-
}, showBackButton && renderBackButton, !!
|
|
129
|
+
}, showBackButton && renderBackButton, !!headerCustomContent && /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: cn('header-custom-content')
|
|
131
|
+
}, headerCustomContent), !!headerTitle && !headerCustomContent && /*#__PURE__*/React.createElement("div", {
|
|
109
132
|
className: cn('title-area', classes === null || classes === void 0 ? void 0 : classes.titleArea)
|
|
110
133
|
}, /*#__PURE__*/React.createElement("div", {
|
|
111
134
|
className: cn('title', classes === null || classes === void 0 ? void 0 : classes.title)
|
|
112
|
-
}, headerTitle)), !hideCloseButton && renderCloseButton), !!isOutSideHeaderButtons && !hideCloseButton && renderCloseButton, !!headerAdditionalContent && /*#__PURE__*/React.createElement("div", {
|
|
135
|
+
}, headerTitle)), !hideCloseButton && renderCloseButton), !!isOutSideHeaderButtons && !hideCloseButton && renderCloseButton, !!headerAdditionalContent && !headerCustomContent && /*#__PURE__*/React.createElement("div", {
|
|
113
136
|
className: cn('header-additional')
|
|
114
137
|
}, headerAdditionalContent));
|
|
115
138
|
var renderFooter = /*#__PURE__*/React.createElement("div", {
|
|
@@ -159,6 +182,7 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
159
182
|
className: cn('background', classes === null || classes === void 0 ? void 0 : classes.background),
|
|
160
183
|
onClick: isDisabledBackgroundClick ? undefined : onPopupClose
|
|
161
184
|
})), /*#__PURE__*/React.createElement(_reactTransitionGroup.CSSTransition, {
|
|
185
|
+
nodeRef: containerWrapRef,
|
|
162
186
|
"in": isBottomTransitionIn,
|
|
163
187
|
timeout: 190,
|
|
164
188
|
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%)}}
|
|
@@ -109,12 +109,11 @@ var ModalMobile = function ModalMobile(_a) {
|
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
window.cancelAnimationFrame(animationFrameId.current);
|
|
112
|
-
var
|
|
113
|
-
var isMoreHalfClosed = ((_a = e.changedTouches[0]) === null || _a === void 0 ? void 0 : _a.clientY) > containerCenterPosition;
|
|
112
|
+
var isMoreHalfClosed = ((_a = e.changedTouches[0]) === null || _a === void 0 ? void 0 : _a.clientY) - (initialTouchPosition || 0) > offsetHeightCenter;
|
|
114
113
|
setInitialTouchPosition(null);
|
|
115
114
|
onChangeContainerWrapTransform(isMoreHalfClosed ? 'translateY(100%)' : 'none');
|
|
116
115
|
onChangeTransitionStep(isMoreHalfClosed ? _Modal.MODAL_TRANSITIONS_STEPS_ENUM.MOVE_END_STEP : _Modal.MODAL_TRANSITIONS_STEPS_ENUM.INITIAL_STEP);
|
|
117
|
-
}, [containerWrapRef, scrollBarScrollableRef, isTransitionMoveStep, offsetHeightCenter, onChangeContainerWrapTransform, onChangeTransitionStep]);
|
|
116
|
+
}, [containerWrapRef, scrollBarScrollableRef, isTransitionMoveStep, initialTouchPosition, offsetHeightCenter, onChangeContainerWrapTransform, onChangeTransitionStep]);
|
|
118
117
|
React.useEffect(function () {
|
|
119
118
|
if (isSwipeDisabled) {
|
|
120
119
|
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)}
|
|
@@ -15,28 +15,28 @@ var ArrowLeft24 = function ArrowLeft24(props) {
|
|
|
15
15
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
16
16
|
viewBox: "0 0 32 32"
|
|
17
17
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
18
|
-
d: "
|
|
18
|
+
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"
|
|
19
19
|
}));
|
|
20
20
|
};
|
|
21
21
|
var ArrowRight24 = function ArrowRight24(props) {
|
|
22
22
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
23
23
|
viewBox: "0 0 32 32"
|
|
24
24
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
25
|
-
d: "
|
|
25
|
+
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"
|
|
26
26
|
}));
|
|
27
27
|
};
|
|
28
28
|
var ArrowLeft32 = function ArrowLeft32(props) {
|
|
29
29
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
30
30
|
viewBox: "0 0 40 40"
|
|
31
31
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
32
|
-
d: "
|
|
32
|
+
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"
|
|
33
33
|
}));
|
|
34
34
|
};
|
|
35
35
|
var ArrowRight32 = function ArrowRight32(props) {
|
|
36
36
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
37
37
|
viewBox: "0 0 40 40"
|
|
38
38
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
39
|
-
d: "
|
|
39
|
+
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"
|
|
40
40
|
}));
|
|
41
41
|
};
|
|
42
42
|
var Theme = exports.Theme = {
|
|
@@ -22,46 +22,50 @@ var ErrorIcon = function ErrorIcon(props) {
|
|
|
22
22
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
23
23
|
viewBox: "0 0 32 32"
|
|
24
24
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
25
|
-
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
|
+
d: "M23.5 13.008a1.5 1.5 0 011.5 1.5v7.513a6 6 0 01-6 6h-6a6 6 0 01-6-6v-7.513a1.5 1.5 0 011.5-1.5h15zm-7.501 4.398a1.501 1.501 0 00-.702 2.825v2.493a.751.751 0 001.5 0v-2.55a1.498 1.498 0 00-.798-2.768z"
|
|
26
28
|
}), /*#__PURE__*/React.createElement("path", {
|
|
27
|
-
d: "M16
|
|
29
|
+
d: "M16 4.022a5.25 5.25 0 015.25 5.25v2.255h-1.5V9.272a3.75 3.75 0 00-7.5 0v2.255h-1.5V9.272A5.25 5.25 0 0116 4.022z"
|
|
28
30
|
}));
|
|
29
31
|
};
|
|
30
32
|
var ArrowDown = function ArrowDown(props) {
|
|
31
33
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
32
34
|
viewBox: "0 0 20 20"
|
|
33
35
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
34
|
-
d: "
|
|
35
|
-
fillRule: "evenodd",
|
|
36
|
-
clipRule: "evenodd"
|
|
36
|
+
d: "M10.465 11.798a.609.609 0 01-.907 0L7.187 9.25c-.41-.44-.1-1.25.476-1.25h4.679c.575 0 .879.811.47 1.25l-2.347 2.548z"
|
|
37
37
|
}));
|
|
38
38
|
};
|
|
39
39
|
var RightArrow = function RightArrow(props) {
|
|
40
40
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
41
41
|
viewBox: "0 0 20 20"
|
|
42
42
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
43
|
-
d: "
|
|
43
|
+
d: "M10.084 5.282a1 1 0 011.414.022l3.61 3.726c.522.54.523 1.4 0 1.94l-3.61 3.726a1 1 0 01-1.436-1.392l2.225-2.297H5.5a1 1 0 010-2h6.8l-2.239-2.31a1 1 0 01.023-1.415z"
|
|
44
44
|
}));
|
|
45
45
|
};
|
|
46
46
|
var WarningIcon = function WarningIcon(props) {
|
|
47
47
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
48
48
|
viewBox: "0 0 32 32"
|
|
49
49
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
50
|
-
|
|
50
|
+
fillRule: "evenodd",
|
|
51
|
+
clipRule: "evenodd",
|
|
52
|
+
d: "M13.373 6.516c1.128-2.018 4.041-2.023 5.176-.008l9.067 16.094C28.725 24.571 27.296 27 25.03 27H6.97c-2.263 0-3.691-2.42-2.591-4.389l8.994-16.095zM16 21.163c-.829 0-1.5.657-1.5 1.467s.671 1.466 1.5 1.466c.828 0 1.5-.656 1.5-1.466 0-.81-.672-1.467-1.5-1.467zm0-10.3a1.5 1.5 0 00-1.5 1.5v5.867a1.5 1.5 0 003 0v-5.867a1.5 1.5 0 00-1.5-1.5z"
|
|
51
53
|
}));
|
|
52
54
|
};
|
|
53
55
|
var SuccessIcon = function SuccessIcon(props) {
|
|
54
56
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
55
57
|
viewBox: "0 0 32 32"
|
|
56
58
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
57
|
-
d: "
|
|
59
|
+
d: "M11.033 15.1l3.39 3.39 6.817-6.742c.578-.572 1.483-.595 2.02-.051.538.544.504 1.449-.075 2.021l-7.858 7.773c-.576.57-1.476.595-2.015.056L8.95 17.185c-.54-.541-.512-1.446.063-2.021.576-.576 1.48-.604 2.021-.063z"
|
|
58
60
|
}));
|
|
59
61
|
};
|
|
60
62
|
var InfoIcon = function InfoIcon(props) {
|
|
61
63
|
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
62
64
|
viewBox: "0 0 32 32"
|
|
63
65
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
64
|
-
|
|
66
|
+
fillRule: "evenodd",
|
|
67
|
+
clipRule: "evenodd",
|
|
68
|
+
d: "M16 4c6.627 0 12 5.373 12 12s-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4zm0 9.25c-.78 0-1.412.633-1.412 1.412v7.059a1.412 1.412 0 102.824 0v-7.059c0-.78-.632-1.412-1.412-1.412zm-.144-4.477a1.412 1.412 0 100 2.824 1.412 1.412 0 000-2.824z"
|
|
65
69
|
}));
|
|
66
70
|
};
|
|
67
71
|
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/lib/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}
|