@alfalab/core-components-side-panel 3.0.0 → 3.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 (73) hide show
  1. package/Component.desktop.js +2 -2
  2. package/Component.mobile.js +4 -3
  3. package/components/content/Component.desktop.js +1 -1
  4. package/components/content/Component.js +1 -1
  5. package/components/content/Component.mobile.js +1 -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/footer/Component.desktop.js +1 -1
  10. package/components/footer/Component.js +2 -2
  11. package/components/footer/Component.mobile.js +1 -1
  12. package/components/footer/desktop.css +3 -3
  13. package/components/footer/index.css +4 -4
  14. package/components/footer/layout.css +25 -25
  15. package/components/footer/mobile.css +3 -3
  16. package/components/header/Component.js +5 -5
  17. package/components/header/desktop.css +5 -5
  18. package/components/header/index.css +14 -14
  19. package/components/header/mobile.css +4 -4
  20. package/cssm/Component.mobile.js +2 -1
  21. package/cssm/components/header/Component.js +2 -2
  22. package/cssm/mobile.module.css +10 -0
  23. package/desktop.css +3 -3
  24. package/esm/Component.desktop.js +2 -2
  25. package/esm/Component.mobile.js +4 -3
  26. package/esm/components/content/Component.desktop.js +1 -1
  27. package/esm/components/content/Component.js +1 -1
  28. package/esm/components/content/Component.mobile.js +1 -1
  29. package/esm/components/content/desktop.css +3 -3
  30. package/esm/components/content/index.css +4 -4
  31. package/esm/components/content/mobile.css +3 -3
  32. package/esm/components/footer/Component.desktop.js +1 -1
  33. package/esm/components/footer/Component.js +2 -2
  34. package/esm/components/footer/Component.mobile.js +1 -1
  35. package/esm/components/footer/desktop.css +3 -3
  36. package/esm/components/footer/index.css +4 -4
  37. package/esm/components/footer/layout.css +25 -25
  38. package/esm/components/footer/mobile.css +3 -3
  39. package/esm/components/header/Component.js +5 -5
  40. package/esm/components/header/desktop.css +5 -5
  41. package/esm/components/header/index.css +14 -14
  42. package/esm/components/header/mobile.css +4 -4
  43. package/esm/desktop.css +3 -3
  44. package/esm/mobile.css +12 -2
  45. package/esm/transitions.desktop.css +7 -7
  46. package/esm/transitions.mobile.css +8 -8
  47. package/mobile.css +12 -2
  48. package/modern/Component.desktop.js +2 -2
  49. package/modern/Component.mobile.js +4 -3
  50. package/modern/components/content/Component.desktop.js +1 -1
  51. package/modern/components/content/Component.js +1 -1
  52. package/modern/components/content/Component.mobile.js +1 -1
  53. package/modern/components/content/desktop.css +3 -3
  54. package/modern/components/content/index.css +4 -4
  55. package/modern/components/content/mobile.css +3 -3
  56. package/modern/components/footer/Component.desktop.js +1 -1
  57. package/modern/components/footer/Component.js +2 -2
  58. package/modern/components/footer/Component.mobile.js +1 -1
  59. package/modern/components/footer/desktop.css +3 -3
  60. package/modern/components/footer/index.css +4 -4
  61. package/modern/components/footer/layout.css +25 -25
  62. package/modern/components/footer/mobile.css +3 -3
  63. package/modern/components/header/Component.js +5 -5
  64. package/modern/components/header/desktop.css +5 -5
  65. package/modern/components/header/index.css +14 -14
  66. package/modern/components/header/mobile.css +4 -4
  67. package/modern/desktop.css +3 -3
  68. package/modern/mobile.css +12 -2
  69. package/modern/transitions.desktop.css +7 -7
  70. package/modern/transitions.mobile.css +8 -8
  71. package/package.json +6 -6
  72. package/transitions.desktop.css +7 -7
  73. package/transitions.mobile.css +8 -8
