@alfalab/core-components-modal 6.1.2 → 6.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.desktop.d.ts +2 -1
- package/Component.desktop.js +10 -12
- package/Component.js +16 -18
- package/Component.mobile.js +10 -12
- package/Component.responsive.d.ts +2 -1
- package/Component.responsive.js +13 -15
- package/Context.js +0 -2
- package/ResponsiveContext.js +3 -5
- package/components/closer/Component.js +8 -10
- package/components/closer/index.css +4 -4
- package/components/content/Component.js +8 -10
- 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.js +9 -11
- 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.js +19 -21
- 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.d.ts +2 -1
- package/cssm/Component.desktop.js +10 -12
- package/cssm/Component.js +19 -21
- package/cssm/Component.mobile.js +10 -12
- package/cssm/Component.responsive.d.ts +2 -1
- package/cssm/Component.responsive.js +13 -15
- package/cssm/Context.js +0 -2
- package/cssm/ResponsiveContext.js +3 -5
- package/cssm/components/closer/Component.js +9 -11
- package/cssm/components/content/Component.js +11 -13
- package/cssm/components/footer/Component.js +16 -18
- package/cssm/components/header/Component.js +31 -33
- package/cssm/desktop.d.ts +1 -0
- package/cssm/desktop.js +8 -10
- package/cssm/index.js +11 -13
- package/cssm/mobile.d.ts +1 -0
- package/cssm/mobile.js +8 -10
- package/cssm/responsive.d.ts +1 -0
- package/cssm/responsive.js +9 -11
- 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/cssm/utils.js +1 -3
- package/desktop.css +9 -9
- package/desktop.d.ts +1 -0
- package/desktop.js +7 -9
- package/esm/Component.desktop.d.ts +2 -1
- package/esm/Component.desktop.js +7 -7
- package/esm/Component.js +6 -6
- package/esm/Component.mobile.js +7 -7
- package/esm/Component.responsive.d.ts +2 -1
- package/esm/Component.responsive.js +10 -10
- package/esm/components/closer/Component.js +3 -3
- package/esm/components/closer/index.css +4 -4
- package/esm/components/content/Component.js +4 -4
- 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.js +6 -6
- 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.js +11 -11
- 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.d.ts +1 -0
- package/esm/desktop.js +7 -7
- package/esm/index.js +8 -8
- package/esm/mobile.css +2 -2
- package/esm/mobile.d.ts +1 -0
- package/esm/mobile.js +7 -7
- package/esm/responsive.d.ts +1 -0
- package/esm/responsive.js +8 -8
- package/esm/transitions.css +8 -8
- package/esm/{tslib.es6-2d38acb6.d.ts → tslib.es6-7d064f08.d.ts} +0 -0
- package/esm/{tslib.es6-2d38acb6.js → tslib.es6-7d064f08.js} +0 -0
- package/esm/utils.js +1 -1
- package/index.js +9 -11
- package/mobile.css +2 -2
- package/mobile.d.ts +1 -0
- package/mobile.js +7 -9
- package/modern/Component.desktop.d.ts +2 -1
- package/modern/Component.desktop.js +6 -6
- package/modern/Component.js +4 -4
- package/modern/Component.mobile.js +6 -6
- package/modern/Component.responsive.d.ts +2 -1
- package/modern/Component.responsive.js +7 -7
- package/modern/components/closer/Component.js +2 -2
- package/modern/components/closer/index.css +4 -4
- package/modern/components/content/Component.js +4 -4
- 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.js +5 -5
- 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.js +8 -8
- 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.d.ts +1 -0
- package/modern/desktop.js +6 -6
- package/modern/index.js +7 -7
- package/modern/mobile.css +2 -2
- package/modern/mobile.d.ts +1 -0
- package/modern/mobile.js +6 -6
- package/modern/responsive.d.ts +1 -0
- package/modern/responsive.js +7 -7
- package/modern/transitions.css +8 -8
- package/package.json +5 -5
- package/responsive.d.ts +1 -0
- package/responsive.js +8 -10
- package/transitions.css +8 -8
- package/{tslib.es6-caf91dd0.d.ts → tslib.es6-6b3a93a9.d.ts} +0 -0
- package/{tslib.es6-caf91dd0.js → tslib.es6-6b3a93a9.js} +0 -0
- package/utils.js +1 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9w2m7 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
--modal-header-mobile-font-family: var(--font-family-system);
|
|
34
34
|
--modal-header-mobile-font-weight: bold;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.modal__sticky_1fce9 {
|
|
37
37
|
top: 0;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__content_1fce9 {
|
|
40
40
|
font-size: var(--modal-header-mobile-font-size);
|
|
41
41
|
line-height: var(--modal-header-mobile-line-height);
|
|
42
42
|
font-family: var(--modal-header-mobile-font-family);
|
package/esm/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 109w2 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.modal__wrapper_1j8vi {
|
|
35
35
|
padding-top: var(--modal-vertical-padding);
|
|
36
36
|
padding-bottom: var(--modal-vertical-padding);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.modal__component_1j8vi {
|
|
39
39
|
width: 100%;
|
|
40
40
|
max-width: 100%;
|
|
41
41
|
border-radius: var(--modal-border-radius);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.modal__fullscreen_1j8vi {
|
|
44
44
|
padding-top: 0;
|
|
45
45
|
padding-bottom: 0
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.modal__fullscreen_1j8vi .modal__component_1j8vi {
|
|
48
48
|
flex: 1;
|
|
49
49
|
border-radius: 0;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.modal__s_1j8vi {
|
|
52
52
|
width: var(--modal-s-width);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.modal__m_1j8vi {
|
|
55
55
|
width: var(--modal-m-width);
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.modal__l_1j8vi {
|
|
58
58
|
width: var(--modal-l-width);
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.modal__xl_1j8vi {
|
|
61
61
|
width: var(--modal-xl-width);
|
|
62
62
|
}
|
package/esm/desktop.d.ts
CHANGED
package/esm/desktop.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
export { ModalDesktop } from './Component.desktop.js';
|
|
2
|
+
import './tslib.es6-7d064f08.js';
|
|
2
3
|
import 'react';
|
|
4
|
+
import './components/closer/Component.js';
|
|
3
5
|
import 'classnames';
|
|
4
6
|
import '@alfalab/core-components-icon-button/esm';
|
|
5
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
7
8
|
import './Context.js';
|
|
8
|
-
import '
|
|
9
|
-
import './ResponsiveContext.js';
|
|
9
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
10
10
|
import './components/content/Component.js';
|
|
11
|
+
import './ResponsiveContext.js';
|
|
11
12
|
import './components/footer/Component.js';
|
|
12
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
13
13
|
import './components/header/Component.js';
|
|
14
|
-
import '
|
|
14
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
15
15
|
import './Component.js';
|
|
16
|
-
|
|
16
|
+
import 'react-merge-refs';
|
package/esm/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
export { ModalResponsive } from './Component.responsive.js';
|
|
2
|
+
export { ModalContext } from './Context.js';
|
|
3
|
+
import './tslib.es6-7d064f08.js';
|
|
2
4
|
import 'react';
|
|
5
|
+
import '@alfalab/hooks';
|
|
6
|
+
import './components/closer/Component.js';
|
|
3
7
|
import 'classnames';
|
|
4
8
|
import '@alfalab/core-components-icon-button/esm';
|
|
5
9
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
10
|
import '@alfalab/core-components-base-modal/esm';
|
|
7
|
-
export { ModalContext } from './Context.js';
|
|
8
|
-
import './components/closer/Component.js';
|
|
9
|
-
import './ResponsiveContext.js';
|
|
10
11
|
import './components/content/Component.js';
|
|
12
|
+
import './ResponsiveContext.js';
|
|
11
13
|
import './components/footer/Component.js';
|
|
12
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
13
14
|
import './components/header/Component.js';
|
|
14
|
-
import '
|
|
15
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
15
16
|
import './Component.js';
|
|
16
|
-
import '
|
|
17
|
-
export { ModalResponsive } from './Component.responsive.js';
|
|
17
|
+
import 'react-merge-refs';
|
package/esm/mobile.css
CHANGED
package/esm/mobile.d.ts
CHANGED
package/esm/mobile.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
export { ModalMobile } from './Component.mobile.js';
|
|
2
|
+
import './tslib.es6-7d064f08.js';
|
|
2
3
|
import 'react';
|
|
4
|
+
import './components/closer/Component.js';
|
|
3
5
|
import 'classnames';
|
|
4
6
|
import '@alfalab/core-components-icon-button/esm';
|
|
5
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
7
8
|
import './Context.js';
|
|
8
|
-
import '
|
|
9
|
-
import './ResponsiveContext.js';
|
|
9
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
10
10
|
import './components/content/Component.js';
|
|
11
|
+
import './ResponsiveContext.js';
|
|
11
12
|
import './components/footer/Component.js';
|
|
12
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
13
13
|
import './components/header/Component.js';
|
|
14
|
-
import '
|
|
14
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
15
15
|
import './Component.js';
|
|
16
|
-
|
|
16
|
+
import 'react-merge-refs';
|
package/esm/responsive.d.ts
CHANGED
package/esm/responsive.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
export { ModalResponsive } from './Component.responsive.js';
|
|
2
|
+
import './tslib.es6-7d064f08.js';
|
|
2
3
|
import 'react';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import './components/closer/Component.js';
|
|
3
6
|
import 'classnames';
|
|
4
7
|
import '@alfalab/core-components-icon-button/esm';
|
|
5
8
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
7
9
|
import './Context.js';
|
|
8
|
-
import '
|
|
9
|
-
import './ResponsiveContext.js';
|
|
10
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
10
11
|
import './components/content/Component.js';
|
|
12
|
+
import './ResponsiveContext.js';
|
|
11
13
|
import './components/footer/Component.js';
|
|
12
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
13
14
|
import './components/header/Component.js';
|
|
14
|
-
import '
|
|
15
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
15
16
|
import './Component.js';
|
|
16
|
-
import '
|
|
17
|
-
export { ModalResponsive } from './Component.responsive.js';
|
|
17
|
+
import 'react-merge-refs';
|
package/esm/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
1
|
+
/* hash: lri6d */
|
|
2
|
+
.modal__appear_1ortj,
|
|
3
|
+
.modal__enter_1ortj {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.modal__appearActive_1ortj,
|
|
9
|
+
.modal__enterActive_1ortj {
|
|
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_1ortj {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.modal__exitActive_1ortj,
|
|
21
|
+
.modal__exitDone_1ortj {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
File without changes
|
|
File without changes
|
package/esm/utils.js
CHANGED
|
@@ -38,7 +38,7 @@ var handleContainer = function (container) {
|
|
|
38
38
|
});
|
|
39
39
|
// Вычисляем стили, чтобы получить реальный `padding` c шириной сколлбара
|
|
40
40
|
// eslint-disable-next-line no-param-reassign
|
|
41
|
-
container.style.paddingRight = getPaddingRight(container) + scrollbarSize
|
|
41
|
+
container.style.paddingRight = "".concat(getPaddingRight(container) + scrollbarSize, "px");
|
|
42
42
|
}
|
|
43
43
|
var parent = container.parentElement;
|
|
44
44
|
var scrollContainer =
|
package/index.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('./tslib.es6-
|
|
3
|
+
var Component_responsive = require('./Component.responsive.js');
|
|
4
|
+
var Context = require('./Context.js');
|
|
5
|
+
require('./tslib.es6-6b3a93a9.js');
|
|
6
6
|
require('react');
|
|
7
|
+
require('@alfalab/hooks');
|
|
8
|
+
require('./components/closer/Component.js');
|
|
7
9
|
require('classnames');
|
|
8
10
|
require('@alfalab/core-components-icon-button');
|
|
9
11
|
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
10
12
|
require('@alfalab/core-components-base-modal');
|
|
11
|
-
var Context = require('./Context.js');
|
|
12
|
-
require('./components/closer/Component.js');
|
|
13
|
-
require('./ResponsiveContext.js');
|
|
14
13
|
require('./components/content/Component.js');
|
|
14
|
+
require('./ResponsiveContext.js');
|
|
15
15
|
require('./components/footer/Component.js');
|
|
16
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
17
16
|
require('./components/header/Component.js');
|
|
18
|
-
require('
|
|
17
|
+
require('@alfalab/icons-glyph/CrossMIcon');
|
|
19
18
|
require('./Component.js');
|
|
20
|
-
require('
|
|
21
|
-
var Component_responsive = require('./Component.responsive.js');
|
|
19
|
+
require('react-merge-refs');
|
|
22
20
|
|
|
23
21
|
|
|
24
22
|
|
|
25
|
-
exports.ModalContext = Context.ModalContext;
|
|
26
23
|
exports.ModalResponsive = Component_responsive.ModalResponsive;
|
|
24
|
+
exports.ModalContext = Context.ModalContext;
|
package/mobile.css
CHANGED
package/mobile.d.ts
CHANGED
package/mobile.js
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('./tslib.es6-caf91dd0.js');
|
|
3
|
+
var Component_mobile = require('./Component.mobile.js');
|
|
4
|
+
require('./tslib.es6-6b3a93a9.js');
|
|
6
5
|
require('react');
|
|
6
|
+
require('./components/closer/Component.js');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/core-components-icon-button');
|
|
9
9
|
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
10
|
-
require('@alfalab/core-components-base-modal');
|
|
11
10
|
require('./Context.js');
|
|
12
|
-
require('
|
|
13
|
-
require('./ResponsiveContext.js');
|
|
11
|
+
require('@alfalab/core-components-base-modal');
|
|
14
12
|
require('./components/content/Component.js');
|
|
13
|
+
require('./ResponsiveContext.js');
|
|
15
14
|
require('./components/footer/Component.js');
|
|
16
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
17
15
|
require('./components/header/Component.js');
|
|
18
|
-
require('
|
|
16
|
+
require('@alfalab/icons-glyph/CrossMIcon');
|
|
19
17
|
require('./Component.js');
|
|
20
|
-
|
|
18
|
+
require('react-merge-refs');
|
|
21
19
|
|
|
22
20
|
|
|
23
21
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
import { BaseModalProps } from "@alfalab/core-components-base-modal";
|
|
4
|
+
declare const ModalDesktop: React.ForwardRefExoticComponent<BaseModalProps & {
|
|
4
5
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
5
6
|
fullscreen?: boolean | undefined;
|
|
6
7
|
fixedPosition?: boolean | undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Closer } from './components/closer/Component.js';
|
|
3
|
+
import { Content } from './components/content/Component.js';
|
|
4
|
+
import { Footer } from './components/footer/Component.js';
|
|
5
|
+
import { Header } from './components/header/Component.js';
|
|
6
|
+
import { Modal } from './Component.js';
|
|
2
7
|
import 'classnames';
|
|
3
8
|
import '@alfalab/core-components-icon-button/modern';
|
|
4
9
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
6
10
|
import './Context.js';
|
|
7
|
-
import
|
|
11
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
8
12
|
import './ResponsiveContext.js';
|
|
9
|
-
import { Content } from './components/content/Component.js';
|
|
10
|
-
import { Footer } from './components/footer/Component.js';
|
|
11
13
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
12
|
-
import { Header } from './components/header/Component.js';
|
|
13
14
|
import 'react-merge-refs';
|
|
14
|
-
import { Modal } from './Component.js';
|
|
15
15
|
|
|
16
16
|
const ModalDesktopComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'desktop' })));
|
|
17
17
|
const ModalDesktop = Object.assign(ModalDesktopComponent, {
|
package/modern/Component.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useMemo } from 'react';
|
|
2
|
+
import mergeRefs from 'react-merge-refs';
|
|
2
3
|
import cn from 'classnames';
|
|
3
4
|
import { BaseModal } from '@alfalab/core-components-base-modal/modern';
|
|
4
5
|
import { ResponsiveContext } from './ResponsiveContext.js';
|
|
5
|
-
import mergeRefs from 'react-merge-refs';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const desktopStyles = {"wrapper":"modal__wrapper_1j8vi","component":"modal__component_1j8vi","fullscreen":"modal__fullscreen_1j8vi","s":"modal__s_1j8vi","m":"modal__m_1j8vi","l":"modal__l_1j8vi","xl":"modal__xl_1j8vi"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const mobileStyles = {"component":"modal__component_u7p5n"};
|
|
11
11
|
require('./mobile.css')
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
const transitions = {"appear":"modal__appear_1ortj","enter":"modal__enter_1ortj","appearActive":"modal__appearActive_1ortj","enterActive":"modal__enterActive_1ortj","exit":"modal__exit_1ortj","exitActive":"modal__exitActive_1ortj","exitDone":"modal__exitDone_1ortj"};
|
|
14
14
|
require('./transitions.css')
|
|
15
15
|
|
|
16
16
|
const Modal = forwardRef(({ size = 's', fixedPosition, fullscreen, children, className, wrapperClassName, transitionProps = {}, view, ...restProps }, ref) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Closer } from './components/closer/Component.js';
|
|
3
|
+
import { Content } from './components/content/Component.js';
|
|
4
|
+
import { Footer } from './components/footer/Component.js';
|
|
5
|
+
import { Header } from './components/header/Component.js';
|
|
6
|
+
import { Modal } from './Component.js';
|
|
2
7
|
import 'classnames';
|
|
3
8
|
import '@alfalab/core-components-icon-button/modern';
|
|
4
9
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
6
10
|
import './Context.js';
|
|
7
|
-
import
|
|
11
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
8
12
|
import './ResponsiveContext.js';
|
|
9
|
-
import { Content } from './components/content/Component.js';
|
|
10
|
-
import { Footer } from './components/footer/Component.js';
|
|
11
13
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
12
|
-
import { Header } from './components/header/Component.js';
|
|
13
14
|
import 'react-merge-refs';
|
|
14
|
-
import { Modal } from './Component.js';
|
|
15
15
|
|
|
16
16
|
const ModalMobileComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'mobile' })));
|
|
17
17
|
const ModalMobile = Object.assign(ModalMobileComponent, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
import { BaseModalProps } from "@alfalab/core-components-base-modal";
|
|
4
|
+
declare const ModalResponsive: React.ForwardRefExoticComponent<BaseModalProps & {
|
|
4
5
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
5
6
|
fullscreen?: boolean | undefined;
|
|
6
7
|
fixedPosition?: boolean | undefined;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
+
import { useMedia } from '@alfalab/hooks';
|
|
3
|
+
import { Closer } from './components/closer/Component.js';
|
|
4
|
+
import { Content } from './components/content/Component.js';
|
|
5
|
+
import { Footer } from './components/footer/Component.js';
|
|
6
|
+
import { Header } from './components/header/Component.js';
|
|
7
|
+
import { Modal } from './Component.js';
|
|
2
8
|
import 'classnames';
|
|
3
9
|
import '@alfalab/core-components-icon-button/modern';
|
|
4
10
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
6
11
|
import './Context.js';
|
|
7
|
-
import
|
|
12
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
8
13
|
import './ResponsiveContext.js';
|
|
9
|
-
import { Content } from './components/content/Component.js';
|
|
10
|
-
import { Footer } from './components/footer/Component.js';
|
|
11
14
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
12
|
-
import { Header } from './components/header/Component.js';
|
|
13
15
|
import 'react-merge-refs';
|
|
14
|
-
import { Modal } from './Component.js';
|
|
15
|
-
import { useMedia } from '@alfalab/hooks';
|
|
16
16
|
|
|
17
17
|
const ModalResponsiveComponent = forwardRef(({ children, breakpoint = 1024, ...restProps }, ref) => {
|
|
18
18
|
const [view] = useMedia([
|
|
@@ -2,10 +2,10 @@ import React, { useContext, useCallback } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
4
4
|
import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
6
5
|
import { ModalContext } from '../../Context.js';
|
|
6
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const styles = {"closer":"modal__closer_1uzzz","button":"modal__button_1uzzz","sticky":"modal__sticky_1uzzz"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wkkvd */
|
|
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_1uzzz {
|
|
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_1uzzz {
|
|
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_1uzzz {
|
|
48
48
|
position: sticky;
|
|
49
49
|
top: calc(var(--modal-vertical-padding) * -1);
|
|
50
50
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
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';
|
|
5
4
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const desktopStyles = {"s":"modal__s_ycp7o","m":"modal__m_ycp7o","l":"modal__l_ycp7o","xl":"modal__xl_ycp7o","fullscreen":"modal__fullscreen_ycp7o"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const styles = {"content":"modal__content_11gdc","flex":"modal__flex_11gdc"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
const mobileStyles = {"content":"modal__content_10p6v"};
|
|
14
14
|
require('./mobile.css')
|
|
15
15
|
|
|
16
16
|
const Content = ({ children, flex, className }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 17t20 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
|
|
25
25
|
/* mobile */
|
|
26
26
|
}
|
|
27
|
-
.
|
|
28
|
-
.
|
|
27
|
+
.modal__s_ycp7o,
|
|
28
|
+
.modal__m_ycp7o {
|
|
29
29
|
padding: var(--modal-s-content-paddings)
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.modal__s_ycp7o:last-child, .modal__m_ycp7o:last-child {
|
|
32
32
|
padding-bottom: var(--modal-s-content-only-bottom-padding);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
35
|
-
.
|
|
36
|
-
.
|
|
34
|
+
.modal__l_ycp7o,
|
|
35
|
+
.modal__xl_ycp7o,
|
|
36
|
+
.modal__fullscreen_ycp7o {
|
|
37
37
|
padding: 0 var(--gap-6xl)
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__l_ycp7o:last-child, .modal__xl_ycp7o:last-child, .modal__fullscreen_ycp7o:last-child {
|
|
40
40
|
padding-bottom: var(--gap-6xl);
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 11203 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
/* mobile */
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.modal__content_11gdc {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.modal__flex_11gdc {
|
|
27
27
|
flex: 1;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1kxye */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.modal__content_10p6v {
|
|
26
26
|
padding: 0 var(--gap-m)
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.modal__content_10p6v:last-child {
|
|
29
29
|
padding-bottom: var(--gap-m);
|
|
30
30
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
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';
|
|
5
4
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const desktopStyles = {"footer":"modal__footer_1pbbq","sticky":"modal__sticky_1pbbq","fullscreen":"modal__fullscreen_1pbbq","s":"modal__s_1pbbq","m":"modal__m_1pbbq","l":"modal__l_1pbbq","xl":"modal__xl_1pbbq"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const styles = {"footer":"modal__footer_1jcpt","sticky":"modal__sticky_1jcpt","highlighted":"modal__highlighted_1jcpt"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
const layoutStyles = {"column":"modal__column_me7zd","gap-16":"modal__gap-16_me7zd","gap-24":"modal__gap-24_me7zd","gap-32":"modal__gap-32_me7zd","start":"modal__start_me7zd","center":"modal__center_me7zd","space-between":"modal__space-between_me7zd"};
|
|
14
14
|
require('./layout.css')
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const mobileStyles = {"footer":"modal__footer_1jrdy","sticky":"modal__sticky_1jrdy"};
|
|
17
17
|
require('./mobile.css')
|
|
18
18
|
|
|
19
19
|
const Footer = ({ children, className, sticky, layout = 'start', gap }) => {
|