@alfalab/core-components-navigation-bar-private 0.5.7 → 0.6.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/Component.js +5 -5
- package/components/back-arrow-addon/Component.js +1 -1
- package/components/back-arrow-addon/index.css +16 -13
- package/components/closer/Component.js +1 -1
- package/components/closer/index.css +10 -7
- package/cssm/Component.js +4 -4
- package/cssm/components/back-arrow-addon/index.module.css +4 -1
- package/cssm/components/closer/index.module.css +4 -1
- package/cssm/index.module.css +4 -1
- package/cssm/types.d.ts +13 -1
- package/cssm/vars.css +3 -0
- package/esm/Component.js +5 -5
- package/esm/components/back-arrow-addon/Component.js +1 -1
- package/esm/components/back-arrow-addon/index.css +16 -13
- package/esm/components/closer/Component.js +1 -1
- package/esm/components/closer/index.css +10 -7
- package/esm/index.css +31 -28
- package/esm/types.d.ts +13 -1
- package/index.css +31 -28
- package/modern/Component.js +5 -5
- package/modern/components/back-arrow-addon/Component.js +1 -1
- package/modern/components/back-arrow-addon/index.css +16 -13
- package/modern/components/closer/Component.js +1 -1
- package/modern/components/closer/index.css +10 -7
- package/modern/index.css +31 -28
- package/modern/types.d.ts +13 -1
- package/moderncssm/Component.js +4 -4
- package/moderncssm/types.d.ts +13 -1
- package/package.json +7 -7
- package/src/Component.tsx +14 -2
- package/src/types.ts +16 -1
- package/types.d.ts +13 -1
package/Component.js
CHANGED
|
@@ -17,13 +17,13 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
17
17
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
18
18
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
19
19
|
|
|
20
|
-
var styles = {"header":"navigation-bar-
|
|
20
|
+
var styles = {"header":"navigation-bar-private__header_17jby","backgroundImage":"navigation-bar-private__backgroundImage_17jby","mainLine":"navigation-bar-private__mainLine_17jby","mainLineSticky":"navigation-bar-private__mainLineSticky_17jby","mainLineWithImageBg":"navigation-bar-private__mainLineWithImageBg_17jby","content":"navigation-bar-private__content_17jby","withBothAddons":"navigation-bar-private__withBothAddons_17jby","withCompactTitle":"navigation-bar-private__withCompactTitle_17jby","children":"navigation-bar-private__children_17jby","title":"navigation-bar-private__title_17jby","contentOnBotDesktop":"navigation-bar-private__contentOnBotDesktop_17jby","contentOnBotMobile":"navigation-bar-private__contentOnBotMobile_17jby","subtitle":"navigation-bar-private__subtitle_17jby","addonsWrapper":"navigation-bar-private__addonsWrapper_17jby","rightAddons":"navigation-bar-private__rightAddons_17jby","addon":"navigation-bar-private__addon_17jby","bottomAddons":"navigation-bar-private__bottomAddons_17jby","closer":"navigation-bar-private__closer_17jby","left":"navigation-bar-private__left_17jby","center":"navigation-bar-private__center_17jby","trim":"navigation-bar-private__trim_17jby"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var ADDONS_HEIGHT = 48;
|
|
24
24
|
var NavigationBarPrivate = React.forwardRef(function (_a, ref) {
|
|
25
25
|
var _b, _c, _d;
|
|
26
|
-
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
26
|
+
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
|
|
27
27
|
var _h = React.useState(0), scrollTop = _h[0], setScrollTop = _h[1];
|
|
28
28
|
var _j = React.useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
|
|
29
29
|
var bottomContentRef = React.useRef(null);
|
|
@@ -102,15 +102,15 @@ var NavigationBarPrivate = React.forwardRef(function (_a, ref) {
|
|
|
102
102
|
_a[styles.withCompactTitle] = view === 'mobile' && compactTitle && hasContent,
|
|
103
103
|
_a)), "aria-hidden": hidden },
|
|
104
104
|
children && React__default.default.createElement("div", { className: styles.children }, children),
|
|
105
|
-
title && (React__default.default.createElement("div", { className: styles.title, "data-test-id": hidden ? undefined : coreComponentsShared.getDataTestId(dataTestId, 'title') }, title)),
|
|
106
|
-
compactTitle && subtitle && React__default.default.createElement("div", { className: styles.subtitle }, subtitle)));
|
|
105
|
+
title && (React__default.default.createElement("div", { className: cn__default.default(styles.title, titleClassName), "data-test-id": hidden ? undefined : coreComponentsShared.getDataTestId(dataTestId, 'title'), ref: titleRef }, title)),
|
|
106
|
+
compactTitle && subtitle && (React__default.default.createElement("div", { className: styles.subtitle, "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'subtitle') }, subtitle))));
|
|
107
107
|
};
|
|
108
108
|
var renderCloser = function () { return (React__default.default.createElement("div", { className: cn__default.default(styles.addon, styles.closer, closerClassName) },
|
|
109
109
|
React__default.default.createElement(components_closer_Component.Closer, { view: view, icon: closerIcon, dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'closer'), onClose: onClose }))); };
|
|
110
110
|
return (React__default.default.createElement("div", { ref: mergeRefs__default.default([ref, headerRef]), className: cn__default.default(styles.header, className, (_b = {}, _b[styles.backgroundImage] = imageUrl, _b)), "data-test-id": coreComponentsShared.getDataTestId(dataTestId), style: tslib.__assign(tslib.__assign({}, (imageUrl && { backgroundImage: "url(".concat(imageUrl, ")") })), (withAnimation &&
|
|
111
111
|
bottomContentRef.current && {
|
|
112
112
|
top: -bottomContentRef.current.scrollHeight,
|
|
113
|
-
})) },
|
|
113
|
+
})), "data-name": dataName },
|
|
114
114
|
React__default.default.createElement("div", { className: cn__default.default(styles.mainLine, (_c = {},
|
|
115
115
|
_c[styles.mainLineSticky] = withAnimation,
|
|
116
116
|
_c[styles.mainLineWithImageBg] = imageUrl,
|
|
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"component":"navigation-bar-
|
|
18
|
+
var styles = {"component":"navigation-bar-private__component_156jy","mobileComponent":"navigation-bar-private__mobileComponent_156jy","flex":"navigation-bar-private__flex_156jy","iconWrapper":"navigation-bar-private__iconWrapper_156jy","text":"navigation-bar-private__text_156jy","mobileWrapper":"navigation-bar-private__mobileWrapper_156jy"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var BackArrowAddon = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xa4w3 */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
--gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
27
27
|
|
|
28
28
|
/* новые значения, используйте их */
|
|
29
|
-
|
|
29
|
+
|
|
30
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
31
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
32
|
+
--gap-0: 0px;
|
|
30
33
|
--gap-8: var(--gap-xs);
|
|
31
34
|
--gap-12: var(--gap-s);
|
|
32
35
|
} :root {
|
|
@@ -36,48 +39,48 @@
|
|
|
36
39
|
|
|
37
40
|
/* back-arrow */
|
|
38
41
|
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
39
|
-
} .navigation-bar-
|
|
42
|
+
} .navigation-bar-private__component_156jy {
|
|
40
43
|
height: 100%;
|
|
41
44
|
background: var(--color-light-bg-primary-alpha-40);
|
|
42
45
|
-webkit-backdrop-filter: blur(10px);
|
|
43
46
|
backdrop-filter: blur(10px);
|
|
44
47
|
border-radius: var(--border-radius-pill);
|
|
45
48
|
min-width: 48px
|
|
46
|
-
} .navigation-bar-
|
|
49
|
+
} .navigation-bar-private__component_156jy svg > path {
|
|
47
50
|
transition: fill 0.2s ease;
|
|
48
51
|
fill: var(--color-light-neutral-translucent-1300);
|
|
49
|
-
} .navigation-bar-
|
|
52
|
+
} .navigation-bar-private__component_156jy:hover svg > path {
|
|
50
53
|
fill: var(--color-light-neutral-translucent-1300-hover);
|
|
51
|
-
} .navigation-bar-
|
|
54
|
+
} .navigation-bar-private__component_156jy:active svg > path {
|
|
52
55
|
fill: var(--color-light-neutral-translucent-1300-press);
|
|
53
|
-
} .navigation-bar-
|
|
56
|
+
} .navigation-bar-private__mobileComponent_156jy {
|
|
54
57
|
height: 32px;
|
|
55
58
|
min-width: 32px;
|
|
56
59
|
margin: var(--gap-0) var(--gap-8);
|
|
57
60
|
-webkit-backdrop-filter: none;
|
|
58
61
|
backdrop-filter: none;
|
|
59
62
|
background: none;
|
|
60
|
-
} .navigation-bar-
|
|
63
|
+
} .navigation-bar-private__flex_156jy {
|
|
61
64
|
display: flex;
|
|
62
65
|
align-items: center;
|
|
63
|
-
} .navigation-bar-
|
|
66
|
+
} .navigation-bar-private__iconWrapper_156jy {
|
|
64
67
|
display: inline-flex;
|
|
65
68
|
align-items: center;
|
|
66
69
|
justify-content: center;
|
|
67
70
|
height: 48px;
|
|
68
71
|
margin: var(--gap-0) var(--gap-8) var(--gap-0) var(--gap-12);
|
|
69
72
|
border-radius: var(--border-radius-circle)
|
|
70
|
-
} .navigation-bar-
|
|
73
|
+
} .navigation-bar-private__iconWrapper_156jy + .navigation-bar-private__text_156jy {
|
|
71
74
|
margin-right: var(--gap-12);
|
|
72
|
-
} .navigation-bar-
|
|
75
|
+
} .navigation-bar-private__mobileWrapper_156jy {
|
|
73
76
|
width: 32px;
|
|
74
77
|
height: 32px;
|
|
75
78
|
background: var(--color-light-neutral-translucent-100);
|
|
76
79
|
-webkit-backdrop-filter: blur(10px);
|
|
77
80
|
backdrop-filter: blur(10px);
|
|
78
81
|
margin: var(--gap-0)
|
|
79
|
-
} .navigation-bar-
|
|
82
|
+
} .navigation-bar-private__mobileWrapper_156jy + .navigation-bar-private__text_156jy {
|
|
80
83
|
margin: var(--gap-0) var(--gap-12) var(--gap-0) var(--gap-8);
|
|
81
|
-
} .navigation-bar-
|
|
84
|
+
} .navigation-bar-private__mobileWrapper_156jy svg > path {
|
|
82
85
|
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
83
86
|
}
|
|
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
15
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
16
16
|
|
|
17
|
-
var styles = {"closer":"navigation-bar-
|
|
17
|
+
var styles = {"closer":"navigation-bar-private__closer_196kg","button":"navigation-bar-private__button_196kg","mobile":"navigation-bar-private__mobile_196kg","sticky":"navigation-bar-private__sticky_196kg"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12zho */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
22
22
|
|
|
23
23
|
/* новые значения, используйте их */
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
26
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
27
|
+
--gap-0: 0px;
|
|
25
28
|
} :root {
|
|
26
29
|
} :root {
|
|
27
30
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
@@ -29,7 +32,7 @@
|
|
|
29
32
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
30
33
|
|
|
31
34
|
/* back-arrow */
|
|
32
|
-
} .navigation-bar-
|
|
35
|
+
} .navigation-bar-private__closer_196kg {
|
|
33
36
|
flex-shrink: 0;
|
|
34
37
|
width: 48px;
|
|
35
38
|
height: 48px;
|
|
@@ -37,17 +40,17 @@
|
|
|
37
40
|
display: flex;
|
|
38
41
|
align-items: center;
|
|
39
42
|
justify-content: center;
|
|
40
|
-
} .navigation-bar-
|
|
43
|
+
} .navigation-bar-private__button_196kg {
|
|
41
44
|
background: var(--color-light-bg-primary-alpha-40);
|
|
42
45
|
-webkit-backdrop-filter: blur(10px);
|
|
43
46
|
backdrop-filter: blur(10px);
|
|
44
47
|
color: var(--color-light-neutral-translucent-1300)
|
|
45
|
-
} .navigation-bar-
|
|
48
|
+
} .navigation-bar-private__button_196kg.navigation-bar-private__mobile_196kg {
|
|
46
49
|
background: var(--color-light-neutral-translucent-100);
|
|
47
50
|
color: var(--navigation-bar-closer-mobile-color);
|
|
48
|
-
} .navigation-bar-
|
|
51
|
+
} .navigation-bar-private__button_196kg.navigation-bar-private__button_196kg {
|
|
49
52
|
border-radius: var(--border-radius-circle);
|
|
50
|
-
} .navigation-bar-
|
|
53
|
+
} .navigation-bar-private__sticky_196kg {
|
|
51
54
|
position: sticky;
|
|
52
55
|
top: var(--gap-0);
|
|
53
56
|
}
|
package/cssm/Component.js
CHANGED
|
@@ -22,7 +22,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
22
22
|
var ADDONS_HEIGHT = 48;
|
|
23
23
|
var NavigationBarPrivate = React.forwardRef(function (_a, ref) {
|
|
24
24
|
var _b, _c, _d;
|
|
25
|
-
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
25
|
+
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
|
|
26
26
|
var _h = React.useState(0), scrollTop = _h[0], setScrollTop = _h[1];
|
|
27
27
|
var _j = React.useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
|
|
28
28
|
var bottomContentRef = React.useRef(null);
|
|
@@ -101,15 +101,15 @@ var NavigationBarPrivate = React.forwardRef(function (_a, ref) {
|
|
|
101
101
|
_a[styles__default.default.withCompactTitle] = view === 'mobile' && compactTitle && hasContent,
|
|
102
102
|
_a)), "aria-hidden": hidden },
|
|
103
103
|
children && React__default.default.createElement("div", { className: styles__default.default.children }, children),
|
|
104
|
-
title && (React__default.default.createElement("div", { className: styles__default.default.title, "data-test-id": hidden ? undefined : coreComponentsShared.getDataTestId(dataTestId, 'title') }, title)),
|
|
105
|
-
compactTitle && subtitle && React__default.default.createElement("div", { className: styles__default.default.subtitle }, subtitle)));
|
|
104
|
+
title && (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.title, titleClassName), "data-test-id": hidden ? undefined : coreComponentsShared.getDataTestId(dataTestId, 'title'), ref: titleRef }, title)),
|
|
105
|
+
compactTitle && subtitle && (React__default.default.createElement("div", { className: styles__default.default.subtitle, "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'subtitle') }, subtitle))));
|
|
106
106
|
};
|
|
107
107
|
var renderCloser = function () { return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.addon, styles__default.default.closer, closerClassName) },
|
|
108
108
|
React__default.default.createElement(components_closer_Component.Closer, { view: view, icon: closerIcon, dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'closer'), onClose: onClose }))); };
|
|
109
109
|
return (React__default.default.createElement("div", { ref: mergeRefs__default.default([ref, headerRef]), className: cn__default.default(styles__default.default.header, className, (_b = {}, _b[styles__default.default.backgroundImage] = imageUrl, _b)), "data-test-id": coreComponentsShared.getDataTestId(dataTestId), style: tslib.__assign(tslib.__assign({}, (imageUrl && { backgroundImage: "url(".concat(imageUrl, ")") })), (withAnimation &&
|
|
110
110
|
bottomContentRef.current && {
|
|
111
111
|
top: -bottomContentRef.current.scrollHeight,
|
|
112
|
-
})) },
|
|
112
|
+
})), "data-name": dataName },
|
|
113
113
|
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.mainLine, (_c = {},
|
|
114
114
|
_c[styles__default.default.mainLineSticky] = withAnimation,
|
|
115
115
|
_c[styles__default.default.mainLineWithImageBg] = imageUrl,
|
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
--gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
26
26
|
|
|
27
27
|
/* новые значения, используйте их */
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
30
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
31
|
+
--gap-0: 0px;
|
|
29
32
|
--gap-8: var(--gap-xs);
|
|
30
33
|
--gap-12: var(--gap-s);
|
|
31
34
|
} :root {
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
21
21
|
|
|
22
22
|
/* новые значения, используйте их */
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
25
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
26
|
+
--gap-0: 0px;
|
|
24
27
|
} :root {
|
|
25
28
|
} :root {
|
|
26
29
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
package/cssm/index.module.css
CHANGED
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
--gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
20
20
|
|
|
21
21
|
/* новые значения, используйте их */
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
24
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
25
|
+
--gap-0: 0px;
|
|
23
26
|
--gap-4: var(--gap-2xs);
|
|
24
27
|
--gap-12: var(--gap-s);
|
|
25
28
|
} :root {
|
package/cssm/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ReactNode } from "react";
|
|
3
|
+
import { ReactNode, RefObject } from "react";
|
|
4
4
|
import { BackArrowAddonProps } from "./components/back-arrow-addon/index";
|
|
5
5
|
import { CloserProps } from "./components/closer/index";
|
|
6
6
|
type NavigationBarPrivateProps = {
|
|
@@ -108,6 +108,18 @@ type NavigationBarPrivateProps = {
|
|
|
108
108
|
* Ссылка на родительскую ноду overflow: auto
|
|
109
109
|
*/
|
|
110
110
|
scrollableParentRef?: React.RefObject<HTMLDivElement>;
|
|
111
|
+
/**
|
|
112
|
+
* Data атрибут для компонента
|
|
113
|
+
*/
|
|
114
|
+
dataName?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Дополнительный класс для title
|
|
117
|
+
*/
|
|
118
|
+
titleClassName?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Ref для title элемента
|
|
121
|
+
*/
|
|
122
|
+
titleRef?: RefObject<HTMLDivElement>;
|
|
111
123
|
};
|
|
112
124
|
type ContentParams = {
|
|
113
125
|
extraClassName?: string;
|
package/cssm/vars.css
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
16
16
|
|
|
17
17
|
/* новые значения, используйте их */
|
|
18
|
+
|
|
19
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
20
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
18
21
|
} :root {
|
|
19
22
|
} :root {
|
|
20
23
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
package/esm/Component.js
CHANGED
|
@@ -7,13 +7,13 @@ import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
|
7
7
|
import { BackArrowAddon } from './components/back-arrow-addon/Component.js';
|
|
8
8
|
import { Closer } from './components/closer/Component.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"header":"navigation-bar-
|
|
10
|
+
var styles = {"header":"navigation-bar-private__header_17jby","backgroundImage":"navigation-bar-private__backgroundImage_17jby","mainLine":"navigation-bar-private__mainLine_17jby","mainLineSticky":"navigation-bar-private__mainLineSticky_17jby","mainLineWithImageBg":"navigation-bar-private__mainLineWithImageBg_17jby","content":"navigation-bar-private__content_17jby","withBothAddons":"navigation-bar-private__withBothAddons_17jby","withCompactTitle":"navigation-bar-private__withCompactTitle_17jby","children":"navigation-bar-private__children_17jby","title":"navigation-bar-private__title_17jby","contentOnBotDesktop":"navigation-bar-private__contentOnBotDesktop_17jby","contentOnBotMobile":"navigation-bar-private__contentOnBotMobile_17jby","subtitle":"navigation-bar-private__subtitle_17jby","addonsWrapper":"navigation-bar-private__addonsWrapper_17jby","rightAddons":"navigation-bar-private__rightAddons_17jby","addon":"navigation-bar-private__addon_17jby","bottomAddons":"navigation-bar-private__bottomAddons_17jby","closer":"navigation-bar-private__closer_17jby","left":"navigation-bar-private__left_17jby","center":"navigation-bar-private__center_17jby","trim":"navigation-bar-private__trim_17jby"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var ADDONS_HEIGHT = 48;
|
|
14
14
|
var NavigationBarPrivate = forwardRef(function (_a, ref) {
|
|
15
15
|
var _b, _c, _d;
|
|
16
|
-
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
16
|
+
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
|
|
17
17
|
var _h = useState(0), scrollTop = _h[0], setScrollTop = _h[1];
|
|
18
18
|
var _j = useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
|
|
19
19
|
var bottomContentRef = useRef(null);
|
|
@@ -92,15 +92,15 @@ var NavigationBarPrivate = forwardRef(function (_a, ref) {
|
|
|
92
92
|
_a[styles.withCompactTitle] = view === 'mobile' && compactTitle && hasContent,
|
|
93
93
|
_a)), "aria-hidden": hidden },
|
|
94
94
|
children && React.createElement("div", { className: styles.children }, children),
|
|
95
|
-
title && (React.createElement("div", { className: styles.title, "data-test-id": hidden ? undefined : getDataTestId(dataTestId, 'title') }, title)),
|
|
96
|
-
compactTitle && subtitle && React.createElement("div", { className: styles.subtitle }, subtitle)));
|
|
95
|
+
title && (React.createElement("div", { className: cn(styles.title, titleClassName), "data-test-id": hidden ? undefined : getDataTestId(dataTestId, 'title'), ref: titleRef }, title)),
|
|
96
|
+
compactTitle && subtitle && (React.createElement("div", { className: styles.subtitle, "data-test-id": getDataTestId(dataTestId, 'subtitle') }, subtitle))));
|
|
97
97
|
};
|
|
98
98
|
var renderCloser = function () { return (React.createElement("div", { className: cn(styles.addon, styles.closer, closerClassName) },
|
|
99
99
|
React.createElement(Closer, { view: view, icon: closerIcon, dataTestId: getDataTestId(dataTestId, 'closer'), onClose: onClose }))); };
|
|
100
100
|
return (React.createElement("div", { ref: mergeRefs([ref, headerRef]), className: cn(styles.header, className, (_b = {}, _b[styles.backgroundImage] = imageUrl, _b)), "data-test-id": getDataTestId(dataTestId), style: __assign(__assign({}, (imageUrl && { backgroundImage: "url(".concat(imageUrl, ")") })), (withAnimation &&
|
|
101
101
|
bottomContentRef.current && {
|
|
102
102
|
top: -bottomContentRef.current.scrollHeight,
|
|
103
|
-
})) },
|
|
103
|
+
})), "data-name": dataName },
|
|
104
104
|
React.createElement("div", { className: cn(styles.mainLine, (_c = {},
|
|
105
105
|
_c[styles.mainLineSticky] = withAnimation,
|
|
106
106
|
_c[styles.mainLineWithImageBg] = imageUrl,
|
|
@@ -6,7 +6,7 @@ import { Text } from '@alfalab/core-components-typography/esm';
|
|
|
6
6
|
import { ArrowLeftMediumMIcon } from '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
7
7
|
import { ArrowLeftMIcon } from '@alfalab/icons-glyph/ArrowLeftMIcon';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"navigation-bar-
|
|
9
|
+
var styles = {"component":"navigation-bar-private__component_156jy","mobileComponent":"navigation-bar-private__mobileComponent_156jy","flex":"navigation-bar-private__flex_156jy","iconWrapper":"navigation-bar-private__iconWrapper_156jy","text":"navigation-bar-private__text_156jy","mobileWrapper":"navigation-bar-private__mobileWrapper_156jy"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var BackArrowAddon = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xa4w3 */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
--gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
27
27
|
|
|
28
28
|
/* новые значения, используйте их */
|
|
29
|
-
|
|
29
|
+
|
|
30
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
31
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
32
|
+
--gap-0: 0px;
|
|
30
33
|
--gap-8: var(--gap-xs);
|
|
31
34
|
--gap-12: var(--gap-s);
|
|
32
35
|
} :root {
|
|
@@ -36,48 +39,48 @@
|
|
|
36
39
|
|
|
37
40
|
/* back-arrow */
|
|
38
41
|
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
39
|
-
} .navigation-bar-
|
|
42
|
+
} .navigation-bar-private__component_156jy {
|
|
40
43
|
height: 100%;
|
|
41
44
|
background: var(--color-light-bg-primary-alpha-40);
|
|
42
45
|
-webkit-backdrop-filter: blur(10px);
|
|
43
46
|
backdrop-filter: blur(10px);
|
|
44
47
|
border-radius: var(--border-radius-pill);
|
|
45
48
|
min-width: 48px
|
|
46
|
-
} .navigation-bar-
|
|
49
|
+
} .navigation-bar-private__component_156jy svg > path {
|
|
47
50
|
transition: fill 0.2s ease;
|
|
48
51
|
fill: var(--color-light-neutral-translucent-1300);
|
|
49
|
-
} .navigation-bar-
|
|
52
|
+
} .navigation-bar-private__component_156jy:hover svg > path {
|
|
50
53
|
fill: var(--color-light-neutral-translucent-1300-hover);
|
|
51
|
-
} .navigation-bar-
|
|
54
|
+
} .navigation-bar-private__component_156jy:active svg > path {
|
|
52
55
|
fill: var(--color-light-neutral-translucent-1300-press);
|
|
53
|
-
} .navigation-bar-
|
|
56
|
+
} .navigation-bar-private__mobileComponent_156jy {
|
|
54
57
|
height: 32px;
|
|
55
58
|
min-width: 32px;
|
|
56
59
|
margin: var(--gap-0) var(--gap-8);
|
|
57
60
|
-webkit-backdrop-filter: none;
|
|
58
61
|
backdrop-filter: none;
|
|
59
62
|
background: none;
|
|
60
|
-
} .navigation-bar-
|
|
63
|
+
} .navigation-bar-private__flex_156jy {
|
|
61
64
|
display: flex;
|
|
62
65
|
align-items: center;
|
|
63
|
-
} .navigation-bar-
|
|
66
|
+
} .navigation-bar-private__iconWrapper_156jy {
|
|
64
67
|
display: inline-flex;
|
|
65
68
|
align-items: center;
|
|
66
69
|
justify-content: center;
|
|
67
70
|
height: 48px;
|
|
68
71
|
margin: var(--gap-0) var(--gap-8) var(--gap-0) var(--gap-12);
|
|
69
72
|
border-radius: var(--border-radius-circle)
|
|
70
|
-
} .navigation-bar-
|
|
73
|
+
} .navigation-bar-private__iconWrapper_156jy + .navigation-bar-private__text_156jy {
|
|
71
74
|
margin-right: var(--gap-12);
|
|
72
|
-
} .navigation-bar-
|
|
75
|
+
} .navigation-bar-private__mobileWrapper_156jy {
|
|
73
76
|
width: 32px;
|
|
74
77
|
height: 32px;
|
|
75
78
|
background: var(--color-light-neutral-translucent-100);
|
|
76
79
|
-webkit-backdrop-filter: blur(10px);
|
|
77
80
|
backdrop-filter: blur(10px);
|
|
78
81
|
margin: var(--gap-0)
|
|
79
|
-
} .navigation-bar-
|
|
82
|
+
} .navigation-bar-private__mobileWrapper_156jy + .navigation-bar-private__text_156jy {
|
|
80
83
|
margin: var(--gap-0) var(--gap-12) var(--gap-0) var(--gap-8);
|
|
81
|
-
} .navigation-bar-
|
|
84
|
+
} .navigation-bar-private__mobileWrapper_156jy svg > path {
|
|
82
85
|
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
83
86
|
}
|
|
@@ -5,7 +5,7 @@ import { IconButton } from '@alfalab/core-components-icon-button/esm';
|
|
|
5
5
|
import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
6
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"closer":"navigation-bar-
|
|
8
|
+
var styles = {"closer":"navigation-bar-private__closer_196kg","button":"navigation-bar-private__button_196kg","mobile":"navigation-bar-private__mobile_196kg","sticky":"navigation-bar-private__sticky_196kg"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12zho */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
22
22
|
|
|
23
23
|
/* новые значения, используйте их */
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
26
|
+
/* stylelint-disable-next-line length-zero-no-unit */
|
|
27
|
+
--gap-0: 0px;
|
|
25
28
|
} :root {
|
|
26
29
|
} :root {
|
|
27
30
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
@@ -29,7 +32,7 @@
|
|
|
29
32
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
30
33
|
|
|
31
34
|
/* back-arrow */
|
|
32
|
-
} .navigation-bar-
|
|
35
|
+
} .navigation-bar-private__closer_196kg {
|
|
33
36
|
flex-shrink: 0;
|
|
34
37
|
width: 48px;
|
|
35
38
|
height: 48px;
|
|
@@ -37,17 +40,17 @@
|
|
|
37
40
|
display: flex;
|
|
38
41
|
align-items: center;
|
|
39
42
|
justify-content: center;
|
|
40
|
-
} .navigation-bar-
|
|
43
|
+
} .navigation-bar-private__button_196kg {
|
|
41
44
|
background: var(--color-light-bg-primary-alpha-40);
|
|
42
45
|
-webkit-backdrop-filter: blur(10px);
|
|
43
46
|
backdrop-filter: blur(10px);
|
|
44
47
|
color: var(--color-light-neutral-translucent-1300)
|
|
45
|
-
} .navigation-bar-
|
|
48
|
+
} .navigation-bar-private__button_196kg.navigation-bar-private__mobile_196kg {
|
|
46
49
|
background: var(--color-light-neutral-translucent-100);
|
|
47
50
|
color: var(--navigation-bar-closer-mobile-color);
|
|
48
|
-
} .navigation-bar-
|
|
51
|
+
} .navigation-bar-private__button_196kg.navigation-bar-private__button_196kg {
|
|
49
52
|
border-radius: var(--border-radius-circle);
|
|
50
|
-
} .navigation-bar-
|
|
53
|
+
} .navigation-bar-private__sticky_196kg {
|
|
51
54
|
position: sticky;
|
|
52
55
|
top: var(--gap-0);
|
|
53
56
|
}
|