@alfalab/core-components-side-panel 4.1.1 → 4.1.3
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.js +5 -5
- package/components/content/Component.desktop.js +1 -1
- package/components/content/Component.js +1 -1
- package/components/content/Component.mobile.js +1 -1
- package/components/content/desktop.css +3 -3
- package/components/content/index.css +4 -4
- package/components/content/mobile.css +3 -3
- package/components/footer/Component.desktop.js +1 -1
- package/components/footer/Component.js +2 -2
- package/components/footer/Component.mobile.js +1 -1
- package/components/footer/desktop.css +3 -3
- package/components/footer/index.css +4 -4
- package/components/footer/layout.css +25 -25
- package/components/footer/mobile.css +7 -7
- package/components/header/Component.js +3 -3
- package/components/header/desktop.css +5 -5
- package/components/header/index.css +14 -14
- package/components/header/mobile.css +4 -4
- package/cssm/Component.responsive.js +9 -9
- package/{Component.desktop.d.ts → cssm/desktop/Component.desktop.d.ts} +3 -3
- package/cssm/{Component.desktop.js → desktop/Component.desktop.js} +15 -15
- package/cssm/desktop/index.d.ts +1 -1
- package/cssm/desktop/index.js +4 -4
- package/cssm/index.js +6 -6
- package/{esm → cssm/mobile}/Component.mobile.d.ts +3 -3
- package/cssm/{Component.mobile.js → mobile/Component.mobile.js} +15 -15
- package/cssm/mobile/index.d.ts +1 -1
- package/cssm/mobile/index.js +4 -4
- package/{cssm → desktop}/Component.desktop.d.ts +3 -3
- package/{Component.desktop.js → desktop/Component.desktop.js} +9 -9
- package/{desktop.css → desktop/desktop.css} +3 -3
- package/desktop/index.d.ts +1 -1
- package/desktop/index.js +2 -2
- package/{modern → desktop}/transitions.desktop.css +7 -7
- package/esm/Component.responsive.js +2 -2
- package/esm/components/content/Component.desktop.js +1 -1
- package/esm/components/content/Component.js +1 -1
- package/esm/components/content/Component.mobile.js +1 -1
- package/esm/components/content/desktop.css +3 -3
- package/esm/components/content/index.css +4 -4
- package/esm/components/content/mobile.css +3 -3
- package/esm/components/footer/Component.desktop.js +1 -1
- package/esm/components/footer/Component.js +2 -2
- package/esm/components/footer/Component.mobile.js +1 -1
- package/esm/components/footer/desktop.css +3 -3
- package/esm/components/footer/index.css +4 -4
- package/esm/components/footer/layout.css +25 -25
- package/esm/components/footer/mobile.css +7 -7
- package/esm/components/header/Component.js +3 -3
- package/esm/components/header/desktop.css +5 -5
- package/esm/components/header/index.css +14 -14
- package/esm/components/header/mobile.css +4 -4
- package/esm/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +3 -3
- package/esm/{Component.desktop.js → desktop/Component.desktop.js} +9 -9
- package/{modern → esm/desktop}/desktop.css +3 -3
- package/esm/desktop/index.d.ts +1 -1
- package/esm/desktop/index.js +1 -1
- package/esm/{transitions.desktop.css → desktop/transitions.desktop.css} +7 -7
- package/esm/index.js +2 -2
- package/{modern → esm/mobile}/Component.mobile.d.ts +3 -3
- package/esm/{Component.mobile.js → mobile/Component.mobile.js} +9 -9
- package/esm/mobile/index.d.ts +1 -1
- package/esm/mobile/index.js +1 -1
- package/esm/{mobile.css → mobile/mobile.css} +4 -4
- package/{transitions.mobile.css → esm/mobile/transitions.mobile.css} +8 -8
- package/index.js +2 -2
- package/{Component.mobile.d.ts → mobile/Component.mobile.d.ts} +3 -3
- package/{Component.mobile.js → mobile/Component.mobile.js} +9 -9
- package/mobile/index.d.ts +1 -1
- package/mobile/index.js +2 -2
- package/{mobile.css → mobile/mobile.css} +4 -4
- package/{modern → mobile}/transitions.mobile.css +8 -8
- package/modern/Component.responsive.js +2 -2
- 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 +3 -3
- package/modern/components/content/index.css +4 -4
- package/modern/components/content/mobile.css +3 -3
- 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 +3 -3
- package/modern/components/footer/index.css +4 -4
- package/modern/components/footer/layout.css +25 -25
- package/modern/components/footer/mobile.css +7 -7
- package/modern/components/header/Component.js +3 -3
- package/modern/components/header/desktop.css +5 -5
- package/modern/components/header/index.css +14 -14
- package/modern/components/header/mobile.css +4 -4
- package/modern/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +3 -3
- package/modern/{Component.desktop.js → desktop/Component.desktop.js} +9 -9
- package/{esm → modern/desktop}/desktop.css +3 -3
- package/modern/desktop/index.d.ts +1 -1
- package/modern/desktop/index.js +1 -1
- package/{transitions.desktop.css → modern/desktop/transitions.desktop.css} +7 -7
- package/modern/index.js +2 -2
- package/{cssm → modern/mobile}/Component.mobile.d.ts +3 -3
- package/modern/{Component.mobile.js → mobile/Component.mobile.js} +9 -9
- package/modern/mobile/index.d.ts +1 -1
- package/modern/mobile/index.js +1 -1
- package/modern/{mobile.css → mobile/mobile.css} +4 -4
- package/{esm → modern/mobile}/transitions.mobile.css +8 -8
- package/package.json +2 -2
- package/src/Component.responsive.tsx +2 -2
- package/src/{Component.desktop.tsx → desktop/Component.desktop.tsx} +5 -5
- package/src/{desktop.module.css → desktop/desktop.module.css} +1 -1
- package/src/desktop/index.ts +1 -1
- package/src/{Component.mobile.tsx → mobile/Component.mobile.tsx} +4 -4
- package/src/mobile/index.ts +1 -1
- package/src/{mobile.module.css → mobile/mobile.module.css} +1 -1
- /package/cssm/{desktop.module.css → desktop/desktop.module.css} +0 -0
- /package/cssm/{transitions.desktop.module.css → desktop/transitions.desktop.module.css} +0 -0
- /package/cssm/{mobile.module.css → mobile/mobile.module.css} +0 -0
- /package/cssm/{transitions.mobile.module.css → mobile/transitions.mobile.module.css} +0 -0
- /package/src/{transitions.desktop.module.css → desktop/transitions.desktop.module.css} +0 -0
- /package/src/{transitions.mobile.module.css → mobile/transitions.mobile.module.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1sfbg */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -32,42 +32,42 @@
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
|
|
34
34
|
/* paddings */
|
|
35
|
-
} .side-
|
|
35
|
+
} .side-panel__header_xfsox {
|
|
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_xfsox:not(.side-panel__hasContent_xfsox) {
|
|
40
40
|
pointer-events: none;
|
|
41
|
-
} .side-
|
|
41
|
+
} .side-panel__highlighted_xfsox {
|
|
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_xfsox {
|
|
45
45
|
position: sticky;
|
|
46
46
|
z-index: 1
|
|
47
|
-
} .side-
|
|
47
|
+
} .side-panel__sticky_xfsox.side-panel__hasContent_xfsox {
|
|
48
48
|
background: var(--side-panel-header-background);
|
|
49
|
-
} .side-
|
|
49
|
+
} .side-panel__header_xfsox.side-panel__backgroundImage_xfsox {
|
|
50
50
|
background: center no-repeat;
|
|
51
51
|
background-size: cover;
|
|
52
|
-
} .side-
|
|
52
|
+
} .side-panel__content_xfsox {
|
|
53
53
|
flex-grow: 1;
|
|
54
|
-
} .side-
|
|
54
|
+
} .side-panel__title_xfsox {
|
|
55
55
|
word-break: break-word;
|
|
56
|
-
} .side-
|
|
56
|
+
} .side-panel__addon_xfsox {
|
|
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_xfsox {
|
|
64
64
|
margin-left: auto;
|
|
65
|
-
} .side-
|
|
65
|
+
} .side-panel__right_xfsox {
|
|
66
66
|
justify-content: flex-end;
|
|
67
67
|
text-align: right;
|
|
68
|
-
} .side-
|
|
68
|
+
} .side-panel__trim_xfsox {
|
|
69
69
|
overflow: hidden
|
|
70
|
-
} .side-
|
|
70
|
+
} .side-panel__trim_xfsox .side-panel__title_xfsox {
|
|
71
71
|
overflow: hidden;
|
|
72
72
|
white-space: nowrap;
|
|
73
73
|
text-overflow: ellipsis;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18ojx */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -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_oauhb {
|
|
42
42
|
padding: var(--side-panel-header-mobile-paddings);
|
|
43
|
-
} .side-
|
|
43
|
+
} .side-panel__sticky_oauhb {
|
|
44
44
|
top: 0;
|
|
45
|
-
} .side-
|
|
45
|
+
} .side-panel__content_oauhb {
|
|
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);
|
|
@@ -26,8 +26,8 @@ declare const SidePanelDesktop: React.ForwardRefExoticComponent<BaseModalProps &
|
|
|
26
26
|
*/
|
|
27
27
|
hasCloser?: boolean | undefined;
|
|
28
28
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
29
|
-
Content: React.FC<import("
|
|
30
|
-
Header: React.FC<import("
|
|
31
|
-
Footer: React.FC<import("
|
|
29
|
+
Content: React.FC<import("../components/content/Component.desktop").ContentDesktopProps>;
|
|
30
|
+
Header: React.FC<import("../components/header/Component").HeaderProps>;
|
|
31
|
+
Footer: React.FC<import("../components/footer/Component.desktop").FooterDesktopProps>;
|
|
32
32
|
};
|
|
33
33
|
export { SidePanelDesktopProps, SidePanelDesktop };
|
|
@@ -3,20 +3,20 @@ import React, { forwardRef, useContext, useRef, isValidElement, cloneElement } f
|
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import { Drawer } from '@alfalab/core-components-drawer/esm';
|
|
6
|
-
import { ContentDesktop } from '
|
|
7
|
-
import { FooterDesktop } from '
|
|
8
|
-
import { Header } from '
|
|
9
|
-
import { ResponsiveContext } from '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
6
|
+
import { ContentDesktop } from '../components/content/Component.desktop.js';
|
|
7
|
+
import { FooterDesktop } from '../components/footer/Component.desktop.js';
|
|
8
|
+
import { Header } from '../components/header/Component.js';
|
|
9
|
+
import { ResponsiveContext } from '../ResponsiveContext.js';
|
|
10
|
+
import '../components/content/Component.js';
|
|
11
|
+
import '../Context.js';
|
|
12
12
|
import '@alfalab/core-components-base-modal/esm';
|
|
13
|
-
import '
|
|
13
|
+
import '../components/footer/Component.js';
|
|
14
14
|
import '@alfalab/core-components-navigation-bar/esm';
|
|
15
15
|
|
|
16
|
-
var styles = {"s":"side-
|
|
16
|
+
var styles = {"s":"side-panel__s_8mm6i","hidden":"side-panel__hidden_8mm6i"};
|
|
17
17
|
require('./desktop.css')
|
|
18
18
|
|
|
19
|
-
var transitions = {"enterRight":"side-
|
|
19
|
+
var transitions = {"enterRight":"side-panel__enterRight_z3wyj","enterLeft":"side-panel__enterLeft_z3wyj","enterActive":"side-panel__enterActive_z3wyj","exit":"side-panel__exit_z3wyj","exitActiveRight":"side-panel__exitActiveRight_z3wyj","exitActiveLeft":"side-panel__exitActiveLeft_z3wyj"};
|
|
20
20
|
require('./transitions.desktop.css')
|
|
21
21
|
|
|
22
22
|
var SidePanelDesktopComponent = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1h4pj */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
/* mobile */
|
|
29
29
|
|
|
30
30
|
/* paddings */
|
|
31
|
-
} .side-
|
|
31
|
+
} .side-panel__s_8mm6i.side-panel__s_8mm6i {
|
|
32
32
|
width: var(--side-panel-s-width);
|
|
33
|
-
} .side-
|
|
33
|
+
} .side-panel__hidden_8mm6i {
|
|
34
34
|
overflow-x: hidden;
|
|
35
35
|
}
|
package/esm/desktop/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./Component.desktop";
|
|
2
2
|
export {};
|
package/esm/desktop/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.side-
|
|
1
|
+
/* hash: tpnr3 */
|
|
2
|
+
.side-panel__enterRight_z3wyj {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
transform: translateX(15px);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.side-
|
|
7
|
+
.side-panel__enterLeft_z3wyj {
|
|
8
8
|
opacity: 0;
|
|
9
9
|
transform: translateX(-15px);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.side-
|
|
12
|
+
.side-panel__enterActive_z3wyj {
|
|
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_z3wyj {
|
|
19
19
|
opacity: 1;
|
|
20
20
|
transform: translateX(0);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.side-
|
|
23
|
+
.side-panel__exitActiveRight_z3wyj {
|
|
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_z3wyj {
|
|
30
30
|
opacity: 0;
|
|
31
31
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
32
32
|
transform: translateX(-15px);
|
package/esm/index.js
CHANGED
|
@@ -9,13 +9,13 @@ import '@alfalab/core-components-navigation-bar/esm';
|
|
|
9
9
|
import './Context.js';
|
|
10
10
|
import '@alfalab/core-components-base-modal/esm';
|
|
11
11
|
import './ResponsiveContext.js';
|
|
12
|
-
import './Component.desktop.js';
|
|
12
|
+
import './desktop/Component.desktop.js';
|
|
13
13
|
import 'react-merge-refs';
|
|
14
14
|
import '@alfalab/core-components-drawer/esm';
|
|
15
15
|
import './components/content/Component.desktop.js';
|
|
16
16
|
import './components/content/Component.js';
|
|
17
17
|
import './components/footer/Component.desktop.js';
|
|
18
18
|
import './components/footer/Component.js';
|
|
19
|
-
import './Component.mobile.js';
|
|
19
|
+
import './mobile/Component.mobile.js';
|
|
20
20
|
import './components/content/Component.mobile.js';
|
|
21
21
|
import './components/footer/Component.mobile.js';
|
|
@@ -15,8 +15,8 @@ declare const SidePanelMobile: React.ForwardRefExoticComponent<BaseModalProps &
|
|
|
15
15
|
*/
|
|
16
16
|
hasCloser?: boolean | undefined;
|
|
17
17
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
18
|
-
Content: React.FC<import("
|
|
19
|
-
Header: React.FC<import("
|
|
20
|
-
Footer: React.FC<import("
|
|
18
|
+
Content: React.FC<import("../components/content/Component").ContentProps>;
|
|
19
|
+
Header: React.FC<import("../components/header/Component").HeaderProps>;
|
|
20
|
+
Footer: React.FC<import("../components/footer/Component").FooterProps>;
|
|
21
21
|
};
|
|
22
22
|
export { SidePanelMobileProps, SidePanelMobile };
|
|
@@ -2,19 +2,19 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { forwardRef, useContext } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseModal } from '@alfalab/core-components-base-modal/esm';
|
|
5
|
-
import { ContentMobile } from '
|
|
6
|
-
import { FooterMobile } from '
|
|
7
|
-
import { Header } from '
|
|
8
|
-
import { ResponsiveContext } from '
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
5
|
+
import { ContentMobile } from '../components/content/Component.mobile.js';
|
|
6
|
+
import { FooterMobile } from '../components/footer/Component.mobile.js';
|
|
7
|
+
import { Header } from '../components/header/Component.js';
|
|
8
|
+
import { ResponsiveContext } from '../ResponsiveContext.js';
|
|
9
|
+
import '../components/content/Component.js';
|
|
10
|
+
import '../Context.js';
|
|
11
|
+
import '../components/footer/Component.js';
|
|
12
12
|
import '@alfalab/core-components-navigation-bar/esm';
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"side-
|
|
14
|
+
var styles = {"component":"side-panel__component_19cvm","mobileContent":"side-panel__mobileContent_19cvm"};
|
|
15
15
|
require('./mobile.css')
|
|
16
16
|
|
|
17
|
-
var transitions = {"appear":"side-
|
|
17
|
+
var transitions = {"appear":"side-panel__appear_48wvn","enter":"side-panel__enter_48wvn","appearActive":"side-panel__appearActive_48wvn","enterActive":"side-panel__enterActive_48wvn","exit":"side-panel__exit_48wvn","exitActive":"side-panel__exitActive_48wvn","exitDone":"side-panel__exitDone_48wvn"};
|
|
18
18
|
require('./transitions.mobile.css')
|
|
19
19
|
|
|
20
20
|
var contextValue = { size: 's', view: 'mobile' };
|
package/esm/mobile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./Component.mobile";
|
|
2
2
|
export {};
|
package/esm/mobile/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7ui7p */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
/* mobile */
|
|
28
28
|
|
|
29
29
|
/* paddings */
|
|
30
|
-
} .side-
|
|
30
|
+
} .side-panel__component_19cvm {
|
|
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_19cvm.side-panel__component_19cvm {
|
|
38
38
|
position: fixed;
|
|
39
39
|
flex: 1;
|
|
40
|
-
} .side-
|
|
40
|
+
} .side-panel__mobileContent_19cvm {
|
|
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: mn72t */
|
|
2
|
+
.side-panel__appear_48wvn,
|
|
3
|
+
.side-panel__enter_48wvn {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.side-
|
|
9
|
-
.side-
|
|
8
|
+
.side-panel__appearActive_48wvn,
|
|
9
|
+
.side-panel__enterActive_48wvn {
|
|
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_48wvn {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.side-
|
|
21
|
-
.side-
|
|
20
|
+
.side-panel__exitActive_48wvn,
|
|
21
|
+
.side-panel__exitDone_48wvn {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
package/index.js
CHANGED
|
@@ -13,14 +13,14 @@ require('@alfalab/core-components-navigation-bar');
|
|
|
13
13
|
require('./Context.js');
|
|
14
14
|
require('@alfalab/core-components-base-modal');
|
|
15
15
|
require('./ResponsiveContext.js');
|
|
16
|
-
require('./Component.desktop.js');
|
|
16
|
+
require('./desktop/Component.desktop.js');
|
|
17
17
|
require('react-merge-refs');
|
|
18
18
|
require('@alfalab/core-components-drawer');
|
|
19
19
|
require('./components/content/Component.desktop.js');
|
|
20
20
|
require('./components/content/Component.js');
|
|
21
21
|
require('./components/footer/Component.desktop.js');
|
|
22
22
|
require('./components/footer/Component.js');
|
|
23
|
-
require('./Component.mobile.js');
|
|
23
|
+
require('./mobile/Component.mobile.js');
|
|
24
24
|
require('./components/content/Component.mobile.js');
|
|
25
25
|
require('./components/footer/Component.mobile.js');
|
|
26
26
|
|
|
@@ -15,8 +15,8 @@ declare const SidePanelMobile: React.ForwardRefExoticComponent<BaseModalProps &
|
|
|
15
15
|
*/
|
|
16
16
|
hasCloser?: boolean | undefined;
|
|
17
17
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
18
|
-
Content: React.FC<import("
|
|
19
|
-
Header: React.FC<import("
|
|
20
|
-
Footer: React.FC<import("
|
|
18
|
+
Content: React.FC<import("../components/content/Component").ContentProps>;
|
|
19
|
+
Header: React.FC<import("../components/header/Component").HeaderProps>;
|
|
20
|
+
Footer: React.FC<import("../components/footer/Component").FooterProps>;
|
|
21
21
|
};
|
|
22
22
|
export { SidePanelMobileProps, SidePanelMobile };
|
|
@@ -6,13 +6,13 @@ var tslib = require('tslib');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
|
|
9
|
-
var components_content_Component_mobile = require('
|
|
10
|
-
var components_footer_Component_mobile = require('
|
|
11
|
-
var components_header_Component = require('
|
|
12
|
-
var ResponsiveContext = require('
|
|
13
|
-
require('
|
|
14
|
-
require('
|
|
15
|
-
require('
|
|
9
|
+
var components_content_Component_mobile = require('../components/content/Component.mobile.js');
|
|
10
|
+
var components_footer_Component_mobile = require('../components/footer/Component.mobile.js');
|
|
11
|
+
var components_header_Component = require('../components/header/Component.js');
|
|
12
|
+
var ResponsiveContext = require('../ResponsiveContext.js');
|
|
13
|
+
require('../components/content/Component.js');
|
|
14
|
+
require('../Context.js');
|
|
15
|
+
require('../components/footer/Component.js');
|
|
16
16
|
require('@alfalab/core-components-navigation-bar');
|
|
17
17
|
|
|
18
18
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -20,10 +20,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
21
21
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
22
22
|
|
|
23
|
-
var styles = {"component":"side-
|
|
23
|
+
var styles = {"component":"side-panel__component_19cvm","mobileContent":"side-panel__mobileContent_19cvm"};
|
|
24
24
|
require('./mobile.css')
|
|
25
25
|
|
|
26
|
-
var transitions = {"appear":"side-
|
|
26
|
+
var transitions = {"appear":"side-panel__appear_48wvn","enter":"side-panel__enter_48wvn","appearActive":"side-panel__appearActive_48wvn","enterActive":"side-panel__enterActive_48wvn","exit":"side-panel__exit_48wvn","exitActive":"side-panel__exitActive_48wvn","exitDone":"side-panel__exitDone_48wvn"};
|
|
27
27
|
require('./transitions.mobile.css')
|
|
28
28
|
|
|
29
29
|
var contextValue = { size: 's', view: 'mobile' };
|
package/mobile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./Component.mobile";
|
|
2
2
|
export {};
|
package/mobile/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var mobile_Component_mobile = require('./Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
@@ -18,4 +18,4 @@ require('../ResponsiveContext.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.SidePanelMobile =
|
|
21
|
+
exports.SidePanelMobile = mobile_Component_mobile.SidePanelMobile;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7ui7p */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
/* mobile */
|
|
28
28
|
|
|
29
29
|
/* paddings */
|
|
30
|
-
} .side-
|
|
30
|
+
} .side-panel__component_19cvm {
|
|
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_19cvm.side-panel__component_19cvm {
|
|
38
38
|
position: fixed;
|
|
39
39
|
flex: 1;
|
|
40
|
-
} .side-
|
|
40
|
+
} .side-panel__mobileContent_19cvm {
|
|
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: mn72t */
|
|
2
|
+
.side-panel__appear_48wvn,
|
|
3
|
+
.side-panel__enter_48wvn {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.side-
|
|
9
|
-
.side-
|
|
8
|
+
.side-panel__appearActive_48wvn,
|
|
9
|
+
.side-panel__enterActive_48wvn {
|
|
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_48wvn {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.side-
|
|
21
|
-
.side-
|
|
20
|
+
.side-panel__exitActive_48wvn,
|
|
21
|
+
.side-panel__exitDone_48wvn {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
@@ -2,8 +2,8 @@ import React, { forwardRef, useMemo, useContext } from 'react';
|
|
|
2
2
|
import { useMatchMedia } from '@alfalab/core-components-mq/modern';
|
|
3
3
|
import { isClient } from '@alfalab/core-components-shared/modern';
|
|
4
4
|
import { Header } from './components/header/Component.js';
|
|
5
|
-
import { SidePanelDesktop } from './Component.desktop.js';
|
|
6
|
-
import { SidePanelMobile } from './Component.mobile.js';
|
|
5
|
+
import { SidePanelDesktop } from './desktop/Component.desktop.js';
|
|
6
|
+
import { SidePanelMobile } from './mobile/Component.mobile.js';
|
|
7
7
|
import { ResponsiveContext } from './ResponsiveContext.js';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '@alfalab/core-components-navigation-bar/modern';
|
|
@@ -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_cqees"};
|
|
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_12bco","withHeader":"side-panel__withHeader_12bco","flex":"side-panel__flex_12bco"};
|
|
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_15i3m"};
|
|
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:
|
|
1
|
+
/* hash: 1cfr7 */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
/* mobile */
|
|
31
31
|
|
|
32
32
|
/* paddings */
|
|
33
|
-
} .side-
|
|
33
|
+
} .side-panel__s_cqees {
|
|
34
34
|
padding: var(--side-panel-s-content-paddings)
|
|
35
|
-
} .side-
|
|
35
|
+
} .side-panel__s_cqees:last-child {
|
|
36
36
|
padding-bottom: var(--gap-2xl);
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1y9mj */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
/* mobile */
|
|
28
28
|
|
|
29
29
|
/* paddings */
|
|
30
|
-
} .side-
|
|
30
|
+
} .side-panel__content_12bco {
|
|
31
31
|
position: relative;
|
|
32
32
|
box-sizing: border-box;
|
|
33
33
|
width: 100%;
|
|
34
34
|
z-index: 0
|
|
35
|
-
} .side-
|
|
35
|
+
} .side-panel__content_12bco.side-panel__withHeader_12bco {
|
|
36
36
|
padding-top: 0;
|
|
37
|
-
} .side-
|
|
37
|
+
} .side-panel__flex_12bco {
|
|
38
38
|
flex: 1 1 auto;
|
|
39
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: shnyn */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
/* mobile */
|
|
29
29
|
|
|
30
30
|
/* paddings */
|
|
31
|
-
} .side-
|
|
31
|
+
} .side-panel__content_15i3m {
|
|
32
32
|
padding: var(--gap-m) var(--gap-m) 0
|
|
33
|
-
} .side-
|
|
33
|
+
} .side-panel__content_15i3m:last-child {
|
|
34
34
|
padding-bottom: var(--gap-m);
|
|
35
35
|
}
|
|
@@ -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_1bvwv","s":"side-panel__s_1bvwv"};
|
|
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], {
|