@instructure/ui-menu 9.1.1-snapshot-4 → 9.1.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 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
- ## [9.1.1-snapshot-4](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.1.1-snapshot-4) (2024-06-24)
6
+ ## [9.1.1-snapshot-7](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.1.1-snapshot-7) (2024-07-03)
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": "9.1.1-snapshot-4",
3
+ "version": "9.1.1-snapshot-7",
4
4
  "description": "A dropdown menu component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,30 +23,30 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "9.1.1-snapshot-4",
27
- "@instructure/ui-babel-preset": "9.1.1-snapshot-4",
28
- "@instructure/ui-color-utils": "9.1.1-snapshot-4",
29
- "@instructure/ui-test-utils": "9.1.1-snapshot-4",
30
- "@instructure/ui-themes": "9.1.1-snapshot-4",
26
+ "@instructure/ui-axe-check": "9.1.1-snapshot-7",
27
+ "@instructure/ui-babel-preset": "9.1.1-snapshot-7",
28
+ "@instructure/ui-color-utils": "9.1.1-snapshot-7",
29
+ "@instructure/ui-test-utils": "9.1.1-snapshot-7",
30
+ "@instructure/ui-themes": "9.1.1-snapshot-7",
31
31
  "@testing-library/jest-dom": "^6.4.5",
32
32
  "@testing-library/react": "^15.0.7",
33
33
  "@testing-library/user-event": "^14.5.2"
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.24.5",
37
- "@instructure/console": "9.1.1-snapshot-4",
38
- "@instructure/emotion": "9.1.1-snapshot-4",
39
- "@instructure/shared-types": "9.1.1-snapshot-4",
40
- "@instructure/ui-a11y-utils": "9.1.1-snapshot-4",
41
- "@instructure/ui-dom-utils": "9.1.1-snapshot-4",
42
- "@instructure/ui-icons": "9.1.1-snapshot-4",
43
- "@instructure/ui-popover": "9.1.1-snapshot-4",
44
- "@instructure/ui-position": "9.1.1-snapshot-4",
45
- "@instructure/ui-prop-types": "9.1.1-snapshot-4",
46
- "@instructure/ui-react-utils": "9.1.1-snapshot-4",
47
- "@instructure/ui-testable": "9.1.1-snapshot-4",
48
- "@instructure/ui-utils": "9.1.1-snapshot-4",
49
- "@instructure/ui-view": "9.1.1-snapshot-4",
37
+ "@instructure/console": "9.1.1-snapshot-7",
38
+ "@instructure/emotion": "9.1.1-snapshot-7",
39
+ "@instructure/shared-types": "9.1.1-snapshot-7",
40
+ "@instructure/ui-a11y-utils": "9.1.1-snapshot-7",
41
+ "@instructure/ui-dom-utils": "9.1.1-snapshot-7",
42
+ "@instructure/ui-icons": "9.1.1-snapshot-7",
43
+ "@instructure/ui-popover": "9.1.1-snapshot-7",
44
+ "@instructure/ui-position": "9.1.1-snapshot-7",
45
+ "@instructure/ui-prop-types": "9.1.1-snapshot-7",
46
+ "@instructure/ui-react-utils": "9.1.1-snapshot-7",
47
+ "@instructure/ui-testable": "9.1.1-snapshot-7",
48
+ "@instructure/ui-utils": "9.1.1-snapshot-7",
49
+ "@instructure/ui-view": "9.1.1-snapshot-7",
50
50
  "keycode": "^2.2.1",
51
51
  "prop-types": "^15.8.1"
52
52
  },
@@ -43,7 +43,6 @@ import generateComponentTheme from './theme'
43
43
 
44
44
  import { propTypes, allowedProps } from './props'
45
45
  import type { MenuItemProps, MenuItemState } from './props'
46
- import type { ViewOwnProps } from '@instructure/ui-view'
47
46
 
48
47
  /**
49
48
  ---
@@ -115,7 +114,7 @@ class MenuItem extends Component<MenuItemProps, MenuItemState> {
115
114
  }
116
115
  }
117
116
 
118
- handleClick = (e: React.MouseEvent<ViewOwnProps>) => {
117
+ handleClick = (e: React.MouseEvent) => {
119
118
  const { onSelect, onClick, disabled, value } = this.props
120
119
  const selected = !this.selected
121
120
 
@@ -35,10 +35,9 @@ import type {
35
35
  } from '@instructure/shared-types'
36
36
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
37
37
  import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
38
- import type { ViewOwnProps } from '@instructure/ui-view'
39
38
 
40
39
  type OnMenuItemSelect = (
41
- e: React.MouseEvent<ViewOwnProps>,
40
+ e: React.MouseEvent,
42
41
  value: MenuItemOwnProps['value'],
43
42
  selected: MenuItemOwnProps['selected'],
44
43
  args: MenuItem
@@ -61,7 +60,7 @@ type MenuItemOwnProps = {
61
60
  * when used with the `selected` prop, the component will not control its own state
62
61
  */
63
62
  onSelect?: OnMenuItemSelect
64
- onClick?: (e: React.MouseEvent<ViewOwnProps>) => void
63
+ onClick?: (e: React.MouseEvent) => void
65
64
  onKeyDown?: (e: React.KeyboardEvent) => void
66
65
  onKeyUp?: (e: React.KeyboardEvent) => void
67
66
  onMouseOver?: (e: React.MouseEvent, args: MenuItem) => void
@@ -45,7 +45,6 @@ import generateComponentTheme from './theme'
45
45
 
46
46
  import { propTypes, allowedProps } from './props'
47
47
  import type { MenuGroupProps, MenuGroupState } from './props'
48
- import type { ViewOwnProps } from '@instructure/ui-view'
49
48
 
50
49
  type MenuItemChild = React.ComponentElement<MenuItemProps, MenuItem>
51
50
  type MenuSeparatorChild = React.ComponentElement<
@@ -126,7 +125,7 @@ class MenuItemGroup extends Component<MenuGroupProps, MenuGroupState> {
126
125
  }
127
126
 
128
127
  updateSelected = (
129
- e: React.MouseEvent<ViewOwnProps>,
128
+ e: React.MouseEvent,
130
129
  value: MenuItemProps['value'],
131
130
  items: MenuGroupState['selected'],
132
131
  selected: MenuItemProps['selected'],
@@ -41,7 +41,6 @@ import type {
41
41
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
42
42
  import type { MenuItemProps } from '../MenuItem/props'
43
43
  import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
44
- import type { ViewOwnProps } from '@instructure/ui-view'
45
44
 
46
45
  type MenuGroupOwnProps = {
47
46
  label: React.ReactNode
@@ -62,7 +61,7 @@ type MenuGroupOwnProps = {
62
61
  * call this function when a menu item is selected
63
62
  */
64
63
  onSelect?: (
65
- e: React.MouseEvent<ViewOwnProps>,
64
+ e: React.MouseEvent,
66
65
  updated: MenuItemProps['value'][],
67
66
  selected: MenuItemProps['selected'],
68
67
  item: MenuItem