@instructure/ui-side-nav-bar 11.7.4-snapshot-14 → 11.7.4-snapshot-49
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/LICENSE.md +1 -0
- package/es/SideNavBar/v1/SideNavBarItem/index.js +5 -4
- package/es/SideNavBar/v1/index.js +5 -5
- package/es/SideNavBar/v2/SideNavBarItem/index.js +4 -3
- package/es/SideNavBar/v2/index.js +4 -4
- package/es/exports/a.js +2 -1
- package/es/exports/b.js +2 -1
- package/lib/SideNavBar/v1/SideNavBarItem/index.js +4 -4
- package/lib/SideNavBar/v1/index.js +8 -8
- package/lib/SideNavBar/v2/SideNavBarItem/index.js +3 -3
- package/lib/SideNavBar/v2/index.js +7 -7
- package/lib/exports/a.js +3 -3
- package/lib/exports/b.js +3 -3
- package/package.json +14 -14
- package/src/SideNavBar/v1/SideNavBarItem/index.tsx +4 -3
- package/src/SideNavBar/v1/index.tsx +5 -4
- package/src/SideNavBar/v2/SideNavBarItem/index.tsx +3 -2
- package/src/SideNavBar/v2/index.tsx +4 -3
- package/src/exports/a.ts +1 -1
- package/src/exports/b.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/SideNavBar/v1/SideNavBarItem/index.d.ts +1 -0
- package/types/SideNavBar/v1/SideNavBarItem/index.d.ts.map +1 -1
- package/types/SideNavBar/v1/index.d.ts +2 -1
- package/types/SideNavBar/v1/index.d.ts.map +1 -1
- package/types/SideNavBar/v2/SideNavBarItem/index.d.ts +1 -0
- package/types/SideNavBar/v2/SideNavBarItem/index.d.ts.map +1 -1
- package/types/SideNavBar/v2/index.d.ts +2 -1
- package/types/SideNavBar/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +1 -1
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +1 -1
- package/types/exports/b.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
|
-
## [11.7.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-49) (2026-06-17)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-side-nav-bar
|
|
9
9
|
|
package/LICENSE.md
CHANGED
|
@@ -28,9 +28,10 @@ import { omitProps, getElementType } from '@instructure/ui-react-utils';
|
|
|
28
28
|
import { Tooltip } from '@instructure/ui-tooltip/v11_6';
|
|
29
29
|
import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
|
|
30
30
|
import { withStyle } from '@instructure/emotion';
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import generateComponentTheme from
|
|
33
|
-
import { allowedProps } from
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import generateComponentTheme from './theme.js';
|
|
33
|
+
import { allowedProps } from './props.js';
|
|
34
|
+
|
|
34
35
|
/**
|
|
35
36
|
---
|
|
36
37
|
parent: SideNavBar
|
|
@@ -39,7 +40,7 @@ id: SideNavBar.Item
|
|
|
39
40
|
**/
|
|
40
41
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
41
42
|
let SideNavBarItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class SideNavBarItem extends Component {
|
|
42
|
-
static displayName =
|
|
43
|
+
static displayName = 'SideNavBarItem';
|
|
43
44
|
static componentId = 'SideNavBar.Item';
|
|
44
45
|
static allowedProps = allowedProps;
|
|
45
46
|
static defaultProps = {
|
|
@@ -27,10 +27,10 @@ import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
|
27
27
|
import { IconMoveStartLine } from '@instructure/ui-icons';
|
|
28
28
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
29
29
|
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import { SideNavBarItem } from
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import generateComponentTheme from
|
|
33
|
-
import { allowedProps } from
|
|
30
|
+
import { SideNavBarItem } from './SideNavBarItem/index.js';
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import generateComponentTheme from './theme.js';
|
|
33
|
+
import { allowedProps } from './props.js';
|
|
34
34
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
35
35
|
const navMinimized = ({
|
|
36
36
|
minimized
|
|
@@ -44,7 +44,7 @@ category: components
|
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
46
|
let SideNavBar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class SideNavBar extends Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'SideNavBar';
|
|
48
48
|
static componentId = 'SideNavBar';
|
|
49
49
|
static allowedProps = allowedProps;
|
|
50
50
|
static defaultProps = {
|
|
@@ -28,8 +28,9 @@ import { omitProps, getElementType } from '@instructure/ui-react-utils';
|
|
|
28
28
|
import { Tooltip } from '@instructure/ui-tooltip/latest';
|
|
29
29
|
import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
|
|
30
30
|
import { withStyleNew } from '@instructure/emotion';
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import { allowedProps } from
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
|
+
|
|
33
34
|
/**
|
|
34
35
|
---
|
|
35
36
|
parent: SideNavBar
|
|
@@ -38,7 +39,7 @@ id: SideNavBar.Item
|
|
|
38
39
|
**/
|
|
39
40
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
40
41
|
let SideNavBarItem = (_dec = withStyleNew(generateStyle, 'SideNavBarItem'), _dec(_class = class SideNavBarItem extends Component {
|
|
41
|
-
static displayName =
|
|
42
|
+
static displayName = 'SideNavBarItem';
|
|
42
43
|
static componentId = 'SideNavBar.Item';
|
|
43
44
|
static allowedProps = allowedProps;
|
|
44
45
|
static defaultProps = {
|
|
@@ -27,9 +27,9 @@ import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
|
27
27
|
import { PanelLeftCloseInstUIIcon, PanelLeftOpenInstUIIcon, renderIconWithProps } from '@instructure/ui-icons';
|
|
28
28
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion';
|
|
30
|
-
import { SideNavBarItem } from
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import { allowedProps } from
|
|
30
|
+
import { SideNavBarItem } from './SideNavBarItem/index.js';
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
33
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
34
34
|
const navMinimized = ({
|
|
35
35
|
minimized
|
|
@@ -43,7 +43,7 @@ category: components
|
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
45
|
let SideNavBar = (_dec = withStyleNew(generateStyle), _dec(_class = class SideNavBar extends Component {
|
|
46
|
-
static displayName =
|
|
46
|
+
static displayName = 'SideNavBar';
|
|
47
47
|
static componentId = 'SideNavBar';
|
|
48
48
|
static allowedProps = allowedProps;
|
|
49
49
|
static defaultProps = {
|
package/es/exports/a.js
CHANGED
package/es/exports/b.js
CHANGED
|
@@ -11,9 +11,9 @@ var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js
|
|
|
11
11
|
var _v11_ = require("@instructure/ui-tooltip/v11_6");
|
|
12
12
|
var _hasVisibleChildren = require("@instructure/ui-a11y-utils/lib/hasVisibleChildren.js");
|
|
13
13
|
var _emotion = require("@instructure/emotion");
|
|
14
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
16
|
-
var _props = require("./props");
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
15
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
16
|
+
var _props = require("./props.js");
|
|
17
17
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
18
18
|
var _dec, _class;
|
|
19
19
|
/*
|
|
@@ -46,7 +46,7 @@ id: SideNavBar.Item
|
|
|
46
46
|
---
|
|
47
47
|
**/
|
|
48
48
|
let SideNavBarItem = exports.SideNavBarItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class SideNavBarItem extends _react.Component {
|
|
49
|
-
static displayName =
|
|
49
|
+
static displayName = 'SideNavBarItem';
|
|
50
50
|
static componentId = 'SideNavBar.Item';
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
52
52
|
static defaultProps = {
|
|
@@ -8,7 +8,7 @@ exports.SideNavBar = void 0;
|
|
|
8
8
|
Object.defineProperty(exports, "SideNavBarItem", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function () {
|
|
11
|
-
return
|
|
11
|
+
return _index.SideNavBarItem;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
exports.default = void 0;
|
|
@@ -18,10 +18,10 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
18
18
|
var _IconMoveStartLine = require("@instructure/ui-icons/lib/generated/IconMoveStartLine.js");
|
|
19
19
|
var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
|
|
20
20
|
var _emotion = require("@instructure/emotion");
|
|
21
|
-
var
|
|
22
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
23
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
24
|
-
var _props = require("./props");
|
|
21
|
+
var _index = require("./SideNavBarItem/index.js");
|
|
22
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
23
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
24
|
+
var _props = require("./props.js");
|
|
25
25
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
26
26
|
var _dec, _class;
|
|
27
27
|
/*
|
|
@@ -59,7 +59,7 @@ category: components
|
|
|
59
59
|
---
|
|
60
60
|
**/
|
|
61
61
|
let SideNavBar = exports.SideNavBar = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class SideNavBar extends _react.Component {
|
|
62
|
-
static displayName =
|
|
62
|
+
static displayName = 'SideNavBar';
|
|
63
63
|
static componentId = 'SideNavBar';
|
|
64
64
|
static allowedProps = _props.allowedProps;
|
|
65
65
|
static defaultProps = {
|
|
@@ -68,7 +68,7 @@ let SideNavBar = exports.SideNavBar = (_dec = (0, _emotion.withStyle)(_styles.de
|
|
|
68
68
|
// TODO we should investigate later if it used or not
|
|
69
69
|
onClick: function (_e) {}
|
|
70
70
|
};
|
|
71
|
-
static Item =
|
|
71
|
+
static Item = _index.SideNavBarItem;
|
|
72
72
|
ref = null;
|
|
73
73
|
constructor(props) {
|
|
74
74
|
super(props);
|
|
@@ -134,7 +134,7 @@ let SideNavBar = exports.SideNavBar = (_dec = (0, _emotion.withStyle)(_styles.de
|
|
|
134
134
|
children: [(0, _jsxRuntime.jsx)("ul", {
|
|
135
135
|
css: this.props.styles?.content,
|
|
136
136
|
children: this.renderChildren()
|
|
137
|
-
}), (0, _jsxRuntime.jsx)(
|
|
137
|
+
}), (0, _jsxRuntime.jsx)(_index.SideNavBarItem, {
|
|
138
138
|
"aria-expanded": !this.minimized,
|
|
139
139
|
onClick: this.handleNavToggle,
|
|
140
140
|
icon: (0, _jsxRuntime.jsx)(_IconMoveStartLine.IconMoveStartLine, {
|
|
@@ -11,8 +11,8 @@ var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js
|
|
|
11
11
|
var _latest = require("@instructure/ui-tooltip/latest");
|
|
12
12
|
var _hasVisibleChildren = require("@instructure/ui-a11y-utils/lib/hasVisibleChildren.js");
|
|
13
13
|
var _emotion = require("@instructure/emotion");
|
|
14
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
-
var _props = require("./props");
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
15
|
+
var _props = require("./props.js");
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
17
|
var _dec, _class;
|
|
18
18
|
/*
|
|
@@ -45,7 +45,7 @@ id: SideNavBar.Item
|
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
47
|
let SideNavBarItem = exports.SideNavBarItem = (_dec = (0, _emotion.withStyleNew)(_styles.default, 'SideNavBarItem'), _dec(_class = class SideNavBarItem extends _react.Component {
|
|
48
|
-
static displayName =
|
|
48
|
+
static displayName = 'SideNavBarItem';
|
|
49
49
|
static componentId = 'SideNavBar.Item';
|
|
50
50
|
static allowedProps = _props.allowedProps;
|
|
51
51
|
static defaultProps = {
|
|
@@ -8,7 +8,7 @@ exports.SideNavBar = void 0;
|
|
|
8
8
|
Object.defineProperty(exports, "SideNavBarItem", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function () {
|
|
11
|
-
return
|
|
11
|
+
return _index.SideNavBarItem;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
exports.default = void 0;
|
|
@@ -18,9 +18,9 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
18
18
|
var _uiIcons = require("@instructure/ui-icons");
|
|
19
19
|
var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
|
|
20
20
|
var _emotion = require("@instructure/emotion");
|
|
21
|
-
var
|
|
22
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
23
|
-
var _props = require("./props");
|
|
21
|
+
var _index = require("./SideNavBarItem/index.js");
|
|
22
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
23
|
+
var _props = require("./props.js");
|
|
24
24
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
25
25
|
var _dec, _class;
|
|
26
26
|
/*
|
|
@@ -58,7 +58,7 @@ category: components
|
|
|
58
58
|
---
|
|
59
59
|
**/
|
|
60
60
|
let SideNavBar = exports.SideNavBar = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class SideNavBar extends _react.Component {
|
|
61
|
-
static displayName =
|
|
61
|
+
static displayName = 'SideNavBar';
|
|
62
62
|
static componentId = 'SideNavBar';
|
|
63
63
|
static allowedProps = _props.allowedProps;
|
|
64
64
|
static defaultProps = {
|
|
@@ -67,7 +67,7 @@ let SideNavBar = exports.SideNavBar = (_dec = (0, _emotion.withStyleNew)(_styles
|
|
|
67
67
|
// TODO we should investigate later if it used or not
|
|
68
68
|
onClick: function (_e) {}
|
|
69
69
|
};
|
|
70
|
-
static Item =
|
|
70
|
+
static Item = _index.SideNavBarItem;
|
|
71
71
|
ref = null;
|
|
72
72
|
constructor(props) {
|
|
73
73
|
super(props);
|
|
@@ -138,7 +138,7 @@ let SideNavBar = exports.SideNavBar = (_dec = (0, _emotion.withStyleNew)(_styles
|
|
|
138
138
|
children: [(0, _jsxRuntime.jsx)("ul", {
|
|
139
139
|
css: this.props.styles?.content,
|
|
140
140
|
children: this.renderChildren()
|
|
141
|
-
}), (0, _jsxRuntime.jsx)(
|
|
141
|
+
}), (0, _jsxRuntime.jsx)(_index.SideNavBarItem, {
|
|
142
142
|
"aria-expanded": !this.minimized,
|
|
143
143
|
onClick: this.handleNavToggle,
|
|
144
144
|
icon: this.renderIcon(),
|
package/lib/exports/a.js
CHANGED
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "SideNavBar", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.SideNavBar;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SideNavBarItem", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index.SideNavBarItem;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
var
|
|
18
|
+
var _index = require("../SideNavBar/v1/index.js");
|
package/lib/exports/b.js
CHANGED
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "SideNavBar", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.SideNavBar;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SideNavBarItem", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index.SideNavBarItem;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
var
|
|
18
|
+
var _index = require("../SideNavBar/v2/index.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-side-nav-bar",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-49",
|
|
4
4
|
"description": "Main and application level navigational components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/
|
|
19
|
-
"@instructure/emotion": "11.7.4-snapshot-
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-a11y-utils": "11.7.4-snapshot-
|
|
23
|
-
"@instructure/ui-badge": "11.7.4-snapshot-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/debounce": "11.7.4-snapshot-49",
|
|
19
|
+
"@instructure/emotion": "11.7.4-snapshot-49",
|
|
20
|
+
"@instructure/shared-types": "11.7.4-snapshot-49",
|
|
21
|
+
"@instructure/ui-a11y-content": "11.7.4-snapshot-49",
|
|
22
|
+
"@instructure/ui-a11y-utils": "11.7.4-snapshot-49",
|
|
23
|
+
"@instructure/ui-badge": "11.7.4-snapshot-49",
|
|
24
|
+
"@instructure/ui-icons": "11.7.4-snapshot-49",
|
|
25
|
+
"@instructure/ui-react-utils": "11.7.4-snapshot-49",
|
|
26
|
+
"@instructure/ui-themes": "11.7.4-snapshot-49",
|
|
27
|
+
"@instructure/ui-tooltip": "11.7.4-snapshot-49"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@testing-library/jest-dom": "^6.6.3",
|
|
31
31
|
"@testing-library/react": "15.0.7",
|
|
32
32
|
"@testing-library/user-event": "^14.6.1",
|
|
33
33
|
"vitest": "^3.2.2",
|
|
34
|
-
"@instructure/ui-axe-check": "11.7.4-snapshot-
|
|
35
|
-
"@instructure/ui-babel-preset": "11.7.4-snapshot-
|
|
36
|
-
"@instructure/ui-color-utils": "11.7.4-snapshot-
|
|
34
|
+
"@instructure/ui-axe-check": "11.7.4-snapshot-49",
|
|
35
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-49",
|
|
36
|
+
"@instructure/ui-color-utils": "11.7.4-snapshot-49"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=18 <=19"
|
|
@@ -29,10 +29,10 @@ import { Tooltip } from '@instructure/ui-tooltip/v11_6'
|
|
|
29
29
|
import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
|
|
30
30
|
import { withStyle } from '@instructure/emotion'
|
|
31
31
|
|
|
32
|
-
import generateStyle from './styles'
|
|
33
|
-
import generateComponentTheme from './theme'
|
|
32
|
+
import generateStyle from './styles.js'
|
|
33
|
+
import generateComponentTheme from './theme.js'
|
|
34
34
|
import type { SideNavBarItemProps } from './props'
|
|
35
|
-
import { allowedProps } from './props'
|
|
35
|
+
import { allowedProps } from './props.js'
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
---
|
|
@@ -42,6 +42,7 @@ id: SideNavBar.Item
|
|
|
42
42
|
**/
|
|
43
43
|
@withStyle(generateStyle, generateComponentTheme)
|
|
44
44
|
class SideNavBarItem extends Component<SideNavBarItemProps> {
|
|
45
|
+
static displayName = 'SideNavBarItem'
|
|
45
46
|
static readonly componentId = 'SideNavBar.Item'
|
|
46
47
|
|
|
47
48
|
static allowedProps = allowedProps
|
|
@@ -28,12 +28,12 @@ import { IconMoveStartLine } from '@instructure/ui-icons'
|
|
|
28
28
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content'
|
|
29
29
|
import { withStyle } from '@instructure/emotion'
|
|
30
30
|
|
|
31
|
-
import { SideNavBarItem } from './SideNavBarItem'
|
|
31
|
+
import { SideNavBarItem } from './SideNavBarItem/index.js'
|
|
32
32
|
|
|
33
|
-
import generateStyle from './styles'
|
|
34
|
-
import generateComponentTheme from './theme'
|
|
33
|
+
import generateStyle from './styles.js'
|
|
34
|
+
import generateComponentTheme from './theme.js'
|
|
35
35
|
import type { SideNavBarProps, SideNavBarState } from './props'
|
|
36
|
-
import { allowedProps } from './props'
|
|
36
|
+
import { allowedProps } from './props.js'
|
|
37
37
|
|
|
38
38
|
const navMinimized = ({ minimized }: { minimized: boolean }) => ({
|
|
39
39
|
minimized: !minimized
|
|
@@ -46,6 +46,7 @@ category: components
|
|
|
46
46
|
**/
|
|
47
47
|
@withStyle(generateStyle, generateComponentTheme)
|
|
48
48
|
class SideNavBar extends Component<SideNavBarProps, SideNavBarState> {
|
|
49
|
+
static displayName = 'SideNavBar'
|
|
49
50
|
static readonly componentId = 'SideNavBar'
|
|
50
51
|
|
|
51
52
|
static allowedProps = allowedProps
|
|
@@ -29,9 +29,9 @@ import { Tooltip } from '@instructure/ui-tooltip/latest'
|
|
|
29
29
|
import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
|
|
30
30
|
import { withStyleNew } from '@instructure/emotion'
|
|
31
31
|
|
|
32
|
-
import generateStyle from './styles'
|
|
32
|
+
import generateStyle from './styles.js'
|
|
33
33
|
import type { SideNavBarItemProps } from './props'
|
|
34
|
-
import { allowedProps } from './props'
|
|
34
|
+
import { allowedProps } from './props.js'
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
---
|
|
@@ -41,6 +41,7 @@ id: SideNavBar.Item
|
|
|
41
41
|
**/
|
|
42
42
|
@withStyleNew(generateStyle, 'SideNavBarItem')
|
|
43
43
|
class SideNavBarItem extends Component<SideNavBarItemProps> {
|
|
44
|
+
static displayName = 'SideNavBarItem'
|
|
44
45
|
static readonly componentId = 'SideNavBar.Item'
|
|
45
46
|
|
|
46
47
|
static allowedProps = allowedProps
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content'
|
|
33
33
|
import { withStyleNew } from '@instructure/emotion'
|
|
34
34
|
|
|
35
|
-
import { SideNavBarItem } from './SideNavBarItem'
|
|
35
|
+
import { SideNavBarItem } from './SideNavBarItem/index.js'
|
|
36
36
|
|
|
37
|
-
import generateStyle from './styles'
|
|
37
|
+
import generateStyle from './styles.js'
|
|
38
38
|
import type { SideNavBarProps, SideNavBarState } from './props'
|
|
39
|
-
import { allowedProps } from './props'
|
|
39
|
+
import { allowedProps } from './props.js'
|
|
40
40
|
|
|
41
41
|
const navMinimized = ({ minimized }: { minimized: boolean }) => ({
|
|
42
42
|
minimized: !minimized
|
|
@@ -49,6 +49,7 @@ category: components
|
|
|
49
49
|
**/
|
|
50
50
|
@withStyleNew(generateStyle)
|
|
51
51
|
class SideNavBar extends Component<SideNavBarProps, SideNavBarState> {
|
|
52
|
+
static displayName = 'SideNavBar'
|
|
52
53
|
static readonly componentId = 'SideNavBar'
|
|
53
54
|
|
|
54
55
|
static allowedProps = allowedProps
|
package/src/exports/a.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { SideNavBar, SideNavBarItem } from '../SideNavBar/v1'
|
|
25
|
+
export { SideNavBar, SideNavBarItem } from '../SideNavBar/v1/index.js'
|
|
26
26
|
|
|
27
27
|
export type { SideNavBarProps } from '../SideNavBar/v1/props'
|
|
28
28
|
export type { SideNavBarItemProps } from '../SideNavBar/v1/SideNavBarItem/props'
|
package/src/exports/b.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { SideNavBar, SideNavBarItem } from '../SideNavBar/v2'
|
|
25
|
+
export { SideNavBar, SideNavBarItem } from '../SideNavBar/v2/index.js'
|
|
26
26
|
|
|
27
27
|
export type { SideNavBarProps } from '../SideNavBar/v2/props'
|
|
28
28
|
export type { SideNavBarItemProps } from '../SideNavBar/v2/SideNavBarItem/props'
|