@instructure/ui-menu 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.
Files changed (72) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +1 -0
  3. package/es/Menu/v1/MenuItem/index.js +5 -5
  4. package/es/Menu/v1/MenuItemGroup/index.js +5 -5
  5. package/es/Menu/v1/MenuItemSeparator/index.js +4 -4
  6. package/es/Menu/v1/index.js +8 -8
  7. package/es/Menu/v2/MenuItem/index.js +4 -4
  8. package/es/Menu/v2/MenuItemGroup/index.js +4 -4
  9. package/es/Menu/v2/MenuItemSeparator/index.js +3 -3
  10. package/es/Menu/v2/index.js +7 -7
  11. package/es/exports/a.js +1 -1
  12. package/es/exports/b.js +1 -1
  13. package/lib/Menu/v1/MenuItem/index.js +5 -5
  14. package/lib/Menu/v1/MenuItemGroup/index.js +7 -7
  15. package/lib/Menu/v1/MenuItemSeparator/index.js +4 -4
  16. package/lib/Menu/v1/index.js +15 -15
  17. package/lib/Menu/v2/MenuItem/index.js +4 -4
  18. package/lib/Menu/v2/MenuItemGroup/index.js +6 -6
  19. package/lib/Menu/v2/MenuItemSeparator/index.js +3 -3
  20. package/lib/Menu/v2/index.js +14 -14
  21. package/lib/exports/a.js +5 -5
  22. package/lib/exports/b.js +5 -5
  23. package/package.json +16 -16
  24. package/src/Menu/v1/MenuItem/index.tsx +5 -4
  25. package/src/Menu/v1/MenuItem/props.ts +1 -1
  26. package/src/Menu/v1/MenuItemGroup/index.tsx +6 -5
  27. package/src/Menu/v1/MenuItemGroup/props.ts +1 -1
  28. package/src/Menu/v1/MenuItemSeparator/index.tsx +4 -3
  29. package/src/Menu/v1/index.tsx +8 -7
  30. package/src/Menu/v1/props.ts +1 -1
  31. package/src/Menu/v2/MenuItem/index.tsx +4 -3
  32. package/src/Menu/v2/MenuItem/props.ts +1 -1
  33. package/src/Menu/v2/MenuItemGroup/index.tsx +5 -4
  34. package/src/Menu/v2/MenuItemGroup/props.ts +1 -1
  35. package/src/Menu/v2/MenuItemSeparator/index.tsx +3 -2
  36. package/src/Menu/v2/index.tsx +7 -6
  37. package/src/Menu/v2/props.ts +1 -1
  38. package/src/exports/a.ts +1 -1
  39. package/src/exports/b.ts +1 -1
  40. package/tsconfig.build.tsbuildinfo +1 -1
  41. package/types/Menu/v1/MenuItem/index.d.ts +3 -2
  42. package/types/Menu/v1/MenuItem/index.d.ts.map +1 -1
  43. package/types/Menu/v1/MenuItem/props.d.ts +1 -1
  44. package/types/Menu/v1/MenuItem/props.d.ts.map +1 -1
  45. package/types/Menu/v1/MenuItemGroup/index.d.ts +3 -2
  46. package/types/Menu/v1/MenuItemGroup/index.d.ts.map +1 -1
  47. package/types/Menu/v1/MenuItemGroup/props.d.ts +1 -1
  48. package/types/Menu/v1/MenuItemGroup/props.d.ts.map +1 -1
  49. package/types/Menu/v1/MenuItemSeparator/index.d.ts +1 -0
  50. package/types/Menu/v1/MenuItemSeparator/index.d.ts.map +1 -1
  51. package/types/Menu/v1/index.d.ts +4 -3
  52. package/types/Menu/v1/index.d.ts.map +1 -1
  53. package/types/Menu/v1/props.d.ts +1 -1
  54. package/types/Menu/v1/props.d.ts.map +1 -1
  55. package/types/Menu/v2/MenuItem/index.d.ts +3 -2
  56. package/types/Menu/v2/MenuItem/index.d.ts.map +1 -1
  57. package/types/Menu/v2/MenuItem/props.d.ts +1 -1
  58. package/types/Menu/v2/MenuItem/props.d.ts.map +1 -1
  59. package/types/Menu/v2/MenuItemGroup/index.d.ts +3 -2
  60. package/types/Menu/v2/MenuItemGroup/index.d.ts.map +1 -1
  61. package/types/Menu/v2/MenuItemGroup/props.d.ts +1 -1
  62. package/types/Menu/v2/MenuItemGroup/props.d.ts.map +1 -1
  63. package/types/Menu/v2/MenuItemSeparator/index.d.ts +1 -0
  64. package/types/Menu/v2/MenuItemSeparator/index.d.ts.map +1 -1
  65. package/types/Menu/v2/index.d.ts +4 -3
  66. package/types/Menu/v2/index.d.ts.map +1 -1
  67. package/types/Menu/v2/props.d.ts +1 -1
  68. package/types/Menu/v2/props.d.ts.map +1 -1
  69. package/types/exports/a.d.ts +1 -1
  70. package/types/exports/a.d.ts.map +1 -1
  71. package/types/exports/b.d.ts +1 -1
  72. package/types/exports/b.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-menu",
