@fluentui/react-menu 0.0.0-nightly050f89bf0020211102.1 → 0.0.0-nightly442708a36520211209.1

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 (275) hide show
  1. package/CHANGELOG.json +238 -26
  2. package/CHANGELOG.md +66 -20
  3. package/dist/react-menu.d.ts +34 -7
  4. package/lib/components/Menu/Menu.js +3 -3
  5. package/lib/components/Menu/Menu.js.map +1 -1
  6. package/lib/components/Menu/renderMenu.js +1 -1
  7. package/lib/components/Menu/renderMenu.js.map +1 -1
  8. package/lib/components/Menu/useMenu.js +103 -117
  9. package/lib/components/Menu/useMenu.js.map +1 -1
  10. package/lib/components/Menu/useMenuContextValues.js +34 -32
  11. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  12. package/lib/components/MenuDivider/MenuDivider.js +2 -2
  13. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  14. package/lib/components/MenuDivider/renderMenuDivider.js +6 -7
  15. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  16. package/lib/components/MenuDivider/useMenuDivider.js +6 -7
  17. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  18. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -0
  19. package/lib/components/MenuDivider/useMenuDividerStyles.js +6 -5
  20. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  21. package/lib/components/MenuGroup/MenuGroup.js +5 -3
  22. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  23. package/lib/components/MenuGroup/index.d.ts +1 -0
  24. package/lib/components/MenuGroup/index.js +1 -0
  25. package/lib/components/MenuGroup/index.js.map +1 -1
  26. package/lib/components/MenuGroup/renderMenuGroup.js +6 -7
  27. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  28. package/lib/components/MenuGroup/useMenuGroup.js +6 -6
  29. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  30. package/lib/components/MenuGroup/useMenuGroupContextValues.js +7 -7
  31. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  32. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  33. package/lib/components/MenuGroup/useMenuGroupStyles.js +7 -0
  34. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  35. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +2 -2
  36. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  37. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +6 -7
  38. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  39. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +8 -6
  40. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  41. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -0
  42. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +5 -4
  43. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  44. package/lib/components/MenuItem/MenuItem.js +2 -4
  45. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  46. package/lib/components/MenuItem/renderMenuItem.js +6 -7
  47. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  48. package/lib/components/MenuItem/useCharacterSearch.js +6 -6
  49. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  50. package/lib/components/MenuItem/useMenuItem.js +31 -36
  51. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  52. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -0
  53. package/lib/components/MenuItem/useMenuItemStyles.js +16 -8
  54. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  55. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  56. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  57. package/lib/components/MenuItemCheckbox/index.d.ts +1 -0
  58. package/lib/components/MenuItemCheckbox/index.js +1 -0
  59. package/lib/components/MenuItemCheckbox/index.js.map +1 -1
  60. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +6 -7
  61. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  62. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +12 -13
  63. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  64. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  65. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +4 -1
  66. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  67. package/lib/components/MenuItemRadio/MenuItemRadio.js +2 -2
  68. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  69. package/lib/components/MenuItemRadio/index.d.ts +1 -0
  70. package/lib/components/MenuItemRadio/index.js +1 -0
  71. package/lib/components/MenuItemRadio/index.js.map +1 -1
  72. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +6 -7
  73. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  74. package/lib/components/MenuItemRadio/useMenuItemRadio.js +12 -12
  75. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  76. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -0
  77. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +4 -1
  78. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  79. package/lib/components/MenuList/MenuList.js +3 -3
  80. package/lib/components/MenuList/MenuList.js.map +1 -1
  81. package/lib/components/MenuList/MenuList.types.d.ts +8 -6
  82. package/lib/components/MenuList/renderMenuList.js +6 -7
  83. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  84. package/lib/components/MenuList/useMenuList.js +66 -86
  85. package/lib/components/MenuList/useMenuList.js.map +1 -1
  86. package/lib/components/MenuList/useMenuListContextValues.js +18 -16
  87. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  88. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -0
  89. package/lib/components/MenuList/useMenuListStyles.js +9 -7
  90. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  91. package/lib/components/MenuPopover/MenuPopover.js +2 -2
  92. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  93. package/lib/components/MenuPopover/renderMenuPopover.js +7 -7
  94. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  95. package/lib/components/MenuPopover/useMenuPopover.js +29 -38
  96. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  97. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -0
  98. package/lib/components/MenuPopover/useMenuPopoverStyles.js +12 -8
  99. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  100. package/lib/components/MenuTrigger/MenuTrigger.js +2 -2
  101. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  102. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +2 -1
  103. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  104. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  105. package/lib/components/MenuTrigger/useMenuTrigger.js +3 -4
  106. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  107. package/lib/components/MenuTrigger/useTriggerElement.js +57 -70
  108. package/lib/components/MenuTrigger/useTriggerElement.js.map +1 -1
  109. package/lib/contexts/menuContext.js +5 -11
  110. package/lib/contexts/menuContext.js.map +1 -1
  111. package/lib/contexts/menuGroupContext.js +3 -5
  112. package/lib/contexts/menuGroupContext.js.map +1 -1
  113. package/lib/contexts/menuListContext.js +7 -17
  114. package/lib/contexts/menuListContext.js.map +1 -1
  115. package/lib/contexts/menuTriggerContext.js +3 -5
  116. package/lib/contexts/menuTriggerContext.js.map +1 -1
  117. package/lib/selectable/useCheckmarkStyles.js +3 -3
  118. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  119. package/lib/utils/useIsSubmenu.js +2 -4
  120. package/lib/utils/useIsSubmenu.js.map +1 -1
  121. package/lib/utils/useOnMenuEnter.js +16 -14
  122. package/lib/utils/useOnMenuEnter.js.map +1 -1
  123. package/lib-commonjs/Menu.js +1 -1
  124. package/lib-commonjs/MenuDivider.js +1 -1
  125. package/lib-commonjs/MenuGroup.js +1 -1
  126. package/lib-commonjs/MenuGroupHeader.js +1 -1
  127. package/lib-commonjs/MenuItem.js +1 -1
  128. package/lib-commonjs/MenuItemCheckbox.js +1 -1
  129. package/lib-commonjs/MenuItemRadio.js +1 -1
  130. package/lib-commonjs/MenuList.js +1 -1
  131. package/lib-commonjs/MenuPopover.js +1 -1
  132. package/lib-commonjs/MenuTrigger.js +1 -1
  133. package/lib-commonjs/components/Menu/Menu.js +6 -6
  134. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  135. package/lib-commonjs/components/Menu/index.js +1 -1
  136. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  137. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  138. package/lib-commonjs/components/Menu/useMenu.js +112 -127
  139. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  140. package/lib-commonjs/components/Menu/useMenuContextValues.js +34 -32
  141. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  142. package/lib-commonjs/components/MenuDivider/MenuDivider.js +6 -6
  143. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  144. package/lib-commonjs/components/MenuDivider/index.js +1 -1
  145. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +8 -10
  146. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  147. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +7 -9
  148. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  149. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -0
  150. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +8 -6
  151. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  152. package/lib-commonjs/components/MenuGroup/MenuGroup.js +10 -7
  153. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  154. package/lib-commonjs/components/MenuGroup/index.d.ts +1 -0
  155. package/lib-commonjs/components/MenuGroup/index.js +3 -1
  156. package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
  157. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +9 -11
  158. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  159. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +7 -8
  160. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  161. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +8 -8
  162. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  163. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  164. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +18 -0
  165. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  166. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +6 -6
  167. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  168. package/lib-commonjs/components/MenuGroupHeader/index.js +1 -1
  169. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +8 -10
  170. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  171. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +10 -9
  172. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  173. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -0
  174. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -6
  175. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  176. package/lib-commonjs/components/MenuItem/MenuItem.js +6 -9
  177. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  178. package/lib-commonjs/components/MenuItem/index.js +1 -1
  179. package/lib-commonjs/components/MenuItem/renderMenuItem.js +9 -11
  180. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  181. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +7 -7
  182. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  183. package/lib-commonjs/components/MenuItem/useMenuItem.js +38 -44
  184. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  185. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -0
  186. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +20 -10
  187. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  188. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  189. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  190. package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +1 -0
  191. package/lib-commonjs/components/MenuItemCheckbox/index.js +3 -1
  192. package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
  193. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +9 -11
  194. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  195. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +17 -19
  196. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  197. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  198. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +10 -5
  199. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  200. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +6 -6
  201. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  202. package/lib-commonjs/components/MenuItemRadio/index.d.ts +1 -0
  203. package/lib-commonjs/components/MenuItemRadio/index.js +3 -1
  204. package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
  205. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +9 -11
  206. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  207. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +17 -18
  208. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  209. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -0
  210. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +9 -4
  211. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  212. package/lib-commonjs/components/MenuList/MenuList.js +8 -8
  213. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  214. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +8 -6
  215. package/lib-commonjs/components/MenuList/index.js +1 -1
  216. package/lib-commonjs/components/MenuList/renderMenuList.js +9 -11
  217. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  218. package/lib-commonjs/components/MenuList/useMenuList.js +72 -93
  219. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  220. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +18 -16
  221. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  222. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -0
  223. package/lib-commonjs/components/MenuList/useMenuListStyles.js +11 -8
  224. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  225. package/lib-commonjs/components/MenuPopover/MenuPopover.js +6 -6
  226. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  227. package/lib-commonjs/components/MenuPopover/index.js +1 -1
  228. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +10 -11
  229. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  230. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +36 -46
  231. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  232. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -0
  233. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +14 -9
  234. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  235. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +4 -4
  236. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  237. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +2 -1
  238. package/lib-commonjs/components/MenuTrigger/index.js +1 -1
  239. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  240. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  241. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +4 -6
  242. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  243. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +64 -78
  244. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +1 -1
  245. package/lib-commonjs/components/index.js +1 -1
  246. package/lib-commonjs/contexts/menuContext.js +4 -10
  247. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  248. package/lib-commonjs/contexts/menuGroupContext.js +3 -5
  249. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  250. package/lib-commonjs/contexts/menuListContext.js +6 -16
  251. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  252. package/lib-commonjs/contexts/menuTriggerContext.js +3 -5
  253. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  254. package/lib-commonjs/index.js +1 -1
  255. package/lib-commonjs/selectable/index.js +1 -1
  256. package/lib-commonjs/selectable/useCheckmarkStyles.js +4 -4
  257. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  258. package/lib-commonjs/utils/index.js +1 -1
  259. package/lib-commonjs/utils/useIsSubmenu.js +5 -7
  260. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  261. package/lib-commonjs/utils/useOnMenuEnter.js +18 -16
  262. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  263. package/package.json +16 -16
  264. package/lib/common/isConformant.d.ts +0 -4
  265. package/lib/common/isConformant.js +0 -12
  266. package/lib/common/isConformant.js.map +0 -1
  267. package/lib/common/mockUseMenuContext.d.ts +0 -7
  268. package/lib/common/mockUseMenuContext.js +0 -36
  269. package/lib/common/mockUseMenuContext.js.map +0 -1
  270. package/lib-commonjs/common/isConformant.d.ts +0 -4
  271. package/lib-commonjs/common/isConformant.js +0 -23
  272. package/lib-commonjs/common/isConformant.js.map +0 -1
  273. package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
  274. package/lib-commonjs/common/mockUseMenuContext.js +0 -47
  275. package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-menu",