@@ -1,4 +1,4 @@
1
- /* hash: 18rze */
1
+ /* hash: ljs66 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .side-panel__content_a999d {
31
+ } .side-panel__content_142vo {
32
32
  padding: var(--gap-m) var(--gap-m) 0
33
- } .side-panel__content_a999d:last-child {
33
+ } .side-panel__content_142vo:last-child {
34
34
  padding-bottom: var(--gap-m);
35
35
  }
@@ -5,7 +5,7 @@ import { Footer } from './Component.js';
5
5
  import '../../Context.js';
6
6
  import '@alfalab/core-components-base-modal/esm';
7
7
 
8
- var styles = {"sticky":"side-panel__sticky_18gzw","s":"side-panel__s_18gzw"};
8
+ var styles = {"sticky":"side-panel__sticky_z9x63","s":"side-panel__s_z9x63"};
9
9
  require('./desktop.css')
10
10
 
11
11
  var FooterDesktop = function (_a) {
@@ -3,10 +3,10 @@ import cn from 'classnames';
3
3
  import { ModalContext } from '../../Context.js';
4
4
  import '@alfalab/core-components-base-modal/esm';
5
5
 
6
- var styles = {"footer":"side-panel__footer_1i09f","sticky":"side-panel__sticky_1i09f","highlighted":"side-panel__highlighted_1i09f"};
6
+ var styles = {"footer":"side-panel__footer_i2io7","sticky":"side-panel__sticky_i2io7","highlighted":"side-panel__highlighted_i2io7"};
7
7
  require('./index.css')
8
8
 
9
- var layoutStyles = {"column":"side-panel__column_rdke2","gap-16":"side-panel__gap-16_rdke2","gap-24":"side-panel__gap-24_rdke2","gap-32":"side-panel__gap-32_rdke2","start":"side-panel__start_rdke2","center":"side-panel__center_rdke2","space-between":"side-panel__space-between_rdke2"};
9
+ var layoutStyles = {"column":"side-panel__column_i6hnr","gap-16":"side-panel__gap-16_i6hnr","gap-24":"side-panel__gap-24_i6hnr","gap-32":"side-panel__gap-32_i6hnr","start":"side-panel__start_i6hnr","center":"side-panel__center_i6hnr","space-between":"side-panel__space-between_i6hnr"};
10
10
  require('./layout.css')
11
11
 
12
12
  var Footer = function (_a) {
@@ -5,7 +5,7 @@ import { Footer } from './Component.js';
5
5
  import '../../Context.js';
6
6
  import '@alfalab/core-components-base-modal/esm';
7
7
 
8
- var styles = {"footer":"side-panel__footer_ve09o","sticky":"side-panel__sticky_ve09o"};
8
+ var styles = {"footer":"side-panel__footer_1bmdf","sticky":"side-panel__sticky_1bmdf"};
9
9
  require('./mobile.css')
10
10
 
11
11
  var FooterMobile = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1a1sa */
1
+ /* hash: u64nt */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -30,8 +30,8 @@
30
30
  /* mobile */
31
31
 
32
32
  /* paddings */
