@instructure/ui-navigation 8.12.1-snapshot.45 → 8.12.1-snapshot.51
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/AppNavLocator.js +4 -4
- package/es/AppNav/Item/index.js +2 -2
- package/es/AppNav/index.js +2 -2
- package/es/Navigation/NavigationItem/NavigationItemLocator.js +3 -1
- package/es/Navigation/NavigationItem/index.js +2 -2
- package/es/Navigation/NavigationLocator.js +4 -4
- package/es/Navigation/index.js +8 -6
- package/lib/AppNav/AppNavLocator.js +4 -4
- package/lib/AppNav/Item/index.js +3 -3
- package/lib/AppNav/Item/props.js +1 -1
- package/lib/AppNav/index.js +2 -2
- package/lib/AppNav/props.js +1 -1
- package/lib/Navigation/NavigationItem/NavigationItemLocator.js +3 -1
- package/lib/Navigation/NavigationItem/index.js +3 -3
- package/lib/Navigation/NavigationItem/props.js +1 -1
- package/lib/Navigation/NavigationLocator.js +4 -4
- package/lib/Navigation/index.js +10 -7
- package/lib/Navigation/locator.js +4 -4
- package/lib/Navigation/props.js +1 -1
- package/package.json +24 -24
|
@@ -25,10 +25,10 @@ import { locator } from '@instructure/ui-test-locator';
|
|
|
25
25
|
import { AppNav } from './index';
|
|
26
26
|
import { AppNavItemLocator } from './Item/AppNavItemLocator';
|
|
27
27
|
export const AppNavLocator = locator(AppNav.selector, {
|
|
28
|
-
findAllItems: (
|
|
29
|
-
return AppNavItemLocator.findAll(...
|
|
28
|
+
findAllItems: function () {
|
|
29
|
+
return AppNavItemLocator.findAll(...arguments);
|
|
30
30
|
},
|
|
31
|
-
findItem: (
|
|
32
|
-
return AppNavItemLocator.find(...
|
|
31
|
+
findItem: function () {
|
|
32
|
+
return AppNavItemLocator.find(...arguments);
|
|
33
33
|
}
|
|
34
34
|
});
|
package/es/AppNav/Item/index.js
CHANGED
|
@@ -44,8 +44,8 @@ id: AppNav.Item
|
|
|
44
44
|
**/
|
|
45
45
|
|
|
46
46
|
let Item = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Item extends Component {
|
|
47
|
-
constructor(
|
|
48
|
-
super(...
|
|
47
|
+
constructor() {
|
|
48
|
+
super(...arguments);
|
|
49
49
|
this.ref = null;
|
|
50
50
|
|
|
51
51
|
this.handleRef = el => {
|
package/es/AppNav/index.js
CHANGED
|
@@ -45,8 +45,8 @@ category: components
|
|
|
45
45
|
**/
|
|
46
46
|
|
|
47
47
|
let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class AppNav extends Component {
|
|
48
|
-
constructor(
|
|
49
|
-
super(...
|
|
48
|
+
constructor() {
|
|
49
|
+
super(...arguments);
|
|
50
50
|
this.state = {
|
|
51
51
|
isMeasuring: false
|
|
52
52
|
};
|
|
@@ -26,5 +26,7 @@ import { locator } from '@instructure/ui-test-locator'; // eslint-disable-next-l
|
|
|
26
26
|
import { TooltipLocator } from '@instructure/ui-tooltip/es/Tooltip/TooltipLocator';
|
|
27
27
|
import { NavigationItem } from './index';
|
|
28
28
|
export const NavigationItemLocator = locator(NavigationItem.selector, {
|
|
29
|
-
findTooltipContent: (
|
|
29
|
+
findTooltipContent: function () {
|
|
30
|
+
return TooltipLocator.findContent(...arguments);
|
|
31
|
+
}
|
|
30
32
|
});
|
|
@@ -42,8 +42,8 @@ id: Navigation.Item
|
|
|
42
42
|
**/
|
|
43
43
|
|
|
44
44
|
let NavigationItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class NavigationItem extends Component {
|
|
45
|
-
constructor(
|
|
46
|
-
super(...
|
|
45
|
+
constructor() {
|
|
46
|
+
super(...arguments);
|
|
47
47
|
this.ref = null;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -26,10 +26,10 @@ import { Navigation } from './index';
|
|
|
26
26
|
import { NavigationItemLocator } from './NavigationItem/NavigationItemLocator';
|
|
27
27
|
export { NavigationItemLocator };
|
|
28
28
|
export const NavigationLocator = locator(Navigation.selector, {
|
|
29
|
-
findAllItems: (
|
|
30
|
-
return NavigationItemLocator.findAll(...
|
|
29
|
+
findAllItems: function () {
|
|
30
|
+
return NavigationItemLocator.findAll(...arguments);
|
|
31
31
|
},
|
|
32
|
-
findItem: (
|
|
33
|
-
return NavigationItemLocator.find(...
|
|
32
|
+
findItem: function () {
|
|
33
|
+
return NavigationItemLocator.find(...arguments);
|
|
34
34
|
}
|
|
35
35
|
});
|
package/es/Navigation/index.js
CHANGED
|
@@ -36,11 +36,12 @@ import generateStyle from './styles';
|
|
|
36
36
|
import generateComponentTheme from './theme';
|
|
37
37
|
import { allowedProps, propTypes } from './props';
|
|
38
38
|
|
|
39
|
-
const navMinimized =
|
|
40
|
-
minimized
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
39
|
+
const navMinimized = _ref => {
|
|
40
|
+
let minimized = _ref.minimized;
|
|
41
|
+
return {
|
|
42
|
+
minimized: !minimized
|
|
43
|
+
};
|
|
44
|
+
};
|
|
44
45
|
/**
|
|
45
46
|
---
|
|
46
47
|
category: components
|
|
@@ -90,7 +91,8 @@ let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
|
|
|
90
91
|
return !!this.state.minimized;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
isControlled(
|
|
94
|
+
isControlled() {
|
|
95
|
+
let props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props;
|
|
94
96
|
return typeof props.minimized === 'boolean';
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -35,11 +35,11 @@ var _AppNavItemLocator = require("./Item/AppNavItemLocator");
|
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
37
|
const AppNavLocator = (0, _locator.locator)(_index.AppNav.selector, {
|
|
38
|
-
findAllItems: (
|
|
39
|
-
return _AppNavItemLocator.AppNavItemLocator.findAll(...
|
|
38
|
+
findAllItems: function () {
|
|
39
|
+
return _AppNavItemLocator.AppNavItemLocator.findAll(...arguments);
|
|
40
40
|
},
|
|
41
|
-
findItem: (
|
|
42
|
-
return _AppNavItemLocator.AppNavItemLocator.find(...
|
|
41
|
+
findItem: function () {
|
|
42
|
+
return _AppNavItemLocator.AppNavItemLocator.find(...arguments);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
exports.AppNavLocator = AppNavLocator;
|
package/lib/AppNav/Item/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.Item = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -43,8 +43,8 @@ id: AppNav.Item
|
|
|
43
43
|
@module Item
|
|
44
44
|
**/
|
|
45
45
|
let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Item extends _react.Component {
|
|
46
|
-
constructor(
|
|
47
|
-
super(...
|
|
46
|
+
constructor() {
|
|
47
|
+
super(...arguments);
|
|
48
48
|
this.ref = null;
|
|
49
49
|
|
|
50
50
|
this.handleRef = el => {
|
package/lib/AppNav/Item/props.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
package/lib/AppNav/index.js
CHANGED
|
@@ -43,8 +43,8 @@ category: components
|
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
45
|
let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class AppNav extends _react.Component {
|
|
46
|
-
constructor(
|
|
47
|
-
super(...
|
|
46
|
+
constructor() {
|
|
47
|
+
super(...arguments);
|
|
48
48
|
this.state = {
|
|
49
49
|
isMeasuring: false
|
|
50
50
|
};
|
package/lib/AppNav/props.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -36,6 +36,8 @@ var _index = require("./index");
|
|
|
36
36
|
*/
|
|
37
37
|
// eslint-disable-next-line no-restricted-imports
|
|
38
38
|
const NavigationItemLocator = (0, _locator.locator)(_index.NavigationItem.selector, {
|
|
39
|
-
findTooltipContent: (
|
|
39
|
+
findTooltipContent: function () {
|
|
40
|
+
return _TooltipLocator.TooltipLocator.findContent(...arguments);
|
|
41
|
+
}
|
|
40
42
|
});
|
|
41
43
|
exports.NavigationItemLocator = NavigationItemLocator;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.NavigationItem = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -36,8 +36,8 @@ id: Navigation.Item
|
|
|
36
36
|
---
|
|
37
37
|
**/
|
|
38
38
|
let NavigationItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class NavigationItem extends _react.Component {
|
|
39
|
-
constructor(
|
|
40
|
-
super(...
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
41
|
this.ref = null;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -41,11 +41,11 @@ var _NavigationItemLocator = require("./NavigationItem/NavigationItemLocator");
|
|
|
41
41
|
* SOFTWARE.
|
|
42
42
|
*/
|
|
43
43
|
const NavigationLocator = (0, _locator.locator)(_index.Navigation.selector, {
|
|
44
|
-
findAllItems: (
|
|
45
|
-
return _NavigationItemLocator.NavigationItemLocator.findAll(...
|
|
44
|
+
findAllItems: function () {
|
|
45
|
+
return _NavigationItemLocator.NavigationItemLocator.findAll(...arguments);
|
|
46
46
|
},
|
|
47
|
-
findItem: (
|
|
48
|
-
return _NavigationItemLocator.NavigationItemLocator.find(...
|
|
47
|
+
findItem: function () {
|
|
48
|
+
return _NavigationItemLocator.NavigationItemLocator.find(...arguments);
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
exports.NavigationLocator = NavigationLocator;
|
package/lib/Navigation/index.js
CHANGED
|
@@ -5,13 +5,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.Navigation = void 0;
|
|
8
9
|
Object.defineProperty(exports, "NavigationItem", {
|
|
9
10
|
enumerable: true,
|
|
10
11
|
get: function () {
|
|
11
12
|
return _NavigationItem.NavigationItem;
|
|
12
13
|
}
|
|
13
14
|
});
|
|
14
|
-
exports.
|
|
15
|
+
exports.default = void 0;
|
|
15
16
|
|
|
16
17
|
var _react = require("react");
|
|
17
18
|
|
|
@@ -37,11 +38,12 @@ var _props = require("./props");
|
|
|
37
38
|
|
|
38
39
|
var _dec, _dec2, _class, _class2, _temp;
|
|
39
40
|
|
|
40
|
-
const navMinimized =
|
|
41
|
-
minimized
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
41
|
+
const navMinimized = _ref => {
|
|
42
|
+
let minimized = _ref.minimized;
|
|
43
|
+
return {
|
|
44
|
+
minimized: !minimized
|
|
45
|
+
};
|
|
46
|
+
};
|
|
45
47
|
/**
|
|
46
48
|
---
|
|
47
49
|
category: components
|
|
@@ -91,7 +93,8 @@ let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
|
|
|
91
93
|
return !!this.state.minimized;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
|
-
isControlled(
|
|
96
|
+
isControlled() {
|
|
97
|
+
let props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props;
|
|
95
98
|
return typeof props.minimized === 'boolean';
|
|
96
99
|
}
|
|
97
100
|
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "NavigationItemLocator", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return _NavigationLocator.
|
|
9
|
+
return _NavigationLocator.NavigationItemLocator;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "NavigationLocator", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return _NavigationLocator.
|
|
15
|
+
return _NavigationLocator.NavigationLocator;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
exports.default = void 0;
|
package/lib/Navigation/props.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-navigation",
|
|
3
|
-
"version": "8.12.1-snapshot.
|
|
3
|
+
"version": "8.12.1-snapshot.51+4d3697334",
|
|
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.12.1-snapshot.
|
|
28
|
-
"@instructure/ui-color-utils": "8.12.1-snapshot.
|
|
29
|
-
"@instructure/ui-test-locator": "8.12.1-snapshot.
|
|
30
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
31
|
-
"@instructure/ui-themes": "8.12.1-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.51+4d3697334",
|
|
28
|
+
"@instructure/ui-color-utils": "8.12.1-snapshot.51+4d3697334",
|
|
29
|
+
"@instructure/ui-test-locator": "8.12.1-snapshot.51+4d3697334",
|
|
30
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.51+4d3697334",
|
|
31
|
+
"@instructure/ui-themes": "8.12.1-snapshot.51+4d3697334"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.13.10",
|
|
35
|
-
"@instructure/console": "8.12.1-snapshot.
|
|
36
|
-
"@instructure/debounce": "8.12.1-snapshot.
|
|
37
|
-
"@instructure/emotion": "8.12.1-snapshot.
|
|
38
|
-
"@instructure/shared-types": "8.12.1-snapshot.
|
|
39
|
-
"@instructure/ui-a11y-content": "8.12.1-snapshot.
|
|
40
|
-
"@instructure/ui-a11y-utils": "8.12.1-snapshot.
|
|
41
|
-
"@instructure/ui-badge": "8.12.1-snapshot.
|
|
42
|
-
"@instructure/ui-dom-utils": "8.12.1-snapshot.
|
|
43
|
-
"@instructure/ui-focusable": "8.12.1-snapshot.
|
|
44
|
-
"@instructure/ui-icons": "8.12.1-snapshot.
|
|
45
|
-
"@instructure/ui-menu": "8.12.1-snapshot.
|
|
46
|
-
"@instructure/ui-prop-types": "8.12.1-snapshot.
|
|
47
|
-
"@instructure/ui-react-utils": "8.12.1-snapshot.
|
|
48
|
-
"@instructure/ui-testable": "8.12.1-snapshot.
|
|
49
|
-
"@instructure/ui-tooltip": "8.12.1-snapshot.
|
|
50
|
-
"@instructure/ui-utils": "8.12.1-snapshot.
|
|
51
|
-
"@instructure/ui-view": "8.12.1-snapshot.
|
|
35
|
+
"@instructure/console": "8.12.1-snapshot.51+4d3697334",
|
|
36
|
+
"@instructure/debounce": "8.12.1-snapshot.51+4d3697334",
|
|
37
|
+
"@instructure/emotion": "8.12.1-snapshot.51+4d3697334",
|
|
38
|
+
"@instructure/shared-types": "8.12.1-snapshot.51+4d3697334",
|
|
39
|
+
"@instructure/ui-a11y-content": "8.12.1-snapshot.51+4d3697334",
|
|
40
|
+
"@instructure/ui-a11y-utils": "8.12.1-snapshot.51+4d3697334",
|
|
41
|
+
"@instructure/ui-badge": "8.12.1-snapshot.51+4d3697334",
|
|
42
|
+
"@instructure/ui-dom-utils": "8.12.1-snapshot.51+4d3697334",
|
|
43
|
+
"@instructure/ui-focusable": "8.12.1-snapshot.51+4d3697334",
|
|
44
|
+
"@instructure/ui-icons": "8.12.1-snapshot.51+4d3697334",
|
|
45
|
+
"@instructure/ui-menu": "8.12.1-snapshot.51+4d3697334",
|
|
46
|
+
"@instructure/ui-prop-types": "8.12.1-snapshot.51+4d3697334",
|
|
47
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.51+4d3697334",
|
|
48
|
+
"@instructure/ui-testable": "8.12.1-snapshot.51+4d3697334",
|
|
49
|
+
"@instructure/ui-tooltip": "8.12.1-snapshot.51+4d3697334",
|
|
50
|
+
"@instructure/ui-utils": "8.12.1-snapshot.51+4d3697334",
|
|
51
|
+
"@instructure/ui-view": "8.12.1-snapshot.51+4d3697334",
|
|
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": "4d369733414715a70bae0628378e8d82214eab3e"
|
|
62
62
|
}
|