@alfalab/core-components-side-panel 2.4.2 → 2.5.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 (138) hide show
  1. package/Component.desktop.js +17 -19
  2. package/Component.mobile.js +13 -15
  3. package/Component.responsive.d.ts +10 -0
  4. package/Component.responsive.js +22 -24
  5. package/Context.js +0 -2
  6. package/components/closer/Component.js +9 -11
  7. package/components/closer/index.css +4 -4
  8. package/components/content/Component.desktop.js +8 -10
  9. package/components/content/Component.js +6 -8
  10. package/components/content/Component.mobile.js +8 -10
  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 +8 -10
  15. package/components/footer/Component.js +7 -9
  16. package/components/footer/Component.mobile.js +8 -10
  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 +11 -13
  22. package/components/header/Component.js +12 -14
  23. package/components/header/Component.mobile.js +13 -15
  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.js +28 -30
  28. package/cssm/Component.mobile.js +19 -21
  29. package/cssm/Component.responsive.d.ts +10 -0
  30. package/cssm/Component.responsive.js +28 -30
  31. package/cssm/Context.js +0 -2
  32. package/cssm/components/closer/Component.js +10 -12
  33. package/cssm/components/content/Component.desktop.js +9 -11
  34. package/cssm/components/content/Component.js +6 -8
  35. package/cssm/components/content/Component.mobile.js +9 -11
  36. package/cssm/components/footer/Component.desktop.js +10 -12
  37. package/cssm/components/footer/Component.js +9 -11
  38. package/cssm/components/footer/Component.mobile.js +10 -12
  39. package/cssm/components/header/Component.desktop.js +15 -17
  40. package/cssm/components/header/Component.js +17 -19
  41. package/cssm/components/header/Component.mobile.js +16 -18
  42. package/cssm/desktop.d.ts +1 -0
  43. package/cssm/desktop.js +10 -12
  44. package/cssm/index.js +21 -23
  45. package/cssm/mobile.d.ts +1 -0
  46. package/cssm/mobile.js +12 -14
  47. package/cssm/responsive.d.ts +1 -0
  48. package/cssm/responsive.js +20 -22
  49. package/cssm/{tslib.es6-9682e485.d.ts → tslib.es6-bbd6cd2a.d.ts} +0 -0
  50. package/cssm/{tslib.es6-9682e485.js → tslib.es6-bbd6cd2a.js} +0 -0
  51. package/desktop.css +3 -3
  52. package/desktop.d.ts +1 -0
  53. package/desktop.js +8 -10
  54. package/esm/Component.desktop.js +9 -9
  55. package/esm/Component.mobile.js +9 -9
  56. package/esm/Component.responsive.d.ts +10 -0
  57. package/esm/Component.responsive.js +16 -16
  58. package/esm/components/closer/Component.js +4 -4
  59. package/esm/components/closer/index.css +4 -4
  60. package/esm/components/content/Component.desktop.js +4 -4
  61. package/esm/components/content/Component.js +2 -2
  62. package/esm/components/content/Component.mobile.js +4 -4
  63. package/esm/components/content/desktop.css +3 -3
  64. package/esm/components/content/index.css +3 -3
  65. package/esm/components/content/mobile.css +3 -3
  66. package/esm/components/footer/Component.desktop.js +4 -4
  67. package/esm/components/footer/Component.js +4 -4
  68. package/esm/components/footer/Component.mobile.js +4 -4
  69. package/esm/components/footer/desktop.css +3 -3
  70. package/esm/components/footer/index.css +4 -4
  71. package/esm/components/footer/layout.css +25 -25
  72. package/esm/components/footer/mobile.css +3 -3
  73. package/esm/components/header/Component.desktop.js +5 -5
  74. package/esm/components/header/Component.js +4 -4
  75. package/esm/components/header/Component.mobile.js +6 -6
  76. package/esm/components/header/desktop.css +6 -6
  77. package/esm/components/header/index.css +16 -16
  78. package/esm/components/header/mobile.css +3 -3
  79. package/esm/desktop.css +3 -3
  80. package/esm/desktop.d.ts +1 -0
  81. package/esm/desktop.js +8 -8
  82. package/esm/index.js +14 -14
  83. package/esm/mobile.css +2 -2
  84. package/esm/mobile.d.ts +1 -0
  85. package/esm/mobile.js +8 -8
  86. package/esm/responsive.d.ts +1 -0
  87. package/esm/responsive.js +14 -14
  88. package/esm/transitions.desktop.css +7 -7
  89. package/esm/transitions.mobile.css +8 -8
  90. package/esm/{tslib.es6-c40b6a1b.d.ts → tslib.es6-d226871d.d.ts} +0 -0
  91. package/esm/{tslib.es6-c40b6a1b.js → tslib.es6-d226871d.js} +0 -0
  92. package/index.js +15 -17
  93. package/mobile.css +2 -2
  94. package/mobile.d.ts +1 -0
  95. package/mobile.js +8 -10
  96. package/modern/Component.desktop.js +8 -8
  97. package/modern/Component.mobile.js +8 -8
  98. package/modern/Component.responsive.d.ts +10 -0
  99. package/modern/Component.responsive.js +15 -15
  100. package/modern/components/closer/Component.js +3 -3
  101. package/modern/components/closer/index.css +4 -4
  102. package/modern/components/content/Component.desktop.js +3 -3
  103. package/modern/components/content/Component.js +2 -2
  104. package/modern/components/content/Component.mobile.js +3 -3
  105. package/modern/components/content/desktop.css +3 -3
  106. package/modern/components/content/index.css +3 -3
  107. package/modern/components/content/mobile.css +3 -3
  108. package/modern/components/footer/Component.desktop.js +3 -3
  109. package/modern/components/footer/Component.js +3 -3
  110. package/modern/components/footer/Component.mobile.js +3 -3
  111. package/modern/components/footer/desktop.css +3 -3
  112. package/modern/components/footer/index.css +4 -4
  113. package/modern/components/footer/layout.css +25 -25
  114. package/modern/components/footer/mobile.css +3 -3
  115. package/modern/components/header/Component.desktop.js +4 -4
  116. package/modern/components/header/Component.js +2 -2
  117. package/modern/components/header/Component.mobile.js +5 -5
  118. package/modern/components/header/desktop.css +6 -6
  119. package/modern/components/header/index.css +16 -16
  120. package/modern/components/header/mobile.css +3 -3
  121. package/modern/desktop.css +3 -3
  122. package/modern/desktop.d.ts +1 -0
  123. package/modern/desktop.js +7 -7
  124. package/modern/index.js +13 -13
  125. package/modern/mobile.css +2 -2
  126. package/modern/mobile.d.ts +1 -0
  127. package/modern/mobile.js +7 -7
  128. package/modern/responsive.d.ts +1 -0
  129. package/modern/responsive.js +13 -13
  130. package/modern/transitions.desktop.css +7 -7
  131. package/modern/transitions.mobile.css +8 -8
  132. package/package.json +5 -5
  133. package/responsive.d.ts +1 -0
  134. package/responsive.js +14 -16
  135. package/transitions.desktop.css +7 -7
  136. package/transitions.mobile.css +8 -8
  137. /package/{tslib.es6-652400ff.d.ts → tslib.es6-e6454e7b.d.ts} +0 -0
  138. /package/{tslib.es6-652400ff.js → tslib.es6-e6454e7b.js} +0 -0
