@instructure/ui-overlays 8.14.1-snapshot.21 → 8.14.1-snapshot.24

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/es/Mask/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var _dec, _class, _class2, _temp;
1
+ var _dec, _dec2, _class, _class2, _temp;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -25,10 +25,10 @@ var _dec, _class, _class2, _temp;
25
25
  */
26
26
 
27
27
  /** @jsx jsx */
28
- import { Component } from 'react';
28
+ import React, { Component } from 'react';
29
29
  import noScroll from 'no-scroll';
30
30
  import { withStyle, jsx } from '@instructure/emotion';
31
- import { ensureSingleChild, omitProps } from '@instructure/ui-react-utils';
31
+ import { ensureSingleChild, omitProps, deprecated } from '@instructure/ui-react-utils';
32
32
  import generateStyle from './styles';
33
33
  import generateComponentTheme from './theme';
34
34
  import { allowedProps, propTypes } from './props';
@@ -36,9 +36,12 @@ import { allowedProps, propTypes } from './props';
36
36
  ---
37
37
  category: components/utilities
38
38
  ---
39
+ @tsProps
39
40
  **/
40
41
 
41
- let Mask = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class Mask extends Component {
42
+ let Mask = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = deprecated('9.0.0', {
43
+ onDismiss: null
44
+ }), _dec(_class = _dec2(_class = (_temp = _class2 = class Mask extends Component {
42
45
  constructor() {
43
46
  super(...arguments);
44
47
  this.ref = null;
@@ -52,6 +55,8 @@ let Mask = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
52
55
  }
53
56
  };
54
57
 
58
+ this._content = void 0;
59
+
55
60
  this.contentRef = el => {
56
61
  this._content = el;
57
62
  };
@@ -100,9 +105,7 @@ let Mask = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
100
105
 
101
106
  }, _class2.displayName = "Mask", _class2.componentId = 'Mask', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
102
107
  placement: 'center',
103
- fullscreen: false,
104
- children: null,
105
- elementRef: el => {}
106
- }, _temp)) || _class);
108
+ fullscreen: false
109
+ }, _temp)) || _class) || _class);
107
110
  export default Mask;
108
111
  export { Mask };
package/es/Mask/props.js CHANGED
@@ -23,16 +23,14 @@
23
23
  */
24
24
  import PropTypes from 'prop-types';
25
25
  const propTypes = {
26
- onDismiss: PropTypes.func,
27
26
  placement: PropTypes.oneOf(['top', 'center', 'bottom', 'stretch']),
28
27
  fullscreen: PropTypes.bool,
29
28
  children: PropTypes.node,
30
29
  onClick: PropTypes.func,
30
+ elementRef: PropTypes.func,
31
+ onDismiss: PropTypes.func // TODO: deprecated, remove in V9
31
32
 
32
- /**
33
- * provides a reference to the underlying html root element
34
- */
35
- elementRef: PropTypes.func
36
33
  };
37
- const allowedProps = ['onDismiss', 'placement', 'fullscreen', 'children', 'onClick', 'elementRef'];
34
+ const allowedProps = ['placement', 'fullscreen', 'children', 'onClick', 'elementRef', // TODO: deprecated, remove in V9
35
+ 'onDismiss'];
38
36
  export { propTypes, allowedProps };
@@ -22,5 +22,6 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  import { locator } from '@instructure/ui-test-locator';
25
- import { Overlay } from './index';
25
+ import { Overlay } from './index'; // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
26
+
26
27
  export const OverlayLocator = locator(Overlay.selector);
@@ -1,4 +1,4 @@
1
- var _dec, _class, _class2, _temp;
1
+ var _dec, _dec2, _class, _class2, _temp;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -24,10 +24,10 @@ var _dec, _class, _class2, _temp;
24
24
  * SOFTWARE.
25
25
  */
26
26
  import React, { Component } from 'react';
27
- import { Dialog } from '@instructure/ui-dialog';
28
27
  import { testable } from '@instructure/ui-testable';
29
28
  import { createChainedFunction } from '@instructure/ui-utils';
