@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.
|
|
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 {
|
|
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:
|
|
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.
|
|
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, {
|
package/lib/Modal/props.js
CHANGED
|
@@ -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
|
|
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:
|
|
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.
|
|
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.
|
|
29
|
-
"@instructure/emotion": "8.9.2-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.9.2-snapshot.
|
|
31
|
-
"@instructure/ui-buttons": "8.9.2-snapshot.
|
|
32
|
-
"@instructure/ui-dialog": "8.9.2-snapshot.
|
|
33
|
-
"@instructure/ui-motion": "8.9.2-snapshot.
|
|
34
|
-
"@instructure/ui-overlays": "8.9.2-snapshot.
|
|
35
|
-
"@instructure/ui-portal": "8.9.2-snapshot.
|
|
36
|
-
"@instructure/ui-prop-types": "8.9.2-snapshot.
|
|
37
|
-
"@instructure/ui-react-utils": "8.9.2-snapshot.
|
|
38
|
-
"@instructure/ui-testable": "8.9.2-snapshot.
|
|
39
|
-
"@instructure/ui-utils": "8.9.2-snapshot.
|
|
40
|
-
"@instructure/ui-view": "8.9.2-snapshot.
|
|
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.
|
|
48
|
-
"@instructure/ui-color-utils": "8.9.2-snapshot.
|
|
49
|
-
"@instructure/ui-position": "8.9.2-snapshot.
|
|
50
|
-
"@instructure/ui-test-locator": "8.9.2-snapshot.
|
|
51
|
-
"@instructure/ui-test-utils": "8.9.2-snapshot.
|
|
52
|
-
"@instructure/ui-themes": "8.9.2-snapshot.
|
|
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": "
|
|
58
|
+
"gitHead": "1a56581cde6bd3b4f9fe5cd11ae420bd1222fe15"
|
|
59
59
|
}
|
package/src/Modal/props.ts
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
element,
|
|
30
30
|
Children as ChildrenPropTypes
|
|
31
31
|
} from '@instructure/ui-prop-types'
|
|
32
|
-
import {
|
|
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:
|
|
172
|
+
transition: transitionTypePropType,
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* Callback fired before the <Modal /> transitions in
|