@instructure/ui-top-nav-bar 11.7.2-snapshot-54 → 11.7.2-snapshot-62
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 +4 -1
- package/package.json +26 -26
- package/src/TopNavBar/v2/TopNavBarActionItems/props.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarActionItems/styles.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarBrand/props.ts +5 -2
- package/src/TopNavBar/v2/TopNavBarBrand/styles.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarItem/props.ts +4 -1
- package/src/TopNavBar/v2/TopNavBarItem/styles.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarLayout/DesktopLayout/props.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarLayout/DesktopLayout/styles.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarLayout/SmallViewportLayout/props.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarLayout/SmallViewportLayout/styles.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarLayout/props.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarMenuItems/props.ts +1 -1
- package/src/TopNavBar/v2/TopNavBarMenuItems/styles.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TopNavBar/v2/TopNavBarActionItems/props.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarActionItems/props.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarActionItems/styles.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarActionItems/styles.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarBrand/props.d.ts +2 -2
- package/types/TopNavBar/v2/TopNavBarBrand/props.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarBrand/styles.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarBrand/styles.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarItem/index.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarItem/index.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarItem/props.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarItem/props.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarItem/styles.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarItem/styles.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/DesktopLayout/props.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/DesktopLayout/props.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/DesktopLayout/styles.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/DesktopLayout/styles.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/SmallViewportLayout/props.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/SmallViewportLayout/props.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/SmallViewportLayout/styles.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/SmallViewportLayout/styles.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/props.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarLayout/props.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarMenuItems/props.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarMenuItems/props.d.ts.map +1 -1
- package/types/TopNavBar/v2/TopNavBarMenuItems/styles.d.ts +1 -1
- package/types/TopNavBar/v2/TopNavBarMenuItems/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,14 @@
|
|
|
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.2-snapshot-
|
|
6
|
+
## [11.7.2-snapshot-62](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-62) (2026-04-23)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
+
* **emotion:** add helper for accessing computed theme (useComputedTheme.ts in the emotion package) ([6d3c649](https://github.com/instructure/instructure-ui/commit/6d3c64912304bf863e3bc720cdb29c88165bfe81))
|
|
12
|
+
* **many:** fix issues ([45f0ee3](https://github.com/instructure/instructure-ui/commit/45f0ee31e5bed27df24fb2bc25f69d54a97445d8))
|
|
13
|
+
* **many:** fix issues ([9d623ed](https://github.com/instructure/instructure-ui/commit/9d623ed9ba2be49549b625d1e436edc230a4df41))
|
|
11
14
|
* **many:** rework TopNavBar ([bf40e4f](https://github.com/instructure/instructure-ui/commit/bf40e4f380dce5edc45a0f0bc83d5a5070d3be2b))
|
|
12
15
|
|
|
13
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-top-nav-bar",
|
|
3
|
-
"version": "11.7.2-snapshot-
|
|
3
|
+
"version": "11.7.2-snapshot-62",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,37 +15,37 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
|
-
"@instructure/console": "11.7.2-snapshot-
|
|
19
|
-
"@instructure/shared-types": "11.7.2-snapshot-
|
|
20
|
-
"@instructure/ui-a11y-content": "11.7.2-snapshot-
|
|
21
|
-
"@instructure/emotion": "11.7.2-snapshot-
|
|
22
|
-
"@instructure/ui-avatar": "11.7.2-snapshot-
|
|
23
|
-
"@instructure/ui-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-dialog": "11.7.2-snapshot-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/ui-link": "11.7.2-snapshot-
|
|
30
|
-
"@instructure/ui-
|
|
31
|
-
"@instructure/ui-
|
|
32
|
-
"@instructure/ui-
|
|
33
|
-
"@instructure/ui-
|
|
34
|
-
"@instructure/ui-truncate-list": "11.7.2-snapshot-
|
|
35
|
-
"@instructure/ui-
|
|
36
|
-
"@instructure/ui-
|
|
37
|
-
"@instructure/ui-view": "11.7.2-snapshot-
|
|
18
|
+
"@instructure/console": "11.7.2-snapshot-62",
|
|
19
|
+
"@instructure/shared-types": "11.7.2-snapshot-62",
|
|
20
|
+
"@instructure/ui-a11y-content": "11.7.2-snapshot-62",
|
|
21
|
+
"@instructure/emotion": "11.7.2-snapshot-62",
|
|
22
|
+
"@instructure/ui-avatar": "11.7.2-snapshot-62",
|
|
23
|
+
"@instructure/ui-buttons": "11.7.2-snapshot-62",
|
|
24
|
+
"@instructure/ui-breadcrumb": "11.7.2-snapshot-62",
|
|
25
|
+
"@instructure/ui-dialog": "11.7.2-snapshot-62",
|
|
26
|
+
"@instructure/ui-drilldown": "11.7.2-snapshot-62",
|
|
27
|
+
"@instructure/ui-dom-utils": "11.7.2-snapshot-62",
|
|
28
|
+
"@instructure/ui-icons": "11.7.2-snapshot-62",
|
|
29
|
+
"@instructure/ui-link": "11.7.2-snapshot-62",
|
|
30
|
+
"@instructure/ui-popover": "11.7.2-snapshot-62",
|
|
31
|
+
"@instructure/ui-react-utils": "11.7.2-snapshot-62",
|
|
32
|
+
"@instructure/ui-tooltip": "11.7.2-snapshot-62",
|
|
33
|
+
"@instructure/ui-responsive": "11.7.2-snapshot-62",
|
|
34
|
+
"@instructure/ui-truncate-list": "11.7.2-snapshot-62",
|
|
35
|
+
"@instructure/ui-tray": "11.7.2-snapshot-62",
|
|
36
|
+
"@instructure/ui-utils": "11.7.2-snapshot-62",
|
|
37
|
+
"@instructure/ui-view": "11.7.2-snapshot-62"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@testing-library/jest-dom": "^6.6.3",
|
|
41
41
|
"@testing-library/react": "15.0.7",
|
|
42
42
|
"@testing-library/user-event": "^14.6.1",
|
|
43
43
|
"vitest": "^3.2.2",
|
|
44
|
-
"@instructure/ui-
|
|
45
|
-
"@instructure/ui-
|
|
46
|
-
"@instructure/ui-
|
|
47
|
-
"@instructure/ui-
|
|
48
|
-
"@instructure/ui-
|
|
44
|
+
"@instructure/ui-babel-preset": "11.7.2-snapshot-62",
|
|
45
|
+
"@instructure/ui-color-utils": "11.7.2-snapshot-62",
|
|
46
|
+
"@instructure/ui-scripts": "11.7.2-snapshot-62",
|
|
47
|
+
"@instructure/ui-themes": "11.7.2-snapshot-62",
|
|
48
|
+
"@instructure/ui-axe-check": "11.7.2-snapshot-62"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=18 <=19"
|
|
@@ -94,7 +94,7 @@ type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
|
94
94
|
|
|
95
95
|
type TopNavBarActionItemsProps = TopNavBarActionItemsOwnProps &
|
|
96
96
|
WithStyleProps<
|
|
97
|
-
NewComponentTypes['TopNavBarActionItems']
|
|
97
|
+
ReturnType<NewComponentTypes['TopNavBarActionItems']>,
|
|
98
98
|
TopNavBarActionItemsStyle
|
|
99
99
|
> &
|
|
100
100
|
OtherHTMLAttributes<TopNavBarActionItemsOwnProps> &
|
|
@@ -40,7 +40,7 @@ import type {
|
|
|
40
40
|
* @return {Object} The final style object, which will be used in the component
|
|
41
41
|
*/
|
|
42
42
|
const generateStyle = (
|
|
43
|
-
componentTheme: NewComponentTypes['TopNavBarActionItems']
|
|
43
|
+
componentTheme: ReturnType<NewComponentTypes['TopNavBarActionItems']>,
|
|
44
44
|
_props: TopNavBarActionItemsProps,
|
|
45
45
|
_sharedTokens: SharedTokens,
|
|
46
46
|
state: TopNavBarActionItemsStyleProps
|
|
@@ -80,13 +80,16 @@ type PropKeys = keyof TopNavBarBrandOwnProps
|
|
|
80
80
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
81
81
|
|
|
82
82
|
type TopNavBarBrandProps = TopNavBarBrandOwnProps &
|
|
83
|
-
WithStyleProps<
|
|
83
|
+
WithStyleProps<
|
|
84
|
+
ReturnType<NewComponentTypes['TopNavBarBrand']>,
|
|
85
|
+
TopNavBarBrandStyle
|
|
86
|
+
> &
|
|
84
87
|
OtherHTMLAttributes<TopNavBarBrandOwnProps>
|
|
85
88
|
|
|
86
89
|
type TopNavBarBrandStyle = ComponentStyle<
|
|
87
90
|
'topNavBarBrand' | 'container' | 'name' | 'iconContainer' | 'icon'
|
|
88
91
|
> &
|
|
89
|
-
Pick<NewComponentTypes['TopNavBarBrand']
|
|
92
|
+
Pick<ReturnType<NewComponentTypes['TopNavBarBrand']>, 'focusOutlineInset'>
|
|
90
93
|
|
|
91
94
|
type TopNavBarBrandStyleProps = {
|
|
92
95
|
layout: TopNavBarContextType['layout']
|
|
@@ -40,7 +40,7 @@ import type {
|
|
|
40
40
|
* @return {Object} The final style object, which will be used in the component
|
|
41
41
|
*/
|
|
42
42
|
const generateStyle = (
|
|
43
|
-
componentTheme: NewComponentTypes['TopNavBarBrand']
|
|
43
|
+
componentTheme: ReturnType<NewComponentTypes['TopNavBarBrand']>,
|
|
44
44
|
props: TopNavBarBrandProps,
|
|
45
45
|
_sharedTokens: SharedTokens,
|
|
46
46
|
state: TopNavBarBrandStyleProps
|
|
@@ -252,7 +252,10 @@ type PropKeys = keyof TopNavBarItemOwnProps
|
|
|
252
252
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
253
253
|
|
|
254
254
|
type TopNavBarItemProps = TopNavBarItemOwnProps &
|
|
255
|
-
WithStyleProps<
|
|
255
|
+
WithStyleProps<
|
|
256
|
+
ReturnType<NewComponentTypes['TopNavBarItem']>,
|
|
257
|
+
TopNavBarItemStyle
|
|
258
|
+
> &
|
|
256
259
|
OtherHTMLAttributes<TopNavBarItemOwnProps> &
|
|
257
260
|
WithDeterministicIdProps
|
|
258
261
|
|
|
@@ -40,7 +40,7 @@ import type {
|
|
|
40
40
|
* @return {Object} The final style object, which will be used in the component
|
|
41
41
|
*/
|
|
42
42
|
const generateStyle = (
|
|
43
|
-
componentTheme: NewComponentTypes['TopNavBarItem']
|
|
43
|
+
componentTheme: ReturnType<NewComponentTypes['TopNavBarItem']>,
|
|
44
44
|
props: TopNavBarItemProps,
|
|
45
45
|
_sharedTokens: SharedTokens,
|
|
46
46
|
state: TopNavBarItemStyleProps
|
|
@@ -48,7 +48,7 @@ type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
|
48
48
|
|
|
49
49
|
type TopNavBarDesktopLayoutProps = TopNavBarDesktopLayoutOwnProps &
|
|
50
50
|
WithStyleProps<
|
|
51
|
-
NewComponentTypes['TopNavBarLayout']
|
|
51
|
+
ReturnType<NewComponentTypes['TopNavBarLayout']>,
|
|
52
52
|
TopNavBarDesktopLayoutStyle
|
|
53
53
|
> &
|
|
54
54
|
OtherHTMLAttributes<TopNavBarDesktopLayoutOwnProps>
|
|
@@ -40,7 +40,7 @@ import type {
|
|
|
40
40
|
* @return {Object} The final style object, which will be used in the component
|
|
41
41
|
*/
|
|
42
42
|
const generateStyle = (
|
|
43
|
-
componentTheme: NewComponentTypes['TopNavBarLayout']
|
|
43
|
+
componentTheme: ReturnType<NewComponentTypes['TopNavBarLayout']>,
|
|
44
44
|
_props: TopNavBarDesktopLayoutProps,
|
|
45
45
|
_sharedTokens: SharedTokens,
|
|
46
46
|
state: TopNavBarDesktopLayoutStyleProps
|
|
@@ -119,7 +119,7 @@ type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
|
119
119
|
|
|
120
120
|
type TopNavBarSmallViewportLayoutProps = TopNavBarSmallViewportLayoutOwnProps &
|
|
121
121
|
WithStyleProps<
|
|
122
|
-
NewComponentTypes['TopNavBarLayout']
|
|
122
|
+
ReturnType<NewComponentTypes['TopNavBarLayout']>,
|
|
123
123
|
TopNavBarSmallViewportLayoutStyle
|
|
124
124
|
> &
|
|
125
125
|
OtherHTMLAttributes<TopNavBarSmallViewportLayoutOwnProps> &
|
|
@@ -40,7 +40,7 @@ import type {
|
|
|
40
40
|
* @return {Object} The final style object, which will be used in the component
|
|
41
41
|
*/
|
|
42
42
|
const generateStyle = (
|
|
43
|
-
componentTheme: NewComponentTypes['TopNavBarLayout']
|
|
43
|
+
componentTheme: ReturnType<NewComponentTypes['TopNavBarLayout']>,
|
|
44
44
|
_props: TopNavBarSmallViewportLayoutProps,
|
|
45
45
|
_sharedTokens: SharedTokens,
|
|
46
46
|
state: TopNavBarSmallViewportLayoutStyleProps
|
|
@@ -116,7 +116,7 @@ type SmallViewportAllowedPropKeys = Readonly<Array<SmallViewportPropKeys>>
|
|
|
116
116
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
117
117
|
|
|
118
118
|
type TopNavBarLayoutProps = TopNavBarLayoutOwnProps &
|
|
119
|
-
WithStyleProps<NewComponentTypes['TopNavBarLayout']
|
|
119
|
+
WithStyleProps<ReturnType<NewComponentTypes['TopNavBarLayout']>, null> &
|
|
120
120
|
OtherHTMLAttributes<TopNavBarLayoutOwnProps>
|
|
121
121
|
|
|
122
122
|
const commonAllowedProps: CommonAllowedPropKeys = [
|
|
@@ -93,7 +93,7 @@ type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
|
93
93
|
|
|
94
94
|
type TopNavBarMenuItemsProps = TopNavBarMenuItemsOwnProps &
|
|
95
95
|
WithStyleProps<
|
|
96
|
-
NewComponentTypes['TopNavBarMenuItems']
|
|
96
|
+
ReturnType<NewComponentTypes['TopNavBarMenuItems']>,
|
|
97
97
|
TopNavBarMenuItemsStyle
|
|
98
98
|
> &
|
|
99
99
|
WithDeterministicIdProps &
|
|
@@ -36,7 +36,7 @@ import type { TopNavBarMenuItemsStyle } from './props'
|
|
|
36
36
|
* @return {Object} The final style object, which will be used in the component
|
|
37
37
|
*/
|
|
38
38
|
const generateStyle = (
|
|
39
|
-
componentTheme: NewComponentTypes['TopNavBarMenuItems']
|
|
39
|
+
componentTheme: ReturnType<NewComponentTypes['TopNavBarMenuItems']>
|
|
40
40
|
): TopNavBarMenuItemsStyle => {
|
|
41
41
|
const submenuOptionStyle = {
|
|
42
42
|
display: 'inline-block',
|