@alfalab/core-components-side-panel 2.4.2 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.desktop.js +17 -19
- package/Component.mobile.js +13 -15
- package/Component.responsive.d.ts +10 -0
- package/Component.responsive.js +22 -24
- package/Context.js +0 -2
- package/components/closer/Component.js +9 -11
- package/components/closer/index.css +4 -4
- package/components/content/Component.desktop.js +8 -10
- package/components/content/Component.js +6 -8
- package/components/content/Component.mobile.js +8 -10
- package/components/content/desktop.css +3 -3
- package/components/content/index.css +3 -3
- package/components/content/mobile.css +3 -3
- package/components/footer/Component.desktop.js +8 -10
- package/components/footer/Component.js +7 -9
- package/components/footer/Component.mobile.js +8 -10
- 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 +3 -3
- package/components/header/Component.desktop.js +11 -13
- package/components/header/Component.js +12 -14
- package/components/header/Component.mobile.js +13 -15
- package/components/header/desktop.css +6 -6
- package/components/header/index.css +16 -16
- package/components/header/mobile.css +3 -3
- package/cssm/Component.desktop.js +28 -30
- package/cssm/Component.mobile.js +19 -21
- package/cssm/Component.responsive.d.ts +10 -0
- package/cssm/Component.responsive.js +28 -30
- package/cssm/Context.js +0 -2
- package/cssm/components/closer/Component.js +10 -12
- package/cssm/components/content/Component.desktop.js +9 -11
- package/cssm/components/content/Component.js +6 -8
- package/cssm/components/content/Component.mobile.js +9 -11
- package/cssm/components/footer/Component.desktop.js +10 -12
- package/cssm/components/footer/Component.js +9 -11
- package/cssm/components/footer/Component.mobile.js +10 -12
- package/cssm/components/header/Component.desktop.js +15 -17
- package/cssm/components/header/Component.js +17 -19
- package/cssm/components/header/Component.mobile.js +16 -18
- package/cssm/desktop.d.ts +1 -0
- package/cssm/desktop.js +10 -12
- package/cssm/index.js +21 -23
- package/cssm/mobile.d.ts +1 -0
- package/cssm/mobile.js +12 -14
- package/cssm/responsive.d.ts +1 -0
- package/cssm/responsive.js +20 -22
- package/cssm/{tslib.es6-9682e485.d.ts → tslib.es6-bbd6cd2a.d.ts} +0 -0
- package/cssm/{tslib.es6-9682e485.js → tslib.es6-bbd6cd2a.js} +0 -0
- package/desktop.css +3 -3
- package/desktop.d.ts +1 -0
- package/desktop.js +8 -10
- package/esm/Component.desktop.js +9 -9
- package/esm/Component.mobile.js +9 -9
- package/esm/Component.responsive.d.ts +10 -0
- package/esm/Component.responsive.js +16 -16
- package/esm/components/closer/Component.js +4 -4
- package/esm/components/closer/index.css +4 -4
- package/esm/components/content/Component.desktop.js +4 -4
- package/esm/components/content/Component.js +2 -2
- package/esm/components/content/Component.mobile.js +4 -4
- package/esm/components/content/desktop.css +3 -3
- package/esm/components/content/index.css +3 -3
- package/esm/components/content/mobile.css +3 -3
- package/esm/components/footer/Component.desktop.js +4 -4
- package/esm/components/footer/Component.js +4 -4
- package/esm/components/footer/Component.mobile.js +4 -4
- 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 +3 -3
- package/esm/components/header/Component.desktop.js +5 -5
- package/esm/components/header/Component.js +4 -4
- package/esm/components/header/Component.mobile.js +6 -6
- package/esm/components/header/desktop.css +6 -6
- package/esm/components/header/index.css +16 -16
- package/esm/components/header/mobile.css +3 -3
- package/esm/desktop.css +3 -3
- package/esm/desktop.d.ts +1 -0
- package/esm/desktop.js +8 -8
- package/esm/index.js +14 -14
- package/esm/mobile.css +2 -2
- package/esm/mobile.d.ts +1 -0
- package/esm/mobile.js +8 -8
- package/esm/responsive.d.ts +1 -0
- package/esm/responsive.js +14 -14
- package/esm/transitions.desktop.css +7 -7
- package/esm/transitions.mobile.css +8 -8
- package/esm/{tslib.es6-c40b6a1b.d.ts → tslib.es6-d226871d.d.ts} +0 -0
- package/esm/{tslib.es6-c40b6a1b.js → tslib.es6-d226871d.js} +0 -0
- package/index.js +15 -17
- package/mobile.css +2 -2
- package/mobile.d.ts +1 -0
- package/mobile.js +8 -10
- package/modern/Component.desktop.js +8 -8
- package/modern/Component.mobile.js +8 -8
- package/modern/Component.responsive.d.ts +10 -0
- package/modern/Component.responsive.js +15 -15
- package/modern/components/closer/Component.js +3 -3
- package/modern/components/closer/index.css +4 -4
- package/modern/components/content/Component.desktop.js +3 -3
- package/modern/components/content/Component.js +2 -2
- package/modern/components/content/Component.mobile.js +3 -3
- package/modern/components/content/desktop.css +3 -3
- package/modern/components/content/index.css +3 -3
- package/modern/components/content/mobile.css +3 -3
- package/modern/components/footer/Component.desktop.js +3 -3
- package/modern/components/footer/Component.js +3 -3
- package/modern/components/footer/Component.mobile.js +3 -3
- 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 +3 -3
- package/modern/components/header/Component.desktop.js +4 -4
- package/modern/components/header/Component.js +2 -2
- package/modern/components/header/Component.mobile.js +5 -5
- package/modern/components/header/desktop.css +6 -6
- package/modern/components/header/index.css +16 -16
- package/modern/components/header/mobile.css +3 -3
- package/modern/desktop.css +3 -3
- package/modern/desktop.d.ts +1 -0
- package/modern/desktop.js +7 -7
- package/modern/index.js +13 -13
- package/modern/mobile.css +2 -2
- package/modern/mobile.d.ts +1 -0
- package/modern/mobile.js +7 -7
- package/modern/responsive.d.ts +1 -0
- package/modern/responsive.js +13 -13
- package/modern/transitions.desktop.css +7 -7
- package/modern/transitions.mobile.css +8 -8
- package/package.json +5 -5
- package/responsive.d.ts +1 -0
- package/responsive.js +14 -16
- package/transitions.desktop.css +7 -7
- package/transitions.mobile.css +8 -8
- /package/{tslib.es6-652400ff.d.ts → tslib.es6-e6454e7b.d.ts} +0 -0
- /package/{tslib.es6-652400ff.js → tslib.es6-e6454e7b.js} +0 -0
package/mobile.css
CHANGED
package/mobile.d.ts
CHANGED
package/mobile.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('./tslib.es6-652400ff.js');
|
|
3
|
+
var Component_mobile = require('./Component.mobile.js');
|
|
4
|
+
require('./tslib.es6-e6454e7b.js');
|
|
6
5
|
require('react');
|
|
7
6
|
require('classnames');
|
|
8
7
|
require('@alfalab/core-components-base-modal');
|
|
9
|
-
require('./
|
|
8
|
+
require('./components/content/Component.mobile.js');
|
|
10
9
|
require('./components/content/Component.js');
|
|
10
|
+
require('./Context.js');
|
|
11
|
+
require('./components/footer/Component.mobile.js');
|
|
11
12
|
require('./components/footer/Component.js');
|
|
12
|
-
require('
|
|
13
|
+
require('./components/header/Component.mobile.js');
|
|
14
|
+
require('@alfalab/icons-glyph/CrossMIcon');
|
|
13
15
|
require('./components/closer/Component.js');
|
|
16
|
+
require('@alfalab/core-components-icon-button');
|
|
14
17
|
require('./components/header/Component.js');
|
|
15
|
-
require('./components/content/Component.mobile.js');
|
|
16
|
-
require('./components/footer/Component.mobile.js');
|
|
17
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
18
|
-
require('./components/header/Component.mobile.js');
|
|
19
|
-
var Component_mobile = require('./Component.mobile.js');
|
|
20
18
|
|
|
21
19
|
|
|
22
20
|
|
|
@@ -2,22 +2,22 @@ import React, { forwardRef, useRef, isValidElement, cloneElement } from 'react';
|
|
|
2
2
|
import mergeRefs from 'react-merge-refs';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Drawer } from '@alfalab/core-components-drawer/modern';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
6
|
-
import './Context.js';
|
|
7
|
-
import './components/content/Component.js';
|
|
8
5
|
import { ContentDesktop } from './components/content/Component.desktop.js';
|
|
9
|
-
import './components/footer/Component.js';
|
|
10
6
|
import { FooterDesktop } from './components/footer/Component.desktop.js';
|
|
7
|
+
import { HeaderDesktop } from './components/header/Component.desktop.js';
|
|
8
|
+
import './components/content/Component.js';
|
|
9
|
+
import './Context.js';
|
|
10
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
11
|
+
import './components/footer/Component.js';
|
|
11
12
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
12
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
13
13
|
import './components/closer/Component.js';
|
|
14
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
14
15
|
import './components/header/Component.js';
|
|
15
|
-
import { HeaderDesktop } from './components/header/Component.desktop.js';
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
const styles = {"s":"side-panel__s_mpobc","hidden":"side-panel__hidden_mpobc"};
|
|
18
18
|
require('./desktop.css')
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const transitions = {"enterRight":"side-panel__enterRight_1u7at","enterLeft":"side-panel__enterLeft_1u7at","enterActive":"side-panel__enterActive_1u7at","exit":"side-panel__exit_1u7at","exitActiveRight":"side-panel__exitActiveRight_1u7at","exitActiveLeft":"side-panel__exitActiveLeft_1u7at"};
|
|
21
21
|
require('./transitions.desktop.css')
|
|
22
22
|
|
|
23
23
|
const SidePanelDesktopComponent = forwardRef(({ size = 's', children, className, wrapperClassName, contentTransitionProps = {}, backdropProps, placement = 'right', ...restProps }, ref) => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { BaseModal } from '@alfalab/core-components-base-modal/modern';
|
|
4
|
-
import './
|
|
4
|
+
import { ContentMobile } from './components/content/Component.mobile.js';
|
|
5
|
+
import { FooterMobile } from './components/footer/Component.mobile.js';
|
|
6
|
+
import { HeaderMobile } from './components/header/Component.mobile.js';
|
|
5
7
|
import './components/content/Component.js';
|
|
8
|
+
import './Context.js';
|
|
6
9
|
import './components/footer/Component.js';
|
|
7
|
-
import '@alfalab/
|
|
10
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
8
11
|
import './components/closer/Component.js';
|
|
12
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
9
13
|
import './components/header/Component.js';
|
|
10
|
-
import { ContentMobile } from './components/content/Component.mobile.js';
|
|
11
|
-
import { FooterMobile } from './components/footer/Component.mobile.js';
|
|
12
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
13
|
-
import { HeaderMobile } from './components/header/Component.mobile.js';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
const styles = {"component":"side-panel__component_11jxq"};
|
|
16
16
|
require('./mobile.css')
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const transitions = {"appear":"side-panel__appear_g0s2m","enter":"side-panel__enter_g0s2m","appearActive":"side-panel__appearActive_g0s2m","enterActive":"side-panel__enterActive_g0s2m","exit":"side-panel__exit_g0s2m","exitActive":"side-panel__exitActive_g0s2m","exitDone":"side-panel__exitDone_g0s2m"};
|
|
19
19
|
require('./transitions.mobile.css')
|
|
20
20
|
|
|
21
21
|
const SidePanelMobileComponent = forwardRef(({ children, className, transitionProps, ...restProps }, ref) => (React.createElement(BaseModal, { ...restProps, ref: ref, transitionProps: {
|
|
@@ -13,6 +13,11 @@ type SidePanelResponsiveProps = BaseModalProps & Pick<DrawerProps, 'contentTrans
|
|
|
13
13
|
* @default false
|
|
14
14
|
*/
|
|
15
15
|
hasCloser?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
18
|
+
* @default 1024
|
|
19
|
+
*/
|
|
20
|
+
breakpoint?: number;
|
|
16
21
|
};
|
|
17
22
|
declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProps & Pick<DrawerProps, "contentTransitionProps" | "nativeScrollbar" | "placement" | "scrollbarProps"> & {
|
|
18
23
|
/**
|
|
@@ -25,6 +30,11 @@ declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProp
|
|
|
25
30
|
* @default false
|
|
26
31
|
*/
|
|
27
32
|
hasCloser?: boolean | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
35
|
+
* @default 1024
|
|
36
|
+
*/
|
|
37
|
+
breakpoint?: number | undefined;
|
|
28
38
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
29
39
|
Header: React.FC<import("./components/header/Component.desktop").HeaderDesktopProps> | React.FC<import("./components/header/Component.mobile").HeaderMobileProps>;
|
|
30
40
|
Content: React.FC<import("./components/content/Component").ContentProps> | React.FC<import("./components/content/Component.desktop").ContentDesktopProps>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import React, { forwardRef, useMemo, useContext } from 'react';
|
|
2
|
-
import '
|
|
2
|
+
import { useMedia } from '@alfalab/hooks';
|
|
3
|
+
import { Closer } from './components/closer/Component.js';
|
|
4
|
+
import { SidePanelDesktop } from './Component.desktop.js';
|
|
5
|
+
import { SidePanelMobile } from './Component.mobile.js';
|
|
3
6
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components-
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
7
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
6
8
|
import './Context.js';
|
|
7
|
-
import '
|
|
9
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
10
|
+
import 'react-merge-refs';
|
|
11
|
+
import '@alfalab/core-components-drawer/modern';
|
|
8
12
|
import './components/content/Component.desktop.js';
|
|
9
|
-
import './components/
|
|
13
|
+
import './components/content/Component.js';
|
|
10
14
|
import './components/footer/Component.desktop.js';
|
|
15
|
+
import './components/footer/Component.js';
|
|
16
|
+
import './components/header/Component.desktop.js';
|
|
11
17
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
12
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
13
|
-
import { Closer } from './components/closer/Component.js';
|
|
14
18
|
import './components/header/Component.js';
|
|
15
|
-
import './components/header/Component.desktop.js';
|
|
16
|
-
import { SidePanelDesktop } from './Component.desktop.js';
|
|
17
19
|
import './components/content/Component.mobile.js';
|
|
18
20
|
import './components/footer/Component.mobile.js';
|
|
19
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
20
21
|
import './components/header/Component.mobile.js';
|
|
21
|
-
import
|
|
22
|
-
import { useMedia } from '@alfalab/hooks';
|
|
22
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
23
23
|
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
25
25
|
const ResponsiveContext = React.createContext({
|
|
@@ -33,10 +33,10 @@ function createResponsive(desktop, mobile) {
|
|
|
33
33
|
}
|
|
34
34
|
return ResponsiveChild;
|
|
35
35
|
}
|
|
36
|
-
const SidePanelResponsiveComponent = forwardRef(({ children, ...restProps }, ref) => {
|
|
36
|
+
const SidePanelResponsiveComponent = forwardRef(({ children, breakpoint = 1024, ...restProps }, ref) => {
|
|
37
37
|
const [view] = useMedia([
|
|
38
|
-
['mobile',
|
|
39
|
-
['desktop',
|
|
38
|
+
['mobile', `(max-width: ${breakpoint - 1}px)`],
|
|
39
|
+
['desktop', `(min-width: ${breakpoint}px)`],
|
|
40
40
|
], 'desktop');
|
|
41
41
|
const contextValue = useMemo(() => ({ view }), [view]);
|
|
42
42
|
const Component = view === 'desktop' ? SidePanelDesktop : SidePanelMobile;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useContext, useCallback } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
|
-
import { ModalContext } from '../../Context.js';
|
|
5
3
|
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
4
|
+
import { ModalContext } from '../../Context.js';
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const styles = {"closer":"side-panel__closer_vifym","button":"side-panel__button_vifym","sticky":"side-panel__sticky_vifym"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ldvq */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
|
|
4
4
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
:root {
|
|
26
26
|
--side-panel-closer-bg-color: var(--color-light-bg-primary-alpha-40);
|
|
27
27
|
}
|
|
28
|
-
.side-
|
|
28
|
+
.side-panel__closer_vifym {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
width: 48px;
|
|
31
31
|
height: 48px;
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
align-items: center;
|
|
35
35
|
justify-content: center;
|
|
36
36
|
}
|
|
37
|
-
.side-
|
|
37
|
+
.side-panel__button_vifym {
|
|
38
38
|
background: var(--side-panel-closer-bg-color);
|
|
39
39
|
-webkit-backdrop-filter: blur(10px);
|
|
40
40
|
backdrop-filter: blur(10px);
|
|
41
41
|
border-radius: 50px;
|
|
42
42
|
}
|
|
43
|
-
.side-
|
|
43
|
+
.side-panel__sticky_vifym {
|
|
44
44
|
position: sticky;
|
|
45
45
|
top: 0;
|
|
46
46
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
|
-
import '../../Context.js';
|
|
5
3
|
import { Content } from './Component.js';
|
|
4
|
+
import '../../Context.js';
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const styles = {"s":"side-panel__s_m3o7g"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
10
|
const ContentDesktop = ({ size = 's', className, ...restProps }) => React.createElement(Content, { className: cn(className, size && styles[size]), ...restProps });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
3
|
import { ModalContext } from '../../Context.js';
|
|
4
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const styles = {"content":"side-panel__content_1gf86","flex":"side-panel__flex_1gf86"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Content = ({ children, className, dataTestId }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
|
-
import '../../Context.js';
|
|
5
3
|
import { Content } from './Component.js';
|
|
4
|
+
import '../../Context.js';
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const styles = {"content":"side-panel__content_x2e2a"};
|
|
8
8
|
require('./mobile.css')
|
|
9
9
|
|
|
10
10
|
const ContentMobile = ({ className, ...restProps }) => (React.createElement(Content, { className: cn(className, styles.content), ...restProps }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 171un */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
|
|
24
24
|
/* mobile */
|
|
25
25
|
}
|
|
26
|
-
.side-
|
|
26
|
+
.side-panel__s_m3o7g {
|
|
27
27
|
padding: var(--side-panel-s-content-paddings)
|
|
28
28
|
}
|
|
29
|
-
.side-
|
|
29
|
+
.side-panel__s_m3o7g:last-child {
|
|
30
30
|
padding-bottom: var(--gap-2xl);
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ulhh3 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
/* mobile */
|
|
21
21
|
}
|
|
22
|
-
.side-
|
|
22
|
+
.side-panel__content_1gf86 {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
26
|
-
.side-
|
|
26
|
+
.side-panel__flex_1gf86 {
|
|
27
27
|
flex: 1 1 auto;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1080y */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
24
|
}
|
|
25
|
-
.side-
|
|
25
|
+
.side-panel__content_x2e2a {
|
|
26
26
|
padding: 0 var(--gap-m)
|
|
27
27
|
}
|
|
28
|
-
.side-
|
|
28
|
+
.side-panel__content_x2e2a:last-child {
|
|
29
29
|
padding-bottom: var(--gap-m);
|
|
30
30
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
|
-
import '../../Context.js';
|
|
5
3
|
import { Footer } from './Component.js';
|
|
4
|
+
import '../../Context.js';
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const styles = {"sticky":"side-panel__sticky_5xfxi","s":"side-panel__s_5xfxi"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
10
|
const FooterDesktop = ({ size = 's', className, sticky, ...restProps }) => (React.createElement(Footer, { className: cn(className, size && styles[size], {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
3
|
import { ModalContext } from '../../Context.js';
|
|
4
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const styles = {"footer":"side-panel__footer_113a4","sticky":"side-panel__sticky_113a4","highlighted":"side-panel__highlighted_113a4"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const layoutStyles = {"column":"side-panel__column_16b9c","gap-16":"side-panel__gap-16_16b9c","gap-24":"side-panel__gap-24_16b9c","gap-32":"side-panel__gap-32_16b9c","start":"side-panel__start_16b9c","center":"side-panel__center_16b9c","space-between":"side-panel__space-between_16b9c"};
|
|
10
10
|
require('./layout.css')
|
|
11
11
|
|
|
12
12
|
const Footer = ({ children, className, sticky, layout = 'start', gap, dataTestId, }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
|
-
import '../../Context.js';
|
|
5
3
|
import { Footer } from './Component.js';
|
|
4
|
+
import '../../Context.js';
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const styles = {"footer":"side-panel__footer_wt7vw","sticky":"side-panel__sticky_wt7vw"};
|
|
8
8
|
require('./mobile.css')
|
|
9
9
|
|
|
10
10
|
const FooterMobile = ({ className, sticky, ...restProps }) => (React.createElement(Footer, { className: cn(className, styles.footer, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9ibqp */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
|
|
25
25
|
/* mobile */
|
|
26
26
|
}
|
|
27
|
-
.side-
|
|
27
|
+
.side-panel__sticky_5xfxi {
|
|
28
28
|
bottom: 0;
|
|
29
29
|
}
|
|
30
|
-
.side-
|
|
30
|
+
.side-panel__s_5xfxi {
|
|
31
31
|
padding: var(--side-panel-s-footer-paddings);
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lo9y8 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
|
|
27
27
|
/* mobile */
|
|
28
28
|
}
|
|
29
|
-
.side-
|
|
29
|
+
.side-panel__footer_113a4 {
|
|
30
30
|
width: 100%;
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
transition: box-shadow 0.2s ease, background 0.2s ease;
|
|
33
33
|
}
|
|
34
|
-
.side-
|
|
34
|
+
.side-panel__sticky_113a4 {
|
|
35
35
|
background: var(--side-panel-footer-background);
|
|
36
36
|
position: sticky;
|
|
37
37
|
z-index: 1;
|
|
38
38
|
}
|
|
39
|
-
.side-
|
|
39
|
+
.side-panel__highlighted_113a4 {
|
|
40
40
|
background: var(--side-panel-footer-highlight-background);
|
|
41
41
|
box-shadow: var(--side-panel-footer-highlight-box-shadow);
|
|
42
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 197o6 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -25,60 +25,60 @@
|
|
|
25
25
|
|
|
26
26
|
/* mobile */
|
|
27
27
|
}
|
|
28
|
-
.side-
|
|
28
|
+
.side-panel__column_16b9c {
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column
|
|
31
31
|
}
|
|
32
|
-
.side-
|
|
32
|
+
.side-panel__column_16b9c > * {
|
|
33
33
|
margin-bottom: var(--side-panel-footer-default-gap);
|
|
34
34
|
}
|
|
35
|
-
.side-
|
|
36
|
-
.side-
|
|
35
|
+
.side-panel__column_16b9c > *:last-child,
|
|
36
|
+
.side-panel__column_16b9c > *:only-child {
|
|
37
37
|
margin-bottom: 0;
|
|
38
38
|
}
|
|
39
|
-
.side-
|
|
39
|
+
.side-panel__column_16b9c.side-panel__gap-16_16b9c > * {
|
|
40
40
|
margin-bottom: var(--gap-m);
|
|
41
41
|
}
|
|
42
|
-
.side-
|
|
42
|
+
.side-panel__column_16b9c.side-panel__gap-24_16b9c > * {
|
|
43
43
|
margin-bottom: var(--gap-xl);
|
|
44
44
|
}
|
|
45
|
-
.side-
|
|
45
|
+
.side-panel__column_16b9c.side-panel__gap-32_16b9c > * {
|
|
46
46
|
margin-bottom: var(--gap-2xl);
|
|
47
47
|
}
|
|
48
|
-
.side-
|
|
48
|
+
.side-panel__start_16b9c {
|
|
49
49
|
justify-content: flex-start;
|
|
50
50
|
}
|
|
51
|
-
.side-
|
|
51
|
+
.side-panel__center_16b9c {
|
|
52
52
|
justify-content: center;
|
|
53
53
|
}
|
|
54
|
-
.side-panel__space-
|
|
54
|
+
.side-panel__space-between_16b9c {
|
|
55
55
|
justify-content: space-between
|
|
56
56
|
}
|
|
57
|
-
.side-panel__space-
|
|
57
|
+
.side-panel__space-between_16b9c > * {
|
|
58
58
|
flex: 1;
|
|
59
59
|
}
|
|
60
|
-
.side-
|
|
61
|
-
.side-
|
|
62
|
-
.side-panel__space-
|
|
60
|
+
.side-panel__start_16b9c,
|
|
61
|
+
.side-panel__center_16b9c,
|
|
62
|
+
.side-panel__space-between_16b9c {
|
|
63
63
|
display: flex
|
|
64
64
|
}
|
|
65
|
-
.side-
|
|
65
|
+
.side-panel__start_16b9c > *, .side-panel__center_16b9c > *, .side-panel__space-between_16b9c > * {
|
|
66
66
|
margin-right: var(--side-panel-footer-default-gap);
|
|
67
67
|
}
|
|
68
|
-
.side-
|
|
69
|
-
.side-
|
|
70
|
-
.side-
|
|
71
|
-
.side-
|
|
72
|
-
.side-panel__space-
|
|
73
|
-
.side-panel__space-
|
|
68
|
+
.side-panel__start_16b9c > *:last-child,
|
|
69
|
+
.side-panel__start_16b9c > *:only-child,
|
|
70
|
+
.side-panel__center_16b9c > *:last-child,
|
|
71
|
+
.side-panel__center_16b9c > *:only-child,
|
|
72
|
+
.side-panel__space-between_16b9c > *:last-child,
|
|
73
|
+
.side-panel__space-between_16b9c > *:only-child {
|
|
74
74
|
margin-right: 0;
|
|
75
75
|
}
|
|
76
|
-
.side-
|
|
76
|
+
.side-panel__start_16b9c.side-panel__gap-16_16b9c > *, .side-panel__center_16b9c.side-panel__gap-16_16b9c > *, .side-panel__space-between_16b9c.side-panel__gap-16_16b9c > * {
|
|
77
77
|
margin-right: var(--gap-m);
|
|
78
78
|
}
|
|
79
|
-
.side-
|
|
79
|
+
.side-panel__start_16b9c.side-panel__gap-24_16b9c > *, .side-panel__center_16b9c.side-panel__gap-24_16b9c > *, .side-panel__space-between_16b9c.side-panel__gap-24_16b9c > * {
|
|
80
80
|
margin-right: var(--gap-xl);
|
|
81
81
|
}
|
|
82
|
-
.side-
|
|
82
|
+
.side-panel__start_16b9c.side-panel__gap-32_16b9c > *, .side-panel__center_16b9c.side-panel__gap-32_16b9c > *, .side-panel__space-between_16b9c.side-panel__gap-32_16b9c > * {
|
|
83
83
|
margin-right: var(--gap-2xl);
|
|
84
84
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: dmbj0 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
24
|
}
|
|
25
|
-
.side-
|
|
25
|
+
.side-panel__footer_wt7vw {
|
|
26
26
|
padding: var(--gap-m);
|
|
27
27
|
}
|
|
28
|
-
.side-
|
|
28
|
+
.side-panel__sticky_wt7vw {
|
|
29
29
|
bottom: 0;
|
|
30
30
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
|
-
import '../../Context.js';
|
|
5
3
|
import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
7
4
|
import { Closer } from '../closer/Component.js';
|
|
8
5
|
import { Header } from './Component.js';
|
|
6
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
7
|
+
import '../../Context.js';
|
|
8
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const styles = {"content":"side-panel__content_yjcco","s":"side-panel__s_yjcco","hasContent":"side-panel__hasContent_yjcco","sticky":"side-panel__sticky_yjcco"};
|
|
11
11
|
require('./desktop.css')
|
|
12
12
|
|
|
13
13
|
const HeaderDesktop = ({ size = 's', className, contentClassName, hasCloser = true, closerIcon = CrossHeavyMIcon, sticky, leftAddons = React.createElement("span", null), title, children, ...restProps }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
4
3
|
import { ModalContext } from '../../Context.js';
|
|
4
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const styles = {"header":"side-panel__header_1vhho","hasContent":"side-panel__hasContent_1vhho","highlighted":"side-panel__highlighted_1vhho","sticky":"side-panel__sticky_1vhho","backgroundImage":"side-panel__backgroundImage_1vhho","content":"side-panel__content_1vhho","title":"side-panel__title_1vhho","addon":"side-panel__addon_1vhho","closer":"side-panel__closer_1vhho","left":"side-panel__left_1vhho","center":"side-panel__center_1vhho","right":"side-panel__right_1vhho","trim":"side-panel__trim_1vhho"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Header = ({ className, addonClassName, contentClassName, leftAddons, children, align = 'left', trim = true, title, closer, sticky, imageUrl, dataTestId, }) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/
|
|
4
|
-
import '../../Context.js';
|
|
5
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
3
|
+
import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
|
|
6
4
|
import { Closer } from '../closer/Component.js';
|
|
7
5
|
import { Header } from './Component.js';
|
|
8
|
-
import
|
|
6
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
7
|
+
import '../../Context.js';
|
|
8
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const styles = {"sticky":"side-panel__sticky_7hkf4","content":"side-panel__content_7hkf4"};
|
|
11
11
|
require('./mobile.css')
|
|
12
12
|
|
|
13
13
|
const HeaderMobile = ({ className, contentClassName, hasCloser = true, sticky, closerIcon = CrossMIcon, ...restProps }) => (React.createElement(Header, { className: cn(className, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: j9ylc */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
|
|
35
35
|
/* mobile */
|
|
36
36
|
}
|
|
37
|
-
.side-
|
|
37
|
+
.side-panel__content_yjcco {
|
|
38
38
|
font-weight: var(--side-panel-header-desktop-font-weight);
|
|
39
39
|
font-family: var(--side-panel-header-desktop-font-family);
|
|
40
40
|
}
|
|
41
|
-
.side-
|
|
41
|
+
.side-panel__s_yjcco .side-panel__content_yjcco {
|
|
42
42
|
padding: var(--side-panel-s-header-desktop-content-paddings);
|
|
43
43
|
font-size: var(--side-panel-s-header-desktop-font-size);
|
|
44
44
|
line-height: var(--side-panel-s-header-desktop-line-height);
|
|
45
45
|
}
|
|
46
|
-
.side-
|
|
46
|
+
.side-panel__s_yjcco {
|
|
47
47
|
padding: var(--side-panel-s-header-paddings)
|
|
48
48
|
}
|
|
49
|
-
.side-
|
|
49
|
+
.side-panel__s_yjcco:not(.side-panel__hasContent_yjcco) {
|
|
50
50
|
padding-bottom: 0;
|
|
51
51
|
}
|
|
52
|
-
.side-
|
|
52
|
+
.side-panel__sticky_yjcco {
|
|
53
53
|
top: 0;
|
|
54
54
|
}
|