@instructure/ui-menu 11.7.3-snapshot-4 → 11.7.3-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 +1 -1
- package/package.json +16 -16
- package/src/Menu/v2/MenuItem/props.ts +2 -2
- package/src/Menu/v2/MenuItemGroup/props.ts +3 -5
- package/src/Menu/v2/MenuItemSeparator/props.ts +6 -5
- package/src/Menu/v2/props.ts +3 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Menu/v2/MenuItem/props.d.ts +3 -2
- package/types/Menu/v2/MenuItem/props.d.ts.map +1 -1
- package/types/Menu/v2/MenuItemGroup/props.d.ts +3 -2
- package/types/Menu/v2/MenuItemGroup/props.d.ts.map +1 -1
- package/types/Menu/v2/MenuItemSeparator/props.d.ts +3 -2
- package/types/Menu/v2/MenuItemSeparator/props.d.ts.map +1 -1
- package/types/Menu/v2/props.d.ts +3 -2
- package/types/Menu/v2/props.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.3-snapshot-
|
|
6
|
+
## [11.7.3-snapshot-7](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-7) (2026-04-29)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-menu
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-menu",
|
|
3
|
-
"version": "11.7.3-snapshot-
|
|
3
|
+
"version": "11.7.3-snapshot-7",
|
|
4
4
|
"description": "A dropdown menu component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,27 +16,27 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/console": "11.7.3-snapshot-
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/shared-types": "11.7.3-snapshot-
|
|
22
|
-
"@instructure/ui-
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/ui-
|
|
19
|
+
"@instructure/console": "11.7.3-snapshot-7",
|
|
20
|
+
"@instructure/ui-dom-utils": "11.7.3-snapshot-7",
|
|
21
|
+
"@instructure/shared-types": "11.7.3-snapshot-7",
|
|
22
|
+
"@instructure/ui-a11y-utils": "11.7.3-snapshot-7",
|
|
23
|
+
"@instructure/emotion": "11.7.3-snapshot-7",
|
|
24
|
+
"@instructure/ui-popover": "11.7.3-snapshot-7",
|
|
25
|
+
"@instructure/ui-position": "11.7.3-snapshot-7",
|
|
26
|
+
"@instructure/ui-react-utils": "11.7.3-snapshot-7",
|
|
27
|
+
"@instructure/ui-icons": "11.7.3-snapshot-7",
|
|
28
|
+
"@instructure/ui-themes": "11.7.3-snapshot-7",
|
|
29
|
+
"@instructure/ui-utils": "11.7.3-snapshot-7",
|
|
30
|
+
"@instructure/ui-view": "11.7.3-snapshot-7"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@testing-library/jest-dom": "^6.6.3",
|
|
33
34
|
"@testing-library/react": "15.0.7",
|
|
34
35
|
"@testing-library/user-event": "^14.6.1",
|
|
35
36
|
"vitest": "^3.2.2",
|
|
36
|
-
"@instructure/ui-axe-check": "11.7.3-snapshot-
|
|
37
|
-
"@instructure/ui-
|
|
38
|
-
"@instructure/ui-
|
|
39
|
-
"@instructure/ui-themes": "11.7.3-snapshot-4"
|
|
37
|
+
"@instructure/ui-axe-check": "11.7.3-snapshot-7",
|
|
38
|
+
"@instructure/ui-babel-preset": "11.7.3-snapshot-7",
|
|
39
|
+
"@instructure/ui-color-utils": "11.7.3-snapshot-7"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=18 <=19"
|
|
@@ -27,10 +27,10 @@ import MenuItem from '../MenuItem'
|
|
|
27
27
|
|
|
28
28
|
import type {
|
|
29
29
|
AsElementType,
|
|
30
|
-
MenuItemTheme,
|
|
31
30
|
OtherHTMLAttributes
|
|
32
31
|
} from '@instructure/shared-types'
|
|
33
32
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
33
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
34
34
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
35
35
|
|
|
36
36
|
type OnMenuItemSelect = (
|
|
@@ -100,7 +100,7 @@ type PropKeys = keyof MenuItemOwnProps
|
|
|
100
100
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
101
101
|
|
|
102
102
|
type MenuItemProps = MenuItemOwnProps &
|
|
103
|
-
WithStyleProps<
|
|
103
|
+
WithStyleProps<ReturnType<NewComponentTypes['MenuItem']>, MenuItemStyle> &
|
|
104
104
|
OtherHTMLAttributes<MenuItemOwnProps> &
|
|
105
105
|
WithDeterministicIdProps
|
|
106
106
|
|
|
@@ -26,11 +26,9 @@ import React from 'react'
|
|
|
26
26
|
|
|
27
27
|
import { MenuItem } from '../MenuItem'
|
|
28
28
|
|
|
29
|
-
import type {
|
|
30
|
-
MenuGroupTheme,
|
|
31
|
-
OtherHTMLAttributes
|
|
32
|
-
} from '@instructure/shared-types'
|
|
29
|
+
import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
33
30
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
31
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
34
32
|
import type { MenuItemProps } from '../MenuItem/props'
|
|
35
33
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
36
34
|
|
|
@@ -79,7 +77,7 @@ type PropKeys = keyof MenuGroupOwnProps
|
|
|
79
77
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
80
78
|
|
|
81
79
|
type MenuGroupProps = MenuGroupOwnProps &
|
|
82
|
-
WithStyleProps<
|
|
80
|
+
WithStyleProps<ReturnType<NewComponentTypes['MenuGroup']>, MenuGroupStyle> &
|
|
83
81
|
OtherHTMLAttributes<MenuGroupOwnProps> &
|
|
84
82
|
WithDeterministicIdProps
|
|
85
83
|
|
|
@@ -23,10 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
26
|
-
import type {
|
|
27
|
-
|
|
28
|
-
OtherHTMLAttributes
|
|
29
|
-
} from '@instructure/shared-types'
|
|
26
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
27
|
+
import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
30
28
|
|
|
31
29
|
// keeping here to keep the structure of props.ts
|
|
32
30
|
// eslint-disable-next-line
|
|
@@ -37,7 +35,10 @@ type PropKeys = keyof MenuSeparatorOwnProps
|
|
|
37
35
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
38
36
|
|
|
39
37
|
type MenuSeparatorProps = MenuSeparatorOwnProps &
|
|
40
|
-
WithStyleProps<
|
|
38
|
+
WithStyleProps<
|
|
39
|
+
ReturnType<NewComponentTypes['MenuSeparator']>,
|
|
40
|
+
MenuSeparatorStyle
|
|
41
|
+
> &
|
|
41
42
|
OtherHTMLAttributes<MenuSeparatorOwnProps>
|
|
42
43
|
|
|
43
44
|
type MenuSeparatorStyle = ComponentStyle<'menuItemSeparator'>
|
package/src/Menu/v2/props.ts
CHANGED
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
|
|
25
25
|
import React from 'react'
|
|
26
26
|
|
|
27
|
-
import type {
|
|
27
|
+
import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
28
28
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
29
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
29
30
|
import type {
|
|
30
31
|
PlacementPropValues,
|
|
31
32
|
PositionConstraint,
|
|
@@ -171,7 +172,7 @@ type PropKeys = keyof MenuOwnProps
|
|
|
171
172
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
172
173
|
|
|
173
174
|
type MenuProps = MenuOwnProps &
|
|
174
|
-
WithStyleProps<
|
|
175
|
+
WithStyleProps<ReturnType<NewComponentTypes['Menu']>, MenuStyle> &
|
|
175
176
|
// controls can be passed in renderChildren and used later as aria-controls
|
|
176
177
|
Omit<OtherHTMLAttributes<MenuOwnProps>, 'controls'> & {
|
|
177
178
|
controls?: React.AriaAttributes['aria-controls']
|