@alfalab/core-components-side-panel 5.1.2 → 5.2.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 (144) hide show
  1. package/Component.responsive.d.ts +2 -2
  2. package/Component.responsive.js +1 -1
  3. package/components/content/Component.desktop.d.ts +1 -1
  4. package/components/content/Component.desktop.js +4 -3
  5. package/components/content/Component.js +1 -1
  6. package/components/content/Component.mobile.js +1 -1
  7. package/components/content/desktop.css +4 -4
  8. package/components/content/index.css +5 -5
  9. package/components/content/mobile.css +4 -4
  10. package/components/controls/Component.js +2 -2
  11. package/components/controls/index.css +2 -2
  12. package/components/footer/Component.desktop.d.ts +1 -1
  13. package/components/footer/Component.desktop.js +4 -3
  14. package/components/footer/Component.js +2 -2
  15. package/components/footer/Component.mobile.js +1 -1
  16. package/components/footer/desktop.css +4 -4
  17. package/components/footer/index.css +5 -5
  18. package/components/footer/layout.css +18 -18
  19. package/components/footer/mobile.css +4 -4
  20. package/components/header/Component.js +6 -5
  21. package/components/header/desktop.css +6 -6
  22. package/components/header/index.css +15 -15
  23. package/components/header/mobile.css +5 -5
  24. package/consts.d.ts +5 -0
  25. package/consts.js +10 -0
  26. package/cssm/Component.responsive.d.ts +2 -2
  27. package/cssm/Component.responsive.js +1 -1
  28. package/cssm/components/content/Component.desktop.d.ts +1 -1
  29. package/cssm/components/content/Component.desktop.js +3 -2
  30. package/cssm/components/content/desktop.module.css +3 -3
  31. package/cssm/components/content/index.module.css +1 -1
  32. package/cssm/components/content/mobile.module.css +1 -1
  33. package/cssm/components/footer/Component.desktop.d.ts +1 -1
  34. package/cssm/components/footer/Component.desktop.js +3 -2
  35. package/cssm/components/footer/desktop.module.css +2 -2
  36. package/cssm/components/footer/index.module.css +1 -1
  37. package/cssm/components/footer/layout.module.css +1 -1
  38. package/cssm/components/footer/mobile.module.css +1 -1
  39. package/cssm/components/header/Component.js +3 -2
  40. package/cssm/components/header/desktop.module.css +3 -3
  41. package/cssm/components/header/index.module.css +1 -1
  42. package/cssm/components/header/mobile.module.css +1 -1
  43. package/cssm/consts.d.ts +5 -0
  44. package/cssm/consts.js +10 -0
  45. package/cssm/desktop/Component.desktop.d.ts +2 -2
  46. package/cssm/desktop/Component.desktop.js +3 -2
  47. package/cssm/desktop/desktop.module.css +2 -2
  48. package/cssm/mobile/Component.mobile.js +1 -1
  49. package/cssm/mobile/mobile.module.css +1 -1
  50. package/cssm/typings.d.ts +1 -1
  51. package/cssm/vars.css +1 -1
  52. package/desktop/Component.desktop.d.ts +2 -2
  53. package/desktop/Component.desktop.js +5 -4
  54. package/desktop/desktop.css +4 -4
  55. package/desktop/transitions.desktop.css +7 -7
  56. package/esm/Component.responsive.d.ts +2 -2
  57. package/esm/Component.responsive.js +1 -1
  58. package/esm/components/content/Component.desktop.d.ts +1 -1
  59. package/esm/components/content/Component.desktop.js +4 -3
  60. package/esm/components/content/Component.js +1 -1
  61. package/esm/components/content/Component.mobile.js +1 -1
  62. package/esm/components/content/desktop.css +4 -4
  63. package/esm/components/content/index.css +5 -5
  64. package/esm/components/content/mobile.css +4 -4
  65. package/esm/components/controls/Component.js +2 -2
  66. package/esm/components/controls/index.css +2 -2
  67. package/esm/components/footer/Component.desktop.d.ts +1 -1
  68. package/esm/components/footer/Component.desktop.js +4 -3
  69. package/esm/components/footer/Component.js +2 -2
  70. package/esm/components/footer/Component.mobile.js +1 -1
  71. package/esm/components/footer/desktop.css +4 -4
  72. package/esm/components/footer/index.css +5 -5
  73. package/esm/components/footer/layout.css +18 -18
  74. package/esm/components/footer/mobile.css +4 -4
  75. package/esm/components/header/Component.js +6 -5
  76. package/esm/components/header/desktop.css +6 -6
  77. package/esm/components/header/index.css +15 -15
  78. package/esm/components/header/mobile.css +5 -5
  79. package/esm/consts.d.ts +5 -0
  80. package/esm/consts.js +6 -0
  81. package/esm/desktop/Component.desktop.d.ts +2 -2
  82. package/esm/desktop/Component.desktop.js +5 -4
  83. package/esm/desktop/desktop.css +4 -4
  84. package/esm/desktop/transitions.desktop.css +7 -7
  85. package/esm/layout.module-10b60370.js +4 -0
  86. package/esm/mobile/Component.mobile.js +3 -3
  87. package/esm/mobile/mobile.css +5 -5
  88. package/esm/mobile/transitions.mobile.css +8 -8
  89. package/esm/typings.d.ts +1 -1
  90. package/layout.module-3789959a.js +6 -0
  91. package/mobile/Component.mobile.js +3 -3
  92. package/mobile/mobile.css +5 -5
  93. package/mobile/transitions.mobile.css +8 -8
  94. package/modern/Component.responsive.d.ts +2 -2
  95. package/modern/Component.responsive.js +1 -1
  96. package/modern/components/content/Component.desktop.d.ts +1 -1
  97. package/modern/components/content/Component.desktop.js +3 -2
  98. package/modern/components/content/Component.js +1 -1
  99. package/modern/components/content/Component.mobile.js +1 -1
  100. package/modern/components/content/desktop.css +4 -4
  101. package/modern/components/content/index.css +5 -5
  102. package/modern/components/content/mobile.css +4 -4
  103. package/modern/components/controls/Component.js +2 -2
  104. package/modern/components/controls/index.css +2 -2
  105. package/modern/components/footer/Component.desktop.d.ts +1 -1
  106. package/modern/components/footer/Component.desktop.js +3 -2
  107. package/modern/components/footer/Component.js +2 -2
  108. package/modern/components/footer/Component.mobile.js +1 -1
  109. package/modern/components/footer/desktop.css +4 -4
  110. package/modern/components/footer/index.css +5 -5
  111. package/modern/components/footer/layout.css +18 -18
  112. package/modern/components/footer/mobile.css +4 -4
  113. package/modern/components/header/Component.js +6 -5
  114. package/modern/components/header/desktop.css +6 -6
  115. package/modern/components/header/index.css +15 -15
  116. package/modern/components/header/mobile.css +5 -5
  117. package/modern/consts.d.ts +5 -0
  118. package/modern/consts.js +6 -0
  119. package/modern/desktop/Component.desktop.d.ts +2 -2
  120. package/modern/desktop/Component.desktop.js +5 -4
  121. package/modern/desktop/desktop.css +4 -4
  122. package/modern/desktop/transitions.desktop.css +7 -7
  123. package/modern/layout.module-a3ff3ebd.js +4 -0
  124. package/modern/mobile/Component.mobile.js +3 -3
  125. package/modern/mobile/mobile.css +5 -5
  126. package/modern/mobile/transitions.mobile.css +8 -8
  127. package/modern/typings.d.ts +1 -1
  128. package/package.json +2 -2
  129. package/src/Component.responsive.tsx +2 -2
  130. package/src/components/content/Component.desktop.tsx +10 -3
  131. package/src/components/content/desktop.module.css +1 -1
  132. package/src/components/footer/Component.desktop.tsx +5 -3
  133. package/src/components/footer/desktop.module.css +1 -1
  134. package/src/components/header/Component.tsx +3 -2
  135. package/src/components/header/desktop.module.css +2 -2
  136. package/src/consts.ts +4 -0
  137. package/src/desktop/Component.desktop.tsx +4 -3
  138. package/src/desktop/desktop.module.css +1 -1
  139. package/src/mobile/Component.mobile.tsx +1 -1
  140. package/src/typings.ts +1 -1
  141. package/typings.d.ts +1 -1
  142. package/esm/layout.module-0f3296f1.js +0 -4
  143. package/layout.module-41a41938.js +0 -6
  144. package/modern/layout.module-d4e1a7fc.js +0 -4