3
- "version": "11.7.4-snapshot-14",
3
+ "version": "11.7.4-snapshot-49",
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.29.2",
18
18
  "keycode": "^2",
19
- "@instructure/console": "11.7.4-snapshot-14",
20
- "@instructure/emotion": "11.7.4-snapshot-14",
21
- "@instructure/shared-types": "11.7.4-snapshot-14",
22
- "@instructure/ui-dom-utils": "11.7.4-snapshot-14",
23
- "@instructure/ui-a11y-utils": "11.7.4-snapshot-14",
24
- "@instructure/ui-popover": "11.7.4-snapshot-14",
25
- "@instructure/ui-icons": "11.7.4-snapshot-14",
26
- "@instructure/ui-position": "11.7.4-snapshot-14",
27
- "@instructure/ui-themes": "11.7.4-snapshot-14",
28
- "@instructure/ui-react-utils": "11.7.4-snapshot-14",
29
- "@instructure/ui-utils": "11.7.4-snapshot-14",
30
- "@instructure/ui-view": "11.7.4-snapshot-14"
19
+ "@instructure/console": "11.7.4-snapshot-49",
20
+ "@instructure/emotion": "11.7.4-snapshot-49",
21
+ "@instructure/shared-types": "11.7.4-snapshot-49",
22
+ "@instructure/ui-a11y-utils": "11.7.4-snapshot-49",
23
+ "@instructure/ui-dom-utils": "11.7.4-snapshot-49",
24
+ "@instructure/ui-icons": "11.7.4-snapshot-49",
25
+ "@instructure/ui-position": "11.7.4-snapshot-49",
26
+ "@instructure/ui-react-utils": "11.7.4-snapshot-49",
27
+ "@instructure/ui-popover": "11.7.4-snapshot-49",
28
+ "@instructure/ui-themes": "11.7.4-snapshot-49",
29
+ "@instructure/ui-utils": "11.7.4-snapshot-49",
30
+ "@instructure/ui-view": "11.7.4-snapshot-49"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.6.3",
34
34
  "@testing-library/react": "15.0.7",
35
35
  "@testing-library/user-event": "^14.6.1",
36
36
  "vitest": "^3.2.2",
37
- "@instructure/ui-axe-check": "11.7.4-snapshot-14",
38
- "@instructure/ui-babel-preset": "11.7.4-snapshot-14",
39
- "@instructure/ui-color-utils": "11.7.4-snapshot-14"
37
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-49",
38
+ "@instructure/ui-color-utils": "11.7.4-snapshot-49",
39
+ "@instructure/ui-axe-check": "11.7.4-snapshot-49"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": ">=18 <=19"
@@ -36,12 +36,12 @@ import { createChainedFunction } from '@instructure/ui-utils'
36
36
  import { isActiveElement, findDOMNode } from '@instructure/ui-dom-utils'
37
37
  import { withStyle } from '@instructure/emotion'
38
38
 
39
- import { MenuContext } from '../../../utils/v1/MenuContext'
39
+ import { MenuContext } from '../../../utils/v1/MenuContext.js'
40
40
 
41
- import generateStyle from './styles'
42
- import generateComponentTheme from './theme'
41
+ import generateStyle from './styles.js'
42
+ import generateComponentTheme from './theme.js'
43
43
 
