@alfalab/core-components-side-panel 4.1.3 → 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 (152) hide show
  1. package/Component.responsive.d.ts +1 -0
  2. package/Component.responsive.js +6 -3
  3. package/components/content/Component.desktop.js +3 -1
  4. package/components/content/Component.js +5 -2
  5. package/components/content/Component.mobile.js +3 -1
  6. package/components/content/desktop.css +3 -3
  7. package/components/content/index.css +4 -4
  8. package/components/content/mobile.css +3 -3
  9. package/components/controls/Component.d.ts +29 -0
  10. package/components/controls/Component.js +32 -0
  11. package/components/controls/index.css +4 -0
  12. package/components/controls/index.d.ts +1 -0
  13. package/components/controls/index.js +14 -0
  14. package/components/footer/Component.desktop.js +4 -1
  15. package/components/footer/Component.js +7 -6
  16. package/components/footer/Component.mobile.js +5 -2
  17. package/components/footer/desktop.css +3 -3
  18. package/components/footer/index.css +9 -9
  19. package/components/footer/layout.css +17 -27
  20. package/components/footer/mobile.css +4 -13
  21. package/components/header/Component.js +6 -5
  22. package/components/header/desktop.css +5 -5
  23. package/components/header/index.css +19 -19
  24. package/components/header/mobile.css +4 -4
  25. package/cssm/Component.responsive.d.ts +1 -0
  26. package/cssm/Component.responsive.js +7 -4
  27. package/cssm/components/content/Component.desktop.js +2 -0
  28. package/cssm/components/content/Component.js +4 -1
  29. package/cssm/components/content/Component.mobile.js +2 -0
  30. package/cssm/components/controls/Component.d.ts +29 -0
  31. package/cssm/components/controls/Component.js +32 -0
  32. package/cssm/components/controls/index.d.ts +1 -0
  33. package/cssm/components/controls/index.js +15 -0
  34. package/cssm/components/controls/index.module.css +3 -0
  35. package/cssm/components/footer/Component.desktop.js +2 -0
  36. package/cssm/components/footer/Component.js +4 -1
  37. package/cssm/components/footer/Component.mobile.js +3 -1
  38. package/cssm/components/footer/index.module.css +5 -5
  39. package/cssm/components/footer/layout.module.css +8 -18
  40. package/cssm/components/footer/mobile.module.css +1 -10
  41. package/cssm/components/header/Component.js +3 -2
  42. package/cssm/components/header/index.module.css +5 -5
  43. package/cssm/desktop/Component.desktop.d.ts +4 -1
  44. package/cssm/desktop/Component.desktop.js +8 -4
  45. package/cssm/desktop/index.js +5 -2
  46. package/cssm/index.js +5 -3
  47. package/cssm/mobile/Component.mobile.d.ts +2 -0
  48. package/cssm/mobile/Component.mobile.js +8 -4
  49. package/cssm/mobile/index.js +5 -2
  50. package/cssm/typings.d.ts +1 -0
  51. package/desktop/Component.desktop.d.ts +4 -1
  52. package/desktop/Component.desktop.js +9 -5
  53. package/desktop/desktop.css +3 -3
  54. package/desktop/index.js +4 -1
  55. package/desktop/transitions.desktop.css +7 -7
  56. package/esm/Component.responsive.d.ts +1 -0
  57. package/esm/Component.responsive.js +6 -3
  58. package/esm/components/content/Component.desktop.js +3 -1
  59. package/esm/components/content/Component.js +5 -2
  60. package/esm/components/content/Component.mobile.js +3 -1
  61. package/esm/components/content/desktop.css +3 -3
  62. package/esm/components/content/index.css +4 -4
  63. package/esm/components/content/mobile.css +3 -3
  64. package/esm/components/controls/Component.d.ts +29 -0
  65. package/esm/components/controls/Component.js +23 -0
  66. package/esm/components/controls/index.css +4 -0
  67. package/esm/components/controls/index.d.ts +1 -0
  68. package/esm/components/controls/index.js +6 -0
  69. package/esm/components/footer/Component.desktop.js +4 -1
  70. package/esm/components/footer/Component.js +6 -5
  71. package/esm/components/footer/Component.mobile.js +5 -2
  72. package/esm/components/footer/desktop.css +3 -3
  73. package/esm/components/footer/index.css +9 -9
  74. package/esm/components/footer/layout.css +17 -27
  75. package/esm/components/footer/mobile.css +4 -13
  76. package/esm/components/header/Component.js +6 -5
  77. package/esm/components/header/desktop.css +5 -5
  78. package/esm/components/header/index.css +19 -19
  79. package/esm/components/header/mobile.css +4 -4
  80. package/esm/desktop/Component.desktop.d.ts +4 -1
  81. package/esm/desktop/Component.desktop.js +9 -5
  82. package/esm/desktop/desktop.css +3 -3
  83. package/esm/desktop/index.js +4 -1
  84. package/esm/desktop/transitions.desktop.css +7 -7
  85. package/esm/index.js +4 -2
  86. package/esm/layout.module-31951bef.js +4 -0
  87. package/esm/mobile/Component.mobile.d.ts +2 -0
  88. package/esm/mobile/Component.mobile.js +10 -6
  89. package/esm/mobile/index.js +4 -1
  90. package/esm/mobile/mobile.css +4 -4
  91. package/esm/mobile/transitions.mobile.css +8 -8
  92. package/esm/typings.d.ts +1 -0
  93. package/index.js +4 -2
  94. package/layout.module-2f71de49.js +6 -0
  95. package/mobile/Component.mobile.d.ts +2 -0
  96. package/mobile/Component.mobile.js +9 -5
  97. package/mobile/index.js +4 -1
  98. package/mobile/mobile.css +4 -4
  99. package/mobile/transitions.mobile.css +8 -8
  100. package/modern/Component.responsive.d.ts +1 -0
  101. package/modern/Component.responsive.js +6 -3
  102. package/modern/components/content/Component.desktop.js +3 -1
  103. package/modern/components/content/Component.js +5 -2
  104. package/modern/components/content/Component.mobile.js +3 -1
  105. package/modern/components/content/desktop.css +3 -3
  106. package/modern/components/content/index.css +4 -4
  107. package/modern/components/content/mobile.css +3 -3
  108. package/modern/components/controls/Component.d.ts +29 -0
  109. package/modern/components/controls/Component.js +22 -0
  110. package/modern/components/controls/index.css +4 -0
  111. package/modern/components/controls/index.d.ts +1 -0
  112. package/modern/components/controls/index.js +6 -0
  113. package/modern/components/footer/Component.desktop.js +4 -1
  114. package/modern/components/footer/Component.js +6 -5
  115. package/modern/components/footer/Component.mobile.js +5 -2
  116. package/modern/components/footer/desktop.css +3 -3
  117. package/modern/components/footer/index.css +9 -9
  118. package/modern/components/footer/layout.css +17 -27
  119. package/modern/components/footer/mobile.css +4 -13
  120. package/modern/components/header/Component.js +6 -5
  121. package/modern/components/header/desktop.css +5 -5
  122. package/modern/components/header/index.css +19 -19
  123. package/modern/components/header/mobile.css +4 -4
  124. package/modern/desktop/Component.desktop.d.ts +4 -1
  125. package/modern/desktop/Component.desktop.js +10 -6
  126. package/modern/desktop/desktop.css +3 -3
  127. package/modern/desktop/index.js +4 -1
  128. package/modern/desktop/transitions.desktop.css +7 -7
  129. package/modern/index.js +4 -2
  130. package/modern/layout.module-a8ffdbd1.js +4 -0
  131. package/modern/mobile/Component.mobile.d.ts +2 -0
  132. package/modern/mobile/Component.mobile.js +10 -6
  133. package/modern/mobile/index.js +4 -1
  134. package/modern/mobile/mobile.css +4 -4
  135. package/modern/mobile/transitions.mobile.css +8 -8
  136. package/modern/typings.d.ts +1 -0
  137. package/package.json +5 -5
  138. package/src/Component.responsive.tsx +18 -3
  139. package/src/components/content/Component.tsx +5 -1
  140. package/src/components/controls/Component.tsx +76 -0
  141. package/src/components/controls/index.module.css +3 -0
  142. package/src/components/controls/index.ts +1 -0
  143. package/src/components/footer/Component.mobile.tsx +1 -1
  144. package/src/components/footer/Component.tsx +5 -1
  145. package/src/components/footer/layout.module.css +8 -18
  146. package/src/components/footer/mobile.module.css +0 -16
  147. package/src/components/header/Component.tsx +3 -1
  148. package/src/desktop/Component.desktop.tsx +8 -4
  149. package/src/mobile/Component.mobile.tsx +10 -4
  150. package/src/typings.ts +1 -0
  151. package/src/vars.css +6 -6
  152. package/typings.d.ts +1 -0
