@elliemae/ds-backdrop 2.0.0-alpha.1 → 2.0.0-alpha.13
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/cjs/Backdrop.js +21 -15
- package/cjs/index.js +1 -1
- package/esm/Backdrop.js +19 -13
- package/package.json +3 -3
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
package/cjs/Backdrop.js
CHANGED
|
@@ -11,21 +11,27 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
12
12
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
13
|
|
|
14
|
-
const BackdropTag = /*#__PURE__*/styled__default[
|
|
14
|
+
const BackdropTag = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
15
15
|
componentId: "sc-hba0s0-0"
|
|
16
|
-
})(["", ";top:0;left:0;width:100%;height:100%;background:black;opacity:0.6;", ""],
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
})(["", ";top:0;left:0;width:100%;height:100%;background:black;opacity:0.6;", ""], _ref => {
|
|
17
|
+
let {
|
|
18
|
+
type
|
|
19
|
+
} = _ref;
|
|
20
|
+
return type === 'cover' ? 'position: fixed' : 'position: absolute';
|
|
21
|
+
}, props => props.zIndex ? "z-index: ".concat(props.zIndex, ";") : '');
|
|
22
|
+
const DSBackdrop = _ref2 => {
|
|
23
|
+
let {
|
|
24
|
+
type = 'cover',
|
|
25
|
+
zIndex,
|
|
26
|
+
onClick = () => null
|
|
27
|
+
} = _ref2;
|
|
28
|
+
return /*#__PURE__*/_jsx__default["default"](BackdropTag, {
|
|
29
|
+
zIndex: zIndex,
|
|
30
|
+
type: type,
|
|
31
|
+
onClick: onClick,
|
|
32
|
+
"data-testid": "ds-backdrop"
|
|
33
|
+
});
|
|
34
|
+
};
|
|
29
35
|
|
|
30
36
|
exports.DSBackdrop = DSBackdrop;
|
|
31
|
-
exports[
|
|
37
|
+
exports["default"] = DSBackdrop;
|
package/cjs/index.js
CHANGED
package/esm/Backdrop.js
CHANGED
|
@@ -4,18 +4,24 @@ import styled from 'styled-components';
|
|
|
4
4
|
|
|
5
5
|
const BackdropTag = /*#__PURE__*/styled.div.withConfig({
|
|
6
6
|
componentId: "sc-hba0s0-0"
|
|
7
|
-
})(["", ";top:0;left:0;width:100%;height:100%;background:black;opacity:0.6;", ""],
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
})(["", ";top:0;left:0;width:100%;height:100%;background:black;opacity:0.6;", ""], _ref => {
|
|
8
|
+
let {
|
|
9
|
+
type
|
|
10
|
+
} = _ref;
|
|
11
|
+
return type === 'cover' ? 'position: fixed' : 'position: absolute';
|
|
12
|
+
}, props => props.zIndex ? "z-index: ".concat(props.zIndex, ";") : '');
|
|
13
|
+
const DSBackdrop = _ref2 => {
|
|
14
|
+
let {
|
|
15
|
+
type = 'cover',
|
|
16
|
+
zIndex,
|
|
17
|
+
onClick = () => null
|
|
18
|
+
} = _ref2;
|
|
19
|
+
return /*#__PURE__*/_jsx(BackdropTag, {
|
|
20
|
+
zIndex: zIndex,
|
|
21
|
+
type: type,
|
|
22
|
+
onClick: onClick,
|
|
23
|
+
"data-testid": "ds-backdrop"
|
|
24
|
+
});
|
|
25
|
+
};
|
|
20
26
|
|
|
21
27
|
export { DSBackdrop, DSBackdrop as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-backdrop",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Backdrop",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"prop-types": "~15.7.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"styled-components": "~5.3.
|
|
42
|
+
"styled-components": "~5.3.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^17.0.2",
|
|
46
46
|
"react-dom": "^17.0.2",
|
|
47
|
-
"styled-components": "^5.3.
|
|
47
|
+
"styled-components": "^5.3.3"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public",
|
package/cjs/package.json
DELETED