@instructure/ui-modal 8.9.2-snapshot.4 → 8.9.2-snapshot.7

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.
@@ -64,7 +64,7 @@ let ModalBody = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
64
64
  children = _this$props.children,
65
65
  rest = _objectWithoutProperties(_this$props, _excluded);
66
66
 
67
- const passthroughProps = View.omitViewProps(omitProps(rest, ModalBody.propTypes), ModalBody);
67
+ const passthroughProps = View.omitViewProps(omitProps(rest, ModalBody.allowedProps), ModalBody);
68
68
  const isFit = overflow === 'fit';
69
69
  return jsx(View, Object.assign({}, passthroughProps, {
70
70
  display: "block",
package/es/Modal/props.js CHANGED
@@ -23,7 +23,7 @@
23
23
  */
24
24
  import PropTypes from 'prop-types';
25
25
  import { element, Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
26
- import { Transition } from '@instructure/ui-motion';
26
+ import { transitionTypePropType } from '@instructure/ui-motion';
27
27
  import { ModalHeader } from './ModalHeader';
28
28
  import { ModalBody } from './ModalBody';
29
29
  import { ModalFooter } from './ModalFooter';
@@ -110,7 +110,7 @@ const propTypes = {
110
110
  * the screen reader when the `<Modal />` is open
111
111
  */
112
112
  liveRegion: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.func]),
113
- transition: Transition.propTypes.type,
113
+ transition: transitionTypePropType,
114
114
 
115
115
  /**
116
116
  * Callback fired before the <Modal /> transitions in
@@ -56,7 +56,7 @@ let ModalBody = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
56
56
  children = _this$props.children,
57
57
  rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
58
58
 
59
- const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(rest, ModalBody.propTypes), ModalBody);
59
+ const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(rest, ModalBody.allowedProps), ModalBody);
60
60
 
61
61
  const isFit = overflow === 'fit';
62
62
  return (0, _emotion.jsx)(_View.View, Object.assign({}, passthroughProps, {
@@ -13,7 +13,7 @@ var _element = require("@instructure/ui-prop-types/lib/element.js");
13
13
 
14
14
  var _Children = require("@instructure/ui-prop-types/lib/Children.js");
15
15
 
16
- var _Transition = require("@instructure/ui-motion/lib/Transition");
16
+ var _uiMotion = require("@instructure/ui-motion");
17
17
 
18
18
  var _ModalHeader = require("./ModalHeader");
19
19
 
@@ -127,7 +127,7 @@ const propTypes = {
127
127
  * the screen reader when the `<Modal />` is open
128
128
  */
129
129
  liveRegion: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.element), _propTypes.default.element, _propTypes.default.func]),
130
- transition: _Transition.Transition.propTypes.type,
130
+ transition: _uiMotion.transitionTypePropType,
131
131
 