30
- import { omitProps, pickProps } from '@instructure/ui-react-utils';
29
+ import { omitProps, pickProps, deprecated } from '@instructure/ui-react-utils';
30
+ import { Dialog } from '@instructure/ui-dialog';
31
31
  import { Portal } from '@instructure/ui-portal';
32
32
  import { Transition } from '@instructure/ui-motion';
33
33
  import { allowedProps, propTypes } from './props';
@@ -35,13 +35,17 @@ import { allowedProps, propTypes } from './props';
35
35
  ---
36
36
  category: components
37
37
  ---
38
+ @tsProps
38
39
  **/
39
40
 
40
- let Overlay = (_dec = testable(), _dec(_class = (_temp = _class2 = class Overlay extends Component {
41
+ let Overlay = (_dec = testable(), _dec2 = deprecated('9.0.0', {
42
+ applicationElement: null
43
+ }), _dec(_class = _dec2(_class = (_temp = _class2 = class Overlay extends Component {
41
44
  constructor(props) {
42
45
  super(props);
43
46
  this._timeouts = [];
44
47
  this._DOMNode = null;
48
+ this._isMounted = false;
45
49
  this.ref = null;
46
50
 
47
51
  this.handleRef = el => {
@@ -81,7 +85,7 @@ let Overlay = (_dec = testable(), _dec(_class = (_temp = _class2 = class Overlay
81
85
  if (prevProps.open && !this.props.open) {
82
86
  // closing
83
87
  this.setState({
84
- transitioning: prevProps.transition !== null
88
+ transitioning: !!prevProps.transition
85
89
  });
86
90
  }
87
91
  }
@@ -128,32 +132,17 @@ let Overlay = (_dec = testable(), _dec(_class = (_temp = _class2 = class Overlay
128
132
  }
129
133
 
130
134
  }, _class2.displayName = "Overlay", _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
131
- children: null,
132
135
  open: false,
133
136
  insertAt: 'bottom',
134
- onOpen: () => {},
135
- onClose: () => {},
136
- mountNode: null,
137
137
  shouldContainFocus: false,
138
138
  shouldReturnFocus: false,
139
139
  shouldCloseOnDocumentClick: false,
140
140
  shouldCloseOnEscape: true,
141
- applicationElement: null,
142
- defaultFocusElement: null,
143
- contentElement: null,
144
- onDismiss: () => {},
145
- transition: null,
146
141
  in: false,
147
142
  unmountOnExit: false,
148
143
  transitionOnMount: false,
149
144
  transitionEnter: true,
150
- transitionExit: true,
151
- onEnter: function () {},
152
- onEntering: function () {},
153
- onEntered: function () {},
154
- onExit: function () {},
155
- onExiting: function () {},
156
- onExited: function () {}
157
- }, _temp)) || _class);
145
+ transitionExit: true
146
+ }, _temp)) || _class) || _class);
158
147
  export default Overlay;
159
148
  export { Overlay };
@@ -26,122 +26,34 @@ import { element } from '@instructure/ui-prop-types';
26
26
  import { transitionTypePropType } from '@instructure/ui-motion';
27
27
  const propTypes = {
28
28
  children: PropTypes.node,
29
-
30
- /**
31
- * Whether or not the `<Overlay />` is open
32
- */
33
29
  open: PropTypes.bool,
34
-
35
- /**
36
- * Callback fired when `<Portal />` content has been mounted in the DOM
37
- */
38
30
  onOpen: PropTypes.func,
39
-
40
- /**
41
- * Callback fired when `<Portal />` has been unmounted from the DOM
42
- */
43
31
  onClose: PropTypes.func,
44
-
45
- /**
46
- * An element or a function returning an element to use as the mount node
47
- * for the `<Portal />` (defaults to `document.body`)
48
- */
49
32
  mountNode: PropTypes.oneOfType([element, PropTypes.func]),
50
-
51
- /**
52
- * Insert the element at the 'top' of the mountNode or at the 'bottom'
53
- */
54
33
  insertAt: PropTypes.oneOf(['bottom', 'top']),
55
-
56
- /**
57
- * An accessible label for the `<Overlay />` content
58
- */
59
34
  label: PropTypes.string.isRequired,
60
-
61
- /**
62
- * Callback fired when the `<Overlay />` is requesting to be closed
63
- */
64
35
  onDismiss: PropTypes.func,
65
-
66
- /**
67
- * An element or a function returning an element to focus by default
68
- */
69
36
  defaultFocusElement: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
70
-
71
- /**
72
- * An element or a function returning an element to apply `aria-hidden` to
73
- */
74
- applicationElement: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.func]),
75
-
76
- /**
77
- * An element or a function returning an element that wraps the content of the `<Overlay />`
78
- */
79
37
  contentElement: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
80
38
  shouldContainFocus: PropTypes.bool,
81
39
  shouldReturnFocus: PropTypes.bool,
82
40
  shouldCloseOnDocumentClick: PropTypes.bool,
83
41
  shouldCloseOnEscape: PropTypes.bool,
84
-
85
- /**
86
- * The type of `<Transition />` to use for animating in/out
87
- */
88
42
  transition: transitionTypePropType,
89
-
90
- /**
91
- * Show the component; triggers the enter or exit animation
92
- */
93
43
  in: PropTypes.bool,
94
-
95
- /**
96
- * Unmount the component (remove it from the DOM) when it is not shown
97
- */
98
44
  unmountOnExit: PropTypes.bool,
99
-
100
- /**
101
- * Run the enter animation when the component mounts, if it is initially
102
- * shown
103
- */
104
45
  transitionOnMount: PropTypes.bool,
105
-
106
- /**
107
- * Run the enter animation
108
- */
109
46
  transitionEnter: PropTypes.bool,
110
-
111
- /**
112
- * Run the exit animation
113
- */
114
47
  transitionExit: PropTypes.bool,
115
-
116
- /**
117
- * Callback fired before the "entering" classes are applied
118
- */
119
48
  onEnter: PropTypes.func,
120
-
121
- /**
122
- * Callback fired after the "entering" classes are applied
123
- */
124
49
  onEntering: PropTypes.func,
125
-
126
- /**
127
- * Callback fired after the "enter" classes are applied
128
- */
129
50
  onEntered: PropTypes.func,
130
-
131
- /**
132
- * Callback fired before the "exiting" classes are applied
133
- */
134
51
  onExit: PropTypes.func,
135
-
136
- /**
137
- * Callback fired after the "exiting" classes are applied
138
- */
139
52
  onExiting: PropTypes.func,
140
-
141
- /**
142
- * Callback fired after the "exited" classes are applied
143
- */
144
- onExited: PropTypes.func
53
+ onExited: PropTypes.func,
54
+ // TODO: deprecated, remove in V9
55
+ applicationElement: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.func])
145
56
  };
146
- const allowedProps = ['children', 'open', 'onOpen', 'onClose', 'mountNode', 'insertAt', 'label', 'onDismiss', 'defaultFocusElement', 'applicationElement', 'contentElement', 'shouldReturnFocus', 'shouldCloseOnDocumentClick', 'shouldCloseOnEscape', 'transition', 'in', 'unmountOnExit', 'transitionOnMount', 'transitionEnter', 'transitionExit', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'];
57
+ const allowedProps = ['children', 'open', 'onOpen', 'onClose', 'mountNode', 'insertAt', 'label', 'onDismiss', 'defaultFocusElement', 'contentElement', 'shouldReturnFocus', 'shouldCloseOnDocumentClick', 'shouldCloseOnEscape', 'transition', 'in', 'unmountOnExit', 'transitionOnMount', 'transitionEnter', 'transitionExit', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited', // TODO: deprecated, remove in V9
58
+ 'applicationElement'];
147
59
  export { propTypes, allowedProps };
package/lib/Mask/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
3
5
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
6
 
5
7
  Object.defineProperty(exports, "__esModule", {
@@ -7,7 +9,7 @@ Object.defineProperty(exports, "__esModule", {
7
9
  });
8
10
  exports.default = exports.Mask = void 0;
9
11
 
10
- var _react = require("react");
12
+ var _react = _interopRequireWildcard(require("react"));
11
13
 
12
14
  var _noScroll = _interopRequireDefault(require("no-scroll"));
13
15
 
@@ -17,20 +19,25 @@ var _ensureSingleChild = require("@instructure/ui-react-utils/lib/ensureSingleCh
17
19
 
18
20
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
19
21
 
22
+ var _deprecated = require("@instructure/ui-react-utils/lib/deprecated.js");
23
+
20
24
  var _styles = _interopRequireDefault(require("./styles"));
21
25
 
22
26
  var _theme = _interopRequireDefault(require("./theme"));
23
27
 
24
28
  var _props = require("./props");
25
29
 
26
- var _dec, _class, _class2, _temp;
30
+ var _dec, _dec2, _class, _class2, _temp;
27
31
 
28
32
  /**
29
33
  ---
30
34
  category: components/utilities
31
35
  ---
36
+ @tsProps
32
37
  **/
33
- let Mask = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class Mask extends _react.Component {
38
+ let Mask = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _deprecated.deprecated)('9.0.0', {
39
+ onDismiss: null
40
+ }), _dec(_class = _dec2(_class = (_temp = _class2 = class Mask extends _react.Component {
34
41
  constructor() {
35
42
  super(...arguments);
36
43
  this.ref = null;
@@ -44,6 +51,8 @@ let Mask = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
44
51
  }
45
52
  };
46
53
 
54
+ this._content = void 0;
55
+
47
56
  this.contentRef = el => {
48
57
  this._content = el;
49
58
  };
@@ -92,10 +101,8 @@ let Mask = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
92
101
 
93
102
  }, _class2.displayName = "Mask", _class2.componentId = 'Mask', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
94
103
  placement: 'center',
95
- fullscreen: false,
96
- children: null,
97
- elementRef: el => {}
98
- }, _temp)) || _class);
104
+ fullscreen: false
105
+ }, _temp)) || _class) || _class);
99
106
  exports.Mask = Mask;