package/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: tpmf9 */
1
+ /* hash: 1xwmf */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -19,7 +19,7 @@
19
19
 
20
20
  /* mobile */
21
21
  }
22
- .side-panel__component_yotbk {
22
+ .side-panel__component_11jxq {
23
23
  flex: 1;
24
24
  width: 100%;
25
25
  }
package/mobile.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./Component.mobile";
2
+ export {};
package/mobile.js CHANGED
@@ -1,22 +1,20 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('./tslib.es6-652400ff.js');
3
+ var Component_mobile = require('./Component.mobile.js');
4
+ require('./tslib.es6-e6454e7b.js');
6
5
  require('react');
7
6
  require('classnames');
8
7
  require('@alfalab/core-components-base-modal');
9
- require('./Context.js');
8
+ require('./components/content/Component.mobile.js');
10
9
  require('./components/content/Component.js');
10
+ require('./Context.js');
11
+ require('./components/footer/Component.mobile.js');
11
12
  require('./components/footer/Component.js');
12
- require('@alfalab/core-components-icon-button');
13
+ require('./components/header/Component.mobile.js');
14
+ require('@alfalab/icons-glyph/CrossMIcon');
13
15
  require('./components/closer/Component.js');
16
+ require('@alfalab/core-components-icon-button');
14
17
  require('./components/header/Component.js');
15
- require('./components/content/Component.mobile.js');
16
- require('./components/footer/Component.mobile.js');
17
- require('@alfalab/icons-glyph/CrossMIcon');
18
- require('./components/header/Component.mobile.js');
19
- var Component_mobile = require('./Component.mobile.js');
20
18
 
21
19
 
22
20
 
@@ -2,22 +2,22 @@ import React, { forwardRef, useRef, isValidElement, cloneElement } from 'react';
2
2
  import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
  import { Drawer } from '@alfalab/core-components-drawer/modern';
5
- import '@alfalab/core-components-base-modal/modern';
6
- import './Context.js';
7
- import './components/content/Component.js';
8
5
  import { ContentDesktop } from './components/content/Component.desktop.js';
9
- import './components/footer/Component.js';
10
6
  import { FooterDesktop } from './components/footer/Component.desktop.js';
7
+ import { HeaderDesktop } from './components/header/Component.desktop.js';
8
+ import './components/content/Component.js';
9
+ import './Context.js';
10
+ import '@alfalab/core-components-base-modal/modern';
11
+ import './components/footer/Component.js';
11
12
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
12
- import '@alfalab/core-components-icon-button/modern';
13
13
  import './components/closer/Component.js';
14
+ import '@alfalab/core-components-icon-button/modern';
14
15
  import './components/header/Component.js';
15
- import { HeaderDesktop } from './components/header/Component.desktop.js';
16
16
 
17
- var styles = {"s":"side-panel__s_1r5ts","hidden":"side-panel__hidden_1r5ts"};
17
+ const styles = {"s":"side-panel__s_mpobc","hidden":"side-panel__hidden_mpobc"};
18
18
  require('./desktop.css')
19
19
 
20
- var transitions = {"enterRight":"side-panel__enterRight_zmc86","enterLeft":"side-panel__enterLeft_zmc86","enterActive":"side-panel__enterActive_zmc86","exit":"side-panel__exit_zmc86","exitActiveRight":"side-panel__exitActiveRight_zmc86","exitActiveLeft":"side-panel__exitActiveLeft_zmc86"};
20
+ const transitions = {"enterRight":"side-panel__enterRight_1u7at","enterLeft":"side-panel__enterLeft_1u7at","enterActive":"side-panel__enterActive_1u7at","exit":"side-panel__exit_1u7at","exitActiveRight":"side-panel__exitActiveRight_1u7at","exitActiveLeft":"side-panel__exitActiveLeft_1u7at"};
21
21
  require('./transitions.desktop.css')
22
22
 
23
23
  const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', ...restProps }, ref) => {
@@ -1,21 +1,21 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { BaseModal } from '@alfalab/core-components-base-modal/modern';
4
- import './Context.js';
4
+ import { ContentMobile } from './components/content/Component.mobile.js';
5
+ import { FooterMobile } from './components/footer/Component.mobile.js';
6
+ import { HeaderMobile } from './components/header/Component.mobile.js';
5
7
  import './components/content/Component.js';
8
+ import './Context.js';
6
9
  import './components/footer/Component.js';
7
- import '@alfalab/core-components-icon-button/modern';
10
+ import '@alfalab/icons-glyph/CrossMIcon';
8
11
  import './components/closer/Component.js';
12
+ import '@alfalab/core-components-icon-button/modern';
9
13
  import './components/header/Component.js';
10
- import { ContentMobile } from './components/content/Component.mobile.js';
11
- import { FooterMobile } from './components/footer/Component.mobile.js';
12
- import '@alfalab/icons-glyph/CrossMIcon';
13
- import { HeaderMobile } from './components/header/Component.mobile.js';
14
14
 
15
- var styles = {"component":"side-panel__component_yotbk"};
15
+ const styles = {"component":"side-panel__component_11jxq"};
16
16
  require('./mobile.css')
17
17
 
18
- var transitions = {"appear":"side-panel__appear_d5nnt","enter":"side-panel__enter_d5nnt","appearActive":"side-panel__appearActive_d5nnt","enterActive":"side-panel__enterActive_d5nnt","exit":"side-panel__exit_d5nnt","exitActive":"side-panel__exitActive_d5nnt","exitDone":"side-panel__exitDone_d5nnt"};
18
+ const transitions = {"appear":"side-panel__appear_g0s2m","enter":"side-panel__enter_g0s2m","appearActive":"side-panel__appearActive_g0s2m","enterActive":"side-panel__enterActive_g0s2m","exit":"side-panel__exit_g0s2m","exitActive":"side-panel__exitActive_g0s2m","exitDone":"side-panel__exitDone_g0s2m"};
19
19
  require('./transitions.mobile.css')
20
20
 
21
21
  const SidePanelMobileComponent = forwardRef(({ children, className, transitionProps, ...restProps }, ref) => (React.createElement(BaseModal, { ...restProps, ref: ref, transitionProps: {
@@ -13,6 +13,11 @@ type SidePanelResponsiveProps = BaseModalProps & Pick<DrawerProps, 'contentTrans
13
13
  * @default false
14
14
  */
15
15
  hasCloser?: boolean;
16
+ /**
17
+ * Контрольная точка, с нее начинается desktop версия
18
+ * @default 1024
19
+ */
20
+ breakpoint?: number;
16
21
  };
17
22
  declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProps & Pick<DrawerProps, "contentTransitionProps" | "nativeScrollbar" | "placement" | "scrollbarProps"> & {
18
23
  /**
@@ -25,6 +30,11 @@ declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProp
25
30
  * @default false
26
31
  */
27
32
  hasCloser?: boolean | undefined;
33
+ /**
34
+ * Контрольная точка, с нее начинается desktop версия
35
+ * @default 1024
36
+ */
37
+ breakpoint?: number | undefined;
28
38
  } & React.RefAttributes<HTMLDivElement>> & {
29
39
  Header: React.FC<import("./components/header/Component.desktop").HeaderDesktopProps> | React.FC<import("./components/header/Component.mobile").HeaderMobileProps>;
30
40
  Content: React.FC<import("./components/content/Component").ContentProps> | React.FC<import("./components/content/Component.desktop").ContentDesktopProps>;
@@ -1,25 +1,25 @@
1
1
  import React, { forwardRef, useMemo, useContext } from 'react';
2
- import 'react-merge-refs';
2
+ import { useMedia } from '@alfalab/hooks';
3
+ import { Closer } from './components/closer/Component.js';
4
+ import { SidePanelDesktop } from './Component.desktop.js';
5
+ import { SidePanelMobile } from './Component.mobile.js';
3
6
  import 'classnames';
4
- import '@alfalab/core-components-drawer/modern';
5
- import '@alfalab/core-components-base-modal/modern';
7
+ import '@alfalab/core-components-icon-button/modern';
6
8
  import './Context.js';
7
- import './components/content/Component.js';
9
+ import '@alfalab/core-components-base-modal/modern';
10
+ import 'react-merge-refs';
11
+ import '@alfalab/core-components-drawer/modern';
8
12
  import './components/content/Component.desktop.js';
9
- import './components/footer/Component.js';
13
+ import './components/content/Component.js';
10
14
  import './components/footer/Component.desktop.js';
15
+ import './components/footer/Component.js';
16
+ import './components/header/Component.desktop.js';
11
17
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
12
- import '@alfalab/core-components-icon-button/modern';
13
- import { Closer } from './components/closer/Component.js';
14
18
  import './components/header/Component.js';
15
- import './components/header/Component.desktop.js';
16
- import { SidePanelDesktop } from './Component.desktop.js';
17
19
  import './components/content/Component.mobile.js';
18
20
  import './components/footer/Component.mobile.js';
19
- import '@alfalab/icons-glyph/CrossMIcon';
20
21
  import './components/header/Component.mobile.js';
21
- import { SidePanelMobile } from './Component.mobile.js';
22
- import { useMedia } from '@alfalab/hooks';
22
+ import '@alfalab/icons-glyph/CrossMIcon';
23
23
 
24
24
  // eslint-disable-next-line @typescript-eslint/no-redeclare
25
25
  const ResponsiveContext = React.createContext({
@@ -33,10 +33,10 @@ function createResponsive(desktop, mobile) {
33
33
  }
34
34
  return ResponsiveChild;
35
35
  }
36
- const SidePanelResponsiveComponent = forwardRef(({ children, ...restProps }, ref) => {
36
+ const SidePanelResponsiveComponent = forwardRef(({ children, breakpoint = 1024, ...restProps }, ref) => {
37
37
  const [view] = useMedia([
38
- ['mobile', '(max-width: 1023px)'],
39
- ['desktop', '(min-width: 1024px)'],
38
+ ['mobile', `(max-width: ${breakpoint - 1}px)`],
39
+ ['desktop', `(min-width: ${breakpoint}px)`],
40
40
  ], 'desktop');
41
41
  const contextValue = useMemo(() => ({ view }), [view]);
42
42
  const Component = view === 'desktop' ? SidePanelDesktop : SidePanelMobile;
@@ -1,10 +1,10 @@
1
1
  import React, { useContext, useCallback } from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
- import { ModalContext } from '../../Context.js';
5
3
  import { IconButton } from '@alfalab/core-components-icon-button/modern';
4
+ import { ModalContext } from '../../Context.js';
5
+ import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- var styles = {"closer":"side-panel__closer_11w5u","button":"side-panel__button_11w5u","sticky":"side-panel__sticky_11w5u"};
7
+ const styles = {"closer":"side-panel__closer_vifym","button":"side-panel__button_vifym","sticky":"side-panel__sticky_vifym"};
8
8
  require('./index.css')
9
9
 
10
10
  /**
@@ -1,4 +1,4 @@
1
- /* hash: opuub */
1
+ /* hash: 1ldvq */
2
2
  :root {
3
3
  --color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
4
4
  }
@@ -25,7 +25,7 @@
25
25
  :root {
26
26
  --side-panel-closer-bg-color: var(--color-light-bg-primary-alpha-40);
27
27
  }
28
- .side-panel__closer_11w5u {
28
+ .side-panel__closer_vifym {
29
29
  flex-shrink: 0;
30
30
  width: 48px;
31
31
  height: 48px;
@@ -34,13 +34,13 @@
34
34
  align-items: center;
35
35
  justify-content: center;
36
36
  }
37
- .side-panel__button_11w5u {
37
+ .side-panel__button_vifym {
38
38
  background: var(--side-panel-closer-bg-color);
39
39
  -webkit-backdrop-filter: blur(10px);
40
40
  backdrop-filter: blur(10px);
41
41
  border-radius: 50px;
42
42
  }
43
- .side-panel__sticky_11w5u {
43
+ .side-panel__sticky_vifym {
44
44
  position: sticky;
45
45
  top: 0;
46
46
  }
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
- import '../../Context.js';
5
3
  import { Content } from './Component.js';
4
+ import '../../Context.js';
5
+ import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- var styles = {"s":"side-panel__s_oysm9"};
7
+ const styles = {"s":"side-panel__s_m3o7g"};
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 });
@@ -1,9 +1,9 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
3
  import { ModalContext } from '../../Context.js';
4
+ import '@alfalab/core-components-base-modal/modern';
5
5
 
6
- var styles = {"content":"side-panel__content_ibo4z","flex":"side-panel__flex_ibo4z"};
6
+ const styles = {"content":"side-panel__content_1gf86","flex":"side-panel__flex_1gf86"};
7
7
  require('./index.css')
8
8
 
9
9
  const Content = ({ children, className, dataTestId }) => {
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
- import '../../Context.js';
5
3
  import { Content } from './Component.js';
4
+ import '../../Context.js';
5
+ import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- var styles = {"content":"side-panel__content_1rncn"};
7
+ const styles = {"content":"side-panel__content_x2e2a"};
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: c7qlv */
1
+ /* hash: 171un */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -23,9 +23,9 @@
23
23
 
24
24
  /* mobile */
25
25
  }
26
- .side-panel__s_oysm9 {
26
+ .side-panel__s_m3o7g {
27
27
  padding: var(--side-panel-s-content-paddings)
28
28
  }
29
- .side-panel__s_oysm9:last-child {
29
+ .side-panel__s_m3o7g:last-child {
30
30
  padding-bottom: var(--gap-2xl);
31
31
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1yshh */
1
+ /* hash: ulhh3 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -19,10 +19,10 @@
19
19
 
20
20
  /* mobile */
21
21
  }
22
- .side-panel__content_ibo4z {
22
+ .side-panel__content_1gf86 {
23
23
  box-sizing: border-box;
24
24
  width: 100%;
25
25
  }
26
- .side-panel__flex_ibo4z {
26
+ .side-panel__flex_1gf86 {
27
27
  flex: 1 1 auto;
28
28
  }
@@ -1,4 +1,4 @@
1
- /* hash: 213yv */
1
+ /* hash: 1080y */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -22,9 +22,9 @@
22
22
 
23
23
  /* mobile */
24
24
  }
25
- .side-panel__content_1rncn {
25
+ .side-panel__content_x2e2a {
26
26
  padding: 0 var(--gap-m)
27
27
  }
28
- .side-panel__content_1rncn:last-child {
28
+ .side-panel__content_x2e2a:last-child {
29
29
  padding-bottom: var(--gap-m);
30
30
  }
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
- import '../../Context.js';
5
3
  import { Footer } from './Component.js';
4
+ import '../../Context.js';
5
+ import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- var styles = {"sticky":"side-panel__sticky_16uzx","s":"side-panel__s_16uzx"};
7
+ const styles = {"sticky":"side-panel__sticky_5xfxi","s":"side-panel__s_5xfxi"};
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], {
@@ -1,12 +1,12 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
3
  import { ModalContext } from '../../Context.js';
4
+ import '@alfalab/core-components-base-modal/modern';
5
5
 
6
- var styles = {"footer":"side-panel__footer_13yej","sticky":"side-panel__sticky_13yej","highlighted":"side-panel__highlighted_13yej"};
6
+ const styles = {"footer":"side-panel__footer_113a4","sticky":"side-panel__sticky_113a4","highlighted":"side-panel__highlighted_113a4"};
7
7
  require('./index.css')
8
8
 
9
- var layoutStyles = {"column":"side-panel__column_87pa7","gap-16":"side-panel__gap-16_87pa7","gap-24":"side-panel__gap-24_87pa7","gap-32":"side-panel__gap-32_87pa7","start":"side-panel__start_87pa7","center":"side-panel__center_87pa7","space-between":"side-panel__space-between_87pa7"};
9
+ const layoutStyles = {"column":"side-panel__column_16b9c","gap-16":"side-panel__gap-16_16b9c","gap-24":"side-panel__gap-24_16b9c","gap-32":"side-panel__gap-32_16b9c","start":"side-panel__start_16b9c","center":"side-panel__center_16b9c","space-between":"side-panel__space-between_16b9c"};
10
10
  require('./layout.css')
11
11
 
12
12
  const Footer = ({ children, className, sticky, layout = 'start', gap, dataTestId, }) => {
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
- import '../../Context.js';
5
3
  import { Footer } from './Component.js';
4
+ import '../../Context.js';
5
+ import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- var styles = {"footer":"side-panel__footer_qfi01","sticky":"side-panel__sticky_qfi01"};
7
+ const styles = {"footer":"side-panel__footer_wt7vw","sticky":"side-panel__sticky_wt7vw"};
8
8
  require('./mobile.css')
9
9
 
10
10
  const FooterMobile = ({ className, sticky, ...restProps }) => (React.createElement(Footer, { className: cn(className, styles.footer, {
@@ -1,4 +1,4 @@
1
- /* hash: xywl8 */
1
+ /* hash: 9ibqp */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -24,9 +24,9 @@
24
24
 
25
25
  /* mobile */
26
26
  }
27
- .side-panel__sticky_16uzx {
27
+ .side-panel__sticky_5xfxi {
28
28
  bottom: 0;
29
29
  }
30
- .side-panel__s_16uzx {
30
+ .side-panel__s_5xfxi {
31
31
  padding: var(--side-panel-s-footer-paddings);
32
32
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1a4us */
1
+ /* hash: lo9y8 */
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_13yej {
29
+ .side-panel__footer_113a4 {
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_13yej {
34
+ .side-panel__sticky_113a4 {
35
35
  background: var(--side-panel-footer-background);
36
36
  position: sticky;
37
37
  z-index: 1;
38
38
  }
39
- .side-panel__highlighted_13yej {
39
+ .side-panel__highlighted_113a4 {
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: 1xo90 */
1
+ /* hash: 197o6 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -25,60 +25,60 @@
25
25
 
26
26
  /* mobile */
27
27
  }
28
- .side-panel__column_87pa7 {
28
+ .side-panel__column_16b9c {
29
29
  display: flex;
30
30
  flex-direction: column
31
31
  }
32
- .side-panel__column_87pa7 > * {
32
+ .side-panel__column_16b9c > * {
33
33
  margin-bottom: var(--side-panel-footer-default-gap);
34
34
  }
35
- .side-panel__column_87pa7 > *:last-child,
36
- .side-panel__column_87pa7 > *:only-child {
35
+ .side-panel__column_16b9c > *:last-child,
36
+ .side-panel__column_16b9c > *:only-child {
37
37
  margin-bottom: 0;
38
38
  }
39
- .side-panel__column_87pa7.side-panel__gap-16_87pa7 > * {
39
+ .side-panel__column_16b9c.side-panel__gap-16_16b9c > * {
40
40
  margin-bottom: var(--gap-m);
41
41
  }
42
- .side-panel__column_87pa7.side-panel__gap-24_87pa7 > * {
42
+ .side-panel__column_16b9c.side-panel__gap-24_16b9c > * {
43
43
  margin-bottom: var(--gap-xl);
44
44
  }
45
- .side-panel__column_87pa7.side-panel__gap-32_87pa7 > * {
45
+ .side-panel__column_16b9c.side-panel__gap-32_16b9c > * {
46
46
  margin-bottom: var(--gap-2xl);
47
47
  }
48
- .side-panel__start_87pa7 {
48
+ .side-panel__start_16b9c {
49
49
  justify-content: flex-start;
50
50
  }
51
- .side-panel__center_87pa7 {
51
+ .side-panel__center_16b9c {
52
52
  justify-content: center;
53
53
  }
54
- .side-panel__space-between_87pa7 {
54
+ .side-panel__space-between_16b9c {
55
55
  justify-content: space-between
56
56
  }
57
- .side-panel__space-between_87pa7 > * {
57
+ .side-panel__space-between_16b9c > * {
58
58
  flex: 1;
59
59
  }
60
- .side-panel__start_87pa7,
61
- .side-panel__center_87pa7,
62
- .side-panel__space-between_87pa7 {
60
+ .side-panel__start_16b9c,
61
+ .side-panel__center_16b9c,
62
+ .side-panel__space-between_16b9c {
63
63
  display: flex
64
64
  }
65
- .side-panel__start_87pa7 > *, .side-panel__center_87pa7 > *, .side-panel__space-between_87pa7 > * {
65
+ .side-panel__start_16b9c > *, .side-panel__center_16b9c > *, .side-panel__space-between_16b9c > * {
66
66
  margin-right: var(--side-panel-footer-default-gap);
67
67
  }
68
- .side-panel__start_87pa7 > *:last-child,
69
- .side-panel__start_87pa7 > *:only-child,
70
- .side-panel__center_87pa7 > *:last-child,
71
- .side-panel__center_87pa7 > *:only-child,
72
- .side-panel__space-between_87pa7 > *:last-child,
73
- .side-panel__space-between_87pa7 > *:only-child {
68
+ .side-panel__start_16b9c > *:last-child,
69
+ .side-panel__start_16b9c > *:only-child,
70
+ .side-panel__center_16b9c > *:last-child,
71
+ .side-panel__center_16b9c > *:only-child,
72
+ .side-panel__space-between_16b9c > *:last-child,
73
+ .side-panel__space-between_16b9c > *:only-child {
74
74
  margin-right: 0;
75
75
  }
76
- .side-panel__start_87pa7.side-panel__gap-16_87pa7 > *, .side-panel__center_87pa7.side-panel__gap-16_87pa7 > *, .side-panel__space-between_87pa7.side-panel__gap-16_87pa7 > * {
76
+ .side-panel__start_16b9c.side-panel__gap-16_16b9c > *, .side-panel__center_16b9c.side-panel__gap-16_16b9c > *, .side-panel__space-between_16b9c.side-panel__gap-16_16b9c > * {
77
77
  margin-right: var(--gap-m);
78
78
  }
79
- .side-panel__start_87pa7.side-panel__gap-24_87pa7 > *, .side-panel__center_87pa7.side-panel__gap-24_87pa7 > *, .side-panel__space-between_87pa7.side-panel__gap-24_87pa7 > * {
79
+ .side-panel__start_16b9c.side-panel__gap-24_16b9c > *, .side-panel__center_16b9c.side-panel__gap-24_16b9c > *, .side-panel__space-between_16b9c.side-panel__gap-24_16b9c > * {
80
80
  margin-right: var(--gap-xl);
81
81
  }
82
- .side-panel__start_87pa7.side-panel__gap-32_87pa7 > *, .side-panel__center_87pa7.side-panel__gap-32_87pa7 > *, .side-panel__space-between_87pa7.side-panel__gap-32_87pa7 > * {
82
+ .side-panel__start_16b9c.side-panel__gap-32_16b9c > *, .side-panel__center_16b9c.side-panel__gap-32_16b9c > *, .side-panel__space-between_16b9c.side-panel__gap-32_16b9c > * {
83
83
  margin-right: var(--gap-2xl);
84
84
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1aacf */
1
+ /* hash: dmbj0 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -22,9 +22,9 @@
22
22
 
23
23
  /* mobile */
24
24
  }
25
- .side-panel__footer_qfi01 {
25
+ .side-panel__footer_wt7vw {
26
26
  padding: var(--gap-m);
27
27
  }
28
- .side-panel__sticky_qfi01 {
28
+ .side-panel__sticky_wt7vw {
29
29
  bottom: 0;
30
30
  }
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
- import '../../Context.js';
5
3
  import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
6
- import '@alfalab/core-components-icon-button/modern';
7
4
  import { Closer } from '../closer/Component.js';
8
5
  import { Header } from './Component.js';
6
+ import '@alfalab/core-components-icon-button/modern';
7
+ import '../../Context.js';
8
+ import '@alfalab/core-components-base-modal/modern';
9
9
 
10
- var styles = {"content":"side-panel__content_fsap4","s":"side-panel__s_fsap4","hasContent":"side-panel__hasContent_fsap4","sticky":"side-panel__sticky_fsap4"};
10
+ const styles = {"content":"side-panel__content_yjcco","s":"side-panel__s_yjcco","hasContent":"side-panel__hasContent_yjcco","sticky":"side-panel__sticky_yjcco"};
11
11
  require('./desktop.css')
12
12
 
13
13
  const HeaderDesktop = ({ size = 's', className, contentClassName, hasCloser = true, closerIcon = CrossHeavyMIcon, sticky, leftAddons = React.createElement("span", null), title, children, ...restProps }) => {
@@ -1,9 +1,9 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
3
  import { ModalContext } from '../../Context.js';
4
+ import '@alfalab/core-components-base-modal/modern';
5
5
 
6
- var styles = {"header":"side-panel__header_1ycm2","hasContent":"side-panel__hasContent_1ycm2","highlighted":"side-panel__highlighted_1ycm2","sticky":"side-panel__sticky_1ycm2","backgroundImage":"side-panel__backgroundImage_1ycm2","content":"side-panel__content_1ycm2","title":"side-panel__title_1ycm2","addon":"side-panel__addon_1ycm2","closer":"side-panel__closer_1ycm2","left":"side-panel__left_1ycm2","center":"side-panel__center_1ycm2","right":"side-panel__right_1ycm2","trim":"side-panel__trim_1ycm2"};
6
+ const styles = {"header":"side-panel__header_1vhho","hasContent":"side-panel__hasContent_1vhho","highlighted":"side-panel__highlighted_1vhho","sticky":"side-panel__sticky_1vhho","backgroundImage":"side-panel__backgroundImage_1vhho","content":"side-panel__content_1vhho","title":"side-panel__title_1vhho","addon":"side-panel__addon_1vhho","closer":"side-panel__closer_1vhho","left":"side-panel__left_1vhho","center":"side-panel__center_1vhho","right":"side-panel__right_1vhho","trim":"side-panel__trim_1vhho"};
7
7
  require('./index.css')
8
8
 
9
9
  const Header = ({ className, addonClassName, contentClassName, leftAddons, children, align = 'left', trim = true, title, closer, sticky, imageUrl, dataTestId, }) => {
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-base-modal/modern';
4
- import '../../Context.js';
5
- import '@alfalab/core-components-icon-button/modern';
3
+ import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
6
4
  import { Closer } from '../closer/Component.js';
7
5
  import { Header } from './Component.js';
8
- import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
6
+ import '@alfalab/core-components-icon-button/modern';
7
+ import '../../Context.js';
8
+ import '@alfalab/core-components-base-modal/modern';
9
9
 
10
- var styles = {"sticky":"side-panel__sticky_13uja","content":"side-panel__content_13uja"};
10
+ const styles = {"sticky":"side-panel__sticky_7hkf4","content":"side-panel__content_7hkf4"};
11
11
  require('./mobile.css')
12
12
 
13
13
  const HeaderMobile = ({ className, contentClassName, hasCloser = true, sticky, closerIcon = CrossMIcon, ...restProps }) => (React.createElement(Header, { className: cn(className, {
@@ -1,4 +1,4 @@
1
- /* hash: xu9gk */
1
+ /* hash: j9ylc */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -34,21 +34,21 @@
34
34
 
35
35
  /* mobile */
36
36
  }
37
- .side-panel__content_fsap4 {
37
+ .side-panel__content_yjcco {
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_fsap4 .side-panel__content_fsap4 {
41
+ .side-panel__s_yjcco .side-panel__content_yjcco {
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_fsap4 {
46
+ .side-panel__s_yjcco {
47
47
  padding: var(--side-panel-s-header-paddings)
48
48
  }
49
- .side-panel__s_fsap4:not(.side-panel__hasContent_fsap4) {
49
+ .side-panel__s_yjcco:not(.side-panel__hasContent_yjcco) {
50
50
  padding-bottom: 0;
51
51
  }
52
- .side-panel__sticky_fsap4 {
52
+ .side-panel__sticky_yjcco {
53
53
  top: 0;
54
54
  }