44
- import { allowedProps } from './props'
44
+ import { allowedProps } from './props.js'
45
45
  import type { MenuItemProps, MenuItemState } from './props'
46
46
 
47
47
  /**
@@ -53,6 +53,7 @@ id: Menu.Item
53
53
  @withDeterministicId()
54
54
  @withStyle(generateStyle, generateComponentTheme)
55
55
  class MenuItem extends Component<MenuItemProps, MenuItemState> {
56
+ static displayName = 'MenuItem'
56
57
  static readonly componentId = 'Menu.Item'
57
58
 
58
59
  static allowedProps = allowedProps
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  import React from 'react'
26
- import MenuItem from '../MenuItem'
26
+ import MenuItem from '../MenuItem/index.js'
27
27
 
28
28
  import type {
29
29
  AsElementType,
@@ -33,15 +33,15 @@ import {
33
33
  } from '@instructure/ui-react-utils'
34
34
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
35
35
 
36
- import { MenuItem } from '../MenuItem'
36
+ import { MenuItem } from '../MenuItem/index.js'
37
37
  import type { OnMenuItemSelect, MenuItemProps } from '../MenuItem/props'
38
- import { MenuItemSeparator } from '../MenuItemSeparator'
38
+ import { MenuItemSeparator } from '../MenuItemSeparator/index.js'
39
39
  import type { MenuSeparatorProps } from '../MenuItemSeparator/props'
40
40
 
41
- import generateStyle from './styles'
42
- import generateComponentTheme from './theme'
41
+ import generateStyle from './styles.js'
42
+ import generateComponentTheme from './theme.js'
43
43
 
44
- import { allowedProps } from './props'
44
+ import { allowedProps } from './props.js'
45
45
  import type { MenuGroupProps, MenuGroupState } from './props'
46
46
 
47
47
  type MenuItemChild = ComponentElement<MenuItemProps, MenuItem>
@@ -59,6 +59,7 @@ id: Menu.Group
59
59
  @withDeterministicId()
60
60
  @withStyle(generateStyle, generateComponentTheme)
61
61
  class MenuItemGroup extends Component<MenuGroupProps, MenuGroupState> {
62
+ static displayName = 'MenuItemGroup'
62
63
  static readonly componentId = 'Menu.Group'
63
64
 
64
65
  static allowedProps = allowedProps
@@ -24,7 +24,7 @@
24
24
 
25
25
  import React from 'react'
26
26
 
27
- import { MenuItem } from '../MenuItem'
27
+ import { MenuItem } from '../MenuItem/index.js'
28
28
 
29
29
  import type {
30
30
  MenuGroupTheme,
@@ -27,10 +27,10 @@ import { Component } from 'react'
27
27
  import { withStyle } from '@instructure/emotion'
28
28
  import { omitProps } from '@instructure/ui-react-utils'
29
29
 
30
- import generateStyle from './styles'
31
- import generateComponentTheme from './theme'
30
+ import generateStyle from './styles.js'
31
+ import generateComponentTheme from './theme.js'
32
32
 
33
- import { allowedProps } from './props'
33
+ import { allowedProps } from './props.js'
34
34
  import type { MenuSeparatorProps } from './props'
35
35
 
36
36
  /**
@@ -42,6 +42,7 @@ id: Menu.Separator
42
42
  **/
43
43
  @withStyle(generateStyle, generateComponentTheme)
