@elliemae/ds-backdrop 2.0.0-alpha.0 → 2.0.0-alpha.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/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['default'].div.withConfig({
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: ${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
- exports['default'] = DSBackdrop;
37
+ exports["default"] = DSBackdrop;
package/cjs/index.js CHANGED
@@ -7,4 +7,4 @@ var Backdrop = require('./Backdrop.js');
7
7
 
8
8
 
9
9
  exports.DSBackdrop = Backdrop.DSBackdrop;
10
- exports.default = Backdrop.DSBackdrop;
10
+ exports["default"] = Backdrop.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: ${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-alpha.0",
3
+ "version": "2.0.0-alpha.12",
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",
package/cjs/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }
package/esm/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }