@instructure/ui-navigation 8.13.1-snapshot.3 → 8.13.1-snapshot.41
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/Navigation/index.js +5 -5
- package/lib/Navigation/index.js +6 -4
- package/package.json +24 -24
- package/src/Navigation/README.md +4 -0
- package/src/Navigation/index.tsx +8 -2
- package/tsconfig.build.json +28 -2
- package/tsconfig.build.tsbuildinfo +1 -0
- package/types/AppNav/AppNavLocator.d.ts +182 -182
- package/types/AppNav/Item/AppNavItemLocator.d.ts +52 -52
- package/types/Navigation/NavigationItem/NavigationItemLocator.d.ts +52 -52
- package/types/Navigation/NavigationLocator.d.ts +182 -182
- package/types/Navigation/index.d.ts +1 -1
- package/types/Navigation/index.d.ts.map +1 -1
package/es/Navigation/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class, _class2, _temp;
|
|
1
|
+
var _dec, _dec2, _dec3, _class, _class2, _temp;
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* The MIT License (MIT)
|
|
@@ -27,7 +27,7 @@ var _dec, _dec2, _class, _class2, _temp;
|
|
|
27
27
|
/** @jsx jsx */
|
|
28
28
|
import { Component, Children } from 'react';
|
|
29
29
|
import { testable } from '@instructure/ui-testable';
|
|
30
|
-
import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
30
|
+
import { deprecated, omitProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
31
31
|
import { IconMoveStartLine } from '@instructure/ui-icons';
|
|
32
32
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
33
33
|
import { withStyle, jsx } from '@instructure/emotion';
|
|
@@ -44,12 +44,12 @@ const navMinimized = _ref => {
|
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
46
|
---
|
|
47
|
-
category: components
|
|
47
|
+
category: components/deprecated
|
|
48
48
|
---
|
|
49
49
|
**/
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Navigation extends Component {
|
|
52
|
+
let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec3 = deprecated('9.0.0', null, 'No one uses <Navigation>, so we will deprecate it.'), _dec(_class = _dec2(_class = _dec3(_class = (_temp = _class2 = class Navigation extends Component {
|
|
53
53
|
constructor(props) {
|
|
54
54
|
super();
|
|
55
55
|
this.ref = null;
|
|
@@ -144,6 +144,6 @@ let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
|
|
|
144
144
|
defaultMinimized: false,
|
|
145
145
|
onMinimized: function (event, minimized) {},
|
|
146
146
|
onClick: function (e) {}
|
|
147
|
-
}, _class2.Item = NavigationItem, _temp)) || _class) || _class);
|
|
147
|
+
}, _class2.Item = NavigationItem, _temp)) || _class) || _class) || _class);
|
|
148
148
|
export default Navigation;
|
|
149
149
|
export { Navigation, NavigationItem };
|
package/lib/Navigation/index.js
CHANGED
|
@@ -18,6 +18,8 @@ var _react = require("react");
|
|
|
18
18
|
|
|
19
19
|
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
20
20
|
|
|
21
|
+
var _deprecated = require("@instructure/ui-react-utils/lib/deprecated.js");
|
|
22
|
+
|
|
21
23
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
22
24
|
|
|
23
25
|
var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
|
|
@@ -36,7 +38,7 @@ var _theme = _interopRequireDefault(require("./theme"));
|
|
|
36
38
|
|
|
37
39
|
var _props = require("./props");
|
|
38
40
|
|
|
39
|
-
var _dec, _dec2, _class, _class2, _temp;
|
|
41
|
+
var _dec, _dec2, _dec3, _class, _class2, _temp;
|
|
40
42
|
|
|
41
43
|
const navMinimized = _ref => {
|
|
42
44
|
let minimized = _ref.minimized;
|
|
@@ -46,12 +48,12 @@ const navMinimized = _ref => {
|
|
|
46
48
|
};
|
|
47
49
|
/**
|
|
48
50
|
---
|
|
49
|
-
category: components
|
|
51
|
+
category: components/deprecated
|
|
50
52
|
---
|
|
51
53
|
**/
|
|
52
54
|
|
|
53
55
|
|
|
54
|
-
let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Navigation extends _react.Component {
|
|
56
|
+
let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec3 = (0, _deprecated.deprecated)('9.0.0', null, 'No one uses <Navigation>, so we will deprecate it.'), _dec(_class = _dec2(_class = _dec3(_class = (_temp = _class2 = class Navigation extends _react.Component {
|
|
55
57
|
constructor(props) {
|
|
56
58
|
super();
|
|
57
59
|
this.ref = null;
|
|
@@ -146,7 +148,7 @@ let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
|
|
|
146
148
|
defaultMinimized: false,
|
|
147
149
|
onMinimized: function (event, minimized) {},
|
|
148
150
|
onClick: function (e) {}
|
|
149
|
-
}, _class2.Item = _NavigationItem.NavigationItem, _temp)) || _class) || _class);
|
|
151
|
+
}, _class2.Item = _NavigationItem.NavigationItem, _temp)) || _class) || _class) || _class);
|
|
150
152
|
exports.Navigation = Navigation;
|
|
151
153
|
var _default = Navigation;
|
|
152
154
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-navigation",
|
|
3
|
-
"version": "8.13.1-snapshot.
|
|
3
|
+
"version": "8.13.1-snapshot.41+add2332d5",
|
|
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.13.1-snapshot.
|
|
28
|
-
"@instructure/ui-color-utils": "8.13.1-snapshot.
|
|
29
|
-
"@instructure/ui-test-locator": "8.13.1-snapshot.
|
|
30
|
-
"@instructure/ui-test-utils": "8.13.1-snapshot.
|
|
31
|
-
"@instructure/ui-themes": "8.13.1-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.13.1-snapshot.41+add2332d5",
|
|
28
|
+
"@instructure/ui-color-utils": "8.13.1-snapshot.41+add2332d5",
|
|
29
|
+
"@instructure/ui-test-locator": "8.13.1-snapshot.41+add2332d5",
|
|
30
|
+
"@instructure/ui-test-utils": "8.13.1-snapshot.41+add2332d5",
|
|
31
|
+
"@instructure/ui-themes": "8.13.1-snapshot.41+add2332d5"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.13.10",
|
|
35
|
-
"@instructure/console": "8.13.1-snapshot.
|
|
36
|
-
"@instructure/debounce": "8.13.1-snapshot.
|
|
37
|
-
"@instructure/emotion": "8.13.1-snapshot.
|
|
38
|
-
"@instructure/shared-types": "8.13.1-snapshot.
|
|
39
|
-
"@instructure/ui-a11y-content": "8.13.1-snapshot.
|
|
40
|
-
"@instructure/ui-a11y-utils": "8.13.1-snapshot.
|
|
41
|
-
"@instructure/ui-badge": "8.13.1-snapshot.
|
|
42
|
-
"@instructure/ui-dom-utils": "8.13.1-snapshot.
|
|
43
|
-
"@instructure/ui-focusable": "8.13.1-snapshot.
|
|
44
|
-
"@instructure/ui-icons": "8.13.1-snapshot.
|
|
45
|
-
"@instructure/ui-menu": "8.13.1-snapshot.
|
|
46
|
-
"@instructure/ui-prop-types": "8.13.1-snapshot.
|
|
47
|
-
"@instructure/ui-react-utils": "8.13.1-snapshot.
|
|
48
|
-
"@instructure/ui-testable": "8.13.1-snapshot.
|
|
49
|
-
"@instructure/ui-tooltip": "8.13.1-snapshot.
|
|
50
|
-
"@instructure/ui-utils": "8.13.1-snapshot.
|
|
51
|
-
"@instructure/ui-view": "8.13.1-snapshot.
|
|
35
|
+
"@instructure/console": "8.13.1-snapshot.41+add2332d5",
|
|
36
|
+
"@instructure/debounce": "8.13.1-snapshot.41+add2332d5",
|
|
37
|
+
"@instructure/emotion": "8.13.1-snapshot.41+add2332d5",
|
|
38
|
+
"@instructure/shared-types": "8.13.1-snapshot.41+add2332d5",
|
|
39
|
+
"@instructure/ui-a11y-content": "8.13.1-snapshot.41+add2332d5",
|
|
40
|
+
"@instructure/ui-a11y-utils": "8.13.1-snapshot.41+add2332d5",
|
|
41
|
+
"@instructure/ui-badge": "8.13.1-snapshot.41+add2332d5",
|
|
42
|
+
"@instructure/ui-dom-utils": "8.13.1-snapshot.41+add2332d5",
|
|
43
|
+
"@instructure/ui-focusable": "8.13.1-snapshot.41+add2332d5",
|
|
44
|
+
"@instructure/ui-icons": "8.13.1-snapshot.41+add2332d5",
|
|
45
|
+
"@instructure/ui-menu": "8.13.1-snapshot.41+add2332d5",
|
|
46
|
+
"@instructure/ui-prop-types": "8.13.1-snapshot.41+add2332d5",
|
|
47
|
+
"@instructure/ui-react-utils": "8.13.1-snapshot.41+add2332d5",
|
|
48
|
+
"@instructure/ui-testable": "8.13.1-snapshot.41+add2332d5",
|
|
49
|
+
"@instructure/ui-tooltip": "8.13.1-snapshot.41+add2332d5",
|
|
50
|
+
"@instructure/ui-utils": "8.13.1-snapshot.41+add2332d5",
|
|
51
|
+
"@instructure/ui-view": "8.13.1-snapshot.41+add2332d5",
|
|
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": "add2332d5dd43d3d931c4a1631748be96f09b49a"
|
|
62
62
|
}
|
package/src/Navigation/README.md
CHANGED
package/src/Navigation/index.tsx
CHANGED
|
@@ -26,7 +26,11 @@ import { Component, Children, ReactElement } from 'react'
|
|
|
26
26
|
|
|
27
27
|
import { testable } from '@instructure/ui-testable'
|
|
28
28
|
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
deprecated,
|
|
31
|
+
omitProps,
|
|
32
|
+
safeCloneElement
|
|
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'
|
|
@@ -43,11 +47,13 @@ const navMinimized = ({ minimized }) => ({ minimized: !minimized })
|
|
|
43
47
|
|
|
44
48
|
/**
|
|
45
49
|
---
|
|
46
|
-
category: components
|
|
50
|
+
category: components/deprecated
|
|
47
51
|
---
|
|
48
52
|
**/
|
|
53
|
+
|
|
49
54
|
@withStyle(generateStyle, generateComponentTheme)
|
|
50
55
|
@testable()
|
|
56
|
+
@deprecated('9.0.0', null, 'No one uses <Navigation>, so we will deprecate it.')
|
|
51
57
|
class Navigation extends Component<NavigationProps, NavigationState> {
|
|
52
58
|
static readonly componentId = 'Navigation'
|
|
53
59
|
|
package/tsconfig.build.json
CHANGED
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "../../tsconfig.build.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"outDir": "./types"
|
|
4
|
+
"outDir": "./types",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"composite": true
|
|
5
7
|
},
|
|
6
|
-
"include": ["src
|
|
8
|
+
"include": ["src"],
|
|
9
|
+
"references": [
|
|
10
|
+
{ "path": "../ui-babel-preset/tsconfig.build.json" },
|
|
11
|
+
{ "path": "../ui-color-utils/tsconfig.build.json" },
|
|
12
|
+
{ "path": "../ui-test-locator/tsconfig.build.json" },
|
|
13
|
+
{ "path": "../ui-test-utils/tsconfig.build.json" },
|
|
14
|
+
{ "path": "../ui-themes/tsconfig.build.json" },
|
|
15
|
+
{ "path": "../console/tsconfig.build.json" },
|
|
16
|
+
{ "path": "../debounce/tsconfig.build.json" },
|
|
17
|
+
{ "path": "../emotion/tsconfig.build.json" },
|
|
18
|
+
{ "path": "../shared-types/tsconfig.build.json" },
|
|
19
|
+
{ "path": "../ui-a11y-content/tsconfig.build.json" },
|
|
20
|
+
{ "path": "../ui-a11y-utils/tsconfig.build.json" },
|
|
21
|
+
{ "path": "../ui-badge/tsconfig.build.json" },
|
|
22
|
+
{ "path": "../ui-dom-utils/tsconfig.build.json" },
|
|
23
|
+
{ "path": "../ui-focusable/tsconfig.build.json" },
|
|
24
|
+
{ "path": "../ui-icons/tsconfig.build.json" },
|
|
25
|
+
{ "path": "../ui-menu/tsconfig.build.json" },
|
|
26
|
+
{ "path": "../ui-prop-types/tsconfig.build.json" },
|
|
27
|
+
{ "path": "../ui-react-utils/tsconfig.build.json" },
|
|
28
|
+
{ "path": "../ui-testable/tsconfig.build.json" },
|
|
29
|
+
{ "path": "../ui-tooltip/tsconfig.build.json" },
|
|
30
|
+
{ "path": "../ui-utils/tsconfig.build.json" },
|
|
31
|
+
{ "path": "../ui-view/tsconfig.build.json" }
|
|
32
|
+
]
|
|
7
33
|
}
|