@instructure/ui-navigation 8.38.2-snapshot-7 → 8.39.0
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 +5 -2
- package/es/Navigation/index.js +5 -5
- package/lib/Navigation/index.js +5 -4
- package/package.json +24 -24
- package/src/Navigation/README.md +12 -1
- package/src/Navigation/index.tsx +11 -2
- 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,9 +3,12 @@
|
|
|
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
|
-
|
|
6
|
+
# [8.39.0](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.39.0) (2023-07-21)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **instui-config,shared-types,ui-navigation,ui-side-nav-bar,ui:** add side-nav-bar component and deprecate navigation ([45848bf](https://github.com/instructure/instructure-ui/commit/45848bf5feea16e05c19e559c03e53e4b0637412))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/Navigation/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class, _class2;
|
|
1
|
+
var _dec, _dec2, _dec3, _class, _class2;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -25,7 +25,7 @@ var _dec, _dec2, _class, _class2;
|
|
|
25
25
|
/** @jsx jsx */
|
|
26
26
|
import React, { Component, Children } from 'react';
|
|
27
27
|
import { testable } from '@instructure/ui-testable';
|
|
28
|
-
import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
28
|
+
import { omitProps, safeCloneElement, deprecated } 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';
|
|
@@ -41,11 +41,11 @@ const navMinimized = ({
|
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
---
|
|
44
|
-
category: components
|
|
44
|
+
category: components/deprecated
|
|
45
45
|
---
|
|
46
46
|
@tsProps
|
|
47
47
|
**/
|
|
48
|
-
let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class Navigation extends Component {
|
|
48
|
+
let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec3 = deprecated('9.0.0', null, 'This component is deprecated and will be removed in a later version. Use <SideNavBar /> instead.'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Navigation extends Component {
|
|
49
49
|
constructor(props) {
|
|
50
50
|
super(props);
|
|
51
51
|
this.ref = null;
|
|
@@ -125,6 +125,6 @@ let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
|
|
|
125
125
|
defaultMinimized: false,
|
|
126
126
|
// TODO we should investigate later if it used or not
|
|
127
127
|
onClick: function (_e) {}
|
|
128
|
-
}, _class2.Item = NavigationItem, _class2)) || _class) || _class);
|
|
128
|
+
}, _class2.Item = NavigationItem, _class2)) || _class) || _class) || _class);
|
|
129
129
|
export default Navigation;
|
|
130
130
|
export { Navigation, NavigationItem };
|
package/lib/Navigation/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
18
18
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
19
19
|
var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
|
|
20
|
+
var _deprecated = require("@instructure/ui-react-utils/lib/deprecated.js");
|
|
20
21
|
var _IconMoveStartLine = require("@instructure/ui-icons/lib/IconMoveStartLine.js");
|
|
21
22
|
var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
|
|
22
23
|
var _emotion = require("@instructure/emotion");
|
|
@@ -24,7 +25,7 @@ var _NavigationItem = require("./NavigationItem");
|
|
|
24
25
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
25
26
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
26
27
|
var _props = require("./props");
|
|
27
|
-
var _dec, _dec2, _class, _class2;
|
|
28
|
+
var _dec, _dec2, _dec3, _class, _class2;
|
|
28
29
|
/*
|
|
29
30
|
* The MIT License (MIT)
|
|
30
31
|
*
|
|
@@ -57,11 +58,11 @@ const navMinimized = ({
|
|
|
57
58
|
|
|
58
59
|
/**
|
|
59
60
|
---
|
|
60
|
-
category: components
|
|
61
|
+
category: components/deprecated
|
|
61
62
|
---
|
|
62
63
|
@tsProps
|
|
63
64
|
**/
|
|
64
|
-
let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Navigation extends _react.Component {
|
|
65
|
+
let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec3 = (0, _deprecated.deprecated)('9.0.0', null, 'This component is deprecated and will be removed in a later version. Use <SideNavBar /> instead.'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Navigation extends _react.Component {
|
|
65
66
|
constructor(props) {
|
|
66
67
|
super(props);
|
|
67
68
|
this.ref = null;
|
|
@@ -141,7 +142,7 @@ let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
|
|
|
141
142
|
defaultMinimized: false,
|
|
142
143
|
// TODO we should investigate later if it used or not
|
|
143
144
|
onClick: function (_e) {}
|
|
144
|
-
}, _class2.Item = _NavigationItem.NavigationItem, _class2)) || _class) || _class);
|
|
145
|
+
}, _class2.Item = _NavigationItem.NavigationItem, _class2)) || _class) || _class) || _class);
|
|
145
146
|
exports.Navigation = Navigation;
|
|
146
147
|
var _default = Navigation;
|
|
147
148
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-navigation",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.39.0",
|
|
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.
|
|
27
|
-
"@instructure/ui-color-utils": "8.
|
|
28
|
-
"@instructure/ui-test-locator": "8.
|
|
29
|
-
"@instructure/ui-test-utils": "8.
|
|
30
|
-
"@instructure/ui-themes": "8.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.39.0",
|
|
27
|
+
"@instructure/ui-color-utils": "8.39.0",
|
|
28
|
+
"@instructure/ui-test-locator": "8.39.0",
|
|
29
|
+
"@instructure/ui-test-utils": "8.39.0",
|
|
30
|
+
"@instructure/ui-themes": "8.39.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.22.6",
|
|
34
|
-
"@instructure/console": "8.
|
|
35
|
-
"@instructure/debounce": "8.
|
|
36
|
-
"@instructure/emotion": "8.
|
|
37
|
-
"@instructure/shared-types": "8.
|
|
38
|
-
"@instructure/ui-a11y-content": "8.
|
|
39
|
-
"@instructure/ui-a11y-utils": "8.
|
|
40
|
-
"@instructure/ui-badge": "8.
|
|
41
|
-
"@instructure/ui-dom-utils": "8.
|
|
42
|
-
"@instructure/ui-focusable": "8.
|
|
43
|
-
"@instructure/ui-icons": "8.
|
|
44
|
-
"@instructure/ui-menu": "8.
|
|
45
|
-
"@instructure/ui-prop-types": "8.
|
|
46
|
-
"@instructure/ui-react-utils": "8.
|
|
47
|
-
"@instructure/ui-testable": "8.
|
|
48
|
-
"@instructure/ui-tooltip": "8.
|
|
49
|
-
"@instructure/ui-truncate-list": "8.
|
|
50
|
-
"@instructure/ui-utils": "8.
|
|
51
|
-
"@instructure/ui-view": "8.
|
|
34
|
+
"@instructure/console": "8.39.0",
|
|
35
|
+
"@instructure/debounce": "8.39.0",
|
|
36
|
+
"@instructure/emotion": "8.39.0",
|
|
37
|
+
"@instructure/shared-types": "8.39.0",
|
|
38
|
+
"@instructure/ui-a11y-content": "8.39.0",
|
|
39
|
+
"@instructure/ui-a11y-utils": "8.39.0",
|
|
40
|
+
"@instructure/ui-badge": "8.39.0",
|
|
41
|
+
"@instructure/ui-dom-utils": "8.39.0",
|
|
42
|
+
"@instructure/ui-focusable": "8.39.0",
|
|
43
|
+
"@instructure/ui-icons": "8.39.0",
|
|
44
|
+
"@instructure/ui-menu": "8.39.0",
|
|
45
|
+
"@instructure/ui-prop-types": "8.39.0",
|
|
46
|
+
"@instructure/ui-react-utils": "8.39.0",
|
|
47
|
+
"@instructure/ui-testable": "8.39.0",
|
|
48
|
+
"@instructure/ui-tooltip": "8.39.0",
|
|
49
|
+
"@instructure/ui-truncate-list": "8.39.0",
|
|
50
|
+
"@instructure/ui-utils": "8.39.0",
|
|
51
|
+
"@instructure/ui-view": "8.39.0",
|
|
52
52
|
"prop-types": "^15.8.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
package/src/Navigation/README.md
CHANGED
|
@@ -4,7 +4,18 @@ describes: Navigation
|
|
|
4
4
|
|
|
5
5
|
A top-level `Navigation` component.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```js
|
|
8
|
+
---
|
|
9
|
+
embed: true
|
|
10
|
+
---
|
|
11
|
+
<ToggleBlockquote
|
|
12
|
+
summary="DEPRECATED"
|
|
13
|
+
>
|
|
14
|
+
<ToggleBlockquote.Paragraph>
|
|
15
|
+
This component is deprecated. Please use <Link href="#SideNavBar">SideNavBar</Link> instead.
|
|
16
|
+
</ToggleBlockquote.Paragraph>
|
|
17
|
+
</ToggleBlockquote>
|
|
18
|
+
```
|
|
8
19
|
|
|
9
20
|
```js
|
|
10
21
|
---
|
package/src/Navigation/index.tsx
CHANGED
|
@@ -26,7 +26,11 @@ import React, { Component, Children, ReactElement } from 'react'
|
|
|
26
26
|
|
|
27
27
|
import { testable } from '@instructure/ui-testable'
|
|
28
28
|
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
omitProps,
|
|
31
|
+
safeCloneElement,
|
|
32
|
+
deprecated
|
|
33
|
+
} from '@instructure/ui-react-utils'
|
|
30
34
|
import { IconMoveStartLine } from '@instructure/ui-icons'
|
|
31
35
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content'
|
|
32
36
|
import { withStyle, jsx } from '@instructure/emotion'
|
|
@@ -44,13 +48,18 @@ const navMinimized = ({ minimized }: { minimized: boolean }) => ({
|
|
|
44
48
|
|
|
45
49
|
/**
|
|
46
50
|
---
|
|
47
|
-
category: components
|
|
51
|
+
category: components/deprecated
|
|
48
52
|
---
|
|
49
53
|
@tsProps
|
|
50
54
|
**/
|
|
51
55
|
|
|
52
56
|
@withStyle(generateStyle, generateComponentTheme)
|
|
53
57
|
@testable()
|
|
58
|
+
@deprecated(
|
|
59
|
+
'9.0.0',
|
|
60
|
+
null,
|
|
61
|
+
'This component is deprecated and will be removed in a later version. Use <SideNavBar /> instead.'
|
|
62
|
+
)
|
|
54
63
|
class Navigation extends Component<NavigationProps, NavigationState> {
|
|
55
64
|
static readonly componentId = 'Navigation'
|
|
56
65
|
|