@alfalab/core-components-side-panel 5.0.0 → 5.0.1

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 (123) hide show
  1. package/Component.responsive.js +4 -4
  2. package/components/content/Component.desktop.js +3 -1
  3. package/components/content/Component.js +5 -2
  4. package/components/content/Component.mobile.js +3 -1
  5. package/components/content/desktop.css +3 -3
  6. package/components/content/index.css +4 -4
  7. package/components/content/mobile.css +3 -3
  8. package/components/controls/Component.js +5 -4
  9. package/components/controls/index.css +2 -2
  10. package/components/controls/index.js +2 -1
  11. package/components/footer/Component.desktop.js +4 -2
  12. package/components/footer/Component.js +6 -3
  13. package/components/footer/Component.mobile.js +4 -2
  14. package/components/footer/desktop.css +3 -3
  15. package/components/footer/index.css +4 -4
  16. package/components/footer/layout.css +17 -17
  17. package/components/footer/mobile.css +3 -3
  18. package/components/header/Component.js +6 -5
  19. package/components/header/desktop.css +5 -5
  20. package/components/header/index.css +14 -14
  21. package/components/header/mobile.css +4 -4
  22. package/cssm/Component.responsive.js +3 -3
  23. package/cssm/components/content/Component.desktop.js +2 -0
  24. package/cssm/components/content/Component.js +4 -1
  25. package/cssm/components/content/Component.mobile.js +2 -0
  26. package/cssm/components/controls/Component.js +3 -2
  27. package/cssm/components/controls/index.js +1 -0
  28. package/cssm/components/footer/Component.desktop.js +2 -0
  29. package/cssm/components/footer/Component.js +4 -1
  30. package/cssm/components/footer/Component.mobile.js +2 -0
  31. package/cssm/components/header/Component.js +3 -2
  32. package/cssm/desktop/Component.desktop.js +4 -3
  33. package/cssm/desktop/index.js +2 -1
  34. package/cssm/mobile/Component.mobile.js +4 -3
  35. package/cssm/mobile/index.js +2 -1
  36. package/cssm/typings.d.ts +1 -0
  37. package/desktop/Component.desktop.js +7 -6
  38. package/desktop/desktop.css +3 -3
  39. package/desktop/index.js +3 -2
  40. package/desktop/transitions.desktop.css +7 -7
  41. package/esm/Component.responsive.js +4 -4
  42. package/esm/components/content/Component.desktop.js +3 -1
  43. package/esm/components/content/Component.js +5 -2
  44. package/esm/components/content/Component.mobile.js +3 -1
  45. package/esm/components/content/desktop.css +3 -3
  46. package/esm/components/content/index.css +4 -4
  47. package/esm/components/content/mobile.css +3 -3
  48. package/esm/components/controls/Component.js +5 -4
  49. package/esm/components/controls/index.css +2 -2
  50. package/esm/components/controls/index.js +2 -1
  51. package/esm/components/footer/Component.desktop.js +4 -2
  52. package/esm/components/footer/Component.js +6 -3
  53. package/esm/components/footer/Component.mobile.js +4 -2
  54. package/esm/components/footer/desktop.css +3 -3
  55. package/esm/components/footer/index.css +4 -4
  56. package/esm/components/footer/layout.css +17 -17
  57. package/esm/components/footer/mobile.css +3 -3
  58. package/esm/components/header/Component.js +6 -5
  59. package/esm/components/header/desktop.css +5 -5
  60. package/esm/components/header/index.css +14 -14
  61. package/esm/components/header/mobile.css +4 -4
  62. package/esm/desktop/Component.desktop.js +7 -6
  63. package/esm/desktop/desktop.css +3 -3
  64. package/esm/desktop/index.js +3 -2
  65. package/esm/desktop/transitions.desktop.css +7 -7
  66. package/esm/index.js +1 -1
  67. package/esm/layout.module-31951bef.js +4 -0
  68. package/esm/mobile/Component.mobile.js +8 -7
  69. package/esm/mobile/index.js +3 -2
  70. package/esm/mobile/mobile.css +4 -4
  71. package/esm/mobile/transitions.mobile.css +8 -8
  72. package/esm/typings.d.ts +1 -0
  73. package/index.js +1 -1
  74. package/layout.module-2f71de49.js +6 -0
  75. package/mobile/Component.mobile.js +7 -6
  76. package/mobile/index.js +3 -2
  77. package/mobile/mobile.css +4 -4
  78. package/mobile/transitions.mobile.css +8 -8
  79. package/modern/Component.responsive.js +4 -4
  80. package/modern/components/content/Component.desktop.js +3 -1
  81. package/modern/components/content/Component.js +5 -2
  82. package/modern/components/content/Component.mobile.js +3 -1
  83. package/modern/components/content/desktop.css +3 -3
  84. package/modern/components/content/index.css +4 -4
  85. package/modern/components/content/mobile.css +3 -3
  86. package/modern/components/controls/Component.js +5 -4
  87. package/modern/components/controls/index.css +2 -2
  88. package/modern/components/controls/index.js +2 -1
  89. package/modern/components/footer/Component.desktop.js +4 -2
  90. package/modern/components/footer/Component.js +6 -3
  91. package/modern/components/footer/Component.mobile.js +4 -2
  92. package/modern/components/footer/desktop.css +3 -3
  93. package/modern/components/footer/index.css +4 -4
  94. package/modern/components/footer/layout.css +17 -17
  95. package/modern/components/footer/mobile.css +3 -3
  96. package/modern/components/header/Component.js +6 -5
  97. package/modern/components/header/desktop.css +5 -5
  98. package/modern/components/header/index.css +14 -14
  99. package/modern/components/header/mobile.css +4 -4
  100. package/modern/desktop/Component.desktop.js +7 -6
  101. package/modern/desktop/desktop.css +3 -3
  102. package/modern/desktop/index.js +3 -2
  103. package/modern/desktop/transitions.desktop.css +7 -7
  104. package/modern/index.js +1 -1
  105. package/modern/layout.module-a8ffdbd1.js +4 -0
  106. package/modern/mobile/Component.mobile.js +8 -7
  107. package/modern/mobile/index.js +3 -2
  108. package/modern/mobile/mobile.css +4 -4
  109. package/modern/mobile/transitions.mobile.css +8 -8
  110. package/modern/typings.d.ts +1 -0
  111. package/package.json +5 -5
  112. package/src/Component.responsive.tsx +16 -3
  113. package/src/components/content/Component.tsx +5 -1
  114. package/src/components/controls/Component.tsx +4 -1
  115. package/src/components/footer/Component.tsx +5 -1
  116. package/src/components/header/Component.tsx +3 -1
  117. package/src/desktop/Component.desktop.tsx +4 -2
  118. package/src/mobile/Component.mobile.tsx +8 -4
  119. package/src/typings.ts +1 -0
  120. package/typings.d.ts +1 -0
  121. package/esm/layout.module-39750ede.js +0 -4
  122. package/layout.module-9de5161f.js +0 -6
  123. package/modern/layout.module-36042bae.js +0 -4
