@instructure/ui-top-nav-bar 10.26.1 → 11.0.1-snapshot-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 +30 -1
- package/es/TopNavBar/TopNavBarActionItems/index.js +5 -5
- package/es/TopNavBar/TopNavBarActionItems/props.js +1 -12
- package/es/TopNavBar/TopNavBarBrand/index.js +5 -5
- package/es/TopNavBar/TopNavBarBrand/props.js +1 -11
- package/es/TopNavBar/TopNavBarBreadcrumb/index.js +6 -5
- package/es/TopNavBar/TopNavBarBreadcrumb/props.js +1 -9
- package/es/TopNavBar/TopNavBarItem/index.js +6 -6
- package/es/TopNavBar/TopNavBarItem/props.js +1 -44
- package/es/TopNavBar/TopNavBarLayout/DesktopLayout/index.js +5 -5
- package/es/TopNavBar/TopNavBarLayout/DesktopLayout/props.js +2 -7
- package/es/TopNavBar/TopNavBarLayout/SmallViewportLayout/index.js +5 -5
- package/es/TopNavBar/TopNavBarLayout/SmallViewportLayout/props.js +2 -7
- package/es/TopNavBar/TopNavBarLayout/index.js +5 -6
- package/es/TopNavBar/TopNavBarLayout/props.js +1 -45
- package/es/TopNavBar/TopNavBarMenuItems/index.js +8 -7
- package/es/TopNavBar/TopNavBarMenuItems/props.js +1 -11
- package/es/TopNavBar/TopNavBarUser/index.js +5 -5
- package/es/TopNavBar/TopNavBarUser/props.js +1 -8
- package/es/TopNavBar/index.js +18 -6
- package/es/TopNavBar/props.js +1 -9
- package/es/TopNavBar/utils/mapItemsForDrilldown.js +2 -1
- package/lib/TopNavBar/TopNavBarActionItems/index.js +4 -4
- package/lib/TopNavBar/TopNavBarActionItems/props.js +1 -13
- package/lib/TopNavBar/TopNavBarBrand/index.js +4 -4
- package/lib/TopNavBar/TopNavBarBrand/props.js +1 -12
- package/lib/TopNavBar/TopNavBarBreadcrumb/index.js +5 -4
- package/lib/TopNavBar/TopNavBarBreadcrumb/props.js +1 -10
- package/lib/TopNavBar/TopNavBarItem/index.js +5 -5
- package/lib/TopNavBar/TopNavBarItem/props.js +1 -45
- package/lib/TopNavBar/TopNavBarLayout/DesktopLayout/index.js +4 -4
- package/lib/TopNavBar/TopNavBarLayout/DesktopLayout/props.js +1 -6
- package/lib/TopNavBar/TopNavBarLayout/SmallViewportLayout/index.js +4 -4
- package/lib/TopNavBar/TopNavBarLayout/SmallViewportLayout/props.js +1 -6
- package/lib/TopNavBar/TopNavBarLayout/index.js +4 -5
- package/lib/TopNavBar/TopNavBarLayout/props.js +1 -47
- package/lib/TopNavBar/TopNavBarMenuItems/index.js +7 -6
- package/lib/TopNavBar/TopNavBarMenuItems/props.js +1 -12
- package/lib/TopNavBar/TopNavBarUser/index.js +4 -4
- package/lib/TopNavBar/TopNavBarUser/props.js +1 -9
- package/lib/TopNavBar/index.js +19 -5
- package/lib/TopNavBar/props.js +1 -10
- package/lib/TopNavBar/utils/mapItemsForDrilldown.js +2 -1
- package/package.json +28 -31
- package/src/TopNavBar/TopNavBarActionItems/index.tsx +2 -8
- package/src/TopNavBar/TopNavBarActionItems/props.ts +1 -22
- package/src/TopNavBar/TopNavBarBrand/index.tsx +6 -5
- package/src/TopNavBar/TopNavBarBrand/props.ts +1 -16
- package/src/TopNavBar/TopNavBarBreadcrumb/index.tsx +13 -9
- package/src/TopNavBar/TopNavBarBreadcrumb/props.ts +3 -15
- package/src/TopNavBar/TopNavBarItem/index.tsx +6 -5
- package/src/TopNavBar/TopNavBarItem/props.ts +1 -51
- package/src/TopNavBar/TopNavBarLayout/DesktopLayout/index.tsx +2 -4
- package/src/TopNavBar/TopNavBarLayout/DesktopLayout/props.ts +3 -19
- package/src/TopNavBar/TopNavBarLayout/SmallViewportLayout/index.tsx +2 -4
- package/src/TopNavBar/TopNavBarLayout/SmallViewportLayout/props.ts +3 -18
- package/src/TopNavBar/TopNavBarLayout/index.tsx +1 -5
- package/src/TopNavBar/TopNavBarLayout/props.ts +1 -60
- package/src/TopNavBar/TopNavBarMenuItems/index.tsx +10 -5
- package/src/TopNavBar/TopNavBarMenuItems/props.ts +1 -19
- package/src/TopNavBar/TopNavBarUser/index.tsx +2 -4
- package/src/TopNavBar/TopNavBarUser/props.ts +1 -14
- package/src/TopNavBar/index.tsx +2 -4
- package/src/TopNavBar/props.ts +2 -17
- package/src/TopNavBar/utils/mapItemsForDrilldown.tsx +1 -1
- package/tsconfig.build.json +1 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TopNavBar/TopNavBarActionItems/index.d.ts +0 -1
- package/types/TopNavBar/TopNavBarActionItems/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarActionItems/props.d.ts +2 -3
- package/types/TopNavBar/TopNavBarActionItems/props.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarBrand/index.d.ts +0 -1
- package/types/TopNavBar/TopNavBarBrand/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarBrand/props.d.ts +2 -3
- package/types/TopNavBar/TopNavBarBrand/props.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarBreadcrumb/index.d.ts +0 -5
- package/types/TopNavBar/TopNavBarBreadcrumb/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarBreadcrumb/props.d.ts +2 -3
- package/types/TopNavBar/TopNavBarBreadcrumb/props.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarItem/index.d.ts +0 -1
- package/types/TopNavBar/TopNavBarItem/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarItem/props.d.ts +2 -13
- package/types/TopNavBar/TopNavBarItem/props.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarLayout/DesktopLayout/index.d.ts +0 -1
- package/types/TopNavBar/TopNavBarLayout/DesktopLayout/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarLayout/DesktopLayout/props.d.ts +2 -3
- package/types/TopNavBar/TopNavBarLayout/DesktopLayout/props.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarLayout/SmallViewportLayout/index.d.ts +0 -1
- package/types/TopNavBar/TopNavBarLayout/SmallViewportLayout/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarLayout/SmallViewportLayout/props.d.ts +2 -3
- package/types/TopNavBar/TopNavBarLayout/SmallViewportLayout/props.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarLayout/index.d.ts +0 -1
- package/types/TopNavBar/TopNavBarLayout/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarLayout/props.d.ts +2 -6
- package/types/TopNavBar/TopNavBarLayout/props.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarMenuItems/index.d.ts +0 -1
- package/types/TopNavBar/TopNavBarMenuItems/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarMenuItems/props.d.ts +2 -3
- package/types/TopNavBar/TopNavBarMenuItems/props.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarUser/index.d.ts +0 -1
- package/types/TopNavBar/TopNavBarUser/index.d.ts.map +1 -1
- package/types/TopNavBar/TopNavBarUser/props.d.ts +2 -3
- package/types/TopNavBar/TopNavBarUser/props.d.ts.map +1 -1
- package/types/TopNavBar/index.d.ts +0 -1
- package/types/TopNavBar/index.d.ts.map +1 -1
- package/types/TopNavBar/props.d.ts +2 -3
- package/types/TopNavBar/props.d.ts.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec,
|
|
1
|
+
var _dec, _class, _TopNavBarUser;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -26,11 +26,10 @@ var _dec, _dec2, _class, _TopNavBarUser;
|
|
|
26
26
|
import { Component, Children } from 'react';
|
|
27
27
|
import { error } from '@instructure/console';
|
|
28
28
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
29
|
-
import { testable } from '@instructure/ui-testable';
|
|
30
29
|
import { withStyle } from '@instructure/emotion';
|
|
31
30
|
import { TopNavBarContext } from '../TopNavBarContext';
|
|
32
31
|
import generateStyle from './styles';
|
|
33
|
-
import {
|
|
32
|
+
import { allowedProps } from './props';
|
|
34
33
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
35
34
|
/**
|
|
36
35
|
---
|
|
@@ -39,7 +38,7 @@ id: TopNavBar.User
|
|
|
39
38
|
---
|
|
40
39
|
@module TopNavBarUser
|
|
41
40
|
**/
|
|
42
|
-
let TopNavBarUser = (_dec = withStyle(generateStyle, null),
|
|
41
|
+
let TopNavBarUser = (_dec = withStyle(generateStyle, null), _dec(_class = (_TopNavBarUser = class TopNavBarUser extends Component {
|
|
43
42
|
constructor(...args) {
|
|
44
43
|
super(...args);
|
|
45
44
|
this.ref = null;
|
|
@@ -86,9 +85,10 @@ let TopNavBarUser = (_dec = withStyle(generateStyle, null), _dec2 = testable(),
|
|
|
86
85
|
...omitProps(this.props, allowedProps),
|
|
87
86
|
ref: this.handleRef,
|
|
88
87
|
css: styles === null || styles === void 0 ? void 0 : styles.topNavBarUser,
|
|
88
|
+
"data-cid": "TopNavBarUser",
|
|
89
89
|
children: this.content
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
}, _TopNavBarUser.displayName = "TopNavBarUser", _TopNavBarUser.componentId = 'TopNavBar.User', _TopNavBarUser.
|
|
92
|
+
}, _TopNavBarUser.displayName = "TopNavBarUser", _TopNavBarUser.componentId = 'TopNavBar.User', _TopNavBarUser.allowedProps = allowedProps, _TopNavBarUser.defaultProps = {}, _TopNavBarUser.contextType = TopNavBarContext, _TopNavBarUser)) || _class);
|
|
93
93
|
export { TopNavBarUser };
|
|
94
94
|
export default TopNavBarUser;
|
|
@@ -22,12 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
|
|
27
|
-
import { TopNavBarItem } from '../TopNavBarItem';
|
|
28
|
-
const propTypes = {
|
|
29
|
-
children: ChildrenPropTypes.oneOf([TopNavBarItem]).isRequired,
|
|
30
|
-
elementRef: PropTypes.func
|
|
31
|
-
};
|
|
32
25
|
const allowedProps = ['children', 'elementRef'];
|
|
33
|
-
export {
|
|
26
|
+
export { allowedProps };
|
package/es/TopNavBar/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class, _TopNavBar;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -25,7 +24,6 @@ var _dec, _class, _TopNavBar;
|
|
|
25
24
|
|
|
26
25
|
import { Component } from 'react';
|
|
27
26
|
import { error } from '@instructure/console';
|
|
28
|
-
import { testable } from '@instructure/ui-testable';
|
|
29
27
|
import { px } from '@instructure/ui-utils';
|
|
30
28
|
import { matchComponentTypes } from '@instructure/ui-react-utils';
|
|
31
29
|
import { Responsive } from '@instructure/ui-responsive';
|
|
@@ -37,14 +35,14 @@ import { TopNavBarMenuItems } from './TopNavBarMenuItems';
|
|
|
37
35
|
import { TopNavBarUser } from './TopNavBarUser';
|
|
38
36
|
import { TopNavBarBreadcrumb } from './TopNavBarBreadcrumb';
|
|
39
37
|
import { TopNavBarContext } from './TopNavBarContext';
|
|
40
|
-
import {
|
|
38
|
+
import { allowedProps } from './props';
|
|
41
39
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
42
40
|
/**
|
|
43
41
|
---
|
|
44
42
|
category: components
|
|
45
43
|
---
|
|
46
44
|
**/
|
|
47
|
-
|
|
45
|
+
class TopNavBar extends Component {
|
|
48
46
|
constructor(...args) {
|
|
49
47
|
super(...args);
|
|
50
48
|
this.ref = null;
|
|
@@ -65,6 +63,7 @@ let TopNavBar = (_dec = testable(), _dec(_class = (_TopNavBar = class TopNavBar
|
|
|
65
63
|
mediaQueryMatch = _this$props.mediaQueryMatch,
|
|
66
64
|
inverseColor = _this$props.inverseColor;
|
|
67
65
|
return _jsx(Responsive, {
|
|
66
|
+
"data-cid": "TopNavBar",
|
|
68
67
|
elementRef: this.handleRef,
|
|
69
68
|
match: mediaQueryMatch,
|
|
70
69
|
query: {
|
|
@@ -95,10 +94,23 @@ let TopNavBar = (_dec = testable(), _dec(_class = (_TopNavBar = class TopNavBar
|
|
|
95
94
|
}
|
|
96
95
|
});
|
|
97
96
|
}
|
|
98
|
-
}
|
|
97
|
+
}
|
|
98
|
+
TopNavBar.displayName = "TopNavBar";
|
|
99
|
+
TopNavBar.componentId = 'TopNavBar';
|
|
100
|
+
// TODO: mention subcomponent registration in "new component" docs
|
|
101
|
+
TopNavBar.ActionItems = TopNavBarActionItems;
|
|
102
|
+
TopNavBar.Brand = TopNavBarBrand;
|
|
103
|
+
TopNavBar.Item = TopNavBarItem;
|
|
104
|
+
TopNavBar.Layout = TopNavBarLayout;
|
|
105
|
+
TopNavBar.MenuItems = TopNavBarMenuItems;
|
|
106
|
+
TopNavBar.User = TopNavBarUser;
|
|
107
|
+
TopNavBar.Breadcrumb = TopNavBarBreadcrumb;
|
|
108
|
+
TopNavBar.contextType = TopNavBarContext;
|
|
109
|
+
TopNavBar.allowedProps = allowedProps;
|
|
110
|
+
TopNavBar.defaultProps = {
|
|
99
111
|
breakpoint: 1024,
|
|
100
112
|
mediaQueryMatch: 'media',
|
|
101
113
|
inverseColor: false
|
|
102
|
-
}
|
|
114
|
+
};
|
|
103
115
|
export { TopNavBar };
|
|
104
116
|
export default TopNavBar;
|
package/es/TopNavBar/props.js
CHANGED
|
@@ -22,13 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
children: PropTypes.func,
|
|
28
|
-
breakpoint: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
29
|
-
mediaQueryMatch: PropTypes.oneOf(['element', 'media']),
|
|
30
|
-
inverseColor: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
|
|
31
|
-
elementRef: PropTypes.func
|
|
32
|
-
};
|
|
33
25
|
const allowedProps = ['children', 'breakpoint', 'mediaQueryMatch', 'inverseColor', 'elementRef'];
|
|
34
|
-
export {
|
|
26
|
+
export { allowedProps };
|
|
@@ -43,7 +43,8 @@ const mapItemsForDrilldown = (itemList, options = {}) => {
|
|
|
43
43
|
id = _item$props.id,
|
|
44
44
|
children = _item$props.children,
|
|
45
45
|
status = _item$props.status,
|
|
46
|
-
variant = _item$props.variant,
|
|
46
|
+
_item$props$variant = _item$props.variant,
|
|
47
|
+
variant = _item$props$variant === void 0 ? 'default' : _item$props$variant,
|
|
47
48
|
href = _item$props.href,
|
|
48
49
|
onClick = _item$props.onClick,
|
|
49
50
|
shouldCloseOnClick = _item$props.shouldCloseOnClick;
|
|
@@ -10,7 +10,6 @@ var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
|
10
10
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
11
11
|
var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
|
|
12
12
|
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
13
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
14
13
|
var _console = require("@instructure/console");
|
|
15
14
|
var _emotion = require("@instructure/emotion");
|
|
16
15
|
var _Drilldown = require("@instructure/ui-drilldown/lib/Drilldown");
|
|
@@ -24,7 +23,7 @@ var _theme = _interopRequireDefault(require("./theme"));
|
|
|
24
23
|
var _props = require("./props");
|
|
25
24
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
26
25
|
var _react2 = require("@emotion/react");
|
|
27
|
-
var _dec, _dec2,
|
|
26
|
+
var _dec, _dec2, _class, _TopNavBarActionItems;
|
|
28
27
|
/*
|
|
29
28
|
* The MIT License (MIT)
|
|
30
29
|
*
|
|
@@ -55,7 +54,7 @@ id: TopNavBar.ActionItems
|
|
|
55
54
|
---
|
|
56
55
|
@module TopNavBarActionItems
|
|
57
56
|
**/
|
|
58
|
-
let TopNavBarActionItems = exports.TopNavBarActionItems = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
57
|
+
let TopNavBarActionItems = exports.TopNavBarActionItems = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_TopNavBarActionItems = class TopNavBarActionItems extends _react.Component {
|
|
59
58
|
constructor(props) {
|
|
60
59
|
super(props);
|
|
61
60
|
this.ref = null;
|
|
@@ -196,11 +195,12 @@ let TopNavBarActionItems = exports.TopNavBarActionItems = (_dec = (0, _withDeter
|
|
|
196
195
|
ref: this.handleRef,
|
|
197
196
|
css: styles === null || styles === void 0 ? void 0 : styles.topNavBarActionItems,
|
|
198
197
|
"aria-label": listLabel,
|
|
198
|
+
"data-cid": "TopNavBarActionItems",
|
|
199
199
|
children: this.childrenArray.map(item => (0, _jsxRuntime.jsx)("li", {
|
|
200
200
|
css: styles === null || styles === void 0 ? void 0 : styles.listItem,
|
|
201
201
|
children: item
|
|
202
202
|
}, item.props.id))
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
}, _TopNavBarActionItems.displayName = "TopNavBarActionItems", _TopNavBarActionItems.componentId = 'TopNavBar.ActionItems', _TopNavBarActionItems.
|
|
205
|
+
}, _TopNavBarActionItems.displayName = "TopNavBarActionItems", _TopNavBarActionItems.componentId = 'TopNavBar.ActionItems', _TopNavBarActionItems.allowedProps = _props.allowedProps, _TopNavBarActionItems.defaultProps = {}, _TopNavBarActionItems.contextType = _TopNavBarContext.TopNavBarContext, _TopNavBarActionItems)) || _class) || _class);
|
|
206
206
|
var _default = exports.default = TopNavBarActionItems;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
10
|
-
var _TopNavBarItem = require("../TopNavBarItem");
|
|
11
|
-
var _props = require("../TopNavBarItem/props");
|
|
6
|
+
exports.allowedProps = void 0;
|
|
12
7
|
/*
|
|
13
8
|
* The MIT License (MIT)
|
|
14
9
|
*
|
|
@@ -33,11 +28,4 @@ var _props = require("../TopNavBarItem/props");
|
|
|
33
28
|
* SOFTWARE.
|
|
34
29
|
*/
|
|
35
30
|
|
|
36
|
-
const propTypes = exports.propTypes = {
|
|
37
|
-
children: _Children.Children.oneOf([_TopNavBarItem.TopNavBarItem]),
|
|
38
|
-
listLabel: _propTypes.default.string,
|
|
39
|
-
renderHiddenItemsMenuTriggerLabel: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]).isRequired,
|
|
40
|
-
renderHiddenItemsMenuTriggerTooltip: _propTypes.default.oneOfType([_props.topNavBarItemTooltipPropType, _propTypes.default.func]),
|
|
41
|
-
elementRef: _propTypes.default.func
|
|
42
|
-
};
|
|
43
31
|
const allowedProps = exports.allowedProps = ['children', 'listLabel', 'renderHiddenItemsMenuTriggerLabel', 'renderHiddenItemsMenuTriggerTooltip', 'elementRef'];
|
|
@@ -8,7 +8,6 @@ exports.default = exports.TopNavBarBrand = void 0;
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
|
|
10
10
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
11
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
12
11
|
var _emotion = require("@instructure/emotion");
|
|
13
12
|
var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
|
|
14
13
|
var _View = require("@instructure/ui-view/lib/View");
|
|
@@ -17,7 +16,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
17
16
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
18
17
|
var _props = require("./props");
|
|
19
18
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
20
|
-
var _dec,
|
|
19
|
+
var _dec, _class, _TopNavBarBrand;
|
|
21
20
|
/*
|
|
22
21
|
* The MIT License (MIT)
|
|
23
22
|
*
|
|
@@ -48,7 +47,7 @@ id: TopNavBar.Brand
|
|
|
48
47
|
---
|
|
49
48
|
@module TopNavBarBrand
|
|
50
49
|
**/
|
|
51
|
-
let TopNavBarBrand = exports.TopNavBarBrand = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
50
|
+
let TopNavBarBrand = exports.TopNavBarBrand = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_TopNavBarBrand = class TopNavBarBrand extends _react.Component {
|
|
52
51
|
constructor(...args) {
|
|
53
52
|
super(...args);
|
|
54
53
|
this.ref = null;
|
|
@@ -89,6 +88,7 @@ let TopNavBarBrand = exports.TopNavBarBrand = (_dec = (0, _emotion.withStyle)(_s
|
|
|
89
88
|
return (0, _jsxRuntime.jsx)("div", {
|
|
90
89
|
ref: this.handleRef,
|
|
91
90
|
css: styles === null || styles === void 0 ? void 0 : styles.topNavBarBrand,
|
|
91
|
+
"data-cid": "TopNavBarBrand",
|
|
92
92
|
children: renderIcon && (0, _jsxRuntime.jsxs)(_View.View, {
|
|
93
93
|
...(0, _omitProps.omitProps)(this.props, _props.allowedProps),
|
|
94
94
|
css: styles === null || styles === void 0 ? void 0 : styles.container,
|
|
@@ -113,5 +113,5 @@ let TopNavBarBrand = exports.TopNavBarBrand = (_dec = (0, _emotion.withStyle)(_s
|
|
|
113
113
|
})
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
}, _TopNavBarBrand.displayName = "TopNavBarBrand", _TopNavBarBrand.componentId = 'TopNavBar.Brand', _TopNavBarBrand.
|
|
116
|
+
}, _TopNavBarBrand.displayName = "TopNavBarBrand", _TopNavBarBrand.componentId = 'TopNavBar.Brand', _TopNavBarBrand.allowedProps = _props.allowedProps, _TopNavBarBrand.defaultProps = {}, _TopNavBarBrand.contextType = _TopNavBarContext.TopNavBarContext, _TopNavBarBrand)) || _class);
|
|
117
117
|
var _default = exports.default = TopNavBarBrand;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
|
+
exports.allowedProps = void 0;
|
|
9
7
|
/*
|
|
10
8
|
* The MIT License (MIT)
|
|
11
9
|
*
|
|
@@ -30,13 +28,4 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
30
28
|
* SOFTWARE.
|
|
31
29
|
*/
|
|
32
30
|
|
|
33
|
-
const propTypes = exports.propTypes = {
|
|
34
|
-
screenReaderLabel: _propTypes.default.string.isRequired,
|
|
35
|
-
renderIcon: _propTypes.default.node,
|
|
36
|
-
iconBackground: _propTypes.default.string,
|
|
37
|
-
href: _propTypes.default.string,
|
|
38
|
-
onClick: _propTypes.default.func,
|
|
39
|
-
as: _propTypes.default.elementType,
|
|
40
|
-
elementRef: _propTypes.default.func
|
|
41
|
-
};
|
|
42
31
|
const allowedProps = exports.allowedProps = ['screenReaderLabel', 'renderIcon', 'iconBackground', 'href', 'onClick', 'as', 'elementRef'];
|
|
@@ -10,14 +10,13 @@ var _props = require("./props");
|
|
|
10
10
|
var _index = _interopRequireDefault(require("../index"));
|
|
11
11
|
var _emotion = require("@instructure/emotion");
|
|
12
12
|
var _styles = _interopRequireDefault(require("../TopNavBarBreadcrumb/styles"));
|
|
13
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
14
13
|
var _IconArrowOpenStartLine = require("@instructure/ui-icons/lib/IconArrowOpenStartLine.js");
|
|
15
14
|
var _IconHamburgerLine2 = require("@instructure/ui-icons/lib/IconHamburgerLine.js");
|
|
16
15
|
var _TopNavBarContext = _interopRequireDefault(require("../TopNavBarContext"));
|
|
17
16
|
var _console = require("@instructure/console");
|
|
18
17
|
var _Link = require("@instructure/ui-link/lib/Link");
|
|
19
18
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
20
|
-
var _dec,
|
|
19
|
+
var _dec, _class, _TopNavBarBreadcrumb, _IconHamburgerLine;
|
|
21
20
|
/*
|
|
22
21
|
* The MIT License (MIT)
|
|
23
22
|
*
|
|
@@ -48,7 +47,7 @@ id: TopNavBar.Breadcrumb
|
|
|
48
47
|
---
|
|
49
48
|
@module TopNavBarBreadcrumb
|
|
50
49
|
**/
|
|
51
|
-
let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.withStyle)(_styles.default, null),
|
|
50
|
+
let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = (_TopNavBarBreadcrumb = class TopNavBarBreadcrumb extends _react.Component {
|
|
52
51
|
constructor(...args) {
|
|
53
52
|
super(...args);
|
|
54
53
|
this.ref = null;
|
|
@@ -99,6 +98,7 @@ let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.wit
|
|
|
99
98
|
return this.context.inverseColor && (this.context.layout === 'desktop' ? (0, _jsxRuntime.jsxs)("div", {
|
|
100
99
|
ref: this.handleRef,
|
|
101
100
|
css: styles === null || styles === void 0 ? void 0 : styles.topNavBarBreadcrumb,
|
|
101
|
+
"data-cid": "TopNavBarBreadcrumb",
|
|
102
102
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
103
103
|
css: styles === null || styles === void 0 ? void 0 : styles.iconContainer,
|
|
104
104
|
children: this.renderMenu()
|
|
@@ -109,6 +109,7 @@ let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.wit
|
|
|
109
109
|
}) : (0, _jsxRuntime.jsx)("div", {
|
|
110
110
|
ref: this.handleRef,
|
|
111
111
|
css: styles === null || styles === void 0 ? void 0 : styles.topNavBarBreadcrumb,
|
|
112
|
+
"data-cid": "TopNavBarBreadcrumb",
|
|
112
113
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
113
114
|
css: styles === null || styles === void 0 ? void 0 : styles.linkContainer,
|
|
114
115
|
children: lastButOneLink && (0, _jsxRuntime.jsx)(_Link.Link, {
|
|
@@ -120,5 +121,5 @@ let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.wit
|
|
|
120
121
|
})
|
|
121
122
|
}));
|
|
122
123
|
}
|
|
123
|
-
}, _TopNavBarBreadcrumb.displayName = "TopNavBarBreadcrumb", _TopNavBarBreadcrumb.
|
|
124
|
+
}, _TopNavBarBreadcrumb.displayName = "TopNavBarBreadcrumb", _TopNavBarBreadcrumb.allowedProps = _props.allowedProps, _TopNavBarBreadcrumb.defaultProps = {}, _TopNavBarBreadcrumb.contextType = _TopNavBarContext.default, _TopNavBarBreadcrumb)) || _class);
|
|
124
125
|
var _default = exports.default = TopNavBarBreadcrumb;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _Breadcrumb = require("@instructure/ui-breadcrumb/lib/Breadcrumb");
|
|
6
|
+
exports.allowedProps = void 0;
|
|
11
7
|
/*
|
|
12
8
|
* The MIT License (MIT)
|
|
13
9
|
*
|
|
@@ -32,9 +28,4 @@ var _Breadcrumb = require("@instructure/ui-breadcrumb/lib/Breadcrumb");
|
|
|
32
28
|
* SOFTWARE.
|
|
33
29
|
*/
|
|
34
30
|
|
|
35
|
-
const propTypes = exports.propTypes = {
|
|
36
|
-
onClick: _propTypes.default.func,
|
|
37
|
-
elementRef: _propTypes.default.func,
|
|
38
|
-
children: _Children.Children.oneOf([_Breadcrumb.Breadcrumb])
|
|
39
|
-
};
|
|
40
31
|
const allowedProps = exports.allowedProps = ['children', 'onClick', 'elementRef'];
|
|
@@ -13,7 +13,6 @@ var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProp
|
|
|
13
13
|
var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
|
|
14
14
|
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
15
15
|
var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFunction.js");
|
|
16
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
17
16
|
var _console = require("@instructure/console");
|
|
18
17
|
var _emotion = require("@instructure/emotion");
|
|
19
18
|
var _IconArrowOpenDownSolid = require("@instructure/ui-icons/lib/IconArrowOpenDownSolid.js");
|
|
@@ -29,7 +28,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
29
28
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
30
29
|
var _props = require("./props");
|
|
31
30
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
32
|
-
var _dec, _dec2,
|
|
31
|
+
var _dec, _dec2, _class, _TopNavBarItem, _IconArrowOpenUpSolid, _IconArrowOpenDownSol;
|
|
33
32
|
/*
|
|
34
33
|
* The MIT License (MIT)
|
|
35
34
|
*
|
|
@@ -64,7 +63,7 @@ id: TopNavBar.Item
|
|
|
64
63
|
---
|
|
65
64
|
@module TopNavBarItem
|
|
66
65
|
**/
|
|
67
|
-
let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
66
|
+
let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_TopNavBarItem = class TopNavBarItem extends _react.Component {
|
|
68
67
|
constructor(props) {
|
|
69
68
|
super(props);
|
|
70
69
|
this.ref = null;
|
|
@@ -578,13 +577,14 @@ let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.wit
|
|
|
578
577
|
return (0, _jsxRuntime.jsx)("div", {
|
|
579
578
|
ref: this.handleRef,
|
|
580
579
|
css: styles === null || styles === void 0 ? void 0 : styles.topNavBarItem,
|
|
580
|
+
"data-cid": "TopNavBarItem",
|
|
581
581
|
children: content
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
}, _TopNavBarItem.displayName = "TopNavBarItem", _TopNavBarItem.componentId = 'TopNavBar.Item', _TopNavBarItem.
|
|
584
|
+
}, _TopNavBarItem.displayName = "TopNavBarItem", _TopNavBarItem.componentId = 'TopNavBar.Item', _TopNavBarItem.allowedProps = _props.allowedProps, _TopNavBarItem.defaultProps = {
|
|
585
585
|
status: 'default',
|
|
586
586
|
variant: 'default',
|
|
587
587
|
showSubmenuChevron: true,
|
|
588
588
|
shouldCloseOnClick: 'auto'
|
|
589
|
-
}, _TopNavBarItem.contextType = _TopNavBarContext.TopNavBarContext, _TopNavBarItem)) || _class) || _class)
|
|
589
|
+
}, _TopNavBarItem.contextType = _TopNavBarContext.TopNavBarContext, _TopNavBarItem)) || _class) || _class);
|
|
590
590
|
var _default = exports.default = TopNavBarItem;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
10
|
-
var _Drilldown = require("@instructure/ui-drilldown/lib/Drilldown");
|
|
6
|
+
exports.allowedProps = void 0;
|
|
11
7
|
/*
|
|
12
8
|
* The MIT License (MIT)
|
|
13
9
|
*
|
|
@@ -32,44 +28,4 @@ var _Drilldown = require("@instructure/ui-drilldown/lib/Drilldown");
|
|
|
32
28
|
* SOFTWARE.
|
|
33
29
|
*/
|
|
34
30
|
|
|
35
|
-
const topNavBarItemTooltipPropType = exports.topNavBarItemTooltipPropType = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
|
|
36
|
-
renderTip: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
|
|
37
|
-
color: _propTypes.default.oneOf(['primary', 'primary-inverse']),
|
|
38
|
-
placement: _propTypes.default.string,
|
|
39
|
-
offsetX: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
40
|
-
offsetY: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
41
|
-
onShowContent: _propTypes.default.func,
|
|
42
|
-
onHideContent: _propTypes.default.func
|
|
43
|
-
})]);
|
|
44
|
-
const propTypes = exports.propTypes = {
|
|
45
|
-
id: _propTypes.default.string.isRequired,
|
|
46
|
-
as: _propTypes.default.elementType,
|
|
47
|
-
children: _propTypes.default.node.isRequired,
|
|
48
|
-
variant: _propTypes.default.oneOf(['default', 'button', 'icon', 'avatar']),
|
|
49
|
-
status: _propTypes.default.oneOf(['default', 'active', 'disabled']),
|
|
50
|
-
renderSubmenu: _Children.Children.oneOf([_Drilldown.Drilldown]),
|
|
51
|
-
showSubmenuChevron: _propTypes.default.bool,
|
|
52
|
-
customPopoverConfig: _propTypes.default.object,
|
|
53
|
-
tooltip: topNavBarItemTooltipPropType,
|
|
54
|
-
renderAvatar: _propTypes.default.shape({
|
|
55
|
-
avatarName: _propTypes.default.string.isRequired,
|
|
56
|
-
avatarSrc: _propTypes.default.string,
|
|
57
|
-
avatarAlt: _propTypes.default.string
|
|
58
|
-
}),
|
|
59
|
-
renderIcon: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
60
|
-
href: _propTypes.default.string,
|
|
61
|
-
onClick: _propTypes.default.func,
|
|
62
|
-
onHiddenClick: _propTypes.default.func,
|
|
63
|
-
onSubmenuToggle: _propTypes.default.func,
|
|
64
|
-
onMouseOver: _propTypes.default.func,
|
|
65
|
-
onMouseOut: _propTypes.default.func,
|
|
66
|
-
onFocus: _propTypes.default.func,
|
|
67
|
-
onBlur: _propTypes.default.func,
|
|
68
|
-
onKeyDown: _propTypes.default.func,
|
|
69
|
-
onKeyUp: _propTypes.default.func,
|
|
70
|
-
elementRef: _propTypes.default.func,
|
|
71
|
-
itemRef: _propTypes.default.func,
|
|
72
|
-
shouldCloseOnClick: _propTypes.default.oneOf(['auto', 'always', 'never']),
|
|
73
|
-
withFocusOutline: _propTypes.default.bool
|
|
74
|
-
};
|
|
75
31
|
const allowedProps = exports.allowedProps = ['id', 'as', 'children', 'variant', 'status', 'renderSubmenu', 'showSubmenuChevron', 'customPopoverConfig', 'tooltip', 'renderAvatar', 'renderIcon', 'href', 'onClick', 'onHiddenClick', 'onSubmenuToggle', 'onMouseOver', 'onMouseOut', 'onFocus', 'onBlur', 'onKeyDown', 'onKeyUp', 'elementRef', 'itemRef', 'shouldCloseOnClick', 'withFocusOutline'];
|
|
@@ -7,14 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = exports.TopNavBarDesktopLayout = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
10
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
11
10
|
var _emotion = require("@instructure/emotion");
|
|
12
11
|
var _TopNavBarContext = require("../../TopNavBarContext");
|
|
13
12
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
14
13
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
15
14
|
var _props = require("./props");
|
|
16
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
|
-
var _dec,
|
|
16
|
+
var _dec, _class, _TopNavBarDesktopLayout;
|
|
18
17
|
/*
|
|
19
18
|
* The MIT License (MIT)
|
|
20
19
|
*
|
|
@@ -43,7 +42,7 @@ var _dec, _dec2, _class, _TopNavBarDesktopLayout;
|
|
|
43
42
|
private: true
|
|
44
43
|
---
|
|
45
44
|
**/
|
|
46
|
-
let TopNavBarDesktopLayout = exports.TopNavBarDesktopLayout = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
45
|
+
let TopNavBarDesktopLayout = exports.TopNavBarDesktopLayout = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_TopNavBarDesktopLayout = class TopNavBarDesktopLayout extends _react.Component {
|
|
47
46
|
constructor(...args) {
|
|
48
47
|
super(...args);
|
|
49
48
|
this.ref = null;
|
|
@@ -108,6 +107,7 @@ let TopNavBarDesktopLayout = exports.TopNavBarDesktopLayout = (_dec = (0, _emoti
|
|
|
108
107
|
ref: this.handleRef,
|
|
109
108
|
css: styles === null || styles === void 0 ? void 0 : styles.topNavBarDesktopLayout,
|
|
110
109
|
"aria-label": navLabel,
|
|
110
|
+
"data-cid": "TopNavBarDesktopLayout",
|
|
111
111
|
children: [this.hasBrandBlock && (0, _jsxRuntime.jsx)("div", {
|
|
112
112
|
css: styles === null || styles === void 0 ? void 0 : styles.brandContainer,
|
|
113
113
|
children: renderBrand
|
|
@@ -125,5 +125,5 @@ let TopNavBarDesktopLayout = exports.TopNavBarDesktopLayout = (_dec = (0, _emoti
|
|
|
125
125
|
})]
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
}, _TopNavBarDesktopLayout.displayName = "TopNavBarDesktopLayout", _TopNavBarDesktopLayout.componentId = 'TopNavBar.DesktopLayout', _TopNavBarDesktopLayout.
|
|
128
|
+
}, _TopNavBarDesktopLayout.displayName = "TopNavBarDesktopLayout", _TopNavBarDesktopLayout.componentId = 'TopNavBar.DesktopLayout', _TopNavBarDesktopLayout.allowedProps = _props.allowedProps, _TopNavBarDesktopLayout.defaultProps = {}, _TopNavBarDesktopLayout.contextType = _TopNavBarContext.TopNavBarContext, _TopNavBarDesktopLayout)) || _class);
|
|
129
129
|
var _default = exports.default = TopNavBarDesktopLayout;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.allowedProps = void 0;
|
|
7
7
|
var _props = require("../props");
|
|
8
8
|
/*
|
|
9
9
|
* The MIT License (MIT)
|
|
@@ -29,11 +29,6 @@ var _props = require("../props");
|
|
|
29
29
|
* SOFTWARE.
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
const propTypes = exports.propTypes = {
|
|
33
|
-
// Edit PropTypes in TopNabBarLayout/props.ts
|
|
34
|
-
..._props.commonPropTypes,
|
|
35
|
-
..._props.desktopPropTypes
|
|
36
|
-
};
|
|
37
32
|
const allowedProps = exports.allowedProps = [
|
|
38
33
|
// Edit allowed props in TopNabBarLayout/props.ts
|
|
39
34
|
..._props.commonAllowedProps, ..._props.desktopAllowedProps];
|
|
@@ -11,7 +11,6 @@ var _withDeterministicId = require("@instructure/ui-react-utils/lib/Deterministi
|
|
|
11
11
|
var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
|
|
12
12
|
var _px = require("@instructure/ui-utils/lib/px.js");
|
|
13
13
|
var _console = require("@instructure/console");
|
|
14
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
15
14
|
var _getBoundingClientRect = require("@instructure/ui-dom-utils/lib/getBoundingClientRect.js");
|
|
16
15
|
var _requestAnimationFrame = require("@instructure/ui-dom-utils/lib/requestAnimationFrame.js");
|
|
17
16
|
var _emotion = require("@instructure/emotion");
|
|
@@ -30,7 +29,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
30
29
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
31
30
|
var _props = require("./props");
|
|
32
31
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
33
|
-
var _dec, _dec2,
|
|
32
|
+
var _dec, _dec2, _class, _TopNavBarSmallViewportLayout, _IconXLine, _IconHamburgerLine;
|
|
34
33
|
/*
|
|
35
34
|
* The MIT License (MIT)
|
|
36
35
|
*
|
|
@@ -59,7 +58,7 @@ var _dec, _dec2, _dec3, _class, _TopNavBarSmallViewportLayout, _IconXLine, _Icon
|
|
|
59
58
|
private: true
|
|
60
59
|
---
|
|
61
60
|
**/
|
|
62
|
-
let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
61
|
+
let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_TopNavBarSmallViewportLayout = class TopNavBarSmallViewportLayout extends _react.Component {
|
|
63
62
|
constructor(props) {
|
|
64
63
|
var _props$styles;
|
|
65
64
|
super(props);
|
|
@@ -457,6 +456,7 @@ let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec
|
|
|
457
456
|
...(0, _omitProps.omitProps)(this.props, _props.allowedProps),
|
|
458
457
|
ref: this.handleRef,
|
|
459
458
|
"aria-label": navLabel,
|
|
459
|
+
"data-cid": "TopNavBarSmallViewportLayout",
|
|
460
460
|
children: [(0, _jsxRuntime.jsx)(_emotion.Global, {
|
|
461
461
|
styles: styles === null || styles === void 0 ? void 0 : styles.globalStyles
|
|
462
462
|
}), this.hasBreadcrumbBlock && (0, _jsxRuntime.jsx)("div", {
|
|
@@ -468,5 +468,5 @@ let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec
|
|
|
468
468
|
}), !this.hasBreadcrumbBlock && this.renderInPlaceDialog(), !this.hasBreadcrumbBlock && this.renderDropdownMenuTray()]
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
}, _TopNavBarSmallViewportLayout.displayName = "TopNavBarSmallViewportLayout", _TopNavBarSmallViewportLayout.componentId = 'TopNavBar.SmallViewportLayout', _TopNavBarSmallViewportLayout.
|
|
471
|
+
}, _TopNavBarSmallViewportLayout.displayName = "TopNavBarSmallViewportLayout", _TopNavBarSmallViewportLayout.componentId = 'TopNavBar.SmallViewportLayout', _TopNavBarSmallViewportLayout.allowedProps = _props.allowedProps, _TopNavBarSmallViewportLayout.defaultProps = {}, _TopNavBarSmallViewportLayout.contextType = _TopNavBarContext.TopNavBarContext, _TopNavBarSmallViewportLayout)) || _class) || _class);
|
|
472
472
|
var _default = exports.default = TopNavBarSmallViewportLayout;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.allowedProps = void 0;
|
|
7
7
|
var _props = require("../props");
|
|
8
8
|
/*
|
|
9
9
|
* The MIT License (MIT)
|
|
@@ -29,11 +29,6 @@ var _props = require("../props");
|
|
|
29
29
|
* SOFTWARE.
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
const propTypes = exports.propTypes = {
|
|
33
|
-
// Edit PropTypes in TopNavBarLayout/props.ts
|
|
34
|
-
..._props.commonPropTypes,
|
|
35
|
-
..._props.smallViewportPropTypes
|
|
36
|
-
};
|
|
37
32
|
const allowedProps = exports.allowedProps = [
|
|
38
33
|
// Edit allowed props in TopNavBarLayout/props.ts
|
|
39
34
|
..._props.commonAllowedProps, ..._props.smallViewportAllowedProps];
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = exports.TopNavBarLayout = void 0;
|
|
8
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
11
10
|
var _emotion = require("@instructure/emotion");
|
|
12
11
|
var _TopNavBarContext = require("../TopNavBarContext");
|
|
13
12
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
@@ -16,7 +15,7 @@ var _DesktopLayout = require("./DesktopLayout");
|
|
|
16
15
|
var _props = require("./props");
|
|
17
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
18
17
|
const _excluded = ["smallViewportConfig", "styles", "makeStyles"];
|
|
19
|
-
var _dec,
|
|
18
|
+
var _dec, _class, _TopNavBarLayout;
|
|
20
19
|
/*
|
|
21
20
|
* The MIT License (MIT)
|
|
22
21
|
*
|
|
@@ -47,7 +46,7 @@ id: TopNavBar.Layout
|
|
|
47
46
|
---
|
|
48
47
|
@module TopNavBarLayout
|
|
49
48
|
**/
|
|
50
|
-
let TopNavBarLayout = exports.TopNavBarLayout = (_dec = (0, _emotion.withStyle)(null, _theme.default),
|
|
49
|
+
let TopNavBarLayout = exports.TopNavBarLayout = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec(_class = (_TopNavBarLayout = class TopNavBarLayout extends _react.Component {
|
|
51
50
|
constructor(...args) {
|
|
52
51
|
super(...args);
|
|
53
52
|
this.ref = null;
|
|
@@ -110,7 +109,7 @@ let TopNavBarLayout = exports.TopNavBarLayout = (_dec = (0, _emotion.withStyle)(
|
|
|
110
109
|
elementRef: this.handleRef
|
|
111
110
|
});
|
|
112
111
|
}
|
|
113
|
-
}, _TopNavBarLayout.displayName = "TopNavBarLayout", _TopNavBarLayout.componentId = 'TopNavBar.Layout', _TopNavBarLayout.
|
|
112
|
+
}, _TopNavBarLayout.displayName = "TopNavBarLayout", _TopNavBarLayout.componentId = 'TopNavBar.Layout', _TopNavBarLayout.allowedProps = _props.allowedProps, _TopNavBarLayout.defaultProps = {
|
|
114
113
|
smallViewportConfig: {}
|
|
115
|
-
}, _TopNavBarLayout.contextType = _TopNavBarContext.TopNavBarContext, _TopNavBarLayout)) || _class)
|
|
114
|
+
}, _TopNavBarLayout.contextType = _TopNavBarContext.TopNavBarContext, _TopNavBarLayout)) || _class);
|
|
116
115
|
var _default = exports.default = TopNavBarLayout;
|