33
- } .side-panel__sticky_18gzw {
33
+ } .side-panel__sticky_z9x63 {
34
34
  bottom: 0;
35
- } .side-panel__s_18gzw {
35
+ } .side-panel__s_z9x63 {
36
36
  padding: var(--side-panel-s-footer-paddings);
37
37
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1ewvn */
1
+ /* hash: 8f8vm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -32,15 +32,15 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .side-panel__footer_1i09f {
35
+ } .side-panel__footer_i2io7 {
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_1i09f {
39
+ } .side-panel__sticky_i2io7 {
40
40
  background: var(--side-panel-footer-background);
41
41
  position: sticky;
42
42
  z-index: 1;
43
- } .side-panel__highlighted_1i09f {
43
+ } .side-panel__highlighted_i2io7 {
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: aq0nw */
1
+ /* hash: 1tvh3 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -31,45 +31,45 @@
31
31
  /* mobile */
32
32
 
33
33
  /* paddings */
34
- } .side-panel__column_rdke2 {
34
+ } .side-panel__column_i6hnr {
35
35
  display: flex;
36
36
  flex-direction: column
37
- } .side-panel__column_rdke2 > * {
37
+ } .side-panel__column_i6hnr > * {
38
38
  margin-bottom: var(--side-panel-footer-default-gap);
39
- } .side-panel__column_rdke2 > *:last-child,
40
- .side-panel__column_rdke2 > *:only-child {
39
+ } .side-panel__column_i6hnr > *:last-child,
40
+ .side-panel__column_i6hnr > *:only-child {
41
41
  margin-bottom: 0;
42
- } .side-panel__column_rdke2.side-panel__gap-16_rdke2 > * {
42
+ } .side-panel__column_i6hnr.side-panel__gap-16_i6hnr > * {
43
43
  margin-bottom: var(--gap-m);
44
- } .side-panel__column_rdke2.side-panel__gap-24_rdke2 > * {
44
+ } .side-panel__column_i6hnr.side-panel__gap-24_i6hnr > * {
45
45
  margin-bottom: var(--gap-xl);
46
- } .side-panel__column_rdke2.side-panel__gap-32_rdke2 > * {
46
+ } .side-panel__column_i6hnr.side-panel__gap-32_i6hnr > * {
47
47
  margin-bottom: var(--gap-2xl);
48
- } .side-panel__start_rdke2 {
48
+ } .side-panel__start_i6hnr {
49
49
  justify-content: flex-start;
50
- } .side-panel__center_rdke2 {
50
+ } .side-panel__center_i6hnr {
51
51
  justify-content: center;
52
- } .side-panel__space-between_rdke2 {
52
+ } .side-panel__space-between_i6hnr {
53
53
  justify-content: space-between
54
- } .side-panel__space-between_rdke2 > * {
54
+ } .side-panel__space-between_i6hnr > * {
55
55
  flex: 1;
56
- } .side-panel__start_rdke2,
57
- .side-panel__center_rdke2,
58
- .side-panel__space-between_rdke2 {
56
+ } .side-panel__start_i6hnr,
57
+ .side-panel__center_i6hnr,
58
+ .side-panel__space-between_i6hnr {
59
59
  display: flex
60
- } .side-panel__start_rdke2 > *, .side-panel__center_rdke2 > *, .side-panel__space-between_rdke2 > * {
60
+ } .side-panel__start_i6hnr > *, .side-panel__center_i6hnr > *, .side-panel__space-between_i6hnr > * {
61
61
  margin-right: var(--side-panel-footer-default-gap);
62
- } .side-panel__start_rdke2 > *:last-child,
63
- .side-panel__start_rdke2 > *:only-child,
64
- .side-panel__center_rdke2 > *:last-child,
65
- .side-panel__center_rdke2 > *:only-child,
66
- .side-panel__space-between_rdke2 > *:last-child,
67
- .side-panel__space-between_rdke2 > *:only-child {
62
+ } .side-panel__start_i6hnr > *:last-child,
63
+ .side-panel__start_i6hnr > *:only-child,
64
+ .side-panel__center_i6hnr > *:last-child,
65
+ .side-panel__center_i6hnr > *:only-child,
66
+ .side-panel__space-between_i6hnr > *:last-child,
67
+ .side-panel__space-between_i6hnr > *:only-child {
68
68
  margin-right: 0;
69
- } .side-panel__start_rdke2.side-panel__gap-16_rdke2 > *, .side-panel__center_rdke2.side-panel__gap-16_rdke2 > *, .side-panel__space-between_rdke2.side-panel__gap-16_rdke2 > * {
69
+ } .side-panel__start_i6hnr.side-panel__gap-16_i6hnr > *, .side-panel__center_i6hnr.side-panel__gap-16_i6hnr > *, .side-panel__space-between_i6hnr.side-panel__gap-16_i6hnr > * {
70
70
  margin-right: var(--gap-m);
71
- } .side-panel__start_rdke2.side-panel__gap-24_rdke2 > *, .side-panel__center_rdke2.side-panel__gap-24_rdke2 > *, .side-panel__space-between_rdke2.side-panel__gap-24_rdke2 > * {
71
+ } .side-panel__start_i6hnr.side-panel__gap-24_i6hnr > *, .side-panel__center_i6hnr.side-panel__gap-24_i6hnr > *, .side-panel__space-between_i6hnr.side-panel__gap-24_i6hnr > * {
72
72
  margin-right: var(--gap-xl);
73
- } .side-panel__start_rdke2.side-panel__gap-32_rdke2 > *, .side-panel__center_rdke2.side-panel__gap-32_rdke2 > *, .side-panel__space-between_rdke2.side-panel__gap-32_rdke2 > * {
73
+ } .side-panel__start_i6hnr.side-panel__gap-32_i6hnr > *, .side-panel__center_i6hnr.side-panel__gap-32_i6hnr > *, .side-panel__space-between_i6hnr.side-panel__gap-32_i6hnr > * {
74
74
  margin-right: var(--gap-2xl);
75
75
  }