44
44
  class MenuItemSeparator extends Component<MenuSeparatorProps> {
45
+ static displayName = 'MenuItemSeparator'
45
46
  static readonly componentId = 'Menu.Separator'
46
47
 
47
48
  static allowedProps = allowedProps
@@ -34,19 +34,19 @@ import {
34
34
  import { logError as error } from '@instructure/console'
35
35
  import { containsActiveElement } from '@instructure/ui-dom-utils'
36
36
 
37
- import { MenuContext } from '../../utils/v1/MenuContext'
38
- import { MenuItem } from './MenuItem'
37
+ import { MenuContext } from '../../utils/v1/MenuContext.js'
38
+ import { MenuItem } from './MenuItem/index.js'
39
39
  import type { MenuItemProps } from './MenuItem/props'
40
- import { MenuItemGroup } from './MenuItemGroup'
40
+ import { MenuItemGroup } from './MenuItemGroup/index.js'
41
41
  import type { MenuGroupProps } from './MenuItemGroup/props'
42
- import { MenuItemSeparator } from './MenuItemSeparator'
42
+ import { MenuItemSeparator } from './MenuItemSeparator/index.js'
43
43
  import type { MenuSeparatorProps } from './MenuItemSeparator/props'
44
44
  import { withStyle } from '@instructure/emotion'
45
45
 
46
- import generateStyle from './styles'
47
- import generateComponentTheme from './theme'
46
+ import generateStyle from './styles.js'
47
+ import generateComponentTheme from './theme.js'
48
48
 
49
- import { allowedProps } from './props'
49
+ import { allowedProps } from './props.js'
50
50
  import type { MenuProps } from './props'
51
51
 
52
52
  type MenuChild = ComponentElement<MenuProps, Menu>
@@ -65,6 +65,7 @@ category: components
65
65
  @withDeterministicId()
66
66
  @withStyle(generateStyle, generateComponentTheme)
67
67
  class Menu extends Component<MenuProps> {
68
+ static displayName = 'Menu'
68
69
  static readonly componentId = 'Menu'
69
70
  static allowedProps = allowedProps
70
71
  static defaultProps = {
@@ -34,7 +34,7 @@ import type {
34
34
  import type { Popover } from '@instructure/ui-popover/v11_6'
35
35
  import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
36
36
 
37
- import { MenuItem } from './MenuItem'
37
+ import { MenuItem } from './MenuItem/index.js'
38
38
  import type { Menu } from './index'
39
39
  import type { MenuItemProps } from './MenuItem/props'
40
40
 
@@ -36,11 +36,11 @@ import { createChainedFunction } from '@instructure/ui-utils'
36
36
  import { isActiveElement, findDOMNode } from '@instructure/ui-dom-utils'
37
37
  import { withStyleNew } from '@instructure/emotion'
38
38
 
39
- import { MenuContext } from '../../../utils/v1/MenuContext'
39
+ import { MenuContext } from '../../../utils/v1/MenuContext.js'
40
40
 
41
- import generateStyle from './styles'
41
+ import generateStyle from './styles.js'
42
42
 
43
- import { allowedProps } from './props'
43
+ import { allowedProps } from './props.js'
44
44
  import type { MenuItemProps, MenuItemState } from './props'
45
45
 
46
46
  /**
@@ -52,6 +52,7 @@ id: Menu.Item
52
52
  @withDeterministicId()
53
53
  @withStyleNew(generateStyle)
54
54
  class MenuItem extends Component<MenuItemProps, MenuItemState> {
55
+ static displayName = 'MenuItem'
55
56
  static readonly componentId = 'Menu.Item'
56
57
 
57
58
  static allowedProps = allowedProps
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  import React from 'react'
26
- import MenuItem from '../MenuItem'
26
+ import MenuItem from '../MenuItem/index.js'
27
27
 
28
28
  import type {
29
29
  AsElementType,
@@ -33,14 +33,14 @@ import {
33
33
  } from '@instructure/ui-react-utils'
34
34
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
35
35
 
36
- import { MenuItem } from '../MenuItem'
36
+ import { MenuItem } from '../MenuItem/index.js'
37
37
  import type { OnMenuItemSelect, MenuItemProps } from '../MenuItem/props'
38
- import { MenuItemSeparator } from '../MenuItemSeparator'
38
+ import { MenuItemSeparator } from '../MenuItemSeparator/index.js'
39
39
  import type { MenuSeparatorProps } from '../MenuItemSeparator/props'
40
40
 
41
- import generateStyle from './styles'
41
+ import generateStyle from './styles.js'
42
42
 
43
- import { allowedProps } from './props'
43
+ import { allowedProps } from './props.js'
44
44
  import type { MenuGroupProps, MenuGroupState } from './props'
45
45
 
46
46
  type MenuItemChild = ComponentElement<MenuItemProps, MenuItem>
@@ -58,6 +58,7 @@ id: Menu.Group
58
58
  @withDeterministicId()
59
59
  @withStyleNew(generateStyle)
60
60
  class MenuItemGroup extends Component<MenuGroupProps, MenuGroupState> {
61
+ static displayName = 'MenuItemGroup'
61
62
  static readonly componentId = 'Menu.Group'
62
63
 
63
64
  static allowedProps = allowedProps
@@ -24,7 +24,7 @@
24
24
 
25
25
  import React from 'react'
26
26
 
27
- import { MenuItem } from '../MenuItem'
27
+ import { MenuItem } from '../MenuItem/index.js'
28
28
 
29
29
  import type { OtherHTMLAttributes } from '@instructure/shared-types'
30
30
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
@@ -27,9 +27,9 @@ import { Component } from 'react'
27
27
  import { withStyleNew } from '@instructure/emotion'
28
28
  import { omitProps } from '@instructure/ui-react-utils'
29
29
 
30
- import generateStyle from './styles'
30
+ import generateStyle from './styles.js'
31
31
 
32
- import { allowedProps } from './props'
32
+ import { allowedProps } from './props.js'
33
33
  import type { MenuSeparatorProps } from './props'
34
34
 
35
35
  /**
@@ -41,6 +41,7 @@ id: Menu.Separator
41
41
  **/
42
42
  @withStyleNew(generateStyle)
43
43
  class MenuItemSeparator extends Component<MenuSeparatorProps> {
44
+ static displayName = 'MenuItemSeparator'
44
45
  static readonly componentId = 'Menu.Separator'
45
46
 
46
47
  static allowedProps = allowedProps
@@ -34,18 +34,18 @@ import {
34
34
  import { logError as error } from '@instructure/console'
35
35
  import { containsActiveElement } from '@instructure/ui-dom-utils'
36
36
 
37
- import { MenuContext } from '../../utils/v1/MenuContext'
38
- import { MenuItem } from './MenuItem'
37
+ import { MenuContext } from '../../utils/v1/MenuContext.js'
38
+ import { MenuItem } from './MenuItem/index.js'
39
39
  import type { MenuItemProps } from './MenuItem/props'
40
- import { MenuItemGroup } from './MenuItemGroup'
40
+ import { MenuItemGroup } from './MenuItemGroup/index.js'
41
41
  import type { MenuGroupProps } from './MenuItemGroup/props'
42
- import { MenuItemSeparator } from './MenuItemSeparator'
42
+ import { MenuItemSeparator } from './MenuItemSeparator/index.js'
43
43
  import type { MenuSeparatorProps } from './MenuItemSeparator/props'
44
44
  import { withStyleNew } from '@instructure/emotion'
45
45
 
46
- import generateStyle from './styles'
46
+ import generateStyle from './styles.js'
47
47
 
48
- import { allowedProps } from './props'
48
+ import { allowedProps } from './props.js'
49
49
  import type { MenuProps } from './props'
50
50
 
51
51
  type MenuChild = ComponentElement<MenuProps, Menu>
@@ -64,6 +64,7 @@ category: components
64
64
  @withDeterministicId()
65
65
  @withStyleNew(generateStyle)
66
66
  class Menu extends Component<MenuProps> {
67
+ static displayName = 'Menu'
67
68
  static readonly componentId = 'Menu'
68
69
  static allowedProps = allowedProps
69
70
  static defaultProps = {
@@ -35,7 +35,7 @@ import type {
35
35
  import type { Popover } from '@instructure/ui-popover/latest'
36
36
  import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
37
37
 
38
- import { MenuItem } from './MenuItem'
38
+ import { MenuItem } from './MenuItem/index.js'
39
39
  import type { Menu } from './index'
40
40
  import type { MenuItemProps } from './MenuItem/props'
41
41
 
package/src/exports/a.ts CHANGED
@@ -21,7 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Menu, MenuItem, MenuItemGroup, MenuItemSeparator } from '../Menu/v1'
24
+ export { Menu, MenuItem, MenuItemGroup, MenuItemSeparator } from '../Menu/v1/index.js'
25
25
 
26
26
  export type { MenuProps } from '../Menu/v1/props'
27
27
  export type { MenuItemProps } from '../Menu/v1/MenuItem/props'
package/src/exports/b.ts CHANGED
@@ -21,7 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Menu, MenuItem, MenuItemGroup, MenuItemSeparator } from '../Menu/v2'
24
+ export { Menu, MenuItem, MenuItemGroup, MenuItemSeparator } from '../Menu/v2/index.js'
25
25
 
26
26
  export type { MenuProps } from '../Menu/v2/props'
27
27
  export type { MenuItemProps } from '../Menu/v2/MenuItem/props'