100
107
  var _default = Mask;
101
108
  exports.default = _default;
package/lib/Mask/props.js CHANGED
@@ -33,17 +33,15 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
33
33
  * SOFTWARE.
34
34
  */
35
35
  const propTypes = {
36
- onDismiss: _propTypes.default.func,
37
36
  placement: _propTypes.default.oneOf(['top', 'center', 'bottom', 'stretch']),
38
37
  fullscreen: _propTypes.default.bool,
39
38
  children: _propTypes.default.node,
40
39
  onClick: _propTypes.default.func,
40
+ elementRef: _propTypes.default.func,
41
+ onDismiss: _propTypes.default.func // TODO: deprecated, remove in V9
41
42
 
42
- /**
43
- * provides a reference to the underlying html root element
44
- */
45
- elementRef: _propTypes.default.func
46
43
  };
47
44
  exports.propTypes = propTypes;
48
- const allowedProps = ['onDismiss', 'placement', 'fullscreen', 'children', 'onClick', 'elementRef'];
45
+ const allowedProps = ['placement', 'fullscreen', 'children', 'onClick', 'elementRef', // TODO: deprecated, remove in V9
46
+ 'onDismiss'];
49
47
  exports.allowedProps = allowedProps;
@@ -32,5 +32,6 @@ var _index = require("./index");
32
32
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
33
  * SOFTWARE.
