@instructure/ui-navigation 8.38.1-snapshot-6 → 8.38.1-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.
- package/CHANGELOG.md +1 -1
- package/es/Navigation/index.js +5 -5
- package/lib/Navigation/index.js +4 -5
- package/package.json +24 -24
- package/src/Navigation/README.md +2 -4
- package/src/Navigation/index.tsx +2 -7
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Navigation/index.d.ts +1 -1
- package/types/Navigation/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.38.1-snapshot-
|
|
6
|
+
## [8.38.1-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.38.0...v8.38.1-snapshot-7) (2023-06-05)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-navigation
|
|
9
9
|
|
package/es/Navigation/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2,
|
|
1
|
+
var _dec, _dec2, _class, _class2;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -25,7 +25,7 @@ var _dec, _dec2, _dec3, _class, _class2;
|
|
|
25
25
|
/** @jsx jsx */
|
|
26
26
|
import React, { Component, Children } from 'react';
|
|
27
27
|
import { testable } from '@instructure/ui-testable';
|
|
28
|
-
import {
|
|
28
|
+
import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
29
29
|
import { IconMoveStartLine } from '@instructure/ui-icons';
|
|
30
30
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
31
31
|
import { withStyle, jsx } from '@instructure/emotion';
|
|
@@ -42,11 +42,11 @@ const navMinimized = _ref => {
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
---
|
|
45
|
-
category: components
|
|
45
|
+
category: components
|
|
46
46
|
---
|
|
47
47
|
@tsProps
|
|
48
48
|
**/
|
|
49
|
-
let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(),
|
|
49
|
+
let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class Navigation extends Component {
|
|
50
50
|
constructor(props) {
|
|
51
51
|
super(props);
|
|
52
52
|
this.ref = null;
|
|
@@ -127,6 +127,6 @@ let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
|
|
|
127
127
|
defaultMinimized: false,
|
|
128
128
|
// TODO we should investigate later if it used or not
|
|
129
129
|
onClick: function (_e) {}
|
|
130
|
-
}, _class2.Item = NavigationItem, _class2)) || _class) || _class)
|
|
130
|
+
}, _class2.Item = NavigationItem, _class2)) || _class) || _class);
|
|
131
131
|
export default Navigation;
|
|
132
132
|
export { Navigation, NavigationItem };
|
package/lib/Navigation/index.js
CHANGED
|
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "NavigationItem", {
|
|
|
15
15
|
exports.default = void 0;
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
18
|
-
var _deprecated = require("@instructure/ui-react-utils/lib/deprecated.js");
|
|
19
18
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
20
19
|
var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
|
|
21
20
|
var _IconMoveStartLine = require("@instructure/ui-icons/lib/IconMoveStartLine.js");
|
|
@@ -25,7 +24,7 @@ var _NavigationItem = require("./NavigationItem");
|
|
|
25
24
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
26
25
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
27
26
|
var _props = require("./props");
|
|
28
|
-
var _dec, _dec2,
|
|
27
|
+
var _dec, _dec2, _class, _class2;
|
|
29
28
|
/*
|
|
30
29
|
* The MIT License (MIT)
|
|
31
30
|
*
|
|
@@ -59,11 +58,11 @@ const navMinimized = _ref => {
|
|
|
59
58
|
|
|
60
59
|
/**
|
|
61
60
|
---
|
|
62
|
-
category: components
|
|
61
|
+
category: components
|
|
63
62
|
---
|
|
64
63
|
@tsProps
|
|
65
64
|
**/
|
|
66
|
-
let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(),
|
|
65
|
+
let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Navigation extends _react.Component {
|
|
67
66
|
constructor(props) {
|
|
68
67
|
super(props);
|
|
69
68
|
this.ref = null;
|
|
@@ -144,7 +143,7 @@ let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
|
|
|
144
143
|
defaultMinimized: false,
|
|
145
144
|
// TODO we should investigate later if it used or not
|
|
146
145
|
onClick: function (_e) {}
|
|
147
|
-
}, _class2.Item = _NavigationItem.NavigationItem, _class2)) || _class) || _class)
|
|
146
|
+
}, _class2.Item = _NavigationItem.NavigationItem, _class2)) || _class) || _class);
|
|
148
147
|
exports.Navigation = Navigation;
|
|
149
148
|
var _default = Navigation;
|
|
150
149
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-navigation",
|
|
3
|
-
"version": "8.38.1-snapshot-
|
|
3
|
+
"version": "8.38.1-snapshot-7",
|
|
4
4
|
"description": "Main and application level navigational components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,32 +23,32 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.38.1-snapshot-
|
|
27
|
-
"@instructure/ui-color-utils": "8.38.1-snapshot-
|
|
28
|
-
"@instructure/ui-test-locator": "8.38.1-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "8.38.1-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "8.38.1-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "8.38.1-snapshot-7",
|
|
27
|
+
"@instructure/ui-color-utils": "8.38.1-snapshot-7",
|
|
28
|
+
"@instructure/ui-test-locator": "8.38.1-snapshot-7",
|
|
29
|
+
"@instructure/ui-test-utils": "8.38.1-snapshot-7",
|
|
30
|
+
"@instructure/ui-themes": "8.38.1-snapshot-7"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.21.0",
|
|
34
|
-
"@instructure/console": "8.38.1-snapshot-
|
|
35
|
-
"@instructure/debounce": "8.38.1-snapshot-
|
|
36
|
-
"@instructure/emotion": "8.38.1-snapshot-
|
|
37
|
-
"@instructure/shared-types": "8.38.1-snapshot-
|
|
38
|
-
"@instructure/ui-a11y-content": "8.38.1-snapshot-
|
|
39
|
-
"@instructure/ui-a11y-utils": "8.38.1-snapshot-
|
|
40
|
-
"@instructure/ui-badge": "8.38.1-snapshot-
|
|
41
|
-
"@instructure/ui-dom-utils": "8.38.1-snapshot-
|
|
42
|
-
"@instructure/ui-focusable": "8.38.1-snapshot-
|
|
43
|
-
"@instructure/ui-icons": "8.38.1-snapshot-
|
|
44
|
-
"@instructure/ui-menu": "8.38.1-snapshot-
|
|
45
|
-
"@instructure/ui-prop-types": "8.38.1-snapshot-
|
|
46
|
-
"@instructure/ui-react-utils": "8.38.1-snapshot-
|
|
47
|
-
"@instructure/ui-testable": "8.38.1-snapshot-
|
|
48
|
-
"@instructure/ui-tooltip": "8.38.1-snapshot-
|
|
49
|
-
"@instructure/ui-truncate-list": "8.38.1-snapshot-
|
|
50
|
-
"@instructure/ui-utils": "8.38.1-snapshot-
|
|
51
|
-
"@instructure/ui-view": "8.38.1-snapshot-
|
|
34
|
+
"@instructure/console": "8.38.1-snapshot-7",
|
|
35
|
+
"@instructure/debounce": "8.38.1-snapshot-7",
|
|
36
|
+
"@instructure/emotion": "8.38.1-snapshot-7",
|
|
37
|
+
"@instructure/shared-types": "8.38.1-snapshot-7",
|
|
38
|
+
"@instructure/ui-a11y-content": "8.38.1-snapshot-7",
|
|
39
|
+
"@instructure/ui-a11y-utils": "8.38.1-snapshot-7",
|
|
40
|
+
"@instructure/ui-badge": "8.38.1-snapshot-7",
|
|
41
|
+
"@instructure/ui-dom-utils": "8.38.1-snapshot-7",
|
|
42
|
+
"@instructure/ui-focusable": "8.38.1-snapshot-7",
|
|
43
|
+
"@instructure/ui-icons": "8.38.1-snapshot-7",
|
|
44
|
+
"@instructure/ui-menu": "8.38.1-snapshot-7",
|
|
45
|
+
"@instructure/ui-prop-types": "8.38.1-snapshot-7",
|
|
46
|
+
"@instructure/ui-react-utils": "8.38.1-snapshot-7",
|
|
47
|
+
"@instructure/ui-testable": "8.38.1-snapshot-7",
|
|
48
|
+
"@instructure/ui-tooltip": "8.38.1-snapshot-7",
|
|
49
|
+
"@instructure/ui-truncate-list": "8.38.1-snapshot-7",
|
|
50
|
+
"@instructure/ui-utils": "8.38.1-snapshot-7",
|
|
51
|
+
"@instructure/ui-view": "8.38.1-snapshot-7",
|
|
52
52
|
"prop-types": "^15.8.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
package/src/Navigation/README.md
CHANGED
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
describes: Navigation
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A top-level `Navigation` component.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
A top-level `Navigation` component
|
|
7
|
+
> Note that this component is experimental and its API might change significantly in the future.
|
|
10
8
|
|
|
11
9
|
```js
|
|
12
10
|
---
|
package/src/Navigation/index.tsx
CHANGED
|
@@ -26,11 +26,7 @@ import React, { Component, Children, ReactElement } from 'react'
|
|
|
26
26
|
|
|
27
27
|
import { testable } from '@instructure/ui-testable'
|
|
28
28
|
|
|
29
|
-
import {
|
|
30
|
-
deprecated,
|
|
31
|
-
omitProps,
|
|
32
|
-
safeCloneElement
|
|
33
|
-
} from '@instructure/ui-react-utils'
|
|
29
|
+
import { omitProps, safeCloneElement } from '@instructure/ui-react-utils'
|
|
34
30
|
import { IconMoveStartLine } from '@instructure/ui-icons'
|
|
35
31
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content'
|
|
36
32
|
import { withStyle, jsx } from '@instructure/emotion'
|
|
@@ -48,14 +44,13 @@ const navMinimized = ({ minimized }: { minimized: boolean }) => ({
|
|
|
48
44
|
|
|
49
45
|
/**
|
|
50
46
|
---
|
|
51
|
-
category: components
|
|
47
|
+
category: components
|
|
52
48
|
---
|
|
53
49
|
@tsProps
|
|
54
50
|
**/
|
|
55
51
|
|
|
56
52
|
@withStyle(generateStyle, generateComponentTheme)
|
|
57
53
|
@testable()
|
|
58
|
-
@deprecated('9.0.0', null, 'No one uses <Navigation>, so we will deprecate it.')
|
|
59
54
|
class Navigation extends Component<NavigationProps, NavigationState> {
|
|
60
55
|
static readonly componentId = 'Navigation'
|
|
61
56
|
|