@@ -1,4 +1,4 @@
1
- /* hash: 1x5e1 */
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,45 +31,35 @@
31
31
  /* mobile */
32
32
 
33
33
  /* paddings */
34
- } .side-panel__column_d8m7q {
34
+ } .side-panel__column_16gdu {
35
35
  display: flex;
36
36
  flex-direction: column
37
- } .side-panel__column_d8m7q > * {
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_d8m7q > *:last-child,
40
- .side-panel__column_d8m7q > *:only-child {
41
- margin-bottom: 0;
42
- } .side-panel__column_d8m7q.side-panel__gap-16_d8m7q > * {
39
+ } .side-panel__column_16gdu.side-panel__gap-16_16gdu > *:not(:last-child):not(:only-child) {
43
40
  margin-bottom: var(--gap-m);
44
- } .side-panel__column_d8m7q.side-panel__gap-24_d8m7q > * {
41
+ } .side-panel__column_16gdu.side-panel__gap-24_16gdu > *:not(:last-child):not(:only-child) {
45
42
  margin-bottom: var(--gap-xl);
46
- } .side-panel__column_d8m7q.side-panel__gap-32_d8m7q > * {
43
+ } .side-panel__column_16gdu.side-panel__gap-32_16gdu > *:not(:last-child):not(:only-child) {
47
44
  margin-bottom: var(--gap-2xl);
48
- } .side-panel__start_d8m7q {
45
+ } .side-panel__start_16gdu {
49
46
  justify-content: flex-start;
50
- } .side-panel__center_d8m7q {
47
+ } .side-panel__center_16gdu {
51
48
  justify-content: center;
52
- } .side-panel__space-between_d8m7q {
49
+ } .side-panel__space-between_16gdu {
53
50
  justify-content: space-between
54
- } .side-panel__space-between_d8m7q > * {
51
+ } .side-panel__space-between_16gdu > * {
55
52
  flex: 1;
56
- } .side-panel__start_d8m7q,
57
- .side-panel__center_d8m7q,
58
- .side-panel__space-between_d8m7q {
53
+ } .side-panel__start_16gdu,
54
+ .side-panel__center_16gdu,
55
+ .side-panel__space-between_16gdu {
59
56
  display: flex
60
- } .side-panel__start_d8m7q > *, .side-panel__center_d8m7q > *, .side-panel__space-between_d8m7q > * {
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) {
61
58
  margin-right: var(--side-panel-footer-default-gap);
62
- } .side-panel__start_d8m7q > *:last-child,
63
- .side-panel__start_d8m7q > *:only-child,
64
- .side-panel__center_d8m7q > *:last-child,
65
- .side-panel__center_d8m7q > *:only-child,
66
- .side-panel__space-between_d8m7q > *:last-child,
67
- .side-panel__space-between_d8m7q > *:only-child {
68
- margin-right: 0;
69
- } .side-panel__start_d8m7q.side-panel__gap-16_d8m7q > *, .side-panel__center_d8m7q.side-panel__gap-16_d8m7q > *, .side-panel__space-between_d8m7q.side-panel__gap-16_d8m7q > * {
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) {
70
60
  margin-right: var(--gap-m);
71
- } .side-panel__start_d8m7q.side-panel__gap-24_d8m7q > *, .side-panel__center_d8m7q.side-panel__gap-24_d8m7q > *, .side-panel__space-between_d8m7q.side-panel__gap-24_d8m7q > * {
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) {
72
62
  margin-right: var(--gap-xl);
73
- } .side-panel__start_d8m7q.side-panel__gap-32_d8m7q > *, .side-panel__center_d8m7q.side-panel__gap-32_d8m7q > *, .side-panel__space-between_d8m7q.side-panel__gap-32_d8m7q > * {
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) {
74
64
  margin-right: var(--gap-2xl);
75
65
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1000v */
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 */
@@ -16,7 +16,6 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- --side-panel-footer-default-gap: var(--gap-m);
20
19
 
21
20
  /* sizes */
22
21
 
@@ -29,16 +28,8 @@
29
28
  /* mobile */
30
29
 
31
30
  /* paddings */
32
- } .side-panel__footer_13o6w {
31
+ } .side-panel__footer_1e4vh {
33
32
  padding: var(--gap-m);
34
- } .side-panel__sticky_13o6w {
33
+ } .side-panel__sticky_1e4vh {
35
34
  bottom: 0;
36
- } .side-panel__column_13o6w {
37
- flex-direction: column-reverse
38
- } .side-panel__column_13o6w > * {
39
- margin-bottom: 0;
40
- } .side-panel__column_13o6w > *:last-child {
41
- margin-bottom: var(--side-panel-footer-default-gap);
42
- } .side-panel__column_13o6w > *:only-child {
43
- margin-bottom: 0;
44
- }
35
+ }
@@ -1,27 +1,28 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { NavigationBar } from '@alfalab/core-components-navigation-bar/modern';
4
+ import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
5
  import { ModalContext } from '../../Context.js';
