@instructure/ui-navigation 8.14.1-snapshot.7 → 8.14.1-snapshot.70

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.
@@ -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';
@@ -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.7+845d7ec6c",
3
+ "version": "8.14.1-snapshot.70+8a3583edd",
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.7+845d7ec6c",
28
- "@instructure/ui-color-utils": "8.14.1-snapshot.7+845d7ec6c",
29
- "@instructure/ui-test-locator": "8.14.1-snapshot.7+845d7ec6c",
30
- "@instructure/ui-test-utils": "8.14.1-snapshot.7+845d7ec6c",
31
- "@instructure/ui-themes": "8.14.1-snapshot.7+845d7ec6c"
27
+ "@instructure/ui-babel-preset": "8.14.1-snapshot.70+8a3583edd",
28
+ "@instructure/ui-color-utils": "8.14.1-snapshot.70+8a3583edd",
29
+ "@instructure/ui-test-locator": "8.14.1-snapshot.70+8a3583edd",
30
+ "@instructure/ui-test-utils": "8.14.1-snapshot.70+8a3583edd",
31
+ "@instructure/ui-themes": "8.14.1-snapshot.70+8a3583edd"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/console": "8.14.1-snapshot.7+845d7ec6c",
36
- "@instructure/debounce": "8.14.1-snapshot.7+845d7ec6c",
37
- "@instructure/emotion": "8.14.1-snapshot.7+845d7ec6c",
38
- "@instructure/shared-types": "8.14.1-snapshot.7+845d7ec6c",
39
- "@instructure/ui-a11y-content": "8.14.1-snapshot.7+845d7ec6c",
40
- "@instructure/ui-a11y-utils": "8.14.1-snapshot.7+845d7ec6c",
41
- "@instructure/ui-badge": "8.14.1-snapshot.7+845d7ec6c",
42
- "@instructure/ui-dom-utils": "8.14.1-snapshot.7+845d7ec6c",
43
- "@instructure/ui-focusable": "8.14.1-snapshot.7+845d7ec6c",
44
- "@instructure/ui-icons": "8.14.1-snapshot.7+845d7ec6c",
45
- "@instructure/ui-menu": "8.14.1-snapshot.7+845d7ec6c",
46
- "@instructure/ui-prop-types": "8.14.1-snapshot.7+845d7ec6c",
47
- "@instructure/ui-react-utils": "8.14.1-snapshot.7+845d7ec6c",
48
- "@instructure/ui-testable": "8.14.1-snapshot.7+845d7ec6c",
49
- "@instructure/ui-tooltip": "8.14.1-snapshot.7+845d7ec6c",
50
- "@instructure/ui-utils": "8.14.1-snapshot.7+845d7ec6c",
51
- "@instructure/ui-view": "8.14.1-snapshot.7+845d7ec6c",
35
+ "@instructure/console": "8.14.1-snapshot.70+8a3583edd",
36
+ "@instructure/debounce": "8.14.1-snapshot.70+8a3583edd",
37
+ "@instructure/emotion": "8.14.1-snapshot.70+8a3583edd",
38
+ "@instructure/shared-types": "8.14.1-snapshot.70+8a3583edd",
39
+ "@instructure/ui-a11y-content": "8.14.1-snapshot.70+8a3583edd",
40
+ "@instructure/ui-a11y-utils": "8.14.1-snapshot.70+8a3583edd",
41
+ "@instructure/ui-badge": "8.14.1-snapshot.70+8a3583edd",
42
+ "@instructure/ui-dom-utils": "8.14.1-snapshot.70+8a3583edd",
43
+ "@instructure/ui-focusable": "8.14.1-snapshot.70+8a3583edd",
44
+ "@instructure/ui-icons": "8.14.1-snapshot.70+8a3583edd",
45
+ "@instructure/ui-menu": "8.14.1-snapshot.70+8a3583edd",
46
+ "@instructure/ui-prop-types": "8.14.1-snapshot.70+8a3583edd",
47
+ "@instructure/ui-react-utils": "8.14.1-snapshot.70+8a3583edd",
48
+ "@instructure/ui-testable": "8.14.1-snapshot.70+8a3583edd",
49
+ "@instructure/ui-tooltip": "8.14.1-snapshot.70+8a3583edd",
50
+ "@instructure/ui-utils": "8.14.1-snapshot.70+8a3583edd",
51
+ "@instructure/ui-view": "8.14.1-snapshot.70+8a3583edd",
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": "845d7ec6c159d8946b22caa9d8fb3d0175167a6f"
61
+ "gitHead": "8a3583edd65823b7e241e1350e2f100555663d57"
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
- renderIcon,
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(label, [
117
- ScreenReaderContent
118
- ])
113
+ const labelIsForScreenReaders = matchComponentTypes<
114
+ React.ComponentElement<ScreenReaderContentProps, ScreenReaderContent>
115
+ >(label, [ScreenReaderContent])
119
116
 
120
117
  if (icon) {
121
118
  error(