@fluentui-react-native/menu 1.4.26 → 1.4.28

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 (231) hide show
  1. package/CHANGELOG.json +79 -1
  2. package/CHANGELOG.md +26 -2
  3. package/package.json +9 -9
  4. package/lib/Menu/Menu.d.ts +0 -4
  5. package/lib/Menu/Menu.d.ts.map +0 -1
  6. package/lib/Menu/Menu.js +0 -35
  7. package/lib/Menu/Menu.js.map +0 -1
  8. package/lib/Menu/Menu.types.d.ts +0 -40
  9. package/lib/Menu/Menu.types.d.ts.map +0 -1
  10. package/lib/Menu/Menu.types.js +0 -2
  11. package/lib/Menu/Menu.types.js.map +0 -1
  12. package/lib/Menu/index.d.ts +0 -6
  13. package/lib/Menu/index.d.ts.map +0 -1
  14. package/lib/Menu/index.js +0 -5
  15. package/lib/Menu/index.js.map +0 -1
  16. package/lib/Menu/useMenu.d.ts +0 -3
  17. package/lib/Menu/useMenu.d.ts.map +0 -1
  18. package/lib/Menu/useMenu.js +0 -76
  19. package/lib/Menu/useMenu.js.map +0 -1
  20. package/lib/Menu/useMenuContextValue.d.ts +0 -4
  21. package/lib/Menu/useMenuContextValue.d.ts.map +0 -1
  22. package/lib/Menu/useMenuContextValue.js +0 -8
  23. package/lib/Menu/useMenuContextValue.js.map +0 -1
  24. package/lib/MenuDivider/MenuDivider.d.ts +0 -2
  25. package/lib/MenuDivider/MenuDivider.d.ts.map +0 -1
  26. package/lib/MenuDivider/MenuDivider.js +0 -15
  27. package/lib/MenuDivider/MenuDivider.js.map +0 -1
  28. package/lib/MenuDivider/MenuDivider.styling.d.ts +0 -4
  29. package/lib/MenuDivider/MenuDivider.styling.d.ts.map +0 -1
  30. package/lib/MenuDivider/MenuDivider.styling.js +0 -19
  31. package/lib/MenuDivider/MenuDivider.styling.js.map +0 -1
  32. package/lib/MenuDivider/MenuDivider.types.d.ts +0 -21
  33. package/lib/MenuDivider/MenuDivider.types.d.ts.map +0 -1
  34. package/lib/MenuDivider/MenuDivider.types.js +0 -2
  35. package/lib/MenuDivider/MenuDivider.types.js.map +0 -1
  36. package/lib/MenuDivider/MenuDividerTokens.d.ts +0 -5
  37. package/lib/MenuDivider/MenuDividerTokens.d.ts.map +0 -1
  38. package/lib/MenuDivider/MenuDividerTokens.js +0 -7
  39. package/lib/MenuDivider/MenuDividerTokens.js.map +0 -1
  40. package/lib/MenuDivider/MenuDividerTokens.macos.d.ts +0 -5
  41. package/lib/MenuDivider/MenuDividerTokens.macos.d.ts.map +0 -1
  42. package/lib/MenuDivider/MenuDividerTokens.macos.js +0 -7
  43. package/lib/MenuDivider/MenuDividerTokens.macos.js.map +0 -1
  44. package/lib/MenuDivider/MenuDividerTokens.win32.d.ts +0 -5
  45. package/lib/MenuDivider/MenuDividerTokens.win32.d.ts.map +0 -1
  46. package/lib/MenuDivider/MenuDividerTokens.win32.js +0 -7
  47. package/lib/MenuDivider/MenuDividerTokens.win32.js.map +0 -1
  48. package/lib/MenuDivider/index.d.ts +0 -4
  49. package/lib/MenuDivider/index.d.ts.map +0 -1
  50. package/lib/MenuDivider/index.js +0 -3
  51. package/lib/MenuDivider/index.js.map +0 -1
  52. package/lib/MenuItem/MenuItem.d.ts +0 -7
  53. package/lib/MenuItem/MenuItem.d.ts.map +0 -1
  54. package/lib/MenuItem/MenuItem.js +0 -58
  55. package/lib/MenuItem/MenuItem.js.map +0 -1
  56. package/lib/MenuItem/MenuItem.styling.d.ts +0 -5
  57. package/lib/MenuItem/MenuItem.styling.d.ts.map +0 -1
  58. package/lib/MenuItem/MenuItem.styling.js +0 -50
  59. package/lib/MenuItem/MenuItem.styling.js.map +0 -1
  60. package/lib/MenuItem/MenuItem.types.d.ts +0 -86
  61. package/lib/MenuItem/MenuItem.types.d.ts.map +0 -1
  62. package/lib/MenuItem/MenuItem.types.js +0 -2
  63. package/lib/MenuItem/MenuItem.types.js.map +0 -1
  64. package/lib/MenuItem/MenuItemTokens.d.ts +0 -5
  65. package/lib/MenuItem/MenuItemTokens.d.ts.map +0 -1
  66. package/lib/MenuItem/MenuItemTokens.js +0 -39
  67. package/lib/MenuItem/MenuItemTokens.js.map +0 -1
  68. package/lib/MenuItem/MenuItemTokens.macos.d.ts +0 -5
  69. package/lib/MenuItem/MenuItemTokens.macos.d.ts.map +0 -1
  70. package/lib/MenuItem/MenuItemTokens.macos.js +0 -34
  71. package/lib/MenuItem/MenuItemTokens.macos.js.map +0 -1
  72. package/lib/MenuItem/MenuItemTokens.win32.d.ts +0 -5
  73. package/lib/MenuItem/MenuItemTokens.win32.d.ts.map +0 -1
  74. package/lib/MenuItem/MenuItemTokens.win32.js +0 -40
  75. package/lib/MenuItem/MenuItemTokens.win32.js.map +0 -1
  76. package/lib/MenuItem/index.d.ts +0 -5
  77. package/lib/MenuItem/index.d.ts.map +0 -1
  78. package/lib/MenuItem/index.js +0 -4
  79. package/lib/MenuItem/index.js.map +0 -1
  80. package/lib/MenuItem/useMenuItem.d.ts +0 -7
  81. package/lib/MenuItem/useMenuItem.d.ts.map +0 -1
  82. package/lib/MenuItem/useMenuItem.js +0 -74
  83. package/lib/MenuItem/useMenuItem.js.map +0 -1
  84. package/lib/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -7
  85. package/lib/MenuItemCheckbox/MenuItemCheckbox.d.ts.map +0 -1
  86. package/lib/MenuItemCheckbox/MenuItemCheckbox.js +0 -37
  87. package/lib/MenuItemCheckbox/MenuItemCheckbox.js.map +0 -1
  88. package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.d.ts +0 -5
  89. package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.d.ts.map +0 -1
  90. package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.js +0 -40
  91. package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.js.map +0 -1
  92. package/lib/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -60
  93. package/lib/MenuItemCheckbox/MenuItemCheckbox.types.d.ts.map +0 -1
  94. package/lib/MenuItemCheckbox/MenuItemCheckbox.types.js +0 -2
  95. package/lib/MenuItemCheckbox/MenuItemCheckbox.types.js.map +0 -1
  96. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.d.ts +0 -5
  97. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.d.ts.map +0 -1
  98. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.js +0 -51
  99. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.js.map +0 -1
  100. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.macos.d.ts +0 -5
  101. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.macos.d.ts.map +0 -1
  102. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.macos.js +0 -49
  103. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.macos.js.map +0 -1
  104. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.win32.d.ts +0 -5
  105. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.win32.d.ts.map +0 -1
  106. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.win32.js +0 -52
  107. package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.win32.js.map +0 -1
  108. package/lib/MenuItemCheckbox/index.d.ts +0 -5
  109. package/lib/MenuItemCheckbox/index.d.ts.map +0 -1
  110. package/lib/MenuItemCheckbox/index.js +0 -4
  111. package/lib/MenuItemCheckbox/index.js.map +0 -1
  112. package/lib/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -13
  113. package/lib/MenuItemCheckbox/useMenuItemCheckbox.d.ts.map +0 -1
  114. package/lib/MenuItemCheckbox/useMenuItemCheckbox.js +0 -85
  115. package/lib/MenuItemCheckbox/useMenuItemCheckbox.js.map +0 -1
  116. package/lib/MenuItemRadio/MenuItemRadio.d.ts +0 -4
  117. package/lib/MenuItemRadio/MenuItemRadio.d.ts.map +0 -1
  118. package/lib/MenuItemRadio/MenuItemRadio.js +0 -12
  119. package/lib/MenuItemRadio/MenuItemRadio.js.map +0 -1
  120. package/lib/MenuItemRadio/index.d.ts +0 -3
  121. package/lib/MenuItemRadio/index.d.ts.map +0 -1
  122. package/lib/MenuItemRadio/index.js +0 -3
  123. package/lib/MenuItemRadio/index.js.map +0 -1
  124. package/lib/MenuItemRadio/useMenuItemRadio.d.ts +0 -3
  125. package/lib/MenuItemRadio/useMenuItemRadio.d.ts.map +0 -1
  126. package/lib/MenuItemRadio/useMenuItemRadio.js +0 -30
  127. package/lib/MenuItemRadio/useMenuItemRadio.js.map +0 -1
  128. package/lib/MenuList/MenuList.d.ts +0 -4
  129. package/lib/MenuList/MenuList.d.ts.map +0 -1
  130. package/lib/MenuList/MenuList.js +0 -68
  131. package/lib/MenuList/MenuList.js.map +0 -1
  132. package/lib/MenuList/MenuList.styling.d.ts +0 -5
  133. package/lib/MenuList/MenuList.styling.d.ts.map +0 -1
  134. package/lib/MenuList/MenuList.styling.js +0 -17
  135. package/lib/MenuList/MenuList.styling.js.map +0 -1
  136. package/lib/MenuList/MenuList.types.d.ts +0 -74
  137. package/lib/MenuList/MenuList.types.d.ts.map +0 -1
  138. package/lib/MenuList/MenuList.types.js +0 -2
  139. package/lib/MenuList/MenuList.types.js.map +0 -1
  140. package/lib/MenuList/MenuListTokens.d.ts +0 -5
  141. package/lib/MenuList/MenuListTokens.d.ts.map +0 -1
  142. package/lib/MenuList/MenuListTokens.js +0 -9
  143. package/lib/MenuList/MenuListTokens.js.map +0 -1
  144. package/lib/MenuList/MenuListTokens.macos.d.ts +0 -5
  145. package/lib/MenuList/MenuListTokens.macos.d.ts.map +0 -1
  146. package/lib/MenuList/MenuListTokens.macos.js +0 -7
  147. package/lib/MenuList/MenuListTokens.macos.js.map +0 -1
  148. package/lib/MenuList/MenuListTokens.win32.d.ts +0 -5
  149. package/lib/MenuList/MenuListTokens.win32.d.ts.map +0 -1
  150. package/lib/MenuList/MenuListTokens.win32.js +0 -12
  151. package/lib/MenuList/MenuListTokens.win32.js.map +0 -1
  152. package/lib/MenuList/index.d.ts +0 -6
  153. package/lib/MenuList/index.d.ts.map +0 -1
  154. package/lib/MenuList/index.js +0 -5
  155. package/lib/MenuList/index.js.map +0 -1
  156. package/lib/MenuList/useMenuList.d.ts +0 -3
  157. package/lib/MenuList/useMenuList.d.ts.map +0 -1
  158. package/lib/MenuList/useMenuList.js +0 -109
  159. package/lib/MenuList/useMenuList.js.map +0 -1
  160. package/lib/MenuList/useMenuListContextValue.d.ts +0 -4
  161. package/lib/MenuList/useMenuListContextValue.d.ts.map +0 -1
  162. package/lib/MenuList/useMenuListContextValue.js +0 -5
  163. package/lib/MenuList/useMenuListContextValue.js.map +0 -1
  164. package/lib/MenuPopover/MenuPopover.d.ts +0 -4
  165. package/lib/MenuPopover/MenuPopover.d.ts.map +0 -1
  166. package/lib/MenuPopover/MenuPopover.js +0 -44
  167. package/lib/MenuPopover/MenuPopover.js.map +0 -1
  168. package/lib/MenuPopover/MenuPopover.types.d.ts +0 -10
  169. package/lib/MenuPopover/MenuPopover.types.d.ts.map +0 -1
  170. package/lib/MenuPopover/MenuPopover.types.js +0 -2
  171. package/lib/MenuPopover/MenuPopover.types.js.map +0 -1
  172. package/lib/MenuPopover/MenuPopoverTokens.d.ts +0 -3
  173. package/lib/MenuPopover/MenuPopoverTokens.d.ts.map +0 -1
  174. package/lib/MenuPopover/MenuPopoverTokens.js +0 -4
  175. package/lib/MenuPopover/MenuPopoverTokens.js.map +0 -1
  176. package/lib/MenuPopover/index.d.ts +0 -5
  177. package/lib/MenuPopover/index.d.ts.map +0 -1
  178. package/lib/MenuPopover/index.js +0 -4
  179. package/lib/MenuPopover/index.js.map +0 -1
  180. package/lib/MenuPopover/useMenuPopover.d.ts +0 -3
  181. package/lib/MenuPopover/useMenuPopover.d.ts.map +0 -1
  182. package/lib/MenuPopover/useMenuPopover.js +0 -92
  183. package/lib/MenuPopover/useMenuPopover.js.map +0 -1
  184. package/lib/MenuTrigger/MenuTrigger.d.ts +0 -5
  185. package/lib/MenuTrigger/MenuTrigger.d.ts.map +0 -1
  186. package/lib/MenuTrigger/MenuTrigger.js +0 -20
  187. package/lib/MenuTrigger/MenuTrigger.js.map +0 -1
  188. package/lib/MenuTrigger/MenuTrigger.types.d.ts +0 -28
  189. package/lib/MenuTrigger/MenuTrigger.types.d.ts.map +0 -1
  190. package/lib/MenuTrigger/MenuTrigger.types.js +0 -2
  191. package/lib/MenuTrigger/MenuTrigger.types.js.map +0 -1
  192. package/lib/MenuTrigger/index.d.ts +0 -5
  193. package/lib/MenuTrigger/index.d.ts.map +0 -1
  194. package/lib/MenuTrigger/index.js +0 -4
  195. package/lib/MenuTrigger/index.js.map +0 -1
  196. package/lib/MenuTrigger/useMenuTrigger.d.ts +0 -3
  197. package/lib/MenuTrigger/useMenuTrigger.d.ts.map +0 -1
  198. package/lib/MenuTrigger/useMenuTrigger.js +0 -79
  199. package/lib/MenuTrigger/useMenuTrigger.js.map +0 -1
  200. package/lib/MenuTrigger/useMergeRefs.d.ts +0 -20
  201. package/lib/MenuTrigger/useMergeRefs.d.ts.map +0 -1
  202. package/lib/MenuTrigger/useMergeRefs.js +0 -36
  203. package/lib/MenuTrigger/useMergeRefs.js.map +0 -1
  204. package/lib/__tests__/Menu.test.d.ts +0 -2
  205. package/lib/__tests__/Menu.test.d.ts.map +0 -1
  206. package/lib/__tests__/Menu.test.js +0 -145
  207. package/lib/__tests__/Menu.test.js.map +0 -1
  208. package/lib/consts.d.ts +0 -2
  209. package/lib/consts.d.ts.map +0 -1
  210. package/lib/consts.js +0 -6
  211. package/lib/consts.js.map +0 -1
  212. package/lib/context/index.d.ts +0 -4
  213. package/lib/context/index.d.ts.map +0 -1
  214. package/lib/context/index.js +0 -4
  215. package/lib/context/index.js.map +0 -1
  216. package/lib/context/menuContext.d.ts +0 -16
  217. package/lib/context/menuContext.d.ts.map +0 -1
  218. package/lib/context/menuContext.js +0 -20
  219. package/lib/context/menuContext.js.map +0 -1
  220. package/lib/context/menuListContext.d.ts +0 -14
  221. package/lib/context/menuListContext.d.ts.map +0 -1
  222. package/lib/context/menuListContext.js +0 -15
  223. package/lib/context/menuListContext.js.map +0 -1
  224. package/lib/context/menuTriggerContext.d.ts +0 -9
  225. package/lib/context/menuTriggerContext.d.ts.map +0 -1
  226. package/lib/context/menuTriggerContext.js +0 -9
  227. package/lib/context/menuTriggerContext.js.map +0 -1
  228. package/lib/index.d.ts +0 -10
  229. package/lib/index.d.ts.map +0 -1
  230. package/lib/index.js +0 -10
  231. package/lib/index.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,85 @@