@@ -2,11 +2,13 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import { Footer } from './Component.js';
5
+ import '@alfalab/core-components-shared/esm';
5
6
  import '../../Context.js';
6
7
  import '@alfalab/core-components-base-modal/esm';
7
- import '../../layout.module-39750ede.js';
8
+ import '../../ResponsiveContext.js';
9
+ import '../../layout.module-31951bef.js';
8
10
 
9
- var styles = {"footer":"side-panel__footer_g9984","sticky":"side-panel__sticky_g9984"};
11
+ var styles = {"footer":"side-panel__footer_1e4vh","sticky":"side-panel__sticky_1e4vh"};
10
12
  require('./mobile.css')
11
13
 
12
14
  var FooterMobile = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: jip6g */
1
+ /* hash: 1kjc9 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -30,8 +30,8 @@
30
30
  /* mobile */
31
31
 
32
32
  /* paddings */
33
- } .side-panel__sticky_3sbyj {
33
+ } .side-panel__sticky_62kfr {
34
34
  bottom: 0;
35
- } .side-panel__s_3sbyj {
35
+ } .side-panel__s_62kfr {
36
36
  padding: var(--side-panel-s-footer-paddings);
37
37
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1wfix */
1
+ /* hash: yf1yt */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
@@ -32,15 +32,15 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .side-panel__footer_13orv {
35
+ } .side-panel__footer_3jdk9 {
36
36
  width: 100%;
37
37
  box-sizing: border-box;
38
38
  transition: box-shadow 0.2s ease, background 0.2s ease;
39
- } .side-panel__sticky_13orv {
39
+ } .side-panel__sticky_3jdk9 {
40
40
  background: var(--side-panel-footer-background);
41
41
  position: sticky;
42
42
  z-index: 1;
43
- } .side-panel__highlighted_13orv {
43
+ } .side-panel__highlighted_3jdk9 {
44
44
  background: var(--side-panel-footer-highlight-background);
45
45
  box-shadow: var(--side-panel-footer-highlight-box-shadow);
46
46
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1j81l */
1
+ /* hash: l7kmt */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -31,35 +31,35 @@
31
31
  /* mobile */
32
32
 
33
33
  /* paddings */
34
- } .side-panel__column_1465d {
34
+ } .side-panel__column_16gdu {
35
35
  display: flex;
36
36
  flex-direction: column
37
- } .side-panel__column_1465d > *:not(:last-child):not(:only-child) {
37
+ } .side-panel__column_16gdu > *:not(:last-child):not(:only-child) {
38
38
  margin-bottom: var(--side-panel-footer-default-gap);
39
- } .side-panel__column_1465d.side-panel__gap-16_1465d > *:not(:last-child):not(:only-child) {
39
+ } .side-panel__column_16gdu.side-panel__gap-16_16gdu > *:not(:last-child):not(:only-child) {
40
40
  margin-bottom: var(--gap-m);
41
- } .side-panel__column_1465d.side-panel__gap-24_1465d > *:not(:last-child):not(:only-child) {
41
+ } .side-panel__column_16gdu.side-panel__gap-24_16gdu > *:not(:last-child):not(:only-child) {
42
42
  margin-bottom: var(--gap-xl);
43
- } .side-panel__column_1465d.side-panel__gap-32_1465d > *:not(:last-child):not(:only-child) {
43
+ } .side-panel__column_16gdu.side-panel__gap-32_16gdu > *:not(:last-child):not(:only-child) {
44
44
  margin-bottom: var(--gap-2xl);
45
- } .side-panel__start_1465d {
45
+ } .side-panel__start_16gdu {
46
46
  justify-content: flex-start;
47
- } .side-panel__center_1465d {
47
+ } .side-panel__center_16gdu {
48
48
  justify-content: center;
49
- } .side-panel__space-between_1465d {
49
+ } .side-panel__space-between_16gdu {
50
50
  justify-content: space-between
51
- } .side-panel__space-between_1465d > * {
51
+ } .side-panel__space-between_16gdu > * {
52
52
  flex: 1;
53
- } .side-panel__start_1465d,
54
- .side-panel__center_1465d,
55
- .side-panel__space-between_1465d {
53
+ } .side-panel__start_16gdu,
54
+ .side-panel__center_16gdu,
55
+ .side-panel__space-between_16gdu {
56
56
  display: flex
57
- } .side-panel__start_1465d > *:not(:last-child):not(:only-child), .side-panel__center_1465d > *:not(:last-child):not(:only-child), .side-panel__space-between_1465d > *:not(:last-child):not(:only-child) {
57
+ } .side-panel__start_16gdu > *:not(:last-child):not(:only-child), .side-panel__center_16gdu > *:not(:last-child):not(:only-child), .side-panel__space-between_16gdu > *:not(:last-child):not(:only-child) {
58
58
  margin-right: var(--side-panel-footer-default-gap);
59
- } .side-panel__start_1465d.side-panel__gap-16_1465d > *:not(:last-child):not(:only-child), .side-panel__center_1465d.side-panel__gap-16_1465d > *:not(:last-child):not(:only-child), .side-panel__space-between_1465d.side-panel__gap-16_1465d > *:not(:last-child):not(:only-child) {
59
+ } .side-panel__start_16gdu.side-panel__gap-16_16gdu > *:not(:last-child):not(:only-child), .side-panel__center_16gdu.side-panel__gap-16_16gdu > *:not(:last-child):not(:only-child), .side-panel__space-between_16gdu.side-panel__gap-16_16gdu > *:not(:last-child):not(:only-child) {
60
60
  margin-right: var(--gap-m);
61
- } .side-panel__start_1465d.side-panel__gap-24_1465d > *:not(:last-child):not(:only-child), .side-panel__center_1465d.side-panel__gap-24_1465d > *:not(:last-child):not(:only-child), .side-panel__space-between_1465d.side-panel__gap-24_1465d > *:not(:last-child):not(:only-child) {
61
+ } .side-panel__start_16gdu.side-panel__gap-24_16gdu > *:not(:last-child):not(:only-child), .side-panel__center_16gdu.side-panel__gap-24_16gdu > *:not(:last-child):not(:only-child), .side-panel__space-between_16gdu.side-panel__gap-24_16gdu > *:not(:last-child):not(:only-child) {
62
62
  margin-right: var(--gap-xl);
63
- } .side-panel__start_1465d.side-panel__gap-32_1465d > *:not(:last-child):not(:only-child), .side-panel__center_1465d.side-panel__gap-32_1465d > *:not(:last-child):not(:only-child), .side-panel__space-between_1465d.side-panel__gap-32_1465d > *:not(:last-child):not(:only-child) {
63
+ } .side-panel__start_16gdu.side-panel__gap-32_16gdu > *:not(:last-child):not(:only-child), .side-panel__center_16gdu.side-panel__gap-32_16gdu > *:not(:last-child):not(:only-child), .side-panel__space-between_16gdu.side-panel__gap-32_16gdu > *:not(:last-child):not(:only-child) {
64
64
  margin-right: var(--gap-2xl);
65
65
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1s3ba */
1
+ /* hash: 179i8 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .side-panel__footer_g9984 {
31
+ } .side-panel__footer_1e4vh {
32
32
  padding: var(--gap-m);
33
- } .side-panel__sticky_g9984 {
33
+ } .side-panel__sticky_1e4vh {
34
34
  bottom: 0;
35
35
  }
@@ -2,29 +2,30 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { useContext, useEffect } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { NavigationBar } from '@alfalab/core-components-navigation-bar/esm';
5
+ import { getDataTestId } from '@alfalab/core-components-shared/esm';
5
6
  import { ModalContext } from '../../Context.js';
6
7
  import { ResponsiveContext } from '../../ResponsiveContext.js';
7
8
  import '@alfalab/core-components-base-modal/esm';
8
9
 
9
- var desktopStyles = {"content":"side-panel__content_1y5s8","s":"side-panel__s_1y5s8","sticky":"side-panel__sticky_1y5s8"};
10
+ var desktopStyles = {"content":"side-panel__content_go813","s":"side-panel__s_go813","sticky":"side-panel__sticky_go813"};
10
11
  require('./desktop.css')
11
12
 
12
- var styles = {"header":"side-panel__header_11qp6","hasContent":"side-panel__hasContent_11qp6","highlighted":"side-panel__highlighted_11qp6","sticky":"side-panel__sticky_11qp6","backgroundImage":"side-panel__backgroundImage_11qp6","content":"side-panel__content_11qp6","title":"side-panel__title_11qp6","addon":"side-panel__addon_11qp6","closer":"side-panel__closer_11qp6","right":"side-panel__right_11qp6","trim":"side-panel__trim_11qp6"};
13
+ var styles = {"header":"side-panel__header_fxc9s","hasContent":"side-panel__hasContent_fxc9s","highlighted":"side-panel__highlighted_fxc9s","sticky":"side-panel__sticky_fxc9s","backgroundImage":"side-panel__backgroundImage_fxc9s","content":"side-panel__content_fxc9s","title":"side-panel__title_fxc9s","addon":"side-panel__addon_fxc9s","closer":"side-panel__closer_fxc9s","right":"side-panel__right_fxc9s","trim":"side-panel__trim_fxc9s"};
13
14
  require('./index.css')
14
15
 
15
- var mobileStyles = {"header":"side-panel__header_nijgo","sticky":"side-panel__sticky_nijgo","content":"side-panel__content_nijgo"};
16
+ var mobileStyles = {"header":"side-panel__header_bla0h","sticky":"side-panel__sticky_bla0h","content":"side-panel__content_bla0h"};
16
17
  require('./mobile.css')
17
18
 
18
19
  var Header = function (_a) {
19
20
  var _b, _c;
20
21
  var className = _a.className, children = _a.children, contentClassName = _a.contentClassName, title = _a.title, sticky = _a.sticky, _d = _a.hasCloser, hasCloser = _d === void 0 ? true : _d, restProps = __rest(_a, ["className", "children", "contentClassName", "title", "sticky", "hasCloser"]);
21
22
  var _e = useContext(ModalContext), setHasHeader = _e.setHasHeader, headerHighlighted = _e.headerHighlighted, onClose = _e.onClose, componentRef = _e.componentRef;
22
- var _f = useContext(ResponsiveContext) || {}, _g = _f.size, size = _g === void 0 ? 's' : _g, _h = _f.view, view = _h === void 0 ? 'desktop' : _h;
23
+ var _f = useContext(ResponsiveContext) || {}, _g = _f.size, size = _g === void 0 ? 's' : _g, _h = _f.view, view = _h === void 0 ? 'desktop' : _h, dataTestId = _f.dataTestId;
23
24
  useEffect(function () {
24
25
  setHasHeader(true);
25
26
  }, [setHasHeader]);
26
27
  var hasContent = Boolean(title || children);
27
- return (React.createElement(NavigationBar, __assign({}, restProps, { scrollableParentRef: componentRef, view: view, sticky: sticky, title: title, hasCloser: hasCloser, onClose: onClose, className: cn(styles.header, className, (_b = {},
28
+ return (React.createElement(NavigationBar, __assign({}, restProps, { dataTestId: getDataTestId(dataTestId, 'header'), scrollableParentRef: componentRef, view: view, sticky: sticky, title: title, hasCloser: hasCloser, onClose: onClose, className: cn(styles.header, className, (_b = {},
28
29
  _b[styles.highlighted] = hasContent && sticky && headerHighlighted,
29
30
  _b[styles.sticky] = sticky,
30
31
  _b[styles.hasContent] = hasContent,
@@ -1,4 +1,4 @@
1
- /* hash: 12aru */
1
+ /* hash: 41ofx */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -37,15 +37,15 @@
37
37
  /* mobile */
38
38
 
39
39
  /* paddings */
40
- } .side-panel__content_1y5s8 {
40
+ } .side-panel__content_go813 {
41
41
  font-weight: var(--side-panel-header-desktop-font-weight);
42
42
  font-family: var(--side-panel-header-desktop-font-family);
43
- } .side-panel__s_1y5s8 .side-panel__content_1y5s8 {
43
+ } .side-panel__s_go813 .side-panel__content_go813 {
44
44
  padding: var(--side-panel-s-header-desktop-content-paddings);
45
45
  font-size: var(--side-panel-s-header-desktop-font-size);
46
46
  line-height: var(--side-panel-s-header-desktop-line-height);
47
- } .side-panel__s_1y5s8 {
47
+ } .side-panel__s_go813 {
48
48
  padding: var(--side-panel-s-header-paddings);
49
- } .side-panel__sticky_1y5s8 {
49
+ } .side-panel__sticky_go813 {
50
50
  top: 0;
51
51
  }
@@ -1,4 +1,4 @@
1
- /* hash: stoky */
1
+ /* hash: 1tlp8 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
@@ -32,42 +32,42 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .side-panel__header_11qp6 {
35
+ } .side-panel__header_fxc9s {
36
36
  width: 100%;
37
37
  box-sizing: border-box;
38
38
  transition: box-shadow 0.2s ease, background 0.2s ease
39
- } .side-panel__header_11qp6:not(.side-panel__hasContent_11qp6) {
39
+ } .side-panel__header_fxc9s:not(.side-panel__hasContent_fxc9s) {
40
40
  pointer-events: none;
41
- } .side-panel__highlighted_11qp6 {
41
+ } .side-panel__highlighted_fxc9s {
42
42
  background: var(--side-panel-header-highlight-background);
43
43
  box-shadow: var(--side-panel-header-highlight-box-shadow);
44
- } .side-panel__sticky_11qp6 {
44
+ } .side-panel__sticky_fxc9s {
45
45
  position: sticky;
46
46
  z-index: 1
47
- } .side-panel__sticky_11qp6.side-panel__hasContent_11qp6 {
47
+ } .side-panel__sticky_fxc9s.side-panel__hasContent_fxc9s {
48
48
  background: var(--side-panel-header-background);
49
- } .side-panel__header_11qp6.side-panel__backgroundImage_11qp6 {
49
+ } .side-panel__header_fxc9s.side-panel__backgroundImage_fxc9s {
50
50
  background: center no-repeat;
51
51
  background-size: cover;
52
- } .side-panel__content_11qp6 {
52
+ } .side-panel__content_fxc9s {
53
53
  flex-grow: 1;
54
- } .side-panel__title_11qp6 {
54
+ } .side-panel__title_fxc9s {
55
55
  word-break: break-word;
56
- } .side-panel__addon_11qp6 {
56
+ } .side-panel__addon_fxc9s {
57
57
  min-width: 48px;
58
58
  height: 48px;
59
59
  display: flex;
60
60
  justify-content: center;
61
61
  align-items: center;
62
62
  pointer-events: all;
63
- } .side-panel__closer_11qp6 {
63
+ } .side-panel__closer_fxc9s {
64
64
  margin-left: auto;
65
- } .side-panel__right_11qp6 {
65
+ } .side-panel__right_fxc9s {
66
66
  justify-content: flex-end;
67
67
  text-align: right;
68
- } .side-panel__trim_11qp6 {
68
+ } .side-panel__trim_fxc9s {
69
69
  overflow: hidden
70
- } .side-panel__trim_11qp6 .side-panel__title_11qp6 {
70
+ } .side-panel__trim_fxc9s .side-panel__title_fxc9s {
71
71
  overflow: hidden;
72
72
  white-space: nowrap;
73
73
  text-overflow: ellipsis;
@@ -1,4 +1,4 @@
1
- /* hash: 1qqbc */
1
+ /* hash: 1rqwq */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -38,11 +38,11 @@
38
38
 
39
39
  /* paddings */
40
40
  --side-panel-header-mobile-paddings: var(--gap-2xs) var(--gap-xs);
41
- } .side-panel__header_nijgo {
41
+ } .side-panel__header_bla0h {
42
42
  padding: var(--side-panel-header-mobile-paddings);
43
- } .side-panel__sticky_nijgo {
43
+ } .side-panel__sticky_bla0h {
44
44
  top: 0;
45
- } .side-panel__content_nijgo {
45
+ } .side-panel__content_bla0h {
46
46
  font-size: var(--side-panel-header-mobile-font-size);
47
47
  line-height: var(--side-panel-header-mobile-line-height);
48
48
  font-family: var(--side-panel-header-mobile-font-family);
@@ -9,21 +9,22 @@ import { FooterDesktop } from '../components/footer/Component.desktop.js';
9
9
  import { Header } from '../components/header/Component.js';
10
10
  import { ResponsiveContext } from '../ResponsiveContext.js';
11
11
  import '../components/content/Component.js';
12
+ import '@alfalab/core-components-shared/esm';
12
13
  import '../Context.js';
13
14
  import '@alfalab/core-components-base-modal/esm';
14
- import '../layout.module-39750ede.js';
15
+ import '../layout.module-31951bef.js';
15
16
  import '../components/footer/Component.js';
16
17
  import '@alfalab/core-components-navigation-bar/esm';
17
18
 
18
- var styles = {"s":"side-panel__s_7ub5v","hidden":"side-panel__hidden_7ub5v"};
19
+ var styles = {"s":"side-panel__s_1nqpu","hidden":"side-panel__hidden_1nqpu"};
19
20
  require('./desktop.css')
20
21
 
21
- var transitions = {"enterRight":"side-panel__enterRight_boza3","enterLeft":"side-panel__enterLeft_boza3","enterActive":"side-panel__enterActive_boza3","exit":"side-panel__exit_boza3","exitActiveRight":"side-panel__exitActiveRight_boza3","exitActiveLeft":"side-panel__exitActiveLeft_boza3"};
22
+ var transitions = {"enterRight":"side-panel__enterRight_74yrs","enterLeft":"side-panel__enterLeft_74yrs","enterActive":"side-panel__enterActive_74yrs","exit":"side-panel__exit_74yrs","exitActiveRight":"side-panel__exitActiveRight_74yrs","exitActiveLeft":"side-panel__exitActiveLeft_74yrs"};
22
23
  require('./transitions.desktop.css')
23
24
 
24
25
  var SidePanelDesktopComponent = forwardRef(function (_a, ref) {
25
26
  var _b, _c;
26
- var _d = _a.size, size = _d === void 0 ? 's' : _d, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _e = _a.contentTransitionProps, contentTransitionProps = _e === void 0 ? {} : _e, backdropProps = _a.backdropProps, _f = _a.placement, placement = _f === void 0 ? 'right' : _f, restProps = __rest(_a, ["size", "children", "className", "wrapperClassName", "contentTransitionProps", "backdropProps", "placement"]);
27
+ var _d = _a.size, size = _d === void 0 ? 's' : _d, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _e = _a.contentTransitionProps, contentTransitionProps = _e === void 0 ? {} : _e, backdropProps = _a.backdropProps, _f = _a.placement, placement = _f === void 0 ? 'right' : _f, dataTestId = _a.dataTestId, restProps = __rest(_a, ["size", "children", "className", "wrapperClassName", "contentTransitionProps", "backdropProps", "placement", "dataTestId"]);
27
28
  var responsiveContext = useContext(ResponsiveContext);
28
29
  var modalRef = useRef(null);
29
30
  var enterCn = cn((_b = {},
@@ -34,8 +35,8 @@ var SidePanelDesktopComponent = forwardRef(function (_a, ref) {
34
35
  _c[transitions.exitActiveRight] = placement === 'right',
35
36
  _c[transitions.exitActiveLeft] = placement === 'left',
36
37
  _c));
37
- var contextValue = React.useMemo(function () { return ({ size: size, view: 'desktop' }); }, [size]);
38
- var renderContent = function () { return (React.createElement(Drawer, __assign({}, restProps, { ref: mergeRefs([ref, modalRef]), placement: placement, wrapperClassName: wrapperClassName, className: cn(className, styles[size], styles.hidden), backdropProps: backdropProps, contentTransitionProps: __assign({ classNames: {
38
+ var contextValue = React.useMemo(function () { return ({ size: size, view: 'desktop', dataTestId: dataTestId }); }, [size, dataTestId]);
39
+ var renderContent = function () { return (React.createElement(Drawer, __assign({}, restProps, { dataTestId: dataTestId, ref: mergeRefs([ref, modalRef]), placement: placement, wrapperClassName: wrapperClassName, className: cn(className, styles[size], styles.hidden), backdropProps: backdropProps, contentTransitionProps: __assign({ classNames: {
39
40
  appear: enterCn,
40
41
  enter: enterCn,
41
42
  appearActive: transitions.enterActive,
@@ -1,4 +1,4 @@
1
- /* hash: 1thkt */
1
+ /* hash: 1omtc */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .side-panel__s_7ub5v.side-panel__s_7ub5v {
31
+ } .side-panel__s_1nqpu.side-panel__s_1nqpu {
32
32
  width: var(--side-panel-s-width);
33
- } .side-panel__hidden_7ub5v {
33
+ } .side-panel__hidden_1nqpu {
34
34
  overflow-x: hidden;
35
35
  }
@@ -6,11 +6,12 @@ import 'classnames';
6
6
  import '@alfalab/core-components-drawer/esm';
7
7
  import '../components/content/Component.desktop.js';
8
8
  import '../components/content/Component.js';
9
+ import '@alfalab/core-components-shared/esm';
9
10
  import '../Context.js';
10
11
  import '@alfalab/core-components-base-modal/esm';
11
- import '../components/controls/Component.js';
12
12
  import '../ResponsiveContext.js';
13
- import '../layout.module-39750ede.js';
13
+ import '../components/controls/Component.js';
14
+ import '../layout.module-31951bef.js';
14
15
  import '../components/footer/Component.desktop.js';
15
16
  import '../components/footer/Component.js';
16
17
  import '../components/header/Component.js';
@@ -1,32 +1,32 @@
1
- /* hash: 1lsy6 */
2
- .side-panel__enterRight_boza3 {
1
+ /* hash: 10z53 */
2
+ .side-panel__enterRight_74yrs {
3
3
  opacity: 0;
4
4
  transform: translateX(15px);
5
5
  }
6
6
 
7
- .side-panel__enterLeft_boza3 {
7
+ .side-panel__enterLeft_74yrs {
8
8
  opacity: 0;
9
9
  transform: translateX(-15px);
10
10
  }
11
11
 
12
- .side-panel__enterActive_boza3 {
12
+ .side-panel__enterActive_74yrs {
13
13
  opacity: 1;
14
14
  transform: translateX(0);
15
15
  transition: opacity 200ms ease-in, transform 200ms ease-in;
16
16
  }
17
17
 
18
- .side-panel__exit_boza3 {
18
+ .side-panel__exit_74yrs {
19
19
  opacity: 1;
20
20
  transform: translateX(0);
21
21
  }
22
22
 
23
- .side-panel__exitActiveRight_boza3 {
23
+ .side-panel__exitActiveRight_74yrs {
24
24
  opacity: 0;
25
25
  transition: opacity 200ms ease-out, transform 200ms ease-out;
26
26
  transform: translateX(15px);
27
27
  }
28
28
 
29
- .side-panel__exitActiveLeft_boza3 {
29
+ .side-panel__exitActiveLeft_74yrs {
30
30
  opacity: 0;
31
31
  transition: opacity 200ms ease-out, transform 200ms ease-out;
32
32
  transform: translateX(-15px);
package/esm/index.js CHANGED
@@ -6,7 +6,7 @@ import '@alfalab/core-components-shared/esm';
6
6
  import './components/controls/Component.js';
7
7
  import 'classnames';
8
8
  import './ResponsiveContext.js';
9
- import './layout.module-39750ede.js';
9
+ import './layout.module-31951bef.js';
10
10
  import './components/header/Component.js';
11
11
  import '@alfalab/core-components-navigation-bar/esm';
12
12
  import './Context.js';
@@ -0,0 +1,4 @@
1
+ var layoutStyles = {"column":"side-panel__column_16gdu","gap-16":"side-panel__gap-16_16gdu","gap-24":"side-panel__gap-24_16gdu","gap-32":"side-panel__gap-32_16gdu","start":"side-panel__start_16gdu","center":"side-panel__center_16gdu","space-between":"side-panel__space-between_16gdu"};
2
+ require('./components/footer/layout.css')
3
+
4
+ export { layoutStyles as l };
@@ -1,5 +1,5 @@
1
1
  import { __rest, __assign } from 'tslib';
2
- import React, { forwardRef, useContext } from 'react';
2
+ import React, { forwardRef, useContext, useMemo } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { BaseModal } from '@alfalab/core-components-base-modal/esm';
5
5
  import { ContentMobile } from '../components/content/Component.mobile.js';
@@ -8,22 +8,23 @@ import { FooterMobile } from '../components/footer/Component.mobile.js';
8
8
  import { Header } from '../components/header/Component.js';
9
9
  import { ResponsiveContext } from '../ResponsiveContext.js';
10
10
  import '../components/content/Component.js';
11
+ import '@alfalab/core-components-shared/esm';
11
12
  import '../Context.js';
12
- import '../layout.module-39750ede.js';
13
+ import '../layout.module-31951bef.js';
13
14
  import '../components/footer/Component.js';
14
15
  import '@alfalab/core-components-navigation-bar/esm';
15
16
 
16
- var styles = {"component":"side-panel__component_19aqa","mobileContent":"side-panel__mobileContent_19aqa"};
17
+ var styles = {"component":"side-panel__component_1050h","mobileContent":"side-panel__mobileContent_1050h"};
17
18
  require('./mobile.css')
18
19
 
19
- var transitions = {"appear":"side-panel__appear_8jtdc","enter":"side-panel__enter_8jtdc","appearActive":"side-panel__appearActive_8jtdc","enterActive":"side-panel__enterActive_8jtdc","exit":"side-panel__exit_8jtdc","exitActive":"side-panel__exitActive_8jtdc","exitDone":"side-panel__exitDone_8jtdc"};
20
+ var transitions = {"appear":"side-panel__appear_1lrki","enter":"side-panel__enter_1lrki","appearActive":"side-panel__appearActive_1lrki","enterActive":"side-panel__enterActive_1lrki","exit":"side-panel__exit_1lrki","exitActive":"side-panel__exitActive_1lrki","exitDone":"side-panel__exitDone_1lrki"};
20
21
  require('./transitions.mobile.css')
21
22
 
22
- var contextValue = { size: 's', view: 'mobile' };
23
23
  var SidePanelMobileComponent = forwardRef(function (_a, ref) {
24
- var children = _a.children, className = _a.className, transitionProps = _a.transitionProps, restProps = __rest(_a, ["children", "className", "transitionProps"]);
24
+ var children = _a.children, className = _a.className, transitionProps = _a.transitionProps, dataTestId = _a.dataTestId, restProps = __rest(_a, ["children", "className", "transitionProps", "dataTestId"]);
25
25
  var responsiveContext = useContext(ResponsiveContext);
26
- var renderContent = function () { return (React.createElement(BaseModal, __assign({}, restProps, { ref: ref, transitionProps: __assign({ classNames: transitions }, transitionProps), className: cn(className, styles.component), scrollHandler: 'content' }),
26
+ var contextValue = useMemo(function () { return ({ size: 's', view: 'mobile', dataTestId: dataTestId }); }, [dataTestId]);
27
+ var renderContent = function () { return (React.createElement(BaseModal, __assign({}, restProps, { dataTestId: dataTestId, ref: ref, transitionProps: __assign({ classNames: transitions }, transitionProps), className: cn(className, styles.component), scrollHandler: 'content' }),
27
28
  React.createElement("div", { className: styles.mobileContent }, children))); };
28
29
  var renderWithContext = function () { return (React.createElement(ResponsiveContext.Provider, { value: contextValue }, renderContent())); };
29
30
  return responsiveContext ? renderContent() : renderWithContext();
@@ -5,10 +5,11 @@ import 'classnames';
5
5
  import '@alfalab/core-components-base-modal/esm';
6
6
  import '../components/content/Component.mobile.js';
7
7
  import '../components/content/Component.js';
8
+ import '@alfalab/core-components-shared/esm';
8
9
  import '../Context.js';
9
- import '../components/controls/Component.js';
10
10
  import '../ResponsiveContext.js';
11
- import '../layout.module-39750ede.js';
11
+ import '../components/controls/Component.js';
12
+ import '../layout.module-31951bef.js';
12
13
  import '../components/footer/Component.mobile.js';
13
14
  import '../components/footer/Component.js';
14
15
  import '../components/header/Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1sy9t */
1
+ /* hash: uxsui */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -27,17 +27,17 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .side-panel__component_19aqa {
30
+ } .side-panel__component_1050h {
31
31
  top: 0;
32
32
  height: 100%;
33
33
  width: 100%;
34
34
  overflow-x: hidden;
35
35
  overflow-y: auto;
36
36
  max-width: 600px;
37
- } .side-panel__component_19aqa.side-panel__component_19aqa {
37
+ } .side-panel__component_1050h.side-panel__component_1050h {
38
38
  position: fixed;
39
39
  flex: 1;
40
- } .side-panel__mobileContent_19aqa {
40
+ } .side-panel__mobileContent_1050h {
41
41
  display: flex;
42
42
  flex-direction: column;
43
43
  width: 100%;
@@ -1,24 +1,24 @@
1
- /* hash: 1m2o8 */
2
- .side-panel__appear_8jtdc,
3
- .side-panel__enter_8jtdc {
1
+ /* hash: ntku8 */
2
+ .side-panel__appear_1lrki,
3
+ .side-panel__enter_1lrki {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .side-panel__appearActive_8jtdc,
9
- .side-panel__enterActive_8jtdc {
8
+ .side-panel__appearActive_1lrki,
9
+ .side-panel__enterActive_1lrki {
10
10
  opacity: 1;
11
11
  transform: translateY(0);
12
12
  transition: opacity 200ms ease-in, transform 200ms ease-in;
13
13
  }
14
14
 
15
- .side-panel__exit_8jtdc {
15
+ .side-panel__exit_1lrki {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .side-panel__exitActive_8jtdc,
21
- .side-panel__exitDone_8jtdc {
20
+ .side-panel__exitActive_1lrki,
21
+ .side-panel__exitDone_1lrki {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
package/esm/typings.d.ts CHANGED
@@ -2,5 +2,6 @@ type View = 'desktop' | 'mobile';
2
2
  type TResponsiveModalContext = {
3
3
  view: View;
4
4
  size: 's';
5
+ dataTestId?: string;
5
6
  } | null;
6
7
  export { View, TResponsiveModalContext };
package/index.js CHANGED
@@ -10,7 +10,7 @@ require('@alfalab/core-components-shared');
10
10
  require('./components/controls/Component.js');
11
11
  require('classnames');
12
12
  require('./ResponsiveContext.js');
13
- require('./layout.module-9de5161f.js');
13
+ require('./layout.module-2f71de49.js');
14
14
  require('./components/header/Component.js');
15
15
  require('@alfalab/core-components-navigation-bar');
16
16
  require('./Context.js');
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var layoutStyles = {"column":"side-panel__column_16gdu","gap-16":"side-panel__gap-16_16gdu","gap-24":"side-panel__gap-24_16gdu","gap-32":"side-panel__gap-32_16gdu","start":"side-panel__start_16gdu","center":"side-panel__center_16gdu","space-between":"side-panel__space-between_16gdu"};
4
+ require('./components/footer/layout.css')
5
+
6
+ exports.layoutStyles = layoutStyles;
@@ -12,8 +12,9 @@ var components_footer_Component_mobile = require('../components/footer/Component
12
12
  var components_header_Component = require('../components/header/Component.js');
13
13
  var ResponsiveContext = require('../ResponsiveContext.js');
14
14
  require('../components/content/Component.js');
15
+ require('@alfalab/core-components-shared');
15
16
  require('../Context.js');
16
- require('../layout.module-9de5161f.js');
17
+ require('../layout.module-2f71de49.js');
17
18
  require('../components/footer/Component.js');
18
19
  require('@alfalab/core-components-navigation-bar');
19
20
 
@@ -22,17 +23,17 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
22
23
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
23
24
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
24
25
 
25
- var styles = {"component":"side-panel__component_19aqa","mobileContent":"side-panel__mobileContent_19aqa"};
26
+ var styles = {"component":"side-panel__component_1050h","mobileContent":"side-panel__mobileContent_1050h"};
26
27
  require('./mobile.css')
27
28
 
28
- var transitions = {"appear":"side-panel__appear_8jtdc","enter":"side-panel__enter_8jtdc","appearActive":"side-panel__appearActive_8jtdc","enterActive":"side-panel__enterActive_8jtdc","exit":"side-panel__exit_8jtdc","exitActive":"side-panel__exitActive_8jtdc","exitDone":"side-panel__exitDone_8jtdc"};
29
+ var transitions = {"appear":"side-panel__appear_1lrki","enter":"side-panel__enter_1lrki","appearActive":"side-panel__appearActive_1lrki","enterActive":"side-panel__enterActive_1lrki","exit":"side-panel__exit_1lrki","exitActive":"side-panel__exitActive_1lrki","exitDone":"side-panel__exitDone_1lrki"};
29
30
  require('./transitions.mobile.css')
30
31
 
31
- var contextValue = { size: 's', view: 'mobile' };
32
32
  var SidePanelMobileComponent = React.forwardRef(function (_a, ref) {
33
- var children = _a.children, className = _a.className, transitionProps = _a.transitionProps, restProps = tslib.__rest(_a, ["children", "className", "transitionProps"]);
33
+ var children = _a.children, className = _a.className, transitionProps = _a.transitionProps, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["children", "className", "transitionProps", "dataTestId"]);
34
34
  var responsiveContext = React.useContext(ResponsiveContext.ResponsiveContext);
35
- var renderContent = function () { return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, tslib.__assign({}, restProps, { ref: ref, transitionProps: tslib.__assign({ classNames: transitions }, transitionProps), className: cn__default.default(className, styles.component), scrollHandler: 'content' }),
35
+ var contextValue = React.useMemo(function () { return ({ size: 's', view: 'mobile', dataTestId: dataTestId }); }, [dataTestId]);
36
+ var renderContent = function () { return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, tslib.__assign({}, restProps, { dataTestId: dataTestId, ref: ref, transitionProps: tslib.__assign({ classNames: transitions }, transitionProps), className: cn__default.default(className, styles.component), scrollHandler: 'content' }),
36
37
  React__default.default.createElement("div", { className: styles.mobileContent }, children))); };
37
38
  var renderWithContext = function () { return (React__default.default.createElement(ResponsiveContext.ResponsiveContext.Provider, { value: contextValue }, renderContent())); };
38
39
  return responsiveContext ? renderContent() : renderWithContext();