@alfalab/core-components-side-panel 2.0.2 → 2.1.2

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.
Files changed (102) hide show
  1. package/Component.desktop.js +3 -3
  2. package/Component.mobile.js +3 -3
  3. package/Component.responsive.js +1 -1
  4. package/components/closer/Component.js +2 -2
  5. package/components/closer/index.css +4 -4
  6. package/components/content/Component.desktop.js +2 -2
  7. package/components/content/Component.js +1 -1
  8. package/components/content/Component.mobile.js +2 -2
  9. package/components/content/desktop.css +3 -3
  10. package/components/content/index.css +3 -3
  11. package/components/content/mobile.css +3 -3
  12. package/components/footer/Component.desktop.js +2 -2
  13. package/components/footer/Component.js +2 -2
  14. package/components/footer/Component.mobile.js +2 -2
  15. package/components/footer/desktop.css +3 -3
  16. package/components/footer/index.css +4 -4
  17. package/components/footer/layout.css +25 -25
  18. package/components/footer/mobile.css +3 -3
  19. package/components/header/Component.d.ts +4 -0
  20. package/components/header/Component.desktop.js +2 -2
  21. package/components/header/Component.js +5 -3
  22. package/components/header/Component.mobile.js +2 -2
  23. package/components/header/desktop.css +6 -6
  24. package/components/header/index.css +19 -15
  25. package/components/header/mobile.css +3 -3
  26. package/cssm/components/header/Component.d.ts +4 -0
  27. package/cssm/components/header/Component.js +4 -2
  28. package/cssm/components/header/index.module.css +4 -0
  29. package/desktop.css +3 -3
  30. package/desktop.js +1 -1
  31. package/esm/Component.desktop.js +3 -3
  32. package/esm/Component.mobile.js +3 -3
  33. package/esm/Component.responsive.js +1 -1
  34. package/esm/components/closer/Component.js +2 -2
  35. package/esm/components/closer/index.css +4 -4
  36. package/esm/components/content/Component.desktop.js +2 -2
  37. package/esm/components/content/Component.js +1 -1
  38. package/esm/components/content/Component.mobile.js +2 -2
  39. package/esm/components/content/desktop.css +3 -3
  40. package/esm/components/content/index.css +3 -3
  41. package/esm/components/content/mobile.css +3 -3
  42. package/esm/components/footer/Component.desktop.js +2 -2
  43. package/esm/components/footer/Component.js +2 -2
  44. package/esm/components/footer/Component.mobile.js +2 -2
  45. package/esm/components/footer/desktop.css +3 -3
  46. package/esm/components/footer/index.css +4 -4
  47. package/esm/components/footer/layout.css +25 -25
  48. package/esm/components/footer/mobile.css +3 -3
  49. package/esm/components/header/Component.d.ts +4 -0
  50. package/esm/components/header/Component.desktop.js +2 -2
  51. package/esm/components/header/Component.js +5 -3
  52. package/esm/components/header/Component.mobile.js +2 -2
  53. package/esm/components/header/desktop.css +6 -6
  54. package/esm/components/header/index.css +19 -15
  55. package/esm/components/header/mobile.css +3 -3
  56. package/esm/desktop.css +3 -3
  57. package/esm/desktop.js +1 -1
  58. package/esm/index.js +1 -1
  59. package/esm/mobile.css +2 -2
  60. package/esm/mobile.js +1 -1
  61. package/esm/responsive.js +1 -1
  62. package/esm/transitions.desktop.css +8 -8
  63. package/esm/transitions.mobile.css +8 -8
  64. package/esm/{tslib.es6-805b81fd.d.ts → tslib.es6-395a8f91.d.ts} +0 -0
  65. package/esm/{tslib.es6-805b81fd.js → tslib.es6-395a8f91.js} +0 -0
  66. package/index.js +1 -1
  67. package/mobile.css +2 -2
  68. package/mobile.js +1 -1
  69. package/modern/Component.desktop.js +2 -2
  70. package/modern/Component.mobile.js +2 -2
  71. package/modern/components/closer/Component.js +1 -1
  72. package/modern/components/closer/index.css +4 -4
  73. package/modern/components/content/Component.desktop.js +1 -1
  74. package/modern/components/content/Component.js +1 -1
  75. package/modern/components/content/Component.mobile.js +1 -1
  76. package/modern/components/content/desktop.css +3 -3
  77. package/modern/components/content/index.css +3 -3
  78. package/modern/components/content/mobile.css +3 -3
  79. package/modern/components/footer/Component.desktop.js +1 -1
  80. package/modern/components/footer/Component.js +2 -2
  81. package/modern/components/footer/Component.mobile.js +1 -1
  82. package/modern/components/footer/desktop.css +3 -3
  83. package/modern/components/footer/index.css +4 -4
  84. package/modern/components/footer/layout.css +25 -25
  85. package/modern/components/footer/mobile.css +3 -3
  86. package/modern/components/header/Component.d.ts +4 -0
  87. package/modern/components/header/Component.desktop.js +1 -1
  88. package/modern/components/header/Component.js +6 -3
  89. package/modern/components/header/Component.mobile.js +1 -1
  90. package/modern/components/header/desktop.css +6 -6
  91. package/modern/components/header/index.css +19 -15
  92. package/modern/components/header/mobile.css +3 -3
  93. package/modern/desktop.css +3 -3
  94. package/modern/mobile.css +2 -2
  95. package/modern/transitions.desktop.css +8 -8
  96. package/modern/transitions.mobile.css +8 -8
  97. package/package.json +5 -5
  98. package/responsive.js +1 -1
  99. package/transitions.desktop.css +8 -8
  100. package/transitions.mobile.css +8 -8
  101. /package/{tslib.es6-e9774cb8.d.ts → tslib.es6-83df3c48.d.ts} +0 -0
  102. /package/{tslib.es6-e9774cb8.js → tslib.es6-83df3c48.js} +0 -0