@@ -1,5 +1,5 @@
1
- /* hash: 1i3lr */
2
- :root {
1
+ /* hash: lcwfe */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -31,35 +31,35 @@
31
31
  /* mobile */
32
32
 
33
33
  /* paddings */
34
- } .side-panel__column_526d4 {
34
+ } .side-panel__column_byffg {
35
35
  display: flex;
36
36
  flex-direction: column
37
- } .side-panel__column_526d4 > *:not(:last-child):not(:only-child) {
37
+ } .side-panel__column_byffg > *:not(:last-child):not(:only-child) {
38
38
  margin-bottom: var(--side-panel-footer-default-gap);
39
- } .side-panel__column_526d4.side-panel__gap-16_526d4 > *:not(:last-child):not(:only-child) {
39
+ } .side-panel__column_byffg.side-panel__gap-16_byffg > *:not(:last-child):not(:only-child) {
40
40
  margin-bottom: var(--gap-m);
41
- } .side-panel__column_526d4.side-panel__gap-24_526d4 > *:not(:last-child):not(:only-child) {
41
+ } .side-panel__column_byffg.side-panel__gap-24_byffg > *:not(:last-child):not(:only-child) {
42
42
  margin-bottom: var(--gap-xl);
43
- } .side-panel__column_526d4.side-panel__gap-32_526d4 > *:not(:last-child):not(:only-child) {
43
+ } .side-panel__column_byffg.side-panel__gap-32_byffg > *:not(:last-child):not(:only-child) {
44
44
  margin-bottom: var(--gap-2xl);
45
- } .side-panel__start_526d4 {
45
+ } .side-panel__start_byffg {
46
46
  justify-content: flex-start;
47
- } .side-panel__center_526d4 {
47
+ } .side-panel__center_byffg {
48
48
  justify-content: center;
49
- } .side-panel__space-between_526d4 {
49
+ } .side-panel__space-between_byffg {
50
50
  justify-content: space-between
51
- } .side-panel__space-between_526d4 > * {
51
+ } .side-panel__space-between_byffg > * {
52
52
  flex: 1;
53
- } .side-panel__start_526d4,
54
- .side-panel__center_526d4,
55
- .side-panel__space-between_526d4 {
53
+ } .side-panel__start_byffg,
54
+ .side-panel__center_byffg,
55
+ .side-panel__space-between_byffg {
56
56
  display: flex
57
- } .side-panel__start_526d4 > *:not(:last-child):not(:only-child), .side-panel__center_526d4 > *:not(:last-child):not(:only-child), .side-panel__space-between_526d4 > *:not(:last-child):not(:only-child) {
57
+ } .side-panel__start_byffg > *:not(:last-child):not(:only-child), .side-panel__center_byffg > *:not(:last-child):not(:only-child), .side-panel__space-between_byffg > *:not(:last-child):not(:only-child) {
58
58
  margin-right: var(--side-panel-footer-default-gap);
59
- } .side-panel__start_526d4.side-panel__gap-16_526d4 > *:not(:last-child):not(:only-child), .side-panel__center_526d4.side-panel__gap-16_526d4 > *:not(:last-child):not(:only-child), .side-panel__space-between_526d4.side-panel__gap-16_526d4 > *:not(:last-child):not(:only-child) {
59
+ } .side-panel__start_byffg.side-panel__gap-16_byffg > *:not(:last-child):not(:only-child), .side-panel__center_byffg.side-panel__gap-16_byffg > *:not(:last-child):not(:only-child), .side-panel__space-between_byffg.side-panel__gap-16_byffg > *:not(:last-child):not(:only-child) {
60
60
  margin-right: var(--gap-m);
61
- } .side-panel__start_526d4.side-panel__gap-24_526d4 > *:not(:last-child):not(:only-child), .side-panel__center_526d4.side-panel__gap-24_526d4 > *:not(:last-child):not(:only-child), .side-panel__space-between_526d4.side-panel__gap-24_526d4 > *:not(:last-child):not(:only-child) {
61
+ } .side-panel__start_byffg.side-panel__gap-24_byffg > *:not(:last-child):not(:only-child), .side-panel__center_byffg.side-panel__gap-24_byffg > *:not(:last-child):not(:only-child), .side-panel__space-between_byffg.side-panel__gap-24_byffg > *:not(:last-child):not(:only-child) {
62
62
  margin-right: var(--gap-xl);
63
- } .side-panel__start_526d4.side-panel__gap-32_526d4 > *:not(:last-child):not(:only-child), .side-panel__center_526d4.side-panel__gap-32_526d4 > *:not(:last-child):not(:only-child), .side-panel__space-between_526d4.side-panel__gap-32_526d4 > *:not(:last-child):not(:only-child) {
63
+ } .side-panel__start_byffg.side-panel__gap-32_byffg > *:not(:last-child):not(:only-child), .side-panel__center_byffg.side-panel__gap-32_byffg > *:not(:last-child):not(:only-child), .side-panel__space-between_byffg.side-panel__gap-32_byffg > *:not(:last-child):not(:only-child) {
64
64
  margin-right: var(--gap-2xl);
65
65
  }