3
- "version": "0.0.0-nightly050f89bf0020211102.1",
3
+ "version": "0.0.0-nightly442708a36520211209.1",
4
4
  "description": "Fluent UI menu component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -13,7 +13,7 @@
13
13
  "license": "MIT",
14
14
  "scripts": {
15
15
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
16
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-menu/src && yarn docs",
16
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-menu/src && yarn docs",
17
17
  "build": "just-scripts build",
18
18
  "bundle-size": "bundle-size measure",
19
19
  "clean": "just-scripts clean",
@@ -23,14 +23,15 @@
23
23
  "lint": "just-scripts lint",
24
24
  "start": "yarn storybook",
25
25
  "storybook": "start-storybook",
26
- "test": "jest"
26
+ "test": "jest",
27
+ "type-check": "tsc -b tsconfig.json"
27
28
  },
28
29
  "devDependencies": {
29
- "@fluentui/babel-make-styles": "0.0.0-nightly050f89bf0020211102.1",
30
+ "@fluentui/babel-make-styles": "0.0.0-nightly442708a36520211209.1",
30
31
  "@fluentui/eslint-plugin": "*",
31
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightly050f89bf0020211102.1",
32
+ "@fluentui/jest-serializer-make-styles": "0.0.0-nightly442708a36520211209.1",
32
33
  "@fluentui/react-conformance": "*",
33
- "@fluentui/react-conformance-make-styles": "0.0.0-nightly050f89bf0020211102.1",
34
+ "@fluentui/react-conformance-make-styles": "0.0.0-nightly442708a36520211209.1",
34
35
  "@fluentui/scripts": "^1.0.0",
35
36
  "@types/enzyme": "3.10.3",
36
37
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -44,15 +45,15 @@
44
45
  "react-test-renderer": "^16.3.0"
45
46
  },