@@ -40,6 +40,10 @@ type HeaderProps = {
40
40
  * Фиксирует шапку
41
41
  */
42
42
  sticky?: boolean;
43
+ /**
44
+ * Фоновое изображение
45
+ */
46
+ imageUrl?: string;
43
47
  /**
44
48
  * Идентификатор для систем автоматизированного тестирования
45
49
  */
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var tslib_es6 = require('../../tslib.es6-ce870b46.js');
5
6
  var React = require('react');
6
7
  var cn = require('classnames');
7
8
  require('@alfalab/core-components-base-modal/cssm');
@@ -16,17 +17,18 @@ var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
16
17
 
17
18
  var Header = function (_a) {
18
19
  var _b, _c;
19
- var className = _a.className, addonClassName = _a.addonClassName, contentClassName = _a.contentClassName, leftAddons = _a.leftAddons, children = _a.children, _d = _a.align, align = _d === void 0 ? 'left' : _d, _e = _a.trim, trim = _e === void 0 ? true : _e, title = _a.title, closer = _a.closer, sticky = _a.sticky, dataTestId = _a.dataTestId;
20
+ var className = _a.className, addonClassName = _a.addonClassName, contentClassName = _a.contentClassName, leftAddons = _a.leftAddons, children = _a.children, _d = _a.align, align = _d === void 0 ? 'left' : _d, _e = _a.trim, trim = _e === void 0 ? true : _e, title = _a.title, closer = _a.closer, sticky = _a.sticky, imageUrl = _a.imageUrl, dataTestId = _a.dataTestId;
20
21
  var _f = React.useContext(Context.ModalContext), headerHighlighted = _f.headerHighlighted, setHasHeader = _f.setHasHeader;
21
22
  var hasContent = Boolean(title || children);
22
23
  React.useEffect(function () {
23
24
  setHasHeader(true);
24
25
  }, [setHasHeader]);
25
26
  return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].header, className, (_b = {},
27
+ _b[styles__default['default'].backgroundImage] = imageUrl,
26
28
  _b[styles__default['default'].highlighted] = hasContent && sticky && headerHighlighted,
27
29
  _b[styles__default['default'].sticky] = sticky,
28
30
  _b[styles__default['default'].hasContent] = hasContent,
29
- _b)), "data-test-id": dataTestId },
31
+ _b)), "data-test-id": dataTestId, style: tslib_es6.__assign({}, (imageUrl && { backgroundImage: "url(" + imageUrl + ")" })) },
30
32
  leftAddons && React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].addon, addonClassName) }, leftAddons),