5
6
  import { ResponsiveContext } from '../../ResponsiveContext.js';
6
7
  import '@alfalab/core-components-base-modal/modern';
7
8
 
8
- const desktopStyles = {"content":"side-panel__content_1us5q","s":"side-panel__s_1us5q","sticky":"side-panel__sticky_1us5q"};
9
+ const desktopStyles = {"content":"side-panel__content_go813","s":"side-panel__s_go813","sticky":"side-panel__sticky_go813"};
9
10
  require('./desktop.css')
10
11
 
11
- const styles = {"header":"side-panel__header_xfsox","hasContent":"side-panel__hasContent_xfsox","highlighted":"side-panel__highlighted_xfsox","sticky":"side-panel__sticky_xfsox","backgroundImage":"side-panel__backgroundImage_xfsox","content":"side-panel__content_xfsox","title":"side-panel__title_xfsox","addon":"side-panel__addon_xfsox","closer":"side-panel__closer_xfsox","right":"side-panel__right_xfsox","trim":"side-panel__trim_xfsox"};
12
+ const 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"};
12
13
  require('./index.css')
13
14
 
14
- const mobileStyles = {"header":"side-panel__header_oauhb","sticky":"side-panel__sticky_oauhb","content":"side-panel__content_oauhb"};
15
+ const mobileStyles = {"header":"side-panel__header_bla0h","sticky":"side-panel__sticky_bla0h","content":"side-panel__content_bla0h"};
15
16
  require('./mobile.css')
