@alfalab/core-components-side-panel 2.5.2 → 2.5.4
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.
- package/Component.desktop.js +3 -3
- package/Component.mobile.js +3 -3
- package/Component.responsive.d.ts +9 -1
- package/Component.responsive.js +10 -8
- package/components/closer/Component.js +2 -2
- package/components/closer/index.css +14 -13
- package/components/content/Component.desktop.js +2 -2
- package/components/content/Component.js +1 -1
- package/components/content/Component.mobile.js +2 -2
- package/components/content/desktop.css +12 -9
- package/components/content/index.css +12 -7
- package/components/content/mobile.css +12 -9
- package/components/footer/Component.desktop.js +2 -2
- package/components/footer/Component.js +2 -2
- package/components/footer/Component.mobile.js +2 -2
- package/components/footer/desktop.css +12 -9
- package/components/footer/index.css +13 -11
- package/components/footer/layout.css +34 -45
- package/components/footer/mobile.css +12 -9
- package/components/header/Component.desktop.js +2 -2
- package/components/header/Component.js +2 -2
- package/components/header/Component.mobile.js +2 -2
- package/components/header/desktop.css +15 -17
- package/components/header/index.css +25 -35
- package/components/header/mobile.css +12 -11
- package/cssm/Component.responsive.d.ts +8 -0
- package/cssm/Component.responsive.js +9 -7
- package/cssm/components/closer/index.module.css +13 -12
- package/cssm/components/content/desktop.module.css +11 -8
- package/cssm/components/content/index.module.css +11 -6
- package/cssm/components/content/mobile.module.css +11 -8
- package/cssm/components/footer/desktop.module.css +11 -8
- package/cssm/components/footer/index.module.css +12 -10
- package/cssm/components/footer/layout.module.css +25 -36
- package/cssm/components/footer/mobile.module.css +11 -8
- package/cssm/components/header/desktop.module.css +14 -16
- package/cssm/components/header/index.module.css +24 -34
- package/cssm/components/header/mobile.module.css +11 -10
- package/cssm/desktop.module.css +11 -6
- package/cssm/index.js +1 -1
- package/cssm/mobile.module.css +10 -4
- package/cssm/responsive.js +1 -1
- package/cssm/vars.css +9 -2
- package/desktop.css +12 -7
- package/desktop.js +1 -1
- package/esm/Component.desktop.js +3 -3
- package/esm/Component.mobile.js +3 -3
- package/esm/Component.responsive.d.ts +8 -0
- package/esm/Component.responsive.js +10 -8
- package/esm/components/closer/Component.js +2 -2
- package/esm/components/closer/index.css +14 -13
- package/esm/components/content/Component.desktop.js +2 -2
- package/esm/components/content/Component.js +1 -1
- package/esm/components/content/Component.mobile.js +2 -2
- package/esm/components/content/desktop.css +12 -9
- package/esm/components/content/index.css +12 -7
- package/esm/components/content/mobile.css +12 -9
- package/esm/components/footer/Component.desktop.js +2 -2
- package/esm/components/footer/Component.js +2 -2
- package/esm/components/footer/Component.mobile.js +2 -2
- package/esm/components/footer/desktop.css +12 -9
- package/esm/components/footer/index.css +13 -11
- package/esm/components/footer/layout.css +34 -45
- package/esm/components/footer/mobile.css +12 -9
- package/esm/components/header/Component.desktop.js +2 -2
- package/esm/components/header/Component.js +2 -2
- package/esm/components/header/Component.mobile.js +2 -2
- package/esm/components/header/desktop.css +15 -17
- package/esm/components/header/index.css +25 -35
- package/esm/components/header/mobile.css +12 -11
- package/esm/desktop.css +12 -7
- package/esm/desktop.js +1 -1
- package/esm/index.js +2 -2
- package/esm/mobile.css +11 -5
- package/esm/mobile.js +1 -1
- package/esm/responsive.js +2 -2
- package/esm/transitions.desktop.css +7 -7
- package/esm/transitions.mobile.css +8 -8
- package/esm/{tslib.es6-16bbef32.d.ts → tslib.es6-4ea62d19.d.ts} +0 -0
- package/esm/{tslib.es6-16bbef32.js → tslib.es6-4ea62d19.js} +0 -0
- package/index.js +2 -2
- package/mobile.css +11 -5
- package/mobile.js +1 -1
- package/modern/Component.desktop.js +2 -2
- package/modern/Component.mobile.js +2 -2
- package/modern/Component.responsive.d.ts +8 -0
- package/modern/Component.responsive.js +9 -7
- package/modern/components/closer/Component.js +1 -1
- package/modern/components/closer/index.css +14 -13
- package/modern/components/content/Component.desktop.js +1 -1
- package/modern/components/content/Component.js +1 -1
- package/modern/components/content/Component.mobile.js +1 -1
- package/modern/components/content/desktop.css +12 -9
- package/modern/components/content/index.css +12 -7
- package/modern/components/content/mobile.css +12 -9
- package/modern/components/footer/Component.desktop.js +1 -1
- package/modern/components/footer/Component.js +2 -2
- package/modern/components/footer/Component.mobile.js +1 -1
- package/modern/components/footer/desktop.css +12 -9
- package/modern/components/footer/index.css +13 -11
- package/modern/components/footer/layout.css +34 -45
- package/modern/components/footer/mobile.css +12 -9
- package/modern/components/header/Component.desktop.js +1 -1
- package/modern/components/header/Component.js +1 -1
- package/modern/components/header/Component.mobile.js +1 -1
- package/modern/components/header/desktop.css +15 -17
- package/modern/components/header/index.css +25 -35
- package/modern/components/header/mobile.css +12 -11
- package/modern/desktop.css +12 -7
- package/modern/index.js +1 -1
- package/modern/mobile.css +11 -5
- package/modern/responsive.js +1 -1
- package/modern/transitions.desktop.css +7 -7
- package/modern/transitions.mobile.css +8 -8
- package/package.json +4 -3
- package/responsive.js +2 -2
- package/transitions.desktop.css +7 -7
- package/transitions.mobile.css +8 -8
- /package/{tslib.es6-adf6ea2b.d.ts → tslib.es6-cf0bde8a.d.ts} +0 -0
- /package/{tslib.es6-adf6ea2b.js → tslib.es6-cf0bde8a.js} +0 -0
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5q3om */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
11
15
|
--gap-xs: 8px;
|
|
12
16
|
--gap-s: 12px;
|
|
13
17
|
--gap-m: 16px;
|
|
14
|
-
}
|
|
15
|
-
:root {
|
|
18
|
+
} :root {
|
|
16
19
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
17
20
|
sans-serif;
|
|
18
|
-
}
|
|
19
|
-
:root {
|
|
21
|
+
} :root {
|
|
22
|
+
} :root {
|
|
20
23
|
|
|
21
24
|
/* sizes */
|
|
22
25
|
|
|
@@ -33,11 +36,9 @@
|
|
|
33
36
|
--side-panel-header-mobile-line-height: 24px;
|
|
34
37
|
--side-panel-header-mobile-font-family: var(--font-family-system);
|
|
35
38
|
--side-panel-header-mobile-font-weight: bold;
|
|
36
|
-
}
|
|
37
|
-
.side-panel__sticky_1x75u {
|
|
39
|
+
} .side-panel__sticky_19v5l {
|
|
38
40
|
top: 0;
|
|
39
|
-
}
|
|
40
|
-
.side-panel__content_1x75u {
|
|
41
|
+
} .side-panel__content_19v5l {
|
|
41
42
|
font-size: var(--side-panel-header-mobile-font-size);
|
|
42
43
|
line-height: var(--side-panel-header-mobile-line-height);
|
|
43
44
|
font-family: var(--side-panel-header-mobile-font-family);
|
package/esm/desktop.css
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bnt2b */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
11
18
|
|
|
12
19
|
/* sizes */
|
|
13
20
|
--side-panel-s-width: 500px;
|
|
@@ -19,10 +26,8 @@
|
|
|
19
26
|
/* desktop */
|
|
20
27
|
|
|
21
28
|
/* mobile */
|
|
22
|
-
}
|
|
23
|
-
.side-panel__s_tms5n {
|
|
29
|
+
} .side-panel__s_1jd76 {
|
|
24
30
|
width: var(--side-panel-s-width);
|
|
25
|
-
}
|
|
26
|
-
.side-panel__hidden_tms5n {
|
|
31
|
+
} .side-panel__hidden_1jd76 {
|
|
27
32
|
overflow-x: hidden;
|
|
28
33
|
}
|
package/esm/desktop.js
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { SidePanelResponsive } from './Component.responsive.js';
|
|
2
2
|
export { ModalContext } from './Context.js';
|
|
3
|
-
import './tslib.es6-
|
|
3
|
+
import './tslib.es6-4ea62d19.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '@alfalab/
|
|
5
|
+
import '@alfalab/core-components-mq/esm';
|
|
6
6
|
import './components/closer/Component.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '@alfalab/core-components-icon-button/esm';
|
package/esm/mobile.css
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 110lb */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
11
18
|
|
|
12
19
|
/* sizes */
|
|
13
20
|
|
|
@@ -18,8 +25,7 @@
|
|
|
18
25
|
/* desktop */
|
|
19
26
|
|
|
20
27
|
/* mobile */
|
|
21
|
-
}
|
|
22
|
-
.side-panel__component_r64av {
|
|
28
|
+
} .side-panel__component_1t6d7 {
|
|
23
29
|
flex: 1;
|
|
24
30
|
width: 100%;
|
|
25
31
|
}
|
package/esm/mobile.js
CHANGED
package/esm/responsive.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { SidePanelResponsive } from './Component.responsive.js';
|
|
2
|
-
import './tslib.es6-
|
|
2
|
+
import './tslib.es6-4ea62d19.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '@alfalab/
|
|
4
|
+
import '@alfalab/core-components-mq/esm';
|
|
5
5
|
import './components/closer/Component.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '@alfalab/core-components-icon-button/esm';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.side-
|
|
1
|
+
/* hash: 1260a */
|
|
2
|
+
.side-panel__enterRight_1ma8x {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
transform: translateX(15px);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.side-
|
|
7
|
+
.side-panel__enterLeft_1ma8x {
|
|
8
8
|
opacity: 0;
|
|
9
9
|
transform: translateX(-15px);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.side-
|
|
12
|
+
.side-panel__enterActive_1ma8x {
|
|
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-
|
|
18
|
+
.side-panel__exit_1ma8x {
|
|
19
19
|
opacity: 1;
|
|
20
20
|
transform: translateX(0);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.side-
|
|
23
|
+
.side-panel__exitActiveRight_1ma8x {
|
|
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-
|
|
29
|
+
.side-panel__exitActiveLeft_1ma8x {
|
|
30
30
|
opacity: 0;
|
|
31
31
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
32
32
|
transform: translateX(-15px);
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.side-
|
|
3
|
-
.side-
|
|
1
|
+
/* hash: 1f9po */
|
|
2
|
+
.side-panel__appear_32msf,
|
|
3
|
+
.side-panel__enter_32msf {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.side-
|
|
9
|
-
.side-
|
|
8
|
+
.side-panel__appearActive_32msf,
|
|
9
|
+
.side-panel__enterActive_32msf {
|
|
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-
|
|
15
|
+
.side-panel__exit_32msf {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.side-
|
|
21
|
-
.side-
|
|
20
|
+
.side-panel__exitActive_32msf,
|
|
21
|
+
.side-panel__exitDone_32msf {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
File without changes
|
|
File without changes
|
package/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var Component_responsive = require('./Component.responsive.js');
|
|
4
4
|
var Context = require('./Context.js');
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-cf0bde8a.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('@alfalab/
|
|
7
|
+
require('@alfalab/core-components-mq');
|
|
8
8
|
require('./components/closer/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-icon-button');
|
package/mobile.css
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 110lb */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
11
18
|
|
|
12
19
|
/* sizes */
|
|
13
20
|
|
|
@@ -18,8 +25,7 @@
|
|
|
18
25
|
/* desktop */
|
|
19
26
|
|
|
20
27
|
/* mobile */
|
|
21
|
-
}
|
|
22
|
-
.side-panel__component_r64av {
|
|
28
|
+
} .side-panel__component_1t6d7 {
|
|
23
29
|
flex: 1;
|
|
24
30
|
width: 100%;
|
|
25
31
|
}
|
package/mobile.js
CHANGED
|
@@ -14,10 +14,10 @@ import './components/closer/Component.js';
|
|
|
14
14
|
import '@alfalab/core-components-icon-button/modern';
|
|
15
15
|
import './components/header/Component.js';
|
|
16
16
|
|
|
17
|
-
const styles = {"s":"side-
|
|
17
|
+
const styles = {"s":"side-panel__s_1jd76","hidden":"side-panel__hidden_1jd76"};
|
|
18
18
|
require('./desktop.css')
|
|
19
19
|
|
|
20
|
-
const transitions = {"enterRight":"side-
|
|
20
|
+
const transitions = {"enterRight":"side-panel__enterRight_1ma8x","enterLeft":"side-panel__enterLeft_1ma8x","enterActive":"side-panel__enterActive_1ma8x","exit":"side-panel__exit_1ma8x","exitActiveRight":"side-panel__exitActiveRight_1ma8x","exitActiveLeft":"side-panel__exitActiveLeft_1ma8x"};
|
|
21
21
|
require('./transitions.desktop.css')
|
|
22
22
|
|
|
23
23
|
const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', ...restProps }, ref) => {
|
|
@@ -12,10 +12,10 @@ import './components/closer/Component.js';
|
|
|
12
12
|
import '@alfalab/core-components-icon-button/modern';
|
|
13
13
|
import './components/header/Component.js';
|
|
14
14
|
|
|
15
|
-
const styles = {"component":"side-
|
|
15
|
+
const styles = {"component":"side-panel__component_1t6d7"};
|
|
16
16
|
require('./mobile.css')
|
|
17
17
|
|
|
18
|
-
const transitions = {"appear":"side-
|
|
18
|
+
const transitions = {"appear":"side-panel__appear_32msf","enter":"side-panel__enter_32msf","appearActive":"side-panel__appearActive_32msf","enterActive":"side-panel__enterActive_32msf","exit":"side-panel__exit_32msf","exitActive":"side-panel__exitActive_32msf","exitDone":"side-panel__exitDone_32msf"};
|
|
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: {
|
|
@@ -18,6 +18,10 @@ type SidePanelResponsiveProps = BaseModalProps & Pick<DrawerProps, 'contentTrans
|
|
|
18
18
|
* @default 1024
|
|
19
19
|
*/
|
|
20
20
|
breakpoint?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
+
*/
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
21
25
|
};
|
|
22
26
|
declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProps & Pick<DrawerProps, "contentTransitionProps" | "nativeScrollbar" | "placement" | "scrollbarProps"> & {
|
|
23
27
|
/**
|
|
@@ -35,6 +39,10 @@ declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProp
|
|
|
35
39
|
* @default 1024
|
|
36
40
|
*/
|
|
37
41
|
breakpoint?: number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
44
|
+
*/
|
|
45
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
38
46
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
39
47
|
Header: React.FC<import("./components/header/Component.desktop").HeaderDesktopProps> | React.FC<import("./components/header/Component.mobile").HeaderMobileProps>;
|
|
40
48
|
Content: React.FC<import("./components/content/Component").ContentProps> | React.FC<import("./components/content/Component.desktop").ContentDesktopProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef, useMemo, useContext } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useMatchMedia } from '@alfalab/core-components-mq/modern';
|
|
3
3
|
import { Closer } from './components/closer/Component.js';
|
|
4
4
|
import { SidePanelDesktop } from './Component.desktop.js';
|
|
5
5
|
import { SidePanelMobile } from './Component.mobile.js';
|
|
@@ -21,6 +21,8 @@ import './components/footer/Component.mobile.js';
|
|
|
21
21
|
import './components/header/Component.mobile.js';
|
|
22
22
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
23
23
|
|
|
24
|
+
const isClient = () => typeof window !== 'undefined';
|
|
25
|
+
|
|
24
26
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
25
27
|
const ResponsiveContext = React.createContext({
|
|
26
28
|
view: 'desktop',
|
|
@@ -33,13 +35,13 @@ function createResponsive(desktop, mobile) {
|
|
|
33
35
|
}
|
|
34
36
|
return ResponsiveChild;
|
|
35
37
|
}
|
|
36
|
-
const SidePanelResponsiveComponent = forwardRef(({ children, breakpoint = 1024, ...restProps }, ref) => {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const SidePanelResponsiveComponent = forwardRef(({ children, breakpoint = 1024, defaultMatchMediaValue, ...restProps }, ref) => {
|
|
39
|
+
const query = `(min-width: ${breakpoint}px)`;
|
|
40
|
+
const getDefaultValue = () => (isClient() ? window.matchMedia(query).matches : false);
|
|
41
|
+
const [isDesktop] = useMatchMedia(query, defaultMatchMediaValue ?? getDefaultValue);
|
|
42
|
+
const view = isDesktop ? 'desktop' : 'mobile';
|
|
41
43
|
const contextValue = useMemo(() => ({ view }), [view]);
|
|
42
|
-
const Component =
|
|
44
|
+
const Component = isDesktop ? SidePanelDesktop : SidePanelMobile;
|
|
43
45
|
return (React.createElement(ResponsiveContext.Provider, { value: contextValue },
|
|
44
46
|
React.createElement(Component, { ref: ref, ...restProps }, children)));
|
|
45
47
|
});
|
|
@@ -4,7 +4,7 @@ import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
|
4
4
|
import { ModalContext } from '../../Context.js';
|
|
5
5
|
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"closer":"side-
|
|
7
|
+
const styles = {"closer":"side-panel__closer_1s5yt","button":"side-panel__button_1s5yt","sticky":"side-panel__sticky_1s5yt"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 196hu */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
14
19
|
|
|
15
20
|
/* sizes */
|
|
16
21
|
|
|
@@ -21,11 +26,9 @@
|
|
|
21
26
|
/* desktop */
|
|
22
27
|
|
|
23
28
|
/* mobile */
|
|
24
|
-
}
|
|
25
|
-
:root {
|
|
29
|
+
} :root {
|
|
26
30
|
--side-panel-closer-bg-color: var(--color-light-bg-primary-alpha-40);
|
|
27
|
-
}
|
|
28
|
-
.side-panel__closer_4d47r {
|
|
31
|
+
} .side-panel__closer_1s5yt {
|
|
29
32
|
flex-shrink: 0;
|
|
30
33
|
width: 48px;
|
|
31
34
|
height: 48px;
|
|
@@ -33,14 +36,12 @@
|
|
|
33
36
|
display: flex;
|
|
34
37
|
align-items: center;
|
|
35
38
|
justify-content: center;
|
|
36
|
-
}
|
|
37
|
-
.side-panel__button_4d47r {
|
|
39
|
+
} .side-panel__button_1s5yt {
|
|
38
40
|
background: var(--side-panel-closer-bg-color);
|
|
39
41
|
-webkit-backdrop-filter: blur(10px);
|
|
40
42
|
backdrop-filter: blur(10px);
|
|
41
43
|
border-radius: 50px;
|
|
42
|
-
}
|
|
43
|
-
.side-panel__sticky_4d47r {
|
|
44
|
+
} .side-panel__sticky_1s5yt {
|
|
44
45
|
position: sticky;
|
|
45
46
|
top: 0;
|
|
46
47
|
}
|
|
@@ -4,7 +4,7 @@ import { Content } from './Component.js';
|
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"s":"side-
|
|
7
|
+
const styles = {"s":"side-panel__s_1tics"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
10
|
const ContentDesktop = ({ size = 's', className, ...restProps }) => React.createElement(Content, { className: cn(className, size && styles[size]), ...restProps });
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { ModalContext } from '../../Context.js';
|
|
4
4
|
import '@alfalab/core-components-base-modal/modern';
|
|
5
5
|
|
|
6
|
-
const styles = {"content":"side-
|
|
6
|
+
const styles = {"content":"side-panel__content_ossq3","flex":"side-panel__flex_ossq3"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Content = ({ children, className, dataTestId }) => {
|
|
@@ -4,7 +4,7 @@ import { Content } from './Component.js';
|
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"content":"side-
|
|
7
|
+
const styles = {"content":"side-panel__content_14zfy"};
|
|
8
8
|
require('./mobile.css')
|
|
9
9
|
|
|
10
10
|
const ContentMobile = ({ className, ...restProps }) => (React.createElement(Content, { className: cn(className, styles.content), ...restProps }));
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4wrps */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
11
15
|
--gap-2xl: 32px;
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
14
19
|
|
|
15
20
|
/* sizes */
|
|
16
21
|
|
|
@@ -22,10 +27,8 @@
|
|
|
22
27
|
/* desktop */
|
|
23
28
|
|
|
24
29
|
/* mobile */
|
|
25
|
-
}
|
|
26
|
-
.side-panel__s_whhmy {
|
|
30
|
+
} .side-panel__s_1tics {
|
|
27
31
|
padding: var(--side-panel-s-content-paddings)
|
|
28
|
-
}
|
|
29
|
-
.side-panel__s_whhmy:last-child {
|
|
32
|
+
} .side-panel__s_1tics:last-child {
|
|
30
33
|
padding-bottom: var(--gap-2xl);
|
|
31
34
|
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1rhil */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
11
18
|
|
|
12
19
|
/* sizes */
|
|
13
20
|
|
|
@@ -18,11 +25,9 @@
|
|
|
18
25
|
/* desktop */
|
|
19
26
|
|
|
20
27
|
/* mobile */
|
|
21
|
-
}
|
|
22
|
-
.side-panel__content_pud5o {
|
|
28
|
+
} .side-panel__content_ossq3 {
|
|
23
29
|
box-sizing: border-box;
|
|
24
30
|
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
.side-panel__flex_pud5o {
|
|
31
|
+
} .side-panel__flex_ossq3 {
|
|
27
32
|
flex: 1 1 auto;
|
|
28
33
|
}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1cfeu */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
11
15
|
--gap-m: 16px;
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
14
19
|
|
|
15
20
|
/* sizes */
|
|
16
21
|
|
|
@@ -21,10 +26,8 @@
|
|
|
21
26
|
/* desktop */
|
|
22
27
|
|
|
23
28
|
/* mobile */
|
|
24
|
-
}
|
|
25
|
-
.side-panel__content_q5a7y {
|
|
29
|
+
} .side-panel__content_14zfy {
|
|
26
30
|
padding: 0 var(--gap-m)
|
|
27
|
-
}
|
|
28
|
-
.side-panel__content_q5a7y:last-child {
|
|
31
|
+
} .side-panel__content_14zfy:last-child {
|
|
29
32
|
padding-bottom: var(--gap-m);
|
|
30
33
|
}
|
|
@@ -4,7 +4,7 @@ import { Footer } from './Component.js';
|
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"sticky":"side-
|
|
7
|
+
const styles = {"sticky":"side-panel__sticky_ivl7p","s":"side-panel__s_ivl7p"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
10
|
const FooterDesktop = ({ size = 's', className, sticky, ...restProps }) => (React.createElement(Footer, { className: cn(className, size && styles[size], {
|
|
@@ -3,10 +3,10 @@ import cn from 'classnames';
|
|
|
3
3
|
import { ModalContext } from '../../Context.js';
|
|
4
4
|
import '@alfalab/core-components-base-modal/modern';
|
|
5
5
|
|
|
6
|
-
const styles = {"footer":"side-
|
|
6
|
+
const styles = {"footer":"side-panel__footer_1e1fe","sticky":"side-panel__sticky_1e1fe","highlighted":"side-panel__highlighted_1e1fe"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
|
-
const layoutStyles = {"column":"side-
|
|
9
|
+
const layoutStyles = {"column":"side-panel__column_1j9em","gap-16":"side-panel__gap-16_1j9em","gap-24":"side-panel__gap-24_1j9em","gap-32":"side-panel__gap-32_1j9em","start":"side-panel__start_1j9em","center":"side-panel__center_1j9em","space-between":"side-panel__space-between_1j9em"};
|
|
10
10
|
require('./layout.css')
|
|
11
11
|
|
|
12
12
|
const Footer = ({ children, className, sticky, layout = 'start', gap, dataTestId, }) => {
|
|
@@ -4,7 +4,7 @@ import { Footer } from './Component.js';
|
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"footer":"side-
|
|
7
|
+
const styles = {"footer":"side-panel__footer_1yy5l","sticky":"side-panel__sticky_1yy5l"};
|
|
8
8
|
require('./mobile.css')
|
|
9
9
|
|
|
10
10
|
const FooterMobile = ({ className, sticky, ...restProps }) => (React.createElement(Footer, { className: cn(className, styles.footer, {
|