@alfalab/core-components-modal 6.0.10 → 6.0.12
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.d.ts +12 -0
- package/Component.desktop.d.ts +5 -44
- package/Component.desktop.js +14 -43
- package/Component.js +65 -0
- package/Component.mobile.d.ts +5 -18
- package/Component.mobile.js +13 -21
- package/Component.responsive.d.ts +5 -21
- package/Component.responsive.js +12 -34
- package/ResponsiveContext.d.ts +5 -0
- package/ResponsiveContext.js +16 -0
- package/components/closer/Component.js +3 -3
- package/components/closer/index.css +4 -4
- package/components/content/Component.d.ts +3 -16
- package/components/content/Component.js +11 -1
- 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 +15 -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.d.ts +49 -0
- package/components/header/Component.js +57 -5
- package/components/header/desktop.css +17 -17
- package/components/header/index.css +15 -15
- package/components/header/mobile.css +3 -3
- package/cssm/Component.d.ts +12 -0
- package/cssm/Component.desktop.d.ts +5 -44
- package/cssm/Component.desktop.js +22 -45
- package/cssm/Component.js +62 -0
- package/cssm/Component.mobile.d.ts +5 -18
- package/cssm/Component.mobile.js +20 -22
- package/cssm/Component.responsive.d.ts +5 -21
- package/cssm/Component.responsive.js +18 -39
- package/cssm/ResponsiveContext.d.ts +5 -0
- package/cssm/ResponsiveContext.js +16 -0
- package/cssm/components/closer/Component.js +1 -1
- package/cssm/components/content/Component.d.ts +3 -16
- package/cssm/components/content/Component.js +8 -0
- package/cssm/components/footer/Component.js +11 -0
- package/cssm/components/header/Component.d.ts +49 -0
- package/cssm/components/header/Component.js +55 -6
- package/cssm/desktop.js +13 -9
- package/cssm/index.d.ts +1 -0
- package/cssm/index.js +13 -19
- package/cssm/mobile.js +13 -9
- package/cssm/responsive.js +13 -19
- package/cssm/typings.d.ts +52 -0
- package/cssm/typings.js +2 -0
- package/desktop.css +9 -9
- package/desktop.js +7 -8
- package/esm/Component.d.ts +12 -0
- package/esm/Component.desktop.d.ts +5 -44
- package/esm/Component.desktop.js +15 -42
- package/esm/Component.js +55 -0
- package/esm/Component.mobile.d.ts +5 -18
- package/esm/Component.mobile.js +13 -20
- package/esm/Component.responsive.d.ts +5 -21
- package/esm/Component.responsive.js +13 -35
- package/esm/ResponsiveContext.d.ts +5 -0
- package/esm/ResponsiveContext.js +8 -0
- package/esm/components/closer/Component.js +3 -3
- package/esm/components/closer/index.css +4 -4
- package/esm/components/content/Component.d.ts +3 -16
- package/esm/components/content/Component.js +11 -1
- 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 +15 -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.d.ts +49 -0
- package/esm/components/header/Component.js +55 -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 +7 -8
- package/esm/index.d.ts +1 -0
- package/esm/index.js +6 -13
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +6 -7
- package/esm/responsive.js +6 -13
- package/esm/transitions.css +8 -8
- package/esm/{tslib.es6-cd2fa46f.d.ts → tslib.es6-056b72d0.d.ts} +0 -0
- package/esm/{tslib.es6-cd2fa46f.js → tslib.es6-056b72d0.js} +1 -1
- package/esm/typings.d.ts +52 -0
- package/esm/typings.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +6 -13
- package/mobile.css +2 -2
- package/mobile.js +6 -7
- package/modern/Component.d.ts +12 -0
- package/modern/Component.desktop.d.ts +5 -44
- package/modern/Component.desktop.js +14 -44
- package/modern/Component.js +62 -0
- package/modern/Component.mobile.d.ts +5 -18
- package/modern/Component.mobile.js +12 -19
- package/modern/Component.responsive.d.ts +5 -21
- package/modern/Component.responsive.js +12 -34
- package/modern/ResponsiveContext.d.ts +5 -0
- package/modern/ResponsiveContext.js +8 -0
- package/modern/components/closer/Component.js +2 -2
- package/modern/components/closer/index.css +4 -4
- package/modern/components/content/Component.d.ts +3 -16
- package/modern/components/content/Component.js +11 -1
- 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 +15 -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.d.ts +49 -0
- package/modern/components/header/Component.js +52 -4
- 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 +6 -7
- package/modern/index.d.ts +1 -0
- package/modern/index.js +5 -12
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +5 -6
- package/modern/responsive.js +5 -12
- package/modern/transitions.css +8 -8
- package/modern/typings.d.ts +52 -0
- package/modern/typings.js +1 -0
- package/package.json +4 -4
- package/responsive.js +6 -13
- package/send-stats.js +1 -1
- package/transitions.css +8 -8
- package/{tslib.es6-93e97f54.d.ts → tslib.es6-0c9325d7.d.ts} +0 -0
- package/{tslib.es6-93e97f54.js → tslib.es6-0c9325d7.js} +0 -0
- package/typings.d.ts +52 -0
- package/typings.js +2 -0
- package/Component-cacd0e72.d.ts +0 -50
- package/Component-cacd0e72.js +0 -43
- package/components/content/Component.desktop.d.ts +0 -11
- package/components/content/Component.desktop.js +0 -25
- package/components/content/Component.mobile.d.ts +0 -5
- package/components/content/Component.mobile.js +0 -25
- package/components/footer/Component.desktop.d.ts +0 -11
- package/components/footer/Component.desktop.js +0 -28
- package/components/footer/Component.mobile.d.ts +0 -5
- package/components/footer/Component.mobile.js +0 -28
- package/components/header/Component.desktop.d.ts +0 -15
- package/components/header/Component.desktop.js +0 -33
- package/components/header/Component.mobile.d.ts +0 -10
- package/components/header/Component.mobile.js +0 -33
- package/cssm/Component-5fe52731.d.ts +0 -50
- package/cssm/Component-5fe52731.js +0 -42
- package/cssm/components/content/Component.desktop.d.ts +0 -11
- package/cssm/components/content/Component.desktop.js +0 -25
- package/cssm/components/content/Component.mobile.d.ts +0 -5
- package/cssm/components/content/Component.mobile.js +0 -25
- package/cssm/components/footer/Component.desktop.d.ts +0 -11
- package/cssm/components/footer/Component.desktop.js +0 -29
- package/cssm/components/footer/Component.mobile.d.ts +0 -5
- package/cssm/components/footer/Component.mobile.js +0 -29
- package/cssm/components/header/Component.desktop.d.ts +0 -15
- package/cssm/components/header/Component.desktop.js +0 -34
- package/cssm/components/header/Component.mobile.d.ts +0 -10
- package/cssm/components/header/Component.mobile.js +0 -34
- package/cssm/getDataTestId-3fe0d3e6.d.ts +0 -2
- package/esm/Component-f9c8a7ff.d.ts +0 -50
- package/esm/Component-f9c8a7ff.js +0 -35
- package/esm/components/content/Component.desktop.d.ts +0 -11
- package/esm/components/content/Component.desktop.js +0 -16
- package/esm/components/content/Component.mobile.d.ts +0 -5
- package/esm/components/content/Component.mobile.js +0 -16
- package/esm/components/footer/Component.desktop.d.ts +0 -11
- package/esm/components/footer/Component.desktop.js +0 -19
- package/esm/components/footer/Component.mobile.d.ts +0 -5
- package/esm/components/footer/Component.mobile.js +0 -19
- package/esm/components/header/Component.desktop.d.ts +0 -15
- package/esm/components/header/Component.desktop.js +0 -24
- package/esm/components/header/Component.mobile.d.ts +0 -10
- package/esm/components/header/Component.mobile.js +0 -23
- package/esm/getDataTestId-3fe0d3e6.d.ts +0 -2
- package/esm/transitions.module-a1e3a16d.js +0 -4
- package/getDataTestId-3fe0d3e6.d.ts +0 -2
- package/modern/Component-dc6c12bd.d.ts +0 -50
- package/modern/Component-dc6c12bd.js +0 -33
- package/modern/components/content/Component.desktop.d.ts +0 -11
- package/modern/components/content/Component.desktop.js +0 -12
- package/modern/components/content/Component.mobile.d.ts +0 -5
- package/modern/components/content/Component.mobile.js +0 -12
- package/modern/components/footer/Component.desktop.d.ts +0 -11
- package/modern/components/footer/Component.desktop.js +0 -14
- package/modern/components/footer/Component.mobile.d.ts +0 -5
- package/modern/components/footer/Component.mobile.js +0 -14
- package/modern/components/header/Component.desktop.d.ts +0 -15
- package/modern/components/header/Component.desktop.js +0 -21
- package/modern/components/header/Component.mobile.d.ts +0 -10
- package/modern/components/header/Component.mobile.js +0 -18
- package/modern/getDataTestId-3fe0d3e6.d.ts +0 -2
- package/modern/transitions.module-a1e3a16d.js +0 -4
- package/transitions.module-fc7cacd3.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18ti8 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -43,45 +43,45 @@
|
|
|
43
43
|
|
|
44
44
|
/* mobile */
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.modal__header_xgu5m {
|
|
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_xgu5m {
|
|
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_xgu5m .modal__content_xgu5m,
|
|
55
|
+
.modal__m_xgu5m .modal__content_xgu5m {
|
|
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_xgu5m .modal__content_xgu5m,
|
|
61
|
+
.modal__xl_xgu5m .modal__content_xgu5m,
|
|
62
|
+
.modal__fullscreen_xgu5m .modal__content_xgu5m {
|
|
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_xgu5m,
|
|
68
|
+
.modal__m_xgu5m {
|
|
69
69
|
padding: var(--modal-s-header-paddings)
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.modal__s_xgu5m:not(.modal__hasContent_xgu5m), .modal__m_xgu5m:not(.modal__hasContent_xgu5m) {
|
|
72
72
|
padding-bottom: 0;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
75
|
-
.
|
|
76
|
-
.
|
|
74
|
+
.modal__l_xgu5m,
|
|
75
|
+
.modal__xl_xgu5m,
|
|
76
|
+
.modal__fullscreen_xgu5m {
|
|
77
77
|
padding: var(--gap-xl) var(--gap-xl) var(--gap-m)
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.modal__l_xgu5m:not(.modal__hasContent_xgu5m), .modal__xl_xgu5m:not(.modal__hasContent_xgu5m), .modal__fullscreen_xgu5m:not(.modal__hasContent_xgu5m) {
|
|
80
80
|
padding-bottom: var(--gap-m);
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.modal__sticky_xgu5m {
|
|
83
83
|
top: calc(var(--modal-vertical-padding) * -1)
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.modal__sticky_xgu5m.modal__fullscreen_xgu5m {
|
|
86
86
|
top: 0;
|
|
87
87
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hn7b */
|
|
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_f5byq {
|
|
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_f5byq:not(.modal__hasContent_f5byq) {
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__highlighted_f5byq {
|
|
40
40
|
background: var(--modal-header-highlight-background);
|
|
41
41
|
box-shadow: var(--modal-header-highlight-box-shadow);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.modal__sticky_f5byq {
|
|
44
44
|
position: sticky
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.modal__sticky_f5byq.modal__hasContent_f5byq {
|
|
47
47
|
background: var(--modal-header-background);
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.modal__content_f5byq {
|
|
50
50
|
flex-grow: 1;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.modal__title_f5byq {
|
|
53
53
|
word-break: break-word;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.modal__addon_f5byq {
|
|
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_f5byq {
|
|
64
64
|
margin-left: auto;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.modal__left_f5byq {
|
|
67
67
|
justify-content: flex-start;
|
|
68
68
|
text-align: left;
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.modal__center_f5byq {
|
|
71
71
|
justify-content: center;
|
|
72
72
|
text-align: center;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.modal__right_f5byq {
|
|
75
75
|
justify-content: flex-end;
|
|
76
76
|
text-align: right;
|
|
77
77
|
}
|
|
78
|
-
.
|
|
78
|
+
.modal__trim_f5byq {
|
|
79
79
|
overflow: hidden
|
|
80
80
|
}
|
|
81
|
-
.
|
|
81
|
+
.modal__trim_f5byq .modal__title_f5byq {
|
|
82
82
|
overflow: hidden;
|
|
83
83
|
white-space: nowrap;
|
|
84
84
|
text-overflow: ellipsis;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1f6lr */
|
|
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_15fng {
|
|
37
37
|
top: 0;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__content_15fng {
|
|
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: xss4d */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.modal__wrapper_1kgjw {
|
|
35
35
|
padding-top: var(--modal-vertical-padding);
|
|
36
36
|
padding-bottom: var(--modal-vertical-padding);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.modal__component_1kgjw {
|
|
39
39
|
width: 100%;
|
|
40
40
|
max-width: 100%;
|
|
41
41
|
border-radius: var(--modal-border-radius);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.modal__fullscreen_1kgjw {
|
|
44
44
|
padding-top: 0;
|
|
45
45
|
padding-bottom: 0
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.modal__fullscreen_1kgjw .modal__component_1kgjw {
|
|
48
48
|
flex: 1;
|
|
49
49
|
border-radius: 0;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.modal__s_1kgjw {
|
|
52
52
|
width: var(--modal-s-width);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.modal__m_1kgjw {
|
|
55
55
|
width: var(--modal-m-width);
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.modal__l_1kgjw {
|
|
58
58
|
width: var(--modal-l-width);
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.modal__xl_1kgjw {
|
|
61
61
|
width: var(--modal-xl-width);
|
|
62
62
|
}
|
package/esm/desktop.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-056b72d0.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import 'react-merge-refs';
|
|
4
3
|
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
6
4
|
import '@alfalab/core-components-icon-button/esm';
|
|
7
5
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
8
7
|
import './Context.js';
|
|
9
8
|
import './components/closer/Component.js';
|
|
9
|
+
import './ResponsiveContext.js';
|
|
10
10
|
import './components/content/Component.js';
|
|
11
|
-
import './components/content/Component.desktop.js';
|
|
12
11
|
import './components/footer/Component.js';
|
|
13
|
-
import '
|
|
14
|
-
import './Component
|
|
15
|
-
import '
|
|
12
|
+
import '@alfalab/icons-glyph/CrossMIcon';
|
|
13
|
+
import './components/header/Component.js';
|
|
14
|
+
import 'react-merge-refs';
|
|
15
|
+
import './Component.js';
|
|
16
16
|
export { ModalDesktop } from './Component.desktop.js';
|
|
17
|
-
import './transitions.module-a1e3a16d.js';
|
package/esm/index.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-056b72d0.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import 'react-merge-refs';
|
|
4
3
|
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
6
4
|
import '@alfalab/core-components-icon-button/esm';
|
|
7
5
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
8
7
|
export { ModalContext } from './Context.js';
|
|
9
8
|
import './components/closer/Component.js';
|
|
9
|
+
import './ResponsiveContext.js';
|
|
10
10
|
import './components/content/Component.js';
|
|
11
|
-
import './components/content/Component.desktop.js';
|
|
12
11
|
import './components/footer/Component.js';
|
|
13
|
-
import './components/footer/Component.desktop.js';
|
|
14
|
-
import './Component-f9c8a7ff.js';
|
|
15
|
-
import './components/header/Component.desktop.js';
|
|
16
|
-
import './Component.desktop.js';
|
|
17
|
-
import './transitions.module-a1e3a16d.js';
|
|
18
|
-
import './components/content/Component.mobile.js';
|
|
19
|
-
import './components/footer/Component.mobile.js';
|
|
20
12
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
21
|
-
import './components/header/Component.
|
|
22
|
-
import '
|
|
13
|
+
import './components/header/Component.js';
|
|
14
|
+
import 'react-merge-refs';
|
|
15
|
+
import './Component.js';
|
|
23
16
|
import '@alfalab/hooks';
|
|
24
17
|
export { ModalResponsive } from './Component.responsive.js';
|
package/esm/mobile.css
CHANGED
package/esm/mobile.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-056b72d0.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
5
4
|
import '@alfalab/core-components-icon-button/esm';
|
|
6
5
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
7
7
|
import './Context.js';
|
|
8
8
|
import './components/closer/Component.js';
|
|
9
|
+
import './ResponsiveContext.js';
|
|
9
10
|
import './components/content/Component.js';
|
|
10
11
|
import './components/footer/Component.js';
|
|
11
|
-
import './Component-f9c8a7ff.js';
|
|
12
|
-
import './transitions.module-a1e3a16d.js';
|
|
13
|
-
import './components/content/Component.mobile.js';
|
|
14
|
-
import './components/footer/Component.mobile.js';
|
|
15
12
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
16
|
-
import './components/header/Component.
|
|
13
|
+
import './components/header/Component.js';
|
|
14
|
+
import 'react-merge-refs';
|
|
15
|
+
import './Component.js';
|
|
17
16
|
export { ModalMobile } from './Component.mobile.js';
|
package/esm/responsive.js
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-056b72d0.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import 'react-merge-refs';
|
|
4
3
|
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
6
4
|
import '@alfalab/core-components-icon-button/esm';
|
|
7
5
|
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
8
7
|
import './Context.js';
|
|
9
8
|
import './components/closer/Component.js';
|
|
9
|
+
import './ResponsiveContext.js';
|
|
10
10
|
import './components/content/Component.js';
|
|
11
|
-
import './components/content/Component.desktop.js';
|
|
12
11
|
import './components/footer/Component.js';
|
|
13
|
-
import './components/footer/Component.desktop.js';
|
|
14
|
-
import './Component-f9c8a7ff.js';
|
|
15
|
-
import './components/header/Component.desktop.js';
|
|
16
|
-
import './Component.desktop.js';
|
|
17
|
-
import './transitions.module-a1e3a16d.js';
|
|
18
|
-
import './components/content/Component.mobile.js';
|
|
19
|
-
import './components/footer/Component.mobile.js';
|
|
20
12
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
21
|
-
import './components/header/Component.
|
|
22
|
-
import '
|
|
13
|
+
import './components/header/Component.js';
|
|
14
|
+
import 'react-merge-refs';
|
|
15
|
+
import './Component.js';
|
|
23
16
|
import '@alfalab/hooks';
|
|
24
17
|
export { ModalResponsive } from './Component.responsive.js';
|
package/esm/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
1
|
+
/* hash: 1dloq */
|
|
2
|
+
.modal__appear_5a8sg,
|
|
3
|
+
.modal__enter_5a8sg {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.modal__appearActive_5a8sg,
|
|
9
|
+
.modal__enterActive_5a8sg {
|
|
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_5a8sg {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.modal__exitActive_5a8sg,
|
|
21
|
+
.modal__exitDone_5a8sg {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
File without changes
|
package/esm/typings.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseModalProps } from "@alfalab/core-components-base-modal";
|
|
3
|
+
type ModalDesktopProps = BaseModalProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Ширина модального окна
|
|
6
|
+
* @default "m"
|
|
7
|
+
*/
|
|
8
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
|
|
9
|
+
/**
|
|
10
|
+
* Растягивает модальное окно на весь экран
|
|
11
|
+
* @deprecated Используйте размер fullscreen
|
|
12
|
+
*/
|
|
13
|
+
fullscreen?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Фиксирует позицию модального окна после открытия,
|
|
16
|
+
* предотвращая скачки, если контент внутри будет меняться
|
|
17
|
+
*/
|
|
18
|
+
fixedPosition?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Управление наличием закрывающего крестика
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
hasCloser?: boolean;
|
|
24
|
+
};
|
|
25
|
+
type ModalMobileProps = Omit<ModalDesktopProps, 'size' | 'fixedPosition' | 'fullscreen'>;
|
|
26
|
+
type ModalResponsiveProps = ModalDesktopProps & {
|
|
27
|
+
/**
|
|
28
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
29
|
+
* @default 1024
|
|
30
|
+
*/
|
|
31
|
+
breakpoint?: number;
|
|
32
|
+
};
|
|
33
|
+
type View = 'desktop' | 'mobile';
|
|
34
|
+
type TResponsiveModalContext = {
|
|
35
|
+
view: View;
|
|
36
|
+
size: NonNullable<ModalDesktopProps['size']>;
|
|
37
|
+
};
|
|
38
|
+
type ContentProps = {
|
|
39
|
+
/**
|
|
40
|
+
* Контент
|
|
41
|
+
*/
|
|
42
|
+
children?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Дополнительный класс
|
|
45
|
+
*/
|
|
46
|
+
className?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Растягивает контент на всю высоту
|
|
49
|
+
*/
|
|
50
|
+
flex?: boolean;
|
|
51
|
+
};
|
|
52
|
+
export { ModalDesktopProps, ModalMobileProps, ModalResponsiveProps, View, TResponsiveModalContext, ContentProps };
|
package/esm/typings.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -2,28 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-0c9325d7.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('react-merge-refs');
|
|
8
7
|
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-base-modal');
|
|
10
8
|
require('@alfalab/core-components-icon-button');
|
|
11
9
|
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
10
|
+
require('@alfalab/core-components-base-modal');
|
|
12
11
|
var Context = require('./Context.js');
|
|
13
12
|
require('./components/closer/Component.js');
|
|
13
|
+
require('./ResponsiveContext.js');
|
|
14
14
|
require('./components/content/Component.js');
|
|
15
|
-
require('./components/content/Component.desktop.js');
|
|
16
15
|
require('./components/footer/Component.js');
|
|
17
|
-
require('./components/footer/Component.desktop.js');
|
|
18
|
-
require('./Component-cacd0e72.js');
|
|
19
|
-
require('./components/header/Component.desktop.js');
|
|
20
|
-
require('./Component.desktop.js');
|
|
21
|
-
require('./transitions.module-fc7cacd3.js');
|
|
22
|
-
require('./components/content/Component.mobile.js');
|
|
23
|
-
require('./components/footer/Component.mobile.js');
|
|
24
16
|
require('@alfalab/icons-glyph/CrossMIcon');
|
|
25
|
-
require('./components/header/Component.
|
|
26
|
-
require('
|
|
17
|
+
require('./components/header/Component.js');
|
|
18
|
+
require('react-merge-refs');
|
|
19
|
+
require('./Component.js');
|
|
27
20
|
require('@alfalab/hooks');
|
|
28
21
|
var Component_responsive = require('./Component.responsive.js');
|
|
29
22
|
|
package/mobile.css
CHANGED
package/mobile.js
CHANGED
|
@@ -2,22 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-0c9325d7.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('@alfalab/core-components-base-modal');
|
|
9
8
|
require('@alfalab/core-components-icon-button');
|
|
10
9
|
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
10
|
+
require('@alfalab/core-components-base-modal');
|
|
11
11
|
require('./Context.js');
|
|
12
12
|
require('./components/closer/Component.js');
|
|
13
|
+
require('./ResponsiveContext.js');
|
|
13
14
|
require('./components/content/Component.js');
|
|
14
15
|
require('./components/footer/Component.js');
|
|
15
|
-
require('./Component-cacd0e72.js');
|
|
16
|
-
require('./transitions.module-fc7cacd3.js');
|
|
17
|
-
require('./components/content/Component.mobile.js');
|
|
18
|
-
require('./components/footer/Component.mobile.js');
|
|
19
16
|
require('@alfalab/icons-glyph/CrossMIcon');
|
|
20
|
-
require('./components/header/Component.
|
|
17
|
+
require('./components/header/Component.js');
|
|
18
|
+
require('react-merge-refs');
|
|
19
|
+
require('./Component.js');
|
|
21
20
|
var Component_mobile = require('./Component.mobile.js');
|
|
22
21
|
|
|
23
22
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { View } from "./typings";
|
|
4
|
+
declare const Modal: React.ForwardRefExoticComponent<import("@alfalab/core-components-base-modal").BaseModalProps & {
|
|
5
|
+
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
|
+
fullscreen?: boolean | undefined;
|
|
7
|
+
fixedPosition?: boolean | undefined;
|
|
8
|
+
hasCloser?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
view: View;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Modal };
|
|
@@ -1,53 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
type ModalDesktopProps = BaseModalProps & {
|
|
5
|
-
/**
|
|
6
|
-
* Ширина модального окна
|
|
7
|
-
* @default "m"
|
|
8
|
-
*/
|
|
9
|
-
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
|
|
10
|
-
/**
|
|
11
|
-
* Растягивает модальное окно на весь экран
|
|
12
|
-
* @deprecated Используйте размер fullscreen
|
|
13
|
-
*/
|
|
14
|
-
fullscreen?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Фиксирует позицию модального окна после открытия,
|
|
17
|
-
* предотвращая скачки, если контент внутри будет меняться
|
|
18
|
-
*/
|
|
19
|
-
fixedPosition?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Управление наличием закрывающего крестика
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
hasCloser?: boolean;
|
|
25
|
-
};
|
|
26
|
-
declare const ModalDesktop: React.ForwardRefExoticComponent<BaseModalProps & {
|
|
27
|
-
/**
|
|
28
|
-
* Ширина модального окна
|
|
29
|
-
* @default "m"
|
|
30
|
-
*/
|
|
3
|
+
declare const ModalDesktop: React.ForwardRefExoticComponent<import("packages/base-modal/src").BaseModalProps & {
|
|
31
4
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Растягивает модальное окно на весь экран
|
|
34
|
-
* @deprecated Используйте размер fullscreen
|
|
35
|
-
*/
|
|
36
5
|
fullscreen?: boolean | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Фиксирует позицию модального окна после открытия,
|
|
39
|
-
* предотвращая скачки, если контент внутри будет меняться
|
|
40
|
-
*/
|
|
41
6
|
fixedPosition?: boolean | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Управление наличием закрывающего крестика
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
7
|
hasCloser?: boolean | undefined;
|
|
47
8
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
48
|
-
Content: React.FC<import("./
|
|
49
|
-
Header: React.FC<import("./components/header/Component
|
|
50
|
-
Footer: React.FC<import("./components/footer/Component
|
|
9
|
+
Content: React.FC<import("./typings").ContentProps>;
|
|
10
|
+
Header: React.FC<import("./components/header/Component").HeaderProps>;
|
|
11
|
+
Footer: React.FC<import("./components/footer/Component").FooterProps>;
|
|
51
12
|
Closer: React.FC<import("./components/closer/Component").CloserProps>;
|
|
52
13
|
};
|
|
53
|
-
export {
|
|
14
|
+
export { ModalDesktop };
|