34
34
  */
35
+ // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
35
36
  const OverlayLocator = (0, _locator.locator)(_index.Overlay.selector);
36
37
  exports.OverlayLocator = OverlayLocator;
@@ -9,8 +9,6 @@ exports.default = exports.Overlay = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _Dialog = require("@instructure/ui-dialog/lib/Dialog");
13
-
14
12
  var _testable = require("@instructure/ui-testable/lib/testable.js");
15
13
 
16
14
  var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFunction.js");
@@ -19,24 +17,32 @@ var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
19
17
 
20
18
  var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
21
19
 
20
+ var _deprecated = require("@instructure/ui-react-utils/lib/deprecated.js");
21
+
22
+ var _Dialog = require("@instructure/ui-dialog/lib/Dialog");
23
+
22
24
  var _Portal = require("@instructure/ui-portal/lib/Portal");
23
25
 
24
26
  var _Transition = require("@instructure/ui-motion/lib/Transition");
25
27
 
26
28
  var _props = require("./props");
27
29
 
28
- var _dec, _class, _class2, _temp;
30
+ var _dec, _dec2, _class, _class2, _temp;
29
31
 
30
32
  /**
31
33
  ---
32
34
  category: components
33
35
  ---
36
+ @tsProps
34
37
  **/
35
- let Overlay = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _class2 = class Overlay extends _react.Component {
38
+ let Overlay = (_dec = (0, _testable.testable)(), _dec2 = (0, _deprecated.deprecated)('9.0.0', {
39
+ applicationElement: null
40
+ }), _dec(_class = _dec2(_class = (_temp = _class2 = class Overlay extends _react.Component {
36
41
  constructor(props) {
37
42
  super(props);
38
43
  this._timeouts = [];
39
44
  this._DOMNode = null;
45
+ this._isMounted = false;
40
46
  this.ref = null;
41
47
 
42
48
  this.handleRef = el => {
@@ -76,7 +82,7 @@ let Overlay = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _class2
76
82
  if (prevProps.open && !this.props.open) {
77
83
  // closing
78
84
  this.setState({
79
- transitioning: prevProps.transition !== null
85
+ transitioning: !!prevProps.transition
80
86
  });
81
87
  }
82
88
  }
@@ -123,33 +129,18 @@ let Overlay = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _class2
123
129
  }
124
130
 
125
131
  }, _class2.displayName = "Overlay", _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
126
- children: null,
127
132
  open: false,
128
133
  insertAt: 'bottom',
129
- onOpen: () => {},
130
- onClose: () => {},
131
- mountNode: null,
132
134
  shouldContainFocus: false,
133
135
  shouldReturnFocus: false,
134
136
  shouldCloseOnDocumentClick: false,
135
137
  shouldCloseOnEscape: true,
136
- applicationElement: null,
137
- defaultFocusElement: null,
138
- contentElement: null,
139
- onDismiss: () => {},
140
- transition: null,
141
138
  in: false,
142
139
  unmountOnExit: false,
143
140
  transitionOnMount: false,
144
141
  transitionEnter: true,
145
- transitionExit: true,
146
- onEnter: function () {},
147
- onEntering: function () {},
148
- onEntered: function () {},
149
- onExit: function () {},
150
- onExiting: function () {},
151
- onExited: function () {}
152
- }, _temp)) || _class);
142
+ transitionExit: true
143
+ }, _temp)) || _class) || _class);
153
144
  exports.Overlay = Overlay;