132
132
  /**
133
133
  * Callback fired before the <Modal /> transitions in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-modal",
3
- "version": "8.9.2-snapshot.4+bf1e82efc",
3
+ "version": "8.9.2-snapshot.7+1a56581cd",
4
4
  "description": "A component for displaying content in a dialog overlay",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,35 +25,35 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.9.2-snapshot.4+bf1e82efc",
29
- "@instructure/emotion": "8.9.2-snapshot.4+bf1e82efc",
30
- "@instructure/shared-types": "8.9.2-snapshot.4+bf1e82efc",
31
- "@instructure/ui-buttons": "8.9.2-snapshot.4+bf1e82efc",
32
- "@instructure/ui-dialog": "8.9.2-snapshot.4+bf1e82efc",
33
- "@instructure/ui-motion": "8.9.2-snapshot.4+bf1e82efc",
34
- "@instructure/ui-overlays": "8.9.2-snapshot.4+bf1e82efc",
35
- "@instructure/ui-portal": "8.9.2-snapshot.4+bf1e82efc",
36
- "@instructure/ui-prop-types": "8.9.2-snapshot.4+bf1e82efc",
37
- "@instructure/ui-react-utils": "8.9.2-snapshot.4+bf1e82efc",
38
- "@instructure/ui-testable": "8.9.2-snapshot.4+bf1e82efc",
39
- "@instructure/ui-utils": "8.9.2-snapshot.4+bf1e82efc",
40
- "@instructure/ui-view": "8.9.2-snapshot.4+bf1e82efc",
28
+ "@instructure/console": "8.9.2-snapshot.7+1a56581cd",
29
+ "@instructure/emotion": "8.9.2-snapshot.7+1a56581cd",
30
+ "@instructure/shared-types": "8.9.2-snapshot.7+1a56581cd",
31
+ "@instructure/ui-buttons": "8.9.2-snapshot.7+1a56581cd",
32
+ "@instructure/ui-dialog": "8.9.2-snapshot.7+1a56581cd",
33
+ "@instructure/ui-motion": "8.9.2-snapshot.7+1a56581cd",
34
+ "@instructure/ui-overlays": "8.9.2-snapshot.7+1a56581cd",
35
+ "@instructure/ui-portal": "8.9.2-snapshot.7+1a56581cd",
36
+ "@instructure/ui-prop-types": "8.9.2-snapshot.7+1a56581cd",
37
+ "@instructure/ui-react-utils": "8.9.2-snapshot.7+1a56581cd",
38
+ "@instructure/ui-testable": "8.9.2-snapshot.7+1a56581cd",
39
+ "@instructure/ui-utils": "8.9.2-snapshot.7+1a56581cd",
40
+ "@instructure/ui-view": "8.9.2-snapshot.7+1a56581cd",
41
41
  "prop-types": "^15"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=16.8 <=17"
45
45
  },
46
46
  "devDependencies": {
47
- "@instructure/ui-babel-preset": "8.9.2-snapshot.4+bf1e82efc",
48
- "@instructure/ui-color-utils": "8.9.2-snapshot.4+bf1e82efc",
49
- "@instructure/ui-position": "8.9.2-snapshot.4+bf1e82efc",
50
- "@instructure/ui-test-locator": "8.9.2-snapshot.4+bf1e82efc",
51
- "@instructure/ui-test-utils": "8.9.2-snapshot.4+bf1e82efc",
52
- "@instructure/ui-themes": "8.9.2-snapshot.4+bf1e82efc"
47
+ "@instructure/ui-babel-preset": "8.9.2-snapshot.7+1a56581cd",
48
+ "@instructure/ui-color-utils": "8.9.2-snapshot.7+1a56581cd",
49
+ "@instructure/ui-position": "8.9.2-snapshot.7+1a56581cd",
50
+ "@instructure/ui-test-locator": "8.9.2-snapshot.7+1a56581cd",
51
+ "@instructure/ui-test-utils": "8.9.2-snapshot.7+1a56581cd",
52
+ "@instructure/ui-themes": "8.9.2-snapshot.7+1a56581cd"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
57
  "sideEffects": false,
58
- "gitHead": "bf1e82efccb682510708448efd369eddaa24f74b"
58
+ "gitHead": "1a56581cde6bd3b4f9fe5cd11ae420bd1222fe15"
59
59
  }
@@ -79,7 +79,7 @@ class ModalBody extends Component<ModalBodyProps> {
79
79
  } = this.props
80
80
 
81
81
  const passthroughProps = View.omitViewProps(
82
- omitProps(rest, ModalBody.propTypes),
82
+ omitProps(rest, ModalBody.allowedProps),
83
83
  ModalBody
84
84
  )
85
85
  const isFit = overflow === 'fit'
@@ -29,7 +29,7 @@ import {
29
29
  element,
30
30
  Children as ChildrenPropTypes
31
31
  } from '@instructure/ui-prop-types'
32
- import { Transition } from '@instructure/ui-motion'
32
+ import { transitionTypePropType } from '@instructure/ui-motion'
33
33
  import { ModalHeader } from './ModalHeader'
34
34
  import { ModalBody } from './ModalBody'
35
35
  import { ModalFooter } from './ModalFooter'
@@ -169,7 +169,7 @@ const propTypes: PropValidators<PropKeys> = {
169
169
  PropTypes.func
170
170
  ]),
171
171
 
172
- transition: Transition.propTypes.type,
172
+ transition: transitionTypePropType,
173
173
 
174
174
  /**
175
175
  * Callback fired before the <Modal /> transitions in