@alfalab/core-components-modal 7.0.0 → 7.0.2
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.js +3 -3
- package/components/content/Component.js +3 -3
- package/components/content/desktop.css +7 -7
- package/components/content/index.css +4 -4
- package/components/content/mobile.css +3 -3
- package/components/footer/Component.js +4 -4
- 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 +4 -4
- package/components/header/desktop.css +15 -15
- package/components/header/index.css +4 -4
- package/components/header/mobile.css +4 -4
- package/cssm/components/header/Component.js +1 -1
- package/desktop.css +9 -9
- package/esm/Component.js +3 -3
- package/esm/components/content/Component.js +3 -3
- package/esm/components/content/desktop.css +7 -7
- package/esm/components/content/index.css +4 -4
- package/esm/components/content/mobile.css +3 -3
- package/esm/components/footer/Component.js +4 -4
- 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 +4 -4
- package/esm/components/header/desktop.css +15 -15
- package/esm/components/header/index.css +4 -4
- package/esm/components/header/mobile.css +4 -4
- package/esm/desktop.css +9 -9
- package/esm/mobile.css +2 -2
- package/esm/transitions.css +8 -8
- package/mobile.css +2 -2
- package/modern/Component.js +3 -3
- package/modern/components/content/Component.js +3 -3
- package/modern/components/content/desktop.css +7 -7
- package/modern/components/content/index.css +4 -4
- package/modern/components/content/mobile.css +3 -3
- package/modern/components/footer/Component.js +4 -4
- 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 +4 -4
- package/modern/components/header/desktop.css +15 -15
- package/modern/components/header/index.css +4 -4
- package/modern/components/header/mobile.css +4 -4
- package/modern/desktop.css +9 -9
- package/modern/mobile.css +2 -2
- package/modern/transitions.css +8 -8
- package/package.json +5 -5
- package/transitions.css +8 -8
package/Component.js
CHANGED
|
@@ -13,13 +13,13 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
13
13
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var desktopStyles = {"wrapper":"
|
|
16
|
+
var desktopStyles = {"wrapper":"modal__wrapper_1rde5","component":"modal__component_1rde5","fullscreen":"modal__fullscreen_1rde5","s":"modal__s_1rde5","m":"modal__m_1rde5","l":"modal__l_1rde5","xl":"modal__xl_1rde5"};
|
|
17
17
|
require('./desktop.css')
|
|
18
18
|
|
|
19
|
-
var mobileStyles = {"component":"
|
|
19
|
+
var mobileStyles = {"component":"modal__component_kkrie"};
|
|
20
20
|
require('./mobile.css')
|
|
21
21
|
|
|
22
|
-
var transitions = {"appear":"
|
|
22
|
+
var transitions = {"appear":"modal__appear_56p3k","enter":"modal__enter_56p3k","appearActive":"modal__appearActive_56p3k","enterActive":"modal__enterActive_56p3k","exit":"modal__exit_56p3k","exitActive":"modal__exitActive_56p3k","exitDone":"modal__exitDone_56p3k"};
|
|
23
23
|
require('./transitions.css')
|
|
24
24
|
|
|
25
25
|
var Modal = React.forwardRef(function (_a, ref) {
|
|
@@ -11,13 +11,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var desktopStyles = {"s":"
|
|
14
|
+
var desktopStyles = {"s":"modal__s_wxopp","m":"modal__m_wxopp","l":"modal__l_wxopp","xl":"modal__xl_wxopp","fullscreen":"modal__fullscreen_wxopp"};
|
|
15
15
|
require('./desktop.css')
|
|
16
16
|
|
|
17
|
-
var styles = {"content":"
|
|
17
|
+
var styles = {"content":"modal__content_190e8","withHeader":"modal__withHeader_190e8","flex":"modal__flex_190e8"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
|
-
var mobileStyles = {"content":"
|
|
20
|
+
var mobileStyles = {"content":"modal__content_hiq3c"};
|
|
21
21
|
require('./mobile.css')
|
|
22
22
|
|
|
23
23
|
var Content = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12o9a */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
/* mobile */
|
|
31
31
|
|
|
32
32
|
/* paddings */
|
|
33
|
-
} .
|
|
34
|
-
.
|
|
35
|
-
.
|
|
36
|
-
.
|
|
37
|
-
.
|
|
33
|
+
} .modal__s_wxopp,
|
|
34
|
+
.modal__m_wxopp,
|
|
35
|
+
.modal__l_wxopp,
|
|
36
|
+
.modal__xl_wxopp,
|
|
37
|
+
.modal__fullscreen_wxopp {
|
|
38
38
|
padding: var(--modal-s-content-paddings)
|
|
39
|
-
} .
|
|
39
|
+
} .modal__s_wxopp:last-child, .modal__m_wxopp:last-child, .modal__l_wxopp:last-child, .modal__xl_wxopp:last-child, .modal__fullscreen_wxopp:last-child {
|
|
40
40
|
padding-bottom: var(--modal-s-content-only-bottom-padding);
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: vx7df */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
/* mobile */
|
|
28
28
|
|
|
29
29
|
/* paddings */
|
|
30
|
-
} .
|
|
30
|
+
} .modal__content_190e8 {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
width: 100%
|
|
33
|
-
} .
|
|
33
|
+
} .modal__content_190e8.modal__withHeader_190e8 {
|
|
34
34
|
padding-top: 0;
|
|
35
|
-
} .
|
|
35
|
+
} .modal__flex_190e8 {
|
|
36
36
|
flex: 1;
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1helf */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
/* mobile */
|
|
29
29
|
|
|
30
30
|
/* paddings */
|
|
31
|
-
} .
|
|
31
|
+
} .modal__content_hiq3c {
|
|
32
32
|
padding: var(--gap-m) var(--gap-m) 0
|
|
33
|
-
} .
|
|
33
|
+
} .modal__content_hiq3c:last-child {
|
|
34
34
|
padding-bottom: var(--gap-m);
|
|
35
35
|
}
|
|
@@ -11,16 +11,16 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var desktopStyles = {"footer":"
|
|
14
|
+
var desktopStyles = {"footer":"modal__footer_1kbnh","sticky":"modal__sticky_1kbnh","fullscreen":"modal__fullscreen_1kbnh","s":"modal__s_1kbnh","m":"modal__m_1kbnh","l":"modal__l_1kbnh","xl":"modal__xl_1kbnh"};
|
|
15
15
|
require('./desktop.css')
|
|
16
16
|
|
|
17
|
-
var styles = {"footer":"
|
|
17
|
+
var styles = {"footer":"modal__footer_15e06","sticky":"modal__sticky_15e06","highlighted":"modal__highlighted_15e06"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
|
-
var layoutStyles = {"column":"
|
|
20
|
+
var layoutStyles = {"column":"modal__column_6clkv","gap-16":"modal__gap-16_6clkv","gap-24":"modal__gap-24_6clkv","gap-32":"modal__gap-32_6clkv","start":"modal__start_6clkv","center":"modal__center_6clkv","space-between":"modal__space-between_6clkv"};
|
|
21
21
|
require('./layout.css')
|
|
22
22
|
|
|
23
|
-
var mobileStyles = {"footer":"
|
|
23
|
+
var mobileStyles = {"footer":"modal__footer_1o9k2","sticky":"modal__sticky_1o9k2"};
|
|
24
24
|
require('./mobile.css')
|
|
25
25
|
|
|
26
26
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1bebp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
/* mobile */
|
|
34
34
|
|
|
35
35
|
/* paddings */
|
|
36
|
-
} .
|
|
36
|
+
} .modal__footer_1kbnh {
|
|
37
37
|
border-bottom-left-radius: var(--modal-border-radius);
|
|
38
38
|
border-bottom-right-radius: var(--modal-border-radius);
|
|
39
|
-
} .
|
|
39
|
+
} .modal__sticky_1kbnh {
|
|
40
40
|
bottom: calc(var(--modal-vertical-padding) * -1)
|
|
41
|
-
} .
|
|
41
|
+
} .modal__sticky_1kbnh.modal__fullscreen_1kbnh {
|
|
42
42
|
bottom: 0;
|
|
43
|
-
} .
|
|
44
|
-
.
|
|
45
|
-
.
|
|
46
|
-
.
|
|
47
|
-
.
|
|
43
|
+
} .modal__s_1kbnh,
|
|
44
|
+
.modal__m_1kbnh,
|
|
45
|
+
.modal__l_1kbnh,
|
|
46
|
+
.modal__xl_1kbnh,
|
|
47
|
+
.modal__fullscreen_1kbnh {
|
|
48
48
|
padding: var(--modal-s-footer-paddings);
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1k7qw */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
|
|
34
34
|
/* paddings */
|
|
35
|
-
} .
|
|
35
|
+
} .modal__footer_15e06 {
|
|
36
36
|
width: 100%;
|
|
37
37
|
box-sizing: border-box;
|
|
38
38
|
transition: box-shadow 0.2s ease, background 0.2s ease;
|
|
39
|
-
} .
|
|
39
|
+
} .modal__sticky_15e06 {
|
|
40
40
|
background: var(--modal-footer-background);
|
|
41
41
|
position: sticky;
|
|
42
|
-
} .
|
|
42
|
+
} .modal__highlighted_15e06 {
|
|
43
43
|
background: var(--modal-footer-highlight-background);
|
|
44
44
|
box-shadow: var(--modal-footer-highlight-box-shadow);
|
|
45
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1g1ow */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -31,45 +31,45 @@
|
|
|
31
31
|
/* mobile */
|
|
32
32
|
|
|
33
33
|
/* paddings */
|
|
34
|
-
} .
|
|
34
|
+
} .modal__column_6clkv {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column
|
|
37
|
-
} .
|
|
37
|
+
} .modal__column_6clkv > * {
|
|
38
38
|
margin-bottom: var(--modal-footer-default-gap);
|
|
39
|
-
} .
|
|
40
|
-
.
|
|
39
|
+
} .modal__column_6clkv > *:last-child,
|
|
40
|
+
.modal__column_6clkv > *:only-child {
|
|
41
41
|
margin-bottom: 0;
|
|
42
|
-
} .
|
|
42
|
+
} .modal__column_6clkv.modal__gap-16_6clkv > * {
|
|
43
43
|
margin-bottom: var(--gap-m);
|
|
44
|
-
} .
|
|
44
|
+
} .modal__column_6clkv.modal__gap-24_6clkv > * {
|
|
45
45
|
margin-bottom: var(--gap-xl);
|
|
46
|
-
} .
|
|
46
|
+
} .modal__column_6clkv.modal__gap-32_6clkv > * {
|
|
47
47
|
margin-bottom: var(--gap-2xl);
|
|
48
|
-
} .
|
|
48
|
+
} .modal__start_6clkv {
|
|
49
49
|
justify-content: flex-start;
|
|
50
|
-
} .
|
|
50
|
+
} .modal__center_6clkv {
|
|
51
51
|
justify-content: center;
|
|
52
|
-
} .modal__space-
|
|
52
|
+
} .modal__space-between_6clkv {
|
|
53
53
|
justify-content: space-between
|
|
54
|
-
} .modal__space-
|
|
54
|
+
} .modal__space-between_6clkv > * {
|
|
55
55
|
flex: 1;
|
|
56
|
-
} .
|
|
57
|
-
.
|
|
58
|
-
.modal__space-
|
|
56
|
+
} .modal__start_6clkv,
|
|
57
|
+
.modal__center_6clkv,
|
|
58
|
+
.modal__space-between_6clkv {
|
|
59
59
|
display: flex
|
|
60
|
-
} .
|
|
60
|
+
} .modal__start_6clkv > *, .modal__center_6clkv > *, .modal__space-between_6clkv > * {
|
|
61
61
|
margin-right: var(--modal-footer-default-gap);
|
|
62
|
-
} .
|
|
63
|
-
.
|
|
64
|
-
.
|
|
65
|
-
.
|
|
66
|
-
.modal__space-
|
|
67
|
-
.modal__space-
|
|
62
|
+
} .modal__start_6clkv > *:last-child,
|
|
63
|
+
.modal__start_6clkv > *:only-child,
|
|
64
|
+
.modal__center_6clkv > *:last-child,
|
|
65
|
+
.modal__center_6clkv > *:only-child,
|
|
66
|
+
.modal__space-between_6clkv > *:last-child,
|
|
67
|
+
.modal__space-between_6clkv > *:only-child {
|
|
68
68
|
margin-right: 0;
|
|
69
|
-
} .
|
|
69
|
+
} .modal__start_6clkv.modal__gap-16_6clkv > *, .modal__center_6clkv.modal__gap-16_6clkv > *, .modal__space-between_6clkv.modal__gap-16_6clkv > * {
|
|
70
70
|
margin-right: var(--gap-m);
|
|
71
|
-
} .
|
|
71
|
+
} .modal__start_6clkv.modal__gap-24_6clkv > *, .modal__center_6clkv.modal__gap-24_6clkv > *, .modal__space-between_6clkv.modal__gap-24_6clkv > * {
|
|
72
72
|
margin-right: var(--gap-xl);
|
|
73
|
-
} .
|
|
73
|
+
} .modal__start_6clkv.modal__gap-32_6clkv > *, .modal__center_6clkv.modal__gap-32_6clkv > *, .modal__space-between_6clkv.modal__gap-32_6clkv > * {
|
|
74
74
|
margin-right: var(--gap-2xl);
|
|
75
75
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: dn9qe */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
/* mobile */
|
|
29
29
|
|
|
30
30
|
/* paddings */
|
|
31
|
-
} .
|
|
31
|
+
} .modal__footer_1o9k2 {
|
|
32
32
|
padding: var(--gap-m);
|
|
33
|
-
} .
|
|
33
|
+
} .modal__sticky_1o9k2 {
|
|
34
34
|
bottom: 0;
|
|
35
35
|
}
|
|
@@ -13,13 +13,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var desktopStyles = {"header":"
|
|
16
|
+
var desktopStyles = {"header":"modal__header_1ye0v","content":"modal__content_1ye0v","s":"modal__s_1ye0v","m":"modal__m_1ye0v","l":"modal__l_1ye0v","xl":"modal__xl_1ye0v","fullscreen":"modal__fullscreen_1ye0v","sticky":"modal__sticky_1ye0v"};
|
|
17
17
|
require('./desktop.css')
|
|
18
18
|
|
|
19
|
-
var styles = {"highlighted":"
|
|
19
|
+
var styles = {"highlighted":"modal__highlighted_m17kg","sticky":"modal__sticky_m17kg","hasContent":"modal__hasContent_m17kg"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
|
-
var mobileStyles = {"header":"
|
|
22
|
+
var mobileStyles = {"header":"modal__header_1r1bk","sticky":"modal__sticky_1r1bk","content":"modal__content_1r1bk"};
|
|
23
23
|
require('./mobile.css')
|
|
24
24
|
|
|
25
25
|
var Header = function (_a) {
|
|
@@ -31,7 +31,7 @@ var Header = function (_a) {
|
|
|
31
31
|
setHasHeader(true);
|
|
32
32
|
}, [setHasHeader]);
|
|
33
33
|
var hasContent = Boolean(title || children);
|
|
34
|
-
return (React__default.default.createElement(coreComponentsNavigationBar.NavigationBar, tslib.__assign({}, restProps, {
|
|
34
|
+
return (React__default.default.createElement(coreComponentsNavigationBar.NavigationBar, tslib.__assign({}, restProps, { scrollableParentRef: parentRef, hasCloser: hasCloser, sticky: sticky, view: view, title: title, onClose: onClose, className: cn__default.default(className, (_b = {},
|
|
35
35
|
_b[styles.highlighted] = hasContent && sticky && headerHighlighted,
|
|
36
36
|
_b[styles.sticky] = sticky,
|
|
37
37
|
_b[styles.hasContent] = hasContent,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ln00 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -44,31 +44,31 @@
|
|
|
44
44
|
/* mobile */
|
|
45
45
|
|
|
46
46
|
/* paddings */
|
|
47
|
-
} .
|
|
47
|
+
} .modal__header_1ye0v {
|
|
48
48
|
border-top-left-radius: var(--modal-border-radius);
|
|
49
49
|
border-top-right-radius: var(--modal-border-radius);
|
|
50
|
-
} .
|
|
50
|
+
} .modal__content_1ye0v {
|
|
51
51
|
font-weight: var(--modal-header-desktop-font-weight);
|
|
52
52
|
font-family: var(--modal-header-desktop-font-family);
|
|
53
|
-
} .
|
|
54
|
-
.
|
|
53
|
+
} .modal__s_1ye0v .modal__content_1ye0v,
|
|
54
|
+
.modal__m_1ye0v .modal__content_1ye0v {
|
|
55
55
|
padding: var(--modal-s-header-desktop-content-paddings);
|
|
56
56
|
font-size: var(--modal-s-header-desktop-font-size);
|
|
57
57
|
line-height: var(--modal-s-header-desktop-line-height);
|
|
58
|
-
} .
|
|
59
|
-
.
|
|
60
|
-
.
|
|
58
|
+
} .modal__l_1ye0v .modal__content_1ye0v,
|
|
59
|
+
.modal__xl_1ye0v .modal__content_1ye0v,
|
|
60
|
+
.modal__fullscreen_1ye0v .modal__content_1ye0v {
|
|
61
61
|
padding: var(--modal-l-header-desktop-content-paddings);
|
|
62
62
|
font-size: var(--modal-l-header-desktop-font-size);
|
|
63
63
|
line-height: var(--modal-l-header-desktop-line-height);
|
|
64
|
-
} .
|
|
65
|
-
.
|
|
66
|
-
.
|
|
67
|
-
.
|
|
68
|
-
.
|
|
64
|
+
} .modal__s_1ye0v,
|
|
65
|
+
.modal__m_1ye0v,
|
|
66
|
+
.modal__l_1ye0v,
|
|
67
|
+
.modal__xl_1ye0v,
|
|
68
|
+
.modal__fullscreen_1ye0v {
|
|
69
69
|
padding: var(--modal-s-header-paddings);
|
|
70
|
-
} .
|
|
70
|
+
} .modal__sticky_1ye0v {
|
|
71
71
|
top: calc(var(--modal-vertical-padding) * -1)
|
|
72
|
-
} .
|
|
72
|
+
} .modal__sticky_1ye0v.modal__fullscreen_1ye0v {
|
|
73
73
|
top: 0;
|
|
74
74
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: td5pl */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
|
|
34
34
|
/* paddings */
|
|
35
|
-
} .
|
|
35
|
+
} .modal__highlighted_m17kg {
|
|
36
36
|
background: var(--modal-header-highlight-background);
|
|
37
37
|
box-shadow: var(--modal-header-highlight-box-shadow);
|
|
38
|
-
} .
|
|
38
|
+
} .modal__sticky_m17kg {
|
|
39
39
|
position: sticky;
|
|
40
40
|
z-index: 1
|
|
41
|
-
} .
|
|
41
|
+
} .modal__sticky_m17kg.modal__hasContent_m17kg {
|
|
42
42
|
background: var(--modal-header-background);
|
|
43
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1w9l7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
|
|
39
39
|
/* paddings */
|
|
40
40
|
--modal-header-mobile-paddings: var(--gap-2xs) var(--gap-xs);
|
|
41
|
-
} .
|
|
41
|
+
} .modal__header_1r1bk {
|
|
42
42
|
padding: var(--modal-header-mobile-paddings);
|
|
43
|
-
} .
|
|
43
|
+
} .modal__sticky_1r1bk {
|
|
44
44
|
top: 0;
|
|
45
|
-
} .
|
|
45
|
+
} .modal__content_1r1bk {
|
|
46
46
|
font-size: var(--modal-header-mobile-font-size);
|
|
47
47
|
line-height: var(--modal-header-mobile-line-height);
|
|
48
48
|
font-family: var(--modal-header-mobile-font-family);
|
|
@@ -28,7 +28,7 @@ var Header = function (_a) {
|
|
|
28
28
|
setHasHeader(true);
|
|
29
29
|
}, [setHasHeader]);
|
|
30
30
|
var hasContent = Boolean(title || children);
|
|
31
|
-
return (React__default.default.createElement(coreComponentsNavigationBar.NavigationBar, tslib.__assign({}, restProps, {
|
|
31
|
+
return (React__default.default.createElement(coreComponentsNavigationBar.NavigationBar, tslib.__assign({}, restProps, { scrollableParentRef: parentRef, hasCloser: hasCloser, sticky: sticky, view: view, title: title, onClose: onClose, className: cn__default.default(className, (_b = {},
|
|
32
32
|
_b[styles__default.default.highlighted] = hasContent && sticky && headerHighlighted,
|
|
33
33
|
_b[styles__default.default.sticky] = sticky,
|
|
34
34
|
_b[styles__default.default.hasContent] = hasContent,
|
package/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: kwv82 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
/* mobile */
|
|
36
36
|
|
|
37
37
|
/* paddings */
|
|
38
|
-
} .
|
|
38
|
+
} .modal__wrapper_1rde5 {
|
|
39
39
|
padding-top: var(--modal-vertical-padding);
|
|
40
40
|
padding-bottom: var(--modal-vertical-padding);
|
|
41
|
-
} .
|
|
41
|
+
} .modal__component_1rde5 {
|
|
42
42
|
width: 100%;
|
|
43
43
|
max-width: 100%;
|
|
44
44
|
border-radius: var(--modal-border-radius);
|
|
45
|
-
} .
|
|
45
|
+
} .modal__fullscreen_1rde5 {
|
|
46
46
|
padding-top: 0;
|
|
47
47
|
padding-bottom: 0
|
|
48
|
-
} .
|
|
48
|
+
} .modal__fullscreen_1rde5 .modal__component_1rde5 {
|
|
49
49
|
flex: 1;
|
|
50
50
|
border-radius: 0;
|
|
51
|
-
} .
|
|
51
|
+
} .modal__s_1rde5 {
|
|
52
52
|
width: var(--modal-s-width);
|
|
53
|
-
} .
|
|
53
|
+
} .modal__m_1rde5 {
|
|
54
54
|
width: var(--modal-m-width);
|
|
55
|
-
} .
|
|
55
|
+
} .modal__l_1rde5 {
|
|
56
56
|
width: var(--modal-l-width);
|
|
57
|
-
} .
|
|
57
|
+
} .modal__xl_1rde5 {
|
|
58
58
|
width: var(--modal-xl-width);
|
|
59
59
|
}
|
package/esm/Component.js
CHANGED
|
@@ -5,13 +5,13 @@ import cn from 'classnames';
|
|
|
5
5
|
import { BaseModal } from '@alfalab/core-components-base-modal/esm';
|
|
6
6
|
import { ResponsiveContext } from './ResponsiveContext.js';
|
|
7
7
|
|
|
8
|
-
var desktopStyles = {"wrapper":"
|
|
8
|
+
var desktopStyles = {"wrapper":"modal__wrapper_1rde5","component":"modal__component_1rde5","fullscreen":"modal__fullscreen_1rde5","s":"modal__s_1rde5","m":"modal__m_1rde5","l":"modal__l_1rde5","xl":"modal__xl_1rde5"};
|
|
9
9
|
require('./desktop.css')
|
|
10
10
|
|
|
11
|
-
var mobileStyles = {"component":"
|
|
11
|
+
var mobileStyles = {"component":"modal__component_kkrie"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
|
-
var transitions = {"appear":"
|
|
14
|
+
var transitions = {"appear":"modal__appear_56p3k","enter":"modal__enter_56p3k","appearActive":"modal__appearActive_56p3k","enterActive":"modal__enterActive_56p3k","exit":"modal__exit_56p3k","exitActive":"modal__exitActive_56p3k","exitDone":"modal__exitDone_56p3k"};
|
|
15
15
|
require('./transitions.css')
|
|
16
16
|
|
|
17
17
|
var Modal = forwardRef(function (_a, ref) {
|
|
@@ -4,13 +4,13 @@ import { ModalContext } from '../../Context.js';
|
|
|
4
4
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
5
5
|
import '@alfalab/core-components-base-modal/esm';
|
|
6
6
|
|
|
7
|
-
var desktopStyles = {"s":"
|
|
7
|
+
var desktopStyles = {"s":"modal__s_wxopp","m":"modal__m_wxopp","l":"modal__l_wxopp","xl":"modal__xl_wxopp","fullscreen":"modal__fullscreen_wxopp"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
|
-
var styles = {"content":"
|
|
10
|
+
var styles = {"content":"modal__content_190e8","withHeader":"modal__withHeader_190e8","flex":"modal__flex_190e8"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
|
-
var mobileStyles = {"content":"
|
|
13
|
+
var mobileStyles = {"content":"modal__content_hiq3c"};
|
|
14
14
|
require('./mobile.css')
|
|
15
15
|
|
|
16
16
|
var Content = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12o9a */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
/* mobile */
|
|
31
31
|
|
|
32
32
|
/* paddings */
|
|
33
|
-
} .
|
|
34
|
-
.
|
|
35
|
-
.
|
|
36
|
-
.
|
|
37
|
-
.
|
|
33
|
+
} .modal__s_wxopp,
|
|
34
|
+
.modal__m_wxopp,
|
|
35
|
+
.modal__l_wxopp,
|
|
36
|
+
.modal__xl_wxopp,
|
|
37
|
+
.modal__fullscreen_wxopp {
|
|
38
38
|
padding: var(--modal-s-content-paddings)
|
|
39
|
-
} .
|
|
39
|
+
} .modal__s_wxopp:last-child, .modal__m_wxopp:last-child, .modal__l_wxopp:last-child, .modal__xl_wxopp:last-child, .modal__fullscreen_wxopp:last-child {
|
|
40
40
|
padding-bottom: var(--modal-s-content-only-bottom-padding);
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: vx7df */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
/* mobile */
|
|
28
28
|
|
|
29
29
|
/* paddings */
|
|
30
|
-
} .
|
|
30
|
+
} .modal__content_190e8 {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
width: 100%
|
|
33
|
-
} .
|
|
33
|
+
} .modal__content_190e8.modal__withHeader_190e8 {
|
|
34
34
|
padding-top: 0;
|
|
35
|
-
} .
|
|
35
|
+
} .modal__flex_190e8 {
|
|
36
36
|
flex: 1;
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1helf */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
/* mobile */
|
|
29
29
|
|
|
30
30
|
/* paddings */
|
|
31
|
-
} .
|
|
31
|
+
} .modal__content_hiq3c {
|
|
32
32
|
padding: var(--gap-m) var(--gap-m) 0
|
|
33
|
-
} .
|
|
33
|
+
} .modal__content_hiq3c:last-child {
|
|
34
34
|
padding-bottom: var(--gap-m);
|
|
35
35
|
}
|
|
@@ -4,16 +4,16 @@ import { ModalContext } from '../../Context.js';
|
|
|
4
4
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
5
5
|
import '@alfalab/core-components-base-modal/esm';
|
|
6
6
|
|
|
7
|
-
var desktopStyles = {"footer":"
|
|
7
|
+
var desktopStyles = {"footer":"modal__footer_1kbnh","sticky":"modal__sticky_1kbnh","fullscreen":"modal__fullscreen_1kbnh","s":"modal__s_1kbnh","m":"modal__m_1kbnh","l":"modal__l_1kbnh","xl":"modal__xl_1kbnh"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
|
-
var styles = {"footer":"
|
|
10
|
+
var styles = {"footer":"modal__footer_15e06","sticky":"modal__sticky_15e06","highlighted":"modal__highlighted_15e06"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
|
-
var layoutStyles = {"column":"
|
|
13
|
+
var layoutStyles = {"column":"modal__column_6clkv","gap-16":"modal__gap-16_6clkv","gap-24":"modal__gap-24_6clkv","gap-32":"modal__gap-32_6clkv","start":"modal__start_6clkv","center":"modal__center_6clkv","space-between":"modal__space-between_6clkv"};
|
|
14
14
|
require('./layout.css')
|
|
15
15
|
|
|
16
|
-
var mobileStyles = {"footer":"
|
|
16
|
+
var mobileStyles = {"footer":"modal__footer_1o9k2","sticky":"modal__sticky_1o9k2"};
|
|
17
17
|
require('./mobile.css')
|
|
18
18
|
|
|
19
19
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1bebp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
/* mobile */
|
|
34
34
|
|
|
35
35
|
/* paddings */
|
|
36
|
-
} .
|
|
36
|
+
} .modal__footer_1kbnh {
|
|
37
37
|
border-bottom-left-radius: var(--modal-border-radius);
|
|
38
38
|
border-bottom-right-radius: var(--modal-border-radius);
|
|
39
|
-
} .
|
|
39
|
+
} .modal__sticky_1kbnh {
|
|
40
40
|
bottom: calc(var(--modal-vertical-padding) * -1)
|
|
41
|
-
} .
|
|
41
|
+
} .modal__sticky_1kbnh.modal__fullscreen_1kbnh {
|
|
42
42
|
bottom: 0;
|
|
43
|
-
} .
|
|
44
|
-
.
|
|
45
|
-
.
|
|
46
|
-
.
|
|
47
|
-
.
|
|
43
|
+
} .modal__s_1kbnh,
|
|
44
|
+
.modal__m_1kbnh,
|
|
45
|
+
.modal__l_1kbnh,
|
|
46
|
+
.modal__xl_1kbnh,
|
|
47
|
+
.modal__fullscreen_1kbnh {
|
|
48
48
|
padding: var(--modal-s-footer-paddings);
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1k7qw */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
/* mobile */
|
|
33
33
|
|
|
34
34
|
/* paddings */
|
|
35
|
-
} .
|
|
35
|
+
} .modal__footer_15e06 {
|
|
36
36
|
width: 100%;
|
|
37
37
|
box-sizing: border-box;
|
|
38
38
|
transition: box-shadow 0.2s ease, background 0.2s ease;
|
|
39
|
-
} .
|
|
39
|
+
} .modal__sticky_15e06 {
|
|
40
40
|
background: var(--modal-footer-background);
|
|
41
41
|
position: sticky;
|
|
42
|
-
} .
|
|
42
|
+
} .modal__highlighted_15e06 {
|
|
43
43
|
background: var(--modal-footer-highlight-background);
|
|
44
44
|
box-shadow: var(--modal-footer-highlight-box-shadow);
|
|
45
45
|
}
|