@instructure/ui-dialog 8.9.2-snapshot.1 → 8.9.2-snapshot.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/es/Dialog/index.js +1 -1
- package/lib/Dialog/index.js +1 -1
- package/package.json +11 -11
- package/src/Dialog/index.tsx +1 -1
package/es/Dialog/index.js
CHANGED
|
@@ -144,7 +144,7 @@ class Dialog extends Component {
|
|
|
144
144
|
|
|
145
145
|
render() {
|
|
146
146
|
const ElementType = getElementType(Dialog, this.props);
|
|
147
|
-
return this.props.open ? /*#__PURE__*/React.createElement(ElementType, Object.assign({}, omitProps(this.props, Dialog.
|
|
147
|
+
return this.props.open ? /*#__PURE__*/React.createElement(ElementType, Object.assign({}, omitProps(this.props, Dialog.allowedProps), {
|
|
148
148
|
role: this.props.label ? 'dialog' : void 0,
|
|
149
149
|
"aria-label": this.props.label,
|
|
150
150
|
className: this.props.className // eslint-disable-line react/prop-types
|
package/lib/Dialog/index.js
CHANGED
|
@@ -142,7 +142,7 @@ class Dialog extends _react.Component {
|
|
|
142
142
|
|
|
143
143
|
render() {
|
|
144
144
|
const ElementType = (0, _getElementType.getElementType)(Dialog, this.props);
|
|
145
|
-
return this.props.open ? /*#__PURE__*/_react.default.createElement(ElementType, Object.assign({}, (0, _omitProps.omitProps)(this.props, Dialog.
|
|
145
|
+
return this.props.open ? /*#__PURE__*/_react.default.createElement(ElementType, Object.assign({}, (0, _omitProps.omitProps)(this.props, Dialog.allowedProps), {
|
|
146
146
|
role: this.props.label ? 'dialog' : void 0,
|
|
147
147
|
"aria-label": this.props.label,
|
|
148
148
|
className: this.props.className // eslint-disable-line react/prop-types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-dialog",
|
|
3
|
-
"version": "8.9.2-snapshot.
|
|
3
|
+
"version": "8.9.2-snapshot.12+6231ada93",
|
|
4
4
|
"description": "A utility component for managing keyboard accessibility and screen reader behavior",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/shared-types": "8.9.2-snapshot.
|
|
29
|
-
"@instructure/ui-a11y-utils": "8.9.2-snapshot.
|
|
30
|
-
"@instructure/ui-dom-utils": "8.9.2-snapshot.
|
|
31
|
-
"@instructure/ui-react-utils": "8.9.2-snapshot.
|
|
32
|
-
"@instructure/ui-testable": "8.9.2-snapshot.
|
|
28
|
+
"@instructure/shared-types": "8.9.2-snapshot.12+6231ada93",
|
|
29
|
+
"@instructure/ui-a11y-utils": "8.9.2-snapshot.12+6231ada93",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.9.2-snapshot.12+6231ada93",
|
|
31
|
+
"@instructure/ui-react-utils": "8.9.2-snapshot.12+6231ada93",
|
|
32
|
+
"@instructure/ui-testable": "8.9.2-snapshot.12+6231ada93",
|
|
33
33
|
"prop-types": "^15"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@instructure/console": "8.9.2-snapshot.
|
|
37
|
-
"@instructure/ui-babel-preset": "8.9.2-snapshot.
|
|
38
|
-
"@instructure/ui-prop-types": "8.9.2-snapshot.
|
|
39
|
-
"@instructure/ui-test-utils": "8.9.2-snapshot.
|
|
36
|
+
"@instructure/console": "8.9.2-snapshot.12+6231ada93",
|
|
37
|
+
"@instructure/ui-babel-preset": "8.9.2-snapshot.12+6231ada93",
|
|
38
|
+
"@instructure/ui-prop-types": "8.9.2-snapshot.12+6231ada93",
|
|
39
|
+
"@instructure/ui-test-utils": "8.9.2-snapshot.12+6231ada93"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=16.8 <=17"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"sideEffects": false,
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "6231ada93bd4299d640b5d39d7e44b0f54852b2a"
|
|
49
49
|
}
|
package/src/Dialog/index.tsx
CHANGED
|
@@ -184,7 +184,7 @@ class Dialog extends Component<DialogProps & OtherHTMLAttributes<DialogProps>> {
|
|
|
184
184
|
return this.props.open ? (
|
|
185
185
|
<ElementType
|
|
186
186
|
// @ts-expect-error TODO: `ref` prop causes: "Expression produces a union type that is too complex to represent.ts(2590)"
|
|
187
|
-
{...omitProps(this.props, Dialog.
|
|
187
|
+
{...omitProps(this.props, Dialog.allowedProps)}
|
|
188
188
|
role={this.props.label ? 'dialog' : undefined}
|
|
189
189
|
aria-label={this.props.label}
|
|
190
190
|
className={this.props.className} // eslint-disable-line react/prop-types
|