@@ -1,4 +1,4 @@
1
- /* hash: th4ut */
1
+ /* hash: soqkf */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .side-panel__footer_ve09o {
31
+ } .side-panel__footer_1bmdf {
32
32
  padding: var(--gap-m);
33
- } .side-panel__sticky_ve09o {
33
+ } .side-panel__sticky_1bmdf {
34
34
  bottom: 0;
35
35
  }
@@ -6,25 +6,25 @@ import { ModalContext } from '../../Context.js';
6
6
  import { ResponsiveContext } from '../../ResponsiveContext.js';
7
7
  import '@alfalab/core-components-base-modal/esm';
8
8
 
9
- var desktopStyles = {"content":"side-panel__content_z686w","s":"side-panel__s_z686w","sticky":"side-panel__sticky_z686w"};
9
+ var desktopStyles = {"content":"side-panel__content_pz5gl","s":"side-panel__s_pz5gl","sticky":"side-panel__sticky_pz5gl"};
10
10
  require('./desktop.css')
11
11
 
12
- var styles = {"header":"side-panel__header_be2k8","hasContent":"side-panel__hasContent_be2k8","highlighted":"side-panel__highlighted_be2k8","sticky":"side-panel__sticky_be2k8","backgroundImage":"side-panel__backgroundImage_be2k8","content":"side-panel__content_be2k8","title":"side-panel__title_be2k8","addon":"side-panel__addon_be2k8","closer":"side-panel__closer_be2k8","right":"side-panel__right_be2k8","trim":"side-panel__trim_be2k8"};
12
+ var styles = {"header":"side-panel__header_1ahfu","hasContent":"side-panel__hasContent_1ahfu","highlighted":"side-panel__highlighted_1ahfu","sticky":"side-panel__sticky_1ahfu","backgroundImage":"side-panel__backgroundImage_1ahfu","content":"side-panel__content_1ahfu","title":"side-panel__title_1ahfu","addon":"side-panel__addon_1ahfu","closer":"side-panel__closer_1ahfu","right":"side-panel__right_1ahfu","trim":"side-panel__trim_1ahfu"};
13
13
  require('./index.css')
14
14
 
15
- var mobileStyles = {"header":"side-panel__header_1c37u","sticky":"side-panel__sticky_1c37u","content":"side-panel__content_1c37u"};
15
+ var mobileStyles = {"header":"side-panel__header_1s2xj","sticky":"side-panel__sticky_1s2xj","content":"side-panel__content_1s2xj"};
16
16
  require('./mobile.css')
17
17
 
18
18
  var Header = function (_a) {
19
19
  var _b, _c;
20
20
  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
- var _e = useContext(ModalContext), setHasHeader = _e.setHasHeader, headerHighlighted = _e.headerHighlighted, parentRef = _e.parentRef, onClose = _e.onClose;
21
+ var _e = useContext(ModalContext), setHasHeader = _e.setHasHeader, headerHighlighted = _e.headerHighlighted, onClose = _e.onClose, componentRef = _e.componentRef;
22
22
  var _f = useContext(ResponsiveContext) || {}, _g = _f.size, size = _g === void 0 ? 's' : _g, _h = _f.view, view = _h === void 0 ? 'desktop' : _h;
23
23
  useEffect(function () {
24
24
  setHasHeader(true);
25
25
  }, [setHasHeader]);
26
26
  var hasContent = Boolean(title || children);
27
- return (React.createElement(NavigationBar, __assign({}, restProps, { parentRef: parentRef, view: view, sticky: sticky, title: title, hasCloser: hasCloser, onClose: onClose, className: cn(styles.header, className, (_b = {},
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
28
  _b[styles.highlighted] = hasContent && sticky && headerHighlighted,
29
29
  _b[styles.sticky] = sticky,
30
30
  _b[styles.hasContent] = hasContent,
@@ -1,4 +1,4 @@
1
- /* hash: 1jtf5 */
1
+ /* hash: u1hj4 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -36,15 +36,15 @@
36
36
  /* mobile */
37
37
 
38
38
  /* paddings */
39
- } .side-panel__content_z686w {
39
+ } .side-panel__content_pz5gl {
40
40
  font-weight: var(--side-panel-header-desktop-font-weight);
41
41
  font-family: var(--side-panel-header-desktop-font-family);
42
- } .side-panel__s_z686w .side-panel__content_z686w {
42
+ } .side-panel__s_pz5gl .side-panel__content_pz5gl {
43
43
  padding: var(--side-panel-s-header-desktop-content-paddings);
44
44
  font-size: var(--side-panel-s-header-desktop-font-size);
45
45
  line-height: var(--side-panel-s-header-desktop-line-height);
46
- } .side-panel__s_z686w {
46
+ } .side-panel__s_pz5gl {
47
47
  padding: var(--side-panel-s-header-paddings);
48
- } .side-panel__sticky_z686w {
48
+ } .side-panel__sticky_pz5gl {
49
49
  top: 0;
50
50
  }
@@ -1,4 +1,4 @@
1
- /* hash: 2algu */
1
+ /* hash: kxsry */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -32,42 +32,42 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .side-panel__header_be2k8 {
35
+ } .side-panel__header_1ahfu {
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_be2k8:not(.side-panel__hasContent_be2k8) {
39
+ } .side-panel__header_1ahfu:not(.side-panel__hasContent_1ahfu) {
40
40
  pointer-events: none;
41
- } .side-panel__highlighted_be2k8 {
41
+ } .side-panel__highlighted_1ahfu {
42
42
  background: var(--side-panel-header-highlight-background);
43
43
  box-shadow: var(--side-panel-header-highlight-box-shadow);
44
- } .side-panel__sticky_be2k8 {
44
+ } .side-panel__sticky_1ahfu {
45
45
  position: sticky;
46
46
  z-index: 1
47
- } .side-panel__sticky_be2k8.side-panel__hasContent_be2k8 {
47
+ } .side-panel__sticky_1ahfu.side-panel__hasContent_1ahfu {
48
48
  background: var(--side-panel-header-background);
49
- } .side-panel__header_be2k8.side-panel__backgroundImage_be2k8 {
49
+ } .side-panel__header_1ahfu.side-panel__backgroundImage_1ahfu {
50
50
  background: center no-repeat;
51
51
  background-size: cover;
52
- } .side-panel__content_be2k8 {
52
+ } .side-panel__content_1ahfu {
53
53
  flex-grow: 1;
54
- } .side-panel__title_be2k8 {
54
+ } .side-panel__title_1ahfu {
55
55
  word-break: break-word;
56
- } .side-panel__addon_be2k8 {
56
+ } .side-panel__addon_1ahfu {
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_be2k8 {
63
+ } .side-panel__closer_1ahfu {
64
64
  margin-left: auto;
65
- } .side-panel__right_be2k8 {
65
+ } .side-panel__right_1ahfu {
66
66
  justify-content: flex-end;
67
67
  text-align: right;
68
- } .side-panel__trim_be2k8 {
68
+ } .side-panel__trim_1ahfu {
69
69
  overflow: hidden
70
- } .side-panel__trim_be2k8 .side-panel__title_be2k8 {
70
+ } .side-panel__trim_1ahfu .side-panel__title_1ahfu {
71
71
  overflow: hidden;
72
72
  white-space: nowrap;
73
73
  text-overflow: ellipsis;
@@ -1,4 +1,4 @@
1
- /* hash: 9dj43 */
1
+ /* hash: 6x5tg */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -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_1c37u {
41
+ } .side-panel__header_1s2xj {
42
42
  padding: var(--side-panel-header-mobile-paddings);
43
- } .side-panel__sticky_1c37u {
43
+ } .side-panel__sticky_1s2xj {
44
44
  top: 0;
45
- } .side-panel__content_1c37u {
45
+ } .side-panel__content_1s2xj {
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);
package/esm/desktop.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: fb8hr */
1
+ /* hash: 16plw */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .side-panel__s_1r2o9 {
31
+ } .side-panel__s_2siji {
32
32
  width: var(--side-panel-s-width);
33
- } .side-panel__hidden_1r2o9 {
33
+ } .side-panel__hidden_2siji {
34
34
  overflow-x: hidden;
35
35
  }
package/esm/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 14o0q */
1
+ /* hash: 1vf8c */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -27,7 +27,17 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .side-panel__component_1xf0f {
30
+ } .side-panel__component_3v3ti {
31
+ position: fixed;
32
+ top: 0;
31
33
  flex: 1;
34
+ height: 100%;
32
35
  width: 100%;
36
+ overflow-x: hidden;
37
+ overflow-y: auto;
38
+ } .side-panel__mobileContent_3v3ti {
39
+ display: flex;
40
+ flex-direction: column;
41
+ width: 100%;
42
+ flex: 1;
33
43
  }
@@ -1,32 +1,32 @@
1
- /* hash: 15tfp */
2
- .side-panel__enterRight_bau9w {
1
+ /* hash: 17l3z */
2
+ .side-panel__enterRight_1gibx {
3
3
  opacity: 0;
4
4
  transform: translateX(15px);
5
5
  }
6
6
 
7
- .side-panel__enterLeft_bau9w {
7
+ .side-panel__enterLeft_1gibx {
8
8
  opacity: 0;
9
9
  transform: translateX(-15px);
10
10
  }
11
11
 
12
- .side-panel__enterActive_bau9w {
12
+ .side-panel__enterActive_1gibx {
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_bau9w {
18
+ .side-panel__exit_1gibx {
19
19
  opacity: 1;
20
20
  transform: translateX(0);
21
21
  }
22
22
 
23
- .side-panel__exitActiveRight_bau9w {
23
+ .side-panel__exitActiveRight_1gibx {
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_bau9w {
29
+ .side-panel__exitActiveLeft_1gibx {
30
30
  opacity: 0;
31
31
  transition: opacity 200ms ease-out, transform 200ms ease-out;
32
32
  transform: translateX(-15px);
@@ -1,24 +1,24 @@
1
- /* hash: 1ix53 */
2
- .side-panel__appear_1334h,
3
- .side-panel__enter_1334h {
1
+ /* hash: 109xs */
2
+ .side-panel__appear_110tv,
3
+ .side-panel__enter_110tv {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .side-panel__appearActive_1334h,
9
- .side-panel__enterActive_1334h {
8
+ .side-panel__appearActive_110tv,
9
+ .side-panel__enterActive_110tv {
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_1334h {
15
+ .side-panel__exit_110tv {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .side-panel__exitActive_1334h,
21
- .side-panel__exitDone_1334h {
20
+ .side-panel__exitActive_110tv,
21
+ .side-panel__exitDone_110tv {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
package/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 14o0q */
1
+ /* hash: 1vf8c */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -27,7 +27,17 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .side-panel__component_1xf0f {
30
+ } .side-panel__component_3v3ti {
31
+ position: fixed;
32
+ top: 0;
31
33
  flex: 1;
34
+ height: 100%;
32
35
  width: 100%;
36
+ overflow-x: hidden;
37
+ overflow-y: auto;
38
+ } .side-panel__mobileContent_3v3ti {
39
+ display: flex;
40
+ flex-direction: column;
41
+ width: 100%;
42
+ flex: 1;
33
43
  }
@@ -12,10 +12,10 @@ import '@alfalab/core-components-base-modal/modern';
12
12
  import './components/footer/Component.js';
13
13
  import '@alfalab/core-components-navigation-bar/modern';
14
14
 
15
- const styles = {"s":"side-panel__s_1r2o9","hidden":"side-panel__hidden_1r2o9"};
15
+ const styles = {"s":"side-panel__s_2siji","hidden":"side-panel__hidden_2siji"};
16
16
  require('./desktop.css')
17
17
 
18
- const transitions = {"enterRight":"side-panel__enterRight_bau9w","enterLeft":"side-panel__enterLeft_bau9w","enterActive":"side-panel__enterActive_bau9w","exit":"side-panel__exit_bau9w","exitActiveRight":"side-panel__exitActiveRight_bau9w","exitActiveLeft":"side-panel__exitActiveLeft_bau9w"};
18
+ const transitions = {"enterRight":"side-panel__enterRight_1gibx","enterLeft":"side-panel__enterLeft_1gibx","enterActive":"side-panel__enterActive_1gibx","exit":"side-panel__exit_1gibx","exitActiveRight":"side-panel__exitActiveRight_1gibx","exitActiveLeft":"side-panel__exitActiveLeft_1gibx"};
19
19
  require('./transitions.desktop.css')
20
20
 
21
21
  const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', ...restProps }, ref) => {
@@ -10,10 +10,10 @@ import './Context.js';
10
10
  import './components/footer/Component.js';
11
11
  import '@alfalab/core-components-navigation-bar/modern';
12
12
 
13
- const styles = {"component":"side-panel__component_1xf0f"};
13
+ const styles = {"component":"side-panel__component_3v3ti","mobileContent":"side-panel__mobileContent_3v3ti"};
14
14
  require('./mobile.css')
15
15
 
16
- const transitions = {"appear":"side-panel__appear_1334h","enter":"side-panel__enter_1334h","appearActive":"side-panel__appearActive_1334h","enterActive":"side-panel__enterActive_1334h","exit":"side-panel__exit_1334h","exitActive":"side-panel__exitActive_1334h","exitDone":"side-panel__exitDone_1334h"};
16
+ const transitions = {"appear":"side-panel__appear_110tv","enter":"side-panel__enter_110tv","appearActive":"side-panel__appearActive_110tv","enterActive":"side-panel__enterActive_110tv","exit":"side-panel__exit_110tv","exitActive":"side-panel__exitActive_110tv","exitDone":"side-panel__exitDone_110tv"};
17
17
  require('./transitions.mobile.css')
18
18
 
19
19
  const contextValue = { size: 's', view: 'mobile' };
@@ -22,7 +22,8 @@ const SidePanelMobileComponent = forwardRef(({ children, className, transitionPr
22
22
  const renderContent = () => (React.createElement(BaseModal, { ...restProps, ref: ref, transitionProps: {
23
23
  classNames: transitions,
24
24
  ...transitionProps,
25
- }, className: cn(className, styles.component) }, children));
25
+ }, className: cn(className, styles.component) },
26
+ React.createElement("div", { className: styles.mobileContent }, children)));
26
27
  const renderWithContext = () => (React.createElement(ResponsiveContext.Provider, { value: contextValue }, renderContent()));
27
28
  return responsiveContext ? renderContent() : renderWithContext();
28
29
  });
@@ -4,7 +4,7 @@ import { Content } from './Component.js';
4
4
  import '../../Context.js';
5
5
  import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- const styles = {"s":"side-panel__s_7sgnp"};
7
+ const styles = {"s":"side-panel__s_2b97b"};
8
8
  require('./desktop.css')
9
9
 
10
10
  const ContentDesktop = ({ size = 's', className, ...restProps }) => React.createElement(Content, { className: cn(className, size && styles[size]), ...restProps });
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { ModalContext } from '../../Context.js';
4
4
  import '@alfalab/core-components-base-modal/modern';
5
5
 
6
- const styles = {"content":"side-panel__content_1nqlb","withHeader":"side-panel__withHeader_1nqlb","flex":"side-panel__flex_1nqlb"};
6
+ const styles = {"content":"side-panel__content_9yxty","withHeader":"side-panel__withHeader_9yxty","flex":"side-panel__flex_9yxty"};
7
7
  require('./index.css')
8
8
 
9
9
  const Content = ({ children, className, dataTestId }) => {
@@ -4,7 +4,7 @@ import { Content } from './Component.js';
4
4
  import '../../Context.js';
5
5
  import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- const styles = {"content":"side-panel__content_a999d"};
7
+ const styles = {"content":"side-panel__content_142vo"};
8
8
  require('./mobile.css')
9
9
 
10
10
  const ContentMobile = ({ className, ...restProps }) => (React.createElement(Content, { className: cn(className, styles.content), ...restProps }));
@@ -1,4 +1,4 @@
1
- /* hash: 19cab */
1
+ /* hash: 19j8q */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -30,8 +30,8 @@
30
30
  /* mobile */
31
31
 
32
32
  /* paddings */
33
- } .side-panel__s_7sgnp {
33
+ } .side-panel__s_2b97b {
34
34
  padding: var(--side-panel-s-content-paddings)
35
- } .side-panel__s_7sgnp:last-child {
35
+ } .side-panel__s_2b97b:last-child {
36
36
  padding-bottom: var(--gap-2xl);
37
37
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1v4y0 */
1
+ /* hash: 1uzpk */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -27,11 +27,11 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .side-panel__content_1nqlb {
30
+ } .side-panel__content_9yxty {
31
31
  box-sizing: border-box;
32
32
  width: 100%
33
- } .side-panel__content_1nqlb.side-panel__withHeader_1nqlb {
33
+ } .side-panel__content_9yxty.side-panel__withHeader_9yxty {
34
34
  padding-top: 0;
35
- } .side-panel__flex_1nqlb {
35
+ } .side-panel__flex_9yxty {
36
36
  flex: 1 1 auto;
37
37
  }
@@ -1,4 +1,4 @@
1
- /* hash: 18rze */
1
+ /* hash: ljs66 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .side-panel__content_a999d {
31
+ } .side-panel__content_142vo {
32
32
  padding: var(--gap-m) var(--gap-m) 0
33
- } .side-panel__content_a999d:last-child {
33
+ } .side-panel__content_142vo:last-child {
34
34
  padding-bottom: var(--gap-m);
35
35
  }
@@ -4,7 +4,7 @@ import { Footer } from './Component.js';
4
4
  import '../../Context.js';
5
5
  import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- const styles = {"sticky":"side-panel__sticky_18gzw","s":"side-panel__s_18gzw"};
7
+ const styles = {"sticky":"side-panel__sticky_z9x63","s":"side-panel__s_z9x63"};
8
8
  require('./desktop.css')
9
9
 
10
10
  const FooterDesktop = ({ size = 's', className, sticky, ...restProps }) => (React.createElement(Footer, { className: cn(className, size && styles[size], {
@@ -3,10 +3,10 @@ import cn from 'classnames';
3
3
  import { ModalContext } from '../../Context.js';
4
4
  import '@alfalab/core-components-base-modal/modern';
5
5
 
6
- const styles = {"footer":"side-panel__footer_1i09f","sticky":"side-panel__sticky_1i09f","highlighted":"side-panel__highlighted_1i09f"};
6
+ const styles = {"footer":"side-panel__footer_i2io7","sticky":"side-panel__sticky_i2io7","highlighted":"side-panel__highlighted_i2io7"};
7
7
  require('./index.css')
8
8
 
9
- const layoutStyles = {"column":"side-panel__column_rdke2","gap-16":"side-panel__gap-16_rdke2","gap-24":"side-panel__gap-24_rdke2","gap-32":"side-panel__gap-32_rdke2","start":"side-panel__start_rdke2","center":"side-panel__center_rdke2","space-between":"side-panel__space-between_rdke2"};
9
+ const layoutStyles = {"column":"side-panel__column_i6hnr","gap-16":"side-panel__gap-16_i6hnr","gap-24":"side-panel__gap-24_i6hnr","gap-32":"side-panel__gap-32_i6hnr","start":"side-panel__start_i6hnr","center":"side-panel__center_i6hnr","space-between":"side-panel__space-between_i6hnr"};
10
10
  require('./layout.css')
11
11
 
12
12
  const Footer = ({ children, className, sticky, layout = 'start', gap, dataTestId, }) => {
@@ -4,7 +4,7 @@ import { Footer } from './Component.js';
4
4
  import '../../Context.js';
5
5
  import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- const styles = {"footer":"side-panel__footer_ve09o","sticky":"side-panel__sticky_ve09o"};
7
+ const styles = {"footer":"side-panel__footer_1bmdf","sticky":"side-panel__sticky_1bmdf"};
8
8
  require('./mobile.css')
9
9
 
10
10
  const FooterMobile = ({ className, sticky, ...restProps }) => (React.createElement(Footer, { className: cn(className, styles.footer, {