46
47
  "dependencies": {
47
- "@fluentui/keyboard-keys": "0.0.0-nightly050f89bf0020211102.1",
48
- "@fluentui/react-context-selector": "0.0.0-nightly050f89bf0020211102.1",
49
- "@fluentui/react-icons": "^1.1.140",
50
- "@fluentui/react-make-styles": "0.0.0-nightly050f89bf0020211102.1",
51
- "@fluentui/react-portal": "0.0.0-nightly050f89bf0020211102.1",
52
- "@fluentui/react-positioning": "0.0.0-nightly050f89bf0020211102.1",
53
- "@fluentui/react-provider": "0.0.0-nightly050f89bf0020211102.1",
54
- "@fluentui/react-tabster": "0.0.0-nightly050f89bf0020211102.1",
55
- "@fluentui/react-utilities": "0.0.0-nightly050f89bf0020211102.1",
48
+ "@fluentui/keyboard-keys": "0.0.0-nightly442708a36520211209.1",
49
+ "@fluentui/react-context-selector": "0.0.0-nightly442708a36520211209.1",
50
+ "@fluentui/react-icons": "^2.0.154-beta.5",
51
+ "@fluentui/react-make-styles": "0.0.0-nightly442708a36520211209.1",
52
+ "@fluentui/react-portal": "0.0.0-nightly442708a36520211209.1",
53
+ "@fluentui/react-positioning": "0.0.0-nightly442708a36520211209.1",
54
+ "@fluentui/react-shared-contexts": "0.0.0-nightly442708a36520211209.1",
55
+ "@fluentui/react-tabster": "0.0.0-nightly442708a36520211209.1",
56
+ "@fluentui/react-utilities": "0.0.0-nightly442708a36520211209.1",
56
57
  "tslib": "^2.1.0"
57
58
  },
