@alfalab/core-components-navigation-bar-private 0.6.2 → 0.7.0

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,15 +17,15 @@ 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-private__header_9yimq","backgroundImage":"navigation-bar-private__backgroundImage_9yimq","mainLine":"navigation-bar-private__mainLine_9yimq","mainLineSticky":"navigation-bar-private__mainLineSticky_9yimq","mainLineWithImageBg":"navigation-bar-private__mainLineWithImageBg_9yimq","content":"navigation-bar-private__content_9yimq","withBothAddons":"navigation-bar-private__withBothAddons_9yimq","withCompactTitle":"navigation-bar-private__withCompactTitle_9yimq","children":"navigation-bar-private__children_9yimq","title":"navigation-bar-private__title_9yimq","contentOnBotDesktop":"navigation-bar-private__contentOnBotDesktop_9yimq","contentOnBotMobile":"navigation-bar-private__contentOnBotMobile_9yimq","subtitle":"navigation-bar-private__subtitle_9yimq","addonsWrapper":"navigation-bar-private__addonsWrapper_9yimq","rightAddons":"navigation-bar-private__rightAddons_9yimq","addon":"navigation-bar-private__addon_9yimq","bottomAddons":"navigation-bar-private__bottomAddons_9yimq","closer":"navigation-bar-private__closer_9yimq","left":"navigation-bar-private__left_9yimq","center":"navigation-bar-private__center_9yimq","trim":"navigation-bar-private__trim_9yimq"};
20
+ var styles = {"header":"navigation-bar-private__header_3ov1e","backgroundImage":"navigation-bar-private__backgroundImage_3ov1e","mainLine":"navigation-bar-private__mainLine_3ov1e","mainLineSticky":"navigation-bar-private__mainLineSticky_3ov1e","mainLineWithImageBg":"navigation-bar-private__mainLineWithImageBg_3ov1e","content":"navigation-bar-private__content_3ov1e","withBothAddons":"navigation-bar-private__withBothAddons_3ov1e","withCompactTitle":"navigation-bar-private__withCompactTitle_3ov1e","children":"navigation-bar-private__children_3ov1e","title":"navigation-bar-private__title_3ov1e","contentOnBotDesktop":"navigation-bar-private__contentOnBotDesktop_3ov1e","contentOnBotMobile":"navigation-bar-private__contentOnBotMobile_3ov1e","subtitle":"navigation-bar-private__subtitle_3ov1e","addonsWrapper":"navigation-bar-private__addonsWrapper_3ov1e","rightAddons":"navigation-bar-private__rightAddons_3ov1e","addon":"navigation-bar-private__addon_3ov1e","bottomAddons":"navigation-bar-private__bottomAddons_3ov1e","closer":"navigation-bar-private__closer_3ov1e","left":"navigation-bar-private__left_3ov1e","center":"navigation-bar-private__center_3ov1e","trim":"navigation-bar-private__trim_3ov1e"};
21
21
  require('./index.css')
22
22
 
23
23
  var ADDONS_HEIGHT = 48;
