@megafon/ui-core 8.3.0 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Banner/Banner.css +1 -1
- package/dist/es/components/Banner/Banner.d.ts +26 -0
- package/dist/es/components/Banner/Banner.js +25 -1
- package/dist/es/components/Banner/BannerDot.css +1 -1
- package/dist/es/components/Banner/BannerDot.d.ts +3 -0
- package/dist/es/components/Banner/BannerDot.js +23 -11
- package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -1
- package/dist/es/components/Modal/_ModalContent/ModalContent.js +10 -2
- package/dist/lib/components/Banner/Banner.css +1 -1
- package/dist/lib/components/Banner/Banner.d.ts +26 -0
- package/dist/lib/components/Banner/Banner.js +26 -2
- package/dist/lib/components/Banner/BannerDot.css +1 -1
- package/dist/lib/components/Banner/BannerDot.d.ts +3 -0
- package/dist/lib/components/Banner/BannerDot.js +23 -11
- package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -1
- package/dist/lib/components/Modal/_ModalContent/ModalContent.js +10 -2
- package/package.json +2 -2
- package/styles/colors.css +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-banner{position:relative}.mfui-banner .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-banner .mfui-banner__swiper-container{position:relative}.mfui-banner__swiper{overflow:hidden}.mfui-banner__slide{-ms-flex-negative:0;flex-shrink:0;height:500px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-banner__slide{height:420px}}@media screen and (min-width:1280px){.mfui-banner__slide{height:400px}}.mfui-banner__slide-content{border-right:1px solid transparent;margin-right:-1px}@media screen and (max-width:1023px){.mfui-banner__slide-content{height:100%}}.mfui-banner_auto-height .mfui-banner__slide{height:auto}.mfui-banner .mfui-banner__arrow{position:absolute;top:50%;-webkit-transition:scale .2s linear;transition:scale .2s linear;translate:0 -50%;z-index:10}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow{display:none}}.mfui-banner .mfui-banner__arrow_theme_white{height:64px;width:64px}@media screen and (max-width:1023px){.mfui-banner .mfui-banner__arrow_theme_white{display:none}}.mfui-banner .mfui-banner__arrow_prev{left:12px}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow_prev{left:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner .mfui-banner__arrow_prev{left:16px}}@media screen and (min-width:1280px){.mfui-banner .mfui-banner__arrow_prev{left:20px}}.mfui-banner .mfui-banner__arrow_next{right:12px}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow_next{right:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner .mfui-banner__arrow_next{right:16px}}@media screen and (min-width:1280px){.mfui-banner .mfui-banner__arrow_next{right:20px}}.mfui-banner .mfui-banner__arrow_prev.mfui-banner__arrow_theme_white{left:0;translate:-50% -50%}.mfui-banner .mfui-banner__arrow_next.mfui-banner__arrow_theme_white{right:0;translate:50% -50%}.mfui-banner_no-touch .mfui-banner__arrow_theme_white:hover{scale:1.25}.mfui-banner_no-touch .mfui-banner__arrow_theme_white:active{scale:1.125}.mfui-banner__pagination{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;left:50%;z-index:10;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:32px}.mfui-banner__pagination_bottom-offset{bottom:60px;left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner__pagination_bottom-offset{bottom:89px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-banner__pagination_bottom-offset{bottom:90px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-banner__pagination_bottom-offset{bottom:65px}}@media screen and (min-width:1440px){.mfui-banner__pagination_bottom-offset{bottom:72px}}.mfui-banner_margin-top{margin-top:24px}.mfui-banner_radius_rounded .mfui-banner__swiper{border-radius:24px}@media screen and (max-width:767px){.mfui-banner_show-next-slide .mfui-banner__swiper{border-radius:0;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:32px}.mfui-banner_show-next-slide .mfui-banner__slide-content{border-right:none;margin-right:0}.mfui-banner_show-next-slide.mfui-banner_radius_rounded .mfui-banner__slide-content{border-radius:24px}}.mfui-banner_background-color_green .mfui-banner__swiper{background-color:var(--brandGreen)}.mfui-banner_background-color_purple .mfui-banner__swiper{background-color:var(--brandPurple)}.mfui-banner_background-color_gradient .mfui-banner__swiper{background:-webkit-gradient(linear,right top,left top,from(#ada6ba),to(#f6f2f9));background:linear-gradient(270deg,#ada6ba,#f6f2f9)}.mfui-banner_background-color_light .mfui-banner__swiper{background-color:#f6f2f9}.mfui-banner_background-color_spbSky0 .mfui-banner__swiper{background-color:var(--spbSky0)}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-banner{position:relative}.mfui-banner .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-banner .mfui-banner__swiper-container{position:relative}.mfui-banner__swiper{overflow:hidden}.mfui-banner__slide{-ms-flex-negative:0;flex-shrink:0;height:500px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-banner__slide{height:420px}}@media screen and (min-width:1280px){.mfui-banner__slide{height:400px}}.mfui-banner__slide-content{border-right:1px solid transparent;margin-right:-1px}@media screen and (max-width:1023px){.mfui-banner__slide-content{height:100%}}.mfui-banner_auto-height .mfui-banner__slide{height:auto}.mfui-banner .mfui-banner__arrow{position:absolute;top:50%;-webkit-transition:scale .2s linear;transition:scale .2s linear;translate:0 -50%;z-index:10}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow{display:none}}.mfui-banner .mfui-banner__arrow_theme_white{height:64px;width:64px}@media screen and (max-width:1023px){.mfui-banner .mfui-banner__arrow_theme_white{display:none}}.mfui-banner .mfui-banner__arrow_prev{left:12px}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow_prev{left:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner .mfui-banner__arrow_prev{left:16px}}@media screen and (min-width:1280px){.mfui-banner .mfui-banner__arrow_prev{left:20px}}.mfui-banner .mfui-banner__arrow_next{right:12px}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow_next{right:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner .mfui-banner__arrow_next{right:16px}}@media screen and (min-width:1280px){.mfui-banner .mfui-banner__arrow_next{right:20px}}.mfui-banner .mfui-banner__arrow_prev.mfui-banner__arrow_theme_white{left:0;translate:-50% -50%}.mfui-banner .mfui-banner__arrow_next.mfui-banner__arrow_theme_white{right:0;translate:50% -50%}.mfui-banner_no-touch .mfui-banner__arrow_theme_white:hover{scale:1.25}.mfui-banner_no-touch .mfui-banner__arrow_theme_white:active{scale:1.125}.mfui-banner__pagination{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;left:50%;z-index:10;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:32px}.mfui-banner__pagination_position_top-in{left:0;margin-top:0;padding:0 24px;position:absolute;top:16px;width:100%}@media screen and (min-width:1280px){.mfui-banner__pagination_position_top-in{padding:0 80px}}.mfui-banner__pagination_type_flat{gap:4px}@media screen and (min-width:1280px){.mfui-banner__pagination_type_flat{gap:10px}}.mfui-banner__pagination_align_left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-banner__pagination_bottom-offset{bottom:60px;left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner__pagination_bottom-offset{bottom:89px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-banner__pagination_bottom-offset{bottom:90px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-banner__pagination_bottom-offset{bottom:65px}}@media screen and (min-width:1440px){.mfui-banner__pagination_bottom-offset{bottom:72px}}.mfui-banner_margin-top{margin-top:24px}.mfui-banner_radius_rounded .mfui-banner__swiper{border-radius:24px}@media screen and (max-width:767px){.mfui-banner_show-next-slide .mfui-banner__swiper{border-radius:0;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:32px}.mfui-banner_show-next-slide .mfui-banner__slide-content{border-right:none;margin-right:0}.mfui-banner_show-next-slide.mfui-banner_radius_rounded .mfui-banner__slide-content{border-radius:24px}}.mfui-banner_background-color_green .mfui-banner__swiper{background-color:var(--brandGreen)}.mfui-banner_background-color_purple .mfui-banner__swiper{background-color:var(--brandPurple)}.mfui-banner_background-color_gradient .mfui-banner__swiper{background:-webkit-gradient(linear,right top,left top,from(#ada6ba),to(#f6f2f9));background:linear-gradient(270deg,#ada6ba,#f6f2f9)}.mfui-banner_background-color_light .mfui-banner__swiper{background-color:#f6f2f9}.mfui-banner_background-color_spbSky0 .mfui-banner__swiper{background-color:var(--spbSky0)}
|
|
@@ -21,6 +21,22 @@ export declare const NavTheme: {
|
|
|
21
21
|
readonly DARK: "dark";
|
|
22
22
|
};
|
|
23
23
|
type NavThemeType = (typeof NavTheme)[keyof typeof NavTheme];
|
|
24
|
+
export declare const PaginationTheme: {
|
|
25
|
+
readonly DEFAULT: "default";
|
|
26
|
+
readonly LIGHT: "light";
|
|
27
|
+
readonly DARK: "dark";
|
|
28
|
+
};
|
|
29
|
+
export type PaginationThemeType = (typeof PaginationTheme)[keyof typeof PaginationTheme];
|
|
30
|
+
export declare const PaginationButtonType: {
|
|
31
|
+
readonly DOT: "dot";
|
|
32
|
+
readonly FLAT: "flat";
|
|
33
|
+
};
|
|
34
|
+
export type PaginationType = (typeof PaginationButtonType)[keyof typeof PaginationButtonType];
|
|
35
|
+
export declare const PaginationPositionType: {
|
|
36
|
+
readonly BOTTOM_OUT: "bottom-out";
|
|
37
|
+
readonly TOP_IN: "top-in";
|
|
38
|
+
};
|
|
39
|
+
type PaginationPositionType = (typeof PaginationPositionType)[keyof typeof PaginationPositionType];
|
|
24
40
|
export interface IBannerProps {
|
|
25
41
|
/** Сss класс для внешнего контейнера */
|
|
26
42
|
className?: string;
|
|
@@ -44,7 +60,17 @@ export interface IBannerProps {
|
|
|
44
60
|
arrowNext?: Record<string, string>;
|
|
45
61
|
pagination?: Record<string, string>;
|
|
46
62
|
dot?: Record<string, string>;
|
|
63
|
+
dotSvg?: Record<string, string>;
|
|
64
|
+
dotInner?: Record<string, string>;
|
|
47
65
|
};
|
|
66
|
+
/** Выравнивание блока пагинации */
|
|
67
|
+
paginationAlign?: 'center' | 'left';
|
|
68
|
+
/** Цветовая тема пагинации */
|
|
69
|
+
paginationTheme?: PaginationThemeType;
|
|
70
|
+
/** Тип кнопок пагинации */
|
|
71
|
+
paginationType?: PaginationType;
|
|
72
|
+
/** Расположение пагинации */
|
|
73
|
+
paginationPosition?: PaginationPositionType;
|
|
48
74
|
/** Предполагается использование с наезжанием на баннер следующего за баннером элемента */
|
|
49
75
|
withPaginationBottomOffset?: boolean;
|
|
50
76
|
/** Автоматическая прокрутка */
|
|
@@ -40,6 +40,19 @@ export var NavTheme = {
|
|
|
40
40
|
LIGHT: 'light',
|
|
41
41
|
DARK: 'dark'
|
|
42
42
|
};
|
|
43
|
+
export var PaginationTheme = {
|
|
44
|
+
DEFAULT: 'default',
|
|
45
|
+
LIGHT: 'light',
|
|
46
|
+
DARK: 'dark'
|
|
47
|
+
};
|
|
48
|
+
export var PaginationButtonType = {
|
|
49
|
+
DOT: 'dot',
|
|
50
|
+
FLAT: 'flat'
|
|
51
|
+
};
|
|
52
|
+
export var PaginationPositionType = {
|
|
53
|
+
BOTTOM_OUT: 'bottom-out',
|
|
54
|
+
TOP_IN: 'top-in'
|
|
55
|
+
};
|
|
43
56
|
var getAutoPlayConfig = function getAutoPlayConfig(delay) {
|
|
44
57
|
return {
|
|
45
58
|
delay: delay,
|
|
@@ -54,6 +67,10 @@ var Banner = function Banner(_ref) {
|
|
|
54
67
|
_ref$classes = _ref.classes,
|
|
55
68
|
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
56
69
|
dataAttrs = _ref.dataAttrs,
|
|
70
|
+
paginationAlign = _ref.paginationAlign,
|
|
71
|
+
paginationTheme = _ref.paginationTheme,
|
|
72
|
+
paginationType = _ref.paginationType,
|
|
73
|
+
paginationPosition = _ref.paginationPosition,
|
|
57
74
|
_ref$withPaginationBo = _ref.withPaginationBottomOffset,
|
|
58
75
|
withPaginationBottomOffset = _ref$withPaginationBo === void 0 ? false : _ref$withPaginationBo,
|
|
59
76
|
_ref$autoPlay = _ref.autoPlay,
|
|
@@ -236,19 +253,26 @@ var Banner = function Banner(_ref) {
|
|
|
236
253
|
}));
|
|
237
254
|
var renderPagination = /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.pagination), {
|
|
238
255
|
className: cn('pagination', {
|
|
256
|
+
type: paginationType,
|
|
257
|
+
align: paginationAlign,
|
|
258
|
+
position: paginationPosition,
|
|
239
259
|
'bottom-offset': withPaginationBottomOffset
|
|
240
260
|
}, [classes.pagination])
|
|
241
261
|
}), children && React.Children.map(children, function (_, i) {
|
|
242
262
|
return /*#__PURE__*/React.createElement(BannerDot, {
|
|
243
263
|
className: cn('dot', [classes.dot]),
|
|
244
264
|
dataAttrs: {
|
|
245
|
-
root: _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dot, i + 1))
|
|
265
|
+
root: _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dot, i + 1)),
|
|
266
|
+
svg: _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dotSvg, i + 1)),
|
|
267
|
+
inner: _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dotInner, i + 1))
|
|
246
268
|
},
|
|
247
269
|
key: i,
|
|
248
270
|
index: i,
|
|
249
271
|
isActive: i === activeIndex,
|
|
250
272
|
showTimer: showDotTimer,
|
|
251
273
|
timerDelay: dotTimerDelay,
|
|
274
|
+
type: paginationType,
|
|
275
|
+
theme: paginationTheme,
|
|
252
276
|
onClick: handleDotClick
|
|
253
277
|
});
|
|
254
278
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-banner-dot{
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-banner-dot{background-color:var(--spbSky2);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:8px;position:relative;width:8px}.mfui-banner-dot_active{background-color:var(--brandGreen);cursor:default;-webkit-transition:background-color .2s linear;transition:background-color .2s linear;width:24px}.mfui-banner-dot_active .mfui-banner-dot__timer-inner{fill:var(--brandGreen)}.mfui-banner-dot_active.mfui-banner-dot_has-timer{background-color:var(--spbSky2)}.mfui-banner-dot_type_flat{-webkit-box-flex:1;border-radius:24px;-ms-flex:1 1 auto;flex:1 1 auto;height:2px;width:auto}.mfui-banner-dot_type_flat .mfui-banner-dot__timer{height:100%;width:100%}.mfui-banner-dot_type_flat .mfui-banner-dot__timer-inner{-webkit-animation:timer-reversed linear;animation:timer-reversed linear;height:100%;-webkit-transform:scale(1);transform:scale(1);width:100%}.mfui-banner-dot_theme_light,.mfui-banner-dot_theme_light .mfui-banner-dot__timer{background-color:var(--stcWhite50)}.mfui-banner-dot_theme_light .mfui-banner-dot__timer-inner{fill:var(--stcWhite)}.mfui-banner-dot_theme_light.mfui-banner-dot_active{background-color:var(--stcWhite)}.mfui-banner-dot_theme_light.mfui-banner-dot_has-timer{background-color:transparent}.mfui-banner-dot_theme_dark,.mfui-banner-dot_theme_dark .mfui-banner-dot__timer{background-color:var(--stcBlack10)}.mfui-banner-dot_theme_dark .mfui-banner-dot__timer-inner{fill:var(--stcBlack)}.mfui-banner-dot_theme_dark.mfui-banner-dot_active{background-color:var(--stcBlack)}.mfui-banner-dot_theme_dark.mfui-banner-dot_has-timer{background-color:transparent}.mfui-banner-dot__timer{border-radius:4px;display:block;height:8px;left:0;position:absolute;top:0;width:24px}.mfui-banner-dot__timer-inner{-webkit-animation:timer linear;animation:timer linear;-webkit-transform:scaleX(-1);transform:scaleX(-1);-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes timer{0%{width:100%}to{width:0}}@keyframes timer{0%{width:100%}to{width:0}}@-webkit-keyframes timer-reversed{0%{width:0}to{width:100%}}@keyframes timer-reversed{0%{width:0}to{width:100%}}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { type PaginationThemeType, type PaginationType } from './Banner';
|
|
2
3
|
import './BannerDot.scss';
|
|
3
4
|
export interface IBannerDotProps {
|
|
4
5
|
className?: string;
|
|
@@ -11,6 +12,8 @@ export interface IBannerDotProps {
|
|
|
11
12
|
svg?: Record<string, string>;
|
|
12
13
|
inner?: Record<string, string>;
|
|
13
14
|
};
|
|
15
|
+
type?: PaginationType;
|
|
16
|
+
theme?: PaginationThemeType;
|
|
14
17
|
onClick: (index: number) => void;
|
|
15
18
|
}
|
|
16
19
|
declare const BannerDot: React.FC<IBannerDotProps>;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
|
|
4
|
+
import { PaginationButtonType } from "./Banner";
|
|
4
5
|
import "./BannerDot.css";
|
|
6
|
+
var DOT_VIEW_BOX = '0 0 250 100';
|
|
7
|
+
var DOT_RECT_PROPS = {
|
|
8
|
+
x: '0',
|
|
9
|
+
y: '0',
|
|
10
|
+
width: '250',
|
|
11
|
+
height: '100',
|
|
12
|
+
rx: '50',
|
|
13
|
+
ry: '50'
|
|
14
|
+
};
|
|
5
15
|
var cn = cnCreate('mfui-banner-dot');
|
|
6
16
|
var BannerDot = function BannerDot(_ref) {
|
|
7
17
|
var className = _ref.className,
|
|
@@ -10,30 +20,32 @@ var BannerDot = function BannerDot(_ref) {
|
|
|
10
20
|
isActive = _ref.isActive,
|
|
11
21
|
showTimer = _ref.showTimer,
|
|
12
22
|
timerDelay = _ref.timerDelay,
|
|
23
|
+
_ref$type = _ref.type,
|
|
24
|
+
type = _ref$type === void 0 ? PaginationButtonType.DOT : _ref$type,
|
|
25
|
+
theme = _ref.theme,
|
|
13
26
|
onClick = _ref.onClick;
|
|
27
|
+
var viewBox = type === PaginationButtonType.DOT ? DOT_VIEW_BOX : undefined;
|
|
28
|
+
var rectProps = type === PaginationButtonType.DOT ? DOT_RECT_PROPS : {};
|
|
29
|
+
var hasTimer = showTimer && isActive;
|
|
14
30
|
var handleDotClick = React.useCallback(function () {
|
|
15
31
|
onClick(index);
|
|
16
32
|
}, [onClick, index]);
|
|
17
33
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
18
34
|
className: cn({
|
|
19
35
|
active: isActive,
|
|
20
|
-
|
|
36
|
+
type: type,
|
|
37
|
+
theme: theme,
|
|
38
|
+
'has-timer': hasTimer
|
|
21
39
|
}, className),
|
|
22
40
|
onClick: handleDotClick
|
|
23
|
-
}),
|
|
41
|
+
}), hasTimer && /*#__PURE__*/React.createElement("svg", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.svg), {
|
|
24
42
|
className: cn('timer'),
|
|
25
|
-
viewBox:
|
|
26
|
-
}), /*#__PURE__*/React.createElement("rect", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.inner), {
|
|
43
|
+
viewBox: viewBox
|
|
44
|
+
}), /*#__PURE__*/React.createElement("rect", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.inner), rectProps, {
|
|
27
45
|
className: cn('timer-inner'),
|
|
28
46
|
style: {
|
|
29
47
|
animationDuration: "".concat(timerDelay, "s")
|
|
30
|
-
}
|
|
31
|
-
x: "0",
|
|
32
|
-
y: "0",
|
|
33
|
-
width: "250",
|
|
34
|
-
height: "100",
|
|
35
|
-
rx: "50",
|
|
36
|
-
ry: "50"
|
|
48
|
+
}
|
|
37
49
|
}))));
|
|
38
50
|
};
|
|
39
51
|
export default BannerDot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-modal-content__background{background-color:rgba(0,0,0,.8);bottom:0;left:0;position:fixed;right:0;top:0}.mfui-modal-content__container-wrap{-webkit-animation:show-popup .3s ease-out;animation:show-popup .3s ease-out;position:relative;width:100%}@media screen and (min-width:768px){.mfui-modal-content__container-wrap{-webkit-transition:height .1s;transition:height .1s;width:740px}}.mfui-modal-content__container-inner{background-color:var(--background);font-family:inherit;width:100%}.mfui-modal-content__header{position:relative}.mfui-modal-content__header_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:52px}@media screen and (min-width:768px){.mfui-modal-content__header-main{min-height:64px}}.mfui-modal-content__header-button{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:12px;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background:transparent;border:none;cursor:pointer;height:32px;justify-content:center;outline:none;width:32px}@media screen and (min-width:768px){.mfui-modal-content__header-button{height:40px;width:40px}}.mfui-modal-content__header-button_back{left:16px}.mfui-modal-content__header-button_close{right:16px}.mfui-modal-content__header-button_shadow{background:var(--base);border-radius:50%;-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-modal-content__background{background-color:rgba(0,0,0,.8);bottom:0;left:0;position:fixed;right:0;top:0}.mfui-modal-content__container-wrap{-webkit-animation:show-popup .3s ease-out;animation:show-popup .3s ease-out;position:relative;width:100%}@media screen and (min-width:768px){.mfui-modal-content__container-wrap{-webkit-transition:height .1s;transition:height .1s;width:740px}}.mfui-modal-content__container-inner{background-color:var(--background);font-family:inherit;width:100%}.mfui-modal-content__header{position:relative}.mfui-modal-content__header_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:52px}@media screen and (min-width:768px){.mfui-modal-content__header-main{min-height:64px}}.mfui-modal-content__header-button{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:12px;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background:transparent;border:none;cursor:pointer;height:32px;justify-content:center;outline:none;width:32px}@media screen and (min-width:768px){.mfui-modal-content__header-button{height:40px;width:40px}}.mfui-modal-content__header-button_back{left:16px}.mfui-modal-content__header-button_close{right:16px}.mfui-modal-content__header-button_shadow{background:var(--base);border-radius:50%;-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-icon{height:32px;min-width:32px;width:32px;fill:var(--content)}@media screen and (min-width:768px){.mfui-modal-content__header-icon{height:40px;min-width:40px;width:40px}}.mfui-modal-content__title-area{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 48px;padding:12px}@media screen and (min-width:768px){.mfui-modal-content__title-area{margin:0 56px;padding:16px}}.mfui-modal-content__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px;text-align:center}@media screen and (min-width:1280px){.mfui-modal-content__title{font-size:20px;line-height:28px}}@media screen and (min-width:768px){.mfui-modal-content__title{font-size:20px;font-weight:500;letter-spacing:.5px;line-height:28px}}.mfui-modal-content__header-additional{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px 16px;text-align:center}@media screen and (min-width:768px){.mfui-modal-content__header-additional{padding-left:32px;padding-right:32px}}.mfui-modal-content__container-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding-bottom:24px;padding-right:6px}@media screen and (min-width:768px){.mfui-modal-content__container-body{padding-bottom:32px;padding-right:12px}}.mfui-modal-content__children{-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px;padding-right:4px;padding-top:24px}@media screen and (min-width:768px){.mfui-modal-content__children{padding-left:32px;padding-right:14px}}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__children{padding-top:0}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header{margin-bottom:24px;margin-left:-16px;margin-right:-16px}@media screen and (min-width:768px){.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header{margin-left:-32px;margin-right:-32px}}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header-main{min-height:40px}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header-button{top:0}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__title-area{padding-bottom:4px;padding-top:4px}.mfui-modal-content__container-wrap_hide-header .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_hide-header .mfui-modal-content__children{padding-top:0}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__container-body{padding-bottom:0}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer{padding-left:16px;padding-right:16px}@media screen and (min-width:768px){.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer{padding-left:32px;padding-right:32px}}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__container-wrap_out-side-buttons .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_native-scroll .mfui-modal-content__children,.mfui-modal-content__container-wrap_native-scroll .mfui-modal-content__container-body{padding:0}.mfui-modal-content__container-wrap_transition-end{-webkit-animation:hide-popup .2s ease-in;animation:hide-popup .2s ease-in}@-webkit-keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@-webkit-keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}@keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}
|
|
@@ -97,7 +97,11 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
97
97
|
}, classes === null || classes === void 0 ? void 0 : classes.headerBackButton),
|
|
98
98
|
type: "button",
|
|
99
99
|
onClick: onBackButtonClick
|
|
100
|
-
}), isSmallIcon ? /*#__PURE__*/React.createElement(ArrowLeft24,
|
|
100
|
+
}), isSmallIcon ? /*#__PURE__*/React.createElement(ArrowLeft24, {
|
|
101
|
+
className: cn('header-icon')
|
|
102
|
+
}) : /*#__PURE__*/React.createElement(ArrowLeft32, {
|
|
103
|
+
className: cn('header-icon')
|
|
104
|
+
}));
|
|
101
105
|
var renderCloseButton = /*#__PURE__*/React.createElement("button", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.headerCloseButton), {
|
|
102
106
|
className: cn('header-button', {
|
|
103
107
|
close: true,
|
|
@@ -105,7 +109,11 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
105
109
|
}, classes === null || classes === void 0 ? void 0 : classes.headerCloseButton),
|
|
106
110
|
type: "button",
|
|
107
111
|
onClick: onPopupClose
|
|
108
|
-
}), isSmallIcon ? /*#__PURE__*/React.createElement(Cancel24,
|
|
112
|
+
}), isSmallIcon ? /*#__PURE__*/React.createElement(Cancel24, {
|
|
113
|
+
className: cn('header-icon')
|
|
114
|
+
}) : /*#__PURE__*/React.createElement(Cancel32, {
|
|
115
|
+
className: cn('header-icon')
|
|
116
|
+
}));
|
|
109
117
|
var renderHeader = /*#__PURE__*/React.createElement("div", {
|
|
110
118
|
className: cn('header', {
|
|
111
119
|
shadow: showHeaderShadow
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-banner{position:relative}.mfui-banner .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-banner .mfui-banner__swiper-container{position:relative}.mfui-banner__swiper{overflow:hidden}.mfui-banner__slide{-ms-flex-negative:0;flex-shrink:0;height:500px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-banner__slide{height:420px}}@media screen and (min-width:1280px){.mfui-banner__slide{height:400px}}.mfui-banner__slide-content{border-right:1px solid transparent;margin-right:-1px}@media screen and (max-width:1023px){.mfui-banner__slide-content{height:100%}}.mfui-banner_auto-height .mfui-banner__slide{height:auto}.mfui-banner .mfui-banner__arrow{position:absolute;top:50%;-webkit-transition:scale .2s linear;transition:scale .2s linear;translate:0 -50%;z-index:10}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow{display:none}}.mfui-banner .mfui-banner__arrow_theme_white{height:64px;width:64px}@media screen and (max-width:1023px){.mfui-banner .mfui-banner__arrow_theme_white{display:none}}.mfui-banner .mfui-banner__arrow_prev{left:12px}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow_prev{left:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner .mfui-banner__arrow_prev{left:16px}}@media screen and (min-width:1280px){.mfui-banner .mfui-banner__arrow_prev{left:20px}}.mfui-banner .mfui-banner__arrow_next{right:12px}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow_next{right:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner .mfui-banner__arrow_next{right:16px}}@media screen and (min-width:1280px){.mfui-banner .mfui-banner__arrow_next{right:20px}}.mfui-banner .mfui-banner__arrow_prev.mfui-banner__arrow_theme_white{left:0;translate:-50% -50%}.mfui-banner .mfui-banner__arrow_next.mfui-banner__arrow_theme_white{right:0;translate:50% -50%}.mfui-banner_no-touch .mfui-banner__arrow_theme_white:hover{scale:1.25}.mfui-banner_no-touch .mfui-banner__arrow_theme_white:active{scale:1.125}.mfui-banner__pagination{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;left:50%;z-index:10;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:32px}.mfui-banner__pagination_bottom-offset{bottom:60px;left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner__pagination_bottom-offset{bottom:89px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-banner__pagination_bottom-offset{bottom:90px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-banner__pagination_bottom-offset{bottom:65px}}@media screen and (min-width:1440px){.mfui-banner__pagination_bottom-offset{bottom:72px}}.mfui-banner_margin-top{margin-top:24px}.mfui-banner_radius_rounded .mfui-banner__swiper{border-radius:24px}@media screen and (max-width:767px){.mfui-banner_show-next-slide .mfui-banner__swiper{border-radius:0;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:32px}.mfui-banner_show-next-slide .mfui-banner__slide-content{border-right:none;margin-right:0}.mfui-banner_show-next-slide.mfui-banner_radius_rounded .mfui-banner__slide-content{border-radius:24px}}.mfui-banner_background-color_green .mfui-banner__swiper{background-color:var(--brandGreen)}.mfui-banner_background-color_purple .mfui-banner__swiper{background-color:var(--brandPurple)}.mfui-banner_background-color_gradient .mfui-banner__swiper{background:-webkit-gradient(linear,right top,left top,from(#ada6ba),to(#f6f2f9));background:linear-gradient(270deg,#ada6ba,#f6f2f9)}.mfui-banner_background-color_light .mfui-banner__swiper{background-color:#f6f2f9}.mfui-banner_background-color_spbSky0 .mfui-banner__swiper{background-color:var(--spbSky0)}
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-banner{position:relative}.mfui-banner .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-banner .mfui-banner__swiper-container{position:relative}.mfui-banner__swiper{overflow:hidden}.mfui-banner__slide{-ms-flex-negative:0;flex-shrink:0;height:500px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-banner__slide{height:420px}}@media screen and (min-width:1280px){.mfui-banner__slide{height:400px}}.mfui-banner__slide-content{border-right:1px solid transparent;margin-right:-1px}@media screen and (max-width:1023px){.mfui-banner__slide-content{height:100%}}.mfui-banner_auto-height .mfui-banner__slide{height:auto}.mfui-banner .mfui-banner__arrow{position:absolute;top:50%;-webkit-transition:scale .2s linear;transition:scale .2s linear;translate:0 -50%;z-index:10}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow{display:none}}.mfui-banner .mfui-banner__arrow_theme_white{height:64px;width:64px}@media screen and (max-width:1023px){.mfui-banner .mfui-banner__arrow_theme_white{display:none}}.mfui-banner .mfui-banner__arrow_prev{left:12px}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow_prev{left:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner .mfui-banner__arrow_prev{left:16px}}@media screen and (min-width:1280px){.mfui-banner .mfui-banner__arrow_prev{left:20px}}.mfui-banner .mfui-banner__arrow_next{right:12px}@media screen and (max-width:767px){.mfui-banner .mfui-banner__arrow_next{right:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner .mfui-banner__arrow_next{right:16px}}@media screen and (min-width:1280px){.mfui-banner .mfui-banner__arrow_next{right:20px}}.mfui-banner .mfui-banner__arrow_prev.mfui-banner__arrow_theme_white{left:0;translate:-50% -50%}.mfui-banner .mfui-banner__arrow_next.mfui-banner__arrow_theme_white{right:0;translate:50% -50%}.mfui-banner_no-touch .mfui-banner__arrow_theme_white:hover{scale:1.25}.mfui-banner_no-touch .mfui-banner__arrow_theme_white:active{scale:1.125}.mfui-banner__pagination{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;left:50%;z-index:10;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:32px}.mfui-banner__pagination_position_top-in{left:0;margin-top:0;padding:0 24px;position:absolute;top:16px;width:100%}@media screen and (min-width:1280px){.mfui-banner__pagination_position_top-in{padding:0 80px}}.mfui-banner__pagination_type_flat{gap:4px}@media screen and (min-width:1280px){.mfui-banner__pagination_type_flat{gap:10px}}.mfui-banner__pagination_align_left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-banner__pagination_bottom-offset{bottom:60px;left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10}@media screen and (min-width:768px) and (max-width:1023px){.mfui-banner__pagination_bottom-offset{bottom:89px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-banner__pagination_bottom-offset{bottom:90px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-banner__pagination_bottom-offset{bottom:65px}}@media screen and (min-width:1440px){.mfui-banner__pagination_bottom-offset{bottom:72px}}.mfui-banner_margin-top{margin-top:24px}.mfui-banner_radius_rounded .mfui-banner__swiper{border-radius:24px}@media screen and (max-width:767px){.mfui-banner_show-next-slide .mfui-banner__swiper{border-radius:0;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:32px}.mfui-banner_show-next-slide .mfui-banner__slide-content{border-right:none;margin-right:0}.mfui-banner_show-next-slide.mfui-banner_radius_rounded .mfui-banner__slide-content{border-radius:24px}}.mfui-banner_background-color_green .mfui-banner__swiper{background-color:var(--brandGreen)}.mfui-banner_background-color_purple .mfui-banner__swiper{background-color:var(--brandPurple)}.mfui-banner_background-color_gradient .mfui-banner__swiper{background:-webkit-gradient(linear,right top,left top,from(#ada6ba),to(#f6f2f9));background:linear-gradient(270deg,#ada6ba,#f6f2f9)}.mfui-banner_background-color_light .mfui-banner__swiper{background-color:#f6f2f9}.mfui-banner_background-color_spbSky0 .mfui-banner__swiper{background-color:var(--spbSky0)}
|
|
@@ -21,6 +21,22 @@ export declare const NavTheme: {
|
|
|
21
21
|
readonly DARK: "dark";
|
|
22
22
|
};
|
|
23
23
|
type NavThemeType = (typeof NavTheme)[keyof typeof NavTheme];
|
|
24
|
+
export declare const PaginationTheme: {
|
|
25
|
+
readonly DEFAULT: "default";
|
|
26
|
+
readonly LIGHT: "light";
|
|
27
|
+
readonly DARK: "dark";
|
|
28
|
+
};
|
|
29
|
+
export type PaginationThemeType = (typeof PaginationTheme)[keyof typeof PaginationTheme];
|
|
30
|
+
export declare const PaginationButtonType: {
|
|
31
|
+
readonly DOT: "dot";
|
|
32
|
+
readonly FLAT: "flat";
|
|
33
|
+
};
|
|
34
|
+
export type PaginationType = (typeof PaginationButtonType)[keyof typeof PaginationButtonType];
|
|
35
|
+
export declare const PaginationPositionType: {
|
|
36
|
+
readonly BOTTOM_OUT: "bottom-out";
|
|
37
|
+
readonly TOP_IN: "top-in";
|
|
38
|
+
};
|
|
39
|
+
type PaginationPositionType = (typeof PaginationPositionType)[keyof typeof PaginationPositionType];
|
|
24
40
|
export interface IBannerProps {
|
|
25
41
|
/** Сss класс для внешнего контейнера */
|
|
26
42
|
className?: string;
|
|
@@ -44,7 +60,17 @@ export interface IBannerProps {
|
|
|
44
60
|
arrowNext?: Record<string, string>;
|
|
45
61
|
pagination?: Record<string, string>;
|
|
46
62
|
dot?: Record<string, string>;
|
|
63
|
+
dotSvg?: Record<string, string>;
|
|
64
|
+
dotInner?: Record<string, string>;
|
|
47
65
|
};
|
|
66
|
+
/** Выравнивание блока пагинации */
|
|
67
|
+
paginationAlign?: 'center' | 'left';
|
|
68
|
+
/** Цветовая тема пагинации */
|
|
69
|
+
paginationTheme?: PaginationThemeType;
|
|
70
|
+
/** Тип кнопок пагинации */
|
|
71
|
+
paginationType?: PaginationType;
|
|
72
|
+
/** Расположение пагинации */
|
|
73
|
+
paginationPosition?: PaginationPositionType;
|
|
48
74
|
/** Предполагается использование с наезжанием на баннер следующего за баннером элемента */
|
|
49
75
|
withPaginationBottomOffset?: boolean;
|
|
50
76
|
/** Автоматическая прокрутка */
|
|
@@ -4,7 +4,7 @@ function _typeof3(o) { "@babel/helpers - typeof"; return _typeof3 = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports["default"] = exports.Radius = exports.NavTheme = exports.BackgroundColor = void 0;
|
|
7
|
+
exports["default"] = exports.Radius = exports.PaginationTheme = exports.PaginationPositionType = exports.PaginationButtonType = exports.NavTheme = exports.BackgroundColor = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -50,6 +50,19 @@ var NavTheme = exports.NavTheme = {
|
|
|
50
50
|
LIGHT: 'light',
|
|
51
51
|
DARK: 'dark'
|
|
52
52
|
};
|
|
53
|
+
var PaginationTheme = exports.PaginationTheme = {
|
|
54
|
+
DEFAULT: 'default',
|
|
55
|
+
LIGHT: 'light',
|
|
56
|
+
DARK: 'dark'
|
|
57
|
+
};
|
|
58
|
+
var PaginationButtonType = exports.PaginationButtonType = {
|
|
59
|
+
DOT: 'dot',
|
|
60
|
+
FLAT: 'flat'
|
|
61
|
+
};
|
|
62
|
+
var PaginationPositionType = exports.PaginationPositionType = {
|
|
63
|
+
BOTTOM_OUT: 'bottom-out',
|
|
64
|
+
TOP_IN: 'top-in'
|
|
65
|
+
};
|
|
53
66
|
var getAutoPlayConfig = function getAutoPlayConfig(delay) {
|
|
54
67
|
return {
|
|
55
68
|
delay: delay,
|
|
@@ -64,6 +77,10 @@ var Banner = function Banner(_ref) {
|
|
|
64
77
|
_ref$classes = _ref.classes,
|
|
65
78
|
classes = _ref$classes === void 0 ? {} : _ref$classes,
|
|
66
79
|
dataAttrs = _ref.dataAttrs,
|
|
80
|
+
paginationAlign = _ref.paginationAlign,
|
|
81
|
+
paginationTheme = _ref.paginationTheme,
|
|
82
|
+
paginationType = _ref.paginationType,
|
|
83
|
+
paginationPosition = _ref.paginationPosition,
|
|
67
84
|
_ref$withPaginationBo = _ref.withPaginationBottomOffset,
|
|
68
85
|
withPaginationBottomOffset = _ref$withPaginationBo === void 0 ? false : _ref$withPaginationBo,
|
|
69
86
|
_ref$autoPlay = _ref.autoPlay,
|
|
@@ -246,19 +263,26 @@ var Banner = function Banner(_ref) {
|
|
|
246
263
|
}));
|
|
247
264
|
var renderPagination = /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.pagination), {
|
|
248
265
|
className: cn('pagination', {
|
|
266
|
+
type: paginationType,
|
|
267
|
+
align: paginationAlign,
|
|
268
|
+
position: paginationPosition,
|
|
249
269
|
'bottom-offset': withPaginationBottomOffset
|
|
250
270
|
}, [classes.pagination])
|
|
251
271
|
}), children && React.Children.map(children, function (_, i) {
|
|
252
272
|
return /*#__PURE__*/React.createElement(_BannerDot["default"], {
|
|
253
273
|
className: cn('dot', [classes.dot]),
|
|
254
274
|
dataAttrs: {
|
|
255
|
-
root: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dot, i + 1))
|
|
275
|
+
root: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dot, i + 1)),
|
|
276
|
+
svg: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dotSvg, i + 1)),
|
|
277
|
+
inner: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dotInner, i + 1))
|
|
256
278
|
},
|
|
257
279
|
key: i,
|
|
258
280
|
index: i,
|
|
259
281
|
isActive: i === activeIndex,
|
|
260
282
|
showTimer: showDotTimer,
|
|
261
283
|
timerDelay: dotTimerDelay,
|
|
284
|
+
type: paginationType,
|
|
285
|
+
theme: paginationTheme,
|
|
262
286
|
onClick: handleDotClick
|
|
263
287
|
});
|
|
264
288
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-banner-dot{
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-banner-dot{background-color:var(--spbSky2);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:8px;position:relative;width:8px}.mfui-banner-dot_active{background-color:var(--brandGreen);cursor:default;-webkit-transition:background-color .2s linear;transition:background-color .2s linear;width:24px}.mfui-banner-dot_active .mfui-banner-dot__timer-inner{fill:var(--brandGreen)}.mfui-banner-dot_active.mfui-banner-dot_has-timer{background-color:var(--spbSky2)}.mfui-banner-dot_type_flat{-webkit-box-flex:1;border-radius:24px;-ms-flex:1 1 auto;flex:1 1 auto;height:2px;width:auto}.mfui-banner-dot_type_flat .mfui-banner-dot__timer{height:100%;width:100%}.mfui-banner-dot_type_flat .mfui-banner-dot__timer-inner{-webkit-animation:timer-reversed linear;animation:timer-reversed linear;height:100%;-webkit-transform:scale(1);transform:scale(1);width:100%}.mfui-banner-dot_theme_light,.mfui-banner-dot_theme_light .mfui-banner-dot__timer{background-color:var(--stcWhite50)}.mfui-banner-dot_theme_light .mfui-banner-dot__timer-inner{fill:var(--stcWhite)}.mfui-banner-dot_theme_light.mfui-banner-dot_active{background-color:var(--stcWhite)}.mfui-banner-dot_theme_light.mfui-banner-dot_has-timer{background-color:transparent}.mfui-banner-dot_theme_dark,.mfui-banner-dot_theme_dark .mfui-banner-dot__timer{background-color:var(--stcBlack10)}.mfui-banner-dot_theme_dark .mfui-banner-dot__timer-inner{fill:var(--stcBlack)}.mfui-banner-dot_theme_dark.mfui-banner-dot_active{background-color:var(--stcBlack)}.mfui-banner-dot_theme_dark.mfui-banner-dot_has-timer{background-color:transparent}.mfui-banner-dot__timer{border-radius:4px;display:block;height:8px;left:0;position:absolute;top:0;width:24px}.mfui-banner-dot__timer-inner{-webkit-animation:timer linear;animation:timer linear;-webkit-transform:scaleX(-1);transform:scaleX(-1);-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes timer{0%{width:100%}to{width:0}}@keyframes timer{0%{width:100%}to{width:0}}@-webkit-keyframes timer-reversed{0%{width:0}to{width:100%}}@keyframes timer-reversed{0%{width:0}to{width:100%}}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { type PaginationThemeType, type PaginationType } from './Banner';
|
|
2
3
|
import './BannerDot.scss';
|
|
3
4
|
export interface IBannerDotProps {
|
|
4
5
|
className?: string;
|
|
@@ -11,6 +12,8 @@ export interface IBannerDotProps {
|
|
|
11
12
|
svg?: Record<string, string>;
|
|
12
13
|
inner?: Record<string, string>;
|
|
13
14
|
};
|
|
15
|
+
type?: PaginationType;
|
|
16
|
+
theme?: PaginationThemeType;
|
|
14
17
|
onClick: (index: number) => void;
|
|
15
18
|
}
|
|
16
19
|
declare const BannerDot: React.FC<IBannerDotProps>;
|
|
@@ -8,9 +8,19 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _uiHelpers = require("@megafon/ui-helpers");
|
|
11
|
+
var _Banner = require("./Banner");
|
|
11
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
var DOT_VIEW_BOX = '0 0 250 100';
|
|
16
|
+
var DOT_RECT_PROPS = {
|
|
17
|
+
x: '0',
|
|
18
|
+
y: '0',
|
|
19
|
+
width: '250',
|
|
20
|
+
height: '100',
|
|
21
|
+
rx: '50',
|
|
22
|
+
ry: '50'
|
|
23
|
+
};
|
|
14
24
|
var cn = (0, _uiHelpers.cnCreate)('mfui-banner-dot');
|
|
15
25
|
var BannerDot = function BannerDot(_ref) {
|
|
16
26
|
var className = _ref.className,
|
|
@@ -19,30 +29,32 @@ var BannerDot = function BannerDot(_ref) {
|
|
|
19
29
|
isActive = _ref.isActive,
|
|
20
30
|
showTimer = _ref.showTimer,
|
|
21
31
|
timerDelay = _ref.timerDelay,
|
|
32
|
+
_ref$type = _ref.type,
|
|
33
|
+
type = _ref$type === void 0 ? _Banner.PaginationButtonType.DOT : _ref$type,
|
|
34
|
+
theme = _ref.theme,
|
|
22
35
|
onClick = _ref.onClick;
|
|
36
|
+
var viewBox = type === _Banner.PaginationButtonType.DOT ? DOT_VIEW_BOX : undefined;
|
|
37
|
+
var rectProps = type === _Banner.PaginationButtonType.DOT ? DOT_RECT_PROPS : {};
|
|
38
|
+
var hasTimer = showTimer && isActive;
|
|
23
39
|
var handleDotClick = React.useCallback(function () {
|
|
24
40
|
onClick(index);
|
|
25
41
|
}, [onClick, index]);
|
|
26
42
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
27
43
|
className: cn({
|
|
28
44
|
active: isActive,
|
|
29
|
-
|
|
45
|
+
type: type,
|
|
46
|
+
theme: theme,
|
|
47
|
+
'has-timer': hasTimer
|
|
30
48
|
}, className),
|
|
31
49
|
onClick: handleDotClick
|
|
32
|
-
}),
|
|
50
|
+
}), hasTimer && /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.svg), {
|
|
33
51
|
className: cn('timer'),
|
|
34
|
-
viewBox:
|
|
35
|
-
}), /*#__PURE__*/React.createElement("rect", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.inner), {
|
|
52
|
+
viewBox: viewBox
|
|
53
|
+
}), /*#__PURE__*/React.createElement("rect", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.inner), rectProps, {
|
|
36
54
|
className: cn('timer-inner'),
|
|
37
55
|
style: {
|
|
38
56
|
animationDuration: "".concat(timerDelay, "s")
|
|
39
|
-
}
|
|
40
|
-
x: "0",
|
|
41
|
-
y: "0",
|
|
42
|
-
width: "250",
|
|
43
|
-
height: "100",
|
|
44
|
-
rx: "50",
|
|
45
|
-
ry: "50"
|
|
57
|
+
}
|
|
46
58
|
}))));
|
|
47
59
|
};
|
|
48
60
|
var _default = exports["default"] = BannerDot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
h1,h2,h3,h4,h5{margin:0}.mfui-modal-content__background{background-color:rgba(0,0,0,.8);bottom:0;left:0;position:fixed;right:0;top:0}.mfui-modal-content__container-wrap{-webkit-animation:show-popup .3s ease-out;animation:show-popup .3s ease-out;position:relative;width:100%}@media screen and (min-width:768px){.mfui-modal-content__container-wrap{-webkit-transition:height .1s;transition:height .1s;width:740px}}.mfui-modal-content__container-inner{background-color:var(--background);font-family:inherit;width:100%}.mfui-modal-content__header{position:relative}.mfui-modal-content__header_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:52px}@media screen and (min-width:768px){.mfui-modal-content__header-main{min-height:64px}}.mfui-modal-content__header-button{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:12px;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background:transparent;border:none;cursor:pointer;height:32px;justify-content:center;outline:none;width:32px}@media screen and (min-width:768px){.mfui-modal-content__header-button{height:40px;width:40px}}.mfui-modal-content__header-button_back{left:16px}.mfui-modal-content__header-button_close{right:16px}.mfui-modal-content__header-button_shadow{background:var(--base);border-radius:50%;-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-
|
|
1
|
+
h1,h2,h3,h4,h5{margin:0}.mfui-modal-content__background{background-color:rgba(0,0,0,.8);bottom:0;left:0;position:fixed;right:0;top:0}.mfui-modal-content__container-wrap{-webkit-animation:show-popup .3s ease-out;animation:show-popup .3s ease-out;position:relative;width:100%}@media screen and (min-width:768px){.mfui-modal-content__container-wrap{-webkit-transition:height .1s;transition:height .1s;width:740px}}.mfui-modal-content__container-inner{background-color:var(--background);font-family:inherit;width:100%}.mfui-modal-content__header{position:relative}.mfui-modal-content__header_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:52px}@media screen and (min-width:768px){.mfui-modal-content__header-main{min-height:64px}}.mfui-modal-content__header-button{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:12px;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background:transparent;border:none;cursor:pointer;height:32px;justify-content:center;outline:none;width:32px}@media screen and (min-width:768px){.mfui-modal-content__header-button{height:40px;width:40px}}.mfui-modal-content__header-button_back{left:16px}.mfui-modal-content__header-button_close{right:16px}.mfui-modal-content__header-button_shadow{background:var(--base);border-radius:50%;-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-icon{height:32px;min-width:32px;width:32px;fill:var(--content)}@media screen and (min-width:768px){.mfui-modal-content__header-icon{height:40px;min-width:40px;width:40px}}.mfui-modal-content__title-area{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 48px;padding:12px}@media screen and (min-width:768px){.mfui-modal-content__title-area{margin:0 56px;padding:16px}}.mfui-modal-content__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px;text-align:center}@media screen and (min-width:1280px){.mfui-modal-content__title{font-size:20px;line-height:28px}}@media screen and (min-width:768px){.mfui-modal-content__title{font-size:20px;font-weight:500;letter-spacing:.5px;line-height:28px}}.mfui-modal-content__header-additional{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px 16px;text-align:center}@media screen and (min-width:768px){.mfui-modal-content__header-additional{padding-left:32px;padding-right:32px}}.mfui-modal-content__container-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding-bottom:24px;padding-right:6px}@media screen and (min-width:768px){.mfui-modal-content__container-body{padding-bottom:32px;padding-right:12px}}.mfui-modal-content__children{-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px;padding-right:4px;padding-top:24px}@media screen and (min-width:768px){.mfui-modal-content__children{padding-left:32px;padding-right:14px}}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__children{padding-top:0}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header{margin-bottom:24px;margin-left:-16px;margin-right:-16px}@media screen and (min-width:768px){.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header{margin-left:-32px;margin-right:-32px}}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header-main{min-height:40px}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header-button{top:0}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__title-area{padding-bottom:4px;padding-top:4px}.mfui-modal-content__container-wrap_hide-header .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_hide-header .mfui-modal-content__children{padding-top:0}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__container-body{padding-bottom:0}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer{padding-left:16px;padding-right:16px}@media screen and (min-width:768px){.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer{padding-left:32px;padding-right:32px}}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__container-wrap_out-side-buttons .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_native-scroll .mfui-modal-content__children,.mfui-modal-content__container-wrap_native-scroll .mfui-modal-content__container-body{padding:0}.mfui-modal-content__container-wrap_transition-end{-webkit-animation:hide-popup .2s ease-in;animation:hide-popup .2s ease-in}@-webkit-keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@-webkit-keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}@keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}
|
|
@@ -106,7 +106,11 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
106
106
|
}, classes === null || classes === void 0 ? void 0 : classes.headerBackButton),
|
|
107
107
|
type: "button",
|
|
108
108
|
onClick: onBackButtonClick
|
|
109
|
-
}), isSmallIcon ? /*#__PURE__*/React.createElement(ArrowLeft24,
|
|
109
|
+
}), isSmallIcon ? /*#__PURE__*/React.createElement(ArrowLeft24, {
|
|
110
|
+
className: cn('header-icon')
|
|
111
|
+
}) : /*#__PURE__*/React.createElement(ArrowLeft32, {
|
|
112
|
+
className: cn('header-icon')
|
|
113
|
+
}));
|
|
110
114
|
var renderCloseButton = /*#__PURE__*/React.createElement("button", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.headerCloseButton), {
|
|
111
115
|
className: cn('header-button', {
|
|
112
116
|
close: true,
|
|
@@ -114,7 +118,11 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
114
118
|
}, classes === null || classes === void 0 ? void 0 : classes.headerCloseButton),
|
|
115
119
|
type: "button",
|
|
116
120
|
onClick: onPopupClose
|
|
117
|
-
}), isSmallIcon ? /*#__PURE__*/React.createElement(Cancel24,
|
|
121
|
+
}), isSmallIcon ? /*#__PURE__*/React.createElement(Cancel24, {
|
|
122
|
+
className: cn('header-icon')
|
|
123
|
+
}) : /*#__PURE__*/React.createElement(Cancel32, {
|
|
124
|
+
className: cn('header-icon')
|
|
125
|
+
}));
|
|
118
126
|
var renderHeader = /*#__PURE__*/React.createElement("div", {
|
|
119
127
|
className: cn('header', {
|
|
120
128
|
shadow: showHeaderShadow
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"styles"
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"simplebar-react": "^3.2.5",
|
|
105
105
|
"swiper": "^11.1.1"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "af0cdb99cd17efe392e36532a219bafaf5c986d6"
|
|
108
108
|
}
|
package/styles/colors.css
CHANGED
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
/* Soft */
|
|
65
65
|
--brandGreen80: #0CDC78;
|
|
66
66
|
--brandGreen20: #DDFFEC;
|
|
67
|
-
--brandPurple80: #
|
|
68
|
-
--brandPurple20: #
|
|
67
|
+
--brandPurple80: #A367C1;
|
|
68
|
+
--brandPurple20: #F2E5FF;
|
|
69
69
|
--night80: #4B83BB;
|
|
70
70
|
--night20: #D2E0EE;
|
|
71
71
|
--sky80: #63C7FF;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
--lime80: #CAFF60;
|
|
76
76
|
--lime20: #E7FFB7;
|
|
77
77
|
--berry80: #BB7BFF;
|
|
78
|
-
--berry20: #
|
|
78
|
+
--berry20: #EEDEFF;
|
|
79
79
|
--137C80: #FFB945;
|
|
80
80
|
--137C20: #FFEDD1;
|
|
81
81
|
--fury80: #F8505D;
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
--buttonHoverGreen: #10E272;
|
|
104
104
|
--buttonHoverPurple: #A500BF;
|
|
105
105
|
--buttonHoverGrey: #D6D6D6;
|
|
106
|
-
--buttonHoverGreenSoft: #
|
|
107
|
-
--buttonHoverPurpleSoft: #
|
|
106
|
+
--buttonHoverGreenSoft: #355A46;
|
|
107
|
+
--buttonHoverPurpleSoft: #492B50;
|
|
108
108
|
--buttonDown: #404D46;
|
|
109
109
|
--overlay: #000000CC;
|
|
110
110
|
--gradientGreen1: linear-gradient(270deg, #AAFF00 0%, #00B956 50%);
|