16
17
 
17
18
  const Header = ({ className, children, contentClassName, title, sticky, hasCloser = true, ...restProps }) => {
18
19
  const { setHasHeader, headerHighlighted, onClose, componentRef } = useContext(ModalContext);
19
- const { size = 's', view = 'desktop' } = useContext(ResponsiveContext) || {};
20
+ const { size = 's', view = 'desktop', dataTestId } = useContext(ResponsiveContext) || {};
20
21
  useEffect(() => {
21
22
  setHasHeader(true);
22
23
  }, [setHasHeader]);
23
24
  const hasContent = Boolean(title || children);
24
- return (React.createElement(NavigationBar, { ...restProps, scrollableParentRef: componentRef, view: view, sticky: sticky, title: title, hasCloser: hasCloser, onClose: onClose, className: cn(styles.header, className, {
25
+ return (React.createElement(NavigationBar, { ...restProps, dataTestId: getDataTestId(dataTestId, 'header'), scrollableParentRef: componentRef, view: view, sticky: sticky, title: title, hasCloser: hasCloser, onClose: onClose, className: cn(styles.header, className, {
25
26
  [styles.highlighted]: hasContent && sticky && headerHighlighted,
26
27
  [styles.sticky]: sticky,
27
28
  [styles.hasContent]: hasContent,
@@ -1,4 +1,4 @@
1
- /* hash: 2vaoi */
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_1us5q {
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_1us5q .side-panel__content_1us5q {
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_1us5q {
47
+ } .side-panel__s_go813 {
48
48
  padding: var(--side-panel-s-header-paddings);
49
- } .side-panel__sticky_1us5q {
49
+ } .side-panel__sticky_go813 {
50
50
  top: 0;
51
51
  }
@@ -1,8 +1,8 @@
1
- /* hash: 1sfbg */
1
+ /* hash: 1tlp8 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-bg-primary: #fff;
5
- --color-light-border-secondary: #e7e8ec; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
+ --color-light-modal-bg-primary: #fff;
5
+ --color-light-neutral-300: #e7e8eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
6
  } :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 */
7
7
  } :root {
8
8
  } :root {
@@ -17,57 +17,57 @@
17
17
  } :root {
18
18
  } :root {
19
19
  } :root {
20
- --side-panel-header-background: var(--color-light-bg-primary);
20
+ --side-panel-header-background: var(--color-light-modal-bg-primary);
21
21
 
22
22
  /* sizes */
23
23
 
24
24
  /* paddings */
25
25
 
26
26
  /* scroll */
27
- --side-panel-header-highlight-background: var(--color-light-bg-primary);
28
- --side-panel-header-highlight-box-shadow: 0 1px 0 0 var(--color-light-border-secondary);
27
+ --side-panel-header-highlight-background: var(--color-light-modal-bg-primary);
28
+ --side-panel-header-highlight-box-shadow: 0 1px 0 0 var(--color-light-neutral-300);
29
29
 
30
30
  /* desktop */
31
31
 
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .side-panel__header_xfsox {
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_xfsox:not(.side-panel__hasContent_xfsox) {
39
+ } .side-panel__header_fxc9s:not(.side-panel__hasContent_fxc9s) {
40
40
  pointer-events: none;
41
- } .side-panel__highlighted_xfsox {
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_xfsox {
44
+ } .side-panel__sticky_fxc9s {
45
45
  position: sticky;
46
46
  z-index: 1
47
- } .side-panel__sticky_xfsox.side-panel__hasContent_xfsox {
47
+ } .side-panel__sticky_fxc9s.side-panel__hasContent_fxc9s {
48
48
  background: var(--side-panel-header-background);
49
- } .side-panel__header_xfsox.side-panel__backgroundImage_xfsox {
49
+ } .side-panel__header_fxc9s.side-panel__backgroundImage_fxc9s {
50
50
  background: center no-repeat;
51
51
  background-size: cover;
52
- } .side-panel__content_xfsox {
52
+ } .side-panel__content_fxc9s {
53
53
  flex-grow: 1;
54
- } .side-panel__title_xfsox {
54
+ } .side-panel__title_fxc9s {
55
55
  word-break: break-word;
56
- } .side-panel__addon_xfsox {
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_xfsox {
63
+ } .side-panel__closer_fxc9s {
64
64
  margin-left: auto;
65
- } .side-panel__right_xfsox {
65
+ } .side-panel__right_fxc9s {
66
66
  justify-content: flex-end;
67
67
  text-align: right;
68
- } .side-panel__trim_xfsox {
68
+ } .side-panel__trim_fxc9s {
69
69
  overflow: hidden
70
- } .side-panel__trim_xfsox .side-panel__title_xfsox {
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: 18ojx */
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_oauhb {
41
+ } .side-panel__header_bla0h {
42
42
  padding: var(--side-panel-header-mobile-paddings);
43
- } .side-panel__sticky_oauhb {
43
+ } .side-panel__sticky_bla0h {
44
44
  top: 0;
45
- } .side-panel__content_oauhb {
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);
@@ -2,6 +2,8 @@
2
2
  import React from 'react';
3
3
  import { BaseModalProps } from "@alfalab/core-components-base-modal";
4
4
  import { DrawerProps } from "@alfalab/core-components-drawer";
5
+ import { ControlsProps } from "../components/controls/index";
6
+ import { HeaderProps } from "../components/header/Component";
5
7
  type SidePanelDesktopProps = BaseModalProps & Pick<DrawerProps, 'placement' | 'nativeScrollbar' | 'contentTransitionProps'> & {
6
8
  /**
7
9
  * Ширина модального окна
@@ -27,7 +29,8 @@ declare const SidePanelDesktop: React.ForwardRefExoticComponent<BaseModalProps &
27
29
  hasCloser?: boolean | undefined;
28
30
  } & React.RefAttributes<HTMLDivElement>> & {
29
31
  Content: React.FC<import("../components/content/Component.desktop").ContentDesktopProps>;
30
- Header: React.FC<import("../components/header/Component").HeaderProps>;
32
+ Header: React.FC<Omit<HeaderProps, "titleSize" | "subtitle">>;
31
33
  Footer: React.FC<import("../components/footer/Component.desktop").FooterDesktopProps>;
34
+ Controls: React.FC<Omit<ControlsProps, "mobileLayout">>;
32
35
  };
33
36
  export { SidePanelDesktopProps, SidePanelDesktop };
@@ -3,22 +3,25 @@ import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
  import { Drawer } from '@alfalab/core-components-drawer/modern';
5
5
  import { ContentDesktop } from '../components/content/Component.desktop.js';
6
+ import { Controls } from '../components/controls/Component.js';
6
7
  import { FooterDesktop } from '../components/footer/Component.desktop.js';
7
8
  import { Header } from '../components/header/Component.js';
8
9
  import { ResponsiveContext } from '../ResponsiveContext.js';
9
10
  import '../components/content/Component.js';
11
+ import '@alfalab/core-components-shared/modern';
10
12
  import '../Context.js';
11
13
  import '@alfalab/core-components-base-modal/modern';
14
+ import '../layout.module-a8ffdbd1.js';
12
15
  import '../components/footer/Component.js';
13
16
  import '@alfalab/core-components-navigation-bar/modern';
14
17
 
15
- const styles = {"s":"side-panel__s_8mm6i","hidden":"side-panel__hidden_8mm6i"};
18
+ const styles = {"s":"side-panel__s_1nqpu","hidden":"side-panel__hidden_1nqpu"};
16
19
  require('./desktop.css')
17
20
 
18
- const transitions = {"enterRight":"side-panel__enterRight_z3wyj","enterLeft":"side-panel__enterLeft_z3wyj","enterActive":"side-panel__enterActive_z3wyj","exit":"side-panel__exit_z3wyj","exitActiveRight":"side-panel__exitActiveRight_z3wyj","exitActiveLeft":"side-panel__exitActiveLeft_z3wyj"};
21
+ const 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"};
19
22
  require('./transitions.desktop.css')
20
23
 
21
- const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', ...restProps }, ref) => {
24
+ const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', dataTestId, ...restProps }, ref) => {
22
25
  const responsiveContext = useContext(ResponsiveContext);
23
26
  const modalRef = useRef(null);
24
27
  const enterCn = cn({
@@ -29,8 +32,8 @@ const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className,
29
32
  [transitions.exitActiveRight]: placement === 'right',
30
33
  [transitions.exitActiveLeft]: placement === 'left',
31
34
  });
32
- const contextValue = React.useMemo(() => ({ size, view: 'desktop' }), [size]);
33
- const renderContent = () => (React.createElement(Drawer, { ...restProps, ref: mergeRefs([ref, modalRef]), placement: placement, wrapperClassName: wrapperClassName, className: cn(className, styles[size], styles.hidden), backdropProps: backdropProps, contentTransitionProps: {
35
+ const contextValue = React.useMemo(() => ({ size, view: 'desktop', dataTestId }), [size, dataTestId]);
36
+ const renderContent = () => (React.createElement(Drawer, { ...restProps, dataTestId: dataTestId, ref: mergeRefs([ref, modalRef]), placement: placement, wrapperClassName: wrapperClassName, className: cn(className, styles[size], styles.hidden), backdropProps: backdropProps, contentTransitionProps: {
34
37
  classNames: {
35
38
  appear: enterCn,
36
39
  enter: enterCn,
@@ -47,8 +50,9 @@ const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className,
47
50
  });
48
51
  const SidePanelDesktop = Object.assign(SidePanelDesktopComponent, {
49
52
  Content: ContentDesktop,
50
- Header,
53
+ Header: Header,
51
54
  Footer: FooterDesktop,
55
+ Controls: Controls,
52
56
  });
53
57
 
54
58
  export { SidePanelDesktop };
@@ -1,4 +1,4 @@
1
- /* hash: 1h4pj */
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_8mm6i.side-panel__s_8mm6i {
31
+ } .side-panel__s_1nqpu.side-panel__s_1nqpu {
32
32
  width: var(--side-panel-s-width);
33
- } .side-panel__hidden_8mm6i {
33
+ } .side-panel__hidden_1nqpu {
34
34
  overflow-x: hidden;
35
35
  }
@@ -5,10 +5,13 @@ import 'classnames';
5
5
  import '@alfalab/core-components-drawer/modern';
6
6
  import '../components/content/Component.desktop.js';
7
7
  import '../components/content/Component.js';
8
+ import '@alfalab/core-components-shared/modern';
8
9
  import '../Context.js';
9
10
  import '@alfalab/core-components-base-modal/modern';
11
+ import '../ResponsiveContext.js';
12
+ import '../components/controls/Component.js';
13
+ import '../layout.module-a8ffdbd1.js';
10
14
  import '../components/footer/Component.desktop.js';
11
15
  import '../components/footer/Component.js';
12
16
  import '../components/header/Component.js';
13
17
  import '@alfalab/core-components-navigation-bar/modern';
14
- import '../ResponsiveContext.js';
@@ -1,32 +1,32 @@
1
- /* hash: tpnr3 */
2
- .side-panel__enterRight_z3wyj {
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_z3wyj {
7
+ .side-panel__enterLeft_74yrs {
8
8
  opacity: 0;
9
9
  transform: translateX(-15px);
10
10
  }
11
11
 
12
- .side-panel__enterActive_z3wyj {
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_z3wyj {
18
+ .side-panel__exit_74yrs {
19
19
  opacity: 1;
20
20
  transform: translateX(0);
21
21
  }
22
22
 
23
- .side-panel__exitActiveRight_z3wyj {
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_z3wyj {
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/modern/index.js CHANGED
@@ -2,12 +2,14 @@ export { SidePanelResponsive as SidePanel } from './Component.responsive.js';
2
2
  import 'react';
3
3
  import '@alfalab/core-components-mq/modern';
4
4
  import '@alfalab/core-components-shared/modern';
5
- import './components/header/Component.js';
5
+ import './components/controls/Component.js';
6
6
  import 'classnames';
7
+ import './ResponsiveContext.js';
8
+ import './layout.module-a8ffdbd1.js';
9
+ import './components/header/Component.js';
7
10
  import '@alfalab/core-components-navigation-bar/modern';
8
11
  import './Context.js';
9
12
  import '@alfalab/core-components-base-modal/modern';
10
- import './ResponsiveContext.js';
11
13
  import './desktop/Component.desktop.js';
12
14
  import 'react-merge-refs';
13
15
  import '@alfalab/core-components-drawer/modern';
@@ -0,0 +1,4 @@
1
+ const 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,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { BaseModalProps } from "@alfalab/core-components-base-modal";
4
+ import { ControlsProps } from "../components/controls/index";
4
5
  type SidePanelMobileProps = BaseModalProps & {
5
6
  /**
6
7
  * Управление наличием закрывающего крестика
@@ -18,5 +19,6 @@ declare const SidePanelMobile: React.ForwardRefExoticComponent<BaseModalProps &
18
19
  Content: React.FC<import("../components/content/Component").ContentProps>;
19
20
  Header: React.FC<import("../components/header/Component").HeaderProps>;
20
21
  Footer: React.FC<import("../components/footer/Component").FooterProps>;
22
+ Controls: React.FC<Omit<ControlsProps, "mobileLayout">>;
21
23
  };
22
24
  export { SidePanelMobileProps, SidePanelMobile };
@@ -1,25 +1,28 @@
1
- import React, { forwardRef, useContext } from 'react';
1
+ import React, { forwardRef, useContext, useMemo } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { BaseModal } from '@alfalab/core-components-base-modal/modern';
4
4
  import { ContentMobile } from '../components/content/Component.mobile.js';
5
+ import { Controls } from '../components/controls/Component.js';
5
6
  import { FooterMobile } from '../components/footer/Component.mobile.js';
6
7
  import { Header } from '../components/header/Component.js';
7
8
  import { ResponsiveContext } from '../ResponsiveContext.js';
8
9
  import '../components/content/Component.js';
10
+ import '@alfalab/core-components-shared/modern';
9
11
  import '../Context.js';
12
+ import '../layout.module-a8ffdbd1.js';
10
13
  import '../components/footer/Component.js';
11
14
  import '@alfalab/core-components-navigation-bar/modern';
12
15
 
13
- const styles = {"component":"side-panel__component_19cvm","mobileContent":"side-panel__mobileContent_19cvm"};
16
+ const styles = {"component":"side-panel__component_1050h","mobileContent":"side-panel__mobileContent_1050h"};
14
17
  require('./mobile.css')
15
18
 
16
- const transitions = {"appear":"side-panel__appear_48wvn","enter":"side-panel__enter_48wvn","appearActive":"side-panel__appearActive_48wvn","enterActive":"side-panel__enterActive_48wvn","exit":"side-panel__exit_48wvn","exitActive":"side-panel__exitActive_48wvn","exitDone":"side-panel__exitDone_48wvn"};
19
+ const 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"};
17
20
  require('./transitions.mobile.css')
18
21
 
19
- const contextValue = { size: 's', view: 'mobile' };
20
- const SidePanelMobileComponent = forwardRef(({ children, className, transitionProps, ...restProps }, ref) => {
22
+ const SidePanelMobileComponent = forwardRef(({ children, className, transitionProps, dataTestId, ...restProps }, ref) => {
21
23
  const responsiveContext = useContext(ResponsiveContext);
22
- const renderContent = () => (React.createElement(BaseModal, { ...restProps, ref: ref, transitionProps: {
24
+ const contextValue = useMemo(() => ({ size: 's', view: 'mobile', dataTestId }), [dataTestId]);
25
+ const renderContent = () => (React.createElement(BaseModal, { ...restProps, dataTestId: dataTestId, ref: ref, transitionProps: {
23
26
  classNames: transitions,
24
27
  ...transitionProps,
25
28
  }, className: cn(className, styles.component), scrollHandler: 'content' },
@@ -31,6 +34,7 @@ const SidePanelMobile = Object.assign(SidePanelMobileComponent, {
31
34
  Content: ContentMobile,
32
35
  Header,
33
36
  Footer: FooterMobile,
37
+ Controls: Controls,
34
38
  });
35
39
 
36
40
  export { SidePanelMobile };
@@ -4,9 +4,12 @@ import 'classnames';
4
4
  import '@alfalab/core-components-base-modal/modern';
5
5
  import '../components/content/Component.mobile.js';
6
6
  import '../components/content/Component.js';
7
+ import '@alfalab/core-components-shared/modern';
7
8
  import '../Context.js';
9
+ import '../ResponsiveContext.js';
10
+ import '../components/controls/Component.js';
11
+ import '../layout.module-a8ffdbd1.js';
8
12
  import '../components/footer/Component.mobile.js';
9
13
  import '../components/footer/Component.js';
10
14
  import '../components/header/Component.js';
11
15
  import '@alfalab/core-components-navigation-bar/modern';
12
- import '../ResponsiveContext.js';
@@ -1,4 +1,4 @@
1
- /* hash: 7ui7p */
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_19cvm {
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_19cvm.side-panel__component_19cvm {
37
+ } .side-panel__component_1050h.side-panel__component_1050h {
38
38
  position: fixed;
39
39
  flex: 1;
40
- } .side-panel__mobileContent_19cvm {
40
+ } .side-panel__mobileContent_1050h {
41
41
  display: flex;
42
42
  flex-direction: column;
43
43
  width: 100%;
@@ -1,24 +1,24 @@
1
- /* hash: mn72t */
2
- .side-panel__appear_48wvn,
3
- .side-panel__enter_48wvn {
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_48wvn,
9
- .side-panel__enterActive_48wvn {
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_48wvn {
15
+ .side-panel__exit_1lrki {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .side-panel__exitActive_48wvn,
21
- .side-panel__exitDone_48wvn {
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;
@@ -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 };