@itcase/ui 1.8.57 → 1.8.60
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/{Avatar_cjs_CxyEa4gB.js → Avatar_cjs_-cKfA1OW.js} +28 -3
- package/dist/{Avatar_es_DQTyqtKx.js → Avatar_es_CSKFNChm.js} +28 -3
- package/dist/{DropdownItem_cjs_BtL83PeZ.js → DropdownItem_cjs_DdjN_gRH.js} +3 -3
- package/dist/{DropdownItem_es_BK2bacxA.js → DropdownItem_es_DfEoMbef.js} +3 -3
- package/dist/cjs/components/Accordion.js +7 -7
- package/dist/cjs/components/Avatar.js +1 -1
- package/dist/cjs/components/AvatarStack.js +1 -1
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Logo.js +3 -3
- package/dist/cjs/components/MenuItem.js +18 -4
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/cjs/components/Response.js +8 -16
- package/dist/cjs/hoc/urlWithAssetPrefix.js +3 -4
- package/dist/components/Accordion.js +7 -7
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarStack.js +1 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Logo.js +3 -3
- package/dist/components/MenuItem.js +20 -6
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Response.js +8 -16
- package/dist/css/components/Avatar/Avatar.css +0 -22
- package/dist/css/components/MenuItem/MenuItem.css +2 -1
- package/dist/css/components/Swiper/Swiper.css +3 -1
- package/dist/css/styles/align/align_horizontal-reverse.css +20 -5
- package/dist/css/styles/align/align_horizontal.css +24 -8
- package/dist/css/styles/align/align_vertical-reverse.css +19 -7
- package/dist/css/styles/align/align_vertical.css +22 -7
- package/dist/hoc/urlWithAssetPrefix.js +3 -4
- package/dist/stories/Overview.mdx +1 -1
- package/dist/stories/Playground.mdx +1 -1
- package/dist/types/components/Accordion/appearance/accordionSize.d.ts +7 -7
- package/dist/types/components/Avatar/appearance/avatarShape.d.ts +25 -0
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -1
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React, { useRef, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -143,6 +143,7 @@ var menuItemAppearanceSurface = {
|
|
|
143
143
|
fillActive: 'surfaceHover',
|
|
144
144
|
fillActiveHover: 'surfaceHover',
|
|
145
145
|
fillHover: 'surfaceHover',
|
|
146
|
+
labelTextHoverColor: 'accentTextSecondary',
|
|
146
147
|
labelTextColor: 'surfaceTextPrimary',
|
|
147
148
|
borderColor: 'surfaceBorderQuaternary',
|
|
148
149
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
@@ -179,20 +180,33 @@ var menuItemConfig = {
|
|
|
179
180
|
},
|
|
180
181
|
};
|
|
181
182
|
function MenuItem(props) {
|
|
182
|
-
var className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, href = props.href, link = props.link, LinkComponent = props.LinkComponent, rel = props.rel, target = props.target, underline = props.underline, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick,
|
|
183
|
+
var className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, href = props.href, link = props.link, LinkComponent = props.LinkComponent, rel = props.rel, showTooltip = props.showTooltip, target = props.target, tooltipAppearance = props.tooltipAppearance, underline = props.underline, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick, children = props.children;
|
|
184
|
+
var tooltipRef = useRef(null);
|
|
185
|
+
var onMouseEnter = useCallback(function () {
|
|
186
|
+
var _a;
|
|
187
|
+
if (showTooltip) {
|
|
188
|
+
(_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.openTooltip();
|
|
189
|
+
}
|
|
190
|
+
}, [showTooltip]);
|
|
191
|
+
var onMouseLeave = useCallback(function () {
|
|
192
|
+
var _a;
|
|
193
|
+
if (showTooltip) {
|
|
194
|
+
(_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.closeTooltip();
|
|
195
|
+
}
|
|
196
|
+
}, [showTooltip]);
|
|
183
197
|
var appearanceConfig = useAppearanceConfig(appearance, menuItemConfig);
|
|
184
198
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
185
|
-
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, borderColorClass = propsGenerator.borderColorClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass,
|
|
199
|
+
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, borderColorClass = propsGenerator.borderColorClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, tooltipFill = propsGenerator.tooltipFill, tooltipShapeStrength = propsGenerator.tooltipShapeStrength, tooltipText = propsGenerator.tooltipText, tooltipTextColor = propsGenerator.tooltipTextColor, tooltipTitleTextColor = propsGenerator.tooltipTitleTextColor, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
186
200
|
// @ts-expect-error
|
|
187
201
|
var menuItem = useStyles(props).styles;
|
|
188
|
-
return (
|
|
202
|
+
return (jsxs("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, sizeClass && "menu-item_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), !isActive
|
|
189
203
|
? fillClass && "fill_".concat(fillClass)
|
|
190
204
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
191
205
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
192
206
|
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
193
207
|
? "shape-strength_".concat(shapeStrengthClass)
|
|
194
208
|
: shapeClass === 'rounded' && 'shape-strength_default', typeClass && "menu-item_type_".concat(typeClass), widthClass && "width_".concat(widthClass), justifyContentClass &&
|
|
195
|
-
"menu-item_justify-content_".concat(justifyContentClass), isSkeleton && "menu-item_skeleton"), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorDisabled: labelTextColorDisabled, textColorHover: labelTextHoverColor, textStyle: labelStyle, textWeight: labelWeight, textWrap: labelWrap, isDisabled: isDisabled, isActive: isActive, children: label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after, jsx(Tooltip, { className: "menu-item__tooltip", appearance: tooltipAppearance, minWidth: "auto", fill: tooltipFill, left: "100%", zIndex: "100", titleTextColor: tooltipTitleTextColor, text: tooltipText, textColor: tooltipTextColor, centering: "vertical", shapeStrength: tooltipShapeStrength })] })
|
|
209
|
+
"menu-item_justify-content_".concat(justifyContentClass), isSkeleton && "menu-item_skeleton"), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorDisabled: labelTextColorDisabled, textColorHover: labelTextHoverColor, textStyle: labelStyle, textWeight: labelWeight, textWrap: labelWrap, isDisabled: isDisabled, isActive: isActive, children: label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }), showTooltip && (jsx(Tooltip, { className: "menu-item__tooltip", appearance: tooltipAppearance, minWidth: "auto", fill: tooltipFill, left: "100%", zIndex: "100", titleTextColor: tooltipTitleTextColor, text: tooltipText, textColor: tooltipTextColor, centering: "vertical", ref: tooltipRef, shapeStrength: tooltipShapeStrength }))] }));
|
|
196
210
|
}
|
|
197
211
|
|
|
198
212
|
export { MenuItem, menuItemAppearance, menuItemConfig };
|
|
@@ -6,7 +6,7 @@ import ReactPaginate from 'react-paginate';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { D as Dropdown, a as DropdownItem } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_DfEoMbef.js';
|
|
10
10
|
import { I as Icon } from '../Icon_es_BGR9vYtq.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BdFAdf7M.js';
|
|
12
12
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -2,7 +2,6 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import SVG from 'react-inlinesvg';
|
|
6
5
|
import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
7
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -24,6 +23,7 @@ import '../utils/setViewportProperty.js';
|
|
|
24
23
|
import 'lodash/maxBy';
|
|
25
24
|
import '../hooks/useStyles/styleAttributes.js';
|
|
26
25
|
import '../Icon_es_BGR9vYtq.js';
|
|
26
|
+
import 'react-inlinesvg';
|
|
27
27
|
import '../Link_es_BnUIX0QT.js';
|
|
28
28
|
import '../Loader_es_D_NFpg8C.js';
|
|
29
29
|
|
|
@@ -165,14 +165,13 @@ var Response = urlWithAssetPrefix(function Response(props) {
|
|
|
165
165
|
return jsx(Image, __assign({}, sizes));
|
|
166
166
|
}
|
|
167
167
|
if (src) {
|
|
168
|
-
if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
168
|
+
// if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
|
|
169
|
+
// if (svgFillClass) {
|
|
170
|
+
// return <SVG src={src} preProcessor={removeFillStroke} />
|
|
171
|
+
// } else {
|
|
172
|
+
// return <SVG src={src} />
|
|
173
|
+
// }
|
|
174
|
+
// }
|
|
176
175
|
return jsx("img", { src: src });
|
|
177
176
|
}
|
|
178
177
|
return null;
|
|
@@ -185,12 +184,5 @@ var Response = urlWithAssetPrefix(function Response(props) {
|
|
|
185
184
|
secondaryButton ||
|
|
186
185
|
appearanceConfig) && (jsxs(Group, { className: "response__button", width: "fill", children: [primaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: primaryButtonAppearance, width: primaryButtonWidth || 'fill', size: primaryButtonSize, fill: primaryButtonFill, fillHover: primaryButtonFillHover, label: primaryButtonLabel, labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize, shape: primaryButtonShape, before: primaryButtonBefore, after: primaryButtonAfter, onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: secondaryButtonAppearance, width: secondaryButtonWidth || 'fill', size: secondaryButtonSize, fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, label: secondaryButtonLabel, labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize, shape: secondaryButtonShape, before: secondaryButtonBefore, after: secondaryButtonAfter, onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
|
|
187
186
|
});
|
|
188
|
-
var removeFillStroke = function (code) {
|
|
189
|
-
return code
|
|
190
|
-
.replace(/fill=".*?"/g, 'fill=""')
|
|
191
|
-
.replace(/fill='.*?'/g, "fill=''")
|
|
192
|
-
.replace(/stroke=".*?"/g, 'stroke=""')
|
|
193
|
-
.replace(/stroke='.*?'/g, "stroke=''");
|
|
194
|
-
};
|
|
195
187
|
|
|
196
188
|
export { Response, responseAppearance, responseConfig };
|
|
@@ -50,28 +50,6 @@
|
|
|
50
50
|
background-position: -200%;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
.avatar {
|
|
54
|
-
&_shape {
|
|
55
|
-
&_circular {
|
|
56
|
-
^^&__image,
|
|
57
|
-
^^&__wrapper {
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
&_geometric {
|
|
62
|
-
^^&__image,
|
|
63
|
-
^^&__wrapper {
|
|
64
|
-
border-radius: 0;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
&_rounded {
|
|
68
|
-
^^&__image,
|
|
69
|
-
^^&__wrapper {
|
|
70
|
-
border-radius: var(--avatar-shape-rounded);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
53
|
/* stylelint-disable prettier/prettier */
|
|
76
54
|
.avatar {
|
|
77
55
|
&_size {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.menu-item {
|
|
2
|
+
position: relative;
|
|
2
3
|
display: flex;
|
|
3
4
|
align-items: center;
|
|
4
5
|
&:hover {
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
}
|
|
11
12
|
&__wrapper {
|
|
12
13
|
width: 100%;
|
|
13
|
-
position: relative;
|
|
14
|
+
position: relative !important;
|
|
14
15
|
display: flex;
|
|
15
16
|
align-items: center;
|
|
16
17
|
align-content: center;
|
|
@@ -902,11 +902,13 @@ div.swiper-block__item {
|
|
|
902
902
|
|
|
903
903
|
.swiper-block {
|
|
904
904
|
&&_type_step {
|
|
905
|
-
min-height: 100vh;
|
|
906
905
|
display: flex;
|
|
907
906
|
align-items: center;
|
|
907
|
+
flex-grow: 1;
|
|
908
908
|
^&__swiper {
|
|
909
|
+
width: 100%;
|
|
909
910
|
height: 100%;
|
|
911
|
+
align-items: center;
|
|
910
912
|
display: flex;
|
|
911
913
|
}
|
|
912
914
|
& .swiper-wrapper {
|
|
@@ -1,49 +1,64 @@
|
|
|
1
|
+
%align-horizontal-reverse {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row-reverse;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.align {
|
|
2
7
|
&_horizontal-reverse {
|
|
3
8
|
display: flex;
|
|
4
9
|
flex-direction: row-reverse;
|
|
5
|
-
|
|
10
|
+
@extend %align-horizontal-reverse;
|
|
11
|
+
&-top {
|
|
6
12
|
&-left {
|
|
7
13
|
align-items: flex-start;
|
|
14
|
+
@extend %align-horizontal-reverse;
|
|
8
15
|
}
|
|
9
16
|
&-center {
|
|
10
17
|
text-align: center;
|
|
11
18
|
justify-content: center;
|
|
12
19
|
align-items: flex-start;
|
|
20
|
+
@extend %align-horizontal-reverse;
|
|
13
21
|
}
|
|
14
22
|
&-right {
|
|
15
23
|
text-align: right;
|
|
16
24
|
justify-content: flex-end;
|
|
17
25
|
align-items: flex-start;
|
|
26
|
+
@extend %align-horizontal-reverse;
|
|
18
27
|
}
|
|
19
28
|
}
|
|
20
|
-
|
|
29
|
+
&-left {
|
|
21
30
|
align-items: center;
|
|
31
|
+
@extend %align-horizontal-reverse;
|
|
22
32
|
}
|
|
23
|
-
|
|
33
|
+
&-center {
|
|
24
34
|
text-align: center;
|
|
25
35
|
justify-content: center;
|
|
26
36
|
align-items: center;
|
|
37
|
+
@extend %align-horizontal-reverse;
|
|
27
38
|
}
|
|
28
|
-
|
|
39
|
+
&-right {
|
|
29
40
|
text-align: right;
|
|
30
41
|
justify-content: flex-end;
|
|
31
42
|
align-items: center;
|
|
43
|
+
@extend %align-horizontal-reverse;
|
|
32
44
|
}
|
|
33
|
-
|
|
45
|
+
&-bottom {
|
|
34
46
|
&-left {
|
|
35
47
|
flex-direction: row;
|
|
36
48
|
align-items: flex-end;
|
|
49
|
+
@extend %align-horizontal-reverse;
|
|
37
50
|
}
|
|
38
51
|
&-center {
|
|
39
52
|
text-align: center;
|
|
40
53
|
justify-content: center;
|
|
41
54
|
align-items: flex-end;
|
|
55
|
+
@extend %align-horizontal-reverse;
|
|
42
56
|
}
|
|
43
57
|
&-right {
|
|
44
58
|
text-align: right;
|
|
45
59
|
justify-content: flex-end;
|
|
46
60
|
align-items: flex-end;
|
|
61
|
+
@extend %align-horizontal-reverse;
|
|
47
62
|
}
|
|
48
63
|
}
|
|
49
64
|
}
|
|
@@ -1,63 +1,79 @@
|
|
|
1
|
+
%align-horizontal {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.align {
|
|
2
7
|
&_horizontal {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
&^&_top {
|
|
8
|
+
&_top {
|
|
9
|
+
@extend %align-horizontal;
|
|
6
10
|
align-items: flex-start;
|
|
7
11
|
&-left {
|
|
12
|
+
@extend %align-horizontal;
|
|
8
13
|
align-items: flex-start;
|
|
9
14
|
}
|
|
10
15
|
&-center {
|
|
16
|
+
@extend %align-horizontal;
|
|
11
17
|
text-align: center;
|
|
12
18
|
justify-content: center;
|
|
13
19
|
align-items: flex-start;
|
|
14
20
|
}
|
|
15
21
|
&-right {
|
|
22
|
+
@extend %align-horizontal;
|
|
16
23
|
text-align: right;
|
|
17
24
|
justify-content: flex-end;
|
|
18
25
|
align-items: flex-start;
|
|
19
26
|
}
|
|
20
27
|
&-auto {
|
|
28
|
+
@extend %align-horizontal;
|
|
21
29
|
text-align: right;
|
|
22
30
|
justify-content: space-between;
|
|
23
31
|
align-items: flex-start;
|
|
24
32
|
}
|
|
25
33
|
}
|
|
26
|
-
|
|
34
|
+
&-left {
|
|
35
|
+
@extend %align-horizontal;
|
|
27
36
|
align-items: center;
|
|
28
37
|
}
|
|
29
|
-
|
|
38
|
+
&-center {
|
|
39
|
+
@extend %align-horizontal;
|
|
30
40
|
text-align: center;
|
|
31
41
|
justify-content: center;
|
|
32
42
|
align-items: center;
|
|
33
43
|
&-auto {
|
|
44
|
+
@extend %align-horizontal;
|
|
34
45
|
text-align: center;
|
|
35
46
|
justify-content: space-between;
|
|
36
47
|
align-items: center;
|
|
37
48
|
}
|
|
38
49
|
}
|
|
39
|
-
|
|
50
|
+
&-right {
|
|
51
|
+
@extend %align-horizontal;
|
|
40
52
|
text-align: right;
|
|
41
53
|
justify-content: flex-end;
|
|
42
54
|
align-items: center;
|
|
43
55
|
}
|
|
44
|
-
|
|
56
|
+
&_bottom {
|
|
57
|
+
@extend %align-horizontal;
|
|
45
58
|
align-items: flex-end;
|
|
46
59
|
&-left {
|
|
47
|
-
|
|
60
|
+
@extend %align-horizontal;
|
|
48
61
|
align-items: flex-end;
|
|
49
62
|
}
|
|
50
63
|
&-center {
|
|
64
|
+
@extend %align-horizontal;
|
|
51
65
|
text-align: center;
|
|
52
66
|
justify-content: center;
|
|
53
67
|
align-items: flex-end;
|
|
54
68
|
}
|
|
55
69
|
&-right {
|
|
56
70
|
text-align: right;
|
|
71
|
+
@extend %align-horizontal;
|
|
57
72
|
justify-content: flex-end;
|
|
58
73
|
align-items: flex-end;
|
|
59
74
|
}
|
|
60
75
|
&-auto {
|
|
76
|
+
@extend %align-horizontal;
|
|
61
77
|
text-align: right;
|
|
62
78
|
justify-content: space-between;
|
|
63
79
|
align-items: flex-end;
|
|
@@ -1,45 +1,57 @@
|
|
|
1
|
+
%align-vertical-reverse {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column-reverse;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.align {
|
|
2
7
|
&_vertical-reverse {
|
|
3
|
-
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
&^&_top {
|
|
8
|
+
&-top {
|
|
6
9
|
&-left {
|
|
10
|
+
@extend %align-horizontal-reverse;
|
|
7
11
|
align-items: flex-start;
|
|
8
12
|
}
|
|
9
13
|
&-center {
|
|
14
|
+
@extend %align-horizontal-reverse;
|
|
10
15
|
text-align: center;
|
|
11
16
|
align-items: center;
|
|
12
17
|
}
|
|
13
18
|
&-right {
|
|
19
|
+
@extend %align-horizontal-reverse;
|
|
14
20
|
text-align: right;
|
|
15
21
|
align-items: flex-end;
|
|
16
22
|
}
|
|
17
23
|
}
|
|
18
|
-
|
|
24
|
+
&-left {
|
|
25
|
+
@extend %align-horizontal-reverse;
|
|
19
26
|
justify-content: center;
|
|
20
27
|
align-items: flex-start;
|
|
21
28
|
}
|
|
22
|
-
|
|
29
|
+
&-center {
|
|
30
|
+
@extend %align-horizontal-reverse;
|
|
23
31
|
text-align: center;
|
|
24
32
|
justify-content: center;
|
|
25
33
|
align-items: center;
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
&-right {
|
|
36
|
+
@extend %align-horizontal-reverse;
|
|
28
37
|
text-align: right;
|
|
29
38
|
justify-content: center;
|
|
30
39
|
align-items: flex-end;
|
|
31
40
|
}
|
|
32
|
-
|
|
41
|
+
&-bottom {
|
|
33
42
|
&-left {
|
|
43
|
+
@extend %align-horizontal-reverse;
|
|
34
44
|
justify-content: flex-end;
|
|
35
45
|
align-items: flex-start;
|
|
36
46
|
}
|
|
37
47
|
&-center {
|
|
48
|
+
@extend %align-horizontal-reverse;
|
|
38
49
|
text-align: center;
|
|
39
50
|
justify-content: flex-end;
|
|
40
51
|
align-items: center;
|
|
41
52
|
}
|
|
42
53
|
&-right {
|
|
54
|
+
@extend %align-horizontal-reverse;
|
|
43
55
|
text-align: right;
|
|
44
56
|
justify-content: flex-end;
|
|
45
57
|
align-items: flex-end;
|
|
@@ -1,60 +1,75 @@
|
|
|
1
|
+
%align-vertical {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.align {
|
|
2
7
|
&_vertical {
|
|
3
|
-
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
&^&_top {
|
|
8
|
+
&-top {
|
|
6
9
|
&-left {
|
|
10
|
+
@extend %align-vertical;
|
|
7
11
|
align-items: flex-start;
|
|
8
12
|
}
|
|
9
13
|
&-center {
|
|
14
|
+
@extend %align-vertical;
|
|
10
15
|
text-align: center;
|
|
11
16
|
align-items: center;
|
|
12
17
|
}
|
|
13
18
|
&-right {
|
|
19
|
+
@extend %align-vertical;
|
|
14
20
|
text-align: right;
|
|
15
21
|
align-items: flex-end;
|
|
16
22
|
}
|
|
17
23
|
&-auto {
|
|
24
|
+
@extend %align-vertical;
|
|
18
25
|
text-align: center;
|
|
19
26
|
justify-content: space-between;
|
|
20
27
|
align-items: center;
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
&-left {
|
|
31
|
+
@extend %align-vertical;
|
|
24
32
|
justify-content: center;
|
|
25
33
|
align-items: flex-start;
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
&-center {
|
|
36
|
+
@extend %align-vertical;
|
|
28
37
|
text-align: center;
|
|
29
38
|
justify-content: center;
|
|
30
39
|
align-items: center;
|
|
31
40
|
&-auto {
|
|
41
|
+
@extend %align-vertical;
|
|
32
42
|
text-align: center;
|
|
33
43
|
justify-content: space-between;
|
|
34
44
|
align-items: center;
|
|
35
45
|
}
|
|
36
46
|
}
|
|
37
|
-
|
|
47
|
+
&-right {
|
|
48
|
+
@extend %align-vertical;
|
|
38
49
|
text-align: right;
|
|
39
50
|
justify-content: center;
|
|
40
51
|
align-items: flex-end;
|
|
41
52
|
}
|
|
42
|
-
|
|
53
|
+
&-bottom {
|
|
43
54
|
&-left {
|
|
55
|
+
@extend %align-vertical;
|
|
44
56
|
justify-content: flex-end;
|
|
45
57
|
align-items: flex-start;
|
|
46
58
|
}
|
|
47
59
|
&-center {
|
|
60
|
+
@extend %align-vertical;
|
|
48
61
|
text-align: center;
|
|
49
62
|
justify-content: flex-end;
|
|
50
63
|
align-items: center;
|
|
51
64
|
}
|
|
52
65
|
&-right {
|
|
66
|
+
@extend %align-vertical;
|
|
53
67
|
text-align: right;
|
|
54
68
|
justify-content: flex-end;
|
|
55
69
|
align-items: flex-end;
|
|
56
70
|
}
|
|
57
71
|
&-auto {
|
|
72
|
+
@extend %align-vertical;
|
|
58
73
|
text-align: center;
|
|
59
74
|
justify-content: space-between;
|
|
60
75
|
align-items: center;
|
|
@@ -12,11 +12,10 @@ var urlWithAssetPrefix = function (WrappedComponent) {
|
|
|
12
12
|
var url = props[propKey];
|
|
13
13
|
if (url && typeof url === 'string') {
|
|
14
14
|
if (assetPrefix) {
|
|
15
|
-
var
|
|
16
|
-
var isNeedAssetPrefix = checkIsNeedAssetPrefix(cleanUrl, assetPrefix, ignorePathsList);
|
|
15
|
+
var isNeedAssetPrefix = checkIsNeedAssetPrefix(url, assetPrefix, ignorePathsList);
|
|
17
16
|
if (isNeedAssetPrefix) {
|
|
18
17
|
var prefixPath = formatURL(assetPrefix).slice(0, -1);
|
|
19
|
-
url = "".concat(prefixPath).concat(
|
|
18
|
+
url = "".concat(prefixPath).concat(url);
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
resultProps[propKey] = url;
|
|
@@ -50,7 +49,7 @@ var checkIsNeedAssetPrefix = function (url, assetPrefix, ignorePathsList) {
|
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
else {
|
|
53
|
-
if (url.startsWith(formatURL(urlPath))) {
|
|
52
|
+
if (formatURL(url).startsWith(formatURL(urlPath))) {
|
|
54
53
|
return false;
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -4,48 +4,48 @@ declare const accordionAppearanceSize: {
|
|
|
4
4
|
titleTextSize: string;
|
|
5
5
|
badgeAppearanceSize: string;
|
|
6
6
|
contentTextSize: string;
|
|
7
|
-
icon:
|
|
7
|
+
icon: string;
|
|
8
8
|
};
|
|
9
9
|
sizeXL: {
|
|
10
10
|
size: string;
|
|
11
11
|
titleTextSize: string;
|
|
12
12
|
badgeAppearanceSize: string;
|
|
13
13
|
contentTextSize: string;
|
|
14
|
-
icon:
|
|
14
|
+
icon: string;
|
|
15
15
|
};
|
|
16
16
|
sizeL: {
|
|
17
17
|
size: string;
|
|
18
18
|
titleTextSize: string;
|
|
19
19
|
badgeAppearanceSize: string;
|
|
20
|
-
icon:
|
|
20
|
+
icon: string;
|
|
21
21
|
};
|
|
22
22
|
sizeM: {
|
|
23
23
|
size: string;
|
|
24
24
|
titleTextSize: string;
|
|
25
25
|
badgeAppearanceSize: string;
|
|
26
26
|
contentTextSize: string;
|
|
27
|
-
icon:
|
|
27
|
+
icon: string;
|
|
28
28
|
};
|
|
29
29
|
sizeS: {
|
|
30
30
|
size: string;
|
|
31
31
|
titleTextSize: string;
|
|
32
32
|
badgeAppearanceSize: string;
|
|
33
33
|
contentTextSize: string;
|
|
34
|
-
icon:
|
|
34
|
+
icon: string;
|
|
35
35
|
};
|
|
36
36
|
sizeXS: {
|
|
37
37
|
size: string;
|
|
38
38
|
titleTextSize: string;
|
|
39
39
|
badgeAppearanceSize: string;
|
|
40
40
|
contentTextSize: string;
|
|
41
|
-
icon:
|
|
41
|
+
icon: string;
|
|
42
42
|
};
|
|
43
43
|
sizeXXS: {
|
|
44
44
|
size: string;
|
|
45
45
|
titleTextSize: string;
|
|
46
46
|
badgeAppearanceSize: string;
|
|
47
47
|
contentTextSize: string;
|
|
48
|
-
icon:
|
|
48
|
+
icon: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
export { accordionAppearanceSize };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const avatarAppearanceShape: {
|
|
2
|
+
circular: {
|
|
3
|
+
shape: string;
|
|
4
|
+
};
|
|
5
|
+
rounded: {
|
|
6
|
+
shape: string;
|
|
7
|
+
};
|
|
8
|
+
roundedL: {
|
|
9
|
+
shape: string;
|
|
10
|
+
shapeStrength: string;
|
|
11
|
+
};
|
|
12
|
+
roundedM: {
|
|
13
|
+
shape: string;
|
|
14
|
+
shapeStrength: string;
|
|
15
|
+
};
|
|
16
|
+
roundedS: {
|
|
17
|
+
shape: string;
|
|
18
|
+
shapeStrength: string;
|
|
19
|
+
};
|
|
20
|
+
roundedXL: {
|
|
21
|
+
shape: string;
|
|
22
|
+
shapeStrength: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export { avatarAppearanceShape };
|
|
@@ -55,6 +55,7 @@ export interface MenuItemProps extends MenuItemThemeColor, StyleAttributes {
|
|
|
55
55
|
label?: string;
|
|
56
56
|
link?: string;
|
|
57
57
|
rel?: string;
|
|
58
|
+
showTooltip: boolean;
|
|
58
59
|
style?: CSSProperties;
|
|
59
60
|
target?: string;
|
|
60
61
|
type?: string;
|
|
@@ -62,7 +63,6 @@ export interface MenuItemProps extends MenuItemThemeColor, StyleAttributes {
|
|
|
62
63
|
isHover?: boolean;
|
|
63
64
|
isSkeleton?: boolean;
|
|
64
65
|
onClick?: () => void;
|
|
65
|
-
onMouseEnter?: () => void;
|
|
66
66
|
set?: string;
|
|
67
67
|
}
|
|
68
68
|
export {};
|