@alfalab/core-components-navigation-bar 0.8.4 → 0.8.5

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_i8g5v","backgroundImage":"navigation-bar__backgroundImage_i8g5v","mainLine":"navigation-bar__mainLine_i8g5v","mainLineSticky":"navigation-bar__mainLineSticky_i8g5v","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_i8g5v","content":"navigation-bar__content_i8g5v","withBothAddons":"navigation-bar__withBothAddons_i8g5v","withCompactTitle":"navigation-bar__withCompactTitle_i8g5v","children":"navigation-bar__children_i8g5v","title":"navigation-bar__title_i8g5v","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_i8g5v","contentOnBotMobile":"navigation-bar__contentOnBotMobile_i8g5v","subtitle":"navigation-bar__subtitle_i8g5v","addonsWrapper":"navigation-bar__addonsWrapper_i8g5v","rightAddons":"navigation-bar__rightAddons_i8g5v","addon":"navigation-bar__addon_i8g5v","bottomAddons":"navigation-bar__bottomAddons_i8g5v","closer":"navigation-bar__closer_i8g5v","left":"navigation-bar__left_i8g5v","center":"navigation-bar__center_i8g5v","trim":"navigation-bar__trim_i8g5v"};
20
+ var styles = {"header":"navigation-bar__header_1gb6g","backgroundImage":"navigation-bar__backgroundImage_1gb6g","mainLine":"navigation-bar__mainLine_1gb6g","mainLineSticky":"navigation-bar__mainLineSticky_1gb6g","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1gb6g","content":"navigation-bar__content_1gb6g","withBothAddons":"navigation-bar__withBothAddons_1gb6g","withCompactTitle":"navigation-bar__withCompactTitle_1gb6g","children":"navigation-bar__children_1gb6g","title":"navigation-bar__title_1gb6g","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1gb6g","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1gb6g","subtitle":"navigation-bar__subtitle_1gb6g","addonsWrapper":"navigation-bar__addonsWrapper_1gb6g","rightAddons":"navigation-bar__rightAddons_1gb6g","addon":"navigation-bar__addon_1gb6g","bottomAddons":"navigation-bar__bottomAddons_1gb6g","closer":"navigation-bar__closer_1gb6g","left":"navigation-bar__left_1gb6g","center":"navigation-bar__center_1gb6g","trim":"navigation-bar__trim_1gb6g"};
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-bar__component_ferxi","mobileComponent":"navigation-bar__mobileComponent_ferxi","flex":"navigation-bar__flex_ferxi","iconWrapper":"navigation-bar__iconWrapper_ferxi","text":"navigation-bar__text_ferxi","mobileWrapper":"navigation-bar__mobileWrapper_ferxi"};
18
+ var styles = {"component":"navigation-bar__component_1ru6d","mobileComponent":"navigation-bar__mobileComponent_1ru6d","flex":"navigation-bar__flex_1ru6d","iconWrapper":"navigation-bar__iconWrapper_1ru6d","text":"navigation-bar__text_1ru6d","mobileWrapper":"navigation-bar__mobileWrapper_1ru6d"};
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: '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
+ 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: ffzxl */
1
+ /* hash: imer1 */
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-bar__component_ferxi {
32
+ } .navigation-bar__component_1ru6d {
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-bar__component_ferxi svg > path {
39
+ } .navigation-bar__component_1ru6d svg > path {
40
40
  transition: fill 0.2s ease;
41
41
  fill: var(--color-light-neutral-1500);
42
- } .navigation-bar__component_ferxi:hover svg > path {
42
+ } .navigation-bar__component_1ru6d:hover svg > path {
43
43
  fill: var(--color-light-neutral-1500-hover);
44
- } .navigation-bar__component_ferxi:active svg > path {
44
+ } .navigation-bar__component_1ru6d:active svg > path {
45
45
  fill: var(--color-light-neutral-1500-press);
46
- } .navigation-bar__mobileComponent_ferxi {
46
+ } .navigation-bar__mobileComponent_1ru6d {
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-bar__flex_ferxi {
53
+ } .navigation-bar__flex_1ru6d {
54
54
  display: flex;
55
55
  align-items: center;
56
- } .navigation-bar__iconWrapper_ferxi {
56
+ } .navigation-bar__iconWrapper_1ru6d {
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-bar__iconWrapper_ferxi + .navigation-bar__text_ferxi {
63
+ } .navigation-bar__iconWrapper_1ru6d + .navigation-bar__text_1ru6d {
64
64
  margin-right: var(--gap-s);
65
- } .navigation-bar__mobileWrapper_ferxi {
65
+ } .navigation-bar__mobileWrapper_1ru6d {
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-bar__mobileWrapper_ferxi + .navigation-bar__text_ferxi {
72
+ } .navigation-bar__mobileWrapper_1ru6d + .navigation-bar__text_1ru6d {
73
73
  margin: 0 var(--gap-s) 0 var(--gap-xs);
74
- } .navigation-bar__mobileWrapper_ferxi svg > path {
74
+ } .navigation-bar__mobileWrapper_1ru6d 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-bar__closer_18z2z","button":"navigation-bar__button_18z2z","mobile":"navigation-bar__mobile_18z2z","sticky":"navigation-bar__sticky_18z2z"};
17
+ var styles = {"closer":"navigation-bar__closer_pqwx7","button":"navigation-bar__button_pqwx7","mobile":"navigation-bar__mobile_pqwx7","sticky":"navigation-bar__sticky_pqwx7"};
18
18
  require('./index.css')
19
19
 
20
20
  var Closer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: dzyai */
1
+ /* hash: 1qeng */
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-bar__closer_18z2z {
27
+ } .navigation-bar__closer_pqwx7 {
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-bar__button_18z2z {
35
+ } .navigation-bar__button_pqwx7 {
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-bar__button_18z2z.navigation-bar__mobile_18z2z {
40
+ } .navigation-bar__button_pqwx7.navigation-bar__mobile_pqwx7 {
41
41
  background: var(--color-light-neutral-translucent-100);
42
42
  color: var(--navigation-bar-closer-mobile-color);
43
- } .navigation-bar__button_18z2z.navigation-bar__button_18z2z {
43
+ } .navigation-bar__button_pqwx7.navigation-bar__button_pqwx7 {
44
44
  border-radius: var(--border-radius-circle);
45
- } .navigation-bar__sticky_18z2z {
45
+ } .navigation-bar__sticky_pqwx7 {
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: '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
+ 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-bar__header_i8g5v","backgroundImage":"navigation-bar__backgroundImage_i8g5v","mainLine":"navigation-bar__mainLine_i8g5v","mainLineSticky":"navigation-bar__mainLineSticky_i8g5v","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_i8g5v","content":"navigation-bar__content_i8g5v","withBothAddons":"navigation-bar__withBothAddons_i8g5v","withCompactTitle":"navigation-bar__withCompactTitle_i8g5v","children":"navigation-bar__children_i8g5v","title":"navigation-bar__title_i8g5v","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_i8g5v","contentOnBotMobile":"navigation-bar__contentOnBotMobile_i8g5v","subtitle":"navigation-bar__subtitle_i8g5v","addonsWrapper":"navigation-bar__addonsWrapper_i8g5v","rightAddons":"navigation-bar__rightAddons_i8g5v","addon":"navigation-bar__addon_i8g5v","bottomAddons":"navigation-bar__bottomAddons_i8g5v","closer":"navigation-bar__closer_i8g5v","left":"navigation-bar__left_i8g5v","center":"navigation-bar__center_i8g5v","trim":"navigation-bar__trim_i8g5v"};
10
+ var styles = {"header":"navigation-bar__header_1gb6g","backgroundImage":"navigation-bar__backgroundImage_1gb6g","mainLine":"navigation-bar__mainLine_1gb6g","mainLineSticky":"navigation-bar__mainLineSticky_1gb6g","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1gb6g","content":"navigation-bar__content_1gb6g","withBothAddons":"navigation-bar__withBothAddons_1gb6g","withCompactTitle":"navigation-bar__withCompactTitle_1gb6g","children":"navigation-bar__children_1gb6g","title":"navigation-bar__title_1gb6g","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1gb6g","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1gb6g","subtitle":"navigation-bar__subtitle_1gb6g","addonsWrapper":"navigation-bar__addonsWrapper_1gb6g","rightAddons":"navigation-bar__rightAddons_1gb6g","addon":"navigation-bar__addon_1gb6g","bottomAddons":"navigation-bar__bottomAddons_1gb6g","closer":"navigation-bar__closer_1gb6g","left":"navigation-bar__left_1gb6g","center":"navigation-bar__center_1gb6g","trim":"navigation-bar__trim_1gb6g"};
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-bar__component_ferxi","mobileComponent":"navigation-bar__mobileComponent_ferxi","flex":"navigation-bar__flex_ferxi","iconWrapper":"navigation-bar__iconWrapper_ferxi","text":"navigation-bar__text_ferxi","mobileWrapper":"navigation-bar__mobileWrapper_ferxi"};
9
+ var styles = {"component":"navigation-bar__component_1ru6d","mobileComponent":"navigation-bar__mobileComponent_1ru6d","flex":"navigation-bar__flex_1ru6d","iconWrapper":"navigation-bar__iconWrapper_1ru6d","text":"navigation-bar__text_1ru6d","mobileWrapper":"navigation-bar__mobileWrapper_1ru6d"};
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: '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
+ 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: ffzxl */
1
+ /* hash: imer1 */
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-bar__component_ferxi {
32
+ } .navigation-bar__component_1ru6d {
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-bar__component_ferxi svg > path {
39
+ } .navigation-bar__component_1ru6d svg > path {
40
40
  transition: fill 0.2s ease;
41
41
  fill: var(--color-light-neutral-1500);
42
- } .navigation-bar__component_ferxi:hover svg > path {
42
+ } .navigation-bar__component_1ru6d:hover svg > path {
43
43
  fill: var(--color-light-neutral-1500-hover);
44
- } .navigation-bar__component_ferxi:active svg > path {
44
+ } .navigation-bar__component_1ru6d:active svg > path {
45
45
  fill: var(--color-light-neutral-1500-press);
46
- } .navigation-bar__mobileComponent_ferxi {
46
+ } .navigation-bar__mobileComponent_1ru6d {
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-bar__flex_ferxi {
53
+ } .navigation-bar__flex_1ru6d {
54
54
  display: flex;
55
55
  align-items: center;
56
- } .navigation-bar__iconWrapper_ferxi {
56
+ } .navigation-bar__iconWrapper_1ru6d {
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-bar__iconWrapper_ferxi + .navigation-bar__text_ferxi {
63
+ } .navigation-bar__iconWrapper_1ru6d + .navigation-bar__text_1ru6d {
64
64
  margin-right: var(--gap-s);
65
- } .navigation-bar__mobileWrapper_ferxi {
65
+ } .navigation-bar__mobileWrapper_1ru6d {
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-bar__mobileWrapper_ferxi + .navigation-bar__text_ferxi {
72
+ } .navigation-bar__mobileWrapper_1ru6d + .navigation-bar__text_1ru6d {
73
73
  margin: 0 var(--gap-s) 0 var(--gap-xs);
74
- } .navigation-bar__mobileWrapper_ferxi svg > path {
74
+ } .navigation-bar__mobileWrapper_1ru6d 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-bar__closer_18z2z","button":"navigation-bar__button_18z2z","mobile":"navigation-bar__mobile_18z2z","sticky":"navigation-bar__sticky_18z2z"};
8
+ var styles = {"closer":"navigation-bar__closer_pqwx7","button":"navigation-bar__button_pqwx7","mobile":"navigation-bar__mobile_pqwx7","sticky":"navigation-bar__sticky_pqwx7"};
9
9
  require('./index.css')
10
10
 
11
11
  var Closer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: dzyai */
1
+ /* hash: 1qeng */
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-bar__closer_18z2z {
27
+ } .navigation-bar__closer_pqwx7 {
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-bar__button_18z2z {
35
+ } .navigation-bar__button_pqwx7 {
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-bar__button_18z2z.navigation-bar__mobile_18z2z {
40
+ } .navigation-bar__button_pqwx7.navigation-bar__mobile_pqwx7 {
41
41
  background: var(--color-light-neutral-translucent-100);
42
42
  color: var(--navigation-bar-closer-mobile-color);
43
- } .navigation-bar__button_18z2z.navigation-bar__button_18z2z {
43
+ } .navigation-bar__button_pqwx7.navigation-bar__button_pqwx7 {
44
44
  border-radius: var(--border-radius-circle);
45
- } .navigation-bar__sticky_18z2z {
45
+ } .navigation-bar__sticky_pqwx7 {
46
46
  position: sticky;
47
47
  top: 0;
48
48
  }
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1k17t */
1
+ /* hash: xesxw */
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-bar__header_i8g5v {
21
+ } .navigation-bar__header_1gb6g {
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_i8g5v.navigation-bar__header_i8g5v.navigation-bar__backgroundImage_i8g5v {
25
+ } .navigation-bar__header_1gb6g.navigation-bar__header_1gb6g.navigation-bar__backgroundImage_1gb6g {
26
26
  background-repeat: no-repeat;
27
27
  background-position: center;
28
28
  background-size: cover;
29
- } .navigation-bar__mainLine_i8g5v {
29
+ } .navigation-bar__mainLine_1gb6g {
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_i8g5v {
35
+ } .navigation-bar__mainLineSticky_1gb6g {
36
36
  position: sticky;
37
37
  top: 0;
38
- } .navigation-bar__mainLineWithImageBg_i8g5v {
38
+ } .navigation-bar__mainLineWithImageBg_1gb6g {
39
39
  background-color: initial;
40
- } .navigation-bar__content_i8g5v {
40
+ } .navigation-bar__content_1gb6g {
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_i8g5v.navigation-bar__withBothAddons_i8g5v,
50
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v {
49
+ } .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g,
50
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g {
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_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__children_i8g5v,
58
- .navigation-bar__content_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__title_i8g5v,
59
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__children_i8g5v,
60
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__title_i8g5v {
57
+ } .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g > .navigation-bar__children_1gb6g,
58
+ .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g > .navigation-bar__title_1gb6g,
59
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g > .navigation-bar__children_1gb6g,
60
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g > .navigation-bar__title_1gb6g {
61
61
  -webkit-line-clamp: 1;
62
62
  word-break: break-all;
63
- } .navigation-bar__content_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v {
63
+ } .navigation-bar__content_1gb6g.navigation-bar__contentOnBotDesktop_1gb6g.navigation-bar__contentOnBotDesktop_1gb6g {
64
64
  padding-top: var(--gap-s);
65
- } .navigation-bar__content_i8g5v.navigation-bar__contentOnBotMobile_i8g5v.navigation-bar__contentOnBotMobile_i8g5v {
65
+ } .navigation-bar__content_1gb6g.navigation-bar__contentOnBotMobile_1gb6g.navigation-bar__contentOnBotMobile_1gb6g {
66
66
  padding-top: var(--gap-s);
67
- } .navigation-bar__title_i8g5v {
67
+ } .navigation-bar__title_1gb6g {
68
68
  word-break: break-word;
69
- } .navigation-bar__subtitle_i8g5v {
69
+ } .navigation-bar__subtitle_1gb6g {
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_i8g5v {
80
+ } .navigation-bar__addonsWrapper_1gb6g {
81
81
  display: flex;
82
- } .navigation-bar__rightAddons_i8g5v {
82
+ } .navigation-bar__rightAddons_1gb6g {
83
83
  margin-left: auto;
84
- } .navigation-bar__addon_i8g5v {
84
+ } .navigation-bar__addon_1gb6g {
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_i8g5v {
92
+ } .navigation-bar__bottomAddons_1gb6g {
93
93
  pointer-events: all;
94
- } .navigation-bar__closer_i8g5v {
94
+ } .navigation-bar__closer_1gb6g {
95
95
  margin-left: auto;
96
- } .navigation-bar__left_i8g5v {
96
+ } .navigation-bar__left_1gb6g {
97
97
  text-align: left;
98
- } .navigation-bar__center_i8g5v {
98
+ } .navigation-bar__center_1gb6g {
99
99
  text-align: center;
100
- } .navigation-bar__trim_i8g5v {
100
+ } .navigation-bar__trim_1gb6g {
101
101
  overflow: hidden
102
- } .navigation-bar__trim_i8g5v .navigation-bar__title_i8g5v,
103
- .navigation-bar__trim_i8g5v .navigation-bar__children_i8g5v {
102
+ } .navigation-bar__trim_1gb6g .navigation-bar__title_1gb6g,
103
+ .navigation-bar__trim_1gb6g .navigation-bar__children_1gb6g {
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: 1k17t */
1
+ /* hash: xesxw */
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-bar__header_i8g5v {
21
+ } .navigation-bar__header_1gb6g {
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_i8g5v.navigation-bar__header_i8g5v.navigation-bar__backgroundImage_i8g5v {
25
+ } .navigation-bar__header_1gb6g.navigation-bar__header_1gb6g.navigation-bar__backgroundImage_1gb6g {
26
26
  background-repeat: no-repeat;
27
27
  background-position: center;
28
28
  background-size: cover;
29
- } .navigation-bar__mainLine_i8g5v {
29
+ } .navigation-bar__mainLine_1gb6g {
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_i8g5v {
35
+ } .navigation-bar__mainLineSticky_1gb6g {
36
36
  position: sticky;
37
37
  top: 0;
38
- } .navigation-bar__mainLineWithImageBg_i8g5v {
38
+ } .navigation-bar__mainLineWithImageBg_1gb6g {
39
39
  background-color: initial;
40
- } .navigation-bar__content_i8g5v {
40
+ } .navigation-bar__content_1gb6g {
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_i8g5v.navigation-bar__withBothAddons_i8g5v,
50
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v {
49
+ } .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g,
50
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g {
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_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__children_i8g5v,
58
- .navigation-bar__content_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__title_i8g5v,
59
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__children_i8g5v,
60
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__title_i8g5v {
57
+ } .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g > .navigation-bar__children_1gb6g,
58
+ .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g > .navigation-bar__title_1gb6g,
59
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g > .navigation-bar__children_1gb6g,
60
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g > .navigation-bar__title_1gb6g {
61
61
  -webkit-line-clamp: 1;
62
62
  word-break: break-all;
63
- } .navigation-bar__content_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v {
63
+ } .navigation-bar__content_1gb6g.navigation-bar__contentOnBotDesktop_1gb6g.navigation-bar__contentOnBotDesktop_1gb6g {
64
64
  padding-top: var(--gap-s);
65
- } .navigation-bar__content_i8g5v.navigation-bar__contentOnBotMobile_i8g5v.navigation-bar__contentOnBotMobile_i8g5v {
65
+ } .navigation-bar__content_1gb6g.navigation-bar__contentOnBotMobile_1gb6g.navigation-bar__contentOnBotMobile_1gb6g {
66
66
  padding-top: var(--gap-s);
67
- } .navigation-bar__title_i8g5v {
67
+ } .navigation-bar__title_1gb6g {
68
68
  word-break: break-word;
69
- } .navigation-bar__subtitle_i8g5v {
69
+ } .navigation-bar__subtitle_1gb6g {
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_i8g5v {
80
+ } .navigation-bar__addonsWrapper_1gb6g {
81
81
  display: flex;
82
- } .navigation-bar__rightAddons_i8g5v {
82
+ } .navigation-bar__rightAddons_1gb6g {
83
83
  margin-left: auto;
84
- } .navigation-bar__addon_i8g5v {
84
+ } .navigation-bar__addon_1gb6g {
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_i8g5v {
92
+ } .navigation-bar__bottomAddons_1gb6g {
93
93
  pointer-events: all;
94
- } .navigation-bar__closer_i8g5v {
94
+ } .navigation-bar__closer_1gb6g {
95
95
  margin-left: auto;
96
- } .navigation-bar__left_i8g5v {
96
+ } .navigation-bar__left_1gb6g {
97
97
  text-align: left;
98
- } .navigation-bar__center_i8g5v {
98
+ } .navigation-bar__center_1gb6g {
99
99
  text-align: center;
100
- } .navigation-bar__trim_i8g5v {
100
+ } .navigation-bar__trim_1gb6g {
101
101
  overflow: hidden
102
- } .navigation-bar__trim_i8g5v .navigation-bar__title_i8g5v,
103
- .navigation-bar__trim_i8g5v .navigation-bar__children_i8g5v {
102
+ } .navigation-bar__trim_1gb6g .navigation-bar__title_1gb6g,
103
+ .navigation-bar__trim_1gb6g .navigation-bar__children_1gb6g {
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_i8g5v","backgroundImage":"navigation-bar__backgroundImage_i8g5v","mainLine":"navigation-bar__mainLine_i8g5v","mainLineSticky":"navigation-bar__mainLineSticky_i8g5v","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_i8g5v","content":"navigation-bar__content_i8g5v","withBothAddons":"navigation-bar__withBothAddons_i8g5v","withCompactTitle":"navigation-bar__withCompactTitle_i8g5v","children":"navigation-bar__children_i8g5v","title":"navigation-bar__title_i8g5v","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_i8g5v","contentOnBotMobile":"navigation-bar__contentOnBotMobile_i8g5v","subtitle":"navigation-bar__subtitle_i8g5v","addonsWrapper":"navigation-bar__addonsWrapper_i8g5v","rightAddons":"navigation-bar__rightAddons_i8g5v","addon":"navigation-bar__addon_i8g5v","bottomAddons":"navigation-bar__bottomAddons_i8g5v","closer":"navigation-bar__closer_i8g5v","left":"navigation-bar__left_i8g5v","center":"navigation-bar__center_i8g5v","trim":"navigation-bar__trim_i8g5v"};
9
+ const styles = {"header":"navigation-bar__header_1gb6g","backgroundImage":"navigation-bar__backgroundImage_1gb6g","mainLine":"navigation-bar__mainLine_1gb6g","mainLineSticky":"navigation-bar__mainLineSticky_1gb6g","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1gb6g","content":"navigation-bar__content_1gb6g","withBothAddons":"navigation-bar__withBothAddons_1gb6g","withCompactTitle":"navigation-bar__withCompactTitle_1gb6g","children":"navigation-bar__children_1gb6g","title":"navigation-bar__title_1gb6g","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1gb6g","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1gb6g","subtitle":"navigation-bar__subtitle_1gb6g","addonsWrapper":"navigation-bar__addonsWrapper_1gb6g","rightAddons":"navigation-bar__rightAddons_1gb6g","addon":"navigation-bar__addon_1gb6g","bottomAddons":"navigation-bar__bottomAddons_1gb6g","closer":"navigation-bar__closer_1gb6g","left":"navigation-bar__left_1gb6g","center":"navigation-bar__center_1gb6g","trim":"navigation-bar__trim_1gb6g"};
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-bar__component_ferxi","mobileComponent":"navigation-bar__mobileComponent_ferxi","flex":"navigation-bar__flex_ferxi","iconWrapper":"navigation-bar__iconWrapper_ferxi","text":"navigation-bar__text_ferxi","mobileWrapper":"navigation-bar__mobileWrapper_ferxi"};
8
+ const styles = {"component":"navigation-bar__component_1ru6d","mobileComponent":"navigation-bar__mobileComponent_1ru6d","flex":"navigation-bar__flex_1ru6d","iconWrapper":"navigation-bar__iconWrapper_1ru6d","text":"navigation-bar__text_1ru6d","mobileWrapper":"navigation-bar__mobileWrapper_1ru6d"};
9
9
  require('./index.css')
10
10
 
11
11
  const BackArrowAddon = ({ text = 'Назад', onClick, className, textOpacity = 1, view, ...htmlAttributes }) => {
12
12
  const Icon = view === 'desktop' ? ArrowLeftMediumMIcon : ArrowLeftMIcon;
13
13
  const isMobileView = view === 'mobile';
14
- return (React.createElement(ButtonDesktop, { view: 'ghost', size: isMobileView ? 'xxs' : 's', onClick: onClick, "aria-label": '\u043D\u0430\u0437\u0430\u0434', className: cn(styles.component, { [styles.mobileComponent]: isMobileView }, className), ...htmlAttributes },
14
+ 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: ffzxl */
1
+ /* hash: imer1 */
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-bar__component_ferxi {
32
+ } .navigation-bar__component_1ru6d {
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-bar__component_ferxi svg > path {
39
+ } .navigation-bar__component_1ru6d svg > path {
40
40
  transition: fill 0.2s ease;
41
41
  fill: var(--color-light-neutral-1500);
42
- } .navigation-bar__component_ferxi:hover svg > path {
42
+ } .navigation-bar__component_1ru6d:hover svg > path {
43
43
  fill: var(--color-light-neutral-1500-hover);
44
- } .navigation-bar__component_ferxi:active svg > path {
44
+ } .navigation-bar__component_1ru6d:active svg > path {
45
45
  fill: var(--color-light-neutral-1500-press);
46
- } .navigation-bar__mobileComponent_ferxi {
46
+ } .navigation-bar__mobileComponent_1ru6d {
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-bar__flex_ferxi {
53
+ } .navigation-bar__flex_1ru6d {
54
54
  display: flex;
55
55
  align-items: center;
56
- } .navigation-bar__iconWrapper_ferxi {
56
+ } .navigation-bar__iconWrapper_1ru6d {
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-bar__iconWrapper_ferxi + .navigation-bar__text_ferxi {
63
+ } .navigation-bar__iconWrapper_1ru6d + .navigation-bar__text_1ru6d {
64
64
  margin-right: var(--gap-s);
65
- } .navigation-bar__mobileWrapper_ferxi {
65
+ } .navigation-bar__mobileWrapper_1ru6d {
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-bar__mobileWrapper_ferxi + .navigation-bar__text_ferxi {
72
+ } .navigation-bar__mobileWrapper_1ru6d + .navigation-bar__text_1ru6d {
73
73
  margin: 0 var(--gap-s) 0 var(--gap-xs);
74
- } .navigation-bar__mobileWrapper_ferxi svg > path {
74
+ } .navigation-bar__mobileWrapper_1ru6d 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-bar__closer_18z2z","button":"navigation-bar__button_18z2z","mobile":"navigation-bar__mobile_18z2z","sticky":"navigation-bar__sticky_18z2z"};
7
+ const styles = {"closer":"navigation-bar__closer_pqwx7","button":"navigation-bar__button_pqwx7","mobile":"navigation-bar__mobile_pqwx7","sticky":"navigation-bar__sticky_pqwx7"};
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: dzyai */
1
+ /* hash: 1qeng */
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-bar__closer_18z2z {
27
+ } .navigation-bar__closer_pqwx7 {
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-bar__button_18z2z {
35
+ } .navigation-bar__button_pqwx7 {
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-bar__button_18z2z.navigation-bar__mobile_18z2z {
40
+ } .navigation-bar__button_pqwx7.navigation-bar__mobile_pqwx7 {
41
41
  background: var(--color-light-neutral-translucent-100);
42
42
  color: var(--navigation-bar-closer-mobile-color);
43
- } .navigation-bar__button_18z2z.navigation-bar__button_18z2z {
43
+ } .navigation-bar__button_pqwx7.navigation-bar__button_pqwx7 {
44
44
  border-radius: var(--border-radius-circle);
45
- } .navigation-bar__sticky_18z2z {
45
+ } .navigation-bar__sticky_pqwx7 {
46
46
  position: sticky;
47
47
  top: 0;
48
48
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1k17t */
1
+ /* hash: xesxw */
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-bar__header_i8g5v {
21
+ } .navigation-bar__header_1gb6g {
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_i8g5v.navigation-bar__header_i8g5v.navigation-bar__backgroundImage_i8g5v {
25
+ } .navigation-bar__header_1gb6g.navigation-bar__header_1gb6g.navigation-bar__backgroundImage_1gb6g {
26
26
  background-repeat: no-repeat;
27
27
  background-position: center;
28
28
  background-size: cover;
29
- } .navigation-bar__mainLine_i8g5v {
29
+ } .navigation-bar__mainLine_1gb6g {
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_i8g5v {
35
+ } .navigation-bar__mainLineSticky_1gb6g {
36
36
  position: sticky;
37
37
  top: 0;
38
- } .navigation-bar__mainLineWithImageBg_i8g5v {
38
+ } .navigation-bar__mainLineWithImageBg_1gb6g {
39
39
  background-color: initial;
40
- } .navigation-bar__content_i8g5v {
40
+ } .navigation-bar__content_1gb6g {
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_i8g5v.navigation-bar__withBothAddons_i8g5v,
50
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v {
49
+ } .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g,
50
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g {
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_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__children_i8g5v,
58
- .navigation-bar__content_i8g5v.navigation-bar__withBothAddons_i8g5v > .navigation-bar__title_i8g5v,
59
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__children_i8g5v,
60
- .navigation-bar__content_i8g5v.navigation-bar__withCompactTitle_i8g5v > .navigation-bar__title_i8g5v {
57
+ } .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g > .navigation-bar__children_1gb6g,
58
+ .navigation-bar__content_1gb6g.navigation-bar__withBothAddons_1gb6g > .navigation-bar__title_1gb6g,
59
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g > .navigation-bar__children_1gb6g,
60
+ .navigation-bar__content_1gb6g.navigation-bar__withCompactTitle_1gb6g > .navigation-bar__title_1gb6g {
61
61
  -webkit-line-clamp: 1;
62
62
  word-break: break-all;
63
- } .navigation-bar__content_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v.navigation-bar__contentOnBotDesktop_i8g5v {
63
+ } .navigation-bar__content_1gb6g.navigation-bar__contentOnBotDesktop_1gb6g.navigation-bar__contentOnBotDesktop_1gb6g {
64
64
  padding-top: var(--gap-s);
65
- } .navigation-bar__content_i8g5v.navigation-bar__contentOnBotMobile_i8g5v.navigation-bar__contentOnBotMobile_i8g5v {
65
+ } .navigation-bar__content_1gb6g.navigation-bar__contentOnBotMobile_1gb6g.navigation-bar__contentOnBotMobile_1gb6g {
66
66
  padding-top: var(--gap-s);
67
- } .navigation-bar__title_i8g5v {
67
+ } .navigation-bar__title_1gb6g {
68
68
  word-break: break-word;
69
- } .navigation-bar__subtitle_i8g5v {
69
+ } .navigation-bar__subtitle_1gb6g {
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_i8g5v {
80
+ } .navigation-bar__addonsWrapper_1gb6g {
81
81
  display: flex;
82
- } .navigation-bar__rightAddons_i8g5v {
82
+ } .navigation-bar__rightAddons_1gb6g {
83
83
  margin-left: auto;
84
- } .navigation-bar__addon_i8g5v {
84
+ } .navigation-bar__addon_1gb6g {
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_i8g5v {
92
+ } .navigation-bar__bottomAddons_1gb6g {
93
93
  pointer-events: all;
94
- } .navigation-bar__closer_i8g5v {
94
+ } .navigation-bar__closer_1gb6g {
95
95
  margin-left: auto;
96
- } .navigation-bar__left_i8g5v {
96
+ } .navigation-bar__left_1gb6g {
97
97
  text-align: left;
98
- } .navigation-bar__center_i8g5v {
98
+ } .navigation-bar__center_1gb6g {
99
99
  text-align: center;
100
- } .navigation-bar__trim_i8g5v {
100
+ } .navigation-bar__trim_1gb6g {
101
101
  overflow: hidden
102
- } .navigation-bar__trim_i8g5v .navigation-bar__title_i8g5v,
103
- .navigation-bar__trim_i8g5v .navigation-bar__children_i8g5v {
102
+ } .navigation-bar__trim_1gb6g .navigation-bar__title_1gb6g,
103
+ .navigation-bar__trim_1gb6g .navigation-bar__children_1gb6g {
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.4",
3
+ "version": "0.8.5",
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.3",
15
- "@alfalab/core-components-button": "^11.3.0",
14
+ "@alfalab/core-components-icon-button": "^6.5.4",
15
+ "@alfalab/core-components-button": "^11.4.0",
16
16
  "@alfalab/core-components-typography": "^4.5.0",
17
17
  "@alfalab/core-components-shared": "^0.9.1",
18
18
  "@alfalab/hooks": "^1.13.0",
@@ -48,7 +48,7 @@ export const BackArrowAddon: React.FC<BackArrowAddonProps> = ({
48
48
 
49
49
  return (
50
50
  <ButtonDesktop
51
- view='ghost'
51
+ view='text'
52
52
  size={isMobileView ? 'xxs' : 's'}
53
53
  onClick={onClick}
54
54
  aria-label='назад'