@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.
- package/Component.responsive.d.ts +2 -2
- package/Component.responsive.js +1 -1
- package/components/content/Component.desktop.d.ts +1 -1
- package/components/content/Component.desktop.js +4 -3
- package/components/content/Component.js +1 -1
- package/components/content/Component.mobile.js +1 -1
- package/components/content/desktop.css +4 -4
- package/components/content/index.css +5 -5
- package/components/content/mobile.css +4 -4
- package/components/controls/Component.js +2 -2
- package/components/controls/index.css +2 -2
- package/components/footer/Component.desktop.d.ts +1 -1
- package/components/footer/Component.desktop.js +4 -3
- package/components/footer/Component.js +2 -2
- package/components/footer/Component.mobile.js +1 -1
- package/components/footer/desktop.css +4 -4
- package/components/footer/index.css +5 -5
- package/components/footer/layout.css +18 -18
- package/components/footer/mobile.css +4 -4
- package/components/header/Component.js +6 -5
- package/components/header/desktop.css +6 -6
- package/components/header/index.css +15 -15
- package/components/header/mobile.css +5 -5
- package/consts.d.ts +5 -0
- package/consts.js +10 -0
- package/cssm/Component.responsive.d.ts +2 -2
- package/cssm/Component.responsive.js +1 -1
- package/cssm/components/content/Component.desktop.d.ts +1 -1
- package/cssm/components/content/Component.desktop.js +3 -2
- package/cssm/components/content/desktop.module.css +3 -3
- package/cssm/components/content/index.module.css +1 -1
- package/cssm/components/content/mobile.module.css +1 -1
- package/cssm/components/footer/Component.desktop.d.ts +1 -1
- package/cssm/components/footer/Component.desktop.js +3 -2
- package/cssm/components/footer/desktop.module.css +2 -2
- package/cssm/components/footer/index.module.css +1 -1
- package/cssm/components/footer/layout.module.css +1 -1
- package/cssm/components/footer/mobile.module.css +1 -1
- package/cssm/components/header/Component.js +3 -2
- package/cssm/components/header/desktop.module.css +3 -3
- package/cssm/components/header/index.module.css +1 -1
- package/cssm/components/header/mobile.module.css +1 -1
- package/cssm/consts.d.ts +5 -0
- package/cssm/consts.js +10 -0
- package/cssm/desktop/Component.desktop.d.ts +2 -2
- package/cssm/desktop/Component.desktop.js +3 -2
- package/cssm/desktop/desktop.module.css +2 -2
- package/cssm/mobile/Component.mobile.js +1 -1
- package/cssm/mobile/mobile.module.css +1 -1
- package/cssm/typings.d.ts +1 -1
- package/cssm/vars.css +1 -1
- package/desktop/Component.desktop.d.ts +2 -2
- package/desktop/Component.desktop.js +5 -4
- package/desktop/desktop.css +4 -4
- package/desktop/transitions.desktop.css +7 -7
- package/esm/Component.responsive.d.ts +2 -2
- package/esm/Component.responsive.js +1 -1
- package/esm/components/content/Component.desktop.d.ts +1 -1
- package/esm/components/content/Component.desktop.js +4 -3
- package/esm/components/content/Component.js +1 -1
- package/esm/components/content/Component.mobile.js +1 -1
- package/esm/components/content/desktop.css +4 -4
- package/esm/components/content/index.css +5 -5
- package/esm/components/content/mobile.css +4 -4
- package/esm/components/controls/Component.js +2 -2
- package/esm/components/controls/index.css +2 -2
- package/esm/components/footer/Component.desktop.d.ts +1 -1
- package/esm/components/footer/Component.desktop.js +4 -3
- package/esm/components/footer/Component.js +2 -2
- package/esm/components/footer/Component.mobile.js +1 -1
- package/esm/components/footer/desktop.css +4 -4
- package/esm/components/footer/index.css +5 -5
- package/esm/components/footer/layout.css +18 -18
- package/esm/components/footer/mobile.css +4 -4
- package/esm/components/header/Component.js +6 -5
- package/esm/components/header/desktop.css +6 -6
- package/esm/components/header/index.css +15 -15
- package/esm/components/header/mobile.css +5 -5
- package/esm/consts.d.ts +5 -0
- package/esm/consts.js +6 -0
- package/esm/desktop/Component.desktop.d.ts +2 -2
- package/esm/desktop/Component.desktop.js +5 -4
- package/esm/desktop/desktop.css +4 -4
- package/esm/desktop/transitions.desktop.css +7 -7
- package/esm/layout.module-10b60370.js +4 -0
- package/esm/mobile/Component.mobile.js +3 -3
- package/esm/mobile/mobile.css +5 -5
- package/esm/mobile/transitions.mobile.css +8 -8
- package/esm/typings.d.ts +1 -1
- package/layout.module-3789959a.js +6 -0
- package/mobile/Component.mobile.js +3 -3
- package/mobile/mobile.css +5 -5
- package/mobile/transitions.mobile.css +8 -8
- package/modern/Component.responsive.d.ts +2 -2
- package/modern/Component.responsive.js +1 -1
- package/modern/components/content/Component.desktop.d.ts +1 -1
- package/modern/components/content/Component.desktop.js +3 -2
- package/modern/components/content/Component.js +1 -1
- package/modern/components/content/Component.mobile.js +1 -1
- package/modern/components/content/desktop.css +4 -4
- package/modern/components/content/index.css +5 -5
- package/modern/components/content/mobile.css +4 -4
- package/modern/components/controls/Component.js +2 -2
- package/modern/components/controls/index.css +2 -2
- package/modern/components/footer/Component.desktop.d.ts +1 -1
- package/modern/components/footer/Component.desktop.js +3 -2
- package/modern/components/footer/Component.js +2 -2
- package/modern/components/footer/Component.mobile.js +1 -1
- package/modern/components/footer/desktop.css +4 -4
- package/modern/components/footer/index.css +5 -5
- package/modern/components/footer/layout.css +18 -18
- package/modern/components/footer/mobile.css +4 -4
- package/modern/components/header/Component.js +6 -5
- package/modern/components/header/desktop.css +6 -6
- package/modern/components/header/index.css +15 -15
- package/modern/components/header/mobile.css +5 -5
- package/modern/consts.d.ts +5 -0
- package/modern/consts.js +6 -0
- package/modern/desktop/Component.desktop.d.ts +2 -2
- package/modern/desktop/Component.desktop.js +5 -4
- package/modern/desktop/desktop.css +4 -4
- package/modern/desktop/transitions.desktop.css +7 -7
- package/modern/layout.module-a3ff3ebd.js +4 -0
- package/modern/mobile/Component.mobile.js +3 -3
- package/modern/mobile/mobile.css +5 -5
- package/modern/mobile/transitions.mobile.css +8 -8
- package/modern/typings.d.ts +1 -1
- package/package.json +2 -2
- package/src/Component.responsive.tsx +2 -2
- package/src/components/content/Component.desktop.tsx +10 -3
- package/src/components/content/desktop.module.css +1 -1
- package/src/components/footer/Component.desktop.tsx +5 -3
- package/src/components/footer/desktop.module.css +1 -1
- package/src/components/header/Component.tsx +3 -2
- package/src/components/header/desktop.module.css +2 -2
- package/src/consts.ts +4 -0
- package/src/desktop/Component.desktop.tsx +4 -3
- package/src/desktop/desktop.module.css +1 -1
- package/src/mobile/Component.mobile.tsx +1 -1
- package/src/typings.ts +1 -1
- package/typings.d.ts +1 -1
- package/esm/layout.module-0f3296f1.js +0 -4
- package/layout.module-41a41938.js +0 -6
- package/modern/layout.module-d4e1a7fc.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
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-
|
|
34
|
+
} .side-panel__column_byffg {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column
|
|
37
|
-
} .side-
|
|
37
|
+
} .side-panel__column_byffg > *:not(:last-child):not(:only-child) {
|
|
38
38
|
margin-bottom: var(--side-panel-footer-default-gap);
|
|
39
|
-
} .side-
|
|
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-
|
|
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-
|
|
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-
|
|
45
|
+
} .side-panel__start_byffg {
|
|
46
46
|
justify-content: flex-start;
|
|
47
|
-
} .side-
|
|
47
|
+
} .side-panel__center_byffg {
|
|
48
48
|
justify-content: center;
|
|
49
|
-
} .side-panel__space-
|
|
49
|
+
} .side-panel__space-between_byffg {
|
|
50
50
|
justify-content: space-between
|
|
51
|
-
} .side-panel__space-
|
|
51
|
+
} .side-panel__space-between_byffg > * {
|
|
52
52
|
flex: 1;
|
|
53
|
-
} .side-
|
|
54
|
-
.side-
|
|
55
|
-
.side-panel__space-
|
|
53
|
+
} .side-panel__start_byffg,
|
|
54
|
+
.side-panel__center_byffg,
|
|
55
|
+
.side-panel__space-between_byffg {
|
|
56
56
|
display: flex
|
|
57
|
-
} .side-
|
|
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-
|
|
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-
|
|
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-
|
|
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:
|
|
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-
|
|
31
|
+
} .side-panel__footer_1pb2j {
|
|
32
32
|
padding: var(--gap-m);
|
|
33
|
-
} .side-
|
|
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-
|
|
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-
|
|
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-
|
|
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 =
|
|
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:
|
|
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-
|
|
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-
|
|
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-
|
|
47
|
+
} .side-panel__size-500_1l7do {
|
|
48
48
|
padding: var(--side-panel-s-header-paddings);
|
|
49
|
-
} .side-
|
|
49
|
+
} .side-panel__sticky_1l7do {
|
|
50
50
|
top: 0;
|
|
51
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
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-
|
|
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-
|
|
39
|
+
} .side-panel__header_1kghw:not(.side-panel__hasContent_1kghw) {
|
|
40
40
|
pointer-events: none;
|
|
41
|
-
} .side-
|
|
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-
|
|
44
|
+
} .side-panel__sticky_1kghw {
|
|
45
45
|
position: sticky;
|
|
46
46
|
z-index: 1
|
|
47
|
-
} .side-
|
|
47
|
+
} .side-panel__sticky_1kghw.side-panel__hasContent_1kghw {
|
|
48
48
|
background: var(--side-panel-header-background);
|
|
49
|
-
} .side-
|
|
49
|
+
} .side-panel__header_1kghw.side-panel__backgroundImage_1kghw {
|
|
50
50
|
background: center no-repeat;
|
|
51
51
|
background-size: cover;
|
|
52
|
-
} .side-
|
|
52
|
+
} .side-panel__content_1kghw {
|
|
53
53
|
flex-grow: 1;
|
|
54
|
-
} .side-
|
|
54
|
+
} .side-panel__title_1kghw {
|
|
55
55
|
word-break: break-word;
|
|
56
|
-
} .side-
|
|
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-
|
|
63
|
+
} .side-panel__closer_1kghw {
|
|
64
64
|
margin-left: auto;
|
|
65
|
-
} .side-
|
|
65
|
+
} .side-panel__right_1kghw {
|
|
66
66
|
justify-content: flex-end;
|
|
67
67
|
text-align: right;
|
|
68
|
-
} .side-
|
|
68
|
+
} .side-panel__trim_1kghw {
|
|
69
69
|
overflow: hidden
|
|
70
|
-
} .side-
|
|
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:
|
|
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-
|
|
41
|
+
} .side-panel__header_1hznw {
|
|
42
42
|
padding: var(--side-panel-header-mobile-paddings);
|
|
43
|
-
} .side-
|
|
43
|
+
} .side-panel__sticky_1hznw {
|
|
44
44
|
top: 0;
|
|
45
|
-
} .side-
|
|
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);
|
package/modern/consts.js
ADDED
|
@@ -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 = {"
|
|
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-
|
|
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 =
|
|
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:
|
|
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-
|
|
31
|
+
} .side-panel__size-500_is34y.side-panel__size-500_is34y {
|
|
32
32
|
width: var(--side-panel-s-width);
|
|
33
|
-
} .side-
|
|
33
|
+
} .side-panel__hidden_is34y {
|
|
34
34
|
overflow-x: hidden;
|
|
35
35
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.side-
|
|
1
|
+
/* hash: 1vacm */
|
|
2
|
+
.side-panel__enterRight_ib5tc {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
transform: translateX(15px);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.side-
|
|
7
|
+
.side-panel__enterLeft_ib5tc {
|
|
8
8
|
opacity: 0;
|
|
9
9
|
transform: translateX(-15px);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.side-
|
|
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-
|
|
18
|
+
.side-panel__exit_ib5tc {
|
|
19
19
|
opacity: 1;
|
|
20
20
|
transform: translateX(0);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.side-
|
|
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-
|
|
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-
|
|
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-
|
|
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:
|
|
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,
|
package/modern/mobile/mobile.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
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-
|
|
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-
|
|
37
|
+
} .side-panel__component_5n22c.side-panel__component_5n22c {
|
|
38
38
|
position: fixed;
|
|
39
39
|
flex: 1;
|
|
40
|
-
} .side-
|
|
40
|
+
} .side-panel__mobileContent_5n22c {
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
43
43
|
width: 100%;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.side-
|
|
3
|
-
.side-
|
|
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-
|
|
9
|
-
.side-
|
|
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-
|
|
15
|
+
.side-panel__exit_r9m3h {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.side-
|
|
21
|
-
.side-
|
|
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;
|
package/modern/typings.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-side-panel",
|
|
3
|
-
"version": "5.1
|
|
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.
|
|
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 =
|
|
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 =
|
|
18
|
+
size = 500,
|
|
17
19
|
className,
|
|
18
20
|
...restProps
|
|
19
|
-
}) =>
|
|
21
|
+
}) => (
|
|
22
|
+
<Content
|
|
23
|
+
className={cn(className, size && styles[SIZE_TO_CLASSNAME_MAP[size]])}
|
|
24
|
+
{...restProps}
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
@@ -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 =
|
|
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}
|