@alfalab/core-components-navigation-bar 0.8.2 → 0.8.3

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