@fluentui/react-menu 9.0.0-alpha.77 → 9.0.0-alpha.80

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. package/CHANGELOG.json +116 -1
  2. package/CHANGELOG.md +38 -2
  3. package/Spec.md +138 -137
  4. package/dist/react-menu.d.ts +161 -136
  5. package/lib/components/Menu/Menu.d.ts +0 -1
  6. package/lib/components/Menu/Menu.js +0 -1
  7. package/lib/components/Menu/Menu.js.map +1 -1
  8. package/lib/components/Menu/Menu.types.d.ts +10 -14
  9. package/lib/components/Menu/Menu.types.js.map +1 -1
  10. package/lib/components/Menu/renderMenu.d.ts +0 -1
  11. package/lib/components/Menu/renderMenu.js +0 -1
  12. package/lib/components/Menu/renderMenu.js.map +1 -1
  13. package/lib/components/Menu/useMenu.d.ts +0 -2
  14. package/lib/components/Menu/useMenu.js +0 -2
  15. package/lib/components/Menu/useMenu.js.map +1 -1
  16. package/lib/components/MenuDivider/MenuDivider.d.ts +19 -3
  17. package/lib/components/MenuDivider/MenuDivider.js +0 -1
  18. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  19. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -10
  20. package/lib/components/MenuDivider/MenuDivider.types.js.map +1 -1
  21. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  22. package/lib/components/MenuGroup/MenuGroup.d.ts +19 -3
  23. package/lib/components/MenuGroup/MenuGroup.js +0 -1
  24. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  25. package/lib/components/MenuGroup/MenuGroup.types.d.ts +5 -12
  26. package/lib/components/MenuGroup/MenuGroup.types.js.map +1 -1
  27. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +19 -3
  28. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +0 -1
  29. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  30. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -10
  31. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
  32. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  33. package/lib/components/MenuItem/MenuItem.d.ts +0 -1
  34. package/lib/components/MenuItem/MenuItem.js +0 -1
  35. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  36. package/lib/components/MenuItem/MenuItem.types.d.ts +4 -6
  37. package/lib/components/MenuItem/MenuItem.types.js.map +1 -1
  38. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -1
  39. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +0 -1
  40. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  41. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +2 -10
  42. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
  43. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -3
  44. package/lib/components/MenuItemRadio/MenuItemRadio.js +0 -1
  45. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  46. package/lib/components/MenuItemRadio/MenuItemRadio.types.d.ts +2 -10
  47. package/lib/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
  48. package/lib/components/MenuList/MenuList.d.ts +19 -3
  49. package/lib/components/MenuList/MenuList.js +0 -1
  50. package/lib/components/MenuList/MenuList.js.map +1 -1
  51. package/lib/components/MenuList/MenuList.types.d.ts +8 -10
  52. package/lib/components/MenuList/MenuList.types.js.map +1 -1
  53. package/lib/components/MenuPopover/MenuPopover.d.ts +19 -2
  54. package/lib/components/MenuPopover/MenuPopover.types.d.ts +3 -4
  55. package/lib/components/MenuPopover/MenuPopover.types.js.map +1 -1
  56. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -1
  57. package/lib/components/MenuPopover/useMenuPopoverStyles.js +0 -1
  58. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  59. package/lib/components/MenuTrigger/MenuTrigger.d.ts +0 -1
  60. package/lib/components/MenuTrigger/MenuTrigger.js +0 -1
  61. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  62. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +10 -14
  63. package/lib/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
  64. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +0 -1
  65. package/lib/components/MenuTrigger/renderMenuTrigger.js +0 -1
  66. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  67. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +0 -2
  68. package/lib/components/MenuTrigger/useMenuTrigger.js +0 -2
  69. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  70. package/lib/components/MenuTrigger/useTriggerElement.js +13 -14
  71. package/lib/components/MenuTrigger/useTriggerElement.js.map +1 -1
  72. package/lib/contexts/menuContext.d.ts +2 -2
  73. package/lib/contexts/menuContext.js.map +1 -1
  74. package/lib/contexts/menuGroupContext.d.ts +2 -2
  75. package/lib/contexts/menuGroupContext.js.map +1 -1
  76. package/lib/contexts/menuListContext.d.ts +2 -2
  77. package/lib/contexts/menuListContext.js.map +1 -1
  78. package/lib/selectable/types.d.ts +4 -4
  79. package/lib/selectable/types.js.map +1 -1
  80. package/lib-amd/components/Menu/Menu.d.ts +0 -1
  81. package/lib-amd/components/Menu/Menu.js +0 -1
  82. package/lib-amd/components/Menu/Menu.js.map +1 -1
  83. package/lib-amd/components/Menu/Menu.types.d.ts +10 -14
  84. package/lib-amd/components/Menu/Menu.types.js.map +1 -1
  85. package/lib-amd/components/Menu/renderMenu.d.ts +0 -1
  86. package/lib-amd/components/Menu/renderMenu.js +0 -1
  87. package/lib-amd/components/Menu/renderMenu.js.map +1 -1
  88. package/lib-amd/components/Menu/useMenu.d.ts +0 -2
  89. package/lib-amd/components/Menu/useMenu.js +0 -2
  90. package/lib-amd/components/Menu/useMenu.js.map +1 -1
  91. package/lib-amd/components/MenuDivider/MenuDivider.d.ts +19 -3
  92. package/lib-amd/components/MenuDivider/MenuDivider.js +0 -1
  93. package/lib-amd/components/MenuDivider/MenuDivider.js.map +1 -1
  94. package/lib-amd/components/MenuDivider/MenuDivider.types.d.ts +2 -10
  95. package/lib-amd/components/MenuDivider/MenuDivider.types.js.map +1 -1
  96. package/lib-amd/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  97. package/lib-amd/components/MenuGroup/MenuGroup.d.ts +19 -3
  98. package/lib-amd/components/MenuGroup/MenuGroup.js +0 -1
  99. package/lib-amd/components/MenuGroup/MenuGroup.js.map +1 -1
  100. package/lib-amd/components/MenuGroup/MenuGroup.types.d.ts +5 -12
  101. package/lib-amd/components/MenuGroup/MenuGroup.types.js.map +1 -1
  102. package/lib-amd/components/MenuGroupHeader/MenuGroupHeader.d.ts +19 -3
  103. package/lib-amd/components/MenuGroupHeader/MenuGroupHeader.js +0 -1
  104. package/lib-amd/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  105. package/lib-amd/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -10
  106. package/lib-amd/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
  107. package/lib-amd/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  108. package/lib-amd/components/MenuItem/MenuItem.d.ts +0 -1
  109. package/lib-amd/components/MenuItem/MenuItem.js +0 -1
  110. package/lib-amd/components/MenuItem/MenuItem.js.map +1 -1
  111. package/lib-amd/components/MenuItem/MenuItem.types.d.ts +4 -6
  112. package/lib-amd/components/MenuItem/MenuItem.types.js.map +1 -1
  113. package/lib-amd/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -1
  114. package/lib-amd/components/MenuItemCheckbox/MenuItemCheckbox.js +0 -1
  115. package/lib-amd/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  116. package/lib-amd/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +2 -10
  117. package/lib-amd/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
  118. package/lib-amd/components/MenuItemRadio/MenuItemRadio.d.ts +1 -3
  119. package/lib-amd/components/MenuItemRadio/MenuItemRadio.js +0 -1
  120. package/lib-amd/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  121. package/lib-amd/components/MenuItemRadio/MenuItemRadio.types.d.ts +2 -10
  122. package/lib-amd/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
  123. package/lib-amd/components/MenuList/MenuList.d.ts +19 -3
  124. package/lib-amd/components/MenuList/MenuList.js +0 -1
  125. package/lib-amd/components/MenuList/MenuList.js.map +1 -1
  126. package/lib-amd/components/MenuList/MenuList.types.d.ts +8 -10
  127. package/lib-amd/components/MenuList/MenuList.types.js.map +1 -1
  128. package/lib-amd/components/MenuPopover/MenuPopover.d.ts +19 -2
  129. package/lib-amd/components/MenuPopover/MenuPopover.types.d.ts +3 -4
  130. package/lib-amd/components/MenuPopover/MenuPopover.types.js.map +1 -1
  131. package/lib-amd/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -1
  132. package/lib-amd/components/MenuPopover/useMenuPopoverStyles.js +0 -1
  133. package/lib-amd/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  134. package/lib-amd/components/MenuTrigger/MenuTrigger.d.ts +0 -1
  135. package/lib-amd/components/MenuTrigger/MenuTrigger.js +0 -1
  136. package/lib-amd/components/MenuTrigger/MenuTrigger.js.map +1 -1
  137. package/lib-amd/components/MenuTrigger/MenuTrigger.types.d.ts +10 -14
  138. package/lib-amd/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
  139. package/lib-amd/components/MenuTrigger/renderMenuTrigger.d.ts +0 -1
  140. package/lib-amd/components/MenuTrigger/renderMenuTrigger.js +0 -1
  141. package/lib-amd/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  142. package/lib-amd/components/MenuTrigger/useMenuTrigger.d.ts +0 -2
  143. package/lib-amd/components/MenuTrigger/useMenuTrigger.js +0 -2
  144. package/lib-amd/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  145. package/lib-amd/components/MenuTrigger/useTriggerElement.js +10 -11
  146. package/lib-amd/components/MenuTrigger/useTriggerElement.js.map +1 -1
  147. package/lib-amd/contexts/menuContext.d.ts +2 -2
  148. package/lib-amd/contexts/menuContext.js.map +1 -1
  149. package/lib-amd/contexts/menuGroupContext.d.ts +2 -2
  150. package/lib-amd/contexts/menuGroupContext.js.map +1 -1
  151. package/lib-amd/contexts/menuListContext.d.ts +2 -2
  152. package/lib-amd/contexts/menuListContext.js.map +1 -1
  153. package/lib-amd/selectable/types.d.ts +4 -4
  154. package/lib-amd/selectable/types.js.map +1 -1
  155. package/lib-commonjs/components/Menu/Menu.d.ts +0 -1
  156. package/lib-commonjs/components/Menu/Menu.js +0 -1
  157. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  158. package/lib-commonjs/components/Menu/Menu.types.d.ts +10 -14
  159. package/lib-commonjs/components/Menu/renderMenu.d.ts +0 -1
  160. package/lib-commonjs/components/Menu/renderMenu.js +0 -1
  161. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  162. package/lib-commonjs/components/Menu/useMenu.d.ts +0 -2
  163. package/lib-commonjs/components/Menu/useMenu.js +0 -2
  164. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  165. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +19 -3
  166. package/lib-commonjs/components/MenuDivider/MenuDivider.js +0 -1
  167. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  168. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -10
  169. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  170. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +19 -3
  171. package/lib-commonjs/components/MenuGroup/MenuGroup.js +0 -1
  172. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  173. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +5 -12
  174. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +19 -3
  175. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +0 -1
  176. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  177. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -10
  178. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  179. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +0 -1
  180. package/lib-commonjs/components/MenuItem/MenuItem.js +0 -1
  181. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  182. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +4 -6
  183. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -1
  184. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +0 -1
  185. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  186. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +2 -10
  187. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -3
  188. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +0 -1
  189. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  190. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.d.ts +2 -10
  191. package/lib-commonjs/components/MenuList/MenuList.d.ts +19 -3
  192. package/lib-commonjs/components/MenuList/MenuList.js +0 -1
  193. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  194. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +8 -10
  195. package/lib-commonjs/components/MenuPopover/MenuPopover.d.ts +19 -2
  196. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +3 -4
  197. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -1
  198. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +0 -1
  199. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  200. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +0 -1
  201. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +0 -1
  202. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  203. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +10 -14
  204. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +0 -1
  205. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +0 -1
  206. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  207. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +0 -2
  208. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +0 -2
  209. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  210. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +12 -13
  211. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +1 -1
  212. package/lib-commonjs/contexts/menuContext.d.ts +2 -2
  213. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  214. package/lib-commonjs/contexts/menuGroupContext.d.ts +2 -2
  215. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  216. package/lib-commonjs/contexts/menuListContext.d.ts +2 -2
  217. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  218. package/lib-commonjs/selectable/types.d.ts +4 -4
  219. package/package.json +13 -13
