@megafon/ui-core 8.0.5 → 8.1.1
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/ContentView/ContentView.css +1 -1
- package/dist/es/components/Parameter/Parameter.css +1 -0
- package/dist/es/components/Parameter/Parameter.d.ts +59 -0
- package/dist/es/components/Parameter/Parameter.js +139 -0
- package/dist/es/components/Parameter/components/ParameterDescription.css +1 -0
- package/dist/es/components/Parameter/components/ParameterDescription.d.ts +16 -0
- package/dist/es/components/Parameter/components/ParameterDescription.js +39 -0
- package/dist/es/components/Parameter/helpers.d.ts +6 -0
- package/dist/es/components/Parameter/helpers.js +10 -0
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +1 -1
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.js +2 -0
- package/dist/lib/components/ContentView/ContentView.css +1 -1
- package/dist/lib/components/Parameter/Parameter.css +1 -0
- package/dist/lib/components/Parameter/Parameter.d.ts +59 -0
- package/dist/lib/components/Parameter/Parameter.js +148 -0
- package/dist/lib/components/Parameter/components/ParameterDescription.css +1 -0
- package/dist/lib/components/Parameter/components/ParameterDescription.d.ts +16 -0
- package/dist/lib/components/Parameter/components/ParameterDescription.js +48 -0
- package/dist/lib/components/Parameter/helpers.d.ts +6 -0
- package/dist/lib/components/Parameter/helpers.js +16 -0
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +1 -1
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +14 -0
- package/package.json +4 -4
- package/dist/es/components/Avatar/i/placeholder.svg +0 -4
- package/dist/es/components/Search/i/textarea-resizer.svg +0 -4
- package/dist/es/components/Selector/i/check.svg +0 -3
- package/dist/es/components/TextField/i/textarea-resizer.svg +0 -4
- package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/attach.svg +0 -3
- package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/excel.svg +0 -25
- package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/image.svg +0 -3
- package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/pdf.svg +0 -4
- package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/power.svg +0 -21
- package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/word.svg +0 -22
- package/dist/lib/components/Avatar/i/placeholder.svg +0 -4
- package/dist/lib/components/Search/i/textarea-resizer.svg +0 -4
- package/dist/lib/components/Selector/i/check.svg +0 -3
- package/dist/lib/components/TextField/i/textarea-resizer.svg +0 -4
- package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/attach.svg +0 -3
- package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/excel.svg +0 -25
- package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/image.svg +0 -3
- package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/pdf.svg +0 -4
- package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/power.svg +0 -21
- package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/word.svg +0 -22
- /package/dist/es/components/ContentView/{i → img}/alarm.png +0 -0
- /package/dist/es/components/ContentView/{i → img}/empty.png +0 -0
- /package/dist/es/components/ContentView/{i → img}/error.png +0 -0
- /package/dist/es/components/ContentView/{i → img}/fail.png +0 -0
- /package/dist/es/components/ContentView/{i → img}/searchNoResult.png +0 -0
- /package/dist/es/components/ContentView/{i → img}/submit.png +0 -0
- /package/dist/es/components/ContentView/{i → img}/success.png +0 -0
- /package/dist/es/components/ContentView/{i → img}/update.png +0 -0
- /package/dist/es/components/ContentView/{i → img}/waiting.png +0 -0
- /package/dist/es/components/Sliders/SliderRatio/{i → img}/thumb.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/alarm.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/empty.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/error.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/fail.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/searchNoResult.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/submit.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/success.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/update.png +0 -0
- /package/dist/lib/components/ContentView/{i → img}/waiting.png +0 -0
- /package/dist/lib/components/Sliders/SliderRatio/{i → img}/thumb.png +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-content-view{color:var(--content);min-width:240px;padding:0 16px;text-align:center}.mfui-content-view__image{max-width:144px}.mfui-content-view__bg-image,.mfui-content-view__image{display:inline-block;margin-bottom:24px;vertical-align:top}.mfui-content-view__bg-image{background-repeat:no-repeat;background-size:100%;height:144px;width:144px}.mfui-content-view__bg-image_type_waiting{background-image:url(
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-content-view{color:var(--content);min-width:240px;padding:0 16px;text-align:center}.mfui-content-view__image{max-width:144px}.mfui-content-view__bg-image,.mfui-content-view__image{display:inline-block;margin-bottom:24px;vertical-align:top}.mfui-content-view__bg-image{background-repeat:no-repeat;background-size:100%;height:144px;width:144px}.mfui-content-view__bg-image_type_waiting{background-image:url(img/waiting.png)}.mfui-content-view__bg-image_type_error{background-image:url(img/error.png)}.mfui-content-view__bg-image_type_submit{background-image:url(img/submit.png)}.mfui-content-view__bg-image_type_success{background-image:url(img/success.png)}.mfui-content-view__bg-image_type_fail{background-image:url(img/fail.png)}.mfui-content-view__bg-image_type_update{background-image:url(img/update.png)}.mfui-content-view__bg-image_type_alarm{background-image:url(img/alarm.png)}.mfui-content-view__bg-image_type_empty{background-image:url(img/empty.png)}.mfui-content-view__bg-image_type_searchNoResult{background-image:url(img/searchNoResult.png)}.mfui-content-view__title{font-size:18px;font-weight:500;line-height:24px}@media screen and (min-width:768px){.mfui-content-view__title{font-size:20px;letter-spacing:.5px;line-height:28px}}.mfui-content-view__text{font-size:15px;font-weight:400;line-height:24px;margin-top:4px}.mfui-content-view__buttons{gap:12px;padding-top:32px}.mfui-content-view__buttons,.mfui-content-view_fullscreen{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-content-view_fullscreen{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:100%}.mfui-content-view_fullscreen .mfui-content-view__content{margin-top:auto}.mfui-content-view_fullscreen .mfui-content-view__buttons{margin-top:auto;padding-bottom:24px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";h1,h2,h3,h4,h5{margin:0}.mfui-parameter__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:24px 0}.mfui-parameter_border-top.mfui-parameter_border-color_default .mfui-parameter__wrapper{border-top:1px solid var(--spbSky1)}.mfui-parameter_border-bottom.mfui-parameter_border-color_default .mfui-parameter__wrapper{border-bottom:1px solid var(--spbSky1)}.mfui-parameter_border-top.mfui-parameter_border-color_darker .mfui-parameter__wrapper{border-top:1px solid var(--spbSky2)}.mfui-parameter_border-bottom.mfui-parameter_border-color_darker .mfui-parameter__wrapper{border-bottom:1px solid var(--spbSky2)}.mfui-parameter__main{display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-parameter__main:not(:first-child){margin-top:24px}.mfui-parameter__main_with-out-title{margin-top:16px!important}.mfui-parameter__main_with-badge{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-parameter__title-item_size_default{font-size:15px;font-weight:500;line-height:24px}.mfui-parameter__title-item_size_big{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-parameter__title-item_size_big{font-size:20px;line-height:28px}}@media screen and (max-width:767px){.mfui-parameter__title-item{font-size:15px;font-weight:500;line-height:24px}}.mfui-parameter__icon{display:inline-block;height:24px;margin-left:1px;margin-right:8px;overflow:hidden;vertical-align:bottom;width:24px}.mfui-parameter__badge{margin-bottom:8px}@media screen and (min-width:768px){.mfui-parameter__title .mfui-parameter__desc{width:100%}}.mfui-parameter__tooltip{cursor:pointer;display:inline-block;height:20px;margin-left:8px;vertical-align:text-bottom;width:20px;fill:var(--spbSky2)}.mfui-parameter__tooltip-inner{max-width:350px}.mfui-parameter__desc{margin-top:12px}@media screen and (min-width:768px){.mfui-parameter__desc{width:70%}}.mfui-parameter__desc_collapsible{margin-top:12px}.mfui-parameter__value-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;border-radius:8px;padding:4px 8px;text-align:right;white-space:pre-line}.mfui-parameter__value-wrapper_frame_default{background:var(--base)}.mfui-parameter__value-wrapper_frame_gray{background:var(--spbSky0)}.mfui-parameter__value{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-parameter__value{font-size:20px;line-height:28px}}@media screen and (max-width:767px){.mfui-parameter__value{font-size:15px;font-weight:500;line-height:24px}}.mfui-parameter__value-unit:before{content:" "}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import PromoBadge from '../Badges/PromoBadge/PromoBadge';
|
|
3
|
+
import { DescriptionType } from './components/ParameterDescription';
|
|
4
|
+
import './Parameter.scss';
|
|
5
|
+
type BadgeTypesType = React.ComponentProps<typeof PromoBadge>['type'];
|
|
6
|
+
type BadgeColorType = React.ComponentProps<typeof PromoBadge>['color'];
|
|
7
|
+
type TitleSizeType = 'default' | 'big';
|
|
8
|
+
type ValueFrameColorType = 'none' | 'default' | 'gray';
|
|
9
|
+
type ItemType = {
|
|
10
|
+
title?: React.ReactNode[];
|
|
11
|
+
titleSize?: TitleSizeType;
|
|
12
|
+
description?: DescriptionType[];
|
|
13
|
+
value?: string | React.ReactNode;
|
|
14
|
+
valueUnit?: string;
|
|
15
|
+
valueFrameColor?: ValueFrameColorType;
|
|
16
|
+
};
|
|
17
|
+
export interface IParameter {
|
|
18
|
+
/** Массив с данными для строки */
|
|
19
|
+
items: ItemType[];
|
|
20
|
+
/** Дополнительный класс для основного контейнера */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** Текст для бейджа */
|
|
23
|
+
badge?: string;
|
|
24
|
+
/** DEPRECATED. Тип бэйджа (используйте badgeColor) */
|
|
25
|
+
badgeType?: BadgeTypesType;
|
|
26
|
+
/** Цвет бейджа */
|
|
27
|
+
badgeColor?: BadgeColorType;
|
|
28
|
+
/** Текст тултипа */
|
|
29
|
+
tooltip?: string;
|
|
30
|
+
/** Отключить верхнюю границу */
|
|
31
|
+
disableBorderTop?: boolean;
|
|
32
|
+
/** Наличие нижней границы */
|
|
33
|
+
borderBottom?: boolean;
|
|
34
|
+
/** Цвет верхней и нижней границ */
|
|
35
|
+
borderColor?: 'default' | 'darker';
|
|
36
|
+
/** Единое значение для всей строки */
|
|
37
|
+
mergedValue?: string;
|
|
38
|
+
/** Иконка для строки */
|
|
39
|
+
icon?: React.ReactNode;
|
|
40
|
+
/** Растягивание компонента на всю доступную ширину */
|
|
41
|
+
fullWidth?: boolean;
|
|
42
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
|
43
|
+
dataAttrs?: {
|
|
44
|
+
root?: Record<string, string>;
|
|
45
|
+
moreLink?: Record<string, string>;
|
|
46
|
+
itemTitle?: Record<string, string>;
|
|
47
|
+
itemValue?: Record<string, string>;
|
|
48
|
+
};
|
|
49
|
+
/** Дополнительные классы для внутренних элементов */
|
|
50
|
+
classes?: {
|
|
51
|
+
title?: string;
|
|
52
|
+
openedDescription?: string;
|
|
53
|
+
toggleDescription?: string;
|
|
54
|
+
};
|
|
55
|
+
/** Ссылка на корневой элемент */
|
|
56
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
57
|
+
}
|
|
58
|
+
declare const Parameter: React.FC<IParameter>;
|
|
59
|
+
export default Parameter;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
import "core-js/modules/es.symbol.description.js";
|
|
4
|
+
import "core-js/modules/es.array.map.js";
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { cnCreate, filterDataAttrs, convert } from '@megafon/ui-helpers';
|
|
7
|
+
import PromoBadge from "../Badges/PromoBadge/PromoBadge";
|
|
8
|
+
import Caption from "../Caption/Caption";
|
|
9
|
+
import Grid from "../Grid/Grid";
|
|
10
|
+
import GridColumn from "../Grid/GridColumn";
|
|
11
|
+
import Tooltip from "../Tooltip/Tooltip";
|
|
12
|
+
import ParameterDescription from "./components/ParameterDescription";
|
|
13
|
+
import { getColumnConfig } from "./helpers";
|
|
14
|
+
import "./Parameter.css";
|
|
15
|
+
var InfoIcon = function InfoIcon(props) {
|
|
16
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
17
|
+
viewBox: "0 0 20 20"
|
|
18
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 5c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zm1 8V9H9v6h2z"
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
var cn = cnCreate('mfui-parameter');
|
|
23
|
+
var Parameter = function Parameter(_ref) {
|
|
24
|
+
var items = _ref.items,
|
|
25
|
+
className = _ref.className,
|
|
26
|
+
_ref$badge = _ref.badge,
|
|
27
|
+
badge = _ref$badge === void 0 ? '' : _ref$badge,
|
|
28
|
+
_ref$badgeType = _ref.badgeType,
|
|
29
|
+
badgeType = _ref$badgeType === void 0 ? 'popular' : _ref$badgeType,
|
|
30
|
+
badgeColor = _ref.badgeColor,
|
|
31
|
+
tooltip = _ref.tooltip,
|
|
32
|
+
icon = _ref.icon,
|
|
33
|
+
_ref$disableBorderTop = _ref.disableBorderTop,
|
|
34
|
+
disableBorderTop = _ref$disableBorderTop === void 0 ? false : _ref$disableBorderTop,
|
|
35
|
+
_ref$borderBottom = _ref.borderBottom,
|
|
36
|
+
borderBottom = _ref$borderBottom === void 0 ? false : _ref$borderBottom,
|
|
37
|
+
_ref$borderColor = _ref.borderColor,
|
|
38
|
+
borderColor = _ref$borderColor === void 0 ? 'default' : _ref$borderColor,
|
|
39
|
+
_ref$mergedValue = _ref.mergedValue,
|
|
40
|
+
mergedValue = _ref$mergedValue === void 0 ? '' : _ref$mergedValue,
|
|
41
|
+
_ref$fullWidth = _ref.fullWidth,
|
|
42
|
+
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
43
|
+
_ref$classes = _ref.classes,
|
|
44
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
45
|
+
dataAttrs = _ref.dataAttrs,
|
|
46
|
+
rootRef = _ref.rootRef;
|
|
47
|
+
var tooltipRef = React.useRef(null);
|
|
48
|
+
var renderTitle = function renderTitle(titles, titleSize, isFirstItem) {
|
|
49
|
+
return titles === null || titles === void 0 ? void 0 : titles.map(function (titleItem, i) {
|
|
50
|
+
var isFirstTitle = i === 0;
|
|
51
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
52
|
+
key: i,
|
|
53
|
+
className: cn('title-item', {
|
|
54
|
+
size: titleSize
|
|
55
|
+
}, [classes.title])
|
|
56
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemTitle, i + 1)), icon && isFirstTitle && /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: cn('icon')
|
|
58
|
+
}, icon), titleItem, tooltip && isFirstItem && isFirstTitle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: cn('tooltip'),
|
|
60
|
+
ref: tooltipRef
|
|
61
|
+
}, /*#__PURE__*/React.createElement(InfoIcon, null)), /*#__PURE__*/React.createElement(Tooltip, {
|
|
62
|
+
className: cn('tooltip-inner'),
|
|
63
|
+
triggerElement: tooltipRef
|
|
64
|
+
}, tooltip)));
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
var renderDescription = function renderDescription(description) {
|
|
68
|
+
return description === null || description === void 0 ? void 0 : description.map(function (_ref2, j) {
|
|
69
|
+
var value = _ref2.value,
|
|
70
|
+
isCollapsible = _ref2.isCollapsible;
|
|
71
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: cn('desc', {
|
|
73
|
+
collapsible: isCollapsible
|
|
74
|
+
}),
|
|
75
|
+
key: j
|
|
76
|
+
}, /*#__PURE__*/React.createElement(ParameterDescription, {
|
|
77
|
+
value: value,
|
|
78
|
+
isCollapsible: isCollapsible,
|
|
79
|
+
dataAttrs: {
|
|
80
|
+
moreLink: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.moreLink
|
|
81
|
+
},
|
|
82
|
+
classes: {
|
|
83
|
+
open: classes.openedDescription,
|
|
84
|
+
toggle: classes.toggleDescription
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
var renderValue = function renderValue(valueFrameColor, value, valueUnit) {
|
|
90
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
91
|
+
className: cn('value-wrapper', {
|
|
92
|
+
frame: valueFrameColor
|
|
93
|
+
})
|
|
94
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemValue)), /*#__PURE__*/React.createElement("div", {
|
|
95
|
+
className: cn('value')
|
|
96
|
+
}, typeof value === 'string' ? convert(value, {}) : value), valueUnit && /*#__PURE__*/React.createElement(Caption, {
|
|
97
|
+
className: cn('value-unit'),
|
|
98
|
+
hasMargin: false
|
|
99
|
+
}, convert(valueUnit, {})));
|
|
100
|
+
};
|
|
101
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
102
|
+
className: cn({
|
|
103
|
+
'border-top': !disableBorderTop,
|
|
104
|
+
'border-bottom': borderBottom,
|
|
105
|
+
'border-color': borderColor
|
|
106
|
+
}, [className])
|
|
107
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
108
|
+
ref: rootRef
|
|
109
|
+
}), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(GridColumn, getColumnConfig(fullWidth), /*#__PURE__*/React.createElement("div", {
|
|
110
|
+
className: cn('wrapper')
|
|
111
|
+
}, items.map(function (_ref3, i) {
|
|
112
|
+
var title = _ref3.title,
|
|
113
|
+
value = _ref3.value,
|
|
114
|
+
description = _ref3.description,
|
|
115
|
+
_ref3$valueUnit = _ref3.valueUnit,
|
|
116
|
+
valueUnit = _ref3$valueUnit === void 0 ? '' : _ref3$valueUnit,
|
|
117
|
+
_ref3$titleSize = _ref3.titleSize,
|
|
118
|
+
titleSize = _ref3$titleSize === void 0 ? 'default' : _ref3$titleSize,
|
|
119
|
+
_ref3$valueFrameColor = _ref3.valueFrameColor,
|
|
120
|
+
valueFrameColor = _ref3$valueFrameColor === void 0 ? 'none' : _ref3$valueFrameColor;
|
|
121
|
+
var isFirstItem = i === 0;
|
|
122
|
+
var isRenderBadge = isFirstItem && !!badge;
|
|
123
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
124
|
+
key: i
|
|
125
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: cn('main', {
|
|
127
|
+
'with-badge': isRenderBadge,
|
|
128
|
+
'with-out-title': !title
|
|
129
|
+
})
|
|
130
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
131
|
+
className: cn('title')
|
|
132
|
+
}, isRenderBadge && /*#__PURE__*/React.createElement(PromoBadge, {
|
|
133
|
+
className: cn('badge'),
|
|
134
|
+
type: badgeType,
|
|
135
|
+
color: badgeColor
|
|
136
|
+
}, badge), title ? renderTitle(title, titleSize, isFirstItem) : renderDescription(description)), mergedValue && isFirstItem && renderValue(valueFrameColor, mergedValue, valueUnit), !mergedValue && value && renderValue(valueFrameColor, value, valueUnit)), title && renderDescription(description));
|
|
137
|
+
})))));
|
|
138
|
+
};
|
|
139
|
+
export default Parameter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-parameter-description__collapse{color:var(--systemBlue);cursor:pointer;font-size:12px;-webkit-text-decoration:underline dashed var(--systemBlue);text-decoration:underline dashed var(--systemBlue)}.mfui-parameter-description__content-inner{margin-bottom:8px}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './ParameterDescription.scss';
|
|
3
|
+
export type DescriptionType = {
|
|
4
|
+
value: string | React.ReactNode[];
|
|
5
|
+
isCollapsible?: boolean;
|
|
6
|
+
classes?: {
|
|
7
|
+
toggle?: string;
|
|
8
|
+
open?: string;
|
|
9
|
+
};
|
|
10
|
+
dataAttrs?: {
|
|
11
|
+
root?: Record<string, string>;
|
|
12
|
+
moreLink?: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const ParameterDescription: React.FC<DescriptionType>;
|
|
16
|
+
export default ParameterDescription;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
5
|
+
import Collapse from "../../_Collapse/Collapse";
|
|
6
|
+
import "./ParameterDescription.css";
|
|
7
|
+
var cn = cnCreate('mfui-parameter-description');
|
|
8
|
+
var ParameterDescription = function ParameterDescription(_ref) {
|
|
9
|
+
var value = _ref.value,
|
|
10
|
+
_ref$isCollapsible = _ref.isCollapsible,
|
|
11
|
+
isCollapsible = _ref$isCollapsible === void 0 ? false : _ref$isCollapsible,
|
|
12
|
+
_ref$classes = _ref.classes,
|
|
13
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
14
|
+
dataAttrs = _ref.dataAttrs;
|
|
15
|
+
var _React$useState = React.useState(false),
|
|
16
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17
|
+
isOpened = _React$useState2[0],
|
|
18
|
+
setIsOpened = _React$useState2[1];
|
|
19
|
+
var handleClickDesc = React.useCallback(function () {
|
|
20
|
+
return setIsOpened(!isOpened);
|
|
21
|
+
}, [isOpened]);
|
|
22
|
+
if (isCollapsible) {
|
|
23
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
24
|
+
className: cn([isOpened ? classes.open : undefined])
|
|
25
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement(Collapse, {
|
|
26
|
+
className: cn('content'),
|
|
27
|
+
classNameContainer: cn('content-inner'),
|
|
28
|
+
isOpened: isOpened
|
|
29
|
+
}, value), /*#__PURE__*/React.createElement("span", _extends({
|
|
30
|
+
className: cn('collapse', classes.toggle)
|
|
31
|
+
}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.moreLink), {
|
|
32
|
+
onClick: handleClickDesc
|
|
33
|
+
}), isOpened ? 'Скрыть' : 'Подробнее'));
|
|
34
|
+
}
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: cn()
|
|
37
|
+
}, value);
|
|
38
|
+
};
|
|
39
|
+
export default ParameterDescription;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import GridColumn from '../Grid/GridColumn';
|
|
3
|
+
type GridColumnPropsType = React.ComponentProps<typeof GridColumn>;
|
|
4
|
+
type GridColumnConfigType = Partial<Pick<GridColumnPropsType, 'all' | 'wide' | 'desktop' | 'tablet' | 'mobile'>>;
|
|
5
|
+
export declare const getColumnConfig: (isFullWidth: boolean) => GridColumnConfigType;
|
|
6
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-slider-ratio{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mfui-slider-ratio__head{font-size:15px;font-weight:500;line-height:24px;margin-bottom:8px}.mfui-slider-ratio__display-values{display:grid;grid-template-columns:45% 45%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:8px;width:100%}.mfui-slider-ratio__range-container{position:relative;width:100%}.mfui-slider-ratio__range-input{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--brandPurple);background-image:-webkit-gradient(linear,left top,left bottom,from(var(--brandGreen)),to(var(--brandGreen)));background-image:linear-gradient(var(--brandGreen),var(--brandGreen));background-repeat:no-repeat;border-radius:100px;cursor:pointer;display:block;height:12px;margin:6px 0;outline:none;pointer-events:none;position:relative;width:100%;z-index:1}.mfui-slider-ratio__range-input:focus{outline:none}.mfui-slider-ratio__range-input::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-image:url(
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-slider-ratio{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mfui-slider-ratio__head{font-size:15px;font-weight:500;line-height:24px;margin-bottom:8px}.mfui-slider-ratio__display-values{display:grid;grid-template-columns:45% 45%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:8px;width:100%}.mfui-slider-ratio__range-container{position:relative;width:100%}.mfui-slider-ratio__range-input{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--brandPurple);background-image:-webkit-gradient(linear,left top,left bottom,from(var(--brandGreen)),to(var(--brandGreen)));background-image:linear-gradient(var(--brandGreen),var(--brandGreen));background-repeat:no-repeat;border-radius:100px;cursor:pointer;display:block;height:12px;margin:6px 0;outline:none;pointer-events:none;position:relative;width:100%;z-index:1}.mfui-slider-ratio__range-input:focus{outline:none}.mfui-slider-ratio__range-input::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-image:url(img/thumb.png);background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:0 2px 6px rgba(0,0,0,.16);height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio__range-input::-moz-range-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-image:url(img/thumb.png);background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio__range-input::-ms-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-image:url(img/thumb.png);background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio__range-input::-webkit-slider-runnable-track{-webkit-appearance:none;background:transparent;border:none;-webkit-box-shadow:none;box-shadow:none}.mfui-slider-ratio__range-input::-moz-range-track{-webkit-appearance:none;background:transparent;border:none;box-shadow:none}.mfui-slider-ratio__range-input::-ms-track{-webkit-appearance:none;background:transparent;border:none;box-shadow:none}.mfui-slider-ratio__range-track{cursor:pointer;height:100%;position:absolute;top:0;width:100%;z-index:0}.mfui-slider-ratio__scale{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;left:calc(var(--thumbSize)/2);position:absolute;right:calc(var(--thumbSize)/2);top:0;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;pointer-events:none}.mfui-slider-ratio__scale-item{background-color:var(--stcWhite);border-radius:50%;height:4px;width:4px}.mfui-slider-ratio__scale-item:first-child{margin-left:-2px}.mfui-slider-ratio__scale-item:last-child{margin-right:-2px}.mfui-slider-ratio_disabled .mfui-slider-ratio__head{color:var(--spbSky3)}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-input{background-color:var(--spbSky1);background-image:-webkit-gradient(linear,left top,left bottom,from(var(--spbSky0)),to(var(--spbSky0)));background-image:linear-gradient(var(--spbSky0),var(--spbSky0));cursor:default}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-input::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-color:var(--spbSky2);background-image:url(img/thumb.png);background-image:none;background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:0 2px 6px rgba(0,0,0,.16);-webkit-box-shadow:none;box-shadow:none;height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-input::-moz-range-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-color:var(--spbSky2);background-image:url(img/thumb.png);background-image:none;background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:none;height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-input::-ms-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-color:var(--spbSky2);background-image:url(img/thumb.png);background-image:none;background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:none;height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-track{cursor:default}.mfui-slider-ratio_disabled .mfui-slider-ratio__scale{display:none}
|
package/dist/es/index.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export { default as PaginationButton } from './components/Pagination/components/
|
|
|
43
43
|
export { default as PaginationButtons } from './components/Pagination/components/PaginationButtons/PaginationButtons';
|
|
44
44
|
export { default as PaginationNavigation } from './components/Pagination/components/PaginationNavigation/PaginationNavigation';
|
|
45
45
|
export { default as Paragraph } from './components/Paragraph/Paragraph';
|
|
46
|
+
export { default as Parameter } from './components/Parameter/Parameter';
|
|
47
|
+
export { default as ParameterDescription } from './components/Parameter/components/ParameterDescription';
|
|
46
48
|
export { default as Preloader } from './components/Preloader/Preloader';
|
|
47
49
|
export { default as PriceBadge } from './components/Badges/PriceBadge/PriceBadge';
|
|
48
50
|
export { default as PromoBadge } from './components/Badges/PromoBadge/PromoBadge';
|
package/dist/es/index.js
CHANGED
|
@@ -43,6 +43,8 @@ export { default as PaginationButton } from "./components/Pagination/components/
|
|
|
43
43
|
export { default as PaginationButtons } from "./components/Pagination/components/PaginationButtons/PaginationButtons";
|
|
44
44
|
export { default as PaginationNavigation } from "./components/Pagination/components/PaginationNavigation/PaginationNavigation";
|
|
45
45
|
export { default as Paragraph } from "./components/Paragraph/Paragraph";
|
|
46
|
+
export { default as Parameter } from "./components/Parameter/Parameter";
|
|
47
|
+
export { default as ParameterDescription } from "./components/Parameter/components/ParameterDescription";
|
|
46
48
|
export { default as Preloader } from "./components/Preloader/Preloader";
|
|
47
49
|
export { default as PriceBadge } from "./components/Badges/PriceBadge/PriceBadge";
|
|
48
50
|
export { default as PromoBadge } from "./components/Badges/PromoBadge/PromoBadge";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-content-view{color:var(--content);min-width:240px;padding:0 16px;text-align:center}.mfui-content-view__image{max-width:144px}.mfui-content-view__bg-image,.mfui-content-view__image{display:inline-block;margin-bottom:24px;vertical-align:top}.mfui-content-view__bg-image{background-repeat:no-repeat;background-size:100%;height:144px;width:144px}.mfui-content-view__bg-image_type_waiting{background-image:url(
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-content-view{color:var(--content);min-width:240px;padding:0 16px;text-align:center}.mfui-content-view__image{max-width:144px}.mfui-content-view__bg-image,.mfui-content-view__image{display:inline-block;margin-bottom:24px;vertical-align:top}.mfui-content-view__bg-image{background-repeat:no-repeat;background-size:100%;height:144px;width:144px}.mfui-content-view__bg-image_type_waiting{background-image:url(img/waiting.png)}.mfui-content-view__bg-image_type_error{background-image:url(img/error.png)}.mfui-content-view__bg-image_type_submit{background-image:url(img/submit.png)}.mfui-content-view__bg-image_type_success{background-image:url(img/success.png)}.mfui-content-view__bg-image_type_fail{background-image:url(img/fail.png)}.mfui-content-view__bg-image_type_update{background-image:url(img/update.png)}.mfui-content-view__bg-image_type_alarm{background-image:url(img/alarm.png)}.mfui-content-view__bg-image_type_empty{background-image:url(img/empty.png)}.mfui-content-view__bg-image_type_searchNoResult{background-image:url(img/searchNoResult.png)}.mfui-content-view__title{font-size:18px;font-weight:500;line-height:24px}@media screen and (min-width:768px){.mfui-content-view__title{font-size:20px;letter-spacing:.5px;line-height:28px}}.mfui-content-view__text{font-size:15px;font-weight:400;line-height:24px;margin-top:4px}.mfui-content-view__buttons{gap:12px;padding-top:32px}.mfui-content-view__buttons,.mfui-content-view_fullscreen{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-content-view_fullscreen{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:100%}.mfui-content-view_fullscreen .mfui-content-view__content{margin-top:auto}.mfui-content-view_fullscreen .mfui-content-view__buttons{margin-top:auto;padding-bottom:24px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";h1,h2,h3,h4,h5{margin:0}.mfui-parameter__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:24px 0}.mfui-parameter_border-top.mfui-parameter_border-color_default .mfui-parameter__wrapper{border-top:1px solid var(--spbSky1)}.mfui-parameter_border-bottom.mfui-parameter_border-color_default .mfui-parameter__wrapper{border-bottom:1px solid var(--spbSky1)}.mfui-parameter_border-top.mfui-parameter_border-color_darker .mfui-parameter__wrapper{border-top:1px solid var(--spbSky2)}.mfui-parameter_border-bottom.mfui-parameter_border-color_darker .mfui-parameter__wrapper{border-bottom:1px solid var(--spbSky2)}.mfui-parameter__main{display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mfui-parameter__main:not(:first-child){margin-top:24px}.mfui-parameter__main_with-out-title{margin-top:16px!important}.mfui-parameter__main_with-badge{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-parameter__title-item_size_default{font-size:15px;font-weight:500;line-height:24px}.mfui-parameter__title-item_size_big{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-parameter__title-item_size_big{font-size:20px;line-height:28px}}@media screen and (max-width:767px){.mfui-parameter__title-item{font-size:15px;font-weight:500;line-height:24px}}.mfui-parameter__icon{display:inline-block;height:24px;margin-left:1px;margin-right:8px;overflow:hidden;vertical-align:bottom;width:24px}.mfui-parameter__badge{margin-bottom:8px}@media screen and (min-width:768px){.mfui-parameter__title .mfui-parameter__desc{width:100%}}.mfui-parameter__tooltip{cursor:pointer;display:inline-block;height:20px;margin-left:8px;vertical-align:text-bottom;width:20px;fill:var(--spbSky2)}.mfui-parameter__tooltip-inner{max-width:350px}.mfui-parameter__desc{margin-top:12px}@media screen and (min-width:768px){.mfui-parameter__desc{width:70%}}.mfui-parameter__desc_collapsible{margin-top:12px}.mfui-parameter__value-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;border-radius:8px;padding:4px 8px;text-align:right;white-space:pre-line}.mfui-parameter__value-wrapper_frame_default{background:var(--base)}.mfui-parameter__value-wrapper_frame_gray{background:var(--spbSky0)}.mfui-parameter__value{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px}@media screen and (min-width:1280px){.mfui-parameter__value{font-size:20px;line-height:28px}}@media screen and (max-width:767px){.mfui-parameter__value{font-size:15px;font-weight:500;line-height:24px}}.mfui-parameter__value-unit:before{content:" "}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import PromoBadge from '../Badges/PromoBadge/PromoBadge';
|
|
3
|
+
import { DescriptionType } from './components/ParameterDescription';
|
|
4
|
+
import './Parameter.scss';
|
|
5
|
+
type BadgeTypesType = React.ComponentProps<typeof PromoBadge>['type'];
|
|
6
|
+
type BadgeColorType = React.ComponentProps<typeof PromoBadge>['color'];
|
|
7
|
+
type TitleSizeType = 'default' | 'big';
|
|
8
|
+
type ValueFrameColorType = 'none' | 'default' | 'gray';
|
|
9
|
+
type ItemType = {
|
|
10
|
+
title?: React.ReactNode[];
|
|
11
|
+
titleSize?: TitleSizeType;
|
|
12
|
+
description?: DescriptionType[];
|
|
13
|
+
value?: string | React.ReactNode;
|
|
14
|
+
valueUnit?: string;
|
|
15
|
+
valueFrameColor?: ValueFrameColorType;
|
|
16
|
+
};
|
|
17
|
+
export interface IParameter {
|
|
18
|
+
/** Массив с данными для строки */
|
|
19
|
+
items: ItemType[];
|
|
20
|
+
/** Дополнительный класс для основного контейнера */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** Текст для бейджа */
|
|
23
|
+
badge?: string;
|
|
24
|
+
/** DEPRECATED. Тип бэйджа (используйте badgeColor) */
|
|
25
|
+
badgeType?: BadgeTypesType;
|
|
26
|
+
/** Цвет бейджа */
|
|
27
|
+
badgeColor?: BadgeColorType;
|
|
28
|
+
/** Текст тултипа */
|
|
29
|
+
tooltip?: string;
|
|
30
|
+
/** Отключить верхнюю границу */
|
|
31
|
+
disableBorderTop?: boolean;
|
|
32
|
+
/** Наличие нижней границы */
|
|
33
|
+
borderBottom?: boolean;
|
|
34
|
+
/** Цвет верхней и нижней границ */
|
|
35
|
+
borderColor?: 'default' | 'darker';
|
|
36
|
+
/** Единое значение для всей строки */
|
|
37
|
+
mergedValue?: string;
|
|
38
|
+
/** Иконка для строки */
|
|
39
|
+
icon?: React.ReactNode;
|
|
40
|
+
/** Растягивание компонента на всю доступную ширину */
|
|
41
|
+
fullWidth?: boolean;
|
|
42
|
+
/** Дополнительные data атрибуты к внутренним элементам */
|
|
43
|
+
dataAttrs?: {
|
|
44
|
+
root?: Record<string, string>;
|
|
45
|
+
moreLink?: Record<string, string>;
|
|
46
|
+
itemTitle?: Record<string, string>;
|
|
47
|
+
itemValue?: Record<string, string>;
|
|
48
|
+
};
|
|
49
|
+
/** Дополнительные классы для внутренних элементов */
|
|
50
|
+
classes?: {
|
|
51
|
+
title?: string;
|
|
52
|
+
openedDescription?: string;
|
|
53
|
+
toggleDescription?: string;
|
|
54
|
+
};
|
|
55
|
+
/** Ссылка на корневой элемент */
|
|
56
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
57
|
+
}
|
|
58
|
+
declare const Parameter: React.FC<IParameter>;
|
|
59
|
+
export default Parameter;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
require("core-js/modules/es.symbol.js");
|
|
10
|
+
require("core-js/modules/es.symbol.description.js");
|
|
11
|
+
require("core-js/modules/es.array.map.js");
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
|
14
|
+
var _PromoBadge = _interopRequireDefault(require("../Badges/PromoBadge/PromoBadge"));
|
|
15
|
+
var _Caption = _interopRequireDefault(require("../Caption/Caption"));
|
|
16
|
+
var _Grid = _interopRequireDefault(require("../Grid/Grid"));
|
|
17
|
+
var _GridColumn = _interopRequireDefault(require("../Grid/GridColumn"));
|
|
18
|
+
var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
|
|
19
|
+
var _ParameterDescription = _interopRequireDefault(require("./components/ParameterDescription"));
|
|
20
|
+
var _helpers = require("./helpers");
|
|
21
|
+
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); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
24
|
+
var InfoIcon = function InfoIcon(props) {
|
|
25
|
+
return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
|
|
26
|
+
viewBox: "0 0 20 20"
|
|
27
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 5c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zm1 8V9H9v6h2z"
|
|
29
|
+
}));
|
|
30
|
+
};
|
|
31
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-parameter');
|
|
32
|
+
var Parameter = function Parameter(_ref) {
|
|
33
|
+
var items = _ref.items,
|
|
34
|
+
className = _ref.className,
|
|
35
|
+
_ref$badge = _ref.badge,
|
|
36
|
+
badge = _ref$badge === void 0 ? '' : _ref$badge,
|
|
37
|
+
_ref$badgeType = _ref.badgeType,
|
|
38
|
+
badgeType = _ref$badgeType === void 0 ? 'popular' : _ref$badgeType,
|
|
39
|
+
badgeColor = _ref.badgeColor,
|
|
40
|
+
tooltip = _ref.tooltip,
|
|
41
|
+
icon = _ref.icon,
|
|
42
|
+
_ref$disableBorderTop = _ref.disableBorderTop,
|
|
43
|
+
disableBorderTop = _ref$disableBorderTop === void 0 ? false : _ref$disableBorderTop,
|
|
44
|
+
_ref$borderBottom = _ref.borderBottom,
|
|
45
|
+
borderBottom = _ref$borderBottom === void 0 ? false : _ref$borderBottom,
|
|
46
|
+
_ref$borderColor = _ref.borderColor,
|
|
47
|
+
borderColor = _ref$borderColor === void 0 ? 'default' : _ref$borderColor,
|
|
48
|
+
_ref$mergedValue = _ref.mergedValue,
|
|
49
|
+
mergedValue = _ref$mergedValue === void 0 ? '' : _ref$mergedValue,
|
|
50
|
+
_ref$fullWidth = _ref.fullWidth,
|
|
51
|
+
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
52
|
+
_ref$classes = _ref.classes,
|
|
53
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
54
|
+
dataAttrs = _ref.dataAttrs,
|
|
55
|
+
rootRef = _ref.rootRef;
|
|
56
|
+
var tooltipRef = React.useRef(null);
|
|
57
|
+
var renderTitle = function renderTitle(titles, titleSize, isFirstItem) {
|
|
58
|
+
return titles === null || titles === void 0 ? void 0 : titles.map(function (titleItem, i) {
|
|
59
|
+
var isFirstTitle = i === 0;
|
|
60
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
61
|
+
key: i,
|
|
62
|
+
className: cn('title-item', {
|
|
63
|
+
size: titleSize
|
|
64
|
+
}, [classes.title])
|
|
65
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemTitle, i + 1)), icon && isFirstTitle && /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: cn('icon')
|
|
67
|
+
}, icon), titleItem, tooltip && isFirstItem && isFirstTitle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: cn('tooltip'),
|
|
69
|
+
ref: tooltipRef
|
|
70
|
+
}, /*#__PURE__*/React.createElement(InfoIcon, null)), /*#__PURE__*/React.createElement(_Tooltip["default"], {
|
|
71
|
+
className: cn('tooltip-inner'),
|
|
72
|
+
triggerElement: tooltipRef
|
|
73
|
+
}, tooltip)));
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
var renderDescription = function renderDescription(description) {
|
|
77
|
+
return description === null || description === void 0 ? void 0 : description.map(function (_ref2, j) {
|
|
78
|
+
var value = _ref2.value,
|
|
79
|
+
isCollapsible = _ref2.isCollapsible;
|
|
80
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
81
|
+
className: cn('desc', {
|
|
82
|
+
collapsible: isCollapsible
|
|
83
|
+
}),
|
|
84
|
+
key: j
|
|
85
|
+
}, /*#__PURE__*/React.createElement(_ParameterDescription["default"], {
|
|
86
|
+
value: value,
|
|
87
|
+
isCollapsible: isCollapsible,
|
|
88
|
+
dataAttrs: {
|
|
89
|
+
moreLink: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.moreLink
|
|
90
|
+
},
|
|
91
|
+
classes: {
|
|
92
|
+
open: classes.openedDescription,
|
|
93
|
+
toggle: classes.toggleDescription
|
|
94
|
+
}
|
|
95
|
+
}));
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
var renderValue = function renderValue(valueFrameColor, value, valueUnit) {
|
|
99
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
100
|
+
className: cn('value-wrapper', {
|
|
101
|
+
frame: valueFrameColor
|
|
102
|
+
})
|
|
103
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.itemValue)), /*#__PURE__*/React.createElement("div", {
|
|
104
|
+
className: cn('value')
|
|
105
|
+
}, typeof value === 'string' ? (0, _uiHelpers.convert)(value, {}) : value), valueUnit && /*#__PURE__*/React.createElement(_Caption["default"], {
|
|
106
|
+
className: cn('value-unit'),
|
|
107
|
+
hasMargin: false
|
|
108
|
+
}, (0, _uiHelpers.convert)(valueUnit, {})));
|
|
109
|
+
};
|
|
110
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
111
|
+
className: cn({
|
|
112
|
+
'border-top': !disableBorderTop,
|
|
113
|
+
'border-bottom': borderBottom,
|
|
114
|
+
'border-color': borderColor
|
|
115
|
+
}, [className])
|
|
116
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
117
|
+
ref: rootRef
|
|
118
|
+
}), /*#__PURE__*/React.createElement(_Grid["default"], null, /*#__PURE__*/React.createElement(_GridColumn["default"], (0, _helpers.getColumnConfig)(fullWidth), /*#__PURE__*/React.createElement("div", {
|
|
119
|
+
className: cn('wrapper')
|
|
120
|
+
}, items.map(function (_ref3, i) {
|
|
121
|
+
var title = _ref3.title,
|
|
122
|
+
value = _ref3.value,
|
|
123
|
+
description = _ref3.description,
|
|
124
|
+
_ref3$valueUnit = _ref3.valueUnit,
|
|
125
|
+
valueUnit = _ref3$valueUnit === void 0 ? '' : _ref3$valueUnit,
|
|
126
|
+
_ref3$titleSize = _ref3.titleSize,
|
|
127
|
+
titleSize = _ref3$titleSize === void 0 ? 'default' : _ref3$titleSize,
|
|
128
|
+
_ref3$valueFrameColor = _ref3.valueFrameColor,
|
|
129
|
+
valueFrameColor = _ref3$valueFrameColor === void 0 ? 'none' : _ref3$valueFrameColor;
|
|
130
|
+
var isFirstItem = i === 0;
|
|
131
|
+
var isRenderBadge = isFirstItem && !!badge;
|
|
132
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
133
|
+
key: i
|
|
134
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
135
|
+
className: cn('main', {
|
|
136
|
+
'with-badge': isRenderBadge,
|
|
137
|
+
'with-out-title': !title
|
|
138
|
+
})
|
|
139
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
140
|
+
className: cn('title')
|
|
141
|
+
}, isRenderBadge && /*#__PURE__*/React.createElement(_PromoBadge["default"], {
|
|
142
|
+
className: cn('badge'),
|
|
143
|
+
type: badgeType,
|
|
144
|
+
color: badgeColor
|
|
145
|
+
}, badge), title ? renderTitle(title, titleSize, isFirstItem) : renderDescription(description)), mergedValue && isFirstItem && renderValue(valueFrameColor, mergedValue, valueUnit), !mergedValue && value && renderValue(valueFrameColor, value, valueUnit)), title && renderDescription(description));
|
|
146
|
+
})))));
|
|
147
|
+
};
|
|
148
|
+
var _default = exports["default"] = Parameter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-parameter-description__collapse{color:var(--systemBlue);cursor:pointer;font-size:12px;-webkit-text-decoration:underline dashed var(--systemBlue);text-decoration:underline dashed var(--systemBlue)}.mfui-parameter-description__content-inner{margin-bottom:8px}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './ParameterDescription.scss';
|
|
3
|
+
export type DescriptionType = {
|
|
4
|
+
value: string | React.ReactNode[];
|
|
5
|
+
isCollapsible?: boolean;
|
|
6
|
+
classes?: {
|
|
7
|
+
toggle?: string;
|
|
8
|
+
open?: string;
|
|
9
|
+
};
|
|
10
|
+
dataAttrs?: {
|
|
11
|
+
root?: Record<string, string>;
|
|
12
|
+
moreLink?: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const ParameterDescription: React.FC<DescriptionType>;
|
|
16
|
+
export default ParameterDescription;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _uiHelpers = require("@megafon/ui-helpers");
|
|
12
|
+
var _Collapse = _interopRequireDefault(require("../../_Collapse/Collapse"));
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
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; }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-parameter-description');
|
|
17
|
+
var ParameterDescription = function ParameterDescription(_ref) {
|
|
18
|
+
var value = _ref.value,
|
|
19
|
+
_ref$isCollapsible = _ref.isCollapsible,
|
|
20
|
+
isCollapsible = _ref$isCollapsible === void 0 ? false : _ref$isCollapsible,
|
|
21
|
+
_ref$classes = _ref.classes,
|
|
22
|
+
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
23
|
+
dataAttrs = _ref.dataAttrs;
|
|
24
|
+
var _React$useState = React.useState(false),
|
|
25
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
26
|
+
isOpened = _React$useState2[0],
|
|
27
|
+
setIsOpened = _React$useState2[1];
|
|
28
|
+
var handleClickDesc = React.useCallback(function () {
|
|
29
|
+
return setIsOpened(!isOpened);
|
|
30
|
+
}, [isOpened]);
|
|
31
|
+
if (isCollapsible) {
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
33
|
+
className: cn([isOpened ? classes.open : undefined])
|
|
34
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root)), /*#__PURE__*/React.createElement(_Collapse["default"], {
|
|
35
|
+
className: cn('content'),
|
|
36
|
+
classNameContainer: cn('content-inner'),
|
|
37
|
+
isOpened: isOpened
|
|
38
|
+
}, value), /*#__PURE__*/React.createElement("span", (0, _extends2["default"])({
|
|
39
|
+
className: cn('collapse', classes.toggle)
|
|
40
|
+
}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.moreLink), {
|
|
41
|
+
onClick: handleClickDesc
|
|
42
|
+
}), isOpened ? 'Скрыть' : 'Подробнее'));
|
|
43
|
+
}
|
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: cn()
|
|
46
|
+
}, value);
|
|
47
|
+
};
|
|
48
|
+
var _default = exports["default"] = ParameterDescription;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import GridColumn from '../Grid/GridColumn';
|
|
3
|
+
type GridColumnPropsType = React.ComponentProps<typeof GridColumn>;
|
|
4
|
+
type GridColumnConfigType = Partial<Pick<GridColumnPropsType, 'all' | 'wide' | 'desktop' | 'tablet' | 'mobile'>>;
|
|
5
|
+
export declare const getColumnConfig: (isFullWidth: boolean) => GridColumnConfigType;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getColumnConfig = void 0;
|
|
7
|
+
var getColumnConfig = exports.getColumnConfig = function getColumnConfig(isFullWidth) {
|
|
8
|
+
return isFullWidth ? {
|
|
9
|
+
all: '12'
|
|
10
|
+
} : {
|
|
11
|
+
wide: '8',
|
|
12
|
+
desktop: '10',
|
|
13
|
+
tablet: '12',
|
|
14
|
+
mobile: '12'
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-slider-ratio{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mfui-slider-ratio__head{font-size:15px;font-weight:500;line-height:24px;margin-bottom:8px}.mfui-slider-ratio__display-values{display:grid;grid-template-columns:45% 45%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:8px;width:100%}.mfui-slider-ratio__range-container{position:relative;width:100%}.mfui-slider-ratio__range-input{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--brandPurple);background-image:-webkit-gradient(linear,left top,left bottom,from(var(--brandGreen)),to(var(--brandGreen)));background-image:linear-gradient(var(--brandGreen),var(--brandGreen));background-repeat:no-repeat;border-radius:100px;cursor:pointer;display:block;height:12px;margin:6px 0;outline:none;pointer-events:none;position:relative;width:100%;z-index:1}.mfui-slider-ratio__range-input:focus{outline:none}.mfui-slider-ratio__range-input::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-image:url(
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-slider-ratio{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mfui-slider-ratio__head{font-size:15px;font-weight:500;line-height:24px;margin-bottom:8px}.mfui-slider-ratio__display-values{display:grid;grid-template-columns:45% 45%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:8px;width:100%}.mfui-slider-ratio__range-container{position:relative;width:100%}.mfui-slider-ratio__range-input{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--brandPurple);background-image:-webkit-gradient(linear,left top,left bottom,from(var(--brandGreen)),to(var(--brandGreen)));background-image:linear-gradient(var(--brandGreen),var(--brandGreen));background-repeat:no-repeat;border-radius:100px;cursor:pointer;display:block;height:12px;margin:6px 0;outline:none;pointer-events:none;position:relative;width:100%;z-index:1}.mfui-slider-ratio__range-input:focus{outline:none}.mfui-slider-ratio__range-input::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-image:url(img/thumb.png);background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:0 2px 6px rgba(0,0,0,.16);height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio__range-input::-moz-range-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-image:url(img/thumb.png);background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio__range-input::-ms-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-image:url(img/thumb.png);background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio__range-input::-webkit-slider-runnable-track{-webkit-appearance:none;background:transparent;border:none;-webkit-box-shadow:none;box-shadow:none}.mfui-slider-ratio__range-input::-moz-range-track{-webkit-appearance:none;background:transparent;border:none;box-shadow:none}.mfui-slider-ratio__range-input::-ms-track{-webkit-appearance:none;background:transparent;border:none;box-shadow:none}.mfui-slider-ratio__range-track{cursor:pointer;height:100%;position:absolute;top:0;width:100%;z-index:0}.mfui-slider-ratio__scale{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;left:calc(var(--thumbSize)/2);position:absolute;right:calc(var(--thumbSize)/2);top:0;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;pointer-events:none}.mfui-slider-ratio__scale-item{background-color:var(--stcWhite);border-radius:50%;height:4px;width:4px}.mfui-slider-ratio__scale-item:first-child{margin-left:-2px}.mfui-slider-ratio__scale-item:last-child{margin-right:-2px}.mfui-slider-ratio_disabled .mfui-slider-ratio__head{color:var(--spbSky3)}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-input{background-color:var(--spbSky1);background-image:-webkit-gradient(linear,left top,left bottom,from(var(--spbSky0)),to(var(--spbSky0)));background-image:linear-gradient(var(--spbSky0),var(--spbSky0));cursor:default}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-input::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-color:var(--spbSky2);background-image:url(img/thumb.png);background-image:none;background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:0 2px 6px rgba(0,0,0,.16);-webkit-box-shadow:none;box-shadow:none;height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-input::-moz-range-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-color:var(--spbSky2);background-image:url(img/thumb.png);background-image:none;background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:none;height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-input::-ms-thumb{-webkit-appearance:none;background-color:var(--stcWhite);background-color:var(--spbSky2);background-image:url(img/thumb.png);background-image:none;background-repeat:no-repeat;background-size:100% 100%;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:none;height:var(--thumbSize);pointer-events:auto;width:var(--thumbSize)}.mfui-slider-ratio_disabled .mfui-slider-ratio__range-track{cursor:default}.mfui-slider-ratio_disabled .mfui-slider-ratio__scale{display:none}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export { default as PaginationButton } from './components/Pagination/components/
|
|
|
43
43
|
export { default as PaginationButtons } from './components/Pagination/components/PaginationButtons/PaginationButtons';
|
|
44
44
|
export { default as PaginationNavigation } from './components/Pagination/components/PaginationNavigation/PaginationNavigation';
|
|
45
45
|
export { default as Paragraph } from './components/Paragraph/Paragraph';
|
|
46
|
+
export { default as Parameter } from './components/Parameter/Parameter';
|
|
47
|
+
export { default as ParameterDescription } from './components/Parameter/components/ParameterDescription';
|
|
46
48
|
export { default as Preloader } from './components/Preloader/Preloader';
|
|
47
49
|
export { default as PriceBadge } from './components/Badges/PriceBadge/PriceBadge';
|
|
48
50
|
export { default as PromoBadge } from './components/Badges/PromoBadge/PromoBadge';
|
package/dist/lib/index.js
CHANGED
|
@@ -261,6 +261,18 @@ Object.defineProperty(exports, "Paragraph", {
|
|
|
261
261
|
return _Paragraph["default"];
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
+
Object.defineProperty(exports, "Parameter", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function get() {
|
|
267
|
+
return _Parameter["default"];
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "ParameterDescription", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function get() {
|
|
273
|
+
return _ParameterDescription["default"];
|
|
274
|
+
}
|
|
275
|
+
});
|
|
264
276
|
Object.defineProperty(exports, "Preloader", {
|
|
265
277
|
enumerable: true,
|
|
266
278
|
get: function get() {
|
|
@@ -528,6 +540,8 @@ var _PaginationButton = _interopRequireDefault(require("./components/Pagination/
|
|
|
528
540
|
var _PaginationButtons = _interopRequireDefault(require("./components/Pagination/components/PaginationButtons/PaginationButtons"));
|
|
529
541
|
var _PaginationNavigation = _interopRequireDefault(require("./components/Pagination/components/PaginationNavigation/PaginationNavigation"));
|
|
530
542
|
var _Paragraph = _interopRequireDefault(require("./components/Paragraph/Paragraph"));
|
|
543
|
+
var _Parameter = _interopRequireDefault(require("./components/Parameter/Parameter"));
|
|
544
|
+
var _ParameterDescription = _interopRequireDefault(require("./components/Parameter/components/ParameterDescription"));
|
|
531
545
|
var _Preloader = _interopRequireDefault(require("./components/Preloader/Preloader"));
|
|
532
546
|
var _PriceBadge = _interopRequireDefault(require("./components/Badges/PriceBadge/PriceBadge"));
|
|
533
547
|
var _PromoBadge = _interopRequireDefault(require("./components/Badges/PromoBadge/PromoBadge"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"styles"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@babel/preset-env": "^7.8.6",
|
|
51
51
|
"@babel/preset-react": "^7.8.3",
|
|
52
52
|
"@babel/preset-typescript": "^7.8.3",
|
|
53
|
-
"@megafon/ui-icons": "^3.8.
|
|
53
|
+
"@megafon/ui-icons": "^3.8.1",
|
|
54
54
|
"@svgr/core": "^2.4.1",
|
|
55
55
|
"@testing-library/jest-dom": "^6.5.0",
|
|
56
56
|
"@testing-library/react": "^16.0.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@datepicker-react/hooks": "^2.7.0",
|
|
90
90
|
"@dnd-kit/core": "^6.1.0",
|
|
91
91
|
"@dnd-kit/sortable": "^8.0.0",
|
|
92
|
-
"@megafon/ui-helpers": "^4.0.
|
|
92
|
+
"@megafon/ui-helpers": "^4.0.1",
|
|
93
93
|
"@mona-health/react-input-mask": "^3.0.3",
|
|
94
94
|
"@popperjs/core": "^2.11.8",
|
|
95
95
|
"core-js": "^3.6.4",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"simplebar-react": "^3.2.5",
|
|
105
105
|
"swiper": "^11.1.1"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "8f7c745516c705fbacf35241c8470de2ce8be671"
|
|
108
108
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M29.1875 40.75L31.8125 30.9981L31.3925 30.5913C28.272 27.7768 24.2017 26.2481 20 26.3125C15.7967 26.253 11.7267 27.7863 8.6075 30.6044L8.1875 30.9981L10.8125 40.75H29.1875Z" />
|
|
3
|
-
<path d="M12.125 15.8125C12.125 17.37 12.5869 18.8926 13.4522 20.1876C14.3175 21.4827 15.5474 22.492 16.9864 23.0881C18.4253 23.6841 20.0087 23.84 21.5363 23.5362C23.0639 23.2323 24.4671 22.4823 25.5685 21.381C26.6698 20.2796 27.4198 18.8764 27.7237 17.3488C28.0275 15.8212 27.8716 14.2378 27.2756 12.7989C26.6795 11.3599 25.6702 10.13 24.3751 9.26468C23.0801 8.39936 21.5575 7.9375 20 7.9375C17.9114 7.9375 15.9084 8.76719 14.4315 10.244C12.9547 11.7209 12.125 13.7239 12.125 15.8125Z" />
|
|
4
|
-
</svg>
|
package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/attach.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M25.5379 8.29708C24.5936 7.29955 23.338 6.75022 22.0025 6.75022C20.6671 6.75022 19.4115 7.29955 18.4671 8.29708L10.5856 16.6223C9.41593 17.8577 9.41593 19.868 10.5856 21.1036C11.7553 22.3391 13.6585 22.339 14.8282 21.1035L20.018 15.6215C20.4085 15.209 20.4085 14.5402 20.018 14.1277C19.6276 13.7152 18.9944 13.7152 18.6038 14.1277L13.414 19.6097C13.0242 20.0217 12.3897 20.0216 11.9998 19.6098C11.6099 19.1979 11.6099 18.5278 11.9997 18.116L19.8813 9.79092C20.4479 9.19244 21.2012 8.86281 22.0025 8.86281C22.8039 8.86281 23.5572 9.19244 24.1237 9.79092C25.2934 11.0265 25.2934 13.0367 24.1239 14.2723L15.5353 23.3442C13.5857 25.4033 10.4138 25.4033 8.46443 23.3442C7.52006 22.3467 6.99994 21.0205 6.99994 19.6098C6.99994 18.1991 7.52006 16.8728 8.46443 15.8753L17.0528 6.80324C17.4434 6.39074 17.4434 5.72198 17.0528 5.30948C16.6624 4.89704 16.0292 4.89697 15.6387 5.30948L7.05027 14.3815C5.72811 15.778 5 17.6348 5 19.6098C5 21.5848 5.72811 23.4416 7.05027 24.838C8.41503 26.2796 10.2071 27.0003 11.9998 27.0001C13.7921 27 15.5849 26.2793 16.9494 24.838L25.538 15.766C27.4874 13.7068 27.4873 10.3563 25.5379 8.29708Z" fill="#999999"/>
|
|
3
|
-
</svg>
|
package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/excel.svg
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8 3C8 2.44772 8.44772 2 9 2H19V9H8V3Z" fill="#50A36D"/>
|
|
3
|
-
<rect x="8" y="9" width="11" height="7" fill="#387947"/>
|
|
4
|
-
<rect x="8" y="16" width="11" height="7" fill="#2D5A3A"/>
|
|
5
|
-
<path d="M8 23H30V29C30 29.5523 29.5523 30 29 30H9C8.44772 30 8 29.5523 8 29V23Z" fill="#2D5A3A"/>
|
|
6
|
-
<path d="M19 2H29C29.5523 2 30 2.44772 30 3V9H19V2Z" fill="#63C087"/>
|
|
7
|
-
<rect x="19" y="9" width="11" height="7" fill="#4EA06B"/>
|
|
8
|
-
<rect x="19" y="16" width="11" height="7" fill="#387947"/>
|
|
9
|
-
<g filter="url(#filter0_d_96_3911)">
|
|
10
|
-
<rect x="2" y="8" width="16" height="16" rx="1" fill="#3B7F4C"/>
|
|
11
|
-
</g>
|
|
12
|
-
<path d="M6.70532 19.575L8.97532 15.905L6.87532 12.425H8.70532L10.0653 14.805L11.4153 12.425H13.0753L11.0353 15.855L13.2953 19.575H11.4553L9.90532 16.915L8.36532 19.575H6.70532Z" fill="white"/>
|
|
13
|
-
<defs>
|
|
14
|
-
<filter id="filter0_d_96_3911" x="1" y="7" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
15
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
16
|
-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
17
|
-
<feOffset dx="1" dy="1"/>
|
|
18
|
-
<feGaussianBlur stdDeviation="1"/>
|
|
19
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
20
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
21
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_96_3911"/>
|
|
22
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_96_3911" result="shape"/>
|
|
23
|
-
</filter>
|
|
24
|
-
</defs>
|
|
25
|
-
</svg>
|
package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/image.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M5.21016 2.05792H26.7884C28.5277 2.05792 29.9421 3.56629 29.9421 5.42396V26.5798C29.9421 28.4353 28.5277 29.9421 26.7884 29.9421H5.21026C3.47091 29.9421 2.05798 28.4353 2.05798 26.5798V5.42396C2.05789 3.56629 3.47082 2.05792 5.21016 2.05792ZM11.9108 7.23896C10.2287 7.23896 8.86462 8.51916 8.86462 10.3134C8.86462 12.1077 10.2288 13.2587 11.9108 13.2587C13.5933 13.2587 14.9569 12.1077 14.9569 10.3134C14.9569 8.51916 13.5933 7.23896 11.9108 7.23896ZM6.19922 26.8321H25.3647C26.206 26.8321 26.5807 26.1828 26.2014 25.3817L21.7584 15.1297C21.3797 14.3287 20.2313 14.417 19.72 15.1297L14.1051 21.5044C13.5938 22.2171 12.8943 22.1377 12.0748 21.7267L9.26358 20.234C8.85583 19.9547 8.09257 19.6905 7.61027 20.4255L5.54891 25.4997C5.06754 26.2358 5.35793 26.8321 6.19922 26.8321Z" fill="#D8D8D8"/>
|
|
3
|
-
</svg>
|
package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/pdf.svg
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<circle cx="16" cy="16" r="14" fill="#BA2F26"/>
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.6702 13.5391C15.7712 13.3131 15.8713 13.0747 15.9652 12.8312C16.0838 12.5287 16.189 12.2208 16.2806 11.9087C16.4506 11.3209 16.5306 10.812 16.4942 10.382C16.3634 8.87175 15.5365 7.90607 14.3914 8.00725C13.2462 8.10843 12.5952 9.20505 12.726 10.7153C12.7609 11.1096 12.9047 11.553 13.1358 12.05C13.2608 12.3178 13.409 12.5946 13.5761 12.8788C13.7695 13.2076 13.9752 13.5286 14.1928 13.841C14.1459 13.9648 14.0987 14.0884 14.0513 14.212C13.6473 15.2755 13.2322 16.3344 12.8059 17.3888C12.5714 17.9745 12.3252 18.5553 12.0675 19.1307C11.8376 19.1747 11.5997 19.2254 11.3599 19.2829C11.0511 19.3572 10.7456 19.4456 10.4444 19.5478C9.87473 19.7442 9.41987 19.9689 9.09725 20.2471C7.96373 21.2232 7.66582 22.4701 8.40406 23.3718C9.14376 24.2735 10.395 24.1902 11.5271 23.2141C11.8235 22.9581 12.0953 22.5832 12.3598 22.1041C12.5022 21.8466 12.6388 21.5625 12.771 21.2604C12.9122 20.9336 13.0418 20.6016 13.1596 20.2653C14.377 19.8815 15.6478 19.5384 16.9099 19.2398C17.3582 19.1337 17.8077 19.0333 18.2584 18.9387C18.2765 18.9551 18.2954 18.9721 18.3151 18.9898C18.5287 19.1802 18.7613 19.3767 19.0025 19.5701C19.267 19.7784 19.5257 19.9674 19.78 20.1325C20.2857 20.4629 20.742 20.6831 21.1562 20.7649C22.6094 21.0536 23.743 20.506 23.9653 19.3514C24.1862 18.1967 23.336 17.2534 21.8828 16.9662C21.5021 16.8903 21.0472 16.9096 20.5168 17.0004C20.2319 17.0495 19.9311 17.1194 19.6172 17.2043C19.281 17.2967 18.9482 17.4014 18.6195 17.5184C18.2613 17.168 17.9225 16.7974 17.6045 16.4082C16.8741 15.5149 16.2266 14.5544 15.6702 13.5391ZM17.1922 17.8657C17.0038 17.6599 16.8186 17.4461 16.6366 17.2251C16.0626 16.5275 15.5445 15.7887 15.0843 15.0449C14.7903 15.8131 14.4906 16.5791 14.185 17.3426L13.97 17.8738C13.8355 18.2045 13.707 18.5152 13.585 18.8043C14.5895 18.5053 15.6022 18.2362 16.6221 17.9973C16.8119 17.9525 17.002 17.9086 17.1922 17.8657ZM13.9816 10.6037C13.999 10.821 14.1007 11.1334 14.2751 11.5054C14.3763 11.7225 14.7432 12.3714 14.7769 12.431L14.7805 12.4323C14.7969 12.3849 15.0004 11.7971 15.0715 11.5515C15.2008 11.1022 15.259 10.7317 15.2386 10.4921C15.1631 9.61275 14.8506 9.24671 14.5018 9.27796C14.1516 9.30921 13.9046 9.72583 13.9816 10.6037ZM10.7176 22.2261C10.8804 22.0862 11.0722 21.8199 11.2698 21.4628C11.3905 21.2425 11.7247 20.5045 11.7247 20.5045C11.7247 20.5045 11.0984 20.6831 10.8513 20.7679C10.4153 20.9167 10.0869 21.0804 9.90671 21.2351C9.24548 21.8035 9.13358 22.2752 9.35738 22.5504C9.58409 22.8257 10.0578 22.7945 10.7176 22.2261ZM21.6401 18.2309C21.4323 18.1893 21.1111 18.2027 20.713 18.2711H20.7144C20.4717 18.3128 19.7015 18.5107 19.7015 18.5107C19.7015 18.5107 20.2305 18.899 20.4499 19.0419C20.8365 19.2933 21.1664 19.454 21.3989 19.4987C22.2461 19.6668 22.6748 19.4615 22.7417 19.1088C22.81 18.7562 22.4874 18.3991 21.6401 18.2309Z" fill="white"/>
|
|
4
|
-
</svg>
|
package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/power.svg
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<circle cx="17" cy="16" r="13" fill="#C45A3B"/>
|
|
3
|
-
<path d="M30 16C30 14.2928 29.6637 12.6023 29.0104 11.0251C28.3571 9.44788 27.3995 8.01477 26.1924 6.80761C24.9852 5.60045 23.5521 4.64288 21.9749 3.98957C20.3977 3.33625 18.7072 3 17 3L17 16H30Z" fill="#F19473"/>
|
|
4
|
-
<path d="M17 3C15.2928 3 13.6023 3.33625 12.0251 3.98957C10.4479 4.64288 9.01477 5.60045 7.80761 6.80761C6.60045 8.01477 5.64288 9.44788 4.98957 11.0251C4.33625 12.6023 4 14.2928 4 16L17 16V3Z" fill="#DE7351"/>
|
|
5
|
-
<g filter="url(#filter0_d_96_3928)">
|
|
6
|
-
<rect x="2" y="8" width="16" height="16" rx="1" fill="#B6472B"/>
|
|
7
|
-
</g>
|
|
8
|
-
<path d="M7.3999 19.575V12.425H9.8699C11.6099 12.425 12.5999 13.195 12.5999 14.705V14.745C12.5999 16.255 11.5499 16.975 9.9199 16.975H9.0099V19.575H7.3999ZM9.0099 15.845H9.8299C10.6199 15.845 11.0399 15.465 11.0399 14.755V14.715C11.0399 13.955 10.5999 13.655 9.8299 13.655H9.0099V15.845Z" fill="white"/>
|
|
9
|
-
<defs>
|
|
10
|
-
<filter id="filter0_d_96_3928" x="1" y="7" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
11
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
12
|
-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
13
|
-
<feOffset dx="1" dy="1"/>
|
|
14
|
-
<feGaussianBlur stdDeviation="1"/>
|
|
15
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
16
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
17
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_96_3928"/>
|
|
18
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_96_3928" result="shape"/>
|
|
19
|
-
</filter>
|
|
20
|
-
</defs>
|
|
21
|
-
</svg>
|
package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/word.svg
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8 3C8 2.44772 8.44772 2 9 2H29C29.5523 2 30 2.44772 30 3V9H8V3Z" fill="#5BA5E8"/>
|
|
3
|
-
<rect x="8" y="9" width="22" height="7" fill="#407DCD"/>
|
|
4
|
-
<rect x="8" y="16" width="22" height="7" fill="#295CB7"/>
|
|
5
|
-
<path d="M8 23H30V29C30 29.5523 29.5523 30 29 30H9C8.44772 30 8 29.5523 8 29V23Z" fill="#1B418C"/>
|
|
6
|
-
<g filter="url(#filter0_d_532_5821)">
|
|
7
|
-
<rect x="2" y="8" width="16" height="16" rx="1" fill="#2C62BB"/>
|
|
8
|
-
</g>
|
|
9
|
-
<path d="M7.09498 19.575L5.35498 12.425H6.99498L8.11498 17.365L9.33498 12.425H10.715L11.985 17.395L13.145 12.425H14.645L12.905 19.575H11.255L9.96498 14.635L8.65498 19.575H7.09498Z" fill="white"/>
|
|
10
|
-
<defs>
|
|
11
|
-
<filter id="filter0_d_532_5821" x="1" y="7" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
12
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
13
|
-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
14
|
-
<feOffset dx="1" dy="1"/>
|
|
15
|
-
<feGaussianBlur stdDeviation="1"/>
|
|
16
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
17
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
18
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_532_5821"/>
|
|
19
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_532_5821" result="shape"/>
|
|
20
|
-
</filter>
|
|
21
|
-
</defs>
|
|
22
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M29.1875 40.75L31.8125 30.9981L31.3925 30.5913C28.272 27.7768 24.2017 26.2481 20 26.3125C15.7967 26.253 11.7267 27.7863 8.6075 30.6044L8.1875 30.9981L10.8125 40.75H29.1875Z" />
|
|
3
|
-
<path d="M12.125 15.8125C12.125 17.37 12.5869 18.8926 13.4522 20.1876C14.3175 21.4827 15.5474 22.492 16.9864 23.0881C18.4253 23.6841 20.0087 23.84 21.5363 23.5362C23.0639 23.2323 24.4671 22.4823 25.5685 21.381C26.6698 20.2796 27.4198 18.8764 27.7237 17.3488C28.0275 15.8212 27.8716 14.2378 27.2756 12.7989C26.6795 11.3599 25.6702 10.13 24.3751 9.26468C23.0801 8.39936 21.5575 7.9375 20 7.9375C17.9114 7.9375 15.9084 8.76719 14.4315 10.244C12.9547 11.7209 12.125 13.7239 12.125 15.8125Z" />
|
|
4
|
-
</svg>
|
package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/attach.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M25.5379 8.29708C24.5936 7.29955 23.338 6.75022 22.0025 6.75022C20.6671 6.75022 19.4115 7.29955 18.4671 8.29708L10.5856 16.6223C9.41593 17.8577 9.41593 19.868 10.5856 21.1036C11.7553 22.3391 13.6585 22.339 14.8282 21.1035L20.018 15.6215C20.4085 15.209 20.4085 14.5402 20.018 14.1277C19.6276 13.7152 18.9944 13.7152 18.6038 14.1277L13.414 19.6097C13.0242 20.0217 12.3897 20.0216 11.9998 19.6098C11.6099 19.1979 11.6099 18.5278 11.9997 18.116L19.8813 9.79092C20.4479 9.19244 21.2012 8.86281 22.0025 8.86281C22.8039 8.86281 23.5572 9.19244 24.1237 9.79092C25.2934 11.0265 25.2934 13.0367 24.1239 14.2723L15.5353 23.3442C13.5857 25.4033 10.4138 25.4033 8.46443 23.3442C7.52006 22.3467 6.99994 21.0205 6.99994 19.6098C6.99994 18.1991 7.52006 16.8728 8.46443 15.8753L17.0528 6.80324C17.4434 6.39074 17.4434 5.72198 17.0528 5.30948C16.6624 4.89704 16.0292 4.89697 15.6387 5.30948L7.05027 14.3815C5.72811 15.778 5 17.6348 5 19.6098C5 21.5848 5.72811 23.4416 7.05027 24.838C8.41503 26.2796 10.2071 27.0003 11.9998 27.0001C13.7921 27 15.5849 26.2793 16.9494 24.838L25.538 15.766C27.4874 13.7068 27.4873 10.3563 25.5379 8.29708Z" fill="#999999"/>
|
|
3
|
-
</svg>
|
package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/excel.svg
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8 3C8 2.44772 8.44772 2 9 2H19V9H8V3Z" fill="#50A36D"/>
|
|
3
|
-
<rect x="8" y="9" width="11" height="7" fill="#387947"/>
|
|
4
|
-
<rect x="8" y="16" width="11" height="7" fill="#2D5A3A"/>
|
|
5
|
-
<path d="M8 23H30V29C30 29.5523 29.5523 30 29 30H9C8.44772 30 8 29.5523 8 29V23Z" fill="#2D5A3A"/>
|
|
6
|
-
<path d="M19 2H29C29.5523 2 30 2.44772 30 3V9H19V2Z" fill="#63C087"/>
|
|
7
|
-
<rect x="19" y="9" width="11" height="7" fill="#4EA06B"/>
|
|
8
|
-
<rect x="19" y="16" width="11" height="7" fill="#387947"/>
|
|
9
|
-
<g filter="url(#filter0_d_96_3911)">
|
|
10
|
-
<rect x="2" y="8" width="16" height="16" rx="1" fill="#3B7F4C"/>
|
|
11
|
-
</g>
|
|
12
|
-
<path d="M6.70532 19.575L8.97532 15.905L6.87532 12.425H8.70532L10.0653 14.805L11.4153 12.425H13.0753L11.0353 15.855L13.2953 19.575H11.4553L9.90532 16.915L8.36532 19.575H6.70532Z" fill="white"/>
|
|
13
|
-
<defs>
|
|
14
|
-
<filter id="filter0_d_96_3911" x="1" y="7" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
15
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
16
|
-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
17
|
-
<feOffset dx="1" dy="1"/>
|
|
18
|
-
<feGaussianBlur stdDeviation="1"/>
|
|
19
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
20
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
21
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_96_3911"/>
|
|
22
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_96_3911" result="shape"/>
|
|
23
|
-
</filter>
|
|
24
|
-
</defs>
|
|
25
|
-
</svg>
|
package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/image.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M5.21016 2.05792H26.7884C28.5277 2.05792 29.9421 3.56629 29.9421 5.42396V26.5798C29.9421 28.4353 28.5277 29.9421 26.7884 29.9421H5.21026C3.47091 29.9421 2.05798 28.4353 2.05798 26.5798V5.42396C2.05789 3.56629 3.47082 2.05792 5.21016 2.05792ZM11.9108 7.23896C10.2287 7.23896 8.86462 8.51916 8.86462 10.3134C8.86462 12.1077 10.2288 13.2587 11.9108 13.2587C13.5933 13.2587 14.9569 12.1077 14.9569 10.3134C14.9569 8.51916 13.5933 7.23896 11.9108 7.23896ZM6.19922 26.8321H25.3647C26.206 26.8321 26.5807 26.1828 26.2014 25.3817L21.7584 15.1297C21.3797 14.3287 20.2313 14.417 19.72 15.1297L14.1051 21.5044C13.5938 22.2171 12.8943 22.1377 12.0748 21.7267L9.26358 20.234C8.85583 19.9547 8.09257 19.6905 7.61027 20.4255L5.54891 25.4997C5.06754 26.2358 5.35793 26.8321 6.19922 26.8321Z" fill="#D8D8D8"/>
|
|
3
|
-
</svg>
|
package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/pdf.svg
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<circle cx="16" cy="16" r="14" fill="#BA2F26"/>
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.6702 13.5391C15.7712 13.3131 15.8713 13.0747 15.9652 12.8312C16.0838 12.5287 16.189 12.2208 16.2806 11.9087C16.4506 11.3209 16.5306 10.812 16.4942 10.382C16.3634 8.87175 15.5365 7.90607 14.3914 8.00725C13.2462 8.10843 12.5952 9.20505 12.726 10.7153C12.7609 11.1096 12.9047 11.553 13.1358 12.05C13.2608 12.3178 13.409 12.5946 13.5761 12.8788C13.7695 13.2076 13.9752 13.5286 14.1928 13.841C14.1459 13.9648 14.0987 14.0884 14.0513 14.212C13.6473 15.2755 13.2322 16.3344 12.8059 17.3888C12.5714 17.9745 12.3252 18.5553 12.0675 19.1307C11.8376 19.1747 11.5997 19.2254 11.3599 19.2829C11.0511 19.3572 10.7456 19.4456 10.4444 19.5478C9.87473 19.7442 9.41987 19.9689 9.09725 20.2471C7.96373 21.2232 7.66582 22.4701 8.40406 23.3718C9.14376 24.2735 10.395 24.1902 11.5271 23.2141C11.8235 22.9581 12.0953 22.5832 12.3598 22.1041C12.5022 21.8466 12.6388 21.5625 12.771 21.2604C12.9122 20.9336 13.0418 20.6016 13.1596 20.2653C14.377 19.8815 15.6478 19.5384 16.9099 19.2398C17.3582 19.1337 17.8077 19.0333 18.2584 18.9387C18.2765 18.9551 18.2954 18.9721 18.3151 18.9898C18.5287 19.1802 18.7613 19.3767 19.0025 19.5701C19.267 19.7784 19.5257 19.9674 19.78 20.1325C20.2857 20.4629 20.742 20.6831 21.1562 20.7649C22.6094 21.0536 23.743 20.506 23.9653 19.3514C24.1862 18.1967 23.336 17.2534 21.8828 16.9662C21.5021 16.8903 21.0472 16.9096 20.5168 17.0004C20.2319 17.0495 19.9311 17.1194 19.6172 17.2043C19.281 17.2967 18.9482 17.4014 18.6195 17.5184C18.2613 17.168 17.9225 16.7974 17.6045 16.4082C16.8741 15.5149 16.2266 14.5544 15.6702 13.5391ZM17.1922 17.8657C17.0038 17.6599 16.8186 17.4461 16.6366 17.2251C16.0626 16.5275 15.5445 15.7887 15.0843 15.0449C14.7903 15.8131 14.4906 16.5791 14.185 17.3426L13.97 17.8738C13.8355 18.2045 13.707 18.5152 13.585 18.8043C14.5895 18.5053 15.6022 18.2362 16.6221 17.9973C16.8119 17.9525 17.002 17.9086 17.1922 17.8657ZM13.9816 10.6037C13.999 10.821 14.1007 11.1334 14.2751 11.5054C14.3763 11.7225 14.7432 12.3714 14.7769 12.431L14.7805 12.4323C14.7969 12.3849 15.0004 11.7971 15.0715 11.5515C15.2008 11.1022 15.259 10.7317 15.2386 10.4921C15.1631 9.61275 14.8506 9.24671 14.5018 9.27796C14.1516 9.30921 13.9046 9.72583 13.9816 10.6037ZM10.7176 22.2261C10.8804 22.0862 11.0722 21.8199 11.2698 21.4628C11.3905 21.2425 11.7247 20.5045 11.7247 20.5045C11.7247 20.5045 11.0984 20.6831 10.8513 20.7679C10.4153 20.9167 10.0869 21.0804 9.90671 21.2351C9.24548 21.8035 9.13358 22.2752 9.35738 22.5504C9.58409 22.8257 10.0578 22.7945 10.7176 22.2261ZM21.6401 18.2309C21.4323 18.1893 21.1111 18.2027 20.713 18.2711H20.7144C20.4717 18.3128 19.7015 18.5107 19.7015 18.5107C19.7015 18.5107 20.2305 18.899 20.4499 19.0419C20.8365 19.2933 21.1664 19.454 21.3989 19.4987C22.2461 19.6668 22.6748 19.4615 22.7417 19.1088C22.81 18.7562 22.4874 18.3991 21.6401 18.2309Z" fill="white"/>
|
|
4
|
-
</svg>
|
package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/power.svg
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<circle cx="17" cy="16" r="13" fill="#C45A3B"/>
|
|
3
|
-
<path d="M30 16C30 14.2928 29.6637 12.6023 29.0104 11.0251C28.3571 9.44788 27.3995 8.01477 26.1924 6.80761C24.9852 5.60045 23.5521 4.64288 21.9749 3.98957C20.3977 3.33625 18.7072 3 17 3L17 16H30Z" fill="#F19473"/>
|
|
4
|
-
<path d="M17 3C15.2928 3 13.6023 3.33625 12.0251 3.98957C10.4479 4.64288 9.01477 5.60045 7.80761 6.80761C6.60045 8.01477 5.64288 9.44788 4.98957 11.0251C4.33625 12.6023 4 14.2928 4 16L17 16V3Z" fill="#DE7351"/>
|
|
5
|
-
<g filter="url(#filter0_d_96_3928)">
|
|
6
|
-
<rect x="2" y="8" width="16" height="16" rx="1" fill="#B6472B"/>
|
|
7
|
-
</g>
|
|
8
|
-
<path d="M7.3999 19.575V12.425H9.8699C11.6099 12.425 12.5999 13.195 12.5999 14.705V14.745C12.5999 16.255 11.5499 16.975 9.9199 16.975H9.0099V19.575H7.3999ZM9.0099 15.845H9.8299C10.6199 15.845 11.0399 15.465 11.0399 14.755V14.715C11.0399 13.955 10.5999 13.655 9.8299 13.655H9.0099V15.845Z" fill="white"/>
|
|
9
|
-
<defs>
|
|
10
|
-
<filter id="filter0_d_96_3928" x="1" y="7" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
11
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
12
|
-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
13
|
-
<feOffset dx="1" dy="1"/>
|
|
14
|
-
<feGaussianBlur stdDeviation="1"/>
|
|
15
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
16
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
17
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_96_3928"/>
|
|
18
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_96_3928" result="shape"/>
|
|
19
|
-
</filter>
|
|
20
|
-
</defs>
|
|
21
|
-
</svg>
|
package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/i/word.svg
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8 3C8 2.44772 8.44772 2 9 2H29C29.5523 2 30 2.44772 30 3V9H8V3Z" fill="#5BA5E8"/>
|
|
3
|
-
<rect x="8" y="9" width="22" height="7" fill="#407DCD"/>
|
|
4
|
-
<rect x="8" y="16" width="22" height="7" fill="#295CB7"/>
|
|
5
|
-
<path d="M8 23H30V29C30 29.5523 29.5523 30 29 30H9C8.44772 30 8 29.5523 8 29V23Z" fill="#1B418C"/>
|
|
6
|
-
<g filter="url(#filter0_d_532_5821)">
|
|
7
|
-
<rect x="2" y="8" width="16" height="16" rx="1" fill="#2C62BB"/>
|
|
8
|
-
</g>
|
|
9
|
-
<path d="M7.09498 19.575L5.35498 12.425H6.99498L8.11498 17.365L9.33498 12.425H10.715L11.985 17.395L13.145 12.425H14.645L12.905 19.575H11.255L9.96498 14.635L8.65498 19.575H7.09498Z" fill="white"/>
|
|
10
|
-
<defs>
|
|
11
|
-
<filter id="filter0_d_532_5821" x="1" y="7" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
12
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
13
|
-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
14
|
-
<feOffset dx="1" dy="1"/>
|
|
15
|
-
<feGaussianBlur stdDeviation="1"/>
|
|
16
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
17
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
18
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_532_5821"/>
|
|
19
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_532_5821" result="shape"/>
|
|
20
|
-
</filter>
|
|
21
|
-
</defs>
|
|
22
|
-
</svg>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|