@alfalab/core-components-navigation-bar 0.8.2 → 0.8.3
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 +1 -1
- package/components/back-arrow-addon/Component.d.ts +1 -1
- package/components/back-arrow-addon/Component.js +5 -4
- package/components/back-arrow-addon/index.css +15 -13
- package/components/closer/Component.js +1 -1
- package/components/closer/index.css +6 -6
- package/cssm/components/back-arrow-addon/Component.d.ts +1 -1
- package/cssm/components/back-arrow-addon/Component.js +4 -3
- package/cssm/components/back-arrow-addon/index.module.css +3 -1
- package/esm/Component.js +1 -1
- package/esm/components/back-arrow-addon/Component.d.ts +1 -1
- package/esm/components/back-arrow-addon/Component.js +5 -4
- package/esm/components/back-arrow-addon/index.css +15 -13
- package/esm/components/closer/Component.js +1 -1
- package/esm/components/closer/index.css +6 -6
- package/esm/index.css +27 -27
- package/index.css +27 -27
- package/modern/Component.js +1 -1
- package/modern/components/back-arrow-addon/Component.d.ts +1 -1
- package/modern/components/back-arrow-addon/Component.js +5 -4
- package/modern/components/back-arrow-addon/index.css +15 -13
- package/modern/components/closer/Component.js +1 -1
- package/modern/components/closer/index.css +6 -6
- package/modern/index.css +27 -27
- package/package.json +1 -1
- package/src/components/back-arrow-addon/Component.tsx +6 -9
- package/src/components/back-arrow-addon/index.module.css +2 -0
package/Component.js
CHANGED
|
@@ -17,7 +17,7 @@ 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-
|
|
20
|
+
var styles = {"header":"navigation-bar__header_1jzhj","backgroundImage":"navigation-bar__backgroundImage_1jzhj","mainLine":"navigation-bar__mainLine_1jzhj","mainLineSticky":"navigation-bar__mainLineSticky_1jzhj","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1jzhj","content":"navigation-bar__content_1jzhj","withBothAddons":"navigation-bar__withBothAddons_1jzhj","withCompactTitle":"navigation-bar__withCompactTitle_1jzhj","children":"navigation-bar__children_1jzhj","title":"navigation-bar__title_1jzhj","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1jzhj","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1jzhj","subtitle":"navigation-bar__subtitle_1jzhj","addonsWrapper":"navigation-bar__addonsWrapper_1jzhj","rightAddons":"navigation-bar__rightAddons_1jzhj","addon":"navigation-bar__addon_1jzhj","bottomAddons":"navigation-bar__bottomAddons_1jzhj","closer":"navigation-bar__closer_1jzhj","left":"navigation-bar__left_1jzhj","center":"navigation-bar__center_1jzhj","trim":"navigation-bar__trim_1jzhj"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var ADDONS_HEIGHT = 48;
|
|
@@ -15,20 +15,21 @@ 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-
|
|
18
|
+
var styles = {"component":"navigation-bar__component_1qr5s","mobileComponent":"navigation-bar__mobileComponent_1qr5s","flex":"navigation-bar__flex_1qr5s","iconWrapper":"navigation-bar__iconWrapper_1qr5s","text":"navigation-bar__text_1qr5s","mobileWrapper":"navigation-bar__mobileWrapper_1qr5s"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var BackArrowAddon = function (_a) {
|
|
22
22
|
var _b, _c;
|
|
23
23
|
var _d = _a.text, text = _d === void 0 ? 'Назад' : _d, onClick = _a.onClick, className = _a.className, _e = _a.textOpacity, textOpacity = _e === void 0 ? 1 : _e, view = _a.view, htmlAttributes = tslib.__rest(_a, ["text", "onClick", "className", "textOpacity", "view"]);
|
|
24
24
|
var Icon = view === 'desktop' ? ArrowLeftMediumMIcon.ArrowLeftMediumMIcon : ArrowLeftMIcon.ArrowLeftMIcon;
|
|
25
|
-
|
|
25
|
+
var isMobileView = view === 'mobile';
|
|
26
|
+
return (React__default.default.createElement(desktop.ButtonDesktop, tslib.__assign({ view: 'ghost', size: isMobileView ? 'xxs' : 's', onClick: onClick, "aria-label": '\u043D\u0430\u0437\u0430\u0434', className: cn__default.default(styles.component, (_b = {}, _b[styles.mobileComponent] = isMobileView, _b), className) }, htmlAttributes),
|
|
26
27
|
React__default.default.createElement("div", { className: styles.flex },
|
|
27
28
|
React__default.default.createElement("div", { className: cn__default.default(styles.iconWrapper, (_c = {},
|
|
28
|
-
_c[styles.mobileWrapper] =
|
|
29
|
+
_c[styles.mobileWrapper] = isMobileView,
|
|
29
30
|
_c)) },
|
|
30
31
|
React__default.default.createElement(Icon, null)),
|
|
31
|
-
textOpacity > 0 && (React__default.default.createElement(coreComponentsTypography.Typography.Text, { className: styles.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));
|
|
32
|
+
textOpacity > 0 && text && (React__default.default.createElement(coreComponentsTypography.Typography.Text, { className: styles.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
exports.BackArrowAddon = BackArrowAddon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hp61 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,46 +24,48 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__component_1qr5s {
|
|
28
28
|
height: 100%;
|
|
29
29
|
background: var(--color-light-bg-primary-alpha-40);
|
|
30
30
|
-webkit-backdrop-filter: blur(10px);
|
|
31
31
|
backdrop-filter: blur(10px);
|
|
32
|
-
border-radius: var(--border-radius-pill)
|
|
33
|
-
|
|
32
|
+
border-radius: var(--border-radius-pill);
|
|
33
|
+
min-width: 48px
|
|
34
|
+
} .navigation-bar__component_1qr5s svg > path {
|
|
34
35
|
transition: fill 0.2s ease;
|
|
35
36
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
37
|
+
} .navigation-bar__component_1qr5s:hover svg > path {
|
|
37
38
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
39
|
+
} .navigation-bar__component_1qr5s:active svg > path {
|
|
39
40
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__mobileComponent_1qr5s {
|
|
41
42
|
height: 32px;
|
|
43
|
+
min-width: 32px;
|
|
42
44
|
margin: 0 var(--gap-xs);
|
|
43
45
|
-webkit-backdrop-filter: none;
|
|
44
46
|
backdrop-filter: none;
|
|
45
47
|
background: none;
|
|
46
|
-
} .navigation-
|
|
48
|
+
} .navigation-bar__flex_1qr5s {
|
|
47
49
|
display: flex;
|
|
48
50
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
51
|
+
} .navigation-bar__iconWrapper_1qr5s {
|
|
50
52
|
display: inline-flex;
|
|
51
53
|
align-items: center;
|
|
52
54
|
justify-content: center;
|
|
53
55
|
height: 48px;
|
|
54
56
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
55
57
|
border-radius: var(--border-radius-circle)
|
|
56
|
-
} .navigation-
|
|
58
|
+
} .navigation-bar__iconWrapper_1qr5s + .navigation-bar__text_1qr5s {
|
|
57
59
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
60
|
+
} .navigation-bar__mobileWrapper_1qr5s {
|
|
59
61
|
width: 32px;
|
|
60
62
|
height: 32px;
|
|
61
63
|
background: var(--color-light-neutral-translucent-100);
|
|
62
64
|
-webkit-backdrop-filter: blur(10px);
|
|
63
65
|
backdrop-filter: blur(10px);
|
|
64
66
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__mobileWrapper_1qr5s + .navigation-bar__text_1qr5s {
|
|
66
68
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__mobileWrapper_1qr5s svg > path {
|
|
68
70
|
fill: var(--color-light-neutral-translucent-700);
|
|
69
71
|
}
|
|
@@ -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-
|
|
17
|
+
var styles = {"closer":"navigation-bar__closer_tf80q","button":"navigation-bar__button_tf80q","mobile":"navigation-bar__mobile_tf80q","sticky":"navigation-bar__sticky_tf80q"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ply5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__closer_tf80q {
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
width: 48px;
|
|
28
28
|
height: 48px;
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
33
|
+
} .navigation-bar__button_tf80q {
|
|
34
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
35
|
-webkit-backdrop-filter: blur(10px);
|
|
36
36
|
backdrop-filter: blur(10px);
|
|
37
37
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__button_tf80q.navigation-bar__mobile_tf80q {
|
|
39
39
|
background: var(--color-light-neutral-translucent-100);
|
|
40
40
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__button_tf80q.navigation-bar__button_tf80q {
|
|
42
42
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__sticky_tf80q {
|
|
44
44
|
position: sticky;
|
|
45
45
|
top: 0;
|
|
46
46
|
}
|
|
@@ -21,13 +21,14 @@ var BackArrowAddon = function (_a) {
|
|
|
21
21
|
var _b, _c;
|
|
22
22
|
var _d = _a.text, text = _d === void 0 ? 'Назад' : _d, onClick = _a.onClick, className = _a.className, _e = _a.textOpacity, textOpacity = _e === void 0 ? 1 : _e, view = _a.view, htmlAttributes = tslib.__rest(_a, ["text", "onClick", "className", "textOpacity", "view"]);
|
|
23
23
|
var Icon = view === 'desktop' ? ArrowLeftMediumMIcon.ArrowLeftMediumMIcon : ArrowLeftMIcon.ArrowLeftMIcon;
|
|
24
|
-
|
|
24
|
+
var isMobileView = view === 'mobile';
|
|
25
|
+
return (React__default.default.createElement(desktop.ButtonDesktop, tslib.__assign({ view: 'ghost', size: isMobileView ? 'xxs' : 's', onClick: onClick, "aria-label": '\u043D\u0430\u0437\u0430\u0434', className: cn__default.default(styles__default.default.component, (_b = {}, _b[styles__default.default.mobileComponent] = isMobileView, _b), className) }, htmlAttributes),
|
|
25
26
|
React__default.default.createElement("div", { className: styles__default.default.flex },
|
|
26
27
|
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.iconWrapper, (_c = {},
|
|
27
|
-
_c[styles__default.default.mobileWrapper] =
|
|
28
|
+
_c[styles__default.default.mobileWrapper] = isMobileView,
|
|
28
29
|
_c)) },
|
|
29
30
|
React__default.default.createElement(Icon, null)),
|
|
30
|
-
textOpacity > 0 && (React__default.default.createElement(coreComponentsTypography.Typography.Text, { className: styles__default.default.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));
|
|
31
|
+
textOpacity > 0 && text && (React__default.default.createElement(coreComponentsTypography.Typography.Text, { className: styles__default.default.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
exports.BackArrowAddon = BackArrowAddon;
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
background: var(--color-light-bg-primary-alpha-40);
|
|
29
29
|
-webkit-backdrop-filter: blur(10px);
|
|
30
30
|
backdrop-filter: blur(10px);
|
|
31
|
-
border-radius: var(--border-radius-pill)
|
|
31
|
+
border-radius: var(--border-radius-pill);
|
|
32
|
+
min-width: 48px
|
|
32
33
|
} .component svg > path {
|
|
33
34
|
transition: fill 0.2s ease;
|
|
34
35
|
fill: var(--color-light-neutral-1500);
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
fill: var(--color-light-neutral-1500-press);
|
|
39
40
|
} .mobileComponent {
|
|
40
41
|
height: 32px;
|
|
42
|
+
min-width: 32px;
|
|
41
43
|
margin: 0 var(--gap-xs);
|
|
42
44
|
-webkit-backdrop-filter: none;
|
|
43
45
|
backdrop-filter: none;
|
package/esm/Component.js
CHANGED
|
@@ -7,7 +7,7 @@ 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-
|
|
10
|
+
var styles = {"header":"navigation-bar__header_1jzhj","backgroundImage":"navigation-bar__backgroundImage_1jzhj","mainLine":"navigation-bar__mainLine_1jzhj","mainLineSticky":"navigation-bar__mainLineSticky_1jzhj","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1jzhj","content":"navigation-bar__content_1jzhj","withBothAddons":"navigation-bar__withBothAddons_1jzhj","withCompactTitle":"navigation-bar__withCompactTitle_1jzhj","children":"navigation-bar__children_1jzhj","title":"navigation-bar__title_1jzhj","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1jzhj","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1jzhj","subtitle":"navigation-bar__subtitle_1jzhj","addonsWrapper":"navigation-bar__addonsWrapper_1jzhj","rightAddons":"navigation-bar__rightAddons_1jzhj","addon":"navigation-bar__addon_1jzhj","bottomAddons":"navigation-bar__bottomAddons_1jzhj","closer":"navigation-bar__closer_1jzhj","left":"navigation-bar__left_1jzhj","center":"navigation-bar__center_1jzhj","trim":"navigation-bar__trim_1jzhj"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var ADDONS_HEIGHT = 48;
|
|
@@ -6,20 +6,21 @@ import { Typography } 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-
|
|
9
|
+
var styles = {"component":"navigation-bar__component_1qr5s","mobileComponent":"navigation-bar__mobileComponent_1qr5s","flex":"navigation-bar__flex_1qr5s","iconWrapper":"navigation-bar__iconWrapper_1qr5s","text":"navigation-bar__text_1qr5s","mobileWrapper":"navigation-bar__mobileWrapper_1qr5s"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var BackArrowAddon = function (_a) {
|
|
13
13
|
var _b, _c;
|
|
14
14
|
var _d = _a.text, text = _d === void 0 ? 'Назад' : _d, onClick = _a.onClick, className = _a.className, _e = _a.textOpacity, textOpacity = _e === void 0 ? 1 : _e, view = _a.view, htmlAttributes = __rest(_a, ["text", "onClick", "className", "textOpacity", "view"]);
|
|
15
15
|
var Icon = view === 'desktop' ? ArrowLeftMediumMIcon : ArrowLeftMIcon;
|
|
16
|
-
|
|
16
|
+
var isMobileView = view === 'mobile';
|
|
17
|
+
return (React.createElement(ButtonDesktop, __assign({ view: 'ghost', size: isMobileView ? 'xxs' : 's', onClick: onClick, "aria-label": '\u043D\u0430\u0437\u0430\u0434', className: cn(styles.component, (_b = {}, _b[styles.mobileComponent] = isMobileView, _b), className) }, htmlAttributes),
|
|
17
18
|
React.createElement("div", { className: styles.flex },
|
|
18
19
|
React.createElement("div", { className: cn(styles.iconWrapper, (_c = {},
|
|
19
|
-
_c[styles.mobileWrapper] =
|
|
20
|
+
_c[styles.mobileWrapper] = isMobileView,
|
|
20
21
|
_c)) },
|
|
21
22
|
React.createElement(Icon, null)),
|
|
22
|
-
textOpacity > 0 && (React.createElement(Typography.Text, { className: styles.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));
|
|
23
|
+
textOpacity > 0 && text && (React.createElement(Typography.Text, { className: styles.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
export { BackArrowAddon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hp61 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,46 +24,48 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__component_1qr5s {
|
|
28
28
|
height: 100%;
|
|
29
29
|
background: var(--color-light-bg-primary-alpha-40);
|
|
30
30
|
-webkit-backdrop-filter: blur(10px);
|
|
31
31
|
backdrop-filter: blur(10px);
|
|
32
|
-
border-radius: var(--border-radius-pill)
|
|
33
|
-
|
|
32
|
+
border-radius: var(--border-radius-pill);
|
|
33
|
+
min-width: 48px
|
|
34
|
+
} .navigation-bar__component_1qr5s svg > path {
|
|
34
35
|
transition: fill 0.2s ease;
|
|
35
36
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
37
|
+
} .navigation-bar__component_1qr5s:hover svg > path {
|
|
37
38
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
39
|
+
} .navigation-bar__component_1qr5s:active svg > path {
|
|
39
40
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__mobileComponent_1qr5s {
|
|
41
42
|
height: 32px;
|
|
43
|
+
min-width: 32px;
|
|
42
44
|
margin: 0 var(--gap-xs);
|
|
43
45
|
-webkit-backdrop-filter: none;
|
|
44
46
|
backdrop-filter: none;
|
|
45
47
|
background: none;
|
|
46
|
-
} .navigation-
|
|
48
|
+
} .navigation-bar__flex_1qr5s {
|
|
47
49
|
display: flex;
|
|
48
50
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
51
|
+
} .navigation-bar__iconWrapper_1qr5s {
|
|
50
52
|
display: inline-flex;
|
|
51
53
|
align-items: center;
|
|
52
54
|
justify-content: center;
|
|
53
55
|
height: 48px;
|
|
54
56
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
55
57
|
border-radius: var(--border-radius-circle)
|
|
56
|
-
} .navigation-
|
|
58
|
+
} .navigation-bar__iconWrapper_1qr5s + .navigation-bar__text_1qr5s {
|
|
57
59
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
60
|
+
} .navigation-bar__mobileWrapper_1qr5s {
|
|
59
61
|
width: 32px;
|
|
60
62
|
height: 32px;
|
|
61
63
|
background: var(--color-light-neutral-translucent-100);
|
|
62
64
|
-webkit-backdrop-filter: blur(10px);
|
|
63
65
|
backdrop-filter: blur(10px);
|
|
64
66
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__mobileWrapper_1qr5s + .navigation-bar__text_1qr5s {
|
|
66
68
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__mobileWrapper_1qr5s svg > path {
|
|
68
70
|
fill: var(--color-light-neutral-translucent-700);
|
|
69
71
|
}
|
|
@@ -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-
|
|
8
|
+
var styles = {"closer":"navigation-bar__closer_tf80q","button":"navigation-bar__button_tf80q","mobile":"navigation-bar__mobile_tf80q","sticky":"navigation-bar__sticky_tf80q"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ply5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__closer_tf80q {
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
width: 48px;
|
|
28
28
|
height: 48px;
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
33
|
+
} .navigation-bar__button_tf80q {
|
|
34
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
35
|
-webkit-backdrop-filter: blur(10px);
|
|
36
36
|
backdrop-filter: blur(10px);
|
|
37
37
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__button_tf80q.navigation-bar__mobile_tf80q {
|
|
39
39
|
background: var(--color-light-neutral-translucent-100);
|
|
40
40
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__button_tf80q.navigation-bar__button_tf80q {
|
|
42
42
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__sticky_tf80q {
|
|
44
44
|
position: sticky;
|
|
45
45
|
top: 0;
|
|
46
46
|
}
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wm3mp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e;
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_1jzhj {
|
|
22
22
|
width: 100%;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__header_1jzhj.navigation-bar__header_1jzhj.navigation-bar__backgroundImage_1jzhj {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1jzhj {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: stretch;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
z-index: 1;
|
|
34
34
|
background-color: inherit;
|
|
35
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__mainLineSticky_1jzhj {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1jzhj {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1jzhj {
|
|
41
41
|
color: var(--color-light-text-primary);
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-flow: column nowrap;
|
|
@@ -46,27 +46,27 @@
|
|
|
46
46
|
align-self: baseline;
|
|
47
47
|
box-sizing: border-box;
|
|
48
48
|
min-height: 48px
|
|
49
|
-
} .navigation-
|
|
50
|
-
.navigation-
|
|
49
|
+
} .navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj,
|
|
50
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj {
|
|
51
51
|
font-size: 16px;
|
|
52
52
|
line-height: 20px;
|
|
53
53
|
font-weight: 500;
|
|
54
54
|
align-self: center;
|
|
55
55
|
padding-top: var(--gap-2xs);
|
|
56
56
|
padding-bottom: var(--gap-2xs)
|
|
57
|
-
} .navigation-
|
|
58
|
-
.navigation-
|
|
59
|
-
.navigation-
|
|
60
|
-
.navigation-
|
|
57
|
+
} .navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj > .navigation-bar__children_1jzhj,
|
|
58
|
+
.navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj > .navigation-bar__title_1jzhj,
|
|
59
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj > .navigation-bar__children_1jzhj,
|
|
60
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj > .navigation-bar__title_1jzhj {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1jzhj.navigation-bar__contentOnBotDesktop_1jzhj.navigation-bar__contentOnBotDesktop_1jzhj {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1jzhj.navigation-bar__contentOnBotMobile_1jzhj.navigation-bar__contentOnBotMobile_1jzhj {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1jzhj {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1jzhj {
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
line-height: 20px;
|
|
72
72
|
font-weight: 400;
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
|
|
78
78
|
color: var(--color-light-text-secondary);
|
|
79
79
|
word-break: break-all;
|
|
80
|
-
} .navigation-
|
|
80
|
+
} .navigation-bar__addonsWrapper_1jzhj {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1jzhj {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1jzhj {
|
|
85
85
|
min-width: 48px;
|
|
86
86
|
height: 48px;
|
|
87
87
|
display: flex;
|
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
align-items: center;
|
|
90
90
|
flex-shrink: 0;
|
|
91
91
|
pointer-events: all;
|
|
92
|
-
} .navigation-
|
|
92
|
+
} .navigation-bar__bottomAddons_1jzhj {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1jzhj {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1jzhj {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1jzhj {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1jzhj {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1jzhj .navigation-bar__title_1jzhj,
|
|
103
|
+
.navigation-bar__trim_1jzhj .navigation-bar__children_1jzhj {
|
|
104
104
|
-webkit-line-clamp: 2;
|
|
105
105
|
display: -webkit-box;
|
|
106
106
|
-webkit-box-orient: vertical;
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wm3mp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e;
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_1jzhj {
|
|
22
22
|
width: 100%;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__header_1jzhj.navigation-bar__header_1jzhj.navigation-bar__backgroundImage_1jzhj {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1jzhj {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: stretch;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
z-index: 1;
|
|
34
34
|
background-color: inherit;
|
|
35
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__mainLineSticky_1jzhj {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1jzhj {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1jzhj {
|
|
41
41
|
color: var(--color-light-text-primary);
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-flow: column nowrap;
|
|
@@ -46,27 +46,27 @@
|
|
|
46
46
|
align-self: baseline;
|
|
47
47
|
box-sizing: border-box;
|
|
48
48
|
min-height: 48px
|
|
49
|
-
} .navigation-
|
|
50
|
-
.navigation-
|
|
49
|
+
} .navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj,
|
|
50
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj {
|
|
51
51
|
font-size: 16px;
|
|
52
52
|
line-height: 20px;
|
|
53
53
|
font-weight: 500;
|
|
54
54
|
align-self: center;
|
|
55
55
|
padding-top: var(--gap-2xs);
|
|
56
56
|
padding-bottom: var(--gap-2xs)
|
|
57
|
-
} .navigation-
|
|
58
|
-
.navigation-
|
|
59
|
-
.navigation-
|
|
60
|
-
.navigation-
|
|
57
|
+
} .navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj > .navigation-bar__children_1jzhj,
|
|
58
|
+
.navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj > .navigation-bar__title_1jzhj,
|
|
59
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj > .navigation-bar__children_1jzhj,
|
|
60
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj > .navigation-bar__title_1jzhj {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1jzhj.navigation-bar__contentOnBotDesktop_1jzhj.navigation-bar__contentOnBotDesktop_1jzhj {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1jzhj.navigation-bar__contentOnBotMobile_1jzhj.navigation-bar__contentOnBotMobile_1jzhj {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1jzhj {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1jzhj {
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
line-height: 20px;
|
|
72
72
|
font-weight: 400;
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
|
|
78
78
|
color: var(--color-light-text-secondary);
|
|
79
79
|
word-break: break-all;
|
|
80
|
-
} .navigation-
|
|
80
|
+
} .navigation-bar__addonsWrapper_1jzhj {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1jzhj {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1jzhj {
|
|
85
85
|
min-width: 48px;
|
|
86
86
|
height: 48px;
|
|
87
87
|
display: flex;
|
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
align-items: center;
|
|
90
90
|
flex-shrink: 0;
|
|
91
91
|
pointer-events: all;
|
|
92
|
-
} .navigation-
|
|
92
|
+
} .navigation-bar__bottomAddons_1jzhj {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1jzhj {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1jzhj {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1jzhj {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1jzhj {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1jzhj .navigation-bar__title_1jzhj,
|
|
103
|
+
.navigation-bar__trim_1jzhj .navigation-bar__children_1jzhj {
|
|
104
104
|
-webkit-line-clamp: 2;
|
|
105
105
|
display: -webkit-box;
|
|
106
106
|
-webkit-box-orient: vertical;
|
package/modern/Component.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
|
6
6
|
import { BackArrowAddon } from './components/back-arrow-addon/Component.js';
|
|
7
7
|
import { Closer } from './components/closer/Component.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"header":"navigation-
|
|
9
|
+
const styles = {"header":"navigation-bar__header_1jzhj","backgroundImage":"navigation-bar__backgroundImage_1jzhj","mainLine":"navigation-bar__mainLine_1jzhj","mainLineSticky":"navigation-bar__mainLineSticky_1jzhj","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1jzhj","content":"navigation-bar__content_1jzhj","withBothAddons":"navigation-bar__withBothAddons_1jzhj","withCompactTitle":"navigation-bar__withCompactTitle_1jzhj","children":"navigation-bar__children_1jzhj","title":"navigation-bar__title_1jzhj","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1jzhj","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1jzhj","subtitle":"navigation-bar__subtitle_1jzhj","addonsWrapper":"navigation-bar__addonsWrapper_1jzhj","rightAddons":"navigation-bar__rightAddons_1jzhj","addon":"navigation-bar__addon_1jzhj","bottomAddons":"navigation-bar__bottomAddons_1jzhj","closer":"navigation-bar__closer_1jzhj","left":"navigation-bar__left_1jzhj","center":"navigation-bar__center_1jzhj","trim":"navigation-bar__trim_1jzhj"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
/* eslint-disable complexity */
|
|
@@ -5,18 +5,19 @@ import { Typography } from '@alfalab/core-components-typography/modern';
|
|
|
5
5
|
import { ArrowLeftMediumMIcon } from '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
6
6
|
import { ArrowLeftMIcon } from '@alfalab/icons-glyph/ArrowLeftMIcon';
|
|
7
7
|
|
|
8
|
-
const styles = {"component":"navigation-
|
|
8
|
+
const styles = {"component":"navigation-bar__component_1qr5s","mobileComponent":"navigation-bar__mobileComponent_1qr5s","flex":"navigation-bar__flex_1qr5s","iconWrapper":"navigation-bar__iconWrapper_1qr5s","text":"navigation-bar__text_1qr5s","mobileWrapper":"navigation-bar__mobileWrapper_1qr5s"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const BackArrowAddon = ({ text = 'Назад', onClick, className, textOpacity = 1, view, ...htmlAttributes }) => {
|
|
12
12
|
const Icon = view === 'desktop' ? ArrowLeftMediumMIcon : ArrowLeftMIcon;
|
|
13
|
-
|
|
13
|
+
const isMobileView = view === 'mobile';
|
|
14
|
+
return (React.createElement(ButtonDesktop, { view: 'ghost', size: isMobileView ? 'xxs' : 's', onClick: onClick, "aria-label": '\u043D\u0430\u0437\u0430\u0434', className: cn(styles.component, { [styles.mobileComponent]: isMobileView }, className), ...htmlAttributes },
|
|
14
15
|
React.createElement("div", { className: styles.flex },
|
|
15
16
|
React.createElement("div", { className: cn(styles.iconWrapper, {
|
|
16
|
-
[styles.mobileWrapper]:
|
|
17
|
+
[styles.mobileWrapper]: isMobileView,
|
|
17
18
|
}) },
|
|
18
19
|
React.createElement(Icon, null)),
|
|
19
|
-
textOpacity > 0 && (React.createElement(Typography.Text, { className: styles.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));
|
|
20
|
+
textOpacity > 0 && text && (React.createElement(Typography.Text, { className: styles.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export { BackArrowAddon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hp61 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,46 +24,48 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__component_1qr5s {
|
|
28
28
|
height: 100%;
|
|
29
29
|
background: var(--color-light-bg-primary-alpha-40);
|
|
30
30
|
-webkit-backdrop-filter: blur(10px);
|
|
31
31
|
backdrop-filter: blur(10px);
|
|
32
|
-
border-radius: var(--border-radius-pill)
|
|
33
|
-
|
|
32
|
+
border-radius: var(--border-radius-pill);
|
|
33
|
+
min-width: 48px
|
|
34
|
+
} .navigation-bar__component_1qr5s svg > path {
|
|
34
35
|
transition: fill 0.2s ease;
|
|
35
36
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
37
|
+
} .navigation-bar__component_1qr5s:hover svg > path {
|
|
37
38
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
39
|
+
} .navigation-bar__component_1qr5s:active svg > path {
|
|
39
40
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__mobileComponent_1qr5s {
|
|
41
42
|
height: 32px;
|
|
43
|
+
min-width: 32px;
|
|
42
44
|
margin: 0 var(--gap-xs);
|
|
43
45
|
-webkit-backdrop-filter: none;
|
|
44
46
|
backdrop-filter: none;
|
|
45
47
|
background: none;
|
|
46
|
-
} .navigation-
|
|
48
|
+
} .navigation-bar__flex_1qr5s {
|
|
47
49
|
display: flex;
|
|
48
50
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
51
|
+
} .navigation-bar__iconWrapper_1qr5s {
|
|
50
52
|
display: inline-flex;
|
|
51
53
|
align-items: center;
|
|
52
54
|
justify-content: center;
|
|
53
55
|
height: 48px;
|
|
54
56
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
55
57
|
border-radius: var(--border-radius-circle)
|
|
56
|
-
} .navigation-
|
|
58
|
+
} .navigation-bar__iconWrapper_1qr5s + .navigation-bar__text_1qr5s {
|
|
57
59
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
60
|
+
} .navigation-bar__mobileWrapper_1qr5s {
|
|
59
61
|
width: 32px;
|
|
60
62
|
height: 32px;
|
|
61
63
|
background: var(--color-light-neutral-translucent-100);
|
|
62
64
|
-webkit-backdrop-filter: blur(10px);
|
|
63
65
|
backdrop-filter: blur(10px);
|
|
64
66
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__mobileWrapper_1qr5s + .navigation-bar__text_1qr5s {
|
|
66
68
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__mobileWrapper_1qr5s svg > path {
|
|
68
70
|
fill: var(--color-light-neutral-translucent-700);
|
|
69
71
|
}
|
|
@@ -4,7 +4,7 @@ import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
|
4
4
|
import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
5
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
6
6
|
|
|
7
|
-
const styles = {"closer":"navigation-
|
|
7
|
+
const styles = {"closer":"navigation-bar__closer_tf80q","button":"navigation-bar__button_tf80q","mobile":"navigation-bar__mobile_tf80q","sticky":"navigation-bar__sticky_tf80q"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Closer = ({ view, className, sticky, icon = view === 'desktop' ? CrossHeavyMIcon : CrossMIcon, dataTestId, onClose, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ply5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__closer_tf80q {
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
width: 48px;
|
|
28
28
|
height: 48px;
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
33
|
+
} .navigation-bar__button_tf80q {
|
|
34
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
35
|
-webkit-backdrop-filter: blur(10px);
|
|
36
36
|
backdrop-filter: blur(10px);
|
|
37
37
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__button_tf80q.navigation-bar__mobile_tf80q {
|
|
39
39
|
background: var(--color-light-neutral-translucent-100);
|
|
40
40
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__button_tf80q.navigation-bar__button_tf80q {
|
|
42
42
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__sticky_tf80q {
|
|
44
44
|
position: sticky;
|
|
45
45
|
top: 0;
|
|
46
46
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wm3mp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e;
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_1jzhj {
|
|
22
22
|
width: 100%;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__header_1jzhj.navigation-bar__header_1jzhj.navigation-bar__backgroundImage_1jzhj {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1jzhj {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: stretch;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
z-index: 1;
|
|
34
34
|
background-color: inherit;
|
|
35
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__mainLineSticky_1jzhj {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1jzhj {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1jzhj {
|
|
41
41
|
color: var(--color-light-text-primary);
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-flow: column nowrap;
|
|
@@ -46,27 +46,27 @@
|
|
|
46
46
|
align-self: baseline;
|
|
47
47
|
box-sizing: border-box;
|
|
48
48
|
min-height: 48px
|
|
49
|
-
} .navigation-
|
|
50
|
-
.navigation-
|
|
49
|
+
} .navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj,
|
|
50
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj {
|
|
51
51
|
font-size: 16px;
|
|
52
52
|
line-height: 20px;
|
|
53
53
|
font-weight: 500;
|
|
54
54
|
align-self: center;
|
|
55
55
|
padding-top: var(--gap-2xs);
|
|
56
56
|
padding-bottom: var(--gap-2xs)
|
|
57
|
-
} .navigation-
|
|
58
|
-
.navigation-
|
|
59
|
-
.navigation-
|
|
60
|
-
.navigation-
|
|
57
|
+
} .navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj > .navigation-bar__children_1jzhj,
|
|
58
|
+
.navigation-bar__content_1jzhj.navigation-bar__withBothAddons_1jzhj > .navigation-bar__title_1jzhj,
|
|
59
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj > .navigation-bar__children_1jzhj,
|
|
60
|
+
.navigation-bar__content_1jzhj.navigation-bar__withCompactTitle_1jzhj > .navigation-bar__title_1jzhj {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1jzhj.navigation-bar__contentOnBotDesktop_1jzhj.navigation-bar__contentOnBotDesktop_1jzhj {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1jzhj.navigation-bar__contentOnBotMobile_1jzhj.navigation-bar__contentOnBotMobile_1jzhj {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1jzhj {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1jzhj {
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
line-height: 20px;
|
|
72
72
|
font-weight: 400;
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
|
|
78
78
|
color: var(--color-light-text-secondary);
|
|
79
79
|
word-break: break-all;
|
|
80
|
-
} .navigation-
|
|
80
|
+
} .navigation-bar__addonsWrapper_1jzhj {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1jzhj {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1jzhj {
|
|
85
85
|
min-width: 48px;
|
|
86
86
|
height: 48px;
|
|
87
87
|
display: flex;
|
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
align-items: center;
|
|
90
90
|
flex-shrink: 0;
|
|
91
91
|
pointer-events: all;
|
|
92
|
-
} .navigation-
|
|
92
|
+
} .navigation-bar__bottomAddons_1jzhj {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1jzhj {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1jzhj {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1jzhj {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1jzhj {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1jzhj .navigation-bar__title_1jzhj,
|
|
103
|
+
.navigation-bar__trim_1jzhj .navigation-bar__children_1jzhj {
|
|
104
104
|
-webkit-line-clamp: 2;
|
|
105
105
|
display: -webkit-box;
|
|
106
106
|
-webkit-box-orient: vertical;
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElem
|
|
|
12
12
|
/**
|
|
13
13
|
* Текст после иконки
|
|
14
14
|
*/
|
|
15
|
-
text?: string;
|
|
15
|
+
text?: string | null;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Дополнительный класс
|
|
@@ -44,29 +44,26 @@ export const BackArrowAddon: React.FC<BackArrowAddonProps> = ({
|
|
|
44
44
|
...htmlAttributes
|
|
45
45
|
}) => {
|
|
46
46
|
const Icon = view === 'desktop' ? ArrowLeftMediumMIcon : ArrowLeftMIcon;
|
|
47
|
+
const isMobileView = view === 'mobile';
|
|
47
48
|
|
|
48
49
|
return (
|
|
49
50
|
<ButtonDesktop
|
|
50
51
|
view='ghost'
|
|
51
|
-
size={
|
|
52
|
+
size={isMobileView ? 'xxs' : 's'}
|
|
52
53
|
onClick={onClick}
|
|
53
54
|
aria-label='назад'
|
|
54
|
-
className={cn(
|
|
55
|
-
styles.component,
|
|
56
|
-
{ [styles.mobileComponent]: view === 'mobile' },
|
|
57
|
-
className,
|
|
58
|
-
)}
|
|
55
|
+
className={cn(styles.component, { [styles.mobileComponent]: isMobileView }, className)}
|
|
59
56
|
{...htmlAttributes}
|
|
60
57
|
>
|
|
61
58
|
<div className={styles.flex}>
|
|
62
59
|
<div
|
|
63
60
|
className={cn(styles.iconWrapper, {
|
|
64
|
-
[styles.mobileWrapper]:
|
|
61
|
+
[styles.mobileWrapper]: isMobileView,
|
|
65
62
|
})}
|
|
66
63
|
>
|
|
67
64
|
<Icon />
|
|
68
65
|
</div>
|
|
69
|
-
{textOpacity > 0 && (
|
|
66
|
+
{textOpacity > 0 && text && (
|
|
70
67
|
<Typography.Text
|
|
71
68
|
className={styles.text}
|
|
72
69
|
view={view === 'desktop' ? 'primary-large' : 'component'}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
background: var(--color-light-bg-primary-alpha-40);
|
|
6
6
|
backdrop-filter: blur(10px);
|
|
7
7
|
border-radius: var(--border-radius-pill);
|
|
8
|
+
min-width: 48px;
|
|
8
9
|
|
|
9
10
|
& svg > path {
|
|
10
11
|
transition: fill 0.2s ease;
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
|
|
27
28
|
.mobileComponent {
|
|
28
29
|
height: 32px;
|
|
30
|
+
min-width: 32px;
|
|
29
31
|
margin: 0 var(--gap-xs);
|
|
30
32
|
backdrop-filter: none;
|
|
31
33
|
background: none;
|