package/CHANGELOG.json CHANGED
@@ -2,7 +2,122 @@
2
2
  "name": "@fluentui/react-menu",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 16 Sep 2021 07:35:43 GMT",
5
+ "date": "Tue, 21 Sep 2021 07:40:35 GMT",
6
+ "tag": "@fluentui/react-menu_v9.0.0-alpha.80",
7
+ "version": "9.0.0-alpha.80",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "elcraig@microsoft.com",
12
+ "package": "@fluentui/react-menu",
13
+ "comment": "Remove unnecessary docCategory tags",
14
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
15
+ }
16
+ ],
17
+ "prerelease": [
18
+ {
19
+ "author": "gcox@microsoft.com",
20
+ "package": "@fluentui/react-menu",
21
+ "comment": "Updating to types over interfaces",
22
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
23
+ },
24
+ {
25
+ "author": "beachball",
26
+ "package": "@fluentui/react-menu",
27
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.69",
28
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
29
+ },
30
+ {
31
+ "author": "beachball",
32
+ "package": "@fluentui/react-menu",
33
+ "comment": "Bump @fluentui/react-portal to v9.0.0-alpha.51",
34
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
35
+ },
36
+ {
37
+ "author": "beachball",
38
+ "package": "@fluentui/react-menu",
39
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-alpha.57",
40
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
41
+ },
42
+ {
43
+ "author": "beachball",
44
+ "package": "@fluentui/react-menu",
45
+ "comment": "Bump @fluentui/react-provider to v9.0.0-alpha.80",
46
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
47
+ },
48
+ {
49
+ "author": "beachball",
50
+ "package": "@fluentui/react-menu",
51
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-alpha.63",
52
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
53
+ },
54
+ {
55
+ "author": "beachball",
56
+ "package": "@fluentui/react-menu",
57
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-alpha.51",
58
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
59
+ },
60
+ {
61
+ "author": "beachball",
62
+ "package": "@fluentui/react-menu",
63
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44",
64
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
65
+ },
66
+ {
67
+ "author": "beachball",
68
+ "package": "@fluentui/react-menu",
69
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13",
70
+ "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ {
76
+ "date": "Mon, 20 Sep 2021 07:36:26 GMT",
77
+ "tag": "@fluentui/react-menu_v9.0.0-alpha.79",
78
+ "version": "9.0.0-alpha.79",
79
+ "comments": {
80
+ "none": [
81
+ {
82
+ "author": "lingfangao@hotmail.com",
83
+ "package": "@fluentui/react-menu",
84
+ "comment": "chore: use versioon eslint-plugin and react-conformance in dev dependencies",
85
+ "commit": "b8a304770f77c0353553a152dad34421070400a6"
86
+ }
87
+ ],
88
+ "prerelease": [
89
+ {
90
+ "author": "lingfangao@hotmail.com",
91
+ "package": "@fluentui/react-menu",
92
+ "commit": "b8a304770f77c0353553a152dad34421070400a6",
93
+ "comment": "Bump @fluentui/react-menu to v9.0.0-alpha.79"
94
+ }
95
+ ]
96
+ }
97
+ },
98
+ {
99
+ "date": "Fri, 17 Sep 2021 07:35:26 GMT",
100
+ "tag": "@fluentui/react-menu_v9.0.0-alpha.78",
101
+ "version": "9.0.0-alpha.78",
102
+ "comments": {
103
+ "prerelease": [
104
+ {
105
+ "author": "Humberto.Morimoto@microsoft.com",
106
+ "package": "@fluentui/react-menu",
107
+ "comment": "Menu: Making MenuTrigger accept function components which customize where props go as children.",
108
+ "commit": "90d71a0914acbb73a0365d60a85237e3d58ef575"
109
+ },
110
+ {
111
+ "author": "Humberto.Morimoto@microsoft.com",
112
+ "package": "@fluentui/react-menu",
113
+ "commit": "90d71a0914acbb73a0365d60a85237e3d58ef575",
114
+ "comment": "Bump @fluentui/react-menu to v9.0.0-alpha.78"
115
+ }
116
+ ]
117
+ }
118
+ },
119
+ {
120
+ "date": "Thu, 16 Sep 2021 07:38:39 GMT",
6
121
  "tag": "@fluentui/react-menu_v9.0.0-alpha.77",
7
122
  "version": "9.0.0-alpha.77",
8
123
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,48 @@
1
1
  # Change Log - @fluentui/react-menu
2
2
 
3
- This log was last generated on Thu, 16 Sep 2021 07:35:43 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 21 Sep 2021 07:40:35 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-alpha.80](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-alpha.80)
8
+
9
+ Tue, 21 Sep 2021 07:40:35 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-alpha.79..@fluentui/react-menu_v9.0.0-alpha.80)
11
+
12
+ ### Changes
13
+
14
+ - Updating to types over interfaces ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by gcox@microsoft.com)
15
+ - Bump @fluentui/react-make-styles to v9.0.0-alpha.69 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
16
+ - Bump @fluentui/react-portal to v9.0.0-alpha.51 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
17
+ - Bump @fluentui/react-positioning to v9.0.0-alpha.57 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
18
+ - Bump @fluentui/react-provider to v9.0.0-alpha.80 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
19
+ - Bump @fluentui/react-tabster to v9.0.0-alpha.63 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
20
+ - Bump @fluentui/babel-make-styles to v9.0.0-alpha.51 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
21
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
22
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
23
+
24
+ ## [9.0.0-alpha.79](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-alpha.79)
25
+
26
+ Mon, 20 Sep 2021 07:36:26 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-alpha.78..@fluentui/react-menu_v9.0.0-alpha.79)
28
+
29
+ ### Changes
30
+
31
+ - Bump @fluentui/react-menu to v9.0.0-alpha.79 ([PR #19844](https://github.com/microsoft/fluentui/pull/19844) by lingfangao@hotmail.com)
32
+
33
+ ## [9.0.0-alpha.78](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-alpha.78)
34
+
35
+ Fri, 17 Sep 2021 07:35:26 GMT
36
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-alpha.77..@fluentui/react-menu_v9.0.0-alpha.78)
37
+
38
+ ### Changes
39
+
40
+ - Menu: Making MenuTrigger accept function components which customize where props go as children. ([PR #19840](https://github.com/microsoft/fluentui/pull/19840) by Humberto.Morimoto@microsoft.com)
41
+ - Bump @fluentui/react-menu to v9.0.0-alpha.78 ([PR #19840](https://github.com/microsoft/fluentui/pull/19840) by Humberto.Morimoto@microsoft.com)
42
+
7
43
  ## [9.0.0-alpha.77](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-alpha.77)
8
44
 
9
- Thu, 16 Sep 2021 07:35:43 GMT
45
+ Thu, 16 Sep 2021 07:38:39 GMT
10
46
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-alpha.76..@fluentui/react-menu_v9.0.0-alpha.77)
11
47
 
12
48
  ### Changes
package/Spec.md CHANGED
@@ -381,49 +381,50 @@ Sample usages will be give in the following section of this document [Sample cod
381
381
  The root level component serves as a simplified interface (sugar) for popup positioning and triggering.
382
382
 
383
383
  ```typescript
384
- export interface MenuProps extends MenuListProps, Pick<PositioningProps, '<Positioning props as necessary>'> {
385
- /**
386
- * Explicitly require children
387
- */
388
-
389
- children: React.ReactNode;
390
- /**
391
- * Whether the popup is open
392
- */
393
- open?: boolean;
394
-
395
- /**
396
- * Call back when the component requests to change value
397
- * The `open` value is used as a hint when directly controlling the component
398
- */
399
- onOpenChange?: (e: MenuOpenEvents, data: MenuOpenChangeData) => void;
400
-
401
- /**
402
- * Whether the popup is open by default
403
- */
404
- defaultOpen?: boolean;
405
-
406
- /**
407
- * Wrapper to style and add events for the popup
408
- */
409
- menuPopup?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
410
-
411
- /*
412
- * Opens the menu on hover
413
- */
414
- openOnHover?: boolean;
415
-
416
- /**
417
- * Opens the menu on right click (context menu), removes all other menu open interactions
418
- */
419
- openOnContext?: boolean;
420
-
421
- /**
422
- * Root menus are rendered out of DOM order on `document.body`, use this to render the menu in DOM order
423
- * This option is disregarded for submenus
424
- */
425
- inline?: boolean;
426
- }
384
+ export type MenuProps = MenuListProps &
385
+ Pick<PositioningProps, '<Positioning props as necessary>'> & {
386
+ /**
387
+ * Explicitly require children
388
+ */
389
+
390
+ children: React.ReactNode;
391
+ /**
392
+ * Whether the popup is open
393
+ */
394
+ open?: boolean;
395
+
396
+ /**
397
+ * Call back when the component requests to change value
398
+ * The `open` value is used as a hint when directly controlling the component
399
+ */
400
+ onOpenChange?: (e: MenuOpenEvents, data: MenuOpenChangeData) => void;
401
+
402
+ /**
403
+ * Whether the popup is open by default
404
+ */
405
+ defaultOpen?: boolean;
406
+
407
+ /**
408
+ * Wrapper to style and add events for the popup
409
+ */
410
+ menuPopup?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
411
+
412
+ /*
413
+ * Opens the menu on hover
414
+ */
415
+ openOnHover?: boolean;
416
+
417
+ /**
418
+ * Opens the menu on right click (context menu), removes all other menu open interactions
419
+ */
420
+ openOnContext?: boolean;
421
+
422
+ /**
423
+ * Root menus are rendered out of DOM order on `document.body`, use this to render the menu in DOM order
424
+ * This option is disregarded for submenus
425
+ */
426
+ inline?: boolean;
427
+ };
427
428
  ```
428
429
 
429
430
  ### MenuTrigger
@@ -431,12 +432,12 @@ export interface MenuProps extends MenuListProps, Pick<PositioningProps, '<Posit
431
432
  A non-visual component that wraps its child and configures them to be the trigger that will open a menu. This component should only accept one child
432
433
 
433
434
  ```typescript
434
- export interface MenuTriggerProps {
435
+ export type MenuTriggerProps = {
435
436
  /**
436
437
  * Explicitly require single child
437
438
  */
438
439
  children: React.ReactElement;
439
- }
440
+ };
440
441
  ```
441
442
 
442
443
  ### MenuList
@@ -446,35 +447,36 @@ This component is used internally by `Menu` and manages the context and layout i
446
447
  `MenuList` can also be used separately as the standalone variant of the `Menu`, since it should not control popup positioning or triggers. It is the only component in the API that can be used standalone. Envisioned to be used with more complex popup or trigger scenarios where the `Menu` component does not provide enough control for these situations.
447
448
 
448
449
  ```typescript
449
- export interface MenuListProps extends ComponentProps, React.HTMLAttributes<HTMLElement> {
450
- /**
451
- * Callback when checked items change for value with a name
452
- *
453
- * @param name - the name of the value
454
- * @param checkedItems - the items for this value that are checked
455
- */
456
- onCheckedValueChange?: (e: React.MouseEvent | React.KeyboardEvent, name: string, checkedItems: string[]) => void;
457
-
458
- /**
459
- * Map of all checked values
460
- */
461
- checkedValues?: Record<string, string[]>;
462
-
463
- /**
464
- * Default values to be checked on mount
465
- */
466
- defaultCheckedValues?: Record<string, string[]>;
467
-
468
- /**
469
- * States that menu items can contain icons and reserve slots for item alignment
470
- */
471
- hasIcons?: boolean;
472
-
473
- /**
474
- * States that menu items can contain selectable items and reserve slots for item alignment
475
- */
476
- hasCheckmarks?: boolean;
477
- }
450
+ export type MenuListProps = ComponentProps &
451
+ React.HTMLAttributes<HTMLElement> & {
452
+ /**
453
+ * Callback when checked items change for value with a name
454
+ *
455
+ * @param name - the name of the value
456
+ * @param checkedItems - the items for this value that are checked
457
+ */
458
+ onCheckedValueChange?: (e: React.MouseEvent | React.KeyboardEvent, name: string, checkedItems: string[]) => void;
459
+
460
+ /**
461
+ * Map of all checked values
462
+ */
463
+ checkedValues?: Record<string, string[]>;
464
+
465
+ /**
466
+ * Default values to be checked on mount
467
+ */
468
+ defaultCheckedValues?: Record<string, string[]>;
469
+
470
+ /**
471
+ * States that menu items can contain icons and reserve slots for item alignment
472
+ */
473
+ hasIcons?: boolean;
474
+
475
+ /**
476
+ * States that menu items can contain selectable items and reserve slots for item alignment
477
+ */
478
+ hasCheckmarks?: boolean;
479
+ };
478
480
  ```
479
481
 
480
482
  ### MenuGroup
@@ -502,49 +504,50 @@ This divider is purely a visual cue. To ensure consistent narration experience a
502
504
  ### MenuItem
503
505
 
504
506
  ```typescript
505
- export interface MenuItemProps extends ComponentProps, React.HTMLAttributes<HTMLElement> {
506
- /**
507
- * Icon slot rendered before children content
508
- */
509
- icon?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
510
-
511
- /**
512
- * A helper slot for alignment when a menu item is used with selectable menuitems
513
- * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
514
- */
515
- checkmark?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
516
-
517
- /**
518
- * Icon slot that shows the indicator for a submenu
519
- */
520
- submenuIndicator?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
521
-
522
- /**
523
- * Component children are placed in this slot
524
- * Avoid using the `children` property in this slot in favour of Component children whenever possible
525
- */
526
- content?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
527
-
528
- /**
529
- * Secondary content rendered opposite the primary content (e.g Shortcut text)
530
- */
531
- secondaryContent?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
532
-
533
- /**
534
- * If the menu item is a trigger for a submenu
535
- */
536
- hasSubmenu?: boolean;
537
-
538
- /**
539
- * Applies disabled styles to menu item but remains focusable
540
- */
541
- disabled?: boolean;
542
-
543
- /**
544
- * Clicking on the menu item will not dismiss an open menu
545
- */
546
- persistOnClick?: boolean;
547
- }
507
+ export type MenuItemProps = ComponentProps &
508
+ React.HTMLAttributes<HTMLElement> & {
509
+ /**
510
+ * Icon slot rendered before children content
511
+ */
512
+ icon?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
513
+
514
+ /**
515
+ * A helper slot for alignment when a menu item is used with selectable menuitems
516
+ * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
517
+ */
518
+ checkmark?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
519
+
520
+ /**
521
+ * Icon slot that shows the indicator for a submenu
522
+ */
523
+ submenuIndicator?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
524
+
525
+ /**
526
+ * Component children are placed in this slot
527
+ * Avoid using the `children` property in this slot in favour of Component children whenever possible
528
+ */
529
+ content?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
530
+
531
+ /**
532
+ * Secondary content rendered opposite the primary content (e.g Shortcut text)
533
+ */
534
+ secondaryContent?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
535
+
536
+ /**
537
+ * If the menu item is a trigger for a submenu
538
+ */
539
+ hasSubmenu?: boolean;
540
+
541
+ /**
542
+ * Applies disabled styles to menu item but remains focusable
543
+ */
544
+ disabled?: boolean;
545
+
546
+ /**
547
+ * Clicking on the menu item will not dismiss an open menu
548
+ */
549
+ persistOnClick?: boolean;
550
+ };
548
551
  ```
549
552
 
550
553
  ### MenuItemCheckbox/Radio
@@ -558,7 +561,7 @@ Variants of `MenuItem` that allows a single or multiple selection state based on
558
561
  /**
559
562
  * Props for selecatble menu items
560
563
  */
561
- export interface MenuItemSelectableProps extends React.HTMLAttributes<HTMLElement> {
564
+ export type MenuItemSelectableProps = React.HTMLAttributes<HTMLElement> & {
562
565
  /**
563
566
  * Follows input convention
564
567
  * https://www.w3schools.com/jsref/prop_checkbox_name.asp
@@ -575,26 +578,24 @@ export interface MenuItemSelectableProps extends React.HTMLAttributes<HTMLElemen
575
578
  * Whether the selectable item is disabled
576
579
  */
577
580
  disabled?: boolean;
578
- }
579
-
580
- export interface MenuItemCheckboxProps
581
- extends ComponentProps,
582
- React.HTMLAttributes<HTMLElement>,
583
- MenuItemProps,
584
- MenuItemSelectableProps {
585
- /**
586
- * Slot for the checkmark indicator
587
- */
588
- checkmark?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
589
- }
581
+ };
590
582
 
591
- export interface MenuItemRadioProps
592
- extends ComponentProps,
593
- React.HTMLAttributes<HTMLElement>,
594
- MenuItemProps,
595
- MenuItemSelectableProps {
596
- checkmark?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
597
- }
583
+ export type MenuItemCheckboxProps = ComponentProps &
584
+ React.HTMLAttributes<HTMLElement> &
585
+ MenuItemProps &
586
+ MenuItemSelectableProps & {
587
+ /**
588
+ * Slot for the checkmark indicator
589
+ */
590
+ checkmark?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
591
+ };
592
+
593
+ export type MenuItemRadioProps = ComponentProps &
594
+ React.HTMLAttributes<HTMLElement> &
595
+ MenuItemProps &
596
+ MenuItemSelectableProps & {
597
+ checkmark?: ShorthandProps<React.HTMLAttributes<HTMLElement>>;
598
+ };
598
599
  ```
599
600
 
600
601
  ## Sample code