@alfalab/core-components-modal 6.1.11 → 6.1.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.desktop.js +2 -2
- package/Component.js +9 -9
- package/Component.mobile.js +2 -2
- package/Component.responsive.js +3 -3
- package/components/closer/Component.js +4 -4
- package/components/closer/index.css +4 -4
- package/components/content/Component.js +3 -3
- 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 +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 +17 -17
- package/components/header/index.css +15 -15
- package/components/header/mobile.css +3 -3
- package/cssm/Component.desktop.js +2 -2
- package/cssm/Component.js +6 -6
- package/cssm/Component.mobile.js +2 -2
- package/cssm/Component.responsive.js +3 -3
- package/cssm/components/closer/Component.js +3 -3
- package/cssm/components/header/Component.js +1 -1
- package/cssm/desktop.js +1 -1
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/responsive.js +1 -1
- package/desktop.css +9 -9
- package/desktop.js +1 -1
- package/esm/Component.desktop.js +1 -1
- package/esm/Component.js +4 -4
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.responsive.js +1 -1
- package/esm/components/closer/Component.js +2 -2
- package/esm/components/closer/index.css +4 -4
- package/esm/components/content/Component.js +3 -3
- 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 +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 +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 +1 -1
- package/esm/index.js +1 -1
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +1 -1
- package/esm/responsive.js +1 -1
- package/esm/transitions.css +8 -8
- package/index.js +1 -1
- package/mobile.css +2 -2
- package/mobile.js +1 -1
- package/modern/Component.js +3 -3
- package/modern/components/closer/Component.js +1 -1
- package/modern/components/closer/index.css +4 -4
- package/modern/components/content/Component.js +3 -3
- 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 +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 +3 -3
- 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/mobile.css +2 -2
- package/modern/transitions.css +8 -8
- package/package.json +7 -6
- package/responsive.js +1 -1
- package/transitions.css +8 -8
- package/cssm/tslib.es6-bbd6cd2a.d.ts +0 -36
- package/cssm/tslib.es6-bbd6cd2a.js +0 -42
- package/esm/tslib.es6-e8bed2ca.d.ts +0 -36
- package/esm/tslib.es6-e8bed2ca.js +0 -40
- package/tslib.es6-190a7f3a.d.ts +0 -36
- package/tslib.es6-190a7f3a.js +0 -42
package/Component.desktop.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var components_closer_Component = require('./components/closer/Component.js');
|
|
6
6
|
var components_content_Component = require('./components/content/Component.js');
|
|
@@ -20,7 +20,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
22
22
|
|
|
23
|
-
var ModalDesktopComponent = React.forwardRef(function (props, ref) { return (React__default.default.createElement(Component.Modal,
|
|
23
|
+
var ModalDesktopComponent = React.forwardRef(function (props, ref) { return (React__default.default.createElement(Component.Modal, tslib.__assign({}, props, { ref: ref, view: 'desktop' }))); });
|
|
24
24
|
var ModalDesktop = Object.assign(ModalDesktopComponent, {
|
|
25
25
|
Content: components_content_Component.Content,
|
|
26
26
|
Header: components_header_Component.Header,
|
package/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var mergeRefs = require('react-merge-refs');
|
|
6
6
|
var cn = require('classnames');
|
|
@@ -13,18 +13,18 @@ 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_1qc7d","component":"modal__component_1qc7d","fullscreen":"modal__fullscreen_1qc7d","s":"modal__s_1qc7d","m":"modal__m_1qc7d","l":"modal__l_1qc7d","xl":"modal__xl_1qc7d"};
|
|
17
17
|
require('./desktop.css')
|
|
18
18
|
|
|
19
|
-
var mobileStyles = {"component":"
|
|
19
|
+
var mobileStyles = {"component":"modal__component_1ouph"};
|
|
20
20
|
require('./mobile.css')
|
|
21
21
|
|
|
22
|
-
var transitions = {"appear":"
|
|
22
|
+
var transitions = {"appear":"modal__appear_19gn2","enter":"modal__enter_19gn2","appearActive":"modal__appearActive_19gn2","enterActive":"modal__enterActive_19gn2","exit":"modal__exit_19gn2","exitActive":"modal__exitActive_19gn2","exitDone":"modal__exitDone_19gn2"};
|
|
23
23
|
require('./transitions.css')
|
|
24
24
|
|
|
25
25
|
var Modal = React.forwardRef(function (_a, ref) {
|
|
26
26
|
var _b;
|
|
27
|
-
var _c = _a.size, size = _c === void 0 ? 's' : _c, fixedPosition = _a.fixedPosition, fullscreen = _a.fullscreen, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _d = _a.transitionProps, transitionProps = _d === void 0 ? {} : _d, view = _a.view, restProps =
|
|
27
|
+
var _c = _a.size, size = _c === void 0 ? 's' : _c, fixedPosition = _a.fixedPosition, fullscreen = _a.fullscreen, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _d = _a.transitionProps, transitionProps = _d === void 0 ? {} : _d, view = _a.view, restProps = tslib.__rest(_a, ["size", "fixedPosition", "fullscreen", "children", "className", "wrapperClassName", "transitionProps", "view"]);
|
|
28
28
|
// TODO: удалить, после удаления пропсы fullscreen
|
|
29
29
|
var componentSize = fullscreen ? 'fullscreen' : size;
|
|
30
30
|
var modalRef = React.useRef(null);
|
|
@@ -47,17 +47,17 @@ var Modal = React.forwardRef(function (_a, ref) {
|
|
|
47
47
|
_b[desktopStyles.fullscreen] = componentSize === 'fullscreen',
|
|
48
48
|
_b)),
|
|
49
49
|
className: cn__default.default(desktopStyles.component, className, desktopStyles[componentSize]),
|
|
50
|
-
backdropProps:
|
|
51
|
-
transitionProps:
|
|
50
|
+
backdropProps: tslib.__assign({ invisible: componentSize === 'fullscreen' }, restProps.backdropProps),
|
|
51
|
+
transitionProps: tslib.__assign(tslib.__assign({ classNames: transitions }, transitionProps), { onEntered: handleEntered }),
|
|
52
52
|
}
|
|
53
53
|
: {
|
|
54
54
|
ref: ref,
|
|
55
|
-
transitionProps:
|
|
55
|
+
transitionProps: tslib.__assign({ classNames: transitions }, transitionProps),
|
|
56
56
|
className: cn__default.default(className, mobileStyles.component),
|
|
57
57
|
};
|
|
58
58
|
var contextValue = React.useMemo(function () { return ({ size: componentSize, view: view }); }, [componentSize, view]);
|
|
59
59
|
return (React__default.default.createElement(ResponsiveContext.ResponsiveContext.Provider, { value: contextValue },
|
|
60
|
-
React__default.default.createElement(coreComponentsBaseModal.BaseModal,
|
|
60
|
+
React__default.default.createElement(coreComponentsBaseModal.BaseModal, tslib.__assign({}, restProps, baseModalProps), children)));
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
exports.Modal = Modal;
|
package/Component.mobile.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var components_closer_Component = require('./components/closer/Component.js');
|
|
6
6
|
var components_content_Component = require('./components/content/Component.js');
|
|
@@ -20,7 +20,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
22
22
|
|
|
23
|
-
var ModalMobileComponent = React.forwardRef(function (props, ref) { return (React__default.default.createElement(Component.Modal,
|
|
23
|
+
var ModalMobileComponent = React.forwardRef(function (props, ref) { return (React__default.default.createElement(Component.Modal, tslib.__assign({}, props, { ref: ref, view: 'mobile' }))); });
|
|
24
24
|
var ModalMobile = Object.assign(ModalMobileComponent, {
|
|
25
25
|
Content: components_content_Component.Content,
|
|
26
26
|
Header: components_header_Component.Header,
|
package/Component.responsive.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var hooks = require('@alfalab/hooks');
|
|
6
6
|
var components_closer_Component = require('./components/closer/Component.js');
|
|
@@ -22,12 +22,12 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
23
23
|
|
|
24
24
|
var ModalResponsiveComponent = React.forwardRef(function (_a, ref) {
|
|
25
|
-
var children = _a.children, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps =
|
|
25
|
+
var children = _a.children, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["children", "breakpoint"]);
|
|
26
26
|
var view = hooks.useMedia([
|
|
27
27
|
['mobile', "(max-width: ".concat(breakpoint - 1, "px)")],
|
|
28
28
|
['desktop', "(min-width: ".concat(breakpoint, "px)")],
|
|
29
29
|
], 'desktop')[0];
|
|
30
|
-
return (React__default.default.createElement(Component.Modal,
|
|
30
|
+
return (React__default.default.createElement(Component.Modal, tslib.__assign({ ref: ref }, restProps, { view: view }), children));
|
|
31
31
|
});
|
|
32
32
|
var ModalResponsive = Object.assign(ModalResponsiveComponent, {
|
|
33
33
|
Header: components_header_Component.Header,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
|
|
@@ -13,7 +13,7 @@ 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 styles = {"closer":"
|
|
16
|
+
var styles = {"closer":"modal__closer_554js","button":"modal__button_554js","sticky":"modal__sticky_554js"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -21,7 +21,7 @@ require('./index.css')
|
|
|
21
21
|
*/
|
|
22
22
|
var Closer = function (_a) {
|
|
23
23
|
var _b;
|
|
24
|
-
var className = _a.className, _c = _a.size, size = _c === void 0 ? 's' : _c, sticky = _a.sticky, _d = _a.icon, icon = _d === void 0 ? CrossHeavyMIcon.CrossHeavyMIcon : _d, dataTestId = _a.dataTestId, restProps =
|
|
24
|
+
var className = _a.className, _c = _a.size, size = _c === void 0 ? 's' : _c, sticky = _a.sticky, _d = _a.icon, icon = _d === void 0 ? CrossHeavyMIcon.CrossHeavyMIcon : _d, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["className", "size", "sticky", "icon", "dataTestId"]);
|
|
25
25
|
var onClose = React.useContext(Context.ModalContext).onClose;
|
|
26
26
|
var handleClick = React.useCallback(function (event) {
|
|
27
27
|
onClose(event, 'closerClick');
|
|
@@ -29,7 +29,7 @@ var Closer = function (_a) {
|
|
|
29
29
|
return (React__default.default.createElement("div", { className: cn__default.default(styles.closer, className, (_b = {},
|
|
30
30
|
_b[styles.sticky] = sticky,
|
|
31
31
|
_b)) },
|
|
32
|
-
React__default.default.createElement(coreComponentsIconButton.IconButton,
|
|
32
|
+
React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({ size: size, className: styles.button, "aria-label": '\u0437\u0430\u043A\u0440\u044B\u0442\u044C', onClick: handleClick, icon: icon, dataTestId: dataTestId }, restProps))));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
exports.Closer = Closer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b13p */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
/* mobile */
|
|
31
31
|
} :root {
|
|
32
32
|
--modal-closer-bg-color: var(--color-light-bg-primary-alpha-40);
|
|
33
|
-
} .
|
|
33
|
+
} .modal__closer_554js {
|
|
34
34
|
flex-shrink: 0;
|
|
35
35
|
width: 48px;
|
|
36
36
|
height: 48px;
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
display: flex;
|
|
39
39
|
align-items: center;
|
|
40
40
|
justify-content: center;
|
|
41
|
-
} .
|
|
41
|
+
} .modal__button_554js {
|
|
42
42
|
background: var(--modal-closer-bg-color);
|
|
43
43
|
-webkit-backdrop-filter: blur(10px);
|
|
44
44
|
backdrop-filter: blur(10px);
|
|
45
45
|
border-radius: 50px;
|
|
46
|
-
} .
|
|
46
|
+
} .modal__sticky_554js {
|
|
47
47
|
position: sticky;
|
|
48
48
|
top: calc(var(--modal-vertical-padding) * -1);
|
|
49
49
|
}
|
|
@@ -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_1rous","m":"modal__m_1rous","l":"modal__l_1rous","xl":"modal__xl_1rous","fullscreen":"modal__fullscreen_1rous"};
|
|
15
15
|
require('./desktop.css')
|
|
16
16
|
|
|
17
|
-
var styles = {"content":"
|
|
17
|
+
var styles = {"content":"modal__content_4qg8n","flex":"modal__flex_4qg8n"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
|
-
var mobileStyles = {"content":"
|
|
20
|
+
var mobileStyles = {"content":"modal__content_1ia6o"};
|
|
21
21
|
require('./mobile.css')
|
|
22
22
|
|
|
23
23
|
var Content = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3fjyg */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
/* desktop */
|
|
29
29
|
|
|
30
30
|
/* mobile */
|
|
31
|
-
} .
|
|
32
|
-
.
|
|
31
|
+
} .modal__s_1rous,
|
|
32
|
+
.modal__m_1rous {
|
|
33
33
|
padding: var(--modal-s-content-paddings)
|
|
34
|
-
} .
|
|
34
|
+
} .modal__s_1rous:last-child, .modal__m_1rous:last-child {
|
|
35
35
|
padding-bottom: var(--modal-s-content-only-bottom-padding);
|
|
36
|
-
} .
|
|
37
|
-
.
|
|
38
|
-
.
|
|
36
|
+
} .modal__l_1rous,
|
|
37
|
+
.modal__xl_1rous,
|
|
38
|
+
.modal__fullscreen_1rous {
|
|
39
39
|
padding: 0 var(--gap-6xl)
|
|
40
|
-
} .
|
|
40
|
+
} .modal__l_1rous:last-child, .modal__xl_1rous:last-child, .modal__fullscreen_1rous:last-child {
|
|
41
41
|
padding-bottom: var(--gap-6xl);
|
|
42
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8dl35 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
/* desktop */
|
|
26
26
|
|
|
27
27
|
/* mobile */
|
|
28
|
-
} .
|
|
28
|
+
} .modal__content_4qg8n {
|
|
29
29
|
box-sizing: border-box;
|
|
30
30
|
width: 100%;
|
|
31
|
-
} .
|
|
31
|
+
} .modal__flex_4qg8n {
|
|
32
32
|
flex: 1;
|
|
33
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: uxhv9 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
/* desktop */
|
|
27
27
|
|
|
28
28
|
/* mobile */
|
|
29
|
-
} .
|
|
29
|
+
} .modal__content_1ia6o {
|
|
30
30
|
padding: 0 var(--gap-m)
|
|
31
|
-
} .
|
|
31
|
+
} .modal__content_1ia6o:last-child {
|
|
32
32
|
padding-bottom: var(--gap-m);
|
|
33
33
|
}
|
|
@@ -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_1sboe","sticky":"modal__sticky_1sboe","fullscreen":"modal__fullscreen_1sboe","s":"modal__s_1sboe","m":"modal__m_1sboe","l":"modal__l_1sboe","xl":"modal__xl_1sboe"};
|
|
15
15
|
require('./desktop.css')
|
|
16
16
|
|
|
17
|
-
var styles = {"footer":"
|
|
17
|
+
var styles = {"footer":"modal__footer_1de14","sticky":"modal__sticky_1de14","highlighted":"modal__highlighted_1de14"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
|
-
var layoutStyles = {"column":"
|
|
20
|
+
var layoutStyles = {"column":"modal__column_ecmie","gap-16":"modal__gap-16_ecmie","gap-24":"modal__gap-24_ecmie","gap-32":"modal__gap-32_ecmie","start":"modal__start_ecmie","center":"modal__center_ecmie","space-between":"modal__space-between_ecmie"};
|
|
21
21
|
require('./layout.css')
|
|
22
22
|
|
|
23
|
-
var mobileStyles = {"footer":"
|
|
23
|
+
var mobileStyles = {"footer":"modal__footer_1paqu","sticky":"modal__sticky_1paqu"};
|
|
24
24
|
require('./mobile.css')
|
|
25
25
|
|
|
26
26
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: e7e26 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
/* desktop */
|
|
34
34
|
|
|
35
35
|
/* mobile */
|
|
36
|
-
} .
|
|
36
|
+
} .modal__footer_1sboe {
|
|
37
37
|
border-bottom-left-radius: var(--modal-border-radius);
|
|
38
38
|
border-bottom-right-radius: var(--modal-border-radius);
|
|
39
|
-
} .
|
|
39
|
+
} .modal__sticky_1sboe {
|
|
40
40
|
bottom: calc(var(--modal-vertical-padding) * -1)
|
|
41
|
-
} .
|
|
41
|
+
} .modal__sticky_1sboe.modal__fullscreen_1sboe {
|
|
42
42
|
bottom: 0;
|
|
43
|
-
} .
|
|
44
|
-
.
|
|
43
|
+
} .modal__s_1sboe,
|
|
44
|
+
.modal__m_1sboe {
|
|
45
45
|
padding: var(--modal-s-footer-paddings);
|
|
46
|
-
} .
|
|
47
|
-
.
|
|
48
|
-
.
|
|
46
|
+
} .modal__l_1sboe,
|
|
47
|
+
.modal__xl_1sboe,
|
|
48
|
+
.modal__fullscreen_1sboe {
|
|
49
49
|
padding: var(--gap-2xl) var(--gap-6xl) var(--gap-6xl);
|
|
50
50
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 6ef5k */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
/* desktop */
|
|
31
31
|
|
|
32
32
|
/* mobile */
|
|
33
|
-
} .
|
|
33
|
+
} .modal__footer_1de14 {
|
|
34
34
|
width: 100%;
|
|
35
35
|
box-sizing: border-box;
|
|
36
36
|
transition: box-shadow 0.2s ease, background 0.2s ease;
|
|
37
|
-
} .
|
|
37
|
+
} .modal__sticky_1de14 {
|
|
38
38
|
background: var(--modal-footer-background);
|
|
39
39
|
position: sticky;
|
|
40
|
-
} .
|
|
40
|
+
} .modal__highlighted_1de14 {
|
|
41
41
|
background: var(--modal-footer-highlight-background);
|
|
42
42
|
box-shadow: var(--modal-footer-highlight-box-shadow);
|
|
43
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19r38 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -29,45 +29,45 @@
|
|
|
29
29
|
/* desktop */
|
|
30
30
|
|
|
31
31
|
/* mobile */
|
|
32
|
-
} .
|
|
32
|
+
} .modal__column_ecmie {
|
|
33
33
|
display: flex;
|
|
34
34
|
flex-direction: column
|
|
35
|
-
} .
|
|
35
|
+
} .modal__column_ecmie > * {
|
|
36
36
|
margin-bottom: var(--modal-footer-default-gap);
|
|
37
|
-
} .
|
|
38
|
-
.
|
|
37
|
+
} .modal__column_ecmie > *:last-child,
|
|
38
|
+
.modal__column_ecmie > *:only-child {
|
|
39
39
|
margin-bottom: 0;
|
|
40
|
-
} .
|
|
40
|
+
} .modal__column_ecmie.modal__gap-16_ecmie > * {
|
|
41
41
|
margin-bottom: var(--gap-m);
|
|
42
|
-
} .
|
|
42
|
+
} .modal__column_ecmie.modal__gap-24_ecmie > * {
|
|
43
43
|
margin-bottom: var(--gap-xl);
|
|
44
|
-
} .
|
|
44
|
+
} .modal__column_ecmie.modal__gap-32_ecmie > * {
|
|
45
45
|
margin-bottom: var(--gap-2xl);
|
|
46
|
-
} .
|
|
46
|
+
} .modal__start_ecmie {
|
|
47
47
|
justify-content: flex-start;
|
|
48
|
-
} .
|
|
48
|
+
} .modal__center_ecmie {
|
|
49
49
|
justify-content: center;
|
|
50
|
-
} .modal__space-
|
|
50
|
+
} .modal__space-between_ecmie {
|
|
51
51
|
justify-content: space-between
|
|
52
|
-
} .modal__space-
|
|
52
|
+
} .modal__space-between_ecmie > * {
|
|
53
53
|
flex: 1;
|
|
54
|
-
} .
|
|
55
|
-
.
|
|
56
|
-
.modal__space-
|
|
54
|
+
} .modal__start_ecmie,
|
|
55
|
+
.modal__center_ecmie,
|
|
56
|
+
.modal__space-between_ecmie {
|
|
57
57
|
display: flex
|
|
58
|
-
} .
|
|
58
|
+
} .modal__start_ecmie > *, .modal__center_ecmie > *, .modal__space-between_ecmie > * {
|
|
59
59
|
margin-right: var(--modal-footer-default-gap);
|
|
60
|
-
} .
|
|
61
|
-
.
|
|
62
|
-
.
|
|
63
|
-
.
|
|
64
|
-
.modal__space-
|
|
65
|
-
.modal__space-
|
|
60
|
+
} .modal__start_ecmie > *:last-child,
|
|
61
|
+
.modal__start_ecmie > *:only-child,
|
|
62
|
+
.modal__center_ecmie > *:last-child,
|
|
63
|
+
.modal__center_ecmie > *:only-child,
|
|
64
|
+
.modal__space-between_ecmie > *:last-child,
|
|
65
|
+
.modal__space-between_ecmie > *:only-child {
|
|
66
66
|
margin-right: 0;
|
|
67
|
-
} .
|
|
67
|
+
} .modal__start_ecmie.modal__gap-16_ecmie > *, .modal__center_ecmie.modal__gap-16_ecmie > *, .modal__space-between_ecmie.modal__gap-16_ecmie > * {
|
|
68
68
|
margin-right: var(--gap-m);
|
|
69
|
-
} .
|
|
69
|
+
} .modal__start_ecmie.modal__gap-24_ecmie > *, .modal__center_ecmie.modal__gap-24_ecmie > *, .modal__space-between_ecmie.modal__gap-24_ecmie > * {
|
|
70
70
|
margin-right: var(--gap-xl);
|
|
71
|
-
} .
|
|
71
|
+
} .modal__start_ecmie.modal__gap-32_ecmie > *, .modal__center_ecmie.modal__gap-32_ecmie > *, .modal__space-between_ecmie.modal__gap-32_ecmie > * {
|
|
72
72
|
margin-right: var(--gap-2xl);
|
|
73
73
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1t8zi */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
/* desktop */
|
|
27
27
|
|
|
28
28
|
/* mobile */
|
|
29
|
-
} .
|
|
29
|
+
} .modal__footer_1paqu {
|
|
30
30
|
padding: var(--gap-m);
|
|
31
|
-
} .
|
|
31
|
+
} .modal__sticky_1paqu {
|
|
32
32
|
bottom: 0;
|
|
33
33
|
}
|
|
@@ -7,7 +7,7 @@ var Context = require('../../Context.js');
|
|
|
7
7
|
var ResponsiveContext = require('../../ResponsiveContext.js');
|
|
8
8
|
var components_closer_Component = require('../closer/Component.js');
|
|
9
9
|
require('@alfalab/core-components-base-modal');
|
|
10
|
-
require('
|
|
10
|
+
require('tslib');
|
|
11
11
|
require('@alfalab/core-components-icon-button');
|
|
12
12
|
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
13
13
|
|
|
@@ -21,13 +21,13 @@ var getDataTestId = function (dataTestId, element) {
|
|
|
21
21
|
return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
var desktopStyles = {"header":"
|
|
24
|
+
var desktopStyles = {"header":"modal__header_1sbjx","content":"modal__content_1sbjx","s":"modal__s_1sbjx","m":"modal__m_1sbjx","l":"modal__l_1sbjx","xl":"modal__xl_1sbjx","fullscreen":"modal__fullscreen_1sbjx","hasContent":"modal__hasContent_1sbjx","sticky":"modal__sticky_1sbjx"};
|
|
25
25
|
require('./desktop.css')
|
|
26
26
|
|
|
27
|
-
var styles = {"header":"
|
|
27
|
+
var styles = {"header":"modal__header_fyqm8","hasContent":"modal__hasContent_fyqm8","highlighted":"modal__highlighted_fyqm8","sticky":"modal__sticky_fyqm8","content":"modal__content_fyqm8","title":"modal__title_fyqm8","addon":"modal__addon_fyqm8","closer":"modal__closer_fyqm8","left":"modal__left_fyqm8","center":"modal__center_fyqm8","right":"modal__right_fyqm8","trim":"modal__trim_fyqm8"};
|
|
28
28
|
require('./index.css')
|
|
29
29
|
|
|
30
|
-
var mobileStyles = {"sticky":"
|
|
30
|
+
var mobileStyles = {"sticky":"modal__sticky_1tlb4","content":"modal__content_1tlb4"};
|
|
31
31
|
require('./mobile.css')
|
|
32
32
|
|
|
33
33
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nv248 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -43,36 +43,36 @@
|
|
|
43
43
|
--modal-header-desktop-font-family: var(--font-family-system);
|
|
44
44
|
|
|
45
45
|
/* mobile */
|
|
46
|
-
} .
|
|
46
|
+
} .modal__header_1sbjx {
|
|
47
47
|
border-top-left-radius: var(--modal-border-radius);
|
|
48
48
|
border-top-right-radius: var(--modal-border-radius);
|
|
49
|
-
} .
|
|
49
|
+
} .modal__content_1sbjx {
|
|
50
50
|
font-weight: var(--modal-header-desktop-font-weight);
|
|
51
51
|
font-family: var(--modal-header-desktop-font-family);
|
|
52
|
-
} .
|
|
53
|
-
.
|
|
52
|
+
} .modal__s_1sbjx .modal__content_1sbjx,
|
|
53
|
+
.modal__m_1sbjx .modal__content_1sbjx {
|
|
54
54
|
padding: var(--modal-s-header-desktop-content-paddings);
|
|
55
55
|
font-size: var(--modal-s-header-desktop-font-size);
|
|
56
56
|
line-height: var(--modal-s-header-desktop-line-height);
|
|
57
|
-
} .
|
|
58
|
-
.
|
|
59
|
-
.
|
|
57
|
+
} .modal__l_1sbjx .modal__content_1sbjx,
|
|
58
|
+
.modal__xl_1sbjx .modal__content_1sbjx,
|
|
59
|
+
.modal__fullscreen_1sbjx .modal__content_1sbjx {
|
|
60
60
|
padding: var(--modal-l-header-desktop-content-paddings);
|
|
61
61
|
font-size: var(--modal-l-header-desktop-font-size);
|
|
62
62
|
line-height: var(--modal-l-header-desktop-line-height);
|
|
63
|
-
} .
|
|
64
|
-
.
|
|
63
|
+
} .modal__s_1sbjx,
|
|
64
|
+
.modal__m_1sbjx {
|
|
65
65
|
padding: var(--modal-s-header-paddings)
|
|
66
|
-
} .
|
|
66
|
+
} .modal__s_1sbjx:not(.modal__hasContent_1sbjx), .modal__m_1sbjx:not(.modal__hasContent_1sbjx) {
|
|
67
67
|
padding-bottom: 0;
|
|
68
|
-
} .
|
|
69
|
-
.
|
|
70
|
-
.
|
|
68
|
+
} .modal__l_1sbjx,
|
|
69
|
+
.modal__xl_1sbjx,
|
|
70
|
+
.modal__fullscreen_1sbjx {
|
|
71
71
|
padding: var(--gap-xl) var(--gap-xl) var(--gap-m)
|
|
72
|
-
} .
|
|
72
|
+
} .modal__l_1sbjx:not(.modal__hasContent_1sbjx), .modal__xl_1sbjx:not(.modal__hasContent_1sbjx), .modal__fullscreen_1sbjx:not(.modal__hasContent_1sbjx) {
|
|
73
73
|
padding-bottom: var(--gap-m);
|
|
74
|
-
} .
|
|
74
|
+
} .modal__sticky_1sbjx {
|
|
75
75
|
top: calc(var(--modal-vertical-padding) * -1)
|
|
76
|
-
} .
|
|
76
|
+
} .modal__sticky_1sbjx.modal__fullscreen_1sbjx {
|
|
77
77
|
top: 0;
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wor7n */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -29,48 +29,48 @@
|
|
|
29
29
|
/* desktop */
|
|
30
30
|
|
|
31
31
|
/* mobile */
|
|
32
|
-
} .
|
|
32
|
+
} .modal__header_fyqm8 {
|
|
33
33
|
width: 100%;
|
|
34
34
|
box-sizing: border-box;
|
|
35
35
|
display: flex;
|
|
36
36
|
align-items: stretch;
|
|
37
37
|
justify-content: space-between;
|
|
38
38
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
39
|
-
} .
|
|
39
|
+
} .modal__header_fyqm8:not(.modal__hasContent_fyqm8) {
|
|
40
40
|
pointer-events: none;
|
|
41
|
-
} .
|
|
41
|
+
} .modal__highlighted_fyqm8 {
|
|
42
42
|
background: var(--modal-header-highlight-background);
|
|
43
43
|
box-shadow: var(--modal-header-highlight-box-shadow);
|
|
44
|
-
} .
|
|
44
|
+
} .modal__sticky_fyqm8 {
|
|
45
45
|
position: sticky;
|
|
46
46
|
z-index: 1
|
|
47
|
-
} .
|
|
47
|
+
} .modal__sticky_fyqm8.modal__hasContent_fyqm8 {
|
|
48
48
|
background: var(--modal-header-background);
|
|
49
|
-
} .
|
|
49
|
+
} .modal__content_fyqm8 {
|
|
50
50
|
flex-grow: 1;
|
|
51
|
-
} .
|
|
51
|
+
} .modal__title_fyqm8 {
|
|
52
52
|
word-break: break-word;
|
|
53
|
-
} .
|
|
53
|
+
} .modal__addon_fyqm8 {
|
|
54
54
|
min-width: 48px;
|
|
55
55
|
height: 48px;
|
|
56
56
|
display: flex;
|
|
57
57
|
justify-content: center;
|
|
58
58
|
align-items: center;
|
|
59
59
|
pointer-events: all;
|
|
60
|
-
} .
|
|
60
|
+
} .modal__closer_fyqm8 {
|
|
61
61
|
margin-left: auto;
|
|
62
|
-
} .
|
|
62
|
+
} .modal__left_fyqm8 {
|
|
63
63
|
justify-content: flex-start;
|
|
64
64
|
text-align: left;
|
|
65
|
-
} .
|
|
65
|
+
} .modal__center_fyqm8 {
|
|
66
66
|
justify-content: center;
|
|
67
67
|
text-align: center;
|
|
68
|
-
} .
|
|
68
|
+
} .modal__right_fyqm8 {
|
|
69
69
|
justify-content: flex-end;
|
|
70
70
|
text-align: right;
|
|
71
|
-
} .
|
|
71
|
+
} .modal__trim_fyqm8 {
|
|
72
72
|
overflow: hidden
|
|
73
|
-
} .
|
|
73
|
+
} .modal__trim_fyqm8 .modal__title_fyqm8 {
|
|
74
74
|
overflow: hidden;
|
|
75
75
|
white-space: nowrap;
|
|
76
76
|
text-overflow: ellipsis;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9tx7t */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
--modal-header-mobile-line-height: 24px;
|
|
36
36
|
--modal-header-mobile-font-family: var(--font-family-system);
|
|
37
37
|
--modal-header-mobile-font-weight: bold;
|
|
38
|
-
} .
|
|
38
|
+
} .modal__sticky_1tlb4 {
|
|
39
39
|
top: 0;
|
|
40
|
-
} .
|
|
40
|
+
} .modal__content_1tlb4 {
|
|
41
41
|
font-size: var(--modal-header-mobile-font-size);
|
|
42
42
|
line-height: var(--modal-header-mobile-line-height);
|
|
43
43
|
font-family: var(--modal-header-mobile-font-family);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var components_closer_Component = require('./components/closer/Component.js');
|
|
6
6
|
var components_content_Component = require('./components/content/Component.js');
|
|
@@ -34,7 +34,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
34
34
|
|
|
35
35
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
36
36
|
|
|
37
|
-
var ModalDesktopComponent = React.forwardRef(function (props, ref) { return (React__default.default.createElement(Component.Modal,
|
|
37
|
+
var ModalDesktopComponent = React.forwardRef(function (props, ref) { return (React__default.default.createElement(Component.Modal, tslib.__assign({}, props, { ref: ref, view: 'desktop' }))); });
|
|
38
38
|
var ModalDesktop = Object.assign(ModalDesktopComponent, {
|
|
39
39
|
Content: components_content_Component.Content,
|
|
40
40
|
Header: components_header_Component.Header,
|