@instructure/ui-navigation 8.27.1-snapshot-2 → 8.27.1-snapshot-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -2
- package/es/AppNav/index.js +0 -1
- package/lib/AppNav/index.js +0 -1
- package/package.json +23 -23
- package/src/AppNav/index.tsx +1 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/AppNav/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [8.27.1-snapshot-
|
|
6
|
+
## [8.27.1-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.27.0...v8.27.1-snapshot-7) (2022-08-15)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ui-tray:** add `position` theme variable to Tray ([375ed68](https://github.com/instructure/instructure-ui/commit/375ed68a6c38c241d45d3a13f5bb757ed68b9ab2))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/AppNav/index.js
CHANGED
|
@@ -67,7 +67,6 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
|
|
|
67
67
|
navWidth = _getBoundingClientRec.width;
|
|
68
68
|
|
|
69
69
|
const itemWidths = Array.from(this._list.getElementsByTagName('li')).map(item => {
|
|
70
|
-
// Todo: if item's type isn't `unknown`, can remove `Element`
|
|
71
70
|
const _getBoundingClientRec2 = getBoundingClientRect(item),
|
|
72
71
|
width = _getBoundingClientRec2.width;
|
|
73
72
|
|
package/lib/AppNav/index.js
CHANGED
|
@@ -65,7 +65,6 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
|
|
|
65
65
|
navWidth = _getBoundingClientRec.width;
|
|
66
66
|
|
|
67
67
|
const itemWidths = Array.from(this._list.getElementsByTagName('li')).map(item => {
|
|
68
|
-
// Todo: if item's type isn't `unknown`, can remove `Element`
|
|
69
68
|
const _getBoundingClientRec2 = (0, _getBoundingClientRect.getBoundingClientRect)(item),
|
|
70
69
|
width = _getBoundingClientRec2.width;
|
|
71
70
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-navigation",
|
|
3
|
-
"version": "8.27.1-snapshot-
|
|
3
|
+
"version": "8.27.1-snapshot-7",
|
|
4
4
|
"description": "Main and application level navigational components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,31 +23,31 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.27.1-snapshot-
|
|
27
|
-
"@instructure/ui-color-utils": "8.27.1-snapshot-
|
|
28
|
-
"@instructure/ui-test-locator": "8.27.1-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "8.27.1-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "8.27.1-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "8.27.1-snapshot-7",
|
|
27
|
+
"@instructure/ui-color-utils": "8.27.1-snapshot-7",
|
|
28
|
+
"@instructure/ui-test-locator": "8.27.1-snapshot-7",
|
|
29
|
+
"@instructure/ui-test-utils": "8.27.1-snapshot-7",
|
|
30
|
+
"@instructure/ui-themes": "8.27.1-snapshot-7"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/console": "8.27.1-snapshot-
|
|
35
|
-
"@instructure/debounce": "8.27.1-snapshot-
|
|
36
|
-
"@instructure/emotion": "8.27.1-snapshot-
|
|
37
|
-
"@instructure/shared-types": "8.27.1-snapshot-
|
|
38
|
-
"@instructure/ui-a11y-content": "8.27.1-snapshot-
|
|
39
|
-
"@instructure/ui-a11y-utils": "8.27.1-snapshot-
|
|
40
|
-
"@instructure/ui-badge": "8.27.1-snapshot-
|
|
41
|
-
"@instructure/ui-dom-utils": "8.27.1-snapshot-
|
|
42
|
-
"@instructure/ui-focusable": "8.27.1-snapshot-
|
|
43
|
-
"@instructure/ui-icons": "8.27.1-snapshot-
|
|
44
|
-
"@instructure/ui-menu": "8.27.1-snapshot-
|
|
45
|
-
"@instructure/ui-prop-types": "8.27.1-snapshot-
|
|
46
|
-
"@instructure/ui-react-utils": "8.27.1-snapshot-
|
|
47
|
-
"@instructure/ui-testable": "8.27.1-snapshot-
|
|
48
|
-
"@instructure/ui-tooltip": "8.27.1-snapshot-
|
|
49
|
-
"@instructure/ui-utils": "8.27.1-snapshot-
|
|
50
|
-
"@instructure/ui-view": "8.27.1-snapshot-
|
|
34
|
+
"@instructure/console": "8.27.1-snapshot-7",
|
|
35
|
+
"@instructure/debounce": "8.27.1-snapshot-7",
|
|
36
|
+
"@instructure/emotion": "8.27.1-snapshot-7",
|
|
37
|
+
"@instructure/shared-types": "8.27.1-snapshot-7",
|
|
38
|
+
"@instructure/ui-a11y-content": "8.27.1-snapshot-7",
|
|
39
|
+
"@instructure/ui-a11y-utils": "8.27.1-snapshot-7",
|
|
40
|
+
"@instructure/ui-badge": "8.27.1-snapshot-7",
|
|
41
|
+
"@instructure/ui-dom-utils": "8.27.1-snapshot-7",
|
|
42
|
+
"@instructure/ui-focusable": "8.27.1-snapshot-7",
|
|
43
|
+
"@instructure/ui-icons": "8.27.1-snapshot-7",
|
|
44
|
+
"@instructure/ui-menu": "8.27.1-snapshot-7",
|
|
45
|
+
"@instructure/ui-prop-types": "8.27.1-snapshot-7",
|
|
46
|
+
"@instructure/ui-react-utils": "8.27.1-snapshot-7",
|
|
47
|
+
"@instructure/ui-testable": "8.27.1-snapshot-7",
|
|
48
|
+
"@instructure/ui-tooltip": "8.27.1-snapshot-7",
|
|
49
|
+
"@instructure/ui-utils": "8.27.1-snapshot-7",
|
|
50
|
+
"@instructure/ui-view": "8.27.1-snapshot-7",
|
|
51
51
|
"prop-types": "^15"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
package/src/AppNav/index.tsx
CHANGED
|
@@ -123,8 +123,7 @@ class AppNav extends Component<AppNavProps> {
|
|
|
123
123
|
|
|
124
124
|
const itemWidths = Array.from(this._list.getElementsByTagName('li')).map(
|
|
125
125
|
(item) => {
|
|
126
|
-
|
|
127
|
-
const { width } = getBoundingClientRect(item as Element)
|
|
126
|
+
const { width } = getBoundingClientRect(item)
|
|
128
127
|
return width
|
|
129
128
|
}
|
|
130
129
|
)
|