@alfalab/core-components-navigation-bar 0.8.2 → 0.8.4
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 +22 -15
- package/components/closer/Component.js +1 -1
- package/components/closer/index.css +9 -7
- 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 +10 -3
- package/cssm/components/closer/index.module.css +3 -1
- package/cssm/index.module.css +1 -1
- package/cssm/vars.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 +22 -15
- package/esm/components/closer/Component.js +1 -1
- package/esm/components/closer/index.css +9 -7
- package/esm/index.css +28 -28
- package/index.css +28 -28
- 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 +22 -15
- package/modern/components/closer/Component.js +1 -1
- package/modern/components/closer/index.css +9 -7
- package/modern/index.css +28 -28
- package/package.json +3 -3
- package/src/components/back-arrow-addon/Component.tsx +6 -9
- package/src/components/back-arrow-addon/index.module.css +4 -1
- package/src/vars.css +3 -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_i8g5v","backgroundImage":"navigation-bar__backgroundImage_i8g5v","mainLine":"navigation-bar__mainLine_i8g5v","mainLineSticky":"navigation-bar__mainLineSticky_i8g5v","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_i8g5v","content":"navigation-bar__content_i8g5v","withBothAddons":"navigation-bar__withBothAddons_i8g5v","withCompactTitle":"navigation-bar__withCompactTitle_i8g5v","children":"navigation-bar__children_i8g5v","title":"navigation-bar__title_i8g5v","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_i8g5v","contentOnBotMobile":"navigation-bar__contentOnBotMobile_i8g5v","subtitle":"navigation-bar__subtitle_i8g5v","addonsWrapper":"navigation-bar__addonsWrapper_i8g5v","rightAddons":"navigation-bar__rightAddons_i8g5v","addon":"navigation-bar__addon_i8g5v","bottomAddons":"navigation-bar__bottomAddons_i8g5v","closer":"navigation-bar__closer_i8g5v","left":"navigation-bar__left_i8g5v","center":"navigation-bar__center_i8g5v","trim":"navigation-bar__trim_i8g5v"};
|
|
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_ferxi","mobileComponent":"navigation-bar__mobileComponent_ferxi","flex":"navigation-bar__flex_ferxi","iconWrapper":"navigation-bar__iconWrapper_ferxi","text":"navigation-bar__text_ferxi","mobileWrapper":"navigation-bar__mobileWrapper_ferxi"};
|
|
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,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: ffzxl */
|
|
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-1500: #0e0e0e;
|
|
5
5
|
--color-light-neutral-1500-hover: #3f3f45;
|
|
@@ -24,46 +24,53 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
}
|
|
27
|
+
} :root {
|
|
28
|
+
/* closer-mobile */
|
|
29
|
+
|
|
30
|
+
/* back-arrow */
|
|
31
|
+
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
32
|
+
} .navigation-bar__component_ferxi {
|
|
28
33
|
height: 100%;
|
|
29
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
30
35
|
-webkit-backdrop-filter: blur(10px);
|
|
31
36
|
backdrop-filter: blur(10px);
|
|
32
|
-
border-radius: var(--border-radius-pill)
|
|
33
|
-
|
|
37
|
+
border-radius: var(--border-radius-pill);
|
|
38
|
+
min-width: 48px
|
|
39
|
+
} .navigation-bar__component_ferxi svg > path {
|
|
34
40
|
transition: fill 0.2s ease;
|
|
35
41
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
42
|
+
} .navigation-bar__component_ferxi:hover svg > path {
|
|
37
43
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
44
|
+
} .navigation-bar__component_ferxi:active svg > path {
|
|
39
45
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
46
|
+
} .navigation-bar__mobileComponent_ferxi {
|
|
41
47
|
height: 32px;
|
|
48
|
+
min-width: 32px;
|
|
42
49
|
margin: 0 var(--gap-xs);
|
|
43
50
|
-webkit-backdrop-filter: none;
|
|
44
51
|
backdrop-filter: none;
|
|
45
52
|
background: none;
|
|
46
|
-
} .navigation-
|
|
53
|
+
} .navigation-bar__flex_ferxi {
|
|
47
54
|
display: flex;
|
|
48
55
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
56
|
+
} .navigation-bar__iconWrapper_ferxi {
|
|
50
57
|
display: inline-flex;
|
|
51
58
|
align-items: center;
|
|
52
59
|
justify-content: center;
|
|
53
60
|
height: 48px;
|
|
54
61
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
55
62
|
border-radius: var(--border-radius-circle)
|
|
56
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__iconWrapper_ferxi + .navigation-bar__text_ferxi {
|
|
57
64
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_ferxi {
|
|
59
66
|
width: 32px;
|
|
60
67
|
height: 32px;
|
|
61
68
|
background: var(--color-light-neutral-translucent-100);
|
|
62
69
|
-webkit-backdrop-filter: blur(10px);
|
|
63
70
|
backdrop-filter: blur(10px);
|
|
64
71
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
72
|
+
} .navigation-bar__mobileWrapper_ferxi + .navigation-bar__text_ferxi {
|
|
66
73
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
68
|
-
fill: var(--
|
|
74
|
+
} .navigation-bar__mobileWrapper_ferxi svg > path {
|
|
75
|
+
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
69
76
|
}
|
|
@@ -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_18z2z","button":"navigation-bar__button_18z2z","mobile":"navigation-bar__mobile_18z2z","sticky":"navigation-bar__sticky_18z2z"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var Closer = function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: dzyai */
|
|
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-1500: #0e0e0e;
|
|
5
5
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
/* back-arrow */
|
|
27
|
+
} .navigation-bar__closer_18z2z {
|
|
26
28
|
flex-shrink: 0;
|
|
27
29
|
width: 48px;
|
|
28
30
|
height: 48px;
|
|
@@ -30,17 +32,17 @@
|
|
|
30
32
|
display: flex;
|
|
31
33
|
align-items: center;
|
|
32
34
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__button_18z2z {
|
|
34
36
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
37
|
-webkit-backdrop-filter: blur(10px);
|
|
36
38
|
backdrop-filter: blur(10px);
|
|
37
39
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__button_18z2z.navigation-bar__mobile_18z2z {
|
|
39
41
|
background: var(--color-light-neutral-translucent-100);
|
|
40
42
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__button_18z2z.navigation-bar__button_18z2z {
|
|
42
44
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
45
|
+
} .navigation-bar__sticky_18z2z {
|
|
44
46
|
position: sticky;
|
|
45
47
|
top: 0;
|
|
46
48
|
}
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
: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 */
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--color-light-neutral-1500: #0e0e0e;
|
|
4
4
|
--color-light-neutral-1500-hover: #3f3f45;
|
|
@@ -23,12 +23,18 @@
|
|
|
23
23
|
--gap-s: 12px;
|
|
24
24
|
} :root {
|
|
25
25
|
} :root {
|
|
26
|
+
} :root {
|
|
27
|
+
/* closer-mobile */
|
|
28
|
+
|
|
29
|
+
/* back-arrow */
|
|
30
|
+
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
26
31
|
} .component {
|
|
27
32
|
height: 100%;
|
|
28
33
|
background: var(--color-light-bg-primary-alpha-40);
|
|
29
34
|
-webkit-backdrop-filter: blur(10px);
|
|
30
35
|
backdrop-filter: blur(10px);
|
|
31
|
-
border-radius: var(--border-radius-pill)
|
|
36
|
+
border-radius: var(--border-radius-pill);
|
|
37
|
+
min-width: 48px
|
|
32
38
|
} .component svg > path {
|
|
33
39
|
transition: fill 0.2s ease;
|
|
34
40
|
fill: var(--color-light-neutral-1500);
|
|
@@ -38,6 +44,7 @@
|
|
|
38
44
|
fill: var(--color-light-neutral-1500-press);
|
|
39
45
|
} .mobileComponent {
|
|
40
46
|
height: 32px;
|
|
47
|
+
min-width: 32px;
|
|
41
48
|
margin: 0 var(--gap-xs);
|
|
42
49
|
-webkit-backdrop-filter: none;
|
|
43
50
|
backdrop-filter: none;
|
|
@@ -64,5 +71,5 @@
|
|
|
64
71
|
} .mobileWrapper + .text {
|
|
65
72
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
66
73
|
} .mobileWrapper svg > path {
|
|
67
|
-
fill: var(--
|
|
74
|
+
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
68
75
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
: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 */
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--color-light-neutral-1500: #0e0e0e;
|
|
4
4
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
/* closer-mobile */
|
|
23
23
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
24
|
+
|
|
25
|
+
/* back-arrow */
|
|
24
26
|
} .closer {
|
|
25
27
|
flex-shrink: 0;
|
|
26
28
|
width: 48px;
|
package/cssm/index.module.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
: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 */
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--color-light-text-primary: #0e0e0e;
|
|
4
4
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
package/cssm/vars.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
: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 */
|
|
2
2
|
} /* deprecated */ :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 */
|
|
3
3
|
} :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 */
|
|
4
4
|
} :root {
|
|
@@ -15,4 +15,6 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
/* closer-mobile */
|
|
18
|
+
|
|
19
|
+
/* back-arrow */
|
|
18
20
|
}
|
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_i8g5v","backgroundImage":"navigation-bar__backgroundImage_i8g5v","mainLine":"navigation-bar__mainLine_i8g5v","mainLineSticky":"navigation-bar__mainLineSticky_i8g5v","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_i8g5v","content":"navigation-bar__content_i8g5v","withBothAddons":"navigation-bar__withBothAddons_i8g5v","withCompactTitle":"navigation-bar__withCompactTitle_i8g5v","children":"navigation-bar__children_i8g5v","title":"navigation-bar__title_i8g5v","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_i8g5v","contentOnBotMobile":"navigation-bar__contentOnBotMobile_i8g5v","subtitle":"navigation-bar__subtitle_i8g5v","addonsWrapper":"navigation-bar__addonsWrapper_i8g5v","rightAddons":"navigation-bar__rightAddons_i8g5v","addon":"navigation-bar__addon_i8g5v","bottomAddons":"navigation-bar__bottomAddons_i8g5v","closer":"navigation-bar__closer_i8g5v","left":"navigation-bar__left_i8g5v","center":"navigation-bar__center_i8g5v","trim":"navigation-bar__trim_i8g5v"};
|
|
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_ferxi","mobileComponent":"navigation-bar__mobileComponent_ferxi","flex":"navigation-bar__flex_ferxi","iconWrapper":"navigation-bar__iconWrapper_ferxi","text":"navigation-bar__text_ferxi","mobileWrapper":"navigation-bar__mobileWrapper_ferxi"};
|
|
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,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: ffzxl */
|
|
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-1500: #0e0e0e;
|
|
5
5
|
--color-light-neutral-1500-hover: #3f3f45;
|
|
@@ -24,46 +24,53 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
}
|
|
27
|
+
} :root {
|
|
28
|
+
/* closer-mobile */
|
|
29
|
+
|
|
30
|
+
/* back-arrow */
|
|
31
|
+
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
32
|
+
} .navigation-bar__component_ferxi {
|
|
28
33
|
height: 100%;
|
|
29
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
30
35
|
-webkit-backdrop-filter: blur(10px);
|
|
31
36
|
backdrop-filter: blur(10px);
|
|
32
|
-
border-radius: var(--border-radius-pill)
|
|
33
|
-
|
|
37
|
+
border-radius: var(--border-radius-pill);
|
|
38
|
+
min-width: 48px
|
|
39
|
+
} .navigation-bar__component_ferxi svg > path {
|
|
34
40
|
transition: fill 0.2s ease;
|
|
35
41
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
42
|
+
} .navigation-bar__component_ferxi:hover svg > path {
|
|
37
43
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
44
|
+
} .navigation-bar__component_ferxi:active svg > path {
|
|
39
45
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
46
|
+
} .navigation-bar__mobileComponent_ferxi {
|
|
41
47
|
height: 32px;
|
|
48
|
+
min-width: 32px;
|
|
42
49
|
margin: 0 var(--gap-xs);
|
|
43
50
|
-webkit-backdrop-filter: none;
|
|
44
51
|
backdrop-filter: none;
|
|
45
52
|
background: none;
|
|
46
|
-
} .navigation-
|
|
53
|
+
} .navigation-bar__flex_ferxi {
|
|
47
54
|
display: flex;
|
|
48
55
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
56
|
+
} .navigation-bar__iconWrapper_ferxi {
|
|
50
57
|
display: inline-flex;
|
|
51
58
|
align-items: center;
|
|
52
59
|
justify-content: center;
|
|
53
60
|
height: 48px;
|
|
54
61
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
55
62
|
border-radius: var(--border-radius-circle)
|
|
56
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__iconWrapper_ferxi + .navigation-bar__text_ferxi {
|
|
57
64
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_ferxi {
|
|
59
66
|
width: 32px;
|
|
60
67
|
height: 32px;
|
|
61
68
|
background: var(--color-light-neutral-translucent-100);
|
|
62
69
|
-webkit-backdrop-filter: blur(10px);
|
|
63
70
|
backdrop-filter: blur(10px);
|
|
64
71
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
72
|
+
} .navigation-bar__mobileWrapper_ferxi + .navigation-bar__text_ferxi {
|
|
66
73
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
68
|
-
fill: var(--
|
|
74
|
+
} .navigation-bar__mobileWrapper_ferxi svg > path {
|
|
75
|
+
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
69
76
|
}
|
|
@@ -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_18z2z","button":"navigation-bar__button_18z2z","mobile":"navigation-bar__mobile_18z2z","sticky":"navigation-bar__sticky_18z2z"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Closer = function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: dzyai */
|
|
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-1500: #0e0e0e;
|
|
5
5
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
/* back-arrow */
|
|
27
|
+
} .navigation-bar__closer_18z2z {
|
|
26
28
|
flex-shrink: 0;
|
|
27
29
|
width: 48px;
|
|
28
30
|
height: 48px;
|
|
@@ -30,17 +32,17 @@
|
|
|
30
32
|
display: flex;
|
|
31
33
|
align-items: center;
|
|
32
34
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__button_18z2z {
|
|
34
36
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
37
|
-webkit-backdrop-filter: blur(10px);
|
|
36
38
|
backdrop-filter: blur(10px);
|
|
37
39
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__button_18z2z.navigation-bar__mobile_18z2z {
|
|
39
41
|
background: var(--color-light-neutral-translucent-100);
|
|
40
42
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__button_18z2z.navigation-bar__button_18z2z {
|
|
42
44
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
45
|
+
} .navigation-bar__sticky_18z2z {
|
|
44
46
|
position: sticky;
|
|
45
47
|
top: 0;
|
|
46
48
|
}
|
package/esm/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: 1k17t */
|
|
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-text-primary: #0e0e0e;
|
|
5
5
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_i8g5v {
|
|
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_i8g5v.navigation-bar__header_i8g5v.navigation-bar__backgroundImage_i8g5v {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_i8g5v {
|
|
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_i8g5v {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_i8g5v {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_i8g5v {
|
|
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_i8g5v.navigation-bar__withBothAddons_i8g5v,
|
|
50
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v {
|
|
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_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__children_i8g5v,
|
|
58
|
+
.navigation-bar__content_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__title_i8g5v,
|
|
59
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__children_i8g5v,
|
|
60
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__title_i8g5v {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_i8g5v.navigation-bar__contentOnBotMobile_i8g5v.navigation-bar__contentOnBotMobile_i8g5v {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_i8g5v {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_i8g5v {
|
|
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_i8g5v {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_i8g5v {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_i8g5v {
|
|
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_i8g5v {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_i8g5v {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_i8g5v {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_i8g5v {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_i8g5v {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_i8g5v .navigation-bar__title_i8g5v,
|
|
103
|
+
.navigation-bar__trim_i8g5v .navigation-bar__children_i8g5v {
|
|
104
104
|
-webkit-line-clamp: 2;
|
|
105
105
|
display: -webkit-box;
|
|
106
106
|
-webkit-box-orient: vertical;
|
package/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: 1k17t */
|
|
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-text-primary: #0e0e0e;
|
|
5
5
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_i8g5v {
|
|
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_i8g5v.navigation-bar__header_i8g5v.navigation-bar__backgroundImage_i8g5v {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_i8g5v {
|
|
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_i8g5v {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_i8g5v {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_i8g5v {
|
|
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_i8g5v.navigation-bar__withBothAddons_i8g5v,
|
|
50
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v {
|
|
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_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__children_i8g5v,
|
|
58
|
+
.navigation-bar__content_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__title_i8g5v,
|
|
59
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__children_i8g5v,
|
|
60
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__title_i8g5v {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_i8g5v.navigation-bar__contentOnBotMobile_i8g5v.navigation-bar__contentOnBotMobile_i8g5v {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_i8g5v {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_i8g5v {
|
|
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_i8g5v {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_i8g5v {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_i8g5v {
|
|
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_i8g5v {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_i8g5v {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_i8g5v {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_i8g5v {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_i8g5v {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_i8g5v .navigation-bar__title_i8g5v,
|
|
103
|
+
.navigation-bar__trim_i8g5v .navigation-bar__children_i8g5v {
|
|
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_i8g5v","backgroundImage":"navigation-bar__backgroundImage_i8g5v","mainLine":"navigation-bar__mainLine_i8g5v","mainLineSticky":"navigation-bar__mainLineSticky_i8g5v","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_i8g5v","content":"navigation-bar__content_i8g5v","withBothAddons":"navigation-bar__withBothAddons_i8g5v","withCompactTitle":"navigation-bar__withCompactTitle_i8g5v","children":"navigation-bar__children_i8g5v","title":"navigation-bar__title_i8g5v","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_i8g5v","contentOnBotMobile":"navigation-bar__contentOnBotMobile_i8g5v","subtitle":"navigation-bar__subtitle_i8g5v","addonsWrapper":"navigation-bar__addonsWrapper_i8g5v","rightAddons":"navigation-bar__rightAddons_i8g5v","addon":"navigation-bar__addon_i8g5v","bottomAddons":"navigation-bar__bottomAddons_i8g5v","closer":"navigation-bar__closer_i8g5v","left":"navigation-bar__left_i8g5v","center":"navigation-bar__center_i8g5v","trim":"navigation-bar__trim_i8g5v"};
|
|
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_ferxi","mobileComponent":"navigation-bar__mobileComponent_ferxi","flex":"navigation-bar__flex_ferxi","iconWrapper":"navigation-bar__iconWrapper_ferxi","text":"navigation-bar__text_ferxi","mobileWrapper":"navigation-bar__mobileWrapper_ferxi"};
|
|
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,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: ffzxl */
|
|
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-1500: #0e0e0e;
|
|
5
5
|
--color-light-neutral-1500-hover: #3f3f45;
|
|
@@ -24,46 +24,53 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
}
|
|
27
|
+
} :root {
|
|
28
|
+
/* closer-mobile */
|
|
29
|
+
|
|
30
|
+
/* back-arrow */
|
|
31
|
+
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
32
|
+
} .navigation-bar__component_ferxi {
|
|
28
33
|
height: 100%;
|
|
29
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
30
35
|
-webkit-backdrop-filter: blur(10px);
|
|
31
36
|
backdrop-filter: blur(10px);
|
|
32
|
-
border-radius: var(--border-radius-pill)
|
|
33
|
-
|
|
37
|
+
border-radius: var(--border-radius-pill);
|
|
38
|
+
min-width: 48px
|
|
39
|
+
} .navigation-bar__component_ferxi svg > path {
|
|
34
40
|
transition: fill 0.2s ease;
|
|
35
41
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
42
|
+
} .navigation-bar__component_ferxi:hover svg > path {
|
|
37
43
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
44
|
+
} .navigation-bar__component_ferxi:active svg > path {
|
|
39
45
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
46
|
+
} .navigation-bar__mobileComponent_ferxi {
|
|
41
47
|
height: 32px;
|
|
48
|
+
min-width: 32px;
|
|
42
49
|
margin: 0 var(--gap-xs);
|
|
43
50
|
-webkit-backdrop-filter: none;
|
|
44
51
|
backdrop-filter: none;
|
|
45
52
|
background: none;
|
|
46
|
-
} .navigation-
|
|
53
|
+
} .navigation-bar__flex_ferxi {
|
|
47
54
|
display: flex;
|
|
48
55
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
56
|
+
} .navigation-bar__iconWrapper_ferxi {
|
|
50
57
|
display: inline-flex;
|
|
51
58
|
align-items: center;
|
|
52
59
|
justify-content: center;
|
|
53
60
|
height: 48px;
|
|
54
61
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
55
62
|
border-radius: var(--border-radius-circle)
|
|
56
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__iconWrapper_ferxi + .navigation-bar__text_ferxi {
|
|
57
64
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_ferxi {
|
|
59
66
|
width: 32px;
|
|
60
67
|
height: 32px;
|
|
61
68
|
background: var(--color-light-neutral-translucent-100);
|
|
62
69
|
-webkit-backdrop-filter: blur(10px);
|
|
63
70
|
backdrop-filter: blur(10px);
|
|
64
71
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
72
|
+
} .navigation-bar__mobileWrapper_ferxi + .navigation-bar__text_ferxi {
|
|
66
73
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
68
|
-
fill: var(--
|
|
74
|
+
} .navigation-bar__mobileWrapper_ferxi svg > path {
|
|
75
|
+
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
69
76
|
}
|
|
@@ -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_18z2z","button":"navigation-bar__button_18z2z","mobile":"navigation-bar__mobile_18z2z","sticky":"navigation-bar__sticky_18z2z"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Closer = ({ view, className, sticky, icon = view === 'desktop' ? CrossHeavyMIcon : CrossMIcon, dataTestId, onClose, ...restProps }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: dzyai */
|
|
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-1500: #0e0e0e;
|
|
5
5
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
/* back-arrow */
|
|
27
|
+
} .navigation-bar__closer_18z2z {
|
|
26
28
|
flex-shrink: 0;
|
|
27
29
|
width: 48px;
|
|
28
30
|
height: 48px;
|
|
@@ -30,17 +32,17 @@
|
|
|
30
32
|
display: flex;
|
|
31
33
|
align-items: center;
|
|
32
34
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__button_18z2z {
|
|
34
36
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
37
|
-webkit-backdrop-filter: blur(10px);
|
|
36
38
|
backdrop-filter: blur(10px);
|
|
37
39
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__button_18z2z.navigation-bar__mobile_18z2z {
|
|
39
41
|
background: var(--color-light-neutral-translucent-100);
|
|
40
42
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__button_18z2z.navigation-bar__button_18z2z {
|
|
42
44
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
45
|
+
} .navigation-bar__sticky_18z2z {
|
|
44
46
|
position: sticky;
|
|
45
47
|
top: 0;
|
|
46
48
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: 1k17t */
|
|
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-text-primary: #0e0e0e;
|
|
5
5
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_i8g5v {
|
|
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_i8g5v.navigation-bar__header_i8g5v.navigation-bar__backgroundImage_i8g5v {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_i8g5v {
|
|
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_i8g5v {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_i8g5v {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_i8g5v {
|
|
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_i8g5v.navigation-bar__withBothAddons_i8g5v,
|
|
50
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v {
|
|
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_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__children_i8g5v,
|
|
58
|
+
.navigation-bar__content_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__title_i8g5v,
|
|
59
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__children_i8g5v,
|
|
60
|
+
.navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__title_i8g5v {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_i8g5v.navigation-bar__contentOnBotMobile_i8g5v.navigation-bar__contentOnBotMobile_i8g5v {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_i8g5v {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_i8g5v {
|
|
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_i8g5v {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_i8g5v {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_i8g5v {
|
|
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_i8g5v {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_i8g5v {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_i8g5v {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_i8g5v {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_i8g5v {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_i8g5v .navigation-bar__title_i8g5v,
|
|
103
|
+
.navigation-bar__trim_i8g5v .navigation-bar__children_i8g5v {
|
|
104
104
|
-webkit-line-clamp: 2;
|
|
105
105
|
display: -webkit-box;
|
|
106
106
|
-webkit-box-orient: vertical;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-navigation-bar",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Navigation bar component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@alfalab/core-components-icon-button": "^6.5.
|
|
15
|
-
"@alfalab/core-components-button": "^11.
|
|
14
|
+
"@alfalab/core-components-icon-button": "^6.5.3",
|
|
15
|
+
"@alfalab/core-components-button": "^11.3.0",
|
|
16
16
|
"@alfalab/core-components-typography": "^4.5.0",
|
|
17
17
|
"@alfalab/core-components-shared": "^0.9.1",
|
|
18
18
|
"@alfalab/hooks": "^1.13.0",
|
|
@@ -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'}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
@import '@alfalab/core-components-themes/src/default.css';
|
|
2
|
+
@import '../../vars.css';
|
|
2
3
|
|
|
3
4
|
.component {
|
|
4
5
|
height: 100%;
|
|
5
6
|
background: var(--color-light-bg-primary-alpha-40);
|
|
6
7
|
backdrop-filter: blur(10px);
|
|
7
8
|
border-radius: var(--border-radius-pill);
|
|
9
|
+
min-width: 48px;
|
|
8
10
|
|
|
9
11
|
& svg > path {
|
|
10
12
|
transition: fill 0.2s ease;
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
|
|
27
29
|
.mobileComponent {
|
|
28
30
|
height: 32px;
|
|
31
|
+
min-width: 32px;
|
|
29
32
|
margin: 0 var(--gap-xs);
|
|
30
33
|
backdrop-filter: none;
|
|
31
34
|
background: none;
|
|
@@ -61,6 +64,6 @@
|
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
& svg > path {
|
|
64
|
-
fill: var(--
|
|
67
|
+
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
65
68
|
}
|
|
66
69
|
}
|