31
33
  hasContent && (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].content, contentClassName, styles__default['default'][align], (_c = {},
32
34
  _c[styles__default['default'].trim] = trim,
@@ -45,6 +45,10 @@
45
45
  .sticky.hasContent {
46
46
  background: var(--side-panel-header-background);
47
47
  }
48
+ .header.backgroundImage {
49
+ background: center no-repeat;
50
+ background-size: cover;
51
+ }
48
52
  .content {
49
53
  flex-grow: 1;
50
54
  }
package/desktop.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 17o53 */
1
+ /* hash: rs8k1 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -20,9 +20,9 @@
20
20
 
21
21
  /* mobile */
22
22
  }
23
- .side-panel__s_is6nq {
23
+ .side-panel__s_4vlmi {
24
24
  width: var(--side-panel-s-width);
25
25
  }
26
- .side-panel__hidden_is6nq {
26
+ .side-panel__hidden_4vlmi {
27
27
  overflow-x: hidden;
28
28
  }
package/desktop.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-e9774cb8.js');
5
+ require('./tslib.es6-83df3c48.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-drawer');
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from './tslib.es6-395a8f91.js';
2
2
  import React, { forwardRef, useRef, isValidElement, cloneElement } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { Drawer } from '@alfalab/core-components-drawer/esm';
@@ -15,10 +15,10 @@ import { ContentDesktop } from './components/content/Component.desktop.js';
15
15
  import './components/footer/Component.js';
16
16
  import { FooterDesktop } from './components/footer/Component.desktop.js';
17
17
 
18
- var styles = {"s":"side-panel__s_is6nq","hidden":"side-panel__hidden_is6nq"};
18
+ var styles = {"s":"side-panel__s_4vlmi","hidden":"side-panel__hidden_4vlmi"};
19
19
  require('./desktop.css')
20
20
 
21
- var transitions = {"appear":"side-panel__appear_121gq","enter":"side-panel__enter_121gq","appearActive":"side-panel__appearActive_121gq","enterActive":"side-panel__enterActive_121gq","exit":"side-panel__exit_121gq","exitActive":"side-panel__exitActive_121gq","exitDone":"side-panel__exitDone_121gq"};
21
+ var transitions = {"appear":"side-panel__appear_o4vp6","enter":"side-panel__enter_o4vp6","appearActive":"side-panel__appearActive_o4vp6","enterActive":"side-panel__enterActive_o4vp6","exit":"side-panel__exit_o4vp6","exitActive":"side-panel__exitActive_o4vp6","exitDone":"side-panel__exitDone_o4vp6"};
22
22
  require('./transitions.desktop.css')
23
23
 
24
24
  var SidePanelDesktopComponent = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from './tslib.es6-395a8f91.js';
2
2
  import React, { forwardRef } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { BaseModal } from '@alfalab/core-components-base-modal/esm';
@@ -14,10 +14,10 @@ import { HeaderMobile } from './components/header/Component.mobile.js';
14
14
  import { ContentMobile } from './components/content/Component.mobile.js';
15
15
  import { FooterMobile } from './components/footer/Component.mobile.js';
16
16
 
17
- var styles = {"component":"side-panel__component_p4itn"};
17
+ var styles = {"component":"side-panel__component_cqv0y"};
18
18
  require('./mobile.css')
19
19
 
20
- var transitions = {"appear":"side-panel__appear_rtpkz","enter":"side-panel__enter_rtpkz","appearActive":"side-panel__appearActive_rtpkz","enterActive":"side-panel__enterActive_rtpkz","exit":"side-panel__exit_rtpkz","exitActive":"side-panel__exitActive_rtpkz","exitDone":"side-panel__exitDone_rtpkz"};
20
+ var transitions = {"appear":"side-panel__appear_fg1sb","enter":"side-panel__enter_fg1sb","appearActive":"side-panel__appearActive_fg1sb","enterActive":"side-panel__enterActive_fg1sb","exit":"side-panel__exit_fg1sb","exitActive":"side-panel__exitActive_fg1sb","exitDone":"side-panel__exitDone_fg1sb"};
21
21
  require('./transitions.mobile.css')
22
22
 
23
23
  var SidePanelMobileComponent = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from './tslib.es6-395a8f91.js';
2
2
  import React, { forwardRef, useMemo, useContext } from 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-drawer/esm';
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-395a8f91.js';
2
2
  import React, { useContext, useCallback } from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
@@ -6,7 +6,7 @@ import { ModalContext } from '../../Context.js';
6
6
  import { IconButton } from '@alfalab/core-components-icon-button/esm';
7
7
  import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
8
8
 
9
- var styles = {"closer":"side-panel__closer_1nfmj","button":"side-panel__button_1nfmj","sticky":"side-panel__sticky_1nfmj"};
9
+ var styles = {"closer":"side-panel__closer_isdho","button":"side-panel__button_isdho","sticky":"side-panel__sticky_isdho"};
10
10
  require('./index.css')
11
11
 
12
12
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 179zv */
1
+ /* hash: re3cd */
2
2
  :root {
3
3
  --color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
4
4
  }
@@ -25,7 +25,7 @@
25
25
  :root {
26
26
  --side-panel-closer-bg-color: var(--color-light-bg-primary-alpha-40);
27
27
  }
28
- .side-panel__closer_1nfmj {
28
+ .side-panel__closer_isdho {
29
29
  flex-shrink: 0;
30
30
  width: 48px;
31
31
  height: 48px;
@@ -34,13 +34,13 @@
34
34
  align-items: center;
35
35
  justify-content: center;
36
36
  }
37
- .side-panel__button_1nfmj {
37
+ .side-panel__button_isdho {
38
38
  background: var(--side-panel-closer-bg-color);
39
39
  -webkit-backdrop-filter: blur(10px);
40
40
  backdrop-filter: blur(10px);
41
41
  border-radius: 50px;
42
42
  }
43
- .side-panel__sticky_1nfmj {
43
+ .side-panel__sticky_isdho {
44
44
  position: sticky;
45
45
  top: 0;
46
46
  }
@@ -1,11 +1,11 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-395a8f91.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
5
5
  import '../../Context.js';
6
6
  import { Content } from './Component.js';
7
7
 
8
- var styles = {"s":"side-panel__s_yj347"};
8
+ var styles = {"s":"side-panel__s_1awqw"};
9
9
  require('./desktop.css')
10
10
 
11
11
  var ContentDesktop = function (_a) {
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import '@alfalab/core-components-base-modal/esm';
4
4
  import { ModalContext } from '../../Context.js';
5
5
 
6
- var styles = {"content":"side-panel__content_wzyus","flex":"side-panel__flex_wzyus"};
6
+ var styles = {"content":"side-panel__content_136mi","flex":"side-panel__flex_136mi"};
7
7
  require('./index.css')
8
8
 
9
9
  var Content = function (_a) {
@@ -1,11 +1,11 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-395a8f91.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
5
5
  import '../../Context.js';
6
6
  import { Content } from './Component.js';
7
7
 
8
- var styles = {"content":"side-panel__content_10zvp"};
8
+ var styles = {"content":"side-panel__content_1ewgr"};
9
9
  require('./mobile.css')
10
10
 
11
11
  var ContentMobile = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: urvn0 */
1
+ /* hash: hkwiq */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -23,9 +23,9 @@
23
23
 
24
24
  /* mobile */
25
25
  }
26
- .side-panel__s_yj347 {
26
+ .side-panel__s_1awqw {
27
27
  padding: var(--side-panel-s-content-paddings)
28
28
  }
29
- .side-panel__s_yj347:last-child {
29
+ .side-panel__s_1awqw:last-child {
30
30
  padding-bottom: var(--gap-2xl);
31
31
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1g8cg */
1
+ /* hash: 131dc */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -19,10 +19,10 @@
19
19
 
20
20
  /* mobile */
21
21
  }
22
- .side-panel__content_wzyus {
22
+ .side-panel__content_136mi {
23
23
  box-sizing: border-box;
24
24
  width: 100%;
25
25
  }
26
- .side-panel__flex_wzyus {
26
+ .side-panel__flex_136mi {
27
27
  flex: 1 1 auto;
28
28
  }
@@ -1,4 +1,4 @@
1
- /* hash: kl8zz */
1
+ /* hash: kqqd2 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -22,9 +22,9 @@
22
22
 
23
23
  /* mobile */
24
24
  }
25
- .side-panel__content_10zvp {
25
+ .side-panel__content_1ewgr {
26
26
  padding: 0 var(--gap-m)
27
27
  }
28
- .side-panel__content_10zvp:last-child {
28
+ .side-panel__content_1ewgr:last-child {
29
29
  padding-bottom: var(--gap-m);
30
30
  }
@@ -1,11 +1,11 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-395a8f91.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
5
5
  import '../../Context.js';
6
6
  import { Footer } from './Component.js';
7
7
 
8
- var styles = {"sticky":"side-panel__sticky_hqdfw","s":"side-panel__s_hqdfw"};
8
+ var styles = {"sticky":"side-panel__sticky_1kup9","s":"side-panel__s_1kup9"};
9
9
  require('./desktop.css')
10
10
 
11
11
  var FooterDesktop = function (_a) {
@@ -3,10 +3,10 @@ import cn from 'classnames';
3
3
  import '@alfalab/core-components-base-modal/esm';
4
4
  import { ModalContext } from '../../Context.js';
5
5
 
6
- var styles = {"footer":"side-panel__footer_9pru0","sticky":"side-panel__sticky_9pru0","highlighted":"side-panel__highlighted_9pru0"};
6
+ var styles = {"footer":"side-panel__footer_m3fmp","sticky":"side-panel__sticky_m3fmp","highlighted":"side-panel__highlighted_m3fmp"};
7
7
  require('./index.css')
8
8
 
9
- var layoutStyles = {"column":"side-panel__column_1i46u","gap-16":"side-panel__gap-16_1i46u","gap-24":"side-panel__gap-24_1i46u","gap-32":"side-panel__gap-32_1i46u","start":"side-panel__start_1i46u","center":"side-panel__center_1i46u","space-between":"side-panel__space-between_1i46u"};
9
+ var layoutStyles = {"column":"side-panel__column_m7em9","gap-16":"side-panel__gap-16_m7em9","gap-24":"side-panel__gap-24_m7em9","gap-32":"side-panel__gap-32_m7em9","start":"side-panel__start_m7em9","center":"side-panel__center_m7em9","space-between":"side-panel__space-between_m7em9"};
10
10
  require('./layout.css')
11
11
 
12
12
  var Footer = function (_a) {
@@ -1,11 +1,11 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-395a8f91.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
5
5
  import '../../Context.js';
6
6
  import { Footer } from './Component.js';
7
7
 
8
- var styles = {"footer":"side-panel__footer_4ndt6","sticky":"side-panel__sticky_4ndt6"};
8
+ var styles = {"footer":"side-panel__footer_19amv","sticky":"side-panel__sticky_19amv"};
9
9
  require('./mobile.css')
10
10
 
11
11
  var FooterMobile = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: ferk3 */
1
+ /* hash: 13mi1 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -24,9 +24,9 @@
24
24
 
25
25
  /* mobile */
26
26
  }
27
- .side-panel__sticky_hqdfw {
27
+ .side-panel__sticky_1kup9 {
28
28
  bottom: 0;
29
29
  }
30
- .side-panel__s_hqdfw {
30
+ .side-panel__s_1kup9 {
31
31
  padding: var(--side-panel-s-footer-paddings);
32
32
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1sozt */
1
+ /* hash: hvm9a */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -26,16 +26,16 @@
26
26
 
27
27
  /* mobile */
28
28
  }
29
- .side-panel__footer_9pru0 {
29
+ .side-panel__footer_m3fmp {
30
30
  width: 100%;
31
31
  box-sizing: border-box;
32
32
  transition: box-shadow 0.2s ease, background 0.2s ease;
33
33
  }
34
- .side-panel__sticky_9pru0 {
34
+ .side-panel__sticky_m3fmp {
35
35
  background: var(--side-panel-footer-background);
36
36
  position: sticky;
37
37
  }
38
- .side-panel__highlighted_9pru0 {
38
+ .side-panel__highlighted_m3fmp {
39
39
  background: var(--side-panel-footer-highlight-background);
40
40
  box-shadow: var(--side-panel-footer-highlight-box-shadow);
41
41
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1f43z */
1
+ /* hash: 4aqet */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -25,60 +25,60 @@
25
25
 
26
26
  /* mobile */
27
27
  }
28
- .side-panel__column_1i46u {
28
+ .side-panel__column_m7em9 {
29
29
  display: flex;
30
30
  flex-direction: column
31
31
  }
32
- .side-panel__column_1i46u > * {
32
+ .side-panel__column_m7em9 > * {
33
33
  margin-bottom: var(--side-panel-footer-default-gap);
34
34
  }
35
- .side-panel__column_1i46u > *:last-child,
36
- .side-panel__column_1i46u > *:only-child {
35
+ .side-panel__column_m7em9 > *:last-child,
36
+ .side-panel__column_m7em9 > *:only-child {
37
37
  margin-bottom: 0;
38
38
  }
39
- .side-panel__column_1i46u.side-panel__gap-16_1i46u > * {
39
+ .side-panel__column_m7em9.side-panel__gap-16_m7em9 > * {
40
40
  margin-bottom: var(--gap-m);
41
41
  }
42
- .side-panel__column_1i46u.side-panel__gap-24_1i46u > * {
42
+ .side-panel__column_m7em9.side-panel__gap-24_m7em9 > * {
43
43
  margin-bottom: var(--gap-xl);
44
44
  }
45
- .side-panel__column_1i46u.side-panel__gap-32_1i46u > * {
45
+ .side-panel__column_m7em9.side-panel__gap-32_m7em9 > * {
46
46
  margin-bottom: var(--gap-2xl);
47
47
  }
48
- .side-panel__start_1i46u {
48
+ .side-panel__start_m7em9 {
49
49
  justify-content: flex-start;
50
50
  }
51
- .side-panel__center_1i46u {
51
+ .side-panel__center_m7em9 {
52
52
  justify-content: center;
53
53
  }
54
- .side-panel__space-between_1i46u {
54
+ .side-panel__space-between_m7em9 {
55
55
  justify-content: space-between
56
56
  }
57
- .side-panel__space-between_1i46u > * {
57
+ .side-panel__space-between_m7em9 > * {
58
58
  flex: 1;
59
59
  }
60
- .side-panel__start_1i46u,
61
- .side-panel__center_1i46u,
62
- .side-panel__space-between_1i46u {
60
+ .side-panel__start_m7em9,
61
+ .side-panel__center_m7em9,
62
+ .side-panel__space-between_m7em9 {
63
63
  display: flex
64
64
  }
65
- .side-panel__start_1i46u > *, .side-panel__center_1i46u > *, .side-panel__space-between_1i46u > * {
65
+ .side-panel__start_m7em9 > *, .side-panel__center_m7em9 > *, .side-panel__space-between_m7em9 > * {
66
66
  margin-right: var(--side-panel-footer-default-gap);
67
67
  }
68
- .side-panel__start_1i46u > *:last-child,
69
- .side-panel__start_1i46u > *:only-child,
70
- .side-panel__center_1i46u > *:last-child,
71
- .side-panel__center_1i46u > *:only-child,
72
- .side-panel__space-between_1i46u > *:last-child,
73
- .side-panel__space-between_1i46u > *:only-child {
68
+ .side-panel__start_m7em9 > *:last-child,
69
+ .side-panel__start_m7em9 > *:only-child,
70
+ .side-panel__center_m7em9 > *:last-child,
71
+ .side-panel__center_m7em9 > *:only-child,
72
+ .side-panel__space-between_m7em9 > *:last-child,
73
+ .side-panel__space-between_m7em9 > *:only-child {
74
74
  margin-right: 0;
75
75
  }
76
- .side-panel__start_1i46u.side-panel__gap-16_1i46u > *, .side-panel__center_1i46u.side-panel__gap-16_1i46u > *, .side-panel__space-between_1i46u.side-panel__gap-16_1i46u > * {
76
+ .side-panel__start_m7em9.side-panel__gap-16_m7em9 > *, .side-panel__center_m7em9.side-panel__gap-16_m7em9 > *, .side-panel__space-between_m7em9.side-panel__gap-16_m7em9 > * {
77
77
  margin-right: var(--gap-m);
78
78
  }
79
- .side-panel__start_1i46u.side-panel__gap-24_1i46u > *, .side-panel__center_1i46u.side-panel__gap-24_1i46u > *, .side-panel__space-between_1i46u.side-panel__gap-24_1i46u > * {
79
+ .side-panel__start_m7em9.side-panel__gap-24_m7em9 > *, .side-panel__center_m7em9.side-panel__gap-24_m7em9 > *, .side-panel__space-between_m7em9.side-panel__gap-24_m7em9 > * {
80
80
  margin-right: var(--gap-xl);
81
81
  }
82
- .side-panel__start_1i46u.side-panel__gap-32_1i46u > *, .side-panel__center_1i46u.side-panel__gap-32_1i46u > *, .side-panel__space-between_1i46u.side-panel__gap-32_1i46u > * {
82
+ .side-panel__start_m7em9.side-panel__gap-32_m7em9 > *, .side-panel__center_m7em9.side-panel__gap-32_m7em9 > *, .side-panel__space-between_m7em9.side-panel__gap-32_m7em9 > * {
83
83
  margin-right: var(--gap-2xl);
84
84
  }
@@ -1,4 +1,4 @@
1
- /* hash: rq7e9 */
1
+ /* hash: 17m3x */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -22,9 +22,9 @@
22
22
 
23
23
  /* mobile */
24
24
  }
25
- .side-panel__footer_4ndt6 {
25
+ .side-panel__footer_19amv {
26
26
  padding: var(--gap-m);
27
27
  }
28
- .side-panel__sticky_4ndt6 {
28
+ .side-panel__sticky_19amv {
29
29
  bottom: 0;
30
30
  }
@@ -40,6 +40,10 @@ type HeaderProps = {
40
40
  * Фиксирует шапку
41
41
  */
42
42
  sticky?: boolean;
43
+ /**
44
+ * Фоновое изображение
45
+ */
46
+ imageUrl?: string;
43
47
  /**
44
48
  * Идентификатор для систем автоматизированного тестирования
45
49
  */
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-395a8f91.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
@@ -8,7 +8,7 @@ import '@alfalab/core-components-icon-button/esm';
8
8
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
9
9
  import { Closer } from '../closer/Component.js';
10
10
 
11
- var styles = {"content":"side-panel__content_1pwun","s":"side-panel__s_1pwun","hasContent":"side-panel__hasContent_1pwun","sticky":"side-panel__sticky_1pwun"};
11
+ var styles = {"content":"side-panel__content_u02f3","s":"side-panel__s_u02f3","hasContent":"side-panel__hasContent_u02f3","sticky":"side-panel__sticky_u02f3"};
12
12
  require('./desktop.css')
13
13
 
14
14
  var HeaderDesktop = function (_a) {
@@ -1,24 +1,26 @@
1
+ import { a as __assign } from '../../tslib.es6-395a8f91.js';
1
2
  import React, { useContext, useEffect } from 'react';
2
3
  import cn from 'classnames';
3
4
  import '@alfalab/core-components-base-modal/esm';
4
5
  import { ModalContext } from '../../Context.js';
5
6
 
6
- var styles = {"header":"side-panel__header_1jok5","hasContent":"side-panel__hasContent_1jok5","highlighted":"side-panel__highlighted_1jok5","sticky":"side-panel__sticky_1jok5","content":"side-panel__content_1jok5","title":"side-panel__title_1jok5","addon":"side-panel__addon_1jok5","closer":"side-panel__closer_1jok5","left":"side-panel__left_1jok5","center":"side-panel__center_1jok5","right":"side-panel__right_1jok5","trim":"side-panel__trim_1jok5"};
7
+ var styles = {"header":"side-panel__header_1w27y","hasContent":"side-panel__hasContent_1w27y","highlighted":"side-panel__highlighted_1w27y","sticky":"side-panel__sticky_1w27y","backgroundImage":"side-panel__backgroundImage_1w27y","content":"side-panel__content_1w27y","title":"side-panel__title_1w27y","addon":"side-panel__addon_1w27y","closer":"side-panel__closer_1w27y","left":"side-panel__left_1w27y","center":"side-panel__center_1w27y","right":"side-panel__right_1w27y","trim":"side-panel__trim_1w27y"};
7
8
  require('./index.css')
8
9
 
9
10
  var Header = function (_a) {
10
11
  var _b, _c;
11
- var className = _a.className, addonClassName = _a.addonClassName, contentClassName = _a.contentClassName, leftAddons = _a.leftAddons, children = _a.children, _d = _a.align, align = _d === void 0 ? 'left' : _d, _e = _a.trim, trim = _e === void 0 ? true : _e, title = _a.title, closer = _a.closer, sticky = _a.sticky, dataTestId = _a.dataTestId;
12
+ var className = _a.className, addonClassName = _a.addonClassName, contentClassName = _a.contentClassName, leftAddons = _a.leftAddons, children = _a.children, _d = _a.align, align = _d === void 0 ? 'left' : _d, _e = _a.trim, trim = _e === void 0 ? true : _e, title = _a.title, closer = _a.closer, sticky = _a.sticky, imageUrl = _a.imageUrl, dataTestId = _a.dataTestId;
12
13
  var _f = useContext(ModalContext), headerHighlighted = _f.headerHighlighted, setHasHeader = _f.setHasHeader;
13
14
  var hasContent = Boolean(title || children);
14
15
  useEffect(function () {
15
16
  setHasHeader(true);
16
17
  }, [setHasHeader]);
17
18
  return (React.createElement("div", { className: cn(styles.header, className, (_b = {},
19
+ _b[styles.backgroundImage] = imageUrl,
18
20
  _b[styles.highlighted] = hasContent && sticky && headerHighlighted,
19
21
  _b[styles.sticky] = sticky,
20
22
  _b[styles.hasContent] = hasContent,
21
- _b)), "data-test-id": dataTestId },
23
+ _b)), "data-test-id": dataTestId, style: __assign({}, (imageUrl && { backgroundImage: "url(" + imageUrl + ")" })) },
22
24
  leftAddons && React.createElement("div", { className: cn(styles.addon, addonClassName) }, leftAddons),
23
25
  hasContent && (React.createElement("div", { className: cn(styles.content, contentClassName, styles[align], (_c = {},
24
26
  _c[styles.trim] = trim,
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-805b81fd.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-395a8f91.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/CrossHeavyMIcon';
9
9
  import { Closer } from '../closer/Component.js';
10
10
  import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
11
11
 
12
- var styles = {"sticky":"side-panel__sticky_3sq8y","content":"side-panel__content_3sq8y"};
12
+ var styles = {"sticky":"side-panel__sticky_18fzb","content":"side-panel__content_18fzb"};
13
13
  require('./mobile.css')
14
14
 
15
15
  var HeaderMobile = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: fa4ff */
1
+ /* hash: htkh3 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -34,21 +34,21 @@
34
34
 
35
35
  /* mobile */
36
36
  }
37
- .side-panel__content_1pwun {
37
+ .side-panel__content_u02f3 {
38
38
  font-weight: var(--side-panel-header-desktop-font-weight);
39
39
  font-family: var(--side-panel-header-desktop-font-family);
40
40
  }
41
- .side-panel__s_1pwun .side-panel__content_1pwun {
41
+ .side-panel__s_u02f3 .side-panel__content_u02f3 {
42
42
  padding: var(--side-panel-s-header-desktop-content-paddings);
43
43
  font-size: var(--side-panel-s-header-desktop-font-size);
44
44
  line-height: var(--side-panel-s-header-desktop-line-height);
45
45
  }
46
- .side-panel__s_1pwun {
46
+ .side-panel__s_u02f3 {
47
47
  padding: var(--side-panel-s-header-paddings)
48
48
  }
49
- .side-panel__s_1pwun:not(.side-panel__hasContent_1pwun) {
49
+ .side-panel__s_u02f3:not(.side-panel__hasContent_u02f3) {
50
50
  padding-bottom: 0;
51
51
  }
52
- .side-panel__sticky_1pwun {
52
+ .side-panel__sticky_u02f3 {
53
53
  top: 0;
54
54
  }