@alfalab/core-components-side-panel 2.1.5 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/Component.desktop.d.ts +3 -12
  2. package/Component.desktop.js +22 -5
  3. package/Component.mobile.js +3 -3
  4. package/Component.responsive.d.ts +3 -12
  5. package/Component.responsive.js +1 -1
  6. package/components/closer/Component.js +2 -2
  7. package/components/closer/index.css +4 -4
  8. package/components/content/Component.desktop.js +2 -2
  9. package/components/content/Component.js +1 -1
  10. package/components/content/Component.mobile.js +2 -2
  11. package/components/content/desktop.css +3 -3
  12. package/components/content/index.css +3 -3
  13. package/components/content/mobile.css +3 -3
  14. package/components/footer/Component.desktop.js +2 -2
  15. package/components/footer/Component.js +2 -2
  16. package/components/footer/Component.mobile.js +2 -2
  17. package/components/footer/desktop.css +3 -3
  18. package/components/footer/index.css +4 -4
  19. package/components/footer/layout.css +25 -25
  20. package/components/footer/mobile.css +3 -3
  21. package/components/header/Component.desktop.js +2 -2
  22. package/components/header/Component.js +2 -2
  23. package/components/header/Component.mobile.js +2 -2
  24. package/components/header/desktop.css +6 -6
  25. package/components/header/index.css +16 -16
  26. package/components/header/mobile.css +3 -3
  27. package/cssm/Component.desktop.d.ts +3 -12
  28. package/cssm/Component.desktop.js +19 -2
  29. package/cssm/Component.responsive.d.ts +4 -13
  30. package/cssm/transitions.desktop.module.css +13 -5
  31. package/desktop.css +3 -3
  32. package/desktop.js +1 -1
  33. package/esm/Component.desktop.d.ts +3 -12
  34. package/esm/Component.desktop.js +22 -5
  35. package/esm/Component.mobile.js +3 -3
  36. package/esm/Component.responsive.d.ts +4 -13
  37. package/esm/Component.responsive.js +1 -1
  38. package/esm/components/closer/Component.js +2 -2
  39. package/esm/components/closer/index.css +4 -4
  40. package/esm/components/content/Component.desktop.js +2 -2
  41. package/esm/components/content/Component.js +1 -1
  42. package/esm/components/content/Component.mobile.js +2 -2
  43. package/esm/components/content/desktop.css +3 -3
  44. package/esm/components/content/index.css +3 -3
  45. package/esm/components/content/mobile.css +3 -3
  46. package/esm/components/footer/Component.desktop.js +2 -2
  47. package/esm/components/footer/Component.js +2 -2
  48. package/esm/components/footer/Component.mobile.js +2 -2
  49. package/esm/components/footer/desktop.css +3 -3
  50. package/esm/components/footer/index.css +4 -4
  51. package/esm/components/footer/layout.css +25 -25
  52. package/esm/components/footer/mobile.css +3 -3
  53. package/esm/components/header/Component.desktop.js +2 -2
  54. package/esm/components/header/Component.js +2 -2
  55. package/esm/components/header/Component.mobile.js +2 -2
  56. package/esm/components/header/desktop.css +6 -6
  57. package/esm/components/header/index.css +16 -16
  58. package/esm/components/header/mobile.css +3 -3
  59. package/esm/desktop.css +3 -3
  60. package/esm/desktop.js +1 -1
  61. package/esm/index.js +1 -1
  62. package/esm/mobile.css +2 -2
  63. package/esm/mobile.js +1 -1
  64. package/esm/responsive.js +1 -1
  65. package/esm/transitions.desktop.css +16 -8
  66. package/esm/transitions.mobile.css +8 -8
  67. package/esm/{tslib.es6-ae0d0472.d.ts → tslib.es6-3fdec2ab.d.ts} +0 -0
  68. package/esm/{tslib.es6-ae0d0472.js → tslib.es6-3fdec2ab.js} +0 -0
  69. package/index.js +1 -1
  70. package/mobile.css +2 -2
  71. package/mobile.js +1 -1
  72. package/modern/Component.desktop.d.ts +3 -12
  73. package/modern/Component.desktop.js +21 -5
  74. package/modern/Component.mobile.js +2 -2
  75. package/modern/Component.responsive.d.ts +3 -12
  76. package/modern/components/closer/Component.js +1 -1
  77. package/modern/components/closer/index.css +4 -4
  78. package/modern/components/content/Component.desktop.js +1 -1
  79. package/modern/components/content/Component.js +1 -1
  80. package/modern/components/content/Component.mobile.js +1 -1
  81. package/modern/components/content/desktop.css +3 -3
  82. package/modern/components/content/index.css +3 -3
  83. package/modern/components/content/mobile.css +3 -3
  84. package/modern/components/footer/Component.desktop.js +1 -1
  85. package/modern/components/footer/Component.js +2 -2
  86. package/modern/components/footer/Component.mobile.js +1 -1
  87. package/modern/components/footer/desktop.css +3 -3
  88. package/modern/components/footer/index.css +4 -4
  89. package/modern/components/footer/layout.css +25 -25
  90. package/modern/components/footer/mobile.css +3 -3
  91. package/modern/components/header/Component.desktop.js +1 -1
  92. package/modern/components/header/Component.js +1 -1
  93. package/modern/components/header/Component.mobile.js +1 -1
  94. package/modern/components/header/desktop.css +6 -6
  95. package/modern/components/header/index.css +16 -16
  96. package/modern/components/header/mobile.css +3 -3
  97. package/modern/desktop.css +3 -3
  98. package/modern/mobile.css +2 -2
  99. package/modern/transitions.desktop.css +16 -8
  100. package/modern/transitions.mobile.css +8 -8
  101. package/package.json +3 -3
  102. package/responsive.js +1 -1
  103. package/transitions.desktop.css +16 -8
  104. package/transitions.mobile.css +8 -8
  105. /package/{tslib.es6-8f8531e8.d.ts → tslib.es6-946fd0e1.d.ts} +0 -0
  106. /package/{tslib.es6-8f8531e8.js → tslib.es6-946fd0e1.js} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: 1q2d9 */