24
24
  var NavigationBarPrivate = React.forwardRef(function (_a, ref) {
25
25
  var _b, _c, _d;
26
- var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
27
- var _h = React.useState(0), scrollTop = _h[0], setScrollTop = _h[1];
28
- var _j = React.useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
26
+ var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, _h = _a.closerProps, closerProps = _h === void 0 ? {} : _h, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
27
+ var _j = React.useState(0), scrollTop = _j[0], setScrollTop = _j[1];
28
+ var _k = React.useState({ left: 0, right: 0 }), titleMargin = _k[0], setTitleMargin = _k[1];
29
29
  var bottomContentRef = React.useRef(null);
30
30
  var headerRef = React.useRef(null);
31
31
  var mainLinePaddingTopRef = React.useRef('0px');
@@ -106,7 +106,7 @@ var NavigationBarPrivate = React.forwardRef(function (_a, ref) {
106
106
  compactTitle && subtitle && (React__default.default.createElement("div", { className: styles.subtitle, "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'subtitle') }, subtitle))));
107
107
  };
108
108
  var renderCloser = function () { return (React__default.default.createElement("div", { className: cn__default.default(styles.addon, styles.closer, closerClassName) },
109
- React__default.default.createElement(components_closer_Component.Closer, { view: view, icon: closerIcon, dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'closer'), onClose: onClose }))); };
109
+ React__default.default.createElement(components_closer_Component.Closer, tslib.__assign({ view: view, icon: closerIcon, dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'closer'), onClose: onClose }, closerProps)))); };
110
110
  return (React__default.default.createElement("div", { ref: mergeRefs__default.default([ref, headerRef]), className: cn__default.default(styles.header, className, (_b = {}, _b[styles.backgroundImage] = imageUrl, _b)), "data-test-id": coreComponentsShared.getDataTestId(dataTestId), style: tslib.__assign(tslib.__assign({}, (imageUrl && { backgroundImage: "url(".concat(imageUrl, ")") })), (withAnimation &&
111
111
  bottomContentRef.current && {
112
112
  top: -bottomContentRef.current.scrollHeight,
@@ -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-private__component_1v9kw","mobileComponent":"navigation-bar-private__mobileComponent_1v9kw","flex":"navigation-bar-private__flex_1v9kw","iconWrapper":"navigation-bar-private__iconWrapper_1v9kw","text":"navigation-bar-private__text_1v9kw","mobileWrapper":"navigation-bar-private__mobileWrapper_1v9kw"};
18
+ var styles = {"component":"navigation-bar-private__component_10o5h","mobileComponent":"navigation-bar-private__mobileComponent_10o5h","flex":"navigation-bar-private__flex_10o5h","iconWrapper":"navigation-bar-private__iconWrapper_10o5h","text":"navigation-bar-private__text_10o5h","mobileWrapper":"navigation-bar-private__mobileWrapper_10o5h"};
19
19
  require('./index.css')
20
20
 
21
21
  var BackArrowAddon = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 278oi */
1
+ /* hash: hy37b */
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-translucent-100: rgba(38, 55, 88, 0.06);
@@ -40,48 +40,48 @@
40
40
 
41
41
  /* back-arrow */
42
42
  --navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
43
- } .navigation-bar-private__component_1v9kw {
43
+ } .navigation-bar-private__component_10o5h {
44
44
  height: 100%;
45
45
  background: var(--color-static-monochrome-white-4);
46
46
  -webkit-backdrop-filter: blur(10px);
47
47
  backdrop-filter: blur(10px);
48
48
  border-radius: var(--border-radius-pill);
49
49
  min-width: 48px
50
- } .navigation-bar-private__component_1v9kw svg > path {
50
+ } .navigation-bar-private__component_10o5h svg > path {
51
51
  transition: fill 0.2s ease;
52
52
  fill: var(--color-light-neutral-translucent-1300);
53
- } .navigation-bar-private__component_1v9kw:hover svg > path {
53
+ } .navigation-bar-private__component_10o5h:hover svg > path {
54
54
  fill: var(--color-light-neutral-translucent-1300-hover);
55
- } .navigation-bar-private__component_1v9kw:active svg > path {
55
+ } .navigation-bar-private__component_10o5h:active svg > path {
56
56
  fill: var(--color-light-neutral-translucent-1300-press);
57
- } .navigation-bar-private__mobileComponent_1v9kw {
57
+ } .navigation-bar-private__mobileComponent_10o5h {
58
58
  height: 32px;
59
59
  min-width: 32px;
60
60
  margin: var(--gap-0) var(--gap-8);
61
61
  -webkit-backdrop-filter: none;
62
62
  backdrop-filter: none;
63
63
  background: none;
64
- } .navigation-bar-private__flex_1v9kw {
64
+ } .navigation-bar-private__flex_10o5h {
65
65
  display: flex;
66
66
  align-items: center;
67
- } .navigation-bar-private__iconWrapper_1v9kw {
67
+ } .navigation-bar-private__iconWrapper_10o5h {
68
68
  display: inline-flex;
69
69
  align-items: center;
70
70
  justify-content: center;
71
71
  height: 48px;
72
72
  margin: var(--gap-0) var(--gap-8) var(--gap-0) var(--gap-12);
73
73
  border-radius: var(--border-radius-circle)
74
- } .navigation-bar-private__iconWrapper_1v9kw + .navigation-bar-private__text_1v9kw {
74
+ } .navigation-bar-private__iconWrapper_10o5h + .navigation-bar-private__text_10o5h {
75
75
  margin-right: var(--gap-12);
76
- } .navigation-bar-private__mobileWrapper_1v9kw {
76
+ } .navigation-bar-private__mobileWrapper_10o5h {
77
77
  width: 32px;
78
78
  height: 32px;
79
79
  background: var(--color-light-neutral-translucent-100);
80
80
  -webkit-backdrop-filter: blur(10px);
81
81
  backdrop-filter: blur(10px);
82
82
  margin: var(--gap-0)
83
- } .navigation-bar-private__mobileWrapper_1v9kw + .navigation-bar-private__text_1v9kw {
83
+ } .navigation-bar-private__mobileWrapper_10o5h + .navigation-bar-private__text_10o5h {
84
84
  margin: var(--gap-0) var(--gap-12) var(--gap-0) var(--gap-8);
85
- } .navigation-bar-private__mobileWrapper_1v9kw svg > path {
85
+ } .navigation-bar-private__mobileWrapper_10o5h svg > path {
86
86
  fill: var(--navigation-bar-back-arrow-mobile-fill);
87
87
  }
@@ -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-private__closer_t95b2","button":"navigation-bar-private__button_t95b2","mobile":"navigation-bar-private__mobile_t95b2","sticky":"navigation-bar-private__sticky_t95b2"};
17
+ var styles = {"closer":"navigation-bar-private__closer_5c3jv","button":"navigation-bar-private__button_5c3jv","mobile":"navigation-bar-private__mobile_5c3jv","sticky":"navigation-bar-private__sticky_5c3jv"};
18
18
  require('./index.css')
19
19
 
20
20
  var Closer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1f5vy */
1
+ /* hash: 1ictc */
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-translucent-100: rgba(38, 55, 88, 0.06);
@@ -33,7 +33,7 @@
33
33
  --navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
34
34
 
35
35
  /* back-arrow */
36
- } .navigation-bar-private__closer_t95b2 {
36
+ } .navigation-bar-private__closer_5c3jv {
37
37
  flex-shrink: 0;
38
38
  width: 48px;
39
39
  height: 48px;
@@ -41,17 +41,17 @@
41
41
  display: flex;
42
42
  align-items: center;
43
43
  justify-content: center;
44
- } .navigation-bar-private__button_t95b2 {
44
+ } .navigation-bar-private__button_5c3jv {
45
45
  background: var(--color-static-monochrome-white-4);
46
46
  -webkit-backdrop-filter: blur(10px);
47
47
  backdrop-filter: blur(10px);
48
48
  color: var(--color-light-neutral-translucent-1300)
49
- } .navigation-bar-private__button_t95b2.navigation-bar-private__mobile_t95b2 {
49
+ } .navigation-bar-private__button_5c3jv.navigation-bar-private__mobile_5c3jv {
50
50
  background: var(--color-light-neutral-translucent-100);
51
51
  color: var(--navigation-bar-closer-mobile-color);
52
- } .navigation-bar-private__button_t95b2.navigation-bar-private__button_t95b2 {
52
+ } .navigation-bar-private__button_5c3jv.navigation-bar-private__button_5c3jv {
53
53
  border-radius: var(--border-radius-circle);
54
- } .navigation-bar-private__sticky_t95b2 {
54
+ } .navigation-bar-private__sticky_5c3jv {
55
55
  position: sticky;
56
56
  top: var(--gap-0);
57
57
  }
package/cssm/Component.js CHANGED
@@ -22,9 +22,9 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
22
22
  var ADDONS_HEIGHT = 48;
23
23
  var NavigationBarPrivate = React.forwardRef(function (_a, ref) {
24
24
  var _b, _c, _d;
25
- var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
26
- var _h = React.useState(0), scrollTop = _h[0], setScrollTop = _h[1];
27
- var _j = React.useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
25
+ var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, _h = _a.closerProps, closerProps = _h === void 0 ? {} : _h, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
26
+ var _j = React.useState(0), scrollTop = _j[0], setScrollTop = _j[1];
27
+ var _k = React.useState({ left: 0, right: 0 }), titleMargin = _k[0], setTitleMargin = _k[1];
28
28
  var bottomContentRef = React.useRef(null);
29
29
  var headerRef = React.useRef(null);
30
30
  var mainLinePaddingTopRef = React.useRef('0px');
@@ -105,7 +105,7 @@ var NavigationBarPrivate = React.forwardRef(function (_a, ref) {
105
105
  compactTitle && subtitle && (React__default.default.createElement("div", { className: styles__default.default.subtitle, "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'subtitle') }, subtitle))));
106
106
  };
107
107
  var renderCloser = function () { return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.addon, styles__default.default.closer, closerClassName) },
108
- React__default.default.createElement(components_closer_Component.Closer, { view: view, icon: closerIcon, dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'closer'), onClose: onClose }))); };
108
+ React__default.default.createElement(components_closer_Component.Closer, tslib.__assign({ view: view, icon: closerIcon, dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'closer'), onClose: onClose }, closerProps)))); };
109
109
  return (React__default.default.createElement("div", { ref: mergeRefs__default.default([ref, headerRef]), className: cn__default.default(styles__default.default.header, className, (_b = {}, _b[styles__default.default.backgroundImage] = imageUrl, _b)), "data-test-id": coreComponentsShared.getDataTestId(dataTestId), style: tslib.__assign(tslib.__assign({}, (imageUrl && { backgroundImage: "url(".concat(imageUrl, ")") })), (withAnimation &&
110
110
  bottomContentRef.current && {
111
111
  top: -bottomContentRef.current.scrollHeight,
package/cssm/types.d.ts CHANGED
@@ -96,6 +96,10 @@ type NavigationBarPrivateProps = {
96
96
  * Обработчик закрытия
97
97
  */
98
98
  onClose?: CloserProps['onClose'];
99
+ /**
100
+ * Дополнительные пропсы для компонента Closer.
101
+ */
102
+ closerProps?: Omit<CloserProps, 'view' | 'onClose'>;
99
103
  /**
100
104
  * обработчик клика по кнопке "назад"
101
105
  */
package/esm/Component.js CHANGED
@@ -7,15 +7,15 @@ 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-private__header_9yimq","backgroundImage":"navigation-bar-private__backgroundImage_9yimq","mainLine":"navigation-bar-private__mainLine_9yimq","mainLineSticky":"navigation-bar-private__mainLineSticky_9yimq","mainLineWithImageBg":"navigation-bar-private__mainLineWithImageBg_9yimq","content":"navigation-bar-private__content_9yimq","withBothAddons":"navigation-bar-private__withBothAddons_9yimq","withCompactTitle":"navigation-bar-private__withCompactTitle_9yimq","children":"navigation-bar-private__children_9yimq","title":"navigation-bar-private__title_9yimq","contentOnBotDesktop":"navigation-bar-private__contentOnBotDesktop_9yimq","contentOnBotMobile":"navigation-bar-private__contentOnBotMobile_9yimq","subtitle":"navigation-bar-private__subtitle_9yimq","addonsWrapper":"navigation-bar-private__addonsWrapper_9yimq","rightAddons":"navigation-bar-private__rightAddons_9yimq","addon":"navigation-bar-private__addon_9yimq","bottomAddons":"navigation-bar-private__bottomAddons_9yimq","closer":"navigation-bar-private__closer_9yimq","left":"navigation-bar-private__left_9yimq","center":"navigation-bar-private__center_9yimq","trim":"navigation-bar-private__trim_9yimq"};
10
+ var styles = {"header":"navigation-bar-private__header_3ov1e","backgroundImage":"navigation-bar-private__backgroundImage_3ov1e","mainLine":"navigation-bar-private__mainLine_3ov1e","mainLineSticky":"navigation-bar-private__mainLineSticky_3ov1e","mainLineWithImageBg":"navigation-bar-private__mainLineWithImageBg_3ov1e","content":"navigation-bar-private__content_3ov1e","withBothAddons":"navigation-bar-private__withBothAddons_3ov1e","withCompactTitle":"navigation-bar-private__withCompactTitle_3ov1e","children":"navigation-bar-private__children_3ov1e","title":"navigation-bar-private__title_3ov1e","contentOnBotDesktop":"navigation-bar-private__contentOnBotDesktop_3ov1e","contentOnBotMobile":"navigation-bar-private__contentOnBotMobile_3ov1e","subtitle":"navigation-bar-private__subtitle_3ov1e","addonsWrapper":"navigation-bar-private__addonsWrapper_3ov1e","rightAddons":"navigation-bar-private__rightAddons_3ov1e","addon":"navigation-bar-private__addon_3ov1e","bottomAddons":"navigation-bar-private__bottomAddons_3ov1e","closer":"navigation-bar-private__closer_3ov1e","left":"navigation-bar-private__left_3ov1e","center":"navigation-bar-private__center_3ov1e","trim":"navigation-bar-private__trim_3ov1e"};
11
11
  require('./index.css')
12
12
 
13
13
  var ADDONS_HEIGHT = 48;
14
14
  var NavigationBarPrivate = forwardRef(function (_a, ref) {
15
15
  var _b, _c, _d;
16
- var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
17
- var _h = useState(0), scrollTop = _h[0], setScrollTop = _h[1];
18
- var _j = useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
16
+ var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, _h = _a.closerProps, closerProps = _h === void 0 ? {} : _h, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack, dataName = _a.dataName, titleClassName = _a.titleClassName, titleRef = _a.titleRef;
17
+ var _j = useState(0), scrollTop = _j[0], setScrollTop = _j[1];
18
+ var _k = useState({ left: 0, right: 0 }), titleMargin = _k[0], setTitleMargin = _k[1];
19
19
  var bottomContentRef = useRef(null);
20
20
  var headerRef = useRef(null);
21
21
  var mainLinePaddingTopRef = useRef('0px');
@@ -96,7 +96,7 @@ var NavigationBarPrivate = forwardRef(function (_a, ref) {
96
96
  compactTitle && subtitle && (React.createElement("div", { className: styles.subtitle, "data-test-id": getDataTestId(dataTestId, 'subtitle') }, subtitle))));
97
97
  };
98
98
  var renderCloser = function () { return (React.createElement("div", { className: cn(styles.addon, styles.closer, closerClassName) },
99
- React.createElement(Closer, { view: view, icon: closerIcon, dataTestId: getDataTestId(dataTestId, 'closer'), onClose: onClose }))); };
99
+ React.createElement(Closer, __assign({ view: view, icon: closerIcon, dataTestId: getDataTestId(dataTestId, 'closer'), onClose: onClose }, closerProps)))); };
100
100
  return (React.createElement("div", { ref: mergeRefs([ref, headerRef]), className: cn(styles.header, className, (_b = {}, _b[styles.backgroundImage] = imageUrl, _b)), "data-test-id": getDataTestId(dataTestId), style: __assign(__assign({}, (imageUrl && { backgroundImage: "url(".concat(imageUrl, ")") })), (withAnimation &&
101
101
  bottomContentRef.current && {
102
102
  top: -bottomContentRef.current.scrollHeight,
@@ -6,7 +6,7 @@ import { Text } 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-private__component_1v9kw","mobileComponent":"navigation-bar-private__mobileComponent_1v9kw","flex":"navigation-bar-private__flex_1v9kw","iconWrapper":"navigation-bar-private__iconWrapper_1v9kw","text":"navigation-bar-private__text_1v9kw","mobileWrapper":"navigation-bar-private__mobileWrapper_1v9kw"};
9
+ var styles = {"component":"navigation-bar-private__component_10o5h","mobileComponent":"navigation-bar-private__mobileComponent_10o5h","flex":"navigation-bar-private__flex_10o5h","iconWrapper":"navigation-bar-private__iconWrapper_10o5h","text":"navigation-bar-private__text_10o5h","mobileWrapper":"navigation-bar-private__mobileWrapper_10o5h"};
10
10
  require('./index.css')
11
11
 
12
12
  var BackArrowAddon = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 278oi */
1
+ /* hash: hy37b */
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-translucent-100: rgba(38, 55, 88, 0.06);
@@ -40,48 +40,48 @@
40
40
 
41
41
  /* back-arrow */
42
42
  --navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
43
- } .navigation-bar-private__component_1v9kw {
43
+ } .navigation-bar-private__component_10o5h {
44
44
  height: 100%;
45
45
  background: var(--color-static-monochrome-white-4);
46
46
  -webkit-backdrop-filter: blur(10px);
47
47
  backdrop-filter: blur(10px);
48
48
  border-radius: var(--border-radius-pill);
49
49
  min-width: 48px
50
- } .navigation-bar-private__component_1v9kw svg > path {
50
+ } .navigation-bar-private__component_10o5h svg > path {
51
51
  transition: fill 0.2s ease;
52
52
  fill: var(--color-light-neutral-translucent-1300);
53
- } .navigation-bar-private__component_1v9kw:hover svg > path {
53
+ } .navigation-bar-private__component_10o5h:hover svg > path {
54
54
  fill: var(--color-light-neutral-translucent-1300-hover);
55
- } .navigation-bar-private__component_1v9kw:active svg > path {
55
+ } .navigation-bar-private__component_10o5h:active svg > path {
56
56
  fill: var(--color-light-neutral-translucent-1300-press);
57
- } .navigation-bar-private__mobileComponent_1v9kw {
57
+ } .navigation-bar-private__mobileComponent_10o5h {
58
58
  height: 32px;
59
59
  min-width: 32px;
60
60
  margin: var(--gap-0) var(--gap-8);
61
61
  -webkit-backdrop-filter: none;
62
62
  backdrop-filter: none;
63
63
  background: none;
64
- } .navigation-bar-private__flex_1v9kw {
64
+ } .navigation-bar-private__flex_10o5h {
65
65
  display: flex;
66
66
  align-items: center;
67
- } .navigation-bar-private__iconWrapper_1v9kw {
67
+ } .navigation-bar-private__iconWrapper_10o5h {
68
68
  display: inline-flex;
69
69
  align-items: center;
70
70
  justify-content: center;
71
71
  height: 48px;
72
72
  margin: var(--gap-0) var(--gap-8) var(--gap-0) var(--gap-12);
73
73
  border-radius: var(--border-radius-circle)
74
- } .navigation-bar-private__iconWrapper_1v9kw + .navigation-bar-private__text_1v9kw {
74
+ } .navigation-bar-private__iconWrapper_10o5h + .navigation-bar-private__text_10o5h {
75
75
  margin-right: var(--gap-12);
76
- } .navigation-bar-private__mobileWrapper_1v9kw {
76
+ } .navigation-bar-private__mobileWrapper_10o5h {
77
77
  width: 32px;
78
78
  height: 32px;
79
79
  background: var(--color-light-neutral-translucent-100);
80
80
  -webkit-backdrop-filter: blur(10px);
81
81
  backdrop-filter: blur(10px);
82
82
  margin: var(--gap-0)
83
- } .navigation-bar-private__mobileWrapper_1v9kw + .navigation-bar-private__text_1v9kw {
83
+ } .navigation-bar-private__mobileWrapper_10o5h + .navigation-bar-private__text_10o5h {
84
84
  margin: var(--gap-0) var(--gap-12) var(--gap-0) var(--gap-8);
85
- } .navigation-bar-private__mobileWrapper_1v9kw svg > path {
85
+ } .navigation-bar-private__mobileWrapper_10o5h svg > path {
86
86
  fill: var(--navigation-bar-back-arrow-mobile-fill);
87
87
  }
@@ -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-private__closer_t95b2","button":"navigation-bar-private__button_t95b2","mobile":"navigation-bar-private__mobile_t95b2","sticky":"navigation-bar-private__sticky_t95b2"};
8
+ var styles = {"closer":"navigation-bar-private__closer_5c3jv","button":"navigation-bar-private__button_5c3jv","mobile":"navigation-bar-private__mobile_5c3jv","sticky":"navigation-bar-private__sticky_5c3jv"};
9
9
  require('./index.css')
10
10
 
11
11
  var Closer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1f5vy */
1
+ /* hash: 1ictc */
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-translucent-100: rgba(38, 55, 88, 0.06);
@@ -33,7 +33,7 @@
33
33
  --navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
34
34
 
35
35
  /* back-arrow */
36
- } .navigation-bar-private__closer_t95b2 {
36
+ } .navigation-bar-private__closer_5c3jv {
37
37
  flex-shrink: 0;
38
38
  width: 48px;
39
39
  height: 48px;
@@ -41,17 +41,17 @@
41
41
  display: flex;
42
42
  align-items: center;
43
43
  justify-content: center;
44
- } .navigation-bar-private__button_t95b2 {
44
+ } .navigation-bar-private__button_5c3jv {
45
45
  background: var(--color-static-monochrome-white-4);
46
46
  -webkit-backdrop-filter: blur(10px);
47
47
  backdrop-filter: blur(10px);
48
48
  color: var(--color-light-neutral-translucent-1300)
49
- } .navigation-bar-private__button_t95b2.navigation-bar-private__mobile_t95b2 {
49
+ } .navigation-bar-private__button_5c3jv.navigation-bar-private__mobile_5c3jv {
50
50
  background: var(--color-light-neutral-translucent-100);
51
51
  color: var(--navigation-bar-closer-mobile-color);
52
- } .navigation-bar-private__button_t95b2.navigation-bar-private__button_t95b2 {
52
+ } .navigation-bar-private__button_5c3jv.navigation-bar-private__button_5c3jv {
53
53
  border-radius: var(--border-radius-circle);
54
- } .navigation-bar-private__sticky_t95b2 {
54
+ } .navigation-bar-private__sticky_5c3jv {
55
55
  position: sticky;
56
56
  top: var(--gap-0);
57
57
  }
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 16cy1 */
1
+ /* hash: 19jvf */
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: rgba(3, 3, 6, 0.88);
@@ -28,26 +28,26 @@
28
28
  --gap-12: var(--gap-s);
29
29
  } :root {
30
30
  } :root {
31
- } /* сбрасывает синюю подсветку при нажатии */ .navigation-bar-private__header_9yimq {
31
+ } /* сбрасывает синюю подсветку при нажатии */ .navigation-bar-private__header_3ov1e {
32
32
  width: 100%;
33
33
  box-sizing: border-box;
34
34
  transition: box-shadow 0.2s ease, background 0.2s ease
35
- } .navigation-bar-private__header_9yimq.navigation-bar-private__header_9yimq.navigation-bar-private__backgroundImage_9yimq {
35
+ } .navigation-bar-private__header_3ov1e.navigation-bar-private__header_3ov1e.navigation-bar-private__backgroundImage_3ov1e {
36
36
  background-repeat: no-repeat;
37
37
  background-position: center;
38
38
  background-size: cover;
39
- } .navigation-bar-private__mainLine_9yimq {
39
+ } .navigation-bar-private__mainLine_3ov1e {
40
40
  display: flex;
41
41
  align-items: stretch;
42
42
  justify-content: space-between;
43
43
  z-index: 1;
44
44
  background-color: inherit;
45
- } .navigation-bar-private__mainLineSticky_9yimq {
45
+ } .navigation-bar-private__mainLineSticky_3ov1e {
46
46
  position: sticky;
47
47
  top: var(--gap-0);
48
- } .navigation-bar-private__mainLineWithImageBg_9yimq {
48
+ } .navigation-bar-private__mainLineWithImageBg_3ov1e {
49
49
  background-color: initial;
50
- } .navigation-bar-private__content_9yimq {
50
+ } .navigation-bar-private__content_3ov1e {
51
51
  color: var(--color-light-text-primary);
52
52
  display: flex;
53
53
  flex-flow: column nowrap;
@@ -56,27 +56,27 @@
56
56
  align-self: baseline;
57
57
  box-sizing: border-box;
58
58
  min-height: 48px
59
- } .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq,
60
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq {
59
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e,
60
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e {
61
61
  font-size: 16px;
62
62
  line-height: 20px;
63
63
  font-weight: 500;
64
64
  align-self: center;
65
65
  padding-top: var(--gap-4);
66
66
  padding-bottom: var(--gap-4)
67
- } .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq > .navigation-bar-private__children_9yimq,
68
- .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq > .navigation-bar-private__title_9yimq,
69
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq > .navigation-bar-private__children_9yimq,
70
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq > .navigation-bar-private__title_9yimq {
67
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e > .navigation-bar-private__children_3ov1e,
68
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e > .navigation-bar-private__title_3ov1e,
69
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e > .navigation-bar-private__children_3ov1e,
70
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e > .navigation-bar-private__title_3ov1e {
71
71
  -webkit-line-clamp: 1;
72
72
  word-break: break-all;
73
- } .navigation-bar-private__content_9yimq.navigation-bar-private__contentOnBotDesktop_9yimq.navigation-bar-private__contentOnBotDesktop_9yimq {
73
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__contentOnBotDesktop_3ov1e.navigation-bar-private__contentOnBotDesktop_3ov1e {
74
74
  padding-top: var(--gap-12);
75
- } .navigation-bar-private__content_9yimq.navigation-bar-private__contentOnBotMobile_9yimq.navigation-bar-private__contentOnBotMobile_9yimq {
75
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__contentOnBotMobile_3ov1e.navigation-bar-private__contentOnBotMobile_3ov1e {
76
76
  padding-top: var(--gap-12);
77
- } .navigation-bar-private__title_9yimq {
77
+ } .navigation-bar-private__title_3ov1e {
78
78
  word-break: break-word;
79
- } .navigation-bar-private__subtitle_9yimq {
79
+ } .navigation-bar-private__subtitle_3ov1e {
80
80
  font-size: 14px;
81
81
  line-height: 20px;
82
82
  font-weight: 400;
@@ -87,11 +87,11 @@
87
87
 
88
88
  color: var(--color-light-text-secondary);
89
89
  word-break: break-all;
90
- } .navigation-bar-private__addonsWrapper_9yimq {
90
+ } .navigation-bar-private__addonsWrapper_3ov1e {
91
91
  display: flex;
92
- } .navigation-bar-private__rightAddons_9yimq {
92
+ } .navigation-bar-private__rightAddons_3ov1e {
93
93
  margin-left: auto;
94
- } .navigation-bar-private__addon_9yimq {
94
+ } .navigation-bar-private__addon_3ov1e {
95
95
  min-width: 48px;
96
96
  height: 48px;
97
97
  display: flex;
@@ -99,18 +99,18 @@
99
99
  align-items: center;
100
100
  flex-shrink: 0;
101
101
  pointer-events: all;
102
- } .navigation-bar-private__bottomAddons_9yimq {
102
+ } .navigation-bar-private__bottomAddons_3ov1e {
103
103
  pointer-events: all;
104
- } .navigation-bar-private__closer_9yimq {
104
+ } .navigation-bar-private__closer_3ov1e {
105
105
  margin-left: auto;
106
- } .navigation-bar-private__left_9yimq {
106
+ } .navigation-bar-private__left_3ov1e {
107
107
  text-align: left;
108
- } .navigation-bar-private__center_9yimq {
108
+ } .navigation-bar-private__center_3ov1e {
109
109
  text-align: center;
110
- } .navigation-bar-private__trim_9yimq {
110
+ } .navigation-bar-private__trim_3ov1e {
111
111
  overflow: hidden
112
- } .navigation-bar-private__trim_9yimq .navigation-bar-private__title_9yimq,
113
- .navigation-bar-private__trim_9yimq .navigation-bar-private__children_9yimq {
112
+ } .navigation-bar-private__trim_3ov1e .navigation-bar-private__title_3ov1e,
113
+ .navigation-bar-private__trim_3ov1e .navigation-bar-private__children_3ov1e {
114
114
  -webkit-line-clamp: 2;
115
115
  display: -webkit-box;
116
116
  -webkit-box-orient: vertical;
package/esm/types.d.ts CHANGED
@@ -96,6 +96,10 @@ type NavigationBarPrivateProps = {
96
96
  * Обработчик закрытия
97
97
  */
98
98
  onClose?: CloserProps['onClose'];
99
+ /**
100
+ * Дополнительные пропсы для компонента Closer.
101
+ */
102
+ closerProps?: Omit<CloserProps, 'view' | 'onClose'>;
99
103
  /**
100
104
  * обработчик клика по кнопке "назад"
101
105
  */
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 16cy1 */
1
+ /* hash: 19jvf */
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: rgba(3, 3, 6, 0.88);
@@ -28,26 +28,26 @@
28
28
  --gap-12: var(--gap-s);
29
29
  } :root {
30
30
  } :root {
31
- } /* сбрасывает синюю подсветку при нажатии */ .navigation-bar-private__header_9yimq {
31
+ } /* сбрасывает синюю подсветку при нажатии */ .navigation-bar-private__header_3ov1e {
32
32
  width: 100%;
33
33
  box-sizing: border-box;
34
34
  transition: box-shadow 0.2s ease, background 0.2s ease
35
- } .navigation-bar-private__header_9yimq.navigation-bar-private__header_9yimq.navigation-bar-private__backgroundImage_9yimq {
35
+ } .navigation-bar-private__header_3ov1e.navigation-bar-private__header_3ov1e.navigation-bar-private__backgroundImage_3ov1e {
36
36
  background-repeat: no-repeat;
37
37
  background-position: center;
38
38
  background-size: cover;
39
- } .navigation-bar-private__mainLine_9yimq {
39
+ } .navigation-bar-private__mainLine_3ov1e {
40
40
  display: flex;
41
41
  align-items: stretch;
42
42
  justify-content: space-between;
43
43
  z-index: 1;
44
44
  background-color: inherit;
45
- } .navigation-bar-private__mainLineSticky_9yimq {
45
+ } .navigation-bar-private__mainLineSticky_3ov1e {
46
46
  position: sticky;
47
47
  top: var(--gap-0);
48
- } .navigation-bar-private__mainLineWithImageBg_9yimq {
48
+ } .navigation-bar-private__mainLineWithImageBg_3ov1e {
49
49
  background-color: initial;
50
- } .navigation-bar-private__content_9yimq {
50
+ } .navigation-bar-private__content_3ov1e {
51
51
  color: var(--color-light-text-primary);
52
52
  display: flex;
53
53
  flex-flow: column nowrap;
@@ -56,27 +56,27 @@
56
56
  align-self: baseline;
57
57
  box-sizing: border-box;
58
58
  min-height: 48px
59
- } .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq,
60
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq {
59
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e,
60
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e {
61
61
  font-size: 16px;
62
62
  line-height: 20px;
63
63
  font-weight: 500;
64
64
  align-self: center;
65
65
  padding-top: var(--gap-4);
66
66
  padding-bottom: var(--gap-4)
67
- } .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq > .navigation-bar-private__children_9yimq,
68
- .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq > .navigation-bar-private__title_9yimq,
69
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq > .navigation-bar-private__children_9yimq,
70
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq > .navigation-bar-private__title_9yimq {
67
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e > .navigation-bar-private__children_3ov1e,
68
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e > .navigation-bar-private__title_3ov1e,
69
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e > .navigation-bar-private__children_3ov1e,
70
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e > .navigation-bar-private__title_3ov1e {
71
71
  -webkit-line-clamp: 1;
72
72
  word-break: break-all;
73
- } .navigation-bar-private__content_9yimq.navigation-bar-private__contentOnBotDesktop_9yimq.navigation-bar-private__contentOnBotDesktop_9yimq {
73
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__contentOnBotDesktop_3ov1e.navigation-bar-private__contentOnBotDesktop_3ov1e {
74
74
  padding-top: var(--gap-12);
75
- } .navigation-bar-private__content_9yimq.navigation-bar-private__contentOnBotMobile_9yimq.navigation-bar-private__contentOnBotMobile_9yimq {
75
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__contentOnBotMobile_3ov1e.navigation-bar-private__contentOnBotMobile_3ov1e {
76
76
  padding-top: var(--gap-12);
77
- } .navigation-bar-private__title_9yimq {
77
+ } .navigation-bar-private__title_3ov1e {
78
78
  word-break: break-word;
79
- } .navigation-bar-private__subtitle_9yimq {
79
+ } .navigation-bar-private__subtitle_3ov1e {
80
80
  font-size: 14px;
81
81
  line-height: 20px;
82
82
  font-weight: 400;
@@ -87,11 +87,11 @@
87
87
 
88
88
  color: var(--color-light-text-secondary);
89
89
  word-break: break-all;
90
- } .navigation-bar-private__addonsWrapper_9yimq {
90
+ } .navigation-bar-private__addonsWrapper_3ov1e {
91
91
  display: flex;
92
- } .navigation-bar-private__rightAddons_9yimq {
92
+ } .navigation-bar-private__rightAddons_3ov1e {
93
93
  margin-left: auto;
94
- } .navigation-bar-private__addon_9yimq {
94
+ } .navigation-bar-private__addon_3ov1e {
95
95
  min-width: 48px;
96
96
  height: 48px;
97
97
  display: flex;
@@ -99,18 +99,18 @@
99
99
  align-items: center;
100
100
  flex-shrink: 0;
101
101
  pointer-events: all;
102
- } .navigation-bar-private__bottomAddons_9yimq {
102
+ } .navigation-bar-private__bottomAddons_3ov1e {
103
103
  pointer-events: all;
104
- } .navigation-bar-private__closer_9yimq {
104
+ } .navigation-bar-private__closer_3ov1e {
105
105
  margin-left: auto;
106
- } .navigation-bar-private__left_9yimq {
106
+ } .navigation-bar-private__left_3ov1e {
107
107
  text-align: left;
108
- } .navigation-bar-private__center_9yimq {
108
+ } .navigation-bar-private__center_3ov1e {
109
109
  text-align: center;
110
- } .navigation-bar-private__trim_9yimq {
110
+ } .navigation-bar-private__trim_3ov1e {
111
111
  overflow: hidden
112
- } .navigation-bar-private__trim_9yimq .navigation-bar-private__title_9yimq,
113
- .navigation-bar-private__trim_9yimq .navigation-bar-private__children_9yimq {
112
+ } .navigation-bar-private__trim_3ov1e .navigation-bar-private__title_3ov1e,
113
+ .navigation-bar-private__trim_3ov1e .navigation-bar-private__children_3ov1e {
114
114
  -webkit-line-clamp: 2;
115
115
  display: -webkit-box;
116
116
  -webkit-box-orient: vertical;
@@ -6,12 +6,12 @@ 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-private__header_9yimq","backgroundImage":"navigation-bar-private__backgroundImage_9yimq","mainLine":"navigation-bar-private__mainLine_9yimq","mainLineSticky":"navigation-bar-private__mainLineSticky_9yimq","mainLineWithImageBg":"navigation-bar-private__mainLineWithImageBg_9yimq","content":"navigation-bar-private__content_9yimq","withBothAddons":"navigation-bar-private__withBothAddons_9yimq","withCompactTitle":"navigation-bar-private__withCompactTitle_9yimq","children":"navigation-bar-private__children_9yimq","title":"navigation-bar-private__title_9yimq","contentOnBotDesktop":"navigation-bar-private__contentOnBotDesktop_9yimq","contentOnBotMobile":"navigation-bar-private__contentOnBotMobile_9yimq","subtitle":"navigation-bar-private__subtitle_9yimq","addonsWrapper":"navigation-bar-private__addonsWrapper_9yimq","rightAddons":"navigation-bar-private__rightAddons_9yimq","addon":"navigation-bar-private__addon_9yimq","bottomAddons":"navigation-bar-private__bottomAddons_9yimq","closer":"navigation-bar-private__closer_9yimq","left":"navigation-bar-private__left_9yimq","center":"navigation-bar-private__center_9yimq","trim":"navigation-bar-private__trim_9yimq"};
9
+ const styles = {"header":"navigation-bar-private__header_3ov1e","backgroundImage":"navigation-bar-private__backgroundImage_3ov1e","mainLine":"navigation-bar-private__mainLine_3ov1e","mainLineSticky":"navigation-bar-private__mainLineSticky_3ov1e","mainLineWithImageBg":"navigation-bar-private__mainLineWithImageBg_3ov1e","content":"navigation-bar-private__content_3ov1e","withBothAddons":"navigation-bar-private__withBothAddons_3ov1e","withCompactTitle":"navigation-bar-private__withCompactTitle_3ov1e","children":"navigation-bar-private__children_3ov1e","title":"navigation-bar-private__title_3ov1e","contentOnBotDesktop":"navigation-bar-private__contentOnBotDesktop_3ov1e","contentOnBotMobile":"navigation-bar-private__contentOnBotMobile_3ov1e","subtitle":"navigation-bar-private__subtitle_3ov1e","addonsWrapper":"navigation-bar-private__addonsWrapper_3ov1e","rightAddons":"navigation-bar-private__rightAddons_3ov1e","addon":"navigation-bar-private__addon_3ov1e","bottomAddons":"navigation-bar-private__bottomAddons_3ov1e","closer":"navigation-bar-private__closer_3ov1e","left":"navigation-bar-private__left_3ov1e","center":"navigation-bar-private__center_3ov1e","trim":"navigation-bar-private__trim_3ov1e"};
10
10
  require('./index.css')
11
11
 
12
12
  /* eslint-disable complexity */
13
13
  const ADDONS_HEIGHT = 48;
14
- const NavigationBarPrivate = forwardRef(({ addonClassName, className, contentClassName, closerClassName, leftAddons, rightAddons, bottomAddons, bottomAddonsClassName, children, align = 'left', trim = true, title, titleSize = 'default', subtitle, hasCloser, hasBackButton, backButtonClassName, backButtonProps, dataTestId, imageUrl, closerIcon, onClose, view, scrollableParentRef, sticky, onBack, dataName, titleClassName, titleRef, }, ref) => {
14
+ const NavigationBarPrivate = forwardRef(({ addonClassName, className, contentClassName, closerClassName, leftAddons, rightAddons, bottomAddons, bottomAddonsClassName, children, align = 'left', trim = true, title, titleSize = 'default', subtitle, hasCloser, closerProps = {}, hasBackButton, backButtonClassName, backButtonProps, dataTestId, imageUrl, closerIcon, onClose, view, scrollableParentRef, sticky, onBack, dataName, titleClassName, titleRef, }, ref) => {
15
15
  const [scrollTop, setScrollTop] = useState(0);
16
16
  const [titleMargin, setTitleMargin] = useState({ left: 0, right: 0 });
17
17
  const bottomContentRef = useRef(null);
@@ -91,7 +91,7 @@ const NavigationBarPrivate = forwardRef(({ addonClassName, className, contentCla
91
91
  compactTitle && subtitle && (React.createElement("div", { className: styles.subtitle, "data-test-id": getDataTestId(dataTestId, 'subtitle') }, subtitle))));
92
92
  };
93
93
  const renderCloser = () => (React.createElement("div", { className: cn(styles.addon, styles.closer, closerClassName) },
94
- React.createElement(Closer, { view: view, icon: closerIcon, dataTestId: getDataTestId(dataTestId, 'closer'), onClose: onClose })));
94
+ React.createElement(Closer, { view: view, icon: closerIcon, dataTestId: getDataTestId(dataTestId, 'closer'), onClose: onClose, ...closerProps })));
95
95
  return (React.createElement("div", { ref: mergeRefs([ref, headerRef]), className: cn(styles.header, className, { [styles.backgroundImage]: imageUrl }), "data-test-id": getDataTestId(dataTestId), style: {
96
96
  ...(imageUrl && { backgroundImage: `url(${imageUrl})` }),
97
97
  ...(withAnimation &&
@@ -5,7 +5,7 @@ import { Text } 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-private__component_1v9kw","mobileComponent":"navigation-bar-private__mobileComponent_1v9kw","flex":"navigation-bar-private__flex_1v9kw","iconWrapper":"navigation-bar-private__iconWrapper_1v9kw","text":"navigation-bar-private__text_1v9kw","mobileWrapper":"navigation-bar-private__mobileWrapper_1v9kw"};
8
+ const styles = {"component":"navigation-bar-private__component_10o5h","mobileComponent":"navigation-bar-private__mobileComponent_10o5h","flex":"navigation-bar-private__flex_10o5h","iconWrapper":"navigation-bar-private__iconWrapper_10o5h","text":"navigation-bar-private__text_10o5h","mobileWrapper":"navigation-bar-private__mobileWrapper_10o5h"};
9
9
  require('./index.css')
10
10
 
11
11
  const BackArrowAddon = ({ text = 'Назад', onClick, className, textOpacity = 1, view, ...htmlAttributes }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 278oi */
1
+ /* hash: hy37b */
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-translucent-100: rgba(38, 55, 88, 0.06);
@@ -40,48 +40,48 @@
40
40
 
41
41
  /* back-arrow */
42
42
  --navigation-bar-back-arrow-mobile-fill: var(--color-light-neutral-translucent-700);
43
- } .navigation-bar-private__component_1v9kw {
43
+ } .navigation-bar-private__component_10o5h {
44
44
  height: 100%;
45
45
  background: var(--color-static-monochrome-white-4);
46
46
  -webkit-backdrop-filter: blur(10px);
47
47
  backdrop-filter: blur(10px);
48
48
  border-radius: var(--border-radius-pill);
49
49
  min-width: 48px
50
- } .navigation-bar-private__component_1v9kw svg > path {
50
+ } .navigation-bar-private__component_10o5h svg > path {
51
51
  transition: fill 0.2s ease;
52
52
  fill: var(--color-light-neutral-translucent-1300);
53
- } .navigation-bar-private__component_1v9kw:hover svg > path {
53
+ } .navigation-bar-private__component_10o5h:hover svg > path {
54
54
  fill: var(--color-light-neutral-translucent-1300-hover);
55
- } .navigation-bar-private__component_1v9kw:active svg > path {
55
+ } .navigation-bar-private__component_10o5h:active svg > path {
56
56
  fill: var(--color-light-neutral-translucent-1300-press);
57
- } .navigation-bar-private__mobileComponent_1v9kw {
57
+ } .navigation-bar-private__mobileComponent_10o5h {
58
58
  height: 32px;
59
59
  min-width: 32px;
60
60
  margin: var(--gap-0) var(--gap-8);
61
61
  -webkit-backdrop-filter: none;
62
62
  backdrop-filter: none;
63
63
  background: none;
64
- } .navigation-bar-private__flex_1v9kw {
64
+ } .navigation-bar-private__flex_10o5h {
65
65
  display: flex;
66
66
  align-items: center;
67
- } .navigation-bar-private__iconWrapper_1v9kw {
67
+ } .navigation-bar-private__iconWrapper_10o5h {
68
68
  display: inline-flex;
69
69
  align-items: center;
70
70
  justify-content: center;
71
71
  height: 48px;
72
72
  margin: var(--gap-0) var(--gap-8) var(--gap-0) var(--gap-12);
73
73
  border-radius: var(--border-radius-circle)
74
- } .navigation-bar-private__iconWrapper_1v9kw + .navigation-bar-private__text_1v9kw {
74
+ } .navigation-bar-private__iconWrapper_10o5h + .navigation-bar-private__text_10o5h {
75
75
  margin-right: var(--gap-12);
76
- } .navigation-bar-private__mobileWrapper_1v9kw {
76
+ } .navigation-bar-private__mobileWrapper_10o5h {
77
77
  width: 32px;
78
78
  height: 32px;
79
79
  background: var(--color-light-neutral-translucent-100);
80
80
  -webkit-backdrop-filter: blur(10px);
81
81
  backdrop-filter: blur(10px);
82
82
  margin: var(--gap-0)
83
- } .navigation-bar-private__mobileWrapper_1v9kw + .navigation-bar-private__text_1v9kw {
83
+ } .navigation-bar-private__mobileWrapper_10o5h + .navigation-bar-private__text_10o5h {
84
84
  margin: var(--gap-0) var(--gap-12) var(--gap-0) var(--gap-8);
85
- } .navigation-bar-private__mobileWrapper_1v9kw svg > path {
85
+ } .navigation-bar-private__mobileWrapper_10o5h svg > path {
86
86
  fill: var(--navigation-bar-back-arrow-mobile-fill);
87
87
  }
@@ -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-private__closer_t95b2","button":"navigation-bar-private__button_t95b2","mobile":"navigation-bar-private__mobile_t95b2","sticky":"navigation-bar-private__sticky_t95b2"};
7
+ const styles = {"closer":"navigation-bar-private__closer_5c3jv","button":"navigation-bar-private__button_5c3jv","mobile":"navigation-bar-private__mobile_5c3jv","sticky":"navigation-bar-private__sticky_5c3jv"};
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: 1f5vy */
1
+ /* hash: 1ictc */
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-translucent-100: rgba(38, 55, 88, 0.06);
@@ -33,7 +33,7 @@
33
33
  --navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
34
34
 
35
35
  /* back-arrow */
36
- } .navigation-bar-private__closer_t95b2 {
36
+ } .navigation-bar-private__closer_5c3jv {
37
37
  flex-shrink: 0;
38
38
  width: 48px;
39
39
  height: 48px;
@@ -41,17 +41,17 @@
41
41
  display: flex;
42
42
  align-items: center;
43
43
  justify-content: center;
44
- } .navigation-bar-private__button_t95b2 {
44
+ } .navigation-bar-private__button_5c3jv {
45
45
  background: var(--color-static-monochrome-white-4);
46
46
  -webkit-backdrop-filter: blur(10px);
47
47
  backdrop-filter: blur(10px);
48
48
  color: var(--color-light-neutral-translucent-1300)
49
- } .navigation-bar-private__button_t95b2.navigation-bar-private__mobile_t95b2 {
49
+ } .navigation-bar-private__button_5c3jv.navigation-bar-private__mobile_5c3jv {
50
50
  background: var(--color-light-neutral-translucent-100);
51
51
  color: var(--navigation-bar-closer-mobile-color);
52
- } .navigation-bar-private__button_t95b2.navigation-bar-private__button_t95b2 {
52
+ } .navigation-bar-private__button_5c3jv.navigation-bar-private__button_5c3jv {
53
53
  border-radius: var(--border-radius-circle);
54
- } .navigation-bar-private__sticky_t95b2 {
54
+ } .navigation-bar-private__sticky_5c3jv {
55
55
  position: sticky;
56
56
  top: var(--gap-0);
57
57
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 16cy1 */
1
+ /* hash: 19jvf */
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: rgba(3, 3, 6, 0.88);
@@ -28,26 +28,26 @@
28
28
  --gap-12: var(--gap-s);
29
29
  } :root {
30
30
  } :root {
31
- } /* сбрасывает синюю подсветку при нажатии */ .navigation-bar-private__header_9yimq {
31
+ } /* сбрасывает синюю подсветку при нажатии */ .navigation-bar-private__header_3ov1e {
32
32
  width: 100%;
33
33
  box-sizing: border-box;
34
34
  transition: box-shadow 0.2s ease, background 0.2s ease
35
- } .navigation-bar-private__header_9yimq.navigation-bar-private__header_9yimq.navigation-bar-private__backgroundImage_9yimq {
35
+ } .navigation-bar-private__header_3ov1e.navigation-bar-private__header_3ov1e.navigation-bar-private__backgroundImage_3ov1e {
36
36
  background-repeat: no-repeat;
37
37
  background-position: center;
38
38
  background-size: cover;
39
- } .navigation-bar-private__mainLine_9yimq {
39
+ } .navigation-bar-private__mainLine_3ov1e {
40
40
  display: flex;
41
41
  align-items: stretch;
42
42
  justify-content: space-between;
43
43
  z-index: 1;
44
44
  background-color: inherit;
45
- } .navigation-bar-private__mainLineSticky_9yimq {
45
+ } .navigation-bar-private__mainLineSticky_3ov1e {
46
46
  position: sticky;
47
47
  top: var(--gap-0);
48
- } .navigation-bar-private__mainLineWithImageBg_9yimq {
48
+ } .navigation-bar-private__mainLineWithImageBg_3ov1e {
49
49
  background-color: initial;
50
- } .navigation-bar-private__content_9yimq {
50
+ } .navigation-bar-private__content_3ov1e {
51
51
  color: var(--color-light-text-primary);
52
52
  display: flex;
53
53
  flex-flow: column nowrap;
@@ -56,27 +56,27 @@
56
56
  align-self: baseline;
57
57
  box-sizing: border-box;
58
58
  min-height: 48px
59
- } .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq,
60
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq {
59
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e,
60
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e {
61
61
  font-size: 16px;
62
62
  line-height: 20px;
63
63
  font-weight: 500;
64
64
  align-self: center;
65
65
  padding-top: var(--gap-4);
66
66
  padding-bottom: var(--gap-4)
67
- } .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq > .navigation-bar-private__children_9yimq,
68
- .navigation-bar-private__content_9yimq.navigation-bar-private__withBothAddons_9yimq > .navigation-bar-private__title_9yimq,
69
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq > .navigation-bar-private__children_9yimq,
70
- .navigation-bar-private__content_9yimq.navigation-bar-private__withCompactTitle_9yimq > .navigation-bar-private__title_9yimq {
67
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e > .navigation-bar-private__children_3ov1e,
68
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withBothAddons_3ov1e > .navigation-bar-private__title_3ov1e,
69
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e > .navigation-bar-private__children_3ov1e,
70
+ .navigation-bar-private__content_3ov1e.navigation-bar-private__withCompactTitle_3ov1e > .navigation-bar-private__title_3ov1e {
71
71
  -webkit-line-clamp: 1;
72
72
  word-break: break-all;
73
- } .navigation-bar-private__content_9yimq.navigation-bar-private__contentOnBotDesktop_9yimq.navigation-bar-private__contentOnBotDesktop_9yimq {
73
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__contentOnBotDesktop_3ov1e.navigation-bar-private__contentOnBotDesktop_3ov1e {
74
74
  padding-top: var(--gap-12);
75
- } .navigation-bar-private__content_9yimq.navigation-bar-private__contentOnBotMobile_9yimq.navigation-bar-private__contentOnBotMobile_9yimq {
75
+ } .navigation-bar-private__content_3ov1e.navigation-bar-private__contentOnBotMobile_3ov1e.navigation-bar-private__contentOnBotMobile_3ov1e {
76
76
  padding-top: var(--gap-12);
77
- } .navigation-bar-private__title_9yimq {
77
+ } .navigation-bar-private__title_3ov1e {
78
78
  word-break: break-word;
79
- } .navigation-bar-private__subtitle_9yimq {
79
+ } .navigation-bar-private__subtitle_3ov1e {
80
80
  font-size: 14px;
81
81
  line-height: 20px;
82
82
  font-weight: 400;
@@ -87,11 +87,11 @@
87
87
 
88
88
  color: var(--color-light-text-secondary);
89
89
  word-break: break-all;
90
- } .navigation-bar-private__addonsWrapper_9yimq {
90
+ } .navigation-bar-private__addonsWrapper_3ov1e {
91
91
  display: flex;
92
- } .navigation-bar-private__rightAddons_9yimq {
92
+ } .navigation-bar-private__rightAddons_3ov1e {
93
93
  margin-left: auto;
94
- } .navigation-bar-private__addon_9yimq {
94
+ } .navigation-bar-private__addon_3ov1e {
95
95
  min-width: 48px;
96
96
  height: 48px;
97
97
  display: flex;
@@ -99,18 +99,18 @@
99
99
  align-items: center;
100
100
  flex-shrink: 0;
101
101
  pointer-events: all;
102
- } .navigation-bar-private__bottomAddons_9yimq {
102
+ } .navigation-bar-private__bottomAddons_3ov1e {
103
103
  pointer-events: all;
104
- } .navigation-bar-private__closer_9yimq {
104
+ } .navigation-bar-private__closer_3ov1e {
105
105
  margin-left: auto;
106
- } .navigation-bar-private__left_9yimq {
106
+ } .navigation-bar-private__left_3ov1e {
107
107
  text-align: left;
108
- } .navigation-bar-private__center_9yimq {
108
+ } .navigation-bar-private__center_3ov1e {
109
109
  text-align: center;
110
- } .navigation-bar-private__trim_9yimq {
110
+ } .navigation-bar-private__trim_3ov1e {
111
111
  overflow: hidden
112
- } .navigation-bar-private__trim_9yimq .navigation-bar-private__title_9yimq,
113
- .navigation-bar-private__trim_9yimq .navigation-bar-private__children_9yimq {
112
+ } .navigation-bar-private__trim_3ov1e .navigation-bar-private__title_3ov1e,
113
+ .navigation-bar-private__trim_3ov1e .navigation-bar-private__children_3ov1e {
114
114
  -webkit-line-clamp: 2;
115
115
  display: -webkit-box;
116
116
  -webkit-box-orient: vertical;
package/modern/types.d.ts CHANGED
@@ -96,6 +96,10 @@ type NavigationBarPrivateProps = {
96
96
  * Обработчик закрытия
97
97
  */
98
98
  onClose?: CloserProps['onClose'];
99
+ /**
100
+ * Дополнительные пропсы для компонента Closer.
101
+ */
102
+ closerProps?: Omit<CloserProps, 'view' | 'onClose'>;
99
103
  /**
100
104
  * обработчик клика по кнопке "назад"
101
105
  */
@@ -9,7 +9,7 @@ import styles from './index.module.css';
9
9
 
10
10
  /* eslint-disable complexity */
11
11
  const ADDONS_HEIGHT = 48;
12
- const NavigationBarPrivate = forwardRef(({ addonClassName, className, contentClassName, closerClassName, leftAddons, rightAddons, bottomAddons, bottomAddonsClassName, children, align = 'left', trim = true, title, titleSize = 'default', subtitle, hasCloser, hasBackButton, backButtonClassName, backButtonProps, dataTestId, imageUrl, closerIcon, onClose, view, scrollableParentRef, sticky, onBack, dataName, titleClassName, titleRef, }, ref) => {
12
+ const NavigationBarPrivate = forwardRef(({ addonClassName, className, contentClassName, closerClassName, leftAddons, rightAddons, bottomAddons, bottomAddonsClassName, children, align = 'left', trim = true, title, titleSize = 'default', subtitle, hasCloser, closerProps = {}, hasBackButton, backButtonClassName, backButtonProps, dataTestId, imageUrl, closerIcon, onClose, view, scrollableParentRef, sticky, onBack, dataName, titleClassName, titleRef, }, ref) => {
13
13
  const [scrollTop, setScrollTop] = useState(0);
14
14
  const [titleMargin, setTitleMargin] = useState({ left: 0, right: 0 });
15
15
  const bottomContentRef = useRef(null);
@@ -89,7 +89,7 @@ const NavigationBarPrivate = forwardRef(({ addonClassName, className, contentCla
89
89
  compactTitle && subtitle && (React.createElement("div", { className: styles.subtitle, "data-test-id": getDataTestId(dataTestId, 'subtitle') }, subtitle))));
90
90
  };
91
91
  const renderCloser = () => (React.createElement("div", { className: cn(styles.addon, styles.closer, closerClassName) },
92
- React.createElement(Closer, { view: view, icon: closerIcon, dataTestId: getDataTestId(dataTestId, 'closer'), onClose: onClose })));
92
+ React.createElement(Closer, { view: view, icon: closerIcon, dataTestId: getDataTestId(dataTestId, 'closer'), onClose: onClose, ...closerProps })));
93
93
  return (React.createElement("div", { ref: mergeRefs([ref, headerRef]), className: cn(styles.header, className, { [styles.backgroundImage]: imageUrl }), "data-test-id": getDataTestId(dataTestId), style: {
94
94
  ...(imageUrl && { backgroundImage: `url(${imageUrl})` }),
95
95
  ...(withAnimation &&
@@ -96,6 +96,10 @@ type NavigationBarPrivateProps = {
96
96
  * Обработчик закрытия
97
97
  */
98
98
  onClose?: CloserProps['onClose'];
99
+ /**
100
+ * Дополнительные пропсы для компонента Closer.
101
+ */
102
+ closerProps?: Omit<CloserProps, 'view' | 'onClose'>;
99
103
  /**
100
104
  * обработчик клика по кнопке "назад"
101
105
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-navigation-bar-private",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "description": "Navigation bar private component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -26,5 +26,5 @@
26
26
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
27
27
  },
28
28
  "themesVersion": "13.7.2",
29
- "varsVersion": "9.18.0"
29
+ "varsVersion": "9.19.0"
30
30
  }
package/src/Component.tsx CHANGED
@@ -32,6 +32,7 @@ export const NavigationBarPrivate = forwardRef<HTMLDivElement, NavigationBarPriv
32
32
  titleSize = 'default',
33
33
  subtitle,
34
34
  hasCloser,
35
+ closerProps = {},
35
36
  hasBackButton,
36
37
  backButtonClassName,
37
38
  backButtonProps,
@@ -186,6 +187,7 @@ export const NavigationBarPrivate = forwardRef<HTMLDivElement, NavigationBarPriv
186
187
  icon={closerIcon}
187
188
  dataTestId={getDataTestId(dataTestId, 'closer')}
188
189
  onClose={onClose}
190
+ {...closerProps}
189
191
  />
190
192
  </div>
191
193
  );
package/src/types.ts CHANGED
@@ -119,6 +119,11 @@ export type NavigationBarPrivateProps = {
119
119
  */
120
120
  onClose?: CloserProps['onClose'];
121
121
 
122
+ /**
123
+ * Дополнительные пропсы для компонента Closer.
124
+ */
125
+ closerProps?: Omit<CloserProps, 'view' | 'onClose'>;
126
+
122
127
  /**
123
128
  * обработчик клика по кнопке "назад"
124
129
  */
package/types.d.ts CHANGED
@@ -96,6 +96,10 @@ type NavigationBarPrivateProps = {
96
96
  * Обработчик закрытия
97
97
  */
98
98
  onClose?: CloserProps['onClose'];
99
+ /**
100
+ * Дополнительные пропсы для компонента Closer.
101
+ */
102
+ closerProps?: Omit<CloserProps, 'view' | 'onClose'>;
99
103
  /**
100
104
  * обработчик клика по кнопке "назад"
101
105
  */