2
2
  "name": "@fluentui-react-native/menu",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 16 Mar 2023 21:46:27 GMT",
5
+ "date": "Sat, 18 Mar 2023 17:18:20 GMT",
6
+ "tag": "@fluentui-react-native/menu_v1.4.28",
7
+ "version": "1.4.28",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui-react-native/menu",
13
+ "comment": "Bump @fluentui-react-native/callout to v0.23.9",
14
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/menu",
19
+ "comment": "Bump @fluentui-react-native/focus-zone to v0.11.38",
20
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui-react-native/menu",
25
+ "comment": "Bump @fluentui-react-native/framework to v0.9.7",
26
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui-react-native/menu",
31
+ "comment": "Bump @fluentui-react-native/icon to v0.17.22",
32
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui-react-native/menu",
37
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.26",
38
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui-react-native/menu",
43
+ "comment": "Bump @fluentui-react-native/text to v0.19.28",
44
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui-react-native/menu",
49
+ "comment": "Bump @fluentui-react-native/tokens to v0.20.13",
50
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui-react-native/menu",
55
+ "comment": "Bump @fluentui-react-native/button to v0.32.46",
56
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "date": "Fri, 17 Mar 2023 14:13:25 GMT",
63
+ "tag": "@fluentui-react-native/menu_v1.4.27",
64
+ "version": "1.4.27",
65
+ "comments": {
66
+ "patch": [
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui-react-native/menu",
70
+ "comment": "Bump @fluentui-react-native/icon to v0.17.21",
71
+ "commit": "7d5d72719836693db47a35fdbd4c03f92fe2c8ca"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui-react-native/menu",
76
+ "comment": "Bump @fluentui-react-native/button to v0.32.45",
77
+ "commit": "7d5d72719836693db47a35fdbd4c03f92fe2c8ca"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ {
83
+ "date": "Thu, 16 Mar 2023 21:46:56 GMT",
6
84
  "tag": "@fluentui-react-native/menu_v1.4.26",
7
85
  "version": "1.4.26",
8
86
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,36 @@
1
1
  # Change Log - @fluentui-react-native/menu
2
2
 
3
- This log was last generated on Thu, 16 Mar 2023 21:46:27 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 18 Mar 2023 17:18:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.4.28
8
+
9
+ Sat, 18 Mar 2023 17:18:20 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @fluentui-react-native/callout to v0.23.9
14
+ - Bump @fluentui-react-native/focus-zone to v0.11.38
15
+ - Bump @fluentui-react-native/framework to v0.9.7
16
+ - Bump @fluentui-react-native/icon to v0.17.22
17
+ - Bump @fluentui-react-native/interactive-hooks to v0.22.26
18
+ - Bump @fluentui-react-native/text to v0.19.28
19
+ - Bump @fluentui-react-native/tokens to v0.20.13
20
+ - Bump @fluentui-react-native/button to v0.32.46
21
+
22
+ ## 1.4.27
23
+
24
+ Fri, 17 Mar 2023 14:13:25 GMT
25
+
26
+ ### Patches
27
+
28
+ - Bump @fluentui-react-native/icon to v0.17.21
29
+ - Bump @fluentui-react-native/button to v0.32.45
30
+
7
31
  ## 1.4.26
8
32
 
9
- Thu, 16 Mar 2023 21:46:27 GMT
33
+ Thu, 16 Mar 2023 21:46:56 GMT
10
34
 
11
35
  ### Patches
12
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/menu",
3
- "version": "1.4.26",
3
+ "version": "1.4.28",
4
4
  "description": "A cross-platform Menu component using the Fluent Design System",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -23,19 +23,19 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@fluentui-react-native/adapters": ">=0.10.2 <1.0.0",
26
- "@fluentui-react-native/callout": ">=0.23.8 <1.0.0",
27
- "@fluentui-react-native/focus-zone": ">=0.11.37 <1.0.0",
28
- "@fluentui-react-native/framework": "0.9.6",
29
- "@fluentui-react-native/icon": "^0.17.20",
30
- "@fluentui-react-native/interactive-hooks": ">=0.22.25 <1.0.0",
31
- "@fluentui-react-native/text": ">=0.19.27 <1.0.0",
26
+ "@fluentui-react-native/callout": ">=0.23.9 <1.0.0",
27
+ "@fluentui-react-native/focus-zone": ">=0.11.38 <1.0.0",
28
+ "@fluentui-react-native/framework": "0.9.7",
29
+ "@fluentui-react-native/icon": "^0.17.22",
30
+ "@fluentui-react-native/interactive-hooks": ">=0.22.26 <1.0.0",
31
+ "@fluentui-react-native/text": ">=0.19.28 <1.0.0",
32
32
  "@fluentui-react-native/theme-tokens": ">=0.24.5 <1.0.0",
33
- "@fluentui-react-native/tokens": ">=0.20.12 <1.0.0",
33
+ "@fluentui-react-native/tokens": ">=0.20.13 <1.0.0",
34
34
  "@fluentui-react-native/use-styling": ">=0.9.4 <1.0.0",
35
35
  "tslib": "^2.3.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@fluentui-react-native/button": ">=0.32.44 <1.0.0",
38
+ "@fluentui-react-native/button": ">=0.32.46 <1.0.0",
39
39
  "@fluentui-react-native/eslint-config-rules": "^0.1.1",
40
40
  "@fluentui-react-native/scripts": "^0.1.1",
41
41
  "@fluentui-react-native/test-tools": ">=0.1.1 <1.0.0",
@@ -1,4 +0,0 @@
1
- import type { MenuProps } from './Menu.types';
2
- export declare const Menu: import("@fluentui-react-native/framework").ComposableFunction<MenuProps>;
3
- export default Menu;
4
- //# sourceMappingURL=Menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../src/Menu/Menu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAM9C,eAAO,MAAM,IAAI,0EA2Cf,CAAC;AAGH,eAAe,IAAI,CAAC"}
package/lib/Menu/Menu.js DELETED
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- import { stagedComponent } from '@fluentui-react-native/framework';
3
- import { menuName } from './Menu.types';
4
- import { useMenu } from './useMenu';
5
- import { useMenuContextValue } from './useMenuContextValue';
6
- import { MenuProvider } from '../context/menuContext';
7
- export var Menu = stagedComponent(function (props) {
8
- var state = useMenu(props);
9
- var contextValue = useMenuContextValue(state);
10
- return function (_rest, children) {
11
- var _a, _b;
12
- var childrenArray = React.Children.toArray(children);
13
- var accessibilityPositionInSet = state.accessibilityPositionInSet, accessibilitySetSize = state.accessibilitySetSize;
14
- if (__DEV__) {
15
- if (childrenArray.length !== 2) {
16
- // eslint-disable-next-line no-console
17
- console.warn('Menu must contain two children');
18
- }
19
- }
20
- var menuTrigger = childrenArray[0];
21
- var menuPopover = childrenArray[1];
22
- var menuTriggerChild = menuTrigger.props.children;
23
- var menuTriggerChildWithSet = React.cloneElement(menuTriggerChild, {
24
- accessibilityPositionInSet: (_a = menuTriggerChild.props.accessibilityPositionInSet) !== null && _a !== void 0 ? _a : accessibilityPositionInSet,
25
- accessibilitySetSize: (_b = menuTriggerChild.props.accessibilitySetSize) !== null && _b !== void 0 ? _b : accessibilitySetSize, //win32
26
- });
27
- var menuTriggerWithSet = React.cloneElement(menuTrigger, {}, menuTriggerChildWithSet);
28
- return (React.createElement(MenuProvider, { value: contextValue },
29
- menuTriggerWithSet,
30
- state.open && state.shouldFocusOnContainer !== undefined && menuPopover));
31
- };
32
- });
33
- Menu.displayName = menuName;
34
- export default Menu;
35
- //# sourceMappingURL=Menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.js","sourceRoot":"","sources":["../../src/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGnE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,CAAC,IAAM,IAAI,GAAG,eAAe,CAAC,UAAC,KAAgB;IACnD,IAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,IAAM,YAAY,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAEhD,OAAO,UAAC,KAAgB,EAAE,QAAyB;;QACjD,IAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAyB,CAAC;QACvE,IAAA,0BAA0B,GAA2B,KAAK,2BAAhC,EAAE,oBAAoB,GAAK,KAAK,qBAAV,CAAW;QAEnE,IAAI,OAAO,EAAE;YACX,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC9B,sCAAsC;gBACtC,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;aAChD;SACF;QAED,IAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QACrC,IAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QAErC,IAAM,gBAAgB,GAAG,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC;QAEpD,IAAM,uBAAuB,GAAG,KAAK,CAAC,YAAY,CAChD,gBAA0F,EAC1F;YACE,0BAA0B,EAAE,MAAA,gBAAgB,CAAC,KAAK,CAAC,0BAA0B,mCAAI,0BAA0B;YAC3G,oBAAoB,EAAE,MAAA,gBAAgB,CAAC,KAAK,CAAC,oBAAoB,mCAAI,oBAAoB,EAAE,OAAO;SAC5F,CACT,CAAC;QAEF,IAAM,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAC3C,WAAqF,EACrF,EAAS,EACT,uBAAuB,CACxB,CAAC;QAEF,OAAO,CACL,oBAAC,YAAY,IAAC,KAAK,EAAE,YAAY;YAC9B,kBAAkB;YAGlB,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,sBAAsB,KAAK,SAAS,IAAI,WAAW,CAC3D,CAChB,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE5B,eAAe,IAAI,CAAC"}
@@ -1,40 +0,0 @@
1
- /// <reference types="node" />
2
- import type React from 'react';
3
- import type { View } from 'react-native';
4
- import type { InteractionEvent } from '@fluentui-react-native/interactive-hooks';
5
- import type { MenuListProps } from '../MenuList/MenuList.types';
6
- export declare const menuName = "Menu";
7
- export interface MenuProps extends MenuListProps {
8
- /**
9
- * Whether the popup is open on mount
10
- */
11
- defaultOpen?: boolean;
12
- /**
13
- * How much delay to have between hover in and showing the menu, in ms.
14
- */
15
- hoverDelay?: number;
16
- /**
17
- * Whether the popup is open
18
- */
19
- open?: boolean;
20
- /**
21
- * Call back when the component requests to change value
22
- */
23
- onOpenChange?: (e: InteractionEvent, isOpen: boolean) => void;
24
- openOnHover?: boolean;
25
- /**
26
- * Do not dismiss the menu when a menu item is clicked
27
- */
28
- persistOnItemClick?: boolean;
29
- }
30
- export interface MenuState extends MenuProps {
31
- isControlled: boolean;
32
- isSubmenu: boolean;
33
- parentPopoverHoverOutTimer?: NodeJS.Timeout;
34
- setOpen: (e: InteractionEvent, isOpen: boolean, bubble?: boolean) => void;
35
- shouldFocusOnContainer: boolean;
36
- triggerRef: React.RefObject<View>;
37
- hasMaxHeight?: boolean;
38
- hasMaxWidth?: boolean;
39
- }
40
- //# sourceMappingURL=Menu.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.types.d.ts","sourceRoot":"","sources":["../../src/Menu/Menu.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,eAAO,MAAM,QAAQ,SAAS,CAAC;AAE/B,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAK9D,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,0BAA0B,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1E,sBAAsB,EAAE,OAAO,CAAC;IAChC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -1,2 +0,0 @@
1
- export var menuName = 'Menu';
2
- //# sourceMappingURL=Menu.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.types.js","sourceRoot":"","sources":["../../src/Menu/Menu.types.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,IAAM,QAAQ,GAAG,MAAM,CAAC"}
@@ -1,6 +0,0 @@
1
- export { Menu } from './Menu';
2
- export { menuName } from './Menu.types';
3
- export type { MenuProps, MenuState } from './Menu.types';
4
- export { useMenu } from './useMenu';
5
- export { useMenuContextValue } from './useMenuContextValue';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
package/lib/Menu/index.js DELETED
@@ -1,5 +0,0 @@
1
- export { Menu } from './Menu';
2
- export { menuName } from './Menu.types';
3
- export { useMenu } from './useMenu';
4
- export { useMenuContextValue } from './useMenuContextValue';
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { MenuProps, MenuState } from './Menu.types';
2
- export declare const useMenu: (props: MenuProps) => MenuState;
3
- //# sourceMappingURL=useMenu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../src/Menu/useMenu.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzD,eAAO,MAAM,OAAO,UAAW,SAAS,KAAG,SAiC1C,CAAC"}
@@ -1,76 +0,0 @@
1
- import { __assign } from "tslib";
2
- import React from 'react';
3
- import { Platform } from 'react-native';
4
- import { isMouseEvent } from '@fluentui-react-native/interactive-hooks';
5
- import { useMenuContext } from '../context/menuContext';
6
- // Due to how events get fired we get double notifications
7
- // for the same event causing us to immediately reopen
8
- // a menu when we close it. Adding in a delay to prevent
9
- // this behavior.
10
- var delayOpen = 150;
11
- var lastCloseTimestamp = -1;
12
- export var useMenu = function (props) {
13
- var triggerRef = React.useRef();
14
- var context = useMenuContext();
15
- var isSubmenu = context.triggerRef !== null;
16
- var isOpenControlled = typeof props.open !== 'undefined';
17
- var _a = useMenuOpenState(isOpenControlled, props, context.setOpen), open = _a[0], shouldFocusOnContainer = _a[1], setOpen = _a[2];
18
- var _b = useMenuCheckedState(props), checked = _b[0], onCheckedChange = _b[1];
19
- // Default behavior for submenu is to open on hover
20
- // the ...props line below will override this behavior for a submenu
21
- // or apply openOnHover if passed into a root Menu.
22
- var openOnHover = isSubmenu;
23
- // We need to be able to cancel the timer that gets set on
24
- // hover out of the parent popover if the parent popover
25
- // is also set to open/close on hover out. Otherwise
26
- // the parent menu will close when the timeout passes.
27
- var parentPopoverHoverOutTimer = isSubmenu ? context.popoverHoverOutTimer : undefined;
28
- return __assign(__assign({ openOnHover: openOnHover }, props), { open: open, setOpen: setOpen, shouldFocusOnContainer: shouldFocusOnContainer, checked: checked, onCheckedChange: onCheckedChange, triggerRef: triggerRef, isSubmenu: isSubmenu, isControlled: isOpenControlled, parentPopoverHoverOutTimer: parentPopoverHoverOutTimer });
29
- };
30
- var useMenuOpenState = function (isControlled, props, parentSetOpen) {
31
- var defaultOpen = props.defaultOpen, onOpenChange = props.onOpenChange, open = props.open;
32
- var initialState = typeof defaultOpen !== 'undefined' ? defaultOpen : !!open;
33
- var _a = React.useState(initialState), openInternal = _a[0], setOpenInternal = _a[1];
34
- var _b = React.useState(undefined), shouldFocusOnContainer = _b[0], setShouldFocusOnContainer = _b[1];
35
- var state = isControlled ? open : openInternal;
36
- var setOpen = React.useCallback(function (e, isOpen, bubble) {
37
- var openPrev = state;
38
- if (!isControlled && (!isOpen || lastCloseTimestamp + delayOpen <= Date.now())) {
39
- setOpenInternal(isOpen);
40
- }
41
- if (isOpen) {
42
- if (Platform.OS === 'win32' && isMouseEvent(e)) {
43
- setShouldFocusOnContainer(true);
44
- }
45
- else {
46
- setShouldFocusOnContainer(false);
47
- }
48
- }
49
- if (!isOpen) {
50
- setShouldFocusOnContainer(undefined);
51
- lastCloseTimestamp = Date.now();
52
- }
53
- if (onOpenChange && openPrev !== isOpen) {
54
- onOpenChange(e, isOpen);
55
- }
56
- if (bubble && parentSetOpen) {
57
- parentSetOpen(e, isOpen, bubble);
58
- }
59
- }, [isControlled, state, onOpenChange, setOpenInternal, parentSetOpen]);
60
- return [state, shouldFocusOnContainer, setOpen];
61
- };
62
- var useMenuCheckedState = function (props) {
63
- var _a;
64
- var checked = props.checked, defaultChecked = props.defaultChecked, onCheckedChangeOriginal = props.onCheckedChange;
65
- var _b = React.useState((_a = defaultChecked !== null && defaultChecked !== void 0 ? defaultChecked : checked) !== null && _a !== void 0 ? _a : []), checkedInternal = _b[0], setCheckedInternal = _b[1];
66
- var isControlled = typeof checked !== 'undefined';
67
- var state = isControlled ? checked : checkedInternal;
68
- var onCheckedChange = React.useCallback(function (e, checked) {
69
- if (!isControlled) {
70
- setCheckedInternal(checked);
71
- }
72
- onCheckedChangeOriginal === null || onCheckedChangeOriginal === void 0 ? void 0 : onCheckedChangeOriginal(e, checked);
73
- }, [isControlled, setCheckedInternal, onCheckedChangeOriginal]);
74
- return [state, onCheckedChange];
75
- };
76
- //# sourceMappingURL=useMenu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMenu.js","sourceRoot":"","sources":["../../src/Menu/useMenu.ts"],"names":[],"mappings":"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"}
@@ -1,4 +0,0 @@
1
- import type { MenuState } from './Menu.types';
2
- import type { MenuContextValue } from '../context/menuContext';
3
- export declare const useMenuContextValue: (state: MenuState) => MenuContextValue;
4
- //# sourceMappingURL=useMenuContextValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMenuContextValue.d.ts","sourceRoot":"","sources":["../../src/Menu/useMenuContextValue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,eAAO,MAAM,mBAAmB,UAAW,SAAS,KAAG,gBAItD,CAAC"}
@@ -1,8 +0,0 @@
1
- import { __assign } from "tslib";
2
- import React from 'react';
3
- export var useMenuContextValue = function (state) {
4
- var _a = React.useState(), triggerHoverOutTimer = _a[0], setTriggerHoverOutTimer = _a[1];
5
- var _b = React.useState(), popoverHoverOutTimer = _b[0], setPopoverHoverOutTimer = _b[1];
6
- return __assign(__assign({}, state), { popoverHoverOutTimer: popoverHoverOutTimer, triggerHoverOutTimer: triggerHoverOutTimer, setPopoverHoverOutTimer: setPopoverHoverOutTimer, setTriggerHoverOutTimer: setTriggerHoverOutTimer });
7
- };
8
- //# sourceMappingURL=useMenuContextValue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMenuContextValue.js","sourceRoot":"","sources":["../../src/Menu/useMenuContextValue.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,KAAgB;IAC5C,IAAA,KAAkD,KAAK,CAAC,QAAQ,EAA8B,EAA7F,oBAAoB,QAAA,EAAE,uBAAuB,QAAgD,CAAC;IAC/F,IAAA,KAAkD,KAAK,CAAC,QAAQ,EAAkB,EAAjF,oBAAoB,QAAA,EAAE,uBAAuB,QAAoC,CAAC;IACzF,6BAAY,KAAK,KAAE,oBAAoB,sBAAA,EAAE,oBAAoB,sBAAA,EAAE,uBAAuB,yBAAA,EAAE,uBAAuB,yBAAA,IAAG;AACpH,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const MenuDivider: import("@fluentui-react-native/framework").ComposableComponent<import("@fluentui-react-native/adapters").IViewProps, import("./MenuDivider.types").MenuDividerSlotProps, import("./MenuDivider.types").MenuDividerTokens, object>;
2
- //# sourceMappingURL=MenuDivider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDivider.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,mOAatB,CAAC"}
@@ -1,15 +0,0 @@
1
- import { __assign } from "tslib";
2
- /** @jsx withSlots */
3
- import { View } from 'react-native';
4
- import { compose, withSlots } from '@fluentui-react-native/framework';
5
- import { stylingSettings } from './MenuDivider.styling';
6
- import { menuDividerName } from './MenuDivider.types';
7
- export var MenuDivider = compose(__assign(__assign({ displayName: menuDividerName }, stylingSettings), { slots: {
8
- root: View,
9
- }, useRender: function (userProps, useSlots) {
10
- var Slots = useSlots(userProps);
11
- return function (final) {
12
- return withSlots(Slots.root, __assign({}, final));
13
- };
14
- } }));
15
- //# sourceMappingURL=MenuDivider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDivider.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":";AAAA,qBAAqB;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,IAAM,WAAW,GAAG,OAAO,qBAChC,WAAW,EAAE,eAAe,IACzB,eAAe,KAClB,KAAK,EAAE;QACL,IAAI,EAAE,IAAI;KACX,EACD,SAAS,EAAE,UAAC,SAA2B,EAAE,QAAmC;QAC1E,IAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;QAElC,OAAO,UAAC,KAAuB;YAC7B,OAAO,UAAC,KAAK,CAAC,IAAI,eAAK,KAAK,EAAI,CAAC;QACnC,CAAC,CAAC;IACJ,CAAC,IACD,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { UseStylingOptions } from '@fluentui-react-native/framework';
2
- import type { MenuDividerProps, MenuDividerTokens, MenuDividerSlotProps } from './MenuDivider.types';
3
- export declare const stylingSettings: UseStylingOptions<MenuDividerProps, MenuDividerSlotProps, MenuDividerTokens>;
4
- //# sourceMappingURL=MenuDivider.styling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDivider.styling.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.styling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAIrG,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,iBAAiB,CAiBxG,CAAC"}
@@ -1,19 +0,0 @@
1
- import { buildProps } from '@fluentui-react-native/framework';
2
- import { menuDividerName } from './MenuDivider.types';
3
- import { defaultMenuDividerTokens } from './MenuDividerTokens';
4
- export var stylingSettings = {
5
- tokens: [defaultMenuDividerTokens, menuDividerName],
6
- slotProps: {
7
- root: buildProps(function (tokens) { return ({
8
- style: {
9
- height: tokens.height,
10
- width: tokens.width,
11
- backgroundColor: tokens.backgroundColor,
12
- margin: tokens.margin,
13
- marginVertical: tokens.marginVertical,
14
- display: 'flex',
15
- },
16
- }); }, ['backgroundColor', 'height', 'margin', 'marginVertical', 'width']),
17
- },
18
- };
19
- //# sourceMappingURL=MenuDivider.styling.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDivider.styling.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.styling.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,CAAC,IAAM,eAAe,GAAiF;IAC3G,MAAM,EAAE,CAAC,wBAAwB,EAAE,eAAe,CAAC;IACnD,SAAS,EAAE;QACT,IAAI,EAAE,UAAU,CACd,UAAC,MAAyB,IAAK,OAAA,CAAC;YAC9B,KAAK,EAAE;gBACL,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,cAAc,EAAE,MAAM,CAAC,cAAc;gBACrC,OAAO,EAAE,MAAM;aAChB;SACF,CAAC,EAT6B,CAS7B,EACF,CAAC,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,CAAC,CACnE;KACF;CACF,CAAC"}
@@ -1,21 +0,0 @@
1
- import type * as React from 'react';
2
- import type { ViewStyle } from 'react-native';
3
- import type { IViewProps } from '@fluentui-react-native/adapters';
4
- import type { IBackgroundColorTokens } from '@fluentui-react-native/tokens';
5
- export declare const menuDividerName = "MenuDivider";
6
- export type MenuDividerTokens = IBackgroundColorTokens & {
7
- height?: number;
8
- margin?: number;
9
- marginVertical?: number;
10
- width?: ViewStyle['width'];
11
- };
12
- export type MenuDividerProps = IViewProps;
13
- export interface MenuDividerSlotProps {
14
- root: React.PropsWithRef<IViewProps>;
15
- }
16
- export interface MenuDividerType {
17
- props: MenuDividerProps;
18
- tokens: MenuDividerTokens;
19
- slotProps: MenuDividerSlotProps;
20
- }
21
- //# sourceMappingURL=MenuDivider.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDivider.types.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,GAAG;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAE1C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,oBAAoB,CAAC;CACjC"}
@@ -1,2 +0,0 @@
1
- export var menuDividerName = 'MenuDivider';
2
- //# sourceMappingURL=MenuDivider.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDivider.types.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.types.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,IAAM,eAAe,GAAG,aAAa,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { Theme } from '@fluentui-react-native/framework';
2
- import type { TokenSettings } from '@fluentui-react-native/use-styling';
3
- import type { MenuDividerTokens } from './MenuDivider.types';
4
- export declare const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme>;
5
- //# sourceMappingURL=MenuDividerTokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDividerTokens.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAI3E,CAAC"}
@@ -1,7 +0,0 @@
1
- import { globalTokens } from '@fluentui-react-native/theme-tokens';
2
- export var defaultMenuDividerTokens = function (t) { return ({
3
- backgroundColor: t.colors.neutralStroke2,
4
- height: globalTokens.stroke.width10,
5
- marginVertical: globalTokens.size40,
6
- }); };
7
- //# sourceMappingURL=MenuDividerTokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDividerTokens.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,MAAM,CAAC,IAAM,wBAAwB,GAA4C,UAAC,CAAQ,IAAwB,OAAA,CAAC;IACjH,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IACxC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO;IACnC,cAAc,EAAE,YAAY,CAAC,MAAM;CACpC,CAAC,EAJgH,CAIhH,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { Theme } from '@fluentui-react-native/framework';
2
- import type { TokenSettings } from '@fluentui-react-native/use-styling';
3
- import type { MenuDividerTokens } from './MenuDivider.types';
4
- export declare const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme>;
5
- //# sourceMappingURL=MenuDividerTokens.macos.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDividerTokens.macos.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.macos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAI3E,CAAC"}
@@ -1,7 +0,0 @@
1
- import { globalTokens } from '@fluentui-react-native/theme-tokens';
2
- export var defaultMenuDividerTokens = function (t) { return ({
3
- backgroundColor: t.colors.neutralStroke2,
4
- height: globalTokens.stroke.width10,
5
- margin: globalTokens.size40,
6
- }); };
7
- //# sourceMappingURL=MenuDividerTokens.macos.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDividerTokens.macos.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.macos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,MAAM,CAAC,IAAM,wBAAwB,GAA4C,UAAC,CAAQ,IAAwB,OAAA,CAAC;IACjH,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IACxC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO;IACnC,MAAM,EAAE,YAAY,CAAC,MAAM;CAC5B,CAAC,EAJgH,CAIhH,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { Theme } from '@fluentui-react-native/framework';
2
- import type { TokenSettings } from '@fluentui-react-native/use-styling';
3
- import type { MenuDividerTokens } from './MenuDivider.types';
4
- export declare const defaultMenuDividerTokens: TokenSettings<MenuDividerTokens, Theme>;
5
- //# sourceMappingURL=MenuDividerTokens.win32.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDividerTokens.win32.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.win32.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAI3E,CAAC"}
@@ -1,7 +0,0 @@
1
- import { globalTokens } from '@fluentui-react-native/theme-tokens';
2
- export var defaultMenuDividerTokens = function (t) { return ({
3
- backgroundColor: t.colors.neutralStroke1,
4
- height: globalTokens.stroke.width10,
5
- margin: globalTokens.size20,
6
- }); };
7
- //# sourceMappingURL=MenuDividerTokens.win32.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuDividerTokens.win32.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDividerTokens.win32.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,MAAM,CAAC,IAAM,wBAAwB,GAA4C,UAAC,CAAQ,IAAwB,OAAA,CAAC;IACjH,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IACxC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO;IACnC,MAAM,EAAE,YAAY,CAAC,MAAM;CAC5B,CAAC,EAJgH,CAIhH,CAAC"}
@@ -1,4 +0,0 @@
1
- export { MenuDivider } from './MenuDivider';
2
- export { menuDividerName } from './MenuDivider.types';
3
- export type { MenuDividerProps, MenuDividerTokens, MenuDividerSlotProps, MenuDividerType } from './MenuDivider.types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,3 +0,0 @@
1
- export { MenuDivider } from './MenuDivider';
2
- export { menuDividerName } from './MenuDivider.types';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/MenuDivider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,7 +0,0 @@
1
- /** @jsx withSlots */
2
- import React from 'react';
3
- import type { MenuItemProps } from './MenuItem.types';
4
- export declare const MenuItem: import("@fluentui-react-native/framework").ComposableComponent<MenuItemProps, import("./MenuItem.types").MenuItemSlotProps, import("./MenuItem.types").MenuItemTokens, object>;
5
- export declare const getAccessibilityLabel: (accessibilityLabel: string, child: React.ReactNode) => string;
6
- export declare const getTooltip: (tooltip: string, hasTooltips: boolean, child: React.ReactNode) => string;
7
- //# sourceMappingURL=MenuItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../src/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAIpE,eAAO,MAAM,QAAQ,gLAmDnB,CAAC;AAaH,eAAO,MAAM,qBAAqB,uBAXuB,MAAM,SAAS,MAAM,SAAS,WAWd,CAAC;AAa1E,eAAO,MAAM,UAAU,YAXY,MAAM,eAAe,OAAO,SAAS,MAAM,SAAS,WAWpC,CAAC"}