@alfalab/core-components-modal 6.0.9 → 6.0.11
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-4207925f.d.ts → Component-4316068c.d.ts} +0 -0
- package/{Component-4207925f.js → Component-4316068c.js} +1 -1
- package/Component.desktop.js +8 -8
- package/Component.mobile.js +7 -7
- package/Component.responsive.js +9 -8
- package/components/closer/Component.js +3 -3
- package/components/closer/index.css +4 -4
- package/components/content/Component.desktop.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/components/header/Component.desktop.js +4 -4
- package/components/header/Component.js +1 -1
- package/components/header/Component.mobile.d.ts +1 -1
- package/components/header/Component.mobile.js +4 -4
- 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 +8 -8
- package/cssm/Component.mobile.js +7 -7
- package/cssm/Component.responsive.js +11 -10
- package/cssm/components/closer/Component.js +2 -2
- package/cssm/components/content/Component.desktop.d.ts +1 -1
- package/cssm/components/content/Component.desktop.js +1 -1
- package/cssm/components/content/Component.mobile.js +1 -1
- package/cssm/components/footer/Component.desktop.d.ts +1 -1
- package/cssm/components/footer/Component.desktop.js +1 -1
- package/cssm/components/footer/Component.mobile.js +1 -1
- package/cssm/components/header/Component.desktop.d.ts +1 -1
- package/cssm/components/header/Component.desktop.js +4 -4
- package/cssm/components/header/Component.mobile.js +4 -4
- package/cssm/desktop.js +7 -7
- package/cssm/index.js +10 -10
- package/cssm/mobile.js +7 -7
- package/cssm/responsive.js +10 -10
- package/{esm/tslib.es6-4869febb.d.ts → cssm/tslib.es6-9682e485.d.ts} +8 -4
- package/{tslib.es6-da42d045.js → cssm/tslib.es6-9682e485.js} +1 -1
- package/cssm/utils.js +1 -3
- package/desktop.css +9 -9
- package/desktop.js +6 -6
- package/esm/{Component-9371eb99.d.ts → Component-5bc49f26.d.ts} +0 -0
- package/esm/{Component-9371eb99.js → Component-5bc49f26.js} +1 -1
- package/esm/Component.desktop.js +7 -7
- package/esm/Component.mobile.js +7 -7
- package/esm/Component.responsive.js +9 -8
- package/esm/components/closer/Component.js +3 -3
- package/esm/components/closer/index.css +4 -4
- package/esm/components/content/Component.desktop.d.ts +1 -1
- package/esm/components/content/Component.desktop.js +2 -2
- package/esm/components/content/Component.js +1 -1
- package/esm/components/content/Component.mobile.js +2 -2
- 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.d.ts +1 -1
- package/esm/components/footer/Component.desktop.js +2 -2
- package/esm/components/footer/Component.js +2 -2
- package/esm/components/footer/Component.mobile.js +2 -2
- 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.d.ts +1 -1
- package/esm/components/header/Component.desktop.js +4 -4
- package/esm/components/header/Component.js +1 -1
- package/esm/components/header/Component.mobile.d.ts +1 -1
- 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 +6 -6
- package/esm/index.js +8 -8
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +6 -6
- package/esm/responsive.js +8 -8
- package/esm/transitions.css +8 -8
- package/esm/transitions.module-053bd5b2.js +4 -0
- package/{tslib.es6-da42d045.d.ts → esm/tslib.es6-028db3ce.d.ts} +8 -4
- package/esm/{tslib.es6-4869febb.js → tslib.es6-028db3ce.js} +1 -1
- package/esm/utils.js +1 -3
- package/index.js +8 -8
- package/mobile.css +2 -2
- package/mobile.js +6 -6
- package/modern/{Component-2c89b6a1.d.ts → Component-4974412a.d.ts} +0 -0
- package/modern/{Component-2c89b6a1.js → Component-4974412a.js} +1 -1
- package/modern/Component.desktop.js +8 -8
- package/modern/Component.mobile.js +10 -12
- package/modern/Component.responsive.js +10 -9
- package/modern/components/closer/Component.js +3 -3
- package/modern/components/closer/index.css +4 -4
- package/modern/components/content/Component.desktop.d.ts +1 -1
- package/modern/components/content/Component.desktop.js +2 -2
- package/modern/components/content/Component.js +1 -1
- 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.d.ts +1 -1
- package/modern/components/footer/Component.desktop.js +3 -3
- package/modern/components/footer/Component.js +2 -2
- package/modern/components/footer/Component.mobile.js +3 -3
- 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.d.ts +1 -1
- package/modern/components/header/Component.desktop.js +5 -5
- package/modern/components/header/Component.js +1 -1
- package/modern/components/header/Component.mobile.d.ts +1 -1
- package/modern/components/header/Component.mobile.js +5 -5
- 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 +5 -5
- package/modern/index.js +7 -7
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +5 -5
- package/modern/responsive.js +7 -7
- package/modern/transitions.css +8 -8
- package/modern/transitions.module-053bd5b2.js +4 -0
- package/modern/utils.js +1 -3
- package/package.json +4 -4
- package/responsive.js +8 -8
- package/transitions.css +8 -8
- package/transitions.module-b8ebf246.js +6 -0
- package/{cssm/tslib.es6-ce870b46.d.ts → tslib.es6-5a073d46.d.ts} +8 -4
- package/{cssm/tslib.es6-ce870b46.js → tslib.es6-5a073d46.js} +1 -1
- package/utils.js +1 -3
- package/esm/transitions.module-632ad590.js +0 -4
- package/modern/transitions.module-632ad590.js +0 -4
- package/transitions.module-9c65a85a.js +0 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-028db3ce.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import '@alfalab/core-components-base-modal/esm';
|
|
5
|
-
import '../../Context.js';
|
|
6
|
-
import { H as Header, g as getDataTestId } from '../../Component-9371eb99.js';
|
|
7
5
|
import '@alfalab/core-components-icon-button/esm';
|
|
8
6
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
7
|
+
import '../../Context.js';
|
|
9
8
|
import { Closer } from '../closer/Component.js';
|
|
9
|
+
import { H as Header, g as getDataTestId } from '../../Component-5bc49f26.js';
|
|
10
10
|
import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
|
|
11
11
|
|
|
12
|
-
var styles = {"sticky":"
|
|
12
|
+
var styles = {"sticky":"modal__sticky_cihtd","content":"modal__content_cihtd"};
|
|
13
13
|
require('./mobile.css')
|
|
14
14
|
|
|
15
15
|
var HeaderMobile = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1pwhv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -43,45 +43,45 @@
|
|
|
43
43
|
|
|
44
44
|
/* mobile */
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.modal__header_14i33 {
|
|
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_14i33 {
|
|
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_14i33 .modal__content_14i33,
|
|
55
|
+
.modal__m_14i33 .modal__content_14i33 {
|
|
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_14i33 .modal__content_14i33,
|
|
61
|
+
.modal__xl_14i33 .modal__content_14i33,
|
|
62
|
+
.modal__fullscreen_14i33 .modal__content_14i33 {
|
|
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_14i33,
|
|
68
|
+
.modal__m_14i33 {
|
|
69
69
|
padding: var(--modal-s-header-paddings)
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.modal__s_14i33:not(.modal__hasContent_14i33), .modal__m_14i33:not(.modal__hasContent_14i33) {
|
|
72
72
|
padding-bottom: 0;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
75
|
-
.
|
|
76
|
-
.
|
|
74
|
+
.modal__l_14i33,
|
|
75
|
+
.modal__xl_14i33,
|
|
76
|
+
.modal__fullscreen_14i33 {
|
|
77
77
|
padding: var(--gap-xl) var(--gap-xl) var(--gap-m)
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.modal__l_14i33:not(.modal__hasContent_14i33), .modal__xl_14i33:not(.modal__hasContent_14i33), .modal__fullscreen_14i33:not(.modal__hasContent_14i33) {
|
|
80
80
|
padding-bottom: var(--gap-m);
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.modal__sticky_14i33 {
|
|
83
83
|
top: calc(var(--modal-vertical-padding) * -1)
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.modal__sticky_14i33.modal__fullscreen_14i33 {
|
|
86
86
|
top: 0;
|
|
87
87
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1yq6z */
|
|
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_m6kwl {
|
|
29
29
|
width: 100%;
|
|
30
30
|
box-sizing: border-box;
|
|
31
31
|
display: flex;
|
|
@@ -33,26 +33,26 @@
|
|
|
33
33
|
justify-content: space-between;
|
|
34
34
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.modal__header_m6kwl:not(.modal__hasContent_m6kwl) {
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__highlighted_m6kwl {
|
|
40
40
|
background: var(--modal-header-highlight-background);
|
|
41
41
|
box-shadow: var(--modal-header-highlight-box-shadow);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.modal__sticky_m6kwl {
|
|
44
44
|
position: sticky
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.modal__sticky_m6kwl.modal__hasContent_m6kwl {
|
|
47
47
|
background: var(--modal-header-background);
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.modal__content_m6kwl {
|
|
50
50
|
flex-grow: 1;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.modal__title_m6kwl {
|
|
53
53
|
word-break: break-word;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.modal__addon_m6kwl {
|
|
56
56
|
min-width: 48px;
|
|
57
57
|
height: 48px;
|
|
58
58
|
display: flex;
|
|
@@ -60,25 +60,25 @@
|
|
|
60
60
|
align-items: center;
|
|
61
61
|
pointer-events: all;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.modal__closer_m6kwl {
|
|
64
64
|
margin-left: auto;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.modal__left_m6kwl {
|
|
67
67
|
justify-content: flex-start;
|
|
68
68
|
text-align: left;
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.modal__center_m6kwl {
|
|
71
71
|
justify-content: center;
|
|
72
72
|
text-align: center;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.modal__right_m6kwl {
|
|
75
75
|
justify-content: flex-end;
|
|
76
76
|
text-align: right;
|
|
77
77
|
}
|
|
78
|
-
.
|
|
78
|
+
.modal__trim_m6kwl {
|
|
79
79
|
overflow: hidden
|
|
80
80
|
}
|
|
81
|
-
.
|
|
81
|
+
.modal__trim_m6kwl .modal__title_m6kwl {
|
|
82
82
|
overflow: hidden;
|
|
83
83
|
white-space: nowrap;
|
|
84
84
|
text-overflow: ellipsis;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 73jg3 */
|
|
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_cihtd {
|
|
37
37
|
top: 0;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__content_cihtd {
|
|
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: 6uqds */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.modal__wrapper_ctsqz {
|
|
35
35
|
padding-top: var(--modal-vertical-padding);
|
|
36
36
|
padding-bottom: var(--modal-vertical-padding);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.modal__component_ctsqz {
|
|
39
39
|
width: 100%;
|
|
40
40
|
max-width: 100%;
|
|
41
41
|
border-radius: var(--modal-border-radius);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.modal__fullscreen_ctsqz {
|
|
44
44
|
padding-top: 0;
|
|
45
45
|
padding-bottom: 0
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.modal__fullscreen_ctsqz .modal__component_ctsqz {
|
|
48
48
|
flex: 1;
|
|
49
49
|
border-radius: 0;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.modal__s_ctsqz {
|
|
52
52
|
width: var(--modal-s-width);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.modal__m_ctsqz {
|
|
55
55
|
width: var(--modal-m-width);
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.modal__l_ctsqz {
|
|
58
58
|
width: var(--modal-l-width);
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.modal__xl_ctsqz {
|
|
61
61
|
width: var(--modal-xl-width);
|
|
62
62
|
}
|
package/esm/desktop.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-028db3ce.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'react-merge-refs';
|
|
3
4
|
import 'classnames';
|
|
4
5
|
import '@alfalab/core-components-base-modal/esm';
|
|
5
|
-
import 'react-merge-refs';
|
|
6
|
-
import './Context.js';
|
|
7
|
-
import './Component-9371eb99.js';
|
|
8
6
|
import '@alfalab/core-components-icon-button/esm';
|
|
9
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
8
|
+
import './Context.js';
|
|
10
9
|
import './components/closer/Component.js';
|
|
11
|
-
import './components/header/Component.desktop.js';
|
|
12
10
|
import './components/content/Component.js';
|
|
13
11
|
import './components/content/Component.desktop.js';
|
|
14
12
|
import './components/footer/Component.js';
|
|
15
13
|
import './components/footer/Component.desktop.js';
|
|
14
|
+
import './Component-5bc49f26.js';
|
|
15
|
+
import './components/header/Component.desktop.js';
|
|
16
16
|
export { ModalDesktop } from './Component.desktop.js';
|
|
17
|
-
import './transitions.module-
|
|
17
|
+
import './transitions.module-053bd5b2.js';
|
package/esm/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-028db3ce.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'react-merge-refs';
|
|
3
4
|
import 'classnames';
|
|
4
5
|
import '@alfalab/core-components-base-modal/esm';
|
|
5
|
-
import 'react-merge-refs';
|
|
6
|
-
export { ModalContext } from './Context.js';
|
|
7
|
-
import './Component-9371eb99.js';
|
|
8
6
|
import '@alfalab/core-components-icon-button/esm';
|
|
9
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
8
|
+
export { ModalContext } from './Context.js';
|
|
10
9
|
import './components/closer/Component.js';
|
|
11
|
-
import './components/header/Component.desktop.js';
|
|
12
10
|
import './components/content/Component.js';
|
|
13
11
|
import './components/content/Component.desktop.js';
|
|
14
12
|
import './components/footer/Component.js';
|
|
15
13
|
import './components/footer/Component.desktop.js';
|
|
14
|
+
import './Component-5bc49f26.js';
|
|
15
|
+
import './components/header/Component.desktop.js';
|
|
16
16
|
import './Component.desktop.js';
|
|
17
|
-
import './transitions.module-
|
|
18
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
19
|
-
import './components/header/Component.mobile.js';
|
|
17
|
+
import './transitions.module-053bd5b2.js';
|
|
20
18
|
import './components/content/Component.mobile.js';
|
|
21
19
|
import './components/footer/Component.mobile.js';
|
|
20
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
21
|
+
import './components/header/Component.mobile.js';
|
|
22
22
|
import './Component.mobile.js';
|
|
23
23
|
import '@alfalab/hooks';
|
|
24
24
|
export { ModalResponsive } from './Component.responsive.js';
|
package/esm/mobile.css
CHANGED
package/esm/mobile.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-028db3ce.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-base-modal/esm';
|
|
5
|
-
import './Context.js';
|
|
6
|
-
import './Component-9371eb99.js';
|
|
7
5
|
import '@alfalab/core-components-icon-button/esm';
|
|
8
6
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
7
|
+
import './Context.js';
|
|
9
8
|
import './components/closer/Component.js';
|
|
10
9
|
import './components/content/Component.js';
|
|
11
10
|
import './components/footer/Component.js';
|
|
12
|
-
import './
|
|
13
|
-
import '
|
|
14
|
-
import './components/header/Component.mobile.js';
|
|
11
|
+
import './Component-5bc49f26.js';
|
|
12
|
+
import './transitions.module-053bd5b2.js';
|
|
15
13
|
import './components/content/Component.mobile.js';
|
|
16
14
|
import './components/footer/Component.mobile.js';
|
|
15
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
16
|
+
import './components/header/Component.mobile.js';
|
|
17
17
|
export { ModalMobile } from './Component.mobile.js';
|
package/esm/responsive.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-028db3ce.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'react-merge-refs';
|
|
3
4
|
import 'classnames';
|
|
4
5
|
import '@alfalab/core-components-base-modal/esm';
|
|
5
|
-
import 'react-merge-refs';
|
|
6
|
-
import './Context.js';
|
|
7
|
-
import './Component-9371eb99.js';
|
|
8
6
|
import '@alfalab/core-components-icon-button/esm';
|
|
9
7
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
8
|
+
import './Context.js';
|
|
10
9
|
import './components/closer/Component.js';
|
|
11
|
-
import './components/header/Component.desktop.js';
|
|
12
10
|
import './components/content/Component.js';
|
|
13
11
|
import './components/content/Component.desktop.js';
|
|
14
12
|
import './components/footer/Component.js';
|
|
15
13
|
import './components/footer/Component.desktop.js';
|
|
14
|
+
import './Component-5bc49f26.js';
|
|
15
|
+
import './components/header/Component.desktop.js';
|
|
16
16
|
import './Component.desktop.js';
|
|
17
|
-
import './transitions.module-
|
|
18
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
19
|
-
import './components/header/Component.mobile.js';
|
|
17
|
+
import './transitions.module-053bd5b2.js';
|
|
20
18
|
import './components/content/Component.mobile.js';
|
|
21
19
|
import './components/footer/Component.mobile.js';
|
|
20
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
21
|
+
import './components/header/Component.mobile.js';
|
|
22
22
|
import './Component.mobile.js';
|
|
23
23
|
import '@alfalab/hooks';
|
|
24
24
|
export { ModalResponsive } from './Component.responsive.js';
|
package/esm/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
1
|
+
/* hash: 1vtjc */
|
|
2
|
+
.modal__appear_1yswn,
|
|
3
|
+
.modal__enter_1yswn {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.modal__appearActive_1yswn,
|
|
9
|
+
.modal__enterActive_1yswn {
|
|
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_1yswn {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.modal__exitActive_1yswn,
|
|
21
|
+
.modal__exitDone_1yswn {
|
|
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_1yswn","enter":"modal__enter_1yswn","appearActive":"modal__appearActive_1yswn","enterActive":"modal__enterActive_1yswn","exit":"modal__exit_1yswn","exitActive":"modal__exitActive_1yswn","exitDone":"modal__exitDone_1yswn"};
|
|
2
|
+
require('./transitions.css')
|
|
3
|
+
|
|
4
|
+
export { transitions as t };
|
|
@@ -12,9 +12,12 @@ declare function __generator(thisArg: any, body: any): {
|
|
|
12
12
|
declare function __exportStar(m: any, o: any): void;
|
|
13
13
|
declare function __values(o: any): any;
|
|
14
14
|
declare function __read(o: any, n: any): any;
|
|
15
|
+
/** @deprecated */
|
|
15
16
|
declare function __spread(...args: any[]): any[];
|
|
17
|
+
/** @deprecated */
|
|
16
18
|
declare function __spreadArrays(...args: any[]): any[];
|
|
17
|
-
declare function
|
|
19
|
+
declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
|
|
20
|
+
declare function __await(v: any): __await;
|
|
18
21
|
declare class __await {
|
|
19
22
|
constructor(v: any);
|
|
20
23
|
v: any;
|
|
@@ -25,8 +28,9 @@ declare function __asyncValues(o: any): any;
|
|
|
25
28
|
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
26
29
|
declare function __importStar(mod: any): any;
|
|
27
30
|
declare function __importDefault(mod: any): any;
|
|
28
|
-
declare function __classPrivateFieldGet(receiver: any,
|
|
29
|
-
declare function __classPrivateFieldSet(receiver: any,
|
|
31
|
+
declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
|
|
32
|
+
declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
|
|
33
|
+
declare function __classPrivateFieldIn(state: any, receiver: any): any;
|
|
30
34
|
declare function __assign(...args: any[]): any;
|
|
31
35
|
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
32
|
-
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
|
|
36
|
+
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/******************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
package/esm/utils.js
CHANGED
|
@@ -25,9 +25,7 @@ var isOverflowing = function (container) {
|
|
|
25
25
|
}
|
|
26
26
|
return container.scrollHeight > container.clientHeight;
|
|
27
27
|
};
|
|
28
|
-
var getPaddingRight = function (node) {
|
|
29
|
-
return parseInt(window.getComputedStyle(node).paddingRight, 10) || 0;
|
|
30
|
-
};
|
|
28
|
+
var getPaddingRight = function (node) { return parseInt(window.getComputedStyle(node).paddingRight, 10) || 0; };
|
|
31
29
|
var handleContainer = function (container) {
|
|
32
30
|
var restoreStyle = [];
|
|
33
31
|
if (isOverflowing(container)) {
|
package/index.js
CHANGED
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-5a073d46.js');
|
|
6
6
|
require('react');
|
|
7
|
+
require('react-merge-refs');
|
|
7
8
|
require('classnames');
|
|
8
9
|
require('@alfalab/core-components-base-modal');
|
|
9
|
-
require('react-merge-refs');
|
|
10
|
-
var Context = require('./Context.js');
|
|
11
|
-
require('./Component-4207925f.js');
|
|
12
10
|
require('@alfalab/core-components-icon-button');
|
|
13
11
|
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
12
|
+
var Context = require('./Context.js');
|
|
14
13
|
require('./components/closer/Component.js');
|
|
15
|
-
require('./components/header/Component.desktop.js');
|
|
16
14
|
require('./components/content/Component.js');
|
|
17
15
|
require('./components/content/Component.desktop.js');
|
|
18
16
|
require('./components/footer/Component.js');
|
|
19
17
|
require('./components/footer/Component.desktop.js');
|
|
18
|
+
require('./Component-4316068c.js');
|
|
19
|
+
require('./components/header/Component.desktop.js');
|
|
20
20
|
require('./Component.desktop.js');
|
|
21
|
-
require('./transitions.module-
|
|
22
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
23
|
-
require('./components/header/Component.mobile.js');
|
|
21
|
+
require('./transitions.module-b8ebf246.js');
|
|
24
22
|
require('./components/content/Component.mobile.js');
|
|
25
23
|
require('./components/footer/Component.mobile.js');
|
|
24
|
+
require('@alfalab/icons-glyph/CrossMIcon');
|
|
25
|
+
require('./components/header/Component.mobile.js');
|
|
26
26
|
require('./Component.mobile.js');
|
|
27
27
|
require('@alfalab/hooks');
|
|
28
28
|
var Component_responsive = require('./Component.responsive.js');
|
package/mobile.css
CHANGED
package/mobile.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-5a073d46.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/core-components-base-modal');
|
|
9
|
-
require('./Context.js');
|
|
10
|
-
require('./Component-4207925f.js');
|
|
11
9
|
require('@alfalab/core-components-icon-button');
|
|
12
10
|
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
11
|
+
require('./Context.js');
|
|
13
12
|
require('./components/closer/Component.js');
|
|
14
13
|
require('./components/content/Component.js');
|
|
15
14
|
require('./components/footer/Component.js');
|
|
16
|
-
require('./
|
|
17
|
-
require('
|
|
18
|
-
require('./components/header/Component.mobile.js');
|
|
15
|
+
require('./Component-4316068c.js');
|
|
16
|
+
require('./transitions.module-b8ebf246.js');
|
|
19
17
|
require('./components/content/Component.mobile.js');
|
|
20
18
|
require('./components/footer/Component.mobile.js');
|
|
19
|
+
require('@alfalab/icons-glyph/CrossMIcon');
|
|
20
|
+
require('./components/header/Component.mobile.js');
|
|
21
21
|
var Component_mobile = require('./Component.mobile.js');
|
|
22
22
|
|
|
23
23
|
|
|
File without changes
|
|
@@ -7,7 +7,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
7
7
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
var styles = {"header":"
|
|
10
|
+
var styles = {"header":"modal__header_m6kwl","hasContent":"modal__hasContent_m6kwl","highlighted":"modal__highlighted_m6kwl","sticky":"modal__sticky_m6kwl","content":"modal__content_m6kwl","title":"modal__title_m6kwl","addon":"modal__addon_m6kwl","closer":"modal__closer_m6kwl","left":"modal__left_m6kwl","center":"modal__center_m6kwl","right":"modal__right_m6kwl","trim":"modal__trim_m6kwl"};
|
|
11
11
|
require('./components/header/index.css')
|
|
12
12
|
|
|
13
13
|
const Header = ({ className, addonClassName, contentClassName, leftAddons, children, align = 'left', trim = true, title, closer, sticky, dataTestId, }) => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useCallback, isValidElement, cloneElement } 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
|
-
import mergeRefs from 'react-merge-refs';
|
|
5
|
-
import './Context.js';
|
|
6
|
-
import './Component-2c89b6a1.js';
|
|
7
5
|
import '@alfalab/core-components-icon-button/modern';
|
|
8
6
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
7
|
+
import './Context.js';
|
|
9
8
|
import { Closer } from './components/closer/Component.js';
|
|
10
|
-
import { HeaderDesktop } from './components/header/Component.desktop.js';
|
|
11
9
|
import './components/content/Component.js';
|
|
12
10
|
import { ContentDesktop } from './components/content/Component.desktop.js';
|
|
13
11
|
import './components/footer/Component.js';
|
|
14
12
|
import { FooterDesktop } from './components/footer/Component.desktop.js';
|
|
15
|
-
import
|
|
13
|
+
import './Component-4974412a.js';
|
|
14
|
+
import { HeaderDesktop } from './components/header/Component.desktop.js';
|
|
15
|
+
import { t as transitions } from './transitions.module-053bd5b2.js';
|
|
16
16
|
|
|
17
|
-
var styles = {"wrapper":"
|
|
17
|
+
var styles = {"wrapper":"modal__wrapper_ctsqz","component":"modal__component_ctsqz","fullscreen":"modal__fullscreen_ctsqz","s":"modal__s_ctsqz","m":"modal__m_ctsqz","l":"modal__l_ctsqz","xl":"modal__xl_ctsqz"};
|
|
18
18
|
require('./desktop.css')
|
|
19
19
|
|
|
20
20
|
const ModalDesktopComponent = forwardRef(({ size = 's', fixedPosition, fullscreen, children, className, wrapperClassName, transitionProps = {}, ...restProps }, ref) => {
|
|
@@ -33,7 +33,7 @@ const ModalDesktopComponent = forwardRef(({ size = 's', fixedPosition, fullscree
|
|
|
33
33
|
transitionProps.onEntered(node, isAppearing);
|
|
34
34
|
}
|
|
35
35
|
}, [fixedPosition, transitionProps]);
|
|
36
|
-
return (React.createElement(BaseModal,
|
|
36
|
+
return (React.createElement(BaseModal, { ...restProps, ref: mergeRefs([ref, modalRef]), wrapperClassName: cn(styles.wrapper, wrapperClassName, {
|
|
37
37
|
[styles.fullscreen]: componentSize === 'fullscreen',
|
|
38
38
|
}), className: cn(styles.component, className, styles[componentSize]), backdropProps: {
|
|
39
39
|
invisible: componentSize === 'fullscreen',
|
|
@@ -42,7 +42,7 @@ const ModalDesktopComponent = forwardRef(({ size = 's', fixedPosition, fullscree
|
|
|
42
42
|
classNames: transitions,
|
|
43
43
|
...transitionProps,
|
|
44
44
|
onEntered: handleEntered,
|
|
45
|
-
} }
|
|
45
|
+
} }, React.Children.map(children, child => isValidElement(child) ? cloneElement(child, { size: componentSize }) : child)));
|
|
46
46
|
});
|
|
47
47
|
const ModalDesktop = Object.assign(ModalDesktopComponent, {
|
|
48
48
|
Content: ContentDesktop,
|
|
@@ -1,28 +1,26 @@
|
|
|
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 './Context.js';
|
|
5
|
-
import './Component-2c89b6a1.js';
|
|
6
4
|
import '@alfalab/core-components-icon-button/modern';
|
|
7
5
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
+
import './Context.js';
|
|
8
7
|
import { Closer } from './components/closer/Component.js';
|
|
9
8
|
import './components/content/Component.js';
|
|
10
9
|
import './components/footer/Component.js';
|
|
11
|
-
import
|
|
12
|
-
import '
|
|
13
|
-
import { HeaderMobile } from './components/header/Component.mobile.js';
|
|
10
|
+
import './Component-4974412a.js';
|
|
11
|
+
import { t as transitions } from './transitions.module-053bd5b2.js';
|
|
14
12
|
import { ContentMobile } from './components/content/Component.mobile.js';
|
|
15
13
|
import { FooterMobile } from './components/footer/Component.mobile.js';
|
|
14
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
15
|
+
import { HeaderMobile } from './components/header/Component.mobile.js';
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"
|
|
17
|
+
var styles = {"component":"modal__component_1k5ny"};
|
|
18
18
|
require('./mobile.css')
|
|
19
19
|
|
|
20
|
-
const ModalMobileComponent = forwardRef(({ children, className, ...restProps }, ref) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, className: cn(className, styles.component) }), children));
|
|
25
|
-
});
|
|
20
|
+
const ModalMobileComponent = forwardRef(({ children, className, ...restProps }, ref) => (React.createElement(BaseModal, { ...restProps, ref: ref, transitionProps: {
|
|
21
|
+
classNames: transitions,
|
|
22
|
+
...restProps.transitionProps,
|
|
23
|
+
}, className: cn(className, styles.component) }, children)));
|
|
26
24
|
const ModalMobile = Object.assign(ModalMobileComponent, {
|
|
27
25
|
Content: ContentMobile,
|
|
28
26
|
Header: HeaderMobile,
|