@alfalab/core-components-modal 6.1.1 → 6.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.desktop.d.ts +2 -1
- package/Component.desktop.js +8 -14
- package/Component.js +12 -20
- package/Component.mobile.js +8 -14
- package/Component.responsive.d.ts +2 -1
- package/Component.responsive.js +11 -17
- package/Context.js +0 -2
- package/ResponsiveContext.js +1 -7
- package/components/closer/Component.js +5 -12
- package/components/closer/index.css +4 -4
- package/components/content/Component.js +5 -12
- 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 +6 -13
- 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 +16 -23
- 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 +8 -14
- package/cssm/Component.js +12 -23
- package/cssm/Component.mobile.js +8 -14
- package/cssm/Component.responsive.d.ts +2 -1
- package/cssm/Component.responsive.js +11 -17
- package/cssm/Context.js +0 -2
- package/cssm/ResponsiveContext.js +1 -7
- package/cssm/components/closer/Component.js +5 -13
- package/cssm/components/content/Component.js +5 -15
- package/cssm/components/footer/Component.js +9 -20
- package/cssm/components/header/Component.js +25 -35
- 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-ecd4b8f6.d.ts → tslib.es6-3363beeb.d.ts} +0 -0
- package/esm/{tslib.es6-ecd4b8f6.js → tslib.es6-3363beeb.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 +2 -2
- package/responsive.d.ts +1 -0
- package/responsive.js +8 -10
- package/transitions.css +8 -8
- package/{tslib.es6-c81beafb.d.ts → tslib.es6-ac47d707.d.ts} +0 -0
- package/{tslib.es6-c81beafb.js → tslib.es6-ac47d707.js} +0 -0
- package/utils.js +1 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1o10d */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -25,60 +25,60 @@
|
|
|
25
25
|
|
|
26
26
|
/* mobile */
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.modal__column_c3fe1 {
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.modal__column_c3fe1 > * {
|
|
33
33
|
margin-bottom: var(--modal-footer-default-gap);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
36
|
-
.
|
|
35
|
+
.modal__column_c3fe1 > *:last-child,
|
|
36
|
+
.modal__column_c3fe1 > *:only-child {
|
|
37
37
|
margin-bottom: 0;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__column_c3fe1.modal__gap-16_c3fe1 > * {
|
|
40
40
|
margin-bottom: var(--gap-m);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.modal__column_c3fe1.modal__gap-24_c3fe1 > * {
|
|
43
43
|
margin-bottom: var(--gap-xl);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.modal__column_c3fe1.modal__gap-32_c3fe1 > * {
|
|
46
46
|
margin-bottom: var(--gap-2xl);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.modal__start_c3fe1 {
|
|
49
49
|
justify-content: flex-start;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.modal__center_c3fe1 {
|
|
52
52
|
justify-content: center;
|
|
53
53
|
}
|
|
54
|
-
.modal__space-
|
|
54
|
+
.modal__space-between_c3fe1 {
|
|
55
55
|
justify-content: space-between
|
|
56
56
|
}
|
|
57
|
-
.modal__space-
|
|
57
|
+
.modal__space-between_c3fe1 > * {
|
|
58
58
|
flex: 1;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
61
|
-
.
|
|
62
|
-
.modal__space-
|
|
60
|
+
.modal__start_c3fe1,
|
|
61
|
+
.modal__center_c3fe1,
|
|
62
|
+
.modal__space-between_c3fe1 {
|
|
63
63
|
display: flex
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.modal__start_c3fe1 > *, .modal__center_c3fe1 > *, .modal__space-between_c3fe1 > * {
|
|
66
66
|
margin-right: var(--modal-footer-default-gap);
|
|
67
67
|
}
|
|
68
|
-
.
|
|
69
|
-
.
|
|
70
|
-
.
|
|
71
|
-
.
|
|
72
|
-
.modal__space-
|
|
73
|
-
.modal__space-
|
|
68
|
+
.modal__start_c3fe1 > *:last-child,
|
|
69
|
+
.modal__start_c3fe1 > *:only-child,
|
|
70
|
+
.modal__center_c3fe1 > *:last-child,
|
|
71
|
+
.modal__center_c3fe1 > *:only-child,
|
|
72
|
+
.modal__space-between_c3fe1 > *:last-child,
|
|
73
|
+
.modal__space-between_c3fe1 > *:only-child {
|
|
74
74
|
margin-right: 0;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.modal__start_c3fe1.modal__gap-16_c3fe1 > *, .modal__center_c3fe1.modal__gap-16_c3fe1 > *, .modal__space-between_c3fe1.modal__gap-16_c3fe1 > * {
|
|
77
77
|
margin-right: var(--gap-m);
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.modal__start_c3fe1.modal__gap-24_c3fe1 > *, .modal__center_c3fe1.modal__gap-24_c3fe1 > *, .modal__space-between_c3fe1.modal__gap-24_c3fe1 > * {
|
|
80
80
|
margin-right: var(--gap-xl);
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.modal__start_c3fe1.modal__gap-32_c3fe1 > *, .modal__center_c3fe1.modal__gap-32_c3fe1 > *, .modal__space-between_c3fe1.modal__gap-32_c3fe1 > * {
|
|
83
83
|
margin-right: var(--gap-2xl);
|
|
84
84
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nn8i */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.modal__footer_1fccb {
|
|
26
26
|
padding: var(--gap-m);
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.modal__sticky_1fccb {
|
|
29
29
|
bottom: 0;
|
|
30
30
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '@alfalab/
|
|
4
|
-
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
3
|
+
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
6
4
|
import { ModalContext } from '../../Context.js';
|
|
7
|
-
import { Closer } from '../closer/Component.js';
|
|
8
5
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
9
|
-
import {
|
|
6
|
+
import { Closer } from '../closer/Component.js';
|
|
7
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
8
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
9
|
+
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
10
10
|
|
|
11
11
|
const getDataTestId = (dataTestId, element) => {
|
|
12
12
|
const elementPart = element ? `-${element.toLowerCase()}` : '';
|
|
13
13
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const desktopStyles = {"header":"modal__header_15nr1","content":"modal__content_15nr1","s":"modal__s_15nr1","m":"modal__m_15nr1","l":"modal__l_15nr1","xl":"modal__xl_15nr1","fullscreen":"modal__fullscreen_15nr1","hasContent":"modal__hasContent_15nr1","sticky":"modal__sticky_15nr1"};
|
|
17
17
|
require('./desktop.css')
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
const styles = {"header":"modal__header_nc8uo","hasContent":"modal__hasContent_nc8uo","highlighted":"modal__highlighted_nc8uo","sticky":"modal__sticky_nc8uo","content":"modal__content_nc8uo","title":"modal__title_nc8uo","addon":"modal__addon_nc8uo","closer":"modal__closer_nc8uo","left":"modal__left_nc8uo","center":"modal__center_nc8uo","right":"modal__right_nc8uo","trim":"modal__trim_nc8uo"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const mobileStyles = {"sticky":"modal__sticky_sm1k8","content":"modal__content_sm1k8"};
|
|
23
23
|
require('./mobile.css')
|
|
24
24
|
|
|
25
25
|
const Header = ({ className, addonClassName, contentClassName, leftAddons, children, align = 'left', trim = true, title, hasCloser = true, sticky, dataTestId, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gpzw3 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -43,45 +43,45 @@
|
|
|
43
43
|
|
|
44
44
|
/* mobile */
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.modal__header_15nr1 {
|
|
47
47
|
border-top-left-radius: var(--modal-border-radius);
|
|
48
48
|
border-top-right-radius: var(--modal-border-radius);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.modal__content_15nr1 {
|
|
51
51
|
font-weight: var(--modal-header-desktop-font-weight);
|
|
52
52
|
font-family: var(--modal-header-desktop-font-family);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
55
|
-
.
|
|
54
|
+
.modal__s_15nr1 .modal__content_15nr1,
|
|
55
|
+
.modal__m_15nr1 .modal__content_15nr1 {
|
|
56
56
|
padding: var(--modal-s-header-desktop-content-paddings);
|
|
57
57
|
font-size: var(--modal-s-header-desktop-font-size);
|
|
58
58
|
line-height: var(--modal-s-header-desktop-line-height);
|
|
59
59
|
}
|
|
60
|
-
.
|
|
61
|
-
.
|
|
62
|
-
.
|
|
60
|
+
.modal__l_15nr1 .modal__content_15nr1,
|
|
61
|
+
.modal__xl_15nr1 .modal__content_15nr1,
|
|
62
|
+
.modal__fullscreen_15nr1 .modal__content_15nr1 {
|
|
63
63
|
padding: var(--modal-l-header-desktop-content-paddings);
|
|
64
64
|
font-size: var(--modal-l-header-desktop-font-size);
|
|
65
65
|
line-height: var(--modal-l-header-desktop-line-height);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
68
|
-
.
|
|
67
|
+
.modal__s_15nr1,
|
|
68
|
+
.modal__m_15nr1 {
|
|
69
69
|
padding: var(--modal-s-header-paddings)
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.modal__s_15nr1:not(.modal__hasContent_15nr1), .modal__m_15nr1:not(.modal__hasContent_15nr1) {
|
|
72
72
|
padding-bottom: 0;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
75
|
-
.
|
|
76
|
-
.
|
|
74
|
+
.modal__l_15nr1,
|
|
75
|
+
.modal__xl_15nr1,
|
|
76
|
+
.modal__fullscreen_15nr1 {
|
|
77
77
|
padding: var(--gap-xl) var(--gap-xl) var(--gap-m)
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.modal__l_15nr1:not(.modal__hasContent_15nr1), .modal__xl_15nr1:not(.modal__hasContent_15nr1), .modal__fullscreen_15nr1:not(.modal__hasContent_15nr1) {
|
|
80
80
|
padding-bottom: var(--gap-m);
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.modal__sticky_15nr1 {
|
|
83
83
|
top: calc(var(--modal-vertical-padding) * -1)
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.modal__sticky_15nr1.modal__fullscreen_15nr1 {
|
|
86
86
|
top: 0;
|
|
87
87
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: s88ph */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
/* mobile */
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.modal__header_nc8uo {
|
|
29
29
|
width: 100%;
|
|
30
30
|
box-sizing: border-box;
|
|
31
31
|
display: flex;
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
justify-content: space-between;
|
|
34
34
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.modal__header_nc8uo:not(.modal__hasContent_nc8uo) {
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__highlighted_nc8uo {
|
|
40
40
|
background: var(--modal-header-highlight-background);
|
|
41
41
|
box-shadow: var(--modal-header-highlight-box-shadow);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.modal__sticky_nc8uo {
|
|
44
44
|
position: sticky;
|
|
45
45
|
z-index: 1
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.modal__sticky_nc8uo.modal__hasContent_nc8uo {
|
|
48
48
|
background: var(--modal-header-background);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.modal__content_nc8uo {
|
|
51
51
|
flex-grow: 1;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.modal__title_nc8uo {
|
|
54
54
|
word-break: break-word;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.modal__addon_nc8uo {
|
|
57
57
|
min-width: 48px;
|
|
58
58
|
height: 48px;
|
|
59
59
|
display: flex;
|
|
@@ -61,25 +61,25 @@
|
|
|
61
61
|
align-items: center;
|
|
62
62
|
pointer-events: all;
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.modal__closer_nc8uo {
|
|
65
65
|
margin-left: auto;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.modal__left_nc8uo {
|
|
68
68
|
justify-content: flex-start;
|
|
69
69
|
text-align: left;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.modal__center_nc8uo {
|
|
72
72
|
justify-content: center;
|
|
73
73
|
text-align: center;
|
|
74
74
|
}
|
|
75
|
-
.
|
|
75
|
+
.modal__right_nc8uo {
|
|
76
76
|
justify-content: flex-end;
|
|
77
77
|
text-align: right;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.modal__trim_nc8uo {
|
|
80
80
|
overflow: hidden
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.modal__trim_nc8uo .modal__title_nc8uo {
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
white-space: nowrap;
|
|
85
85
|
text-overflow: ellipsis;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7y729 */
|
|
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_sm1k8 {
|
|
37
37
|
top: 0;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__content_sm1k8 {
|
|
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/modern/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19y0h */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.modal__wrapper_v7cn3 {
|
|
35
35
|
padding-top: var(--modal-vertical-padding);
|
|
36
36
|
padding-bottom: var(--modal-vertical-padding);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.modal__component_v7cn3 {
|
|
39
39
|
width: 100%;
|
|
40
40
|
max-width: 100%;
|
|
41
41
|
border-radius: var(--modal-border-radius);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.modal__fullscreen_v7cn3 {
|
|
44
44
|
padding-top: 0;
|
|
45
45
|
padding-bottom: 0
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.modal__fullscreen_v7cn3 .modal__component_v7cn3 {
|
|
48
48
|
flex: 1;
|
|
49
49
|
border-radius: 0;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.modal__s_v7cn3 {
|
|
52
52
|
width: var(--modal-s-width);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.modal__m_v7cn3 {
|
|
55
55
|
width: var(--modal-m-width);
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.modal__l_v7cn3 {
|
|
58
58
|
width: var(--modal-l-width);
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.modal__xl_v7cn3 {
|
|
61
61
|
width: var(--modal-xl-width);
|
|
62
62
|
}
|
package/modern/desktop.d.ts
CHANGED
package/modern/desktop.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
export { ModalDesktop } from './Component.desktop.js';
|
|
1
2
|
import 'react';
|
|
3
|
+
import './components/closer/Component.js';
|
|
2
4
|
import 'classnames';
|
|
3
5
|
import '@alfalab/core-components-icon-button/modern';
|
|
4
6
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
6
7
|
import './Context.js';
|
|
7
|
-
import '
|
|
8
|
-
import './ResponsiveContext.js';
|
|
8
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
9
9
|
import './components/content/Component.js';
|
|
10
|
+
import './ResponsiveContext.js';
|
|
10
11
|
import './components/footer/Component.js';
|
|
11
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
12
12
|
import './components/header/Component.js';
|
|
13
|
-
import '
|
|
13
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
14
14
|
import './Component.js';
|
|
15
|
-
|
|
15
|
+
import 'react-merge-refs';
|
package/modern/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
export { ModalResponsive } from './Component.responsive.js';
|
|
2
|
+
export { ModalContext } from './Context.js';
|
|
1
3
|
import 'react';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import './components/closer/Component.js';
|
|
2
6
|
import 'classnames';
|
|
3
7
|
import '@alfalab/core-components-icon-button/modern';
|
|
4
8
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
9
|
import '@alfalab/core-components-base-modal/modern';
|
|
6
|
-
export { ModalContext } from './Context.js';
|
|
7
|
-
import './components/closer/Component.js';
|
|
8
|
-
import './ResponsiveContext.js';
|
|
9
10
|
import './components/content/Component.js';
|
|
11
|
+
import './ResponsiveContext.js';
|
|
10
12
|
import './components/footer/Component.js';
|
|
11
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
12
13
|
import './components/header/Component.js';
|
|
13
|
-
import '
|
|
14
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
14
15
|
import './Component.js';
|
|
15
|
-
import '
|
|
16
|
-
export { ModalResponsive } from './Component.responsive.js';
|
|
16
|
+
import 'react-merge-refs';
|
package/modern/mobile.css
CHANGED
package/modern/mobile.d.ts
CHANGED
package/modern/mobile.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
export { ModalMobile } from './Component.mobile.js';
|
|
1
2
|
import 'react';
|
|
3
|
+
import './components/closer/Component.js';
|
|
2
4
|
import 'classnames';
|
|
3
5
|
import '@alfalab/core-components-icon-button/modern';
|
|
4
6
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
6
7
|
import './Context.js';
|
|
7
|
-
import '
|
|
8
|
-
import './ResponsiveContext.js';
|
|
8
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
9
9
|
import './components/content/Component.js';
|
|
10
|
+
import './ResponsiveContext.js';
|
|
10
11
|
import './components/footer/Component.js';
|
|
11
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
12
12
|
import './components/header/Component.js';
|
|
13
|
-
import '
|
|
13
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
14
14
|
import './Component.js';
|
|
15
|
-
|
|
15
|
+
import 'react-merge-refs';
|
package/modern/responsive.d.ts
CHANGED
package/modern/responsive.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
export { ModalResponsive } from './Component.responsive.js';
|
|
1
2
|
import 'react';
|
|
3
|
+
import '@alfalab/hooks';
|
|
4
|
+
import './components/closer/Component.js';
|
|
2
5
|
import 'classnames';
|
|
3
6
|
import '@alfalab/core-components-icon-button/modern';
|
|
4
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
5
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
6
8
|
import './Context.js';
|
|
7
|
-
import '
|
|
8
|
-
import './ResponsiveContext.js';
|
|
9
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
9
10
|
import './components/content/Component.js';
|
|
11
|
+
import './ResponsiveContext.js';
|
|
10
12
|
import './components/footer/Component.js';
|
|
11
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
12
13
|
import './components/header/Component.js';
|
|
13
|
-
import '
|
|
14
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
14
15
|
import './Component.js';
|
|
15
|
-
import '
|
|
16
|
-
export { ModalResponsive } from './Component.responsive.js';
|
|
16
|
+
import 'react-merge-refs';
|
package/modern/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
1
|
+
/* hash: 1cqdf */
|
|
2
|
+
.modal__appear_1ygzc,
|
|
3
|
+
.modal__enter_1ygzc {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.modal__appearActive_1ygzc,
|
|
9
|
+
.modal__enterActive_1ygzc {
|
|
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_1ygzc {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.modal__exitActive_1ygzc,
|
|
21
|
+
.modal__exitDone_1ygzc {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-modal",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.3",
|
|
4
4
|
"description": "Modal component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@alfalab/core-components-base-modal": "^5.0.6",
|
|
17
17
|
"@alfalab/core-components-button": "^7.0.1",
|
|
18
18
|
"@alfalab/core-components-icon-button": "^6.0.1",
|
|
19
|
-
"@alfalab/core-components-mq": "^4.0
|
|
19
|
+
"@alfalab/core-components-mq": "^4.1.0",
|
|
20
20
|
"@alfalab/icons-glyph": "^2.71.0",
|
|
21
21
|
"classnames": "^2.3.1",
|
|
22
22
|
"react-transition-group": "^4.4.1"
|
package/responsive.d.ts
CHANGED
package/responsive.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('./tslib.es6-c81beafb.js');
|
|
3
|
+
var Component_responsive = require('./Component.responsive.js');
|
|
4
|
+
require('./tslib.es6-ac47d707.js');
|
|
6
5
|
require('react');
|
|
6
|
+
require('@alfalab/hooks');
|
|
7
|
+
require('./components/closer/Component.js');
|
|
7
8
|
require('classnames');
|
|
8
9
|
require('@alfalab/core-components-icon-button');
|
|
9
10
|
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
10
|
-
require('@alfalab/core-components-base-modal');
|
|
11
11
|
require('./Context.js');
|
|
12
|
-
require('
|
|
13
|
-
require('./ResponsiveContext.js');
|
|
12
|
+
require('@alfalab/core-components-base-modal');
|
|
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
|
|
package/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
1
|
+
/* hash: 1cqdf */
|
|
2
|
+
.modal__appear_1ygzc,
|
|
3
|
+
.modal__enter_1ygzc {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.modal__appearActive_1ygzc,
|
|
9
|
+
.modal__enterActive_1ygzc {
|
|
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_1ygzc {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.modal__exitActive_1ygzc,
|
|
21
|
+
.modal__exitDone_1ygzc {
|
|
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/utils.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
function isScrolledToTop(target) {
|
|
6
4
|
return target.scrollTop === 0;
|
|
7
5
|
}
|
|
@@ -42,7 +40,7 @@ var handleContainer = function (container) {
|
|
|
42
40
|
});
|
|
43
41
|
// Вычисляем стили, чтобы получить реальный `padding` c шириной сколлбара
|
|
44
42
|
// eslint-disable-next-line no-param-reassign
|
|
45
|
-
container.style.paddingRight = getPaddingRight(container) + scrollbarSize
|
|
43
|
+
container.style.paddingRight = "".concat(getPaddingRight(container) + scrollbarSize, "px");
|
|
46
44
|
}
|
|
47
45
|
var parent = container.parentElement;
|
|
48
46
|
var scrollContainer =
|