154
145
  var _default = Overlay;
155
146
  exports.default = _default;
@@ -38,123 +38,35 @@ var _uiMotion = require("@instructure/ui-motion");
38
38
  */
39
39
  const propTypes = {
40
40
  children: _propTypes.default.node,
41
-
42
- /**
43
- * Whether or not the `<Overlay />` is open
44
- */
45
41
  open: _propTypes.default.bool,
46
-
47
- /**
48
- * Callback fired when `<Portal />` content has been mounted in the DOM
49
- */
50
42
  onOpen: _propTypes.default.func,
51
-
52
- /**
53
- * Callback fired when `<Portal />` has been unmounted from the DOM
54
- */
55
43
  onClose: _propTypes.default.func,
56
-
57
- /**
58
- * An element or a function returning an element to use as the mount node
59
- * for the `<Portal />` (defaults to `document.body`)
60
- */
61
44
  mountNode: _propTypes.default.oneOfType([_element.element, _propTypes.default.func]),
62
-
63
- /**
64
- * Insert the element at the 'top' of the mountNode or at the 'bottom'
65
- */
66
45
  insertAt: _propTypes.default.oneOf(['bottom', 'top']),
67
-
68
- /**
69
- * An accessible label for the `<Overlay />` content
70
- */
71
46
  label: _propTypes.default.string.isRequired,
72
-
73
- /**
74
- * Callback fired when the `<Overlay />` is requesting to be closed
75
- */
76
47
  onDismiss: _propTypes.default.func,
77
-
78
- /**
79
- * An element or a function returning an element to focus by default
80
- */
81
48
  defaultFocusElement: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
82
-
83
- /**
84
- * An element or a function returning an element to apply `aria-hidden` to
85
- */
86
- applicationElement: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.element), _propTypes.default.element, _propTypes.default.func]),
87
-
88
- /**
89
- * An element or a function returning an element that wraps the content of the `<Overlay />`
90
- */
91
49
  contentElement: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
