@instructure/ui-navigation 8.14.1-snapshot.6 → 8.14.1-snapshot.69
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/AppNav/Item/index.js +1 -1
- package/lib/AppNav/Item/index.js +3 -1
- package/package.json +24 -24
- package/src/AppNav/Item/index.tsx +9 -12
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/AppNav/AppNavLocator.d.ts +14 -14
- package/types/AppNav/Item/AppNavItemLocator.d.ts +4 -4
- package/types/AppNav/Item/index.d.ts +7 -7
- package/types/AppNav/Item/index.d.ts.map +1 -1
- package/types/Navigation/NavigationItem/NavigationItemLocator.d.ts +4 -4
- package/types/Navigation/NavigationLocator.d.ts +14 -14
package/es/AppNav/Item/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var _dec, _dec2, _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 { logError as error } from '@instructure/console';
|
|
30
30
|
import { callRenderProp, getElementType, matchComponentTypes, passthroughProps } from '@instructure/ui-react-utils';
|
|
31
31
|
import { testable } from '@instructure/ui-testable';
|
package/lib/AppNav/Item/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.Item = void 0;
|
|
9
11
|
|
|
10
|
-
var _react = require("react");
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
13
|
|
|
12
14
|
var _console = require("@instructure/console");
|
|
13
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-navigation",
|
|
3
|
-
"version": "8.14.1-snapshot.
|
|
3
|
+
"version": "8.14.1-snapshot.69+ffdd1951c",
|
|
4
4
|
"description": "Main and application level navigational components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,31 +24,31 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.14.1-snapshot.
|
|
28
|
-
"@instructure/ui-color-utils": "8.14.1-snapshot.
|
|
29
|
-
"@instructure/ui-test-locator": "8.14.1-snapshot.
|
|
30
|
-
"@instructure/ui-test-utils": "8.14.1-snapshot.
|
|
31
|
-
"@instructure/ui-themes": "8.14.1-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.14.1-snapshot.69+ffdd1951c",
|
|
28
|
+
"@instructure/ui-color-utils": "8.14.1-snapshot.69+ffdd1951c",
|
|
29
|
+
"@instructure/ui-test-locator": "8.14.1-snapshot.69+ffdd1951c",
|
|
30
|
+
"@instructure/ui-test-utils": "8.14.1-snapshot.69+ffdd1951c",
|
|
31
|
+
"@instructure/ui-themes": "8.14.1-snapshot.69+ffdd1951c"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.13.10",
|
|
35
|
-
"@instructure/console": "8.14.1-snapshot.
|
|
36
|
-
"@instructure/debounce": "8.14.1-snapshot.
|
|
37
|
-
"@instructure/emotion": "8.14.1-snapshot.
|
|
38
|
-
"@instructure/shared-types": "8.14.1-snapshot.
|
|
39
|
-
"@instructure/ui-a11y-content": "8.14.1-snapshot.
|
|
40
|
-
"@instructure/ui-a11y-utils": "8.14.1-snapshot.
|
|
41
|
-
"@instructure/ui-badge": "8.14.1-snapshot.
|
|
42
|
-
"@instructure/ui-dom-utils": "8.14.1-snapshot.
|
|
43
|
-
"@instructure/ui-focusable": "8.14.1-snapshot.
|
|
44
|
-
"@instructure/ui-icons": "8.14.1-snapshot.
|
|
45
|
-
"@instructure/ui-menu": "8.14.1-snapshot.
|
|
46
|
-
"@instructure/ui-prop-types": "8.14.1-snapshot.
|
|
47
|
-
"@instructure/ui-react-utils": "8.14.1-snapshot.
|
|
48
|
-
"@instructure/ui-testable": "8.14.1-snapshot.
|
|
49
|
-
"@instructure/ui-tooltip": "8.14.1-snapshot.
|
|
50
|
-
"@instructure/ui-utils": "8.14.1-snapshot.
|
|
51
|
-
"@instructure/ui-view": "8.14.1-snapshot.
|
|
35
|
+
"@instructure/console": "8.14.1-snapshot.69+ffdd1951c",
|
|
36
|
+
"@instructure/debounce": "8.14.1-snapshot.69+ffdd1951c",
|
|
37
|
+
"@instructure/emotion": "8.14.1-snapshot.69+ffdd1951c",
|
|
38
|
+
"@instructure/shared-types": "8.14.1-snapshot.69+ffdd1951c",
|
|
39
|
+
"@instructure/ui-a11y-content": "8.14.1-snapshot.69+ffdd1951c",
|
|
40
|
+
"@instructure/ui-a11y-utils": "8.14.1-snapshot.69+ffdd1951c",
|
|
41
|
+
"@instructure/ui-badge": "8.14.1-snapshot.69+ffdd1951c",
|
|
42
|
+
"@instructure/ui-dom-utils": "8.14.1-snapshot.69+ffdd1951c",
|
|
43
|
+
"@instructure/ui-focusable": "8.14.1-snapshot.69+ffdd1951c",
|
|
44
|
+
"@instructure/ui-icons": "8.14.1-snapshot.69+ffdd1951c",
|
|
45
|
+
"@instructure/ui-menu": "8.14.1-snapshot.69+ffdd1951c",
|
|
46
|
+
"@instructure/ui-prop-types": "8.14.1-snapshot.69+ffdd1951c",
|
|
47
|
+
"@instructure/ui-react-utils": "8.14.1-snapshot.69+ffdd1951c",
|
|
48
|
+
"@instructure/ui-testable": "8.14.1-snapshot.69+ffdd1951c",
|
|
49
|
+
"@instructure/ui-tooltip": "8.14.1-snapshot.69+ffdd1951c",
|
|
50
|
+
"@instructure/ui-utils": "8.14.1-snapshot.69+ffdd1951c",
|
|
51
|
+
"@instructure/ui-view": "8.14.1-snapshot.69+ffdd1951c",
|
|
52
52
|
"prop-types": "^15"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"sideEffects": false,
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "ffdd1951c2d3160bb314a49fa64d7cf94444a18d"
|
|
62
62
|
}
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
+
|
|
24
25
|
/** @jsx jsx */
|
|
25
|
-
import { Component } from 'react'
|
|
26
|
+
import React, { Component } from 'react'
|
|
26
27
|
|
|
27
28
|
import { logError as error } from '@instructure/console'
|
|
28
29
|
import {
|
|
@@ -35,6 +36,8 @@ import { testable } from '@instructure/ui-testable'
|
|
|
35
36
|
|
|
36
37
|
import { View } from '@instructure/ui-view'
|
|
37
38
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content'
|
|
39
|
+
import type { ScreenReaderContentProps } from '@instructure/ui-a11y-content'
|
|
40
|
+
|
|
38
41
|
import { withStyle, jsx } from '@instructure/emotion'
|
|
39
42
|
|
|
40
43
|
import generateStyle from './styles'
|
|
@@ -101,21 +104,15 @@ class Item extends Component<AppNavItemProps> {
|
|
|
101
104
|
render() {
|
|
102
105
|
const ElementType = getElementType(Item, this.props)
|
|
103
106
|
|
|
104
|
-
const {
|
|
105
|
-
|
|
106
|
-
renderLabel,
|
|
107
|
-
href,
|
|
108
|
-
renderAfter,
|
|
109
|
-
cursor,
|
|
110
|
-
isDisabled
|
|
111
|
-
} = this.props
|
|
107
|
+
const { renderIcon, renderLabel, href, renderAfter, cursor, isDisabled } =
|
|
108
|
+
this.props
|
|
112
109
|
|
|
113
110
|
const icon = callRenderProp(renderIcon)
|
|
114
111
|
const label = callRenderProp(renderLabel)
|
|
115
112
|
|
|
116
|
-
const labelIsForScreenReaders = matchComponentTypes
|
|
117
|
-
ScreenReaderContent
|
|
118
|
-
])
|
|
113
|
+
const labelIsForScreenReaders = matchComponentTypes<
|
|
114
|
+
React.ComponentElement<ScreenReaderContentProps, ScreenReaderContent>
|
|
115
|
+
>(label, [ScreenReaderContent])
|
|
119
116
|
|
|
120
117
|
if (icon) {
|
|
121
118
|
error(
|