@alfalab/core-components-navigation-bar 0.8.4 → 0.8.6
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.js +2 -2
- package/components/back-arrow-addon/index.css +12 -12
- package/components/closer/Component.js +1 -1
- package/components/closer/index.css +6 -6
- package/cssm/components/back-arrow-addon/Component.js +1 -1
- package/esm/Component.js +1 -1
- package/esm/components/back-arrow-addon/Component.js +2 -2
- package/esm/components/back-arrow-addon/index.css +12 -12
- 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.js +2 -2
- package/modern/components/back-arrow-addon/index.css +12 -12
- 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 +3 -3
- package/src/components/back-arrow-addon/Component.tsx +1 -1
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_1svpa","backgroundImage":"navigation-bar__backgroundImage_1svpa","mainLine":"navigation-bar__mainLine_1svpa","mainLineSticky":"navigation-bar__mainLineSticky_1svpa","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1svpa","content":"navigation-bar__content_1svpa","withBothAddons":"navigation-bar__withBothAddons_1svpa","withCompactTitle":"navigation-bar__withCompactTitle_1svpa","children":"navigation-bar__children_1svpa","title":"navigation-bar__title_1svpa","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1svpa","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1svpa","subtitle":"navigation-bar__subtitle_1svpa","addonsWrapper":"navigation-bar__addonsWrapper_1svpa","rightAddons":"navigation-bar__rightAddons_1svpa","addon":"navigation-bar__addon_1svpa","bottomAddons":"navigation-bar__bottomAddons_1svpa","closer":"navigation-bar__closer_1svpa","left":"navigation-bar__left_1svpa","center":"navigation-bar__center_1svpa","trim":"navigation-bar__trim_1svpa"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var ADDONS_HEIGHT = 48;
|
|
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"component":"navigation-
|
|
18
|
+
var styles = {"component":"navigation-bar__component_gpf6n","mobileComponent":"navigation-bar__mobileComponent_gpf6n","flex":"navigation-bar__flex_gpf6n","iconWrapper":"navigation-bar__iconWrapper_gpf6n","text":"navigation-bar__text_gpf6n","mobileWrapper":"navigation-bar__mobileWrapper_gpf6n"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var BackArrowAddon = function (_a) {
|
|
@@ -23,7 +23,7 @@ var BackArrowAddon = function (_a) {
|
|
|
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: '
|
|
26
|
+
return (React__default.default.createElement(desktop.ButtonDesktop, tslib.__assign({ view: 'text', 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),
|
|
27
27
|
React__default.default.createElement("div", { className: styles.flex },
|
|
28
28
|
React__default.default.createElement("div", { className: cn__default.default(styles.iconWrapper, (_c = {},
|
|
29
29
|
_c[styles.mobileWrapper] = isMobileView,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1fecp */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -29,48 +29,48 @@
|
|
|
29
29
|
|
|
30
30
|
/* back-arrow */
|
|
31
31
|
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
32
|
-
} .navigation-
|
|
32
|
+
} .navigation-bar__component_gpf6n {
|
|
33
33
|
height: 100%;
|
|
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
|
border-radius: var(--border-radius-pill);
|
|
38
38
|
min-width: 48px
|
|
39
|
-
} .navigation-
|
|
39
|
+
} .navigation-bar__component_gpf6n svg > path {
|
|
40
40
|
transition: fill 0.2s ease;
|
|
41
41
|
fill: var(--color-light-neutral-1500);
|
|
42
|
-
} .navigation-
|
|
42
|
+
} .navigation-bar__component_gpf6n:hover svg > path {
|
|
43
43
|
fill: var(--color-light-neutral-1500-hover);
|
|
44
|
-
} .navigation-
|
|
44
|
+
} .navigation-bar__component_gpf6n:active svg > path {
|
|
45
45
|
fill: var(--color-light-neutral-1500-press);
|
|
46
|
-
} .navigation-
|
|
46
|
+
} .navigation-bar__mobileComponent_gpf6n {
|
|
47
47
|
height: 32px;
|
|
48
48
|
min-width: 32px;
|
|
49
49
|
margin: 0 var(--gap-xs);
|
|
50
50
|
-webkit-backdrop-filter: none;
|
|
51
51
|
backdrop-filter: none;
|
|
52
52
|
background: none;
|
|
53
|
-
} .navigation-
|
|
53
|
+
} .navigation-bar__flex_gpf6n {
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
|
-
} .navigation-
|
|
56
|
+
} .navigation-bar__iconWrapper_gpf6n {
|
|
57
57
|
display: inline-flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
justify-content: center;
|
|
60
60
|
height: 48px;
|
|
61
61
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
62
62
|
border-radius: var(--border-radius-circle)
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__iconWrapper_gpf6n + .navigation-bar__text_gpf6n {
|
|
64
64
|
margin-right: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_gpf6n {
|
|
66
66
|
width: 32px;
|
|
67
67
|
height: 32px;
|
|
68
68
|
background: var(--color-light-neutral-translucent-100);
|
|
69
69
|
-webkit-backdrop-filter: blur(10px);
|
|
70
70
|
backdrop-filter: blur(10px);
|
|
71
71
|
margin: 0
|
|
72
|
-
} .navigation-
|
|
72
|
+
} .navigation-bar__mobileWrapper_gpf6n + .navigation-bar__text_gpf6n {
|
|
73
73
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
74
|
-
} .navigation-
|
|
74
|
+
} .navigation-bar__mobileWrapper_gpf6n svg > path {
|
|
75
75
|
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
76
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_1a9q8","button":"navigation-bar__button_1a9q8","mobile":"navigation-bar__mobile_1a9q8","sticky":"navigation-bar__sticky_1a9q8"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: esnlp */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
25
|
|
|
26
26
|
/* back-arrow */
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__closer_1a9q8 {
|
|
28
28
|
flex-shrink: 0;
|
|
29
29
|
width: 48px;
|
|
30
30
|
height: 48px;
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
display: flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
justify-content: center;
|
|
35
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__button_1a9q8 {
|
|
36
36
|
background: var(--color-light-bg-primary-alpha-40);
|
|
37
37
|
-webkit-backdrop-filter: blur(10px);
|
|
38
38
|
backdrop-filter: blur(10px);
|
|
39
39
|
color: var(--color-light-neutral-1500)
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__button_1a9q8.navigation-bar__mobile_1a9q8 {
|
|
41
41
|
background: var(--color-light-neutral-translucent-100);
|
|
42
42
|
color: var(--navigation-bar-closer-mobile-color);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__button_1a9q8.navigation-bar__button_1a9q8 {
|
|
44
44
|
border-radius: var(--border-radius-circle);
|
|
45
|
-
} .navigation-
|
|
45
|
+
} .navigation-bar__sticky_1a9q8 {
|
|
46
46
|
position: sticky;
|
|
47
47
|
top: 0;
|
|
48
48
|
}
|
|
@@ -22,7 +22,7 @@ var BackArrowAddon = function (_a) {
|
|
|
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: '
|
|
25
|
+
return (React__default.default.createElement(desktop.ButtonDesktop, tslib.__assign({ view: 'text', 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),
|
|
26
26
|
React__default.default.createElement("div", { className: styles__default.default.flex },
|
|
27
27
|
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.iconWrapper, (_c = {},
|
|
28
28
|
_c[styles__default.default.mobileWrapper] = isMobileView,
|
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_1svpa","backgroundImage":"navigation-bar__backgroundImage_1svpa","mainLine":"navigation-bar__mainLine_1svpa","mainLineSticky":"navigation-bar__mainLineSticky_1svpa","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1svpa","content":"navigation-bar__content_1svpa","withBothAddons":"navigation-bar__withBothAddons_1svpa","withCompactTitle":"navigation-bar__withCompactTitle_1svpa","children":"navigation-bar__children_1svpa","title":"navigation-bar__title_1svpa","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1svpa","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1svpa","subtitle":"navigation-bar__subtitle_1svpa","addonsWrapper":"navigation-bar__addonsWrapper_1svpa","rightAddons":"navigation-bar__rightAddons_1svpa","addon":"navigation-bar__addon_1svpa","bottomAddons":"navigation-bar__bottomAddons_1svpa","closer":"navigation-bar__closer_1svpa","left":"navigation-bar__left_1svpa","center":"navigation-bar__center_1svpa","trim":"navigation-bar__trim_1svpa"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var ADDONS_HEIGHT = 48;
|
|
@@ -6,7 +6,7 @@ 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_gpf6n","mobileComponent":"navigation-bar__mobileComponent_gpf6n","flex":"navigation-bar__flex_gpf6n","iconWrapper":"navigation-bar__iconWrapper_gpf6n","text":"navigation-bar__text_gpf6n","mobileWrapper":"navigation-bar__mobileWrapper_gpf6n"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var BackArrowAddon = function (_a) {
|
|
@@ -14,7 +14,7 @@ var BackArrowAddon = function (_a) {
|
|
|
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: '
|
|
17
|
+
return (React.createElement(ButtonDesktop, __assign({ view: 'text', 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),
|
|
18
18
|
React.createElement("div", { className: styles.flex },
|
|
19
19
|
React.createElement("div", { className: cn(styles.iconWrapper, (_c = {},
|
|
20
20
|
_c[styles.mobileWrapper] = isMobileView,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1fecp */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -29,48 +29,48 @@
|
|
|
29
29
|
|
|
30
30
|
/* back-arrow */
|
|
31
31
|
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
32
|
-
} .navigation-
|
|
32
|
+
} .navigation-bar__component_gpf6n {
|
|
33
33
|
height: 100%;
|
|
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
|
border-radius: var(--border-radius-pill);
|
|
38
38
|
min-width: 48px
|
|
39
|
-
} .navigation-
|
|
39
|
+
} .navigation-bar__component_gpf6n svg > path {
|
|
40
40
|
transition: fill 0.2s ease;
|
|
41
41
|
fill: var(--color-light-neutral-1500);
|
|
42
|
-
} .navigation-
|
|
42
|
+
} .navigation-bar__component_gpf6n:hover svg > path {
|
|
43
43
|
fill: var(--color-light-neutral-1500-hover);
|
|
44
|
-
} .navigation-
|
|
44
|
+
} .navigation-bar__component_gpf6n:active svg > path {
|
|
45
45
|
fill: var(--color-light-neutral-1500-press);
|
|
46
|
-
} .navigation-
|
|
46
|
+
} .navigation-bar__mobileComponent_gpf6n {
|
|
47
47
|
height: 32px;
|
|
48
48
|
min-width: 32px;
|
|
49
49
|
margin: 0 var(--gap-xs);
|
|
50
50
|
-webkit-backdrop-filter: none;
|
|
51
51
|
backdrop-filter: none;
|
|
52
52
|
background: none;
|
|
53
|
-
} .navigation-
|
|
53
|
+
} .navigation-bar__flex_gpf6n {
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
|
-
} .navigation-
|
|
56
|
+
} .navigation-bar__iconWrapper_gpf6n {
|
|
57
57
|
display: inline-flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
justify-content: center;
|
|
60
60
|
height: 48px;
|
|
61
61
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
62
62
|
border-radius: var(--border-radius-circle)
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__iconWrapper_gpf6n + .navigation-bar__text_gpf6n {
|
|
64
64
|
margin-right: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_gpf6n {
|
|
66
66
|
width: 32px;
|
|
67
67
|
height: 32px;
|
|
68
68
|
background: var(--color-light-neutral-translucent-100);
|
|
69
69
|
-webkit-backdrop-filter: blur(10px);
|
|
70
70
|
backdrop-filter: blur(10px);
|
|
71
71
|
margin: 0
|
|
72
|
-
} .navigation-
|
|
72
|
+
} .navigation-bar__mobileWrapper_gpf6n + .navigation-bar__text_gpf6n {
|
|
73
73
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
74
|
-
} .navigation-
|
|
74
|
+
} .navigation-bar__mobileWrapper_gpf6n svg > path {
|
|
75
75
|
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
76
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_1a9q8","button":"navigation-bar__button_1a9q8","mobile":"navigation-bar__mobile_1a9q8","sticky":"navigation-bar__sticky_1a9q8"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: esnlp */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
25
|
|
|
26
26
|
/* back-arrow */
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__closer_1a9q8 {
|
|
28
28
|
flex-shrink: 0;
|
|
29
29
|
width: 48px;
|
|
30
30
|
height: 48px;
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
display: flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
justify-content: center;
|
|
35
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__button_1a9q8 {
|
|
36
36
|
background: var(--color-light-bg-primary-alpha-40);
|
|
37
37
|
-webkit-backdrop-filter: blur(10px);
|
|
38
38
|
backdrop-filter: blur(10px);
|
|
39
39
|
color: var(--color-light-neutral-1500)
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__button_1a9q8.navigation-bar__mobile_1a9q8 {
|
|
41
41
|
background: var(--color-light-neutral-translucent-100);
|
|
42
42
|
color: var(--navigation-bar-closer-mobile-color);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__button_1a9q8.navigation-bar__button_1a9q8 {
|
|
44
44
|
border-radius: var(--border-radius-circle);
|
|
45
|
-
} .navigation-
|
|
45
|
+
} .navigation-bar__sticky_1a9q8 {
|
|
46
46
|
position: sticky;
|
|
47
47
|
top: 0;
|
|
48
48
|
}
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ktx4 */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e;
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_1svpa {
|
|
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_1svpa.navigation-bar__header_1svpa.navigation-bar__backgroundImage_1svpa {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1svpa {
|
|
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_1svpa {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1svpa {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1svpa {
|
|
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_1svpa.navigation-bar__withBothAddons_1svpa,
|
|
50
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa {
|
|
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_1svpa.navigation-bar__withBothAddons_1svpa > .navigation-bar__children_1svpa,
|
|
58
|
+
.navigation-bar__content_1svpa.navigation-bar__withBothAddons_1svpa > .navigation-bar__title_1svpa,
|
|
59
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa > .navigation-bar__children_1svpa,
|
|
60
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa > .navigation-bar__title_1svpa {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1svpa.navigation-bar__contentOnBotDesktop_1svpa.navigation-bar__contentOnBotDesktop_1svpa {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1svpa.navigation-bar__contentOnBotMobile_1svpa.navigation-bar__contentOnBotMobile_1svpa {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1svpa {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1svpa {
|
|
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_1svpa {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1svpa {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1svpa {
|
|
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_1svpa {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1svpa {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1svpa {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1svpa {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1svpa {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1svpa .navigation-bar__title_1svpa,
|
|
103
|
+
.navigation-bar__trim_1svpa .navigation-bar__children_1svpa {
|
|
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: 1ktx4 */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e;
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_1svpa {
|
|
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_1svpa.navigation-bar__header_1svpa.navigation-bar__backgroundImage_1svpa {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1svpa {
|
|
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_1svpa {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1svpa {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1svpa {
|
|
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_1svpa.navigation-bar__withBothAddons_1svpa,
|
|
50
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa {
|
|
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_1svpa.navigation-bar__withBothAddons_1svpa > .navigation-bar__children_1svpa,
|
|
58
|
+
.navigation-bar__content_1svpa.navigation-bar__withBothAddons_1svpa > .navigation-bar__title_1svpa,
|
|
59
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa > .navigation-bar__children_1svpa,
|
|
60
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa > .navigation-bar__title_1svpa {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1svpa.navigation-bar__contentOnBotDesktop_1svpa.navigation-bar__contentOnBotDesktop_1svpa {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1svpa.navigation-bar__contentOnBotMobile_1svpa.navigation-bar__contentOnBotMobile_1svpa {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1svpa {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1svpa {
|
|
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_1svpa {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1svpa {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1svpa {
|
|
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_1svpa {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1svpa {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1svpa {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1svpa {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1svpa {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1svpa .navigation-bar__title_1svpa,
|
|
103
|
+
.navigation-bar__trim_1svpa .navigation-bar__children_1svpa {
|
|
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_1svpa","backgroundImage":"navigation-bar__backgroundImage_1svpa","mainLine":"navigation-bar__mainLine_1svpa","mainLineSticky":"navigation-bar__mainLineSticky_1svpa","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1svpa","content":"navigation-bar__content_1svpa","withBothAddons":"navigation-bar__withBothAddons_1svpa","withCompactTitle":"navigation-bar__withCompactTitle_1svpa","children":"navigation-bar__children_1svpa","title":"navigation-bar__title_1svpa","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1svpa","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1svpa","subtitle":"navigation-bar__subtitle_1svpa","addonsWrapper":"navigation-bar__addonsWrapper_1svpa","rightAddons":"navigation-bar__rightAddons_1svpa","addon":"navigation-bar__addon_1svpa","bottomAddons":"navigation-bar__bottomAddons_1svpa","closer":"navigation-bar__closer_1svpa","left":"navigation-bar__left_1svpa","center":"navigation-bar__center_1svpa","trim":"navigation-bar__trim_1svpa"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
/* eslint-disable complexity */
|
|
@@ -5,13 +5,13 @@ 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_gpf6n","mobileComponent":"navigation-bar__mobileComponent_gpf6n","flex":"navigation-bar__flex_gpf6n","iconWrapper":"navigation-bar__iconWrapper_gpf6n","text":"navigation-bar__text_gpf6n","mobileWrapper":"navigation-bar__mobileWrapper_gpf6n"};
|
|
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: '
|
|
14
|
+
return (React.createElement(ButtonDesktop, { view: 'text', size: isMobileView ? 'xxs' : 's', onClick: onClick, "aria-label": '\u043D\u0430\u0437\u0430\u0434', className: cn(styles.component, { [styles.mobileComponent]: isMobileView }, className), ...htmlAttributes },
|
|
15
15
|
React.createElement("div", { className: styles.flex },
|
|
16
16
|
React.createElement("div", { className: cn(styles.iconWrapper, {
|
|
17
17
|
[styles.mobileWrapper]: isMobileView,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1fecp */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -29,48 +29,48 @@
|
|
|
29
29
|
|
|
30
30
|
/* back-arrow */
|
|
31
31
|
--navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
|
|
32
|
-
} .navigation-
|
|
32
|
+
} .navigation-bar__component_gpf6n {
|
|
33
33
|
height: 100%;
|
|
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
|
border-radius: var(--border-radius-pill);
|
|
38
38
|
min-width: 48px
|
|
39
|
-
} .navigation-
|
|
39
|
+
} .navigation-bar__component_gpf6n svg > path {
|
|
40
40
|
transition: fill 0.2s ease;
|
|
41
41
|
fill: var(--color-light-neutral-1500);
|
|
42
|
-
} .navigation-
|
|
42
|
+
} .navigation-bar__component_gpf6n:hover svg > path {
|
|
43
43
|
fill: var(--color-light-neutral-1500-hover);
|
|
44
|
-
} .navigation-
|
|
44
|
+
} .navigation-bar__component_gpf6n:active svg > path {
|
|
45
45
|
fill: var(--color-light-neutral-1500-press);
|
|
46
|
-
} .navigation-
|
|
46
|
+
} .navigation-bar__mobileComponent_gpf6n {
|
|
47
47
|
height: 32px;
|
|
48
48
|
min-width: 32px;
|
|
49
49
|
margin: 0 var(--gap-xs);
|
|
50
50
|
-webkit-backdrop-filter: none;
|
|
51
51
|
backdrop-filter: none;
|
|
52
52
|
background: none;
|
|
53
|
-
} .navigation-
|
|
53
|
+
} .navigation-bar__flex_gpf6n {
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
|
-
} .navigation-
|
|
56
|
+
} .navigation-bar__iconWrapper_gpf6n {
|
|
57
57
|
display: inline-flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
justify-content: center;
|
|
60
60
|
height: 48px;
|
|
61
61
|
margin: 0 var(--gap-xs) 0 var(--gap-s);
|
|
62
62
|
border-radius: var(--border-radius-circle)
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__iconWrapper_gpf6n + .navigation-bar__text_gpf6n {
|
|
64
64
|
margin-right: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_gpf6n {
|
|
66
66
|
width: 32px;
|
|
67
67
|
height: 32px;
|
|
68
68
|
background: var(--color-light-neutral-translucent-100);
|
|
69
69
|
-webkit-backdrop-filter: blur(10px);
|
|
70
70
|
backdrop-filter: blur(10px);
|
|
71
71
|
margin: 0
|
|
72
|
-
} .navigation-
|
|
72
|
+
} .navigation-bar__mobileWrapper_gpf6n + .navigation-bar__text_gpf6n {
|
|
73
73
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
74
|
-
} .navigation-
|
|
74
|
+
} .navigation-bar__mobileWrapper_gpf6n svg > path {
|
|
75
75
|
fill: var(--navigation-bar-back-arrow-mobile-fill);
|
|
76
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_1a9q8","button":"navigation-bar__button_1a9q8","mobile":"navigation-bar__mobile_1a9q8","sticky":"navigation-bar__sticky_1a9q8"};
|
|
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: esnlp */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
25
|
|
|
26
26
|
/* back-arrow */
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__closer_1a9q8 {
|
|
28
28
|
flex-shrink: 0;
|
|
29
29
|
width: 48px;
|
|
30
30
|
height: 48px;
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
display: flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
justify-content: center;
|
|
35
|
-
} .navigation-
|
|
35
|
+
} .navigation-bar__button_1a9q8 {
|
|
36
36
|
background: var(--color-light-bg-primary-alpha-40);
|
|
37
37
|
-webkit-backdrop-filter: blur(10px);
|
|
38
38
|
backdrop-filter: blur(10px);
|
|
39
39
|
color: var(--color-light-neutral-1500)
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__button_1a9q8.navigation-bar__mobile_1a9q8 {
|
|
41
41
|
background: var(--color-light-neutral-translucent-100);
|
|
42
42
|
color: var(--navigation-bar-closer-mobile-color);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__button_1a9q8.navigation-bar__button_1a9q8 {
|
|
44
44
|
border-radius: var(--border-radius-circle);
|
|
45
|
-
} .navigation-
|
|
45
|
+
} .navigation-bar__sticky_1a9q8 {
|
|
46
46
|
position: sticky;
|
|
47
47
|
top: 0;
|
|
48
48
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ktx4 */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e;
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .navigation-
|
|
21
|
+
} .navigation-bar__header_1svpa {
|
|
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_1svpa.navigation-bar__header_1svpa.navigation-bar__backgroundImage_1svpa {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1svpa {
|
|
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_1svpa {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1svpa {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1svpa {
|
|
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_1svpa.navigation-bar__withBothAddons_1svpa,
|
|
50
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa {
|
|
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_1svpa.navigation-bar__withBothAddons_1svpa > .navigation-bar__children_1svpa,
|
|
58
|
+
.navigation-bar__content_1svpa.navigation-bar__withBothAddons_1svpa > .navigation-bar__title_1svpa,
|
|
59
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa > .navigation-bar__children_1svpa,
|
|
60
|
+
.navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa > .navigation-bar__title_1svpa {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1svpa.navigation-bar__contentOnBotDesktop_1svpa.navigation-bar__contentOnBotDesktop_1svpa {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1svpa.navigation-bar__contentOnBotMobile_1svpa.navigation-bar__contentOnBotMobile_1svpa {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1svpa {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1svpa {
|
|
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_1svpa {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1svpa {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1svpa {
|
|
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_1svpa {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1svpa {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1svpa {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1svpa {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1svpa {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1svpa .navigation-bar__title_1svpa,
|
|
103
|
+
.navigation-bar__trim_1svpa .navigation-bar__children_1svpa {
|
|
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.6",
|
|
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.5",
|
|
15
|
+
"@alfalab/core-components-button": "^11.4.1",
|
|
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",
|