@elliemae/ds-backdrop 2.0.0-next.7 → 2.0.0-rc.10

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 CHANGED
@@ -13,19 +13,25 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
13
13
 
14
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
- type
18
- }) => type === 'cover' ? 'position: fixed' : 'position: absolute', props => props.zIndex ? "z-index: ".concat(props.zIndex, ";") : '');
19
- const DSBackdrop = ({
20
- type = 'cover',
21
- zIndex,
22
- onClick = () => null
23
- }) => /*#__PURE__*/_jsx__default["default"](BackdropTag, {
24
- zIndex: zIndex,
25
- type: type,
26
- onClick: onClick,
27
- "data-testid": "ds-backdrop"
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
37
  exports["default"] = DSBackdrop;
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
- type
9
- }) => type === 'cover' ? 'position: fixed' : 'position: absolute', props => props.zIndex ? "z-index: ".concat(props.zIndex, ";") : '');
10
- const DSBackdrop = ({
11
- type = 'cover',
12
- zIndex,
13
- onClick = () => null
14
- }) => /*#__PURE__*/_jsx(BackdropTag, {
15
- zIndex: zIndex,
16
- type: type,
17
- onClick: onClick,
18
- "data-testid": "ds-backdrop"
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-next.7",
3
+ "version": "2.0.0-rc.10",
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.1"
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.1"
47
+ "styled-components": "^5.3.3"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public",