@elliemae/ds-modal 2.0.0-rc.9 → 2.0.0
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/v1/DSModalWrapper.js +12 -13
- package/esm/v1/DSModalWrapper.js +14 -15
- package/package.json +8 -8
package/cjs/v1/DSModalWrapper.js
CHANGED
|
@@ -21,26 +21,25 @@ var DSModalWrapper = (WrappedComponent => {
|
|
|
21
21
|
class DSModalWrapper extends react.Component {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
|
-
|
|
25
|
-
_defineProperty__default["default"](this, "state", {
|
|
24
|
+
this.state = {
|
|
26
25
|
childready: false,
|
|
27
26
|
additionalFooterCssClass: 'loading',
|
|
28
27
|
container: null,
|
|
29
28
|
actions: null,
|
|
30
29
|
height: '100%'
|
|
31
|
-
}
|
|
30
|
+
};
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
this.onHeaderHeight = e => {
|
|
34
33
|
this.heightHeaderFlag = true;
|
|
35
34
|
this.heightHeader = e.height || 0;
|
|
36
|
-
}
|
|
35
|
+
};
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
this.onFooterHeight = e => {
|
|
39
38
|
this.heightFooterFlag = true;
|
|
40
39
|
this.heightFooter = e.height || 0;
|
|
41
|
-
}
|
|
40
|
+
};
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
this.onResize = _ref => {
|
|
44
43
|
let {
|
|
45
44
|
bounds
|
|
46
45
|
} = _ref;
|
|
@@ -54,21 +53,21 @@ var DSModalWrapper = (WrappedComponent => {
|
|
|
54
53
|
return setTimeout(this.onResize({
|
|
55
54
|
bounds
|
|
56
55
|
}), 0);
|
|
57
|
-
}
|
|
56
|
+
};
|
|
58
57
|
|
|
59
|
-
|
|
58
|
+
this.handleContainer = node => {
|
|
60
59
|
if (node) this.setState({
|
|
61
60
|
container: node
|
|
62
61
|
});
|
|
63
62
|
this.handleResize();
|
|
64
|
-
}
|
|
63
|
+
};
|
|
65
64
|
|
|
66
|
-
|
|
65
|
+
this.handleActions = node => {
|
|
67
66
|
if (node) this.setState({
|
|
68
67
|
actions: node
|
|
69
68
|
});
|
|
70
69
|
this.handleResize();
|
|
71
|
-
}
|
|
70
|
+
};
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
componentDidMount() {
|
package/esm/v1/DSModalWrapper.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
1
|
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
4
2
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
5
3
|
import 'core-js/modules/esnext.iterator.filter.js';
|
|
6
4
|
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
7
5
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
8
|
import { Component, createElement } from 'react';
|
|
9
9
|
import { MODAL_TYPE } from '../constants.js';
|
|
10
10
|
|
|
@@ -15,26 +15,25 @@ var DSModalWrapper = (WrappedComponent => {
|
|
|
15
15
|
class DSModalWrapper extends Component {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
|
-
|
|
19
|
-
_defineProperty(this, "state", {
|
|
18
|
+
this.state = {
|
|
20
19
|
childready: false,
|
|
21
20
|
additionalFooterCssClass: 'loading',
|
|
22
21
|
container: null,
|
|
23
22
|
actions: null,
|
|
24
23
|
height: '100%'
|
|
25
|
-
}
|
|
24
|
+
};
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
this.onHeaderHeight = e => {
|
|
28
27
|
this.heightHeaderFlag = true;
|
|
29
28
|
this.heightHeader = e.height || 0;
|
|
30
|
-
}
|
|
29
|
+
};
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
this.onFooterHeight = e => {
|
|
33
32
|
this.heightFooterFlag = true;
|
|
34
33
|
this.heightFooter = e.height || 0;
|
|
35
|
-
}
|
|
34
|
+
};
|
|
36
35
|
|
|
37
|
-
|
|
36
|
+
this.onResize = _ref => {
|
|
38
37
|
let {
|
|
39
38
|
bounds
|
|
40
39
|
} = _ref;
|
|
@@ -48,21 +47,21 @@ var DSModalWrapper = (WrappedComponent => {
|
|
|
48
47
|
return setTimeout(this.onResize({
|
|
49
48
|
bounds
|
|
50
49
|
}), 0);
|
|
51
|
-
}
|
|
50
|
+
};
|
|
52
51
|
|
|
53
|
-
|
|
52
|
+
this.handleContainer = node => {
|
|
54
53
|
if (node) this.setState({
|
|
55
54
|
container: node
|
|
56
55
|
});
|
|
57
56
|
this.handleResize();
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
|
|
60
|
-
|
|
59
|
+
this.handleActions = node => {
|
|
61
60
|
if (node) this.setState({
|
|
62
61
|
actions: node
|
|
63
62
|
});
|
|
64
63
|
this.handleResize();
|
|
65
|
-
}
|
|
64
|
+
};
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
componentDidMount() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
"build": "node ../../scripts/build/build.js"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@elliemae/ds-button": "2.0.0
|
|
100
|
-
"@elliemae/ds-classnames": "2.0.0
|
|
101
|
-
"@elliemae/ds-form": "2.0.0
|
|
102
|
-
"@elliemae/ds-icon": "2.0.0
|
|
103
|
-
"@elliemae/ds-icons": "2.0.0
|
|
104
|
-
"@elliemae/ds-shared": "2.0.0
|
|
105
|
-
"@elliemae/ds-system": "2.0.0
|
|
99
|
+
"@elliemae/ds-button": "2.0.0",
|
|
100
|
+
"@elliemae/ds-classnames": "2.0.0",
|
|
101
|
+
"@elliemae/ds-form": "2.0.0",
|
|
102
|
+
"@elliemae/ds-icon": "2.0.0",
|
|
103
|
+
"@elliemae/ds-icons": "2.0.0",
|
|
104
|
+
"@elliemae/ds-shared": "2.0.0",
|
|
105
|
+
"@elliemae/ds-system": "2.0.0",
|
|
106
106
|
"prop-types": "~15.7.2",
|
|
107
107
|
"react-desc": "~4.1.3",
|
|
108
108
|
"react-modal": "~3.12.1"
|