1
+ /* hash: 1c50t */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -26,17 +26,17 @@
26
26
 
27
27
  /* mobile */
28
28
  }
29
- .side-panel__footer_h2vhw {
29
+ .side-panel__footer_egjqc {
30
30
  width: 100%;
31
31
  box-sizing: border-box;
32
32
  transition: box-shadow 0.2s ease, background 0.2s ease;
33
33
  }
34
- .side-panel__sticky_h2vhw {
34
+ .side-panel__sticky_egjqc {
35
35
  background: var(--side-panel-footer-background);
36
36
  position: sticky;
37
37
  z-index: 1;
38
38
  }
39
- .side-panel__highlighted_h2vhw {
39
+ .side-panel__highlighted_egjqc {
40
40
  background: var(--side-panel-footer-highlight-background);
41
41
  box-shadow: var(--side-panel-footer-highlight-box-shadow);
42
42
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1mzsc */
1
+ /* hash: 192fw */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -25,60 +25,60 @@
25
25
 
26
26
  /* mobile */
27
27
  }
28
- .side-panel__column_h6uhg {
28
+ .side-panel__column_ekipw {
29
29
  display: flex;
30
30
  flex-direction: column
31
31
  }
32
- .side-panel__column_h6uhg > * {
32
+ .side-panel__column_ekipw > * {
33
33
  margin-bottom: var(--side-panel-footer-default-gap);
34
34
  }
35
- .side-panel__column_h6uhg > *:last-child,
36
- .side-panel__column_h6uhg > *:only-child {
35
+ .side-panel__column_ekipw > *:last-child,
36
+ .side-panel__column_ekipw > *:only-child {
37
37
  margin-bottom: 0;
38
38
  }
39
- .side-panel__column_h6uhg.side-panel__gap-16_h6uhg > * {
39
+ .side-panel__column_ekipw.side-panel__gap-16_ekipw > * {
40
40
  margin-bottom: var(--gap-m);
41
41
  }
42
- .side-panel__column_h6uhg.side-panel__gap-24_h6uhg > * {
42
+ .side-panel__column_ekipw.side-panel__gap-24_ekipw > * {
43
43
  margin-bottom: var(--gap-xl);
44
44
  }
45
- .side-panel__column_h6uhg.side-panel__gap-32_h6uhg > * {
45
+ .side-panel__column_ekipw.side-panel__gap-32_ekipw > * {
46
46
  margin-bottom: var(--gap-2xl);
47
47
  }
48
- .side-panel__start_h6uhg {
48
+ .side-panel__start_ekipw {
49
49
  justify-content: flex-start;
50
50
  }
51
- .side-panel__center_h6uhg {
51
+ .side-panel__center_ekipw {
52
52
  justify-content: center;
53
53
  }
54
- .side-panel__space-between_h6uhg {
54
+ .side-panel__space-between_ekipw {
55
55
  justify-content: space-between
56
56
  }
57
- .side-panel__space-between_h6uhg > * {
57
+ .side-panel__space-between_ekipw > * {
58
58
  flex: 1;
59
59
  }
60
- .side-panel__start_h6uhg,
61
- .side-panel__center_h6uhg,
62
- .side-panel__space-between_h6uhg {
60
+ .side-panel__start_ekipw,
61
+ .side-panel__center_ekipw,
62
+ .side-panel__space-between_ekipw {
63
63
  display: flex
64
64
  }
65
- .side-panel__start_h6uhg > *, .side-panel__center_h6uhg > *, .side-panel__space-between_h6uhg > * {
65
+ .side-panel__start_ekipw > *, .side-panel__center_ekipw > *, .side-panel__space-between_ekipw > * {
66
66
  margin-right: var(--side-panel-footer-default-gap);
67
67
  }
68
- .side-panel__start_h6uhg > *:last-child,
69
- .side-panel__start_h6uhg > *:only-child,
70
- .side-panel__center_h6uhg > *:last-child,
71
- .side-panel__center_h6uhg > *:only-child,
72
- .side-panel__space-between_h6uhg > *:last-child,
73
- .side-panel__space-between_h6uhg > *:only-child {
68
+ .side-panel__start_ekipw > *:last-child,
69
+ .side-panel__start_ekipw > *:only-child,
70
+ .side-panel__center_ekipw > *:last-child,
71
+ .side-panel__center_ekipw > *:only-child,
72
+ .side-panel__space-between_ekipw > *:last-child,
73
+ .side-panel__space-between_ekipw > *:only-child {
74
74
  margin-right: 0;
75
75
  }
76
- .side-panel__start_h6uhg.side-panel__gap-16_h6uhg > *, .side-panel__center_h6uhg.side-panel__gap-16_h6uhg > *, .side-panel__space-between_h6uhg.side-panel__gap-16_h6uhg > * {
76
+ .side-panel__start_ekipw.side-panel__gap-16_ekipw > *, .side-panel__center_ekipw.side-panel__gap-16_ekipw > *, .side-panel__space-between_ekipw.side-panel__gap-16_ekipw > * {
77
77
  margin-right: var(--gap-m);
78
78
  }
79
- .side-panel__start_h6uhg.side-panel__gap-24_h6uhg > *, .side-panel__center_h6uhg.side-panel__gap-24_h6uhg > *, .side-panel__space-between_h6uhg.side-panel__gap-24_h6uhg > * {
79
+ .side-panel__start_ekipw.side-panel__gap-24_ekipw > *, .side-panel__center_ekipw.side-panel__gap-24_ekipw > *, .side-panel__space-between_ekipw.side-panel__gap-24_ekipw > * {
80
80
  margin-right: var(--gap-xl);
81
81
  }
82
- .side-panel__start_h6uhg.side-panel__gap-32_h6uhg > *, .side-panel__center_h6uhg.side-panel__gap-32_h6uhg > *, .side-panel__space-between_h6uhg.side-panel__gap-32_h6uhg > * {
82
+ .side-panel__start_ekipw.side-panel__gap-32_ekipw > *, .side-panel__center_ekipw.side-panel__gap-32_ekipw > *, .side-panel__space-between_ekipw.side-panel__gap-32_ekipw > * {
83
83
  margin-right: var(--gap-2xl);
84
84
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1kaiz */
1
+ /* hash: dcpd2 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -22,9 +22,9 @@
22
22
 
23
23
  /* mobile */
24
24
  }
25
- .side-panel__footer_wvlg6 {
25
+ .side-panel__footer_1f8cd {
26
26
  padding: var(--gap-m);
27
27
  }
28
- .side-panel__sticky_wvlg6 {
28
+ .side-panel__sticky_1f8cd {
29
29
  bottom: 0;
30
30
  }
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-ae0d0472.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-3fdec2ab.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
@@ -8,7 +8,7 @@ import '@alfalab/core-components-icon-button/esm';
8
8
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
9
9
  import { Closer } from '../closer/Component.js';
10
10
 
11
- var styles = {"content":"side-panel__content_9exhx","s":"side-panel__s_9exhx","hasContent":"side-panel__hasContent_9exhx","sticky":"side-panel__sticky_9exhx"};
11
+ var styles = {"content":"side-panel__content_c199h","s":"side-panel__s_c199h","hasContent":"side-panel__hasContent_c199h","sticky":"side-panel__sticky_c199h"};
12
12
  require('./desktop.css')
13
13
 
14
14
  var HeaderDesktop = function (_a) {
@@ -1,10 +1,10 @@
1
- import { a as __assign } from '../../tslib.es6-ae0d0472.js';
1
+ import { a as __assign } from '../../tslib.es6-3fdec2ab.js';
2
2
  import React, { useContext, useEffect } from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
5
5
  import { ModalContext } from '../../Context.js';
6
6
 
7
- var styles = {"header":"side-panel__header_1bh31","hasContent":"side-panel__hasContent_1bh31","highlighted":"side-panel__highlighted_1bh31","sticky":"side-panel__sticky_1bh31","backgroundImage":"side-panel__backgroundImage_1bh31","content":"side-panel__content_1bh31","title":"side-panel__title_1bh31","addon":"side-panel__addon_1bh31","closer":"side-panel__closer_1bh31","left":"side-panel__left_1bh31","center":"side-panel__center_1bh31","right":"side-panel__right_1bh31","trim":"side-panel__trim_1bh31"};
7
+ var styles = {"header":"side-panel__header_1e3es","hasContent":"side-panel__hasContent_1e3es","highlighted":"side-panel__highlighted_1e3es","sticky":"side-panel__sticky_1e3es","backgroundImage":"side-panel__backgroundImage_1e3es","content":"side-panel__content_1e3es","title":"side-panel__title_1e3es","addon":"side-panel__addon_1e3es","closer":"side-panel__closer_1e3es","left":"side-panel__left_1e3es","center":"side-panel__center_1e3es","right":"side-panel__right_1e3es","trim":"side-panel__trim_1e3es"};
8
8
  require('./index.css')
9
9
 
10
10
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-ae0d0472.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-3fdec2ab.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/CrossHeavyMIcon';
9
9
  import { Closer } from '../closer/Component.js';
10
10
  import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
11
11
 
12
- var styles = {"sticky":"side-panel__sticky_7slgu","content":"side-panel__content_7slgu"};
12
+ var styles = {"sticky":"side-panel__sticky_1ogyl","content":"side-panel__content_1ogyl"};
13
13
  require('./mobile.css')
14
14
 
15
15
  var HeaderMobile = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: n5ssr */
1
+ /* hash: 1ml9y */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -34,21 +34,21 @@
34
34
 
35
35
  /* mobile */
36
36
  }
37
- .side-panel__content_9exhx {
37
+ .side-panel__content_c199h {
38
38
  font-weight: var(--side-panel-header-desktop-font-weight);
39
39
  font-family: var(--side-panel-header-desktop-font-family);
40
40
  }
41
- .side-panel__s_9exhx .side-panel__content_9exhx {
41
+ .side-panel__s_c199h .side-panel__content_c199h {
42
42
  padding: var(--side-panel-s-header-desktop-content-paddings);
43
43
  font-size: var(--side-panel-s-header-desktop-font-size);
44
44
  line-height: var(--side-panel-s-header-desktop-line-height);
45
45
  }
46
- .side-panel__s_9exhx {
46
+ .side-panel__s_c199h {
47
47
  padding: var(--side-panel-s-header-paddings)
48
48
  }
49
- .side-panel__s_9exhx:not(.side-panel__hasContent_9exhx) {
49
+ .side-panel__s_c199h:not(.side-panel__hasContent_c199h) {
50
50
  padding-bottom: 0;
51
51
  }
52
- .side-panel__sticky_9exhx {
52
+ .side-panel__sticky_c199h {
53
53
  top: 0;
54
54
  }
@@ -1,4 +1,4 @@
1
- /* hash: 3jt44 */
1
+ /* hash: 12zaa */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -25,7 +25,7 @@
25
25
 
26
26
  /* mobile */
27
27
  }
28
- .side-panel__header_1bh31 {
28
+ .side-panel__header_1e3es {
29
29
  width: 100%;
30
30
  box-sizing: border-box;
31
31
  display: flex;
@@ -33,31 +33,31 @@
33
33
  justify-content: space-between;
34
34
  transition: box-shadow 0.2s ease, background 0.2s ease
35
35
  }
36
- .side-panel__header_1bh31:not(.side-panel__hasContent_1bh31) {
36
+ .side-panel__header_1e3es:not(.side-panel__hasContent_1e3es) {
37
37
  pointer-events: none;
38
38
  }
39
- .side-panel__highlighted_1bh31 {
39
+ .side-panel__highlighted_1e3es {
40
40
  background: var(--side-panel-header-highlight-background);
41
41
  box-shadow: var(--side-panel-header-highlight-box-shadow);
42
42
  }
43
- .side-panel__sticky_1bh31 {
43
+ .side-panel__sticky_1e3es {
44
44
  position: sticky;
45
45
  z-index: 1
46
46
  }
47
- .side-panel__sticky_1bh31.side-panel__hasContent_1bh31 {
47
+ .side-panel__sticky_1e3es.side-panel__hasContent_1e3es {
48
48
  background: var(--side-panel-header-background);
49
49
  }
50
- .side-panel__header_1bh31.side-panel__backgroundImage_1bh31 {
50
+ .side-panel__header_1e3es.side-panel__backgroundImage_1e3es {
51
51
  background: center no-repeat;
52
52
  background-size: cover;
53
53
  }
54
- .side-panel__content_1bh31 {
54
+ .side-panel__content_1e3es {
55
55
  flex-grow: 1;
56
56
  }
57
- .side-panel__title_1bh31 {
57
+ .side-panel__title_1e3es {
58
58
  word-break: break-word;
59
59
  }
60
- .side-panel__addon_1bh31 {
60
+ .side-panel__addon_1e3es {
61
61
  min-width: 48px;
62
62
  height: 48px;
63
63
  display: flex;
@@ -65,25 +65,25 @@
65
65
  align-items: center;
66
66
  pointer-events: all;
67
67
  }
68
- .side-panel__closer_1bh31 {
68
+ .side-panel__closer_1e3es {
69
69
  margin-left: auto;
70
70
  }
71
- .side-panel__left_1bh31 {
71
+ .side-panel__left_1e3es {
72
72
  justify-content: flex-start;
73
73
  text-align: left;
74
74
  }
75
- .side-panel__center_1bh31 {
75
+ .side-panel__center_1e3es {
76
76
  justify-content: center;
77
77
  text-align: center;
78
78
  }
79
- .side-panel__right_1bh31 {
79
+ .side-panel__right_1e3es {
80
80
  justify-content: flex-end;
81
81
  text-align: right;
82
82
  }
83
- .side-panel__trim_1bh31 {
83
+ .side-panel__trim_1e3es {
84
84
  overflow: hidden
85
85
  }
86
- .side-panel__trim_1bh31 .side-panel__title_1bh31 {
86
+ .side-panel__trim_1e3es .side-panel__title_1e3es {
87
87
  overflow: hidden;
88
88
  white-space: nowrap;
89
89
  text-overflow: ellipsis;
@@ -1,4 +1,4 @@
1
- /* hash: yiy8o */
1
+ /* hash: 1qm8o */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -34,10 +34,10 @@
34
34
  --side-panel-header-mobile-font-family: var(--font-family-system);
35
35
  --side-panel-header-mobile-font-weight: bold;
36
36
  }
37
- .side-panel__sticky_7slgu {
37
+ .side-panel__sticky_1ogyl {
38
38
  top: 0;
39
39
  }
40
- .side-panel__content_7slgu {
40
+ .side-panel__content_1ogyl {
41
41
  font-size: var(--side-panel-header-mobile-font-size);
42
42
  line-height: var(--side-panel-header-mobile-line-height);
43
43
  font-family: var(--side-panel-header-mobile-font-family);
package/esm/desktop.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: pm4f7 */
1
+ /* hash: 1wjy1 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -20,9 +20,9 @@
20
20
 
21
21
  /* mobile */
22
22
  }
23
- .side-panel__s_han1q {
23
+ .side-panel__s_1y7nn {
24
24
  width: var(--side-panel-s-width);
25
25
  }
26
- .side-panel__hidden_han1q {
26
+ .side-panel__hidden_1y7nn {
27
27
  overflow-x: hidden;
28
28
  }
package/esm/desktop.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-ae0d0472.js';
1
+ import './tslib.es6-3fdec2ab.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-drawer/esm';
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-ae0d0472.js';
1
+ import './tslib.es6-3fdec2ab.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-drawer/esm';
package/esm/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ds3ya */
1
+ /* hash: 17fvk */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -19,7 +19,7 @@
19
19
 
20
20
  /* mobile */
21
21
  }
22
- .side-panel__component_r3t2b {
22
+ .side-panel__component_1oybo {
23
23
  flex: 1;
24
24
  width: 100%;
25
25
  }
package/esm/mobile.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-ae0d0472.js';
1
+ import './tslib.es6-3fdec2ab.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-base-modal/esm';
package/esm/responsive.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-ae0d0472.js';
1
+ import './tslib.es6-3fdec2ab.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-drawer/esm';
@@ -1,25 +1,33 @@
1
- /* hash: qhmi3 */
2
- .side-panel__appear_k7osg,
3
- .side-panel__enter_k7osg {
1
+ /* hash: e4r8o */
2
+ .side-panel__enterRight_12kfp {
4
3
  opacity: 0;
5
4
  transform: translateX(15px);
6
5
  }
7
6
 
8
- .side-panel__appearActive_k7osg,
9
- .side-panel__enterActive_k7osg {
7
+ .side-panel__enterLeft_12kfp {
8
+ opacity: 0;
9
+ transform: translateX(-15px);
10
+ }
11
+
12
+ .side-panel__enterActive_12kfp {
10
13
  opacity: 1;
11
14
  transform: translateX(0);
12
15
  transition: opacity 200ms ease-in, transform 200ms ease-in;
13
16
  }
14
17
 
15
- .side-panel__exit_k7osg {
18
+ .side-panel__exit_12kfp {
16
19
  opacity: 1;
17
20
  transform: translateX(0);
18
21
  }
19
22
 
20
- .side-panel__exitActive_k7osg,
21
- .side-panel__exitDone_k7osg {
23
+ .side-panel__exitActiveRight_12kfp {
22
24
  opacity: 0;
23
25
  transition: opacity 200ms ease-out, transform 200ms ease-out;
24
26
  transform: translateX(15px);
25
27
  }
28
+
29
+ .side-panel__exitActiveLeft_12kfp {
30
+ opacity: 0;
31
+ transition: opacity 200ms ease-out, transform 200ms ease-out;
32
+ transform: translateX(-15px);
33
+ }
@@ -1,24 +1,24 @@
1
- /* hash: 1hnxg */
2
- .side-panel__appear_1016p,
3
- .side-panel__enter_1016p {
1
+ /* hash: 1vl9w */
2
+ .side-panel__appear_xeuxw,
3
+ .side-panel__enter_xeuxw {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .side-panel__appearActive_1016p,
9
- .side-panel__enterActive_1016p {
8
+ .side-panel__appearActive_xeuxw,
9
+ .side-panel__enterActive_xeuxw {
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_1016p {
15
+ .side-panel__exit_xeuxw {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .side-panel__exitActive_1016p,
21
- .side-panel__exitDone_1016p {
20
+ .side-panel__exitActive_xeuxw,
21
+ .side-panel__exitDone_xeuxw {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-8f8531e8.js');
5
+ require('./tslib.es6-946fd0e1.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-drawer');
package/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ds3ya */
1
+ /* hash: 17fvk */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -19,7 +19,7 @@
19
19
 
20
20
  /* mobile */
21
21
  }
22
- .side-panel__component_r3t2b {
22
+ .side-panel__component_1oybo {
23
23
  flex: 1;
24
24
  width: 100%;
25
25
  }
package/mobile.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-8f8531e8.js');
5
+ require('./tslib.es6-946fd0e1.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-base-modal');
@@ -1,13 +1,8 @@
1
- /// <reference types="react-transition-group" />
2
1
  /// <reference types="react" />
3
2
  import React from 'react';
3
+ import { DrawerProps } from "@alfalab/core-components-drawer";
4
4
  import { BaseModalProps } from "@alfalab/core-components-base-modal";
5
- import { TransitionProps } from 'react-transition-group/Transition';
6
- type SidePanelDesktopProps = BaseModalProps & {
7
- /**
8
- * Пропсы для анимации контента (CSSTransition)
9
- */
10
- contentTransitionProps?: Partial<TransitionProps>;
5
+ type SidePanelDesktopProps = BaseModalProps & Pick<DrawerProps, 'placement' | 'nativeScrollbar' | 'contentTransitionProps'> & {
11
6
  /**
12
7
  * Ширина модального окна
13
8
  * @default "s"
@@ -19,11 +14,7 @@ type SidePanelDesktopProps = BaseModalProps & {
19
14
  */
20
15
  hasCloser?: boolean;
21
16
  };
22
- declare const SidePanelDesktop: React.ForwardRefExoticComponent<BaseModalProps & {
23
- /**
24
- * Пропсы для анимации контента (CSSTransition)
25
- */
26
- contentTransitionProps?: Partial<TimeoutProps<undefined>> | Partial<EndListenerProps<undefined>> | undefined;
17
+ declare const SidePanelDesktop: React.ForwardRefExoticComponent<BaseModalProps & Pick<DrawerProps, "contentTransitionProps" | "nativeScrollbar" | "placement"> & {
27
18
  /**
28
19
  * Ширина модального окна
29
20
  * @default "s"
@@ -14,16 +14,32 @@ import { ContentDesktop } from './components/content/Component.desktop.js';
14
14
  import './components/footer/Component.js';
15
15
  import { FooterDesktop } from './components/footer/Component.desktop.js';
16
16
 
17
- var styles = {"s":"side-panel__s_han1q","hidden":"side-panel__hidden_han1q"};
17
+ var styles = {"s":"side-panel__s_1y7nn","hidden":"side-panel__hidden_1y7nn"};
18
18
  require('./desktop.css')
19
19
 
20
- var transitions = {"appear":"side-panel__appear_k7osg","enter":"side-panel__enter_k7osg","appearActive":"side-panel__appearActive_k7osg","enterActive":"side-panel__enterActive_k7osg","exit":"side-panel__exit_k7osg","exitActive":"side-panel__exitActive_k7osg","exitDone":"side-panel__exitDone_k7osg"};
20
+ var transitions = {"enterRight":"side-panel__enterRight_12kfp","enterLeft":"side-panel__enterLeft_12kfp","enterActive":"side-panel__enterActive_12kfp","exit":"side-panel__exit_12kfp","exitActiveRight":"side-panel__exitActiveRight_12kfp","exitActiveLeft":"side-panel__exitActiveLeft_12kfp"};
21
21
  require('./transitions.desktop.css')
22
22
 
23
- const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, ...restProps }, ref) => {
23
+ const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', ...restProps }, ref) => {
24
24
  const modalRef = useRef(null);
25
- return (React.createElement(Drawer, Object.assign({}, restProps, { ref: mergeRefs([ref, modalRef]), wrapperClassName: wrapperClassName, className: cn(className, styles[size], styles.hidden), backdropProps: backdropProps, contentTransitionProps: {
26
- classNames: transitions,
25
+ const enterCn = cn({
26
+ [transitions.appearRight]: placement === 'right',
27
+ [transitions.appearLeft]: placement === 'left',
28
+ });
29
+ const exitCn = cn({
30
+ [transitions.exitActiveRight]: placement === 'right',
31
+ [transitions.exitActiveLeft]: placement === 'left',
32
+ });
33
+ return (React.createElement(Drawer, Object.assign({}, restProps, { ref: mergeRefs([ref, modalRef]), placement: placement, wrapperClassName: wrapperClassName, className: cn(className, styles[size], styles.hidden), backdropProps: backdropProps, contentTransitionProps: {
34
+ classNames: {
35
+ appear: enterCn,
36
+ enter: enterCn,
37
+ appearActive: transitions.enterActive,
38
+ enterActive: transitions.enterActive,
39
+ exit: transitions.exit,
40
+ exitActive: exitCn,
41
+ exitDone: exitCn,
42
+ },
27
43
  ...contentTransitionProps,
28
44
  } }), React.Children.map(children, child => isValidElement(child) ? cloneElement(child, { size }) : child)));
29
45
  });
@@ -13,10 +13,10 @@ import { HeaderMobile } from './components/header/Component.mobile.js';
13
13
  import { ContentMobile } from './components/content/Component.mobile.js';
14
14
  import { FooterMobile } from './components/footer/Component.mobile.js';
15
15
 
16
- var styles = {"component":"side-panel__component_r3t2b"};
16
+ var styles = {"component":"side-panel__component_1oybo"};
17
17
  require('./mobile.css')
18
18
 
19
- var transitions = {"appear":"side-panel__appear_1016p","enter":"side-panel__enter_1016p","appearActive":"side-panel__appearActive_1016p","enterActive":"side-panel__enterActive_1016p","exit":"side-panel__exit_1016p","exitActive":"side-panel__exitActive_1016p","exitDone":"side-panel__exitDone_1016p"};
19
+ var transitions = {"appear":"side-panel__appear_xeuxw","enter":"side-panel__enter_xeuxw","appearActive":"side-panel__appearActive_xeuxw","enterActive":"side-panel__enterActive_xeuxw","exit":"side-panel__exit_xeuxw","exitActive":"side-panel__exitActive_xeuxw","exitDone":"side-panel__exitDone_xeuxw"};
20
20
  require('./transitions.mobile.css')
21
21
 
22
22
  const SidePanelMobileComponent = forwardRef(({ children, className, transitionProps, ...restProps }, ref) => {
@@ -1,13 +1,8 @@
1
- /// <reference types="react-transition-group" />
2
1
  /// <reference types="react" />
3
2
  import React from 'react';
4
- import { TransitionProps } from 'react-transition-group/Transition';
5
3
  import { BaseModalProps } from "@alfalab/core-components-base-modal";
6
- type SidePanelResponsiveProps = BaseModalProps & {
7
- /**
8
- * Пропсы для анимации контента (CSSTransition)
9
- */
10
- contentTransitionProps?: Partial<TransitionProps>;
4
+ import { DrawerProps } from "@alfalab/core-components-drawer";
5
+ type SidePanelResponsiveProps = BaseModalProps & Pick<DrawerProps, 'contentTransitionProps' | 'placement' | 'nativeScrollbar'> & {
11
6
  /**
12
7
  * Ширина модального окна
13
8
  * @default "s"
@@ -19,11 +14,7 @@ type SidePanelResponsiveProps = BaseModalProps & {
19
14
  */
20
15
  hasCloser?: boolean;
21
16
  };
22
- declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProps & {
23
- /**
24
- * Пропсы для анимации контента (CSSTransition)
25
- */
26
- contentTransitionProps?: Partial<TimeoutProps<undefined>> | Partial<EndListenerProps<undefined>> | undefined;
17
+ declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProps & Pick<DrawerProps, "contentTransitionProps" | "nativeScrollbar" | "placement"> & {
27
18
  /**
28
19
  * Ширина модального окна
29
20
  * @default "s"
@@ -5,7 +5,7 @@ import { ModalContext } from '../../Context.js';
5
5
  import { IconButton } from '@alfalab/core-components-icon-button/modern';
6
6
  import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
7
7
 
8
- var styles = {"closer":"side-panel__closer_v7eww","button":"side-panel__button_v7eww","sticky":"side-panel__sticky_v7eww"};
8
+ var styles = {"closer":"side-panel__closer_d3bgt","button":"side-panel__button_d3bgt","sticky":"side-panel__sticky_d3bgt"};
9
9
  require('./index.css')
10
10
 
11
11
  /**