@alfalab/core-components-modal 5.2.4 → 5.2.8
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/CHANGELOG.md +36 -0
- package/Component.desktop.js +3 -3
- package/Component.mobile.js +3 -3
- package/Component.responsive.d.ts +1 -1
- package/Component.responsive.js +2 -2
- package/components/closer/Component.js +2 -2
- package/components/closer/index.css +4 -4
- package/components/content/Component.desktop.js +2 -2
- package/components/content/Component.js +1 -1
- package/components/content/Component.mobile.js +2 -2
- package/components/content/desktop.css +8 -8
- package/components/content/index.css +3 -3
- package/components/content/mobile.css +3 -3
- package/components/footer/Component.desktop.js +2 -2
- package/components/footer/Component.js +2 -2
- package/components/footer/Component.mobile.js +2 -2
- package/components/footer/desktop.css +9 -9
- 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 +2 -2
- package/components/header/Component.js +1 -1
- package/components/header/Component.mobile.js +2 -2
- package/components/header/desktop.css +17 -17
- package/components/header/index.css +15 -15
- package/components/header/mobile.css +3 -3
- package/cssm/Component.desktop.js +2 -2
- package/cssm/Component.mobile.js +2 -2
- package/cssm/Component.responsive.js +2 -2
- package/cssm/Context.js +1 -1
- package/cssm/components/closer/Component.js +2 -2
- package/cssm/components/content/Component.desktop.js +1 -1
- package/cssm/components/content/Component.js +1 -1
- package/cssm/components/content/Component.mobile.js +1 -1
- package/cssm/components/footer/Component.desktop.js +1 -1
- package/cssm/components/footer/Component.js +1 -1
- package/cssm/components/footer/Component.mobile.js +1 -1
- package/cssm/components/header/Component.desktop.js +2 -2
- package/cssm/components/header/Component.js +1 -1
- package/cssm/components/header/Component.mobile.js +2 -2
- package/cssm/desktop.js +2 -2
- package/cssm/index.js +2 -2
- package/cssm/mobile.js +2 -2
- package/cssm/responsive.js +2 -2
- package/desktop.css +9 -9
- package/desktop.js +2 -2
- package/esm/Component.desktop.js +5 -5
- package/esm/Component.mobile.js +5 -5
- package/esm/Component.responsive.d.ts +1 -1
- package/esm/Component.responsive.js +4 -4
- package/esm/Context.js +1 -1
- package/esm/components/closer/Component.js +4 -4
- package/esm/components/closer/index.css +4 -4
- package/esm/components/content/Component.desktop.js +3 -3
- package/esm/components/content/Component.js +2 -2
- package/esm/components/content/Component.mobile.js +3 -3
- package/esm/components/content/desktop.css +8 -8
- package/esm/components/content/index.css +3 -3
- package/esm/components/content/mobile.css +3 -3
- package/esm/components/footer/Component.desktop.js +3 -3
- package/esm/components/footer/Component.js +3 -3
- package/esm/components/footer/Component.mobile.js +3 -3
- package/esm/components/footer/desktop.css +9 -9
- 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 +4 -4
- package/esm/components/header/Component.js +2 -2
- package/esm/components/header/Component.mobile.js +4 -4
- package/esm/components/header/desktop.css +17 -17
- package/esm/components/header/index.css +15 -15
- package/esm/components/header/mobile.css +3 -3
- package/esm/desktop.css +9 -9
- package/esm/desktop.js +4 -4
- package/esm/index.js +4 -4
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +4 -4
- package/esm/responsive.js +4 -4
- package/esm/transitions.css +8 -8
- package/esm/transitions.module-07f304a6.js +4 -0
- package/esm/{tslib.es6-7706dd6f.d.ts → tslib.es6-09e91687.d.ts} +0 -0
- package/esm/{tslib.es6-7706dd6f.js → tslib.es6-09e91687.js} +0 -0
- package/index.js +2 -2
- package/mobile.css +2 -2
- package/mobile.js +2 -2
- package/modern/Component.desktop.js +4 -4
- package/modern/Component.mobile.js +4 -4
- package/modern/Component.responsive.js +3 -3
- package/modern/Context.js +1 -1
- package/modern/components/closer/Component.js +3 -3
- package/modern/components/closer/index.css +4 -4
- package/modern/components/content/Component.desktop.js +2 -2
- package/modern/components/content/Component.js +2 -2
- package/modern/components/content/Component.mobile.js +2 -2
- package/modern/components/content/desktop.css +8 -8
- package/modern/components/content/index.css +3 -3
- package/modern/components/content/mobile.css +3 -3
- package/modern/components/footer/Component.desktop.js +2 -2
- package/modern/components/footer/Component.js +3 -3
- package/modern/components/footer/Component.mobile.js +2 -2
- package/modern/components/footer/desktop.css +9 -9
- 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 +3 -3
- package/modern/components/header/Component.js +2 -2
- package/modern/components/header/Component.mobile.js +3 -3
- package/modern/components/header/desktop.css +17 -17
- package/modern/components/header/index.css +15 -15
- package/modern/components/header/mobile.css +3 -3
- package/modern/desktop.css +9 -9
- package/modern/desktop.js +3 -3
- package/modern/index.js +3 -3
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +3 -3
- package/modern/responsive.js +3 -3
- package/modern/transitions.css +8 -8
- package/modern/transitions.module-07f304a6.js +4 -0
- package/package.json +5 -5
- package/responsive.js +2 -2
- package/transitions.css +8 -8
- package/transitions.module-ab513ace.js +6 -0
- package/{tslib.es6-9e07616d.d.ts → tslib.es6-2f4771ad.d.ts} +0 -0
- package/{tslib.es6-9e07616d.js → tslib.es6-2f4771ad.js} +0 -0
- package/esm/transitions.module-dff9fc07.js +0 -4
- package/modern/transitions.module-dff9fc07.js +0 -4
- package/transitions.module-853e7be6.js +0 -6
package/esm/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
1
|
+
/* hash: 1lvfm */
|
|
2
|
+
.modal__appear_1qz3b,
|
|
3
|
+
.modal__enter_1qz3b {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.modal__appearActive_1qz3b,
|
|
9
|
+
.modal__enterActive_1qz3b {
|
|
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
|
-
.
|
|
15
|
+
.modal__exit_1qz3b {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.modal__exitActive_1qz3b,
|
|
21
|
+
.modal__exitDone_1qz3b {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var transitions = {"appear":"modal__appear_1qz3b","enter":"modal__enter_1qz3b","appearActive":"modal__appearActive_1qz3b","enterActive":"modal__enterActive_1qz3b","exit":"modal__exit_1qz3b","exitActive":"modal__exitActive_1qz3b","exitDone":"modal__exitDone_1qz3b"};
|
|
2
|
+
require('./transitions.css')
|
|
3
|
+
|
|
4
|
+
export { transitions as t };
|
|
File without changes
|
|
File without changes
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-2f4771ad.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/core-components-base-modal');
|
|
@@ -18,7 +18,7 @@ require('./components/content/Component.desktop.js');
|
|
|
18
18
|
require('./components/footer/Component.js');
|
|
19
19
|
require('./components/footer/Component.desktop.js');
|
|
20
20
|
require('./Component.desktop.js');
|
|
21
|
-
require('./transitions.module-
|
|
21
|
+
require('./transitions.module-ab513ace.js');
|
|
22
22
|
require('@alfalab/icons-glyph/CrossMIcon');
|
|
23
23
|
require('./components/header/Component.mobile.js');
|
|
24
24
|
require('./components/content/Component.mobile.js');
|
package/mobile.css
CHANGED
package/mobile.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-2f4771ad.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/core-components-base-modal');
|
|
@@ -13,7 +13,7 @@ require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
|
13
13
|
require('./components/closer/Component.js');
|
|
14
14
|
require('./components/content/Component.js');
|
|
15
15
|
require('./components/footer/Component.js');
|
|
16
|
-
require('./transitions.module-
|
|
16
|
+
require('./transitions.module-ab513ace.js');
|
|
17
17
|
require('@alfalab/icons-glyph/CrossMIcon');
|
|
18
18
|
require('./components/header/Component.mobile.js');
|
|
19
19
|
require('./components/content/Component.mobile.js');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useCallback, isValidElement, cloneElement } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { BaseModal } from '@alfalab/core-components-base-modal/
|
|
3
|
+
import { BaseModal } from '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
5
5
|
import './Context.js';
|
|
6
6
|
import './components/header/Component.js';
|
|
7
|
-
import '@alfalab/core-components-icon-button/
|
|
7
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
8
8
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
9
9
|
import { Closer } from './components/closer/Component.js';
|
|
10
10
|
import { HeaderDesktop } from './components/header/Component.desktop.js';
|
|
@@ -12,9 +12,9 @@ import './components/content/Component.js';
|
|
|
12
12
|
import { ContentDesktop } from './components/content/Component.desktop.js';
|
|
13
13
|
import './components/footer/Component.js';
|
|
14
14
|
import { FooterDesktop } from './components/footer/Component.desktop.js';
|
|
15
|
-
import { t as transitions } from './transitions.module-
|
|
15
|
+
import { t as transitions } from './transitions.module-07f304a6.js';
|
|
16
16
|
|
|
17
|
-
var styles = {"wrapper":"
|
|
17
|
+
var styles = {"wrapper":"modal__wrapper_12kb8","component":"modal__component_12kb8","fullscreen":"modal__fullscreen_12kb8","s":"modal__s_12kb8","m":"modal__m_12kb8","l":"modal__l_12kb8","xl":"modal__xl_12kb8"};
|
|
18
18
|
require('./desktop.css')
|
|
19
19
|
|
|
20
20
|
const ModalDesktopComponent = forwardRef(({ size = 's', fixedPosition, fullscreen, children, className, wrapperClassName, transitionProps = {}, ...restProps }, ref) => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { BaseModal } from '@alfalab/core-components-base-modal/
|
|
3
|
+
import { BaseModal } from '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import './Context.js';
|
|
5
5
|
import './components/header/Component.js';
|
|
6
|
-
import '@alfalab/core-components-icon-button/
|
|
6
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
7
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
8
8
|
import { Closer } from './components/closer/Component.js';
|
|
9
9
|
import './components/content/Component.js';
|
|
10
10
|
import './components/footer/Component.js';
|
|
11
|
-
import { t as transitions } from './transitions.module-
|
|
11
|
+
import { t as transitions } from './transitions.module-07f304a6.js';
|
|
12
12
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
13
13
|
import { HeaderMobile } from './components/header/Component.mobile.js';
|
|
14
14
|
import { ContentMobile } from './components/content/Component.mobile.js';
|
|
15
15
|
import { FooterMobile } from './components/footer/Component.mobile.js';
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"
|
|
17
|
+
var styles = {"component":"modal__component_7c1ol"};
|
|
18
18
|
require('./mobile.css')
|
|
19
19
|
|
|
20
20
|
const ModalMobileComponent = forwardRef(({ children, className, ...restProps }, ref) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { forwardRef, useMemo, useContext } from 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import './Context.js';
|
|
6
6
|
import './components/header/Component.js';
|
|
7
|
-
import '@alfalab/core-components-icon-button/
|
|
7
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
8
8
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
9
9
|
import { Closer } from './components/closer/Component.js';
|
|
10
10
|
import './components/header/Component.desktop.js';
|
|
@@ -13,7 +13,7 @@ import './components/content/Component.desktop.js';
|
|
|
13
13
|
import './components/footer/Component.js';
|
|
14
14
|
import './components/footer/Component.desktop.js';
|
|
15
15
|
import { ModalDesktop } from './Component.desktop.js';
|
|
16
|
-
import './transitions.module-
|
|
16
|
+
import './transitions.module-07f304a6.js';
|
|
17
17
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
18
18
|
import './components/header/Component.mobile.js';
|
|
19
19
|
import './components/content/Component.mobile.js';
|
package/modern/Context.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useContext, useCallback } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import { ModalContext } from '../../Context.js';
|
|
5
|
-
import { IconButton } from '@alfalab/core-components-icon-button/
|
|
5
|
+
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
6
6
|
import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"closer":"
|
|
8
|
+
var styles = {"closer":"modal__closer_1gech","button":"modal__button_1gech","sticky":"modal__sticky_1gech"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 17raq */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
|
|
4
4
|
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
:root {
|
|
30
30
|
--modal-closer-bg-color: var(--color-light-bg-primary-alpha-40);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.modal__closer_1gech {
|
|
33
33
|
flex-shrink: 0;
|
|
34
34
|
width: 48px;
|
|
35
35
|
height: 48px;
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
align-items: center;
|
|
39
39
|
justify-content: center;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.modal__button_1gech {
|
|
42
42
|
background: var(--modal-closer-bg-color);
|
|
43
43
|
-webkit-backdrop-filter: blur(10px);
|
|
44
44
|
backdrop-filter: blur(10px);
|
|
45
45
|
border-radius: 50px;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.modal__sticky_1gech {
|
|
48
48
|
position: sticky;
|
|
49
49
|
top: calc(var(--modal-vertical-padding) * -1);
|
|
50
50
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import { Content } from './Component.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"s":"
|
|
7
|
+
var styles = {"s":"modal__s_16ndt","m":"modal__m_16ndt","l":"modal__l_16ndt","xl":"modal__xl_16ndt","fullscreen":"modal__fullscreen_16ndt"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
10
|
const ContentDesktop = ({ size, className, ...restProps }) => (React.createElement(Content, Object.assign({ 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/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import { ModalContext } from '../../Context.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"content":"
|
|
6
|
+
var styles = {"content":"modal__content_1iq3b","flex":"modal__flex_1iq3b"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Content = ({ children, flex, className }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import { Content } from './Component.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"content":"
|
|
7
|
+
var styles = {"content":"modal__content_ajzg9"};
|
|
8
8
|
require('./mobile.css')
|
|
9
9
|
|
|
10
10
|
const ContentMobile = ({ className, ...restProps }) => (React.createElement(Content, Object.assign({ className: cn(className, styles.content) }, restProps)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7p4kh */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
|
|
25
25
|
/* mobile */
|
|
26
26
|
}
|
|
27
|
-
.
|
|
28
|
-
.
|
|
27
|
+
.modal__s_16ndt,
|
|
28
|
+
.modal__m_16ndt {
|
|
29
29
|
padding: var(--modal-s-content-paddings)
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.modal__s_16ndt:last-child, .modal__m_16ndt:last-child {
|
|
32
32
|
padding-bottom: var(--modal-s-content-only-bottom-padding);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
35
|
-
.
|
|
36
|
-
.
|
|
34
|
+
.modal__l_16ndt,
|
|
35
|
+
.modal__xl_16ndt,
|
|
36
|
+
.modal__fullscreen_16ndt {
|
|
37
37
|
padding: 0 var(--gap-6xl)
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__l_16ndt:last-child, .modal__xl_16ndt:last-child, .modal__fullscreen_16ndt:last-child {
|
|
40
40
|
padding-bottom: var(--gap-6xl);
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 127y3 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
/* mobile */
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.modal__content_1iq3b {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.modal__flex_1iq3b {
|
|
27
27
|
flex: 1 1 auto;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bgvyu */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.modal__content_ajzg9 {
|
|
26
26
|
padding: 0 var(--gap-m)
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.modal__content_ajzg9: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/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import { Footer } from './Component.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"footer":"
|
|
7
|
+
var styles = {"footer":"modal__footer_1ojwa","sticky":"modal__sticky_1ojwa","fullscreen":"modal__fullscreen_1ojwa","s":"modal__s_1ojwa","m":"modal__m_1ojwa","l":"modal__l_1ojwa","xl":"modal__xl_1ojwa"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
10
|
const FooterDesktop = ({ size, className, sticky, ...restProps }) => (React.createElement(Footer, Object.assign({ className: cn(className, styles.footer, 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/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import { ModalContext } from '../../Context.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"footer":"
|
|
6
|
+
var styles = {"footer":"modal__footer_19m90","sticky":"modal__sticky_19m90","highlighted":"modal__highlighted_19m90"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
|
-
var layoutStyles = {"column":"
|
|
9
|
+
var layoutStyles = {"column":"modal__column_akuep","gap-16":"modal__gap-16_akuep","gap-24":"modal__gap-24_akuep","gap-32":"modal__gap-32_akuep","start":"modal__start_akuep","center":"modal__center_akuep","space-between":"modal__space-between_akuep"};
|
|
10
10
|
require('./layout.css')
|
|
11
11
|
|
|
12
12
|
const Footer = ({ children, className, sticky, layout = 'start', gap }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import { Footer } from './Component.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"footer":"
|
|
7
|
+
var styles = {"footer":"modal__footer_1g05h","sticky":"modal__sticky_1g05h"};
|
|
8
8
|
require('./mobile.css')
|
|
9
9
|
|
|
10
10
|
const FooterMobile = ({ className, sticky, ...restProps }) => (React.createElement(Footer, Object.assign({ className: cn(className, styles.footer, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: chccp */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.modal__footer_1ojwa {
|
|
35
35
|
border-bottom-left-radius: var(--modal-border-radius);
|
|
36
36
|
border-bottom-right-radius: var(--modal-border-radius);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.modal__sticky_1ojwa {
|
|
39
39
|
bottom: calc(var(--modal-vertical-padding) * -1)
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.modal__sticky_1ojwa.modal__fullscreen_1ojwa {
|
|
42
42
|
bottom: 0;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
45
|
-
.
|
|
44
|
+
.modal__s_1ojwa,
|
|
45
|
+
.modal__m_1ojwa {
|
|
46
46
|
padding: var(--modal-s-footer-paddings);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
49
|
-
.
|
|
50
|
-
.
|
|
48
|
+
.modal__l_1ojwa,
|
|
49
|
+
.modal__xl_1ojwa,
|
|
50
|
+
.modal__fullscreen_1ojwa {
|
|
51
51
|
padding: var(--gap-2xl) var(--gap-6xl) var(--gap-6xl);
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1j206 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
|
|
27
27
|
/* mobile */
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.modal__footer_19m90 {
|
|
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
|
-
.
|
|
34
|
+
.modal__sticky_19m90 {
|
|
35
35
|
background: var(--modal-footer-background);
|
|
36
36
|
position: sticky;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.modal__highlighted_19m90 {
|
|
39
39
|
background: var(--modal-footer-highlight-background);
|
|
40
40
|
box-shadow: var(--modal-footer-highlight-box-shadow);
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1evy6 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -25,60 +25,60 @@
|
|
|
25
25
|
|
|
26
26
|
/* mobile */
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.modal__column_akuep {
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.modal__column_akuep > * {
|
|
33
33
|
margin-bottom: var(--modal-footer-default-gap);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
36
|
-
.
|
|
35
|
+
.modal__column_akuep > *:last-child,
|
|
36
|
+
.modal__column_akuep > *:only-child {
|
|
37
37
|
margin-bottom: 0;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__column_akuep.modal__gap-16_akuep > * {
|
|
40
40
|
margin-bottom: var(--gap-m);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.modal__column_akuep.modal__gap-24_akuep > * {
|
|
43
43
|
margin-bottom: var(--gap-xl);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.modal__column_akuep.modal__gap-32_akuep > * {
|
|
46
46
|
margin-bottom: var(--gap-2xl);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.modal__start_akuep {
|
|
49
49
|
justify-content: flex-start;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.modal__center_akuep {
|
|
52
52
|
justify-content: center;
|
|
53
53
|
}
|
|
54
|
-
.modal__space-
|
|
54
|
+
.modal__space-between_akuep {
|
|
55
55
|
justify-content: space-between
|
|
56
56
|
}
|
|
57
|
-
.modal__space-
|
|
57
|
+
.modal__space-between_akuep > * {
|
|
58
58
|
flex: 1;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
61
|
-
.
|
|
62
|
-
.modal__space-
|
|
60
|
+
.modal__start_akuep,
|
|
61
|
+
.modal__center_akuep,
|
|
62
|
+
.modal__space-between_akuep {
|
|
63
63
|
display: flex
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.modal__start_akuep > *, .modal__center_akuep > *, .modal__space-between_akuep > * {
|
|
66
66
|
margin-right: var(--modal-footer-default-gap);
|
|
67
67
|
}
|
|
68
|
-
.
|
|
69
|
-
.
|
|
70
|
-
.
|
|
71
|
-
.
|
|
72
|
-
.modal__space-
|
|
73
|
-
.modal__space-
|
|
68
|
+
.modal__start_akuep > *:last-child,
|
|
69
|
+
.modal__start_akuep > *:only-child,
|
|
70
|
+
.modal__center_akuep > *:last-child,
|
|
71
|
+
.modal__center_akuep > *:only-child,
|
|
72
|
+
.modal__space-between_akuep > *:last-child,
|
|
73
|
+
.modal__space-between_akuep > *:only-child {
|
|
74
74
|
margin-right: 0;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.modal__start_akuep.modal__gap-16_akuep > *, .modal__center_akuep.modal__gap-16_akuep > *, .modal__space-between_akuep.modal__gap-16_akuep > * {
|
|
77
77
|
margin-right: var(--gap-m);
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.modal__start_akuep.modal__gap-24_akuep > *, .modal__center_akuep.modal__gap-24_akuep > *, .modal__space-between_akuep.modal__gap-24_akuep > * {
|
|
80
80
|
margin-right: var(--gap-xl);
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.modal__start_akuep.modal__gap-32_akuep > *, .modal__center_akuep.modal__gap-32_akuep > *, .modal__space-between_akuep.modal__gap-32_akuep > * {
|
|
83
83
|
margin-right: var(--gap-2xl);
|
|
84
84
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1m4n2 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.modal__footer_1g05h {
|
|
26
26
|
padding: var(--gap-m);
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.modal__sticky_1g05h {
|
|
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/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import { Header } from './Component.js';
|
|
6
|
-
import '@alfalab/core-components-icon-button/
|
|
6
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
7
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
8
8
|
import { Closer } from '../closer/Component.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"header":"
|
|
10
|
+
var styles = {"header":"modal__header_ph2cq","content":"modal__content_ph2cq","s":"modal__s_ph2cq","m":"modal__m_ph2cq","l":"modal__l_ph2cq","xl":"modal__xl_ph2cq","fullscreen":"modal__fullscreen_ph2cq","hasContent":"modal__hasContent_ph2cq","sticky":"modal__sticky_ph2cq"};
|
|
11
11
|
require('./desktop.css')
|
|
12
12
|
|
|
13
13
|
const HeaderDesktop = ({ size, className, contentClassName, hasCloser = true, 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/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import { ModalContext } from '../../Context.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"header":"
|
|
6
|
+
var styles = {"header":"modal__header_1c5d3","hasContent":"modal__hasContent_1c5d3","highlighted":"modal__highlighted_1c5d3","sticky":"modal__sticky_1c5d3","content":"modal__content_1c5d3","title":"modal__title_1c5d3","addon":"modal__addon_1c5d3","closer":"modal__closer_1c5d3","left":"modal__left_1c5d3","center":"modal__center_1c5d3","right":"modal__right_1c5d3","trim":"modal__trim_1c5d3"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Header = ({ className, addonClassName, contentClassName, leftAddons, children, align = 'left', trim = true, title, closer, sticky, }) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/core-components-base-modal/
|
|
3
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import '../../Context.js';
|
|
5
5
|
import { Header } from './Component.js';
|
|
6
|
-
import '@alfalab/core-components-icon-button/
|
|
6
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
7
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
8
8
|
import { Closer } from '../closer/Component.js';
|
|
9
9
|
import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
|
|
10
10
|
|
|
11
|
-
var styles = {"sticky":"
|
|
11
|
+
var styles = {"sticky":"modal__sticky_kcb5g","content":"modal__content_kcb5g"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
14
|
const HeaderMobile = ({ className, contentClassName, hasCloser = true, sticky, ...restProps }) => (React.createElement(Header, Object.assign({ className: cn(className, {
|