@@ -1,5 +1,5 @@
1
- /* hash: 1jgw4 */
2
- :root {
1
+ /* hash: 2jlom */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .side-panel__footer_1gvw8 {
31
+ } .side-panel__footer_1pb2j {
32
32
  padding: var(--gap-m);
33
- } .side-panel__sticky_1gvw8 {
33
+ } .side-panel__sticky_1pb2j {
34
34
  bottom: 0;
35
35
  }
@@ -2,21 +2,22 @@ import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { NavigationBar } from '@alfalab/core-components-navigation-bar/modern';
4
4
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
5
+ import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
5
6
  import { ModalContext } from '../../Context.js';
6
7
  import { ResponsiveContext } from '../../ResponsiveContext.js';
7
8
 
8
- const desktopStyles = {"content":"side-panel__content_1eb4l","s":"side-panel__s_1eb4l","sticky":"side-panel__sticky_1eb4l"};
9
+ const desktopStyles = {"content":"side-panel__content_1l7do","size-500":"side-panel__size-500_1l7do","sticky":"side-panel__sticky_1l7do"};
9
10
  require('./desktop.css')
10
11
 
11
- const styles = {"header":"side-panel__header_burcp","hasContent":"side-panel__hasContent_burcp","highlighted":"side-panel__highlighted_burcp","sticky":"side-panel__sticky_burcp","backgroundImage":"side-panel__backgroundImage_burcp","content":"side-panel__content_burcp","title":"side-panel__title_burcp","addon":"side-panel__addon_burcp","closer":"side-panel__closer_burcp","right":"side-panel__right_burcp","trim":"side-panel__trim_burcp"};
12
+ const styles = {"header":"side-panel__header_1kghw","hasContent":"side-panel__hasContent_1kghw","highlighted":"side-panel__highlighted_1kghw","sticky":"side-panel__sticky_1kghw","backgroundImage":"side-panel__backgroundImage_1kghw","content":"side-panel__content_1kghw","title":"side-panel__title_1kghw","addon":"side-panel__addon_1kghw","closer":"side-panel__closer_1kghw","right":"side-panel__right_1kghw","trim":"side-panel__trim_1kghw"};
12
13
  require('./index.css')
13
14
 
14
- const mobileStyles = {"header":"side-panel__header_19khl","sticky":"side-panel__sticky_19khl","content":"side-panel__content_19khl"};
15
+ const mobileStyles = {"header":"side-panel__header_1hznw","sticky":"side-panel__sticky_1hznw","content":"side-panel__content_1hznw"};
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', dataTestId } = useContext(ResponsiveContext) || {};
20
+ const { size = 500, view = 'desktop', dataTestId } = useContext(ResponsiveContext) || {};
20
21
  useEffect(() => {
21
22
  setHasHeader(true);
22
23
  }, [setHasHeader]);
@@ -26,7 +27,7 @@ const Header = ({ className, children, contentClassName, title, sticky, hasClose
26
27
  [styles.sticky]: sticky,
27
28
  [styles.hasContent]: hasContent,
28
29
  [desktopStyles.sticky]: view === 'desktop' && sticky,
29
- [desktopStyles[size]]: view === 'desktop',
30
+ [desktopStyles[SIZE_TO_CLASSNAME_MAP[size]]]: view === 'desktop',
30
31
  [mobileStyles.sticky]: view === 'mobile' && sticky,
31
32
  [mobileStyles.header]: view === 'mobile',
32
33
  }), contentClassName: cn(contentClassName, {
@@ -1,5 +1,5 @@
1
- /* hash: 10xpk */
2
- :root {
1
+ /* hash: 3wcnb */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -37,15 +37,15 @@
37
37
  /* mobile */
38
38
 
39
39
  /* paddings */
40
- } .side-panel__content_1eb4l {
40
+ } .side-panel__content_1l7do {
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_1eb4l .side-panel__content_1eb4l {
43
+ } .side-panel__size-500_1l7do .side-panel__content_1l7do {
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_1eb4l {
47
+ } .side-panel__size-500_1l7do {
48
48
  padding: var(--side-panel-s-header-paddings);
49
- } .side-panel__sticky_1eb4l {
49
+ } .side-panel__sticky_1l7do {
50
50
  top: 0;
51
51
  }
@@ -1,5 +1,5 @@
1
- /* hash: rgmao */
2
- :root {
1
+ /* hash: 1tgdf */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
5
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 */
@@ -32,42 +32,42 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .side-panel__header_burcp {
35
+ } .side-panel__header_1kghw {
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_burcp:not(.side-panel__hasContent_burcp) {
39
+ } .side-panel__header_1kghw:not(.side-panel__hasContent_1kghw) {
40
40
  pointer-events: none;
41
- } .side-panel__highlighted_burcp {
41
+ } .side-panel__highlighted_1kghw {
42
42
  background: var(--side-panel-header-highlight-background);
43
43
  box-shadow: var(--side-panel-header-highlight-box-shadow);
44
- } .side-panel__sticky_burcp {
44
+ } .side-panel__sticky_1kghw {
45
45
  position: sticky;
46
46
  z-index: 1
47
- } .side-panel__sticky_burcp.side-panel__hasContent_burcp {
47
+ } .side-panel__sticky_1kghw.side-panel__hasContent_1kghw {
48
48
  background: var(--side-panel-header-background);
49
- } .side-panel__header_burcp.side-panel__backgroundImage_burcp {
49
+ } .side-panel__header_1kghw.side-panel__backgroundImage_1kghw {
50
50
  background: center no-repeat;
51
51
  background-size: cover;
52
- } .side-panel__content_burcp {
52
+ } .side-panel__content_1kghw {
53
53
  flex-grow: 1;
54
- } .side-panel__title_burcp {
54
+ } .side-panel__title_1kghw {
55
55
  word-break: break-word;
56
- } .side-panel__addon_burcp {
56
+ } .side-panel__addon_1kghw {
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_burcp {
63
+ } .side-panel__closer_1kghw {
64
64
  margin-left: auto;
65
- } .side-panel__right_burcp {
65
+ } .side-panel__right_1kghw {
66
66
  justify-content: flex-end;
67
67
  text-align: right;
68
- } .side-panel__trim_burcp {
68
+ } .side-panel__trim_1kghw {
69
69
  overflow: hidden
70
- } .side-panel__trim_burcp .side-panel__title_burcp {
70
+ } .side-panel__trim_1kghw .side-panel__title_1kghw {
71
71
  overflow: hidden;
72
72
  white-space: nowrap;
73
73
  text-overflow: ellipsis;
@@ -1,5 +1,5 @@
1
- /* hash: 4x6kf */
2
- :root {
1
+ /* hash: xfp7q */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :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_19khl {
41
+ } .side-panel__header_1hznw {
42
42
  padding: var(--side-panel-header-mobile-paddings);
43
- } .side-panel__sticky_19khl {
43
+ } .side-panel__sticky_1hznw {
44
44
  top: 0;
45
- } .side-panel__content_19khl {
45
+ } .side-panel__content_1hznw {
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);
@@ -0,0 +1,5 @@
1
+ declare const SIZE_TO_CLASSNAME_MAP: {
2
+ s: string;
3
+ 500: string;
4
+ };
5
+ export { SIZE_TO_CLASSNAME_MAP };
@@ -0,0 +1,6 @@
1
+ const SIZE_TO_CLASSNAME_MAP = {
2
+ s: 'size-500',
3
+ 500: 'size-500',
4
+ };
5
+
6
+ export { SIZE_TO_CLASSNAME_MAP };
@@ -9,7 +9,7 @@ type SidePanelDesktopProps = BaseModalProps & Pick<DrawerProps, 'placement' | 'n
9
9
  * Ширина модального окна
10
10
  * @default "s"
11
11
  */
12
- size?: 's';
12
+ size?: 's' | 500;
13
13
  /**
14
14
  * Управление наличием закрывающего крестика
15
15
  * @default false
@@ -21,7 +21,7 @@ declare const SidePanelDesktop: React.ForwardRefExoticComponent<BaseModalProps &
21
21
  * Ширина модального окна
22
22
  * @default "s"
23
23
  */
24
- size?: "s" | undefined;
24
+ size?: "s" | 500 | undefined;
25
25
  /**
26
26
  * Управление наличием закрывающего крестика
27
27
  * @default false
@@ -6,15 +6,16 @@ import { ContentDesktop } from '../components/content/Component.desktop.js';
6
6
  import { Controls } from '../components/controls/Component.js';
7
7
  import { FooterDesktop } from '../components/footer/Component.desktop.js';
8
8
  import { Header } from '../components/header/Component.js';
9
+ import { SIZE_TO_CLASSNAME_MAP } from '../consts.js';
9
10
  import { ResponsiveContext } from '../ResponsiveContext.js';
10
11
 
11
- const styles = {"s":"side-panel__s_17oje","hidden":"side-panel__hidden_17oje"};
12
+ const styles = {"size-500":"side-panel__size-500_is34y","hidden":"side-panel__hidden_is34y"};
12
13
  require('./desktop.css')
13
14
 
14
- const transitions = {"enterRight":"side-panel__enterRight_177m2","enterLeft":"side-panel__enterLeft_177m2","enterActive":"side-panel__enterActive_177m2","exit":"side-panel__exit_177m2","exitActiveRight":"side-panel__exitActiveRight_177m2","exitActiveLeft":"side-panel__exitActiveLeft_177m2"};
15
+ const transitions = {"enterRight":"side-panel__enterRight_ib5tc","enterLeft":"side-panel__enterLeft_ib5tc","enterActive":"side-panel__enterActive_ib5tc","exit":"side-panel__exit_ib5tc","exitActiveRight":"side-panel__exitActiveRight_ib5tc","exitActiveLeft":"side-panel__exitActiveLeft_ib5tc"};
15
16
  require('./transitions.desktop.css')
16
17
 
17
- const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', dataTestId, ...restProps }, ref) => {
18
+ const SidePanelDesktopComponent = forwardRef(({ size = 500, children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', dataTestId, ...restProps }, ref) => {
18
19
  const responsiveContext = useContext(ResponsiveContext);
19
20
  const modalRef = useRef(null);
20
21
  const enterCn = cn({
@@ -26,7 +27,7 @@ const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className,
26
27
  [transitions.exitActiveLeft]: placement === 'left',
27
28
  });
28
29
  const contextValue = React.useMemo(() => ({ size, view: 'desktop', dataTestId }), [size, dataTestId]);
29
- 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: {
30
+ const renderContent = () => (React.createElement(Drawer, { ...restProps, dataTestId: dataTestId, ref: mergeRefs([ref, modalRef]), placement: placement, wrapperClassName: wrapperClassName, className: cn(className, styles[SIZE_TO_CLASSNAME_MAP[size]], styles.hidden), backdropProps: backdropProps, contentTransitionProps: {
30
31
  classNames: {
31
32
  appear: enterCn,
32
33
  enter: enterCn,
@@ -1,5 +1,5 @@
1
- /* hash: 1t36p */
2
- :root {
1
+ /* hash: 15vut */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .side-panel__s_17oje.side-panel__s_17oje {
31
+ } .side-panel__size-500_is34y.side-panel__size-500_is34y {
32
32
  width: var(--side-panel-s-width);
33
- } .side-panel__hidden_17oje {
33
+ } .side-panel__hidden_is34y {
34
34
  overflow-x: hidden;
35
35
  }
@@ -1,32 +1,32 @@
1
- /* hash: 1d6j0 */
2
- .side-panel__enterRight_177m2 {
1
+ /* hash: 1vacm */
2
+ .side-panel__enterRight_ib5tc {
3
3
  opacity: 0;
4
4
  transform: translateX(15px);
5
5
  }
6
6
 
7
- .side-panel__enterLeft_177m2 {
7
+ .side-panel__enterLeft_ib5tc {
8
8
  opacity: 0;
9
9
  transform: translateX(-15px);
10
10
  }
11
11
 
12
- .side-panel__enterActive_177m2 {
12
+ .side-panel__enterActive_ib5tc {
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_177m2 {
18
+ .side-panel__exit_ib5tc {
19
19
  opacity: 1;
20
20
  transform: translateX(0);
21
21
  }
22
22
 
23
- .side-panel__exitActiveRight_177m2 {
23
+ .side-panel__exitActiveRight_ib5tc {
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_177m2 {
29
+ .side-panel__exitActiveLeft_ib5tc {
30
30
  opacity: 0;
31
31
  transition: opacity 200ms ease-out, transform 200ms ease-out;
32
32
  transform: translateX(-15px);
@@ -0,0 +1,4 @@
1
+ const layoutStyles = {"column":"side-panel__column_byffg","gap-16":"side-panel__gap-16_byffg","gap-24":"side-panel__gap-24_byffg","gap-32":"side-panel__gap-32_byffg","start":"side-panel__start_byffg","center":"side-panel__center_byffg","space-between":"side-panel__space-between_byffg"};
2
+ require('./components/footer/layout.css')
3
+
4
+ export { layoutStyles as l };
@@ -7,15 +7,15 @@ import { FooterMobile } from '../components/footer/Component.mobile.js';
7
7
  import { Header } from '../components/header/Component.js';
8
8
  import { ResponsiveContext } from '../ResponsiveContext.js';
9
9
 
10
- const styles = {"component":"side-panel__component_w2fka","mobileContent":"side-panel__mobileContent_w2fka"};
10
+ const styles = {"component":"side-panel__component_5n22c","mobileContent":"side-panel__mobileContent_5n22c"};
11
11
  require('./mobile.css')
12
12
 
13
- const transitions = {"appear":"side-panel__appear_1hozl","enter":"side-panel__enter_1hozl","appearActive":"side-panel__appearActive_1hozl","enterActive":"side-panel__enterActive_1hozl","exit":"side-panel__exit_1hozl","exitActive":"side-panel__exitActive_1hozl","exitDone":"side-panel__exitDone_1hozl"};
13
+ const transitions = {"appear":"side-panel__appear_r9m3h","enter":"side-panel__enter_r9m3h","appearActive":"side-panel__appearActive_r9m3h","enterActive":"side-panel__enterActive_r9m3h","exit":"side-panel__exit_r9m3h","exitActive":"side-panel__exitActive_r9m3h","exitDone":"side-panel__exitDone_r9m3h"};
14
14
  require('./transitions.mobile.css')
15
15
 
16
16
  const SidePanelMobileComponent = forwardRef(({ children, className, transitionProps, dataTestId, ...restProps }, ref) => {
17
17
  const responsiveContext = useContext(ResponsiveContext);
18
- const contextValue = useMemo(() => ({ size: 's', view: 'mobile', dataTestId }), [dataTestId]);
18
+ const contextValue = useMemo(() => ({ size: 500, view: 'mobile', dataTestId }), [dataTestId]);
19
19
  const renderContent = () => (React.createElement(BaseModal, { ...restProps, dataTestId: dataTestId, ref: ref, transitionProps: {
20
20
  classNames: transitions,
21
21
  ...transitionProps,
@@ -1,5 +1,5 @@
1
- /* hash: 1rtty */
2
- :root {
1
+ /* hash: v34n4 */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -27,17 +27,17 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .side-panel__component_w2fka {
30
+ } .side-panel__component_5n22c {
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_w2fka.side-panel__component_w2fka {
37
+ } .side-panel__component_5n22c.side-panel__component_5n22c {
38
38
  position: fixed;
39
39
  flex: 1;
40
- } .side-panel__mobileContent_w2fka {
40
+ } .side-panel__mobileContent_5n22c {
41
41
  display: flex;
42
42
  flex-direction: column;
43
43
  width: 100%;
@@ -1,24 +1,24 @@
1
- /* hash: 1kply */
2
- .side-panel__appear_1hozl,
3
- .side-panel__enter_1hozl {
1
+ /* hash: no91n */
2
+ .side-panel__appear_r9m3h,
3
+ .side-panel__enter_r9m3h {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .side-panel__appearActive_1hozl,
9
- .side-panel__enterActive_1hozl {
8
+ .side-panel__appearActive_r9m3h,
9
+ .side-panel__enterActive_r9m3h {
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_1hozl {
15
+ .side-panel__exit_r9m3h {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .side-panel__exitActive_1hozl,
21
- .side-panel__exitDone_1hozl {
20
+ .side-panel__exitActive_r9m3h,
21
+ .side-panel__exitDone_r9m3h {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
@@ -1,7 +1,7 @@
1
1
  type View = 'desktop' | 'mobile';
2
2
  type TResponsiveModalContext = {
3
3
  view: View;
4
- size: 's';
4
+ size: 's' | 500;
5
5
  dataTestId?: string;
6
6
  } | null;
7
7
  export { View, TResponsiveModalContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-side-panel",
3
- "version": "5.1.2",
3
+ "version": "5.2.1",
4
4
  "description": "SidePanel component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "@alfalab/core-components-base-modal": "^5.7.2",
18
18
  "@alfalab/core-components-drawer": "^5.0.8",
19
19
  "@alfalab/core-components-mq": "^4.2.0",
20
- "@alfalab/core-components-navigation-bar": "^0.8.3",
20
+ "@alfalab/core-components-navigation-bar": "^0.8.5",
21
21
  "@alfalab/core-components-shared": "^0.9.1",
22
22
  "classnames": "^2.3.1",
23
23
  "react-merge-refs": "^1.1.0",
@@ -18,7 +18,7 @@ export type SidePanelResponsiveProps = BaseModalProps &
18
18
  * Ширина модального окна
19
19
  * @default "s"
20
20
  */
21
- size?: 's';
21
+ size?: 's' | 500;
22
22
 
23
23
  /**
24
24
  * Управление наличием закрывающего крестика
@@ -59,7 +59,7 @@ const SidePanelResponsiveComponent = forwardRef<HTMLDivElement, SidePanelRespons
59
59
  {
60
60
  children,
61
61
  breakpoint = 1024,
62
- size = 's',
62
+ size = 500,
63
63
  defaultMatchMediaValue,
64
64
  dataTestId,
65
65
  ...restProps
@@ -1,6 +1,8 @@
1
1
  import React, { FC } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
+ import { SIZE_TO_CLASSNAME_MAP } from '../../consts';
5
+
4
6
  import { Content, ContentProps } from './Component';
5
7
 
6
8
  import styles from './desktop.module.css';
@@ -9,11 +11,16 @@ export type ContentDesktopProps = ContentProps & {
9
11
  /**
10
12
  * Размер (только для desktop версии компонента)
11
13
  */
12
- size?: 's';
14
+ size?: 's' | 500;
13
15
  };
14
16
 
15
17
  export const ContentDesktop: FC<ContentDesktopProps> = ({
16
- size = 's',
18
+ size = 500,
17
19
  className,
18
20
  ...restProps
19
- }) => <Content className={cn(className, size && styles[size])} {...restProps} />;
21
+ }) => (
22
+ <Content
23
+ className={cn(className, size && styles[SIZE_TO_CLASSNAME_MAP[size]])}
24
+ {...restProps}
25
+ />
26
+ );
@@ -1,6 +1,6 @@
1
1
  @import '../../vars.css';
2
2
 
3
- .s {
3
+ .size-500 {
4
4
  padding: var(--side-panel-s-content-paddings);
5
5
 
6
6
  &:last-child {
@@ -1,6 +1,8 @@
1
1
  import React, { FC } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
+ import { SIZE_TO_CLASSNAME_MAP } from '../../consts';
5
+
4
6
  import { Footer, FooterProps } from './Component';
5
7
 
6
8
  import styles from './desktop.module.css';
@@ -9,17 +11,17 @@ export type FooterDesktopProps = FooterProps & {
9
11
  /**
10
12
  * Размер (только для desktop версии компонента)
11
13
  */
12
- size?: 's';
14
+ size?: 's' | 500;
13
15
  };
14
16
 
15
17
  export const FooterDesktop: FC<FooterDesktopProps> = ({
16
- size = 's',
18
+ size = 500,
17
19
  className,
18
20
  sticky,
19
21
  ...restProps
20
22
  }) => (
21
23
  <Footer
22
- className={cn(className, size && styles[size], {
24
+ className={cn(className, size && styles[SIZE_TO_CLASSNAME_MAP[size]], {
23
25
  [styles.sticky]: sticky,
24
26
  })}
25
27
  sticky={sticky}
@@ -4,6 +4,6 @@
4
4
  bottom: 0;
5
5
  }
6
6
 
7
- .s {
7
+ .size-500 {
8
8
  padding: var(--side-panel-s-footer-paddings);
9
9
  }