92
50
  shouldContainFocus: _propTypes.default.bool,
93
51
  shouldReturnFocus: _propTypes.default.bool,
94
52
  shouldCloseOnDocumentClick: _propTypes.default.bool,
95
53
  shouldCloseOnEscape: _propTypes.default.bool,
96
-
97
- /**
98
- * The type of `<Transition />` to use for animating in/out
99
- */
100
54
  transition: _uiMotion.transitionTypePropType,
101
-
102
- /**
103
- * Show the component; triggers the enter or exit animation
104
- */
105
55
  in: _propTypes.default.bool,
106
-
107
- /**
108
- * Unmount the component (remove it from the DOM) when it is not shown
109
- */
110
56
  unmountOnExit: _propTypes.default.bool,
111
-
112
- /**
113
- * Run the enter animation when the component mounts, if it is initially
114
- * shown
115
- */
116
57
  transitionOnMount: _propTypes.default.bool,
117
-
118
- /**
119
- * Run the enter animation
120
- */
121
58
  transitionEnter: _propTypes.default.bool,
122
-
123
- /**
124
- * Run the exit animation
125
- */
126
59
  transitionExit: _propTypes.default.bool,
127
-
128
- /**
129
- * Callback fired before the "entering" classes are applied
130
- */
131
60
  onEnter: _propTypes.default.func,
132
-
133
- /**
134
- * Callback fired after the "entering" classes are applied
135
- */
136
61
  onEntering: _propTypes.default.func,
137
-
138
- /**
139
- * Callback fired after the "enter" classes are applied
140
- */
141
62
  onEntered: _propTypes.default.func,
142
-
143
- /**
144
- * Callback fired before the "exiting" classes are applied
145
- */
146
63
  onExit: _propTypes.default.func,
147
-
148
- /**
149
- * Callback fired after the "exiting" classes are applied
150
- */
151
64
  onExiting: _propTypes.default.func,
152
-
153
- /**
154
- * Callback fired after the "exited" classes are applied
155
- */
156
- onExited: _propTypes.default.func
65
+ onExited: _propTypes.default.func,
66
+ // TODO: deprecated, remove in V9
67
+ applicationElement: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.element), _propTypes.default.element, _propTypes.default.func])
157
68
  };
158
69
  exports.propTypes = propTypes;
159
- const allowedProps = ['children', 'open', 'onOpen', 'onClose', 'mountNode', 'insertAt', 'label', 'onDismiss', 'defaultFocusElement', 'applicationElement', 'contentElement', 'shouldReturnFocus', 'shouldCloseOnDocumentClick', 'shouldCloseOnEscape', 'transition', 'in', 'unmountOnExit', 'transitionOnMount', 'transitionEnter', 'transitionExit', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'];
70
+ const allowedProps = ['children', 'open', 'onOpen', 'onClose', 'mountNode', 'insertAt', 'label', 'onDismiss', 'defaultFocusElement', 'contentElement', 'shouldReturnFocus', 'shouldCloseOnDocumentClick', 'shouldCloseOnEscape', 'transition', 'in', 'unmountOnExit', 'transitionOnMount', 'transitionEnter', 'transitionExit', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited', // TODO: deprecated, remove in V9
71
+ 'applicationElement'];
160
72
  exports.allowedProps = allowedProps;