58
59
  "peerDependencies": {
@@ -62,7 +63,6 @@
62
63
  "react-dom": ">=16.8.0 <18.0.0"
63
64
  },
64
65
  "beachball": {
65
- "tag": "beta",
66
66
  "disallowedChangeTypes": [
67
67
  "major",
68
68
  "minor",
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,12 +0,0 @@
1
- import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
- import makeStylesTests from '@fluentui/react-conformance-make-styles';
3
- export function isConformant(testInfo) {
4
- var defaultOptions = {
5
- asPropHandlesRef: true,
6
- componentPath: module.parent.filename.replace('.test', ''),
7
- skipAsPropTests: true,
8
- extraTests: makeStylesTests
9
- };
10
- baseIsConformant(defaultOptions, testInfo);
11
- }
12
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE;AAJ+C,GAA7D;AAOA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
@@ -1,7 +0,0 @@
1
- import type { MenuContextValue } from '../contexts/menuContext';
2
- /**
3
- * A test utility to mock the useMenuContext hook that relies on context selector
4
- * Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
5
- * @param options Menu context values to set for testing
6
- */
7
- export declare const mockUseMenuContext: (options?: Partial<MenuContextValue>) => void;
@@ -1,36 +0,0 @@
1
- import { __assign } from "tslib";
2
- import { useMenuContext } from '../contexts/menuContext';
3
- /**
4
- * A test utility to mock the useMenuContext hook that relies on context selector
5
- * Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
6
- * @param options Menu context values to set for testing
7
- */
8
-
9
- export var mockUseMenuContext = function (options) {
10
- if (options === void 0) {
11
- options = {};
12
- }
13
-
14
- var mockContext = __assign({
15
- open: false,
16
- setOpen: function () {
17
- return null;
18
- },
19
- triggerRef: {
20
- current: null
21
- },
22
- menuPopoverRef: {
23
- current: null
24
- },
25
- openOnContext: false,
26
- openOnHover: false,
27
- isSubmenu: false,
28
- triggerId: 'id'
29
- }, options); // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
-
31
-
32
- useMenuContext.mockImplementation(function (selector) {
33
- return selector(mockContext);
34
- });
35
- };
36
- //# sourceMappingURL=mockUseMenuContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":";AACA,SAAS,cAAT,QAA+B,yBAA/B;AAGA;;;;AAIG;;AACH,OAAO,IAAM,kBAAkB,GAAG,UAAC,OAAD,EAAwC;AAAvC,MAAA,OAAA,KAAA,KAAA,CAAA,EAAA;AAAA,IAAA,OAAA,GAAA,EAAA;AAAuC;;AACxE,MAAM,WAAW,GAAA,QAAA,CAAA;AACf,IAAA,IAAI,EAAE,KADS;AAEf,IAAA,OAAO,EAAE,YAAA;AAAM,aAAA,IAAA;AAAI,KAFJ;AAGf,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHE;AAIf,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJF;AAKf,IAAA,aAAa,EAAE,KALA;AAMf,IAAA,WAAW,EAAE,KANE;AAOf,IAAA,SAAS,EAAE,KAPI;AAQf,IAAA,SAAS,EAAE;AARI,GAAA,EASZ,OATY,CAAjB,CADwE,CAYxE;;;AACC,EAAA,cAA4B,CAAC,kBAA7B,CAAgD,UAAC,QAAD,EAA6C;AAC5F,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM","sourceRoot":""}
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isConformant = void 0;
7
-
8
- var react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
9
-
10
- var react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
11
-
12
- function isConformant(testInfo) {
13
- var defaultOptions = {
14
- asPropHandlesRef: true,
15
- componentPath: module.parent.filename.replace('.test', ''),
16
- skipAsPropTests: true,
17
- extraTests: react_conformance_make_styles_1.default
18
- };
19
- react_conformance_1.isConformant(defaultOptions, testInfo);
20
- }
21
-
22
- exports.isConformant = isConformant;
23
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAJ+C,GAA7D;AAOA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAXD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
@@ -1,7 +0,0 @@
1
- import type { MenuContextValue } from '../contexts/menuContext';
2
- /**
3
- * A test utility to mock the useMenuContext hook that relies on context selector
4
- * Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
5
- * @param options Menu context values to set for testing
6
- */
7
- export declare const mockUseMenuContext: (options?: Partial<MenuContextValue>) => void;
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.mockUseMenuContext = void 0;
7
-
8
- var tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
- var menuContext_1 = /*#__PURE__*/require("../contexts/menuContext");
11
- /**
12
- * A test utility to mock the useMenuContext hook that relies on context selector
13
- * Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
14
- * @param options Menu context values to set for testing
15
- */
16
-
17
-
18
- var mockUseMenuContext = function (options) {
19
- if (options === void 0) {
20
- options = {};
21
- }
22
-
23
- var mockContext = tslib_1.__assign({
24
- open: false,
25
- setOpen: function () {
26
- return null;
27
- },
28
- triggerRef: {
29
- current: null
30
- },
31
- menuPopoverRef: {
32
- current: null
33
- },
34
- openOnContext: false,
35
- openOnHover: false,
36
- isSubmenu: false,
37
- triggerId: 'id'
38
- }, options); // eslint-disable-next-line @typescript-eslint/no-explicit-any
39
-
40
-
41
- menuContext_1.useMenuContext.mockImplementation(function (selector) {
42
- return selector(mockContext);
43
- });
44
- };
45
-
46
- exports.mockUseMenuContext = mockUseMenuContext;
47
- //# sourceMappingURL=mockUseMenuContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":";;;;;;;;;AACA,IAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAGA;;;;AAIG;;;AACI,IAAM,kBAAkB,GAAG,UAAC,OAAD,EAAwC;AAAvC,MAAA,OAAA,KAAA,KAAA,CAAA,EAAA;AAAA,IAAA,OAAA,GAAA,EAAA;AAAuC;;AACxE,MAAM,WAAW,GAAA,OAAA,CAAA,QAAA,CAAA;AACf,IAAA,IAAI,EAAE,KADS;AAEf,IAAA,OAAO,EAAE,YAAA;AAAM,aAAA,IAAA;AAAI,KAFJ;AAGf,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHE;AAIf,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJF;AAKf,IAAA,aAAa,EAAE,KALA;AAMf,IAAA,WAAW,EAAE,KANE;AAOf,IAAA,SAAS,EAAE,KAPI;AAQf,IAAA,SAAS,EAAE;AARI,GAAA,EASZ,OATY,CAAjB,CADwE,CAYxE;;;AACC,EAAA,aAAA,CAAA,cAAA,CAA6B,kBAA7B,CAAgD,UAAC,QAAD,EAA6C;AAC5F,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}