@instructure/ui-dialog 8.26.0 → 8.26.1-snapshot-2
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/CHANGELOG.md +8 -0
- package/es/Dialog/index.js +2 -1
- package/lib/Dialog/index.js +2 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.26.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v8.26.0...v8.26.1-snapshot-2) (2022-07-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-dialog
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [8.26.0](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.26.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @instructure/ui-dialog
|
package/es/Dialog/index.js
CHANGED
|
@@ -161,7 +161,8 @@ class Dialog extends Component {
|
|
|
161
161
|
const ElementType = getElementType(Dialog, this.props); // In case the HTML role attribute is explicitly passed, use props.role
|
|
162
162
|
|
|
163
163
|
const role = this.props.role || (this.props.label ? 'dialog' : void 0);
|
|
164
|
-
return this.props.open ? /*#__PURE__*/React.createElement(ElementType
|
|
164
|
+
return this.props.open ? /*#__PURE__*/React.createElement(ElementType // @ts-expect-error TODO: `ref` prop causes: "Expression produces a union type that is too complex to represent.ts(2590)"
|
|
165
|
+
, Object.assign({}, omitProps(this.props, Dialog.allowedProps), {
|
|
165
166
|
role: role,
|
|
166
167
|
"aria-label": this.props.label,
|
|
167
168
|
className: this.props.className // eslint-disable-line react/prop-types
|
package/lib/Dialog/index.js
CHANGED
|
@@ -159,7 +159,8 @@ class Dialog extends _react.Component {
|
|
|
159
159
|
const ElementType = (0, _getElementType.getElementType)(Dialog, this.props); // In case the HTML role attribute is explicitly passed, use props.role
|
|
160
160
|
|
|
161
161
|
const role = this.props.role || (this.props.label ? 'dialog' : void 0);
|
|
162
|
-
return this.props.open ? /*#__PURE__*/_react.default.createElement(ElementType
|
|
162
|
+
return this.props.open ? /*#__PURE__*/_react.default.createElement(ElementType // @ts-expect-error TODO: `ref` prop causes: "Expression produces a union type that is too complex to represent.ts(2590)"
|
|
163
|
+
, Object.assign({}, (0, _omitProps.omitProps)(this.props, Dialog.allowedProps), {
|
|
163
164
|
role: role,
|
|
164
165
|
"aria-label": this.props.label,
|
|
165
166
|
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.26.
|
|
3
|
+
"version": "8.26.1-snapshot-2",
|
|
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
|
"module": "./es/index.js",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.13.10",
|
|
27
|
-
"@instructure/shared-types": "8.26.
|
|
28
|
-
"@instructure/ui-a11y-utils": "8.26.
|
|
29
|
-
"@instructure/ui-dom-utils": "8.26.
|
|
30
|
-
"@instructure/ui-react-utils": "8.26.
|
|
31
|
-
"@instructure/ui-testable": "8.26.
|
|
27
|
+
"@instructure/shared-types": "8.26.1-snapshot-2",
|
|
28
|
+
"@instructure/ui-a11y-utils": "8.26.1-snapshot-2",
|
|
29
|
+
"@instructure/ui-dom-utils": "8.26.1-snapshot-2",
|
|
30
|
+
"@instructure/ui-react-utils": "8.26.1-snapshot-2",
|
|
31
|
+
"@instructure/ui-testable": "8.26.1-snapshot-2",
|
|
32
32
|
"prop-types": "^15"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@instructure/console": "8.26.
|
|
36
|
-
"@instructure/ui-babel-preset": "8.26.
|
|
37
|
-
"@instructure/ui-prop-types": "8.26.
|
|
38
|
-
"@instructure/ui-test-utils": "8.26.
|
|
35
|
+
"@instructure/console": "8.26.1-snapshot-2",
|
|
36
|
+
"@instructure/ui-babel-preset": "8.26.1-snapshot-2",
|
|
37
|
+
"@instructure/ui-prop-types": "8.26.1-snapshot-2",
|
|
38
|
+
"@instructure/ui-test-utils": "8.26.1-snapshot-2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16.8 <=17"
|