@fluentui-react-native/menu 1.4.34 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +37 -1
- package/CHANGELOG.md +19 -2
- package/SPEC.md +254 -39
- package/assets/Menu_android.png +0 -0
- package/assets/checkbox_android.png +0 -0
- package/lib/Menu/Menu.d.ts.map +1 -1
- package/lib/Menu/Menu.js +2 -6
- package/lib/Menu/Menu.js.map +1 -1
- package/lib/Menu/Menu.types.d.ts +21 -1
- package/lib/Menu/Menu.types.d.ts.map +1 -1
- package/lib/Menu/Menu.types.js +6 -0
- package/lib/Menu/Menu.types.js.map +1 -1
- package/lib/Menu/renderMenu.android.d.ts +5 -0
- package/lib/Menu/renderMenu.android.d.ts.map +1 -0
- package/lib/Menu/renderMenu.android.js +14 -0
- package/lib/Menu/renderMenu.android.js.map +1 -0
- package/lib/Menu/renderMenu.d.ts +5 -0
- package/lib/Menu/renderMenu.d.ts.map +1 -0
- package/lib/Menu/renderMenu.js +10 -0
- package/lib/Menu/renderMenu.js.map +1 -0
- package/lib/Menu/useMenu.android.d.ts +3 -0
- package/lib/Menu/useMenu.android.d.ts.map +1 -0
- package/lib/Menu/useMenu.android.js +257 -0
- package/lib/Menu/useMenu.android.js.map +1 -0
- package/lib/MenuCallout/MenuCallout.android.d.ts +4 -0
- package/lib/MenuCallout/MenuCallout.android.d.ts.map +1 -0
- package/lib/MenuCallout/MenuCallout.android.js +33 -0
- package/lib/MenuCallout/MenuCallout.android.js.map +1 -0
- package/lib/MenuCallout/MenuCallout.d.ts +4 -0
- package/lib/MenuCallout/MenuCallout.d.ts.map +1 -0
- package/lib/MenuCallout/MenuCallout.js +15 -0
- package/lib/MenuCallout/MenuCallout.js.map +1 -0
- package/lib/MenuCallout/MenuCallout.types.d.ts +18 -0
- package/lib/MenuCallout/MenuCallout.types.d.ts.map +1 -0
- package/lib/MenuCallout/MenuCallout.types.js +2 -0
- package/lib/MenuCallout/MenuCallout.types.js.map +1 -0
- package/lib/MenuCallout/index.d.ts +4 -0
- package/lib/MenuCallout/index.d.ts.map +1 -0
- package/lib/MenuCallout/index.js +3 -0
- package/lib/MenuCallout/index.js.map +1 -0
- package/lib/MenuDivider/MenuDivider.d.ts +2 -1
- package/lib/MenuDivider/MenuDivider.d.ts.map +1 -1
- package/lib/MenuDivider/MenuDivider.styling.d.ts.map +1 -1
- package/lib/MenuDivider/MenuDivider.styling.js +4 -8
- package/lib/MenuDivider/MenuDivider.styling.js.map +1 -1
- package/lib/MenuDivider/MenuDivider.types.d.ts +6 -1
- package/lib/MenuDivider/MenuDivider.types.d.ts.map +1 -1
- package/lib/MenuDivider/MenuDivider.types.js +1 -0
- package/lib/MenuDivider/MenuDivider.types.js.map +1 -1
- package/lib/MenuDivider/MenuDividerTokens.android.d.ts +5 -0
- package/lib/MenuDivider/MenuDividerTokens.android.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.android.js +7 -0
- package/lib/MenuDivider/MenuDividerTokens.android.js.map +1 -0
- package/lib/MenuDivider/index.d.ts +1 -1
- package/lib/MenuDivider/index.d.ts.map +1 -1
- package/lib/MenuItem/MenuItem.styling.d.ts.map +1 -1
- package/lib/MenuItem/MenuItem.styling.js +2 -1
- package/lib/MenuItem/MenuItem.styling.js.map +1 -1
- package/lib/MenuItem/MenuItem.types.d.ts +5 -0
- package/lib/MenuItem/MenuItem.types.d.ts.map +1 -1
- package/lib/MenuItem/MenuItemTokens.android.d.ts +5 -0
- package/lib/MenuItem/MenuItemTokens.android.d.ts.map +1 -0
- package/lib/MenuItem/MenuItemTokens.android.js +20 -0
- package/lib/MenuItem/MenuItemTokens.android.js.map +1 -0
- package/lib/MenuItem/useMenuItem.d.ts.map +1 -1
- package/lib/MenuItem/useMenuItem.js.map +1 -1
- package/lib/MenuItemCheckbox/MenuItemCheckbox.d.ts.map +1 -1
- package/lib/MenuItemCheckbox/MenuItemCheckbox.js +5 -10
- package/lib/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
- package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.d.ts.map +1 -1
- package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.js +25 -20
- package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.js.map +1 -1
- package/lib/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +40 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.types.d.ts.map +1 -1
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.android.d.ts +5 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.android.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.android.js +41 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.android.js.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadio.d.ts +6 -3
- package/lib/MenuItemRadio/MenuItemRadio.d.ts.map +1 -1
- package/lib/MenuItemRadio/MenuItemRadio.js +37 -9
- package/lib/MenuItemRadio/MenuItemRadio.js.map +1 -1
- package/lib/MenuItemRadio/MenuItemRadio.styling.android.d.ts +6 -0
- package/lib/MenuItemRadio/MenuItemRadio.styling.android.d.ts.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadio.styling.android.js +57 -0
- package/lib/MenuItemRadio/MenuItemRadio.styling.android.js.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadio.styling.d.ts +5 -0
- package/lib/MenuItemRadio/MenuItemRadio.styling.d.ts.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadio.styling.js +37 -0
- package/lib/MenuItemRadio/MenuItemRadio.styling.js.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadio.types.d.ts +137 -0
- package/lib/MenuItemRadio/MenuItemRadio.types.d.ts.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadio.types.js +2 -0
- package/lib/MenuItemRadio/MenuItemRadio.types.js.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadioTokens.android.d.ts +5 -0
- package/lib/MenuItemRadio/MenuItemRadioTokens.android.d.ts.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadioTokens.android.js +44 -0
- package/lib/MenuItemRadio/MenuItemRadioTokens.android.js.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadioTokens.d.ts +5 -0
- package/lib/MenuItemRadio/MenuItemRadioTokens.d.ts.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadioTokens.js +52 -0
- package/lib/MenuItemRadio/MenuItemRadioTokens.js.map +1 -0
- package/lib/MenuItemRadio/index.d.ts +2 -1
- package/lib/MenuItemRadio/index.d.ts.map +1 -1
- package/lib/MenuItemRadio/index.js +1 -1
- package/lib/MenuItemRadio/index.js.map +1 -1
- package/lib/MenuItemRadio/useMenuItemRadio.d.ts +2 -2
- package/lib/MenuItemRadio/useMenuItemRadio.d.ts.map +1 -1
- package/lib/MenuItemRadio/useMenuItemRadio.js.map +1 -1
- package/lib/MenuList/MenuList.styling.d.ts.map +1 -1
- package/lib/MenuList/MenuList.styling.js +2 -1
- package/lib/MenuList/MenuList.styling.js.map +1 -1
- package/lib/MenuList/MenuList.types.d.ts +6 -0
- package/lib/MenuList/MenuList.types.d.ts.map +1 -1
- package/lib/MenuList/MenuListTokens.android.d.ts +5 -0
- package/lib/MenuList/MenuListTokens.android.d.ts.map +1 -0
- package/lib/MenuList/MenuListTokens.android.js +7 -0
- package/lib/MenuList/MenuListTokens.android.js.map +1 -0
- package/lib/MenuPopover/MenuPopover.d.ts +4 -2
- package/lib/MenuPopover/MenuPopover.d.ts.map +1 -1
- package/lib/MenuPopover/MenuPopover.js +2 -2
- package/lib/MenuPopover/MenuPopover.js.map +1 -1
- package/lib/MenuPopover/MenuPopover.types.d.ts +12 -1
- package/lib/MenuPopover/MenuPopover.types.d.ts.map +1 -1
- package/lib/MenuPopover/MenuPopoverTokens.android.d.ts +5 -0
- package/lib/MenuPopover/MenuPopoverTokens.android.d.ts.map +1 -0
- package/lib/MenuPopover/MenuPopoverTokens.android.js +14 -0
- package/lib/MenuPopover/MenuPopoverTokens.android.js.map +1 -0
- package/lib/MenuPopover/MenuPopoverTokens.d.ts +4 -2
- package/lib/MenuPopover/MenuPopoverTokens.d.ts.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Menu/Menu.d.ts.map +1 -1
- package/lib-commonjs/Menu/Menu.js +2 -6
- package/lib-commonjs/Menu/Menu.js.map +1 -1
- package/lib-commonjs/Menu/Menu.types.d.ts +21 -1
- package/lib-commonjs/Menu/Menu.types.d.ts.map +1 -1
- package/lib-commonjs/Menu/Menu.types.js +7 -1
- package/lib-commonjs/Menu/Menu.types.js.map +1 -1
- package/lib-commonjs/Menu/renderMenu.android.d.ts +5 -0
- package/lib-commonjs/Menu/renderMenu.android.d.ts.map +1 -0
- package/lib-commonjs/Menu/renderMenu.android.js +19 -0
- package/lib-commonjs/Menu/renderMenu.android.js.map +1 -0
- package/lib-commonjs/Menu/renderMenu.d.ts +5 -0
- package/lib-commonjs/Menu/renderMenu.d.ts.map +1 -0
- package/lib-commonjs/Menu/renderMenu.js +15 -0
- package/lib-commonjs/Menu/renderMenu.js.map +1 -0
- package/lib-commonjs/Menu/useMenu.android.d.ts +3 -0
- package/lib-commonjs/Menu/useMenu.android.d.ts.map +1 -0
- package/lib-commonjs/Menu/useMenu.android.js +261 -0
- package/lib-commonjs/Menu/useMenu.android.js.map +1 -0
- package/lib-commonjs/MenuCallout/MenuCallout.android.d.ts +4 -0
- package/lib-commonjs/MenuCallout/MenuCallout.android.d.ts.map +1 -0
- package/lib-commonjs/MenuCallout/MenuCallout.android.js +36 -0
- package/lib-commonjs/MenuCallout/MenuCallout.android.js.map +1 -0
- package/lib-commonjs/MenuCallout/MenuCallout.d.ts +4 -0
- package/lib-commonjs/MenuCallout/MenuCallout.d.ts.map +1 -0
- package/lib-commonjs/MenuCallout/MenuCallout.js +18 -0
- package/lib-commonjs/MenuCallout/MenuCallout.js.map +1 -0
- package/lib-commonjs/MenuCallout/MenuCallout.types.d.ts +18 -0
- package/lib-commonjs/MenuCallout/MenuCallout.types.d.ts.map +1 -0
- package/lib-commonjs/MenuCallout/MenuCallout.types.js +5 -0
- package/lib-commonjs/MenuCallout/MenuCallout.types.js.map +1 -0
- package/lib-commonjs/MenuCallout/index.d.ts +4 -0
- package/lib-commonjs/MenuCallout/index.d.ts.map +1 -0
- package/lib-commonjs/MenuCallout/index.js +8 -0
- package/lib-commonjs/MenuCallout/index.js.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDivider.d.ts +2 -1
- package/lib-commonjs/MenuDivider/MenuDivider.d.ts.map +1 -1
- package/lib-commonjs/MenuDivider/MenuDivider.styling.d.ts.map +1 -1
- package/lib-commonjs/MenuDivider/MenuDivider.styling.js +4 -8
- package/lib-commonjs/MenuDivider/MenuDivider.styling.js.map +1 -1
- package/lib-commonjs/MenuDivider/MenuDivider.types.d.ts +6 -1
- package/lib-commonjs/MenuDivider/MenuDivider.types.d.ts.map +1 -1
- package/lib-commonjs/MenuDivider/MenuDivider.types.js +2 -1
- package/lib-commonjs/MenuDivider/MenuDivider.types.js.map +1 -1
- package/lib-commonjs/MenuDivider/MenuDividerTokens.android.d.ts +5 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.android.d.ts.map +1 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.android.js +11 -0
- package/lib-commonjs/MenuDivider/MenuDividerTokens.android.js.map +1 -0
- package/lib-commonjs/MenuDivider/index.d.ts +1 -1
- package/lib-commonjs/MenuDivider/index.d.ts.map +1 -1
- package/lib-commonjs/MenuItem/MenuItem.styling.d.ts.map +1 -1
- package/lib-commonjs/MenuItem/MenuItem.styling.js +2 -1
- package/lib-commonjs/MenuItem/MenuItem.styling.js.map +1 -1
- package/lib-commonjs/MenuItem/MenuItem.types.d.ts +5 -0
- package/lib-commonjs/MenuItem/MenuItem.types.d.ts.map +1 -1
- package/lib-commonjs/MenuItem/MenuItemTokens.android.d.ts +5 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.android.d.ts.map +1 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.android.js +24 -0
- package/lib-commonjs/MenuItem/MenuItemTokens.android.js.map +1 -0
- package/lib-commonjs/MenuItem/useMenuItem.d.ts.map +1 -1
- package/lib-commonjs/MenuItem/useMenuItem.js.map +1 -1
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.d.ts.map +1 -1
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.js +4 -9
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.styling.d.ts.map +1 -1
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.styling.js +25 -20
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.styling.js.map +1 -1
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +40 -0
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.types.d.ts.map +1 -1
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckboxTokens.android.d.ts +5 -0
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckboxTokens.android.d.ts.map +1 -0
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckboxTokens.android.js +45 -0
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckboxTokens.android.js.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.d.ts +6 -3
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.d.ts.map +1 -1
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.js +39 -10
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.js.map +1 -1
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.styling.android.d.ts +6 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.styling.android.d.ts.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.styling.android.js +60 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.styling.android.js.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.styling.d.ts +5 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.styling.d.ts.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.styling.js +40 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.styling.js.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.types.d.ts +137 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.types.d.ts.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.types.js +5 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadio.types.js.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadioTokens.android.d.ts +5 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadioTokens.android.d.ts.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadioTokens.android.js +48 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadioTokens.android.js.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadioTokens.d.ts +5 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadioTokens.d.ts.map +1 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadioTokens.js +56 -0
- package/lib-commonjs/MenuItemRadio/MenuItemRadioTokens.js.map +1 -0
- package/lib-commonjs/MenuItemRadio/index.d.ts +2 -1
- package/lib-commonjs/MenuItemRadio/index.d.ts.map +1 -1
- package/lib-commonjs/MenuItemRadio/index.js +1 -2
- package/lib-commonjs/MenuItemRadio/index.js.map +1 -1
- package/lib-commonjs/MenuItemRadio/useMenuItemRadio.d.ts +2 -2
- package/lib-commonjs/MenuItemRadio/useMenuItemRadio.d.ts.map +1 -1
- package/lib-commonjs/MenuItemRadio/useMenuItemRadio.js.map +1 -1
- package/lib-commonjs/MenuList/MenuList.styling.d.ts.map +1 -1
- package/lib-commonjs/MenuList/MenuList.styling.js +2 -1
- package/lib-commonjs/MenuList/MenuList.styling.js.map +1 -1
- package/lib-commonjs/MenuList/MenuList.types.d.ts +6 -0
- package/lib-commonjs/MenuList/MenuList.types.d.ts.map +1 -1
- package/lib-commonjs/MenuList/MenuListTokens.android.d.ts +5 -0
- package/lib-commonjs/MenuList/MenuListTokens.android.d.ts.map +1 -0
- package/lib-commonjs/MenuList/MenuListTokens.android.js +11 -0
- package/lib-commonjs/MenuList/MenuListTokens.android.js.map +1 -0
- package/lib-commonjs/MenuPopover/MenuPopover.d.ts +4 -2
- package/lib-commonjs/MenuPopover/MenuPopover.d.ts.map +1 -1
- package/lib-commonjs/MenuPopover/MenuPopover.js +2 -2
- package/lib-commonjs/MenuPopover/MenuPopover.js.map +1 -1
- package/lib-commonjs/MenuPopover/MenuPopover.types.d.ts +12 -1
- package/lib-commonjs/MenuPopover/MenuPopover.types.d.ts.map +1 -1
- package/lib-commonjs/MenuPopover/MenuPopoverTokens.android.d.ts +5 -0
- package/lib-commonjs/MenuPopover/MenuPopoverTokens.android.d.ts.map +1 -0
- package/lib-commonjs/MenuPopover/MenuPopoverTokens.android.js +17 -0
- package/lib-commonjs/MenuPopover/MenuPopoverTokens.android.js.map +1 -0
- package/lib-commonjs/MenuPopover/MenuPopoverTokens.d.ts +4 -2
- package/lib-commonjs/MenuPopover/MenuPopoverTokens.d.ts.map +1 -1
- package/lib-commonjs/index.d.ts +1 -1
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +1 -2
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +2 -2
- package/src/Menu/Menu.tsx +3 -13
- package/src/Menu/Menu.types.ts +24 -1
- package/src/Menu/renderMenu.android.tsx +26 -0
- package/src/Menu/renderMenu.tsx +18 -0
- package/src/Menu/useMenu.android.ts +325 -0
- package/src/MenuCallout/MenuCallout.android.tsx +60 -0
- package/src/MenuCallout/MenuCallout.tsx +20 -0
- package/src/MenuCallout/MenuCallout.types.ts +22 -0
- package/src/MenuCallout/index.ts +3 -0
- package/src/MenuDivider/MenuDivider.styling.ts +4 -0
- package/src/MenuDivider/MenuDivider.types.ts +7 -1
- package/src/MenuDivider/MenuDividerTokens.android.ts +11 -0
- package/src/MenuDivider/index.ts +1 -1
- package/src/MenuItem/MenuItem.styling.ts +3 -1
- package/src/MenuItem/MenuItem.types.ts +6 -0
- package/src/MenuItem/MenuItemTokens.android.ts +24 -0
- package/src/MenuItem/useMenuItem.ts +0 -1
- package/src/MenuItemCheckbox/MenuItemCheckbox.styling.ts +29 -2
- package/src/MenuItemCheckbox/MenuItemCheckbox.tsx +15 -2
- package/src/MenuItemCheckbox/MenuItemCheckbox.types.ts +47 -0
- package/src/MenuItemCheckbox/MenuItemCheckboxTokens.android.ts +46 -0
- package/src/MenuItemRadio/MenuItemRadio.styling.android.ts +98 -0
- package/src/MenuItemRadio/MenuItemRadio.styling.ts +75 -0
- package/src/MenuItemRadio/MenuItemRadio.tsx +68 -9
- package/src/MenuItemRadio/MenuItemRadio.types.ts +160 -0
- package/src/MenuItemRadio/MenuItemRadioTokens.android.ts +51 -0
- package/src/MenuItemRadio/MenuItemRadioTokens.ts +56 -0
- package/src/MenuItemRadio/index.ts +9 -1
- package/src/MenuItemRadio/useMenuItemRadio.ts +2 -2
- package/src/MenuList/MenuList.styling.ts +3 -0
- package/src/MenuList/MenuList.types.ts +7 -0
- package/src/MenuList/MenuListTokens.android.ts +11 -0
- package/src/MenuPopover/MenuPopover.tsx +6 -2
- package/src/MenuPopover/MenuPopover.types.ts +14 -1
- package/src/MenuPopover/MenuPopoverTokens.android.ts +21 -0
- package/src/index.ts +10 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,43 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/menu",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 19 Apr 2023 10:08:10 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/menu_v1.6.0",
|
|
7
|
+
"version": "1.6.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "rohanpd.work@gmail.com",
|
|
12
|
+
"package": "@fluentui-react-native/menu",
|
|
13
|
+
"commit": "3b9596a195208ebf455958f7dd1e64af8e224d39",
|
|
14
|
+
"comment": "add blackbox example and remove unused tokens"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 12 Apr 2023 18:42:22 GMT",
|
|
21
|
+
"tag": "@fluentui-react-native/menu_v1.5.0",
|
|
22
|
+
"version": "1.5.0",
|
|
23
|
+
"comments": {
|
|
24
|
+
"minor": [
|
|
25
|
+
{
|
|
26
|
+
"author": "rohanpd.work@gmail.com",
|
|
27
|
+
"package": "@fluentui-react-native/menu",
|
|
28
|
+
"commit": "34d89fc8baf0f1438c6e5420a0ef75bf3be3fc49",
|
|
29
|
+
"comment": "menu radio strcutured"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@fluentui-react-native/menu",
|
|
34
|
+
"comment": "Bump @fluentui-react-native/button to v0.32.50",
|
|
35
|
+
"commit": "42f64ddb244764adf58f95b463b2638d0989b148"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Mon, 10 Apr 2023 19:48:24 GMT",
|
|
6
42
|
"tag": "@fluentui-react-native/menu_v1.4.34",
|
|
7
43
|
"version": "1.4.34",
|
|
8
44
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/menu
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 19 Apr 2023 10:08:10 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.6.0
|
|
8
|
+
|
|
9
|
+
Wed, 19 Apr 2023 10:08:10 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- add blackbox example and remove unused tokens (rohanpd.work@gmail.com)
|
|
14
|
+
|
|
15
|
+
## 1.5.0
|
|
16
|
+
|
|
17
|
+
Wed, 12 Apr 2023 18:42:22 GMT
|
|
18
|
+
|
|
19
|
+
### Minor changes
|
|
20
|
+
|
|
21
|
+
- menu radio strcutured (rohanpd.work@gmail.com)
|
|
22
|
+
- Bump @fluentui-react-native/button to v0.32.50
|
|
23
|
+
|
|
7
24
|
## 1.4.34
|
|
8
25
|
|
|
9
|
-
Mon, 10 Apr 2023 19:
|
|
26
|
+
Mon, 10 Apr 2023 19:48:24 GMT
|
|
10
27
|
|
|
11
28
|
### Patches
|
|
12
29
|
|
package/SPEC.md
CHANGED
|
@@ -14,8 +14,14 @@ The below samples do not represent the definitive props of the final implemented
|
|
|
14
14
|
|
|
15
15
|
### Basic Menu
|
|
16
16
|
|
|
17
|
+
##### On Win32
|
|
18
|
+
|
|
17
19
|

|
|
18
20
|
|
|
21
|
+
##### On Android
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
19
25
|
```tsx
|
|
20
26
|
const menu = (
|
|
21
27
|
<Menu>
|
|
@@ -35,6 +41,8 @@ const menu = (
|
|
|
35
41
|
|
|
36
42
|
### Submenus
|
|
37
43
|
|
|
44
|
+
Note: Submenus are not supported on Mobile Platforms
|
|
45
|
+
|
|
38
46
|

|
|
39
47
|
|
|
40
48
|
```tsx
|
|
@@ -66,8 +74,14 @@ const menu = (
|
|
|
66
74
|
|
|
67
75
|
### Selection
|
|
68
76
|
|
|
77
|
+
##### On Win32
|
|
78
|
+
|
|
69
79
|

|
|
70
80
|
|
|
81
|
+
##### On Android
|
|
82
|
+
|
|
83
|
+

|
|
84
|
+
|
|
71
85
|
```tsx
|
|
72
86
|
const [selectedItems, setSelectedItems] = React.useState([]);
|
|
73
87
|
const onCheckedChange = React.useCallback(
|
|
@@ -101,6 +115,8 @@ A `Menu` should be able to trigger a submenu, or an additional instance of `Menu
|
|
|
101
115
|
|
|
102
116
|
Nested menus are by default triggered by hovering over a trigger, but can also be opened by invoking the trigger component for the nested `Menu`.
|
|
103
117
|
|
|
118
|
+
Note: Nested menus are not supported on mobile platforms.
|
|
119
|
+
|
|
104
120
|
### Selection state
|
|
105
121
|
|
|
106
122
|
A `Menu` should be able to track and represent the selection, or checked, state of its options.
|
|
@@ -163,6 +179,7 @@ export interface MenuProps extends MenuListProps {
|
|
|
163
179
|
|
|
164
180
|
/**
|
|
165
181
|
* How much delay to have between hover in and showing the menu, in ms.
|
|
182
|
+
* @platform win32, macOS
|
|
166
183
|
*/
|
|
167
184
|
hoverDelay?: number;
|
|
168
185
|
|
|
@@ -178,6 +195,7 @@ export interface MenuProps extends MenuListProps {
|
|
|
178
195
|
|
|
179
196
|
/*
|
|
180
197
|
* Opens the menu on hovering over the trigger
|
|
198
|
+
* @platform win32, macOS
|
|
181
199
|
*/
|
|
182
200
|
openOnHover?: boolean;
|
|
183
201
|
|
|
@@ -200,6 +218,15 @@ This component provides the temporary surface that will host the `Menu`'s option
|
|
|
200
218
|
export type MenuPopoverProps = ICalloutProps;
|
|
201
219
|
```
|
|
202
220
|
|
|
221
|
+
### MenuCallout
|
|
222
|
+
|
|
223
|
+
This component provides the temporary surface that will host the `Menu`'s popover.
|
|
224
|
+
It act as a wrapper for Callout on win32 and macos whereas RN Modal for Android plaform.
|
|
225
|
+
|
|
226
|
+
```ts
|
|
227
|
+
export type MenuCalloutProps = ICalloutProps & { tokens: MenuCalloutTokens };
|
|
228
|
+
```
|
|
229
|
+
|
|
203
230
|
### MenuList
|
|
204
231
|
|
|
205
232
|
This component is used internally by `Menu` and manages the context and layout of its items.
|
|
@@ -207,7 +234,7 @@ This component is used internally by `Menu` and manages the context and layout o
|
|
|
207
234
|
#### MenuList Props
|
|
208
235
|
|
|
209
236
|
```ts
|
|
210
|
-
export
|
|
237
|
+
export interface MenuListProps extends Omit<IViewProps, 'onPress'> {
|
|
211
238
|
/**
|
|
212
239
|
* Array of all checked items
|
|
213
240
|
*/
|
|
@@ -219,20 +246,21 @@ export type MenuListProps = {
|
|
|
219
246
|
defaultChecked?: string[];
|
|
220
247
|
|
|
221
248
|
/**
|
|
222
|
-
* States that menu items can contain
|
|
249
|
+
* States that menu items can contain selectable items and reserves space for item alignment
|
|
223
250
|
*/
|
|
224
|
-
|
|
251
|
+
hasCheckmarks?: boolean;
|
|
225
252
|
|
|
226
253
|
/**
|
|
227
|
-
* States that menu items can contain
|
|
254
|
+
* States that menu items can contain icons and reserves space for item alignment
|
|
228
255
|
*/
|
|
229
|
-
|
|
256
|
+
hasIcons?: boolean;
|
|
230
257
|
|
|
231
258
|
/**
|
|
232
259
|
* States that menu items all have tooltips with its text by default.
|
|
233
260
|
*
|
|
234
261
|
* This option is useful for programmatically generated items to provide
|
|
235
262
|
* text for options that end up having tuncated text.
|
|
263
|
+
* @platform win32, macOS
|
|
236
264
|
*/
|
|
237
265
|
hasTooltips?: boolean;
|
|
238
266
|
|
|
@@ -241,9 +269,12 @@ export type MenuListProps = {
|
|
|
241
269
|
*
|
|
242
270
|
* @param checked Array of all currently checked values
|
|
243
271
|
*/
|
|
244
|
-
onCheckedChange?: (e: InteractionEvent, checked[]) => void;
|
|
245
|
-
|
|
246
|
-
|
|
272
|
+
onCheckedChange?: (e: InteractionEvent, checked: string[]) => void;
|
|
273
|
+
/**
|
|
274
|
+
* Defines a minumum width for the Menu.
|
|
275
|
+
*/
|
|
276
|
+
minWidth?: number | string;
|
|
277
|
+
}
|
|
247
278
|
```
|
|
248
279
|
|
|
249
280
|
#### MenuList Tokens
|
|
@@ -259,6 +290,12 @@ export interface MenuListTokens extends LayoutTokens, IBackgroundColorTokens {
|
|
|
259
290
|
* States of the list control
|
|
260
291
|
*/
|
|
261
292
|
hasMaxHeight?: MenuListTokens;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Corner radius of the menu list
|
|
296
|
+
* @platform android
|
|
297
|
+
*/
|
|
298
|
+
cornerRadius?: number;
|
|
262
299
|
}
|
|
263
300
|
```
|
|
264
301
|
|
|
@@ -322,6 +359,12 @@ export interface MenuItemTokens extends LayoutTokens, FontTokens, IBorderTokens,
|
|
|
322
359
|
*/
|
|
323
360
|
iconSize?: number;
|
|
324
361
|
|
|
362
|
+
/**
|
|
363
|
+
* Amount of space in pixels at the end of the item control that is reserved to align the item's text with other items which have checkmarks
|
|
364
|
+
* @platform android
|
|
365
|
+
*/
|
|
366
|
+
marginEndForCheckedAndroid?: number;
|
|
367
|
+
|
|
325
368
|
/**
|
|
326
369
|
* Color of the indicator that shows that an item has a submenu
|
|
327
370
|
*/
|
|
@@ -357,40 +400,138 @@ export interface MenuItemTokens extends LayoutTokens, FontTokens, IBorderTokens,
|
|
|
357
400
|
- `fontOrSvgIcon` - If specified, renders an `Icon` which supports font or SVG icons.
|
|
358
401
|
- `submenuIndicator` - If specified, renders an SVG which indicates that the `MenuItem` is a trigger for a nested `Menu`.
|
|
359
402
|
|
|
360
|
-
### MenuItemCheckbox
|
|
403
|
+
### MenuItemCheckbox
|
|
361
404
|
|
|
362
|
-
Variants of `MenuItem` that allows
|
|
405
|
+
Variants of `MenuItem` that allows multiple selection state based on the value that it represents. These `MenuItems` do not support submenus.
|
|
363
406
|
|
|
364
|
-
#### MenuItemCheckbox
|
|
407
|
+
#### MenuItemCheckbox Props
|
|
365
408
|
|
|
366
409
|
```ts
|
|
367
|
-
export interface MenuItemCheckboxProps extends
|
|
410
|
+
export interface MenuItemCheckboxProps extends MenuItemProps {
|
|
368
411
|
/**
|
|
369
|
-
*
|
|
412
|
+
* Identifier for the control
|
|
370
413
|
*/
|
|
371
|
-
|
|
414
|
+
name: string;
|
|
415
|
+
}
|
|
416
|
+
```
|
|
372
417
|
|
|
373
|
-
|
|
374
|
-
|
|
418
|
+
#### MenuItemCheckbox Tokens
|
|
419
|
+
|
|
420
|
+
```ts
|
|
421
|
+
export interface MenuItemCheckboxTokens
|
|
422
|
+
extends Omit<MenuItemTokens, 'submenuIndicatorPadding' | 'submenuIndicatorSize' | 'disabled' | 'focused' | 'hovered' | 'pressed'> {
|
|
423
|
+
/**
|
|
424
|
+
* Color of the checkmark icon
|
|
375
425
|
*/
|
|
376
|
-
|
|
426
|
+
checkmarkColor?: ColorValue;
|
|
377
427
|
|
|
378
428
|
/**
|
|
379
|
-
*
|
|
429
|
+
* Amount of space in pixels around the checkmark icon
|
|
380
430
|
*/
|
|
381
|
-
|
|
431
|
+
checkmarkPadding?: number;
|
|
382
432
|
|
|
383
433
|
/**
|
|
384
|
-
*
|
|
434
|
+
* Visibility of the checkmark icon from 0 to 1
|
|
385
435
|
*/
|
|
386
|
-
|
|
436
|
+
checkmarkVisibility?: number;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Color of the icon
|
|
440
|
+
*/
|
|
441
|
+
iconColor?: ColorValue;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Size of the icon. Pixels for SVG and points for font icon.
|
|
445
|
+
*/
|
|
446
|
+
iconSize?: number;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Color of the background of the box containing the checkmark.
|
|
450
|
+
* @platform android
|
|
451
|
+
*/
|
|
452
|
+
checkboxBackgroundColor?: ColorValue;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Color of the border of the box containing the checkmark.
|
|
456
|
+
* @platform android
|
|
457
|
+
*/
|
|
458
|
+
checkboxBorderColor?: ColorValue;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Border radius of the box containing the checkmark.
|
|
462
|
+
* @platform android
|
|
463
|
+
*/
|
|
464
|
+
checkboxBorderRadius?: number;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Width of the border around the box containing the checkmark.
|
|
468
|
+
* @platform android
|
|
469
|
+
*/
|
|
470
|
+
checkboxBorderWidth?: number;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Height and width of the box containing the checkmark.
|
|
474
|
+
* @platform android
|
|
475
|
+
*/
|
|
476
|
+
checkboxSize?: number;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Ripple color for Android.
|
|
480
|
+
*
|
|
481
|
+
* A ripple animation is shown on click for Android. This sets the color of the ripple.
|
|
482
|
+
* @platform android
|
|
483
|
+
*/
|
|
484
|
+
rippleColor?: ColorValue;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Ripple radius for circular radio on Android.
|
|
488
|
+
*
|
|
489
|
+
* A ripple animation is shown on click for Android. This sets the radius of the circular ripple shown on the radio button.
|
|
490
|
+
* @platform android
|
|
491
|
+
*/
|
|
492
|
+
rippleRadius?: number;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* States of the item control
|
|
496
|
+
*/
|
|
497
|
+
checked?: MenuItemCheckboxTokens;
|
|
498
|
+
disabled?: MenuItemCheckboxTokens;
|
|
499
|
+
focused?: MenuItemCheckboxTokens;
|
|
500
|
+
hovered?: MenuItemCheckboxTokens;
|
|
501
|
+
pressed?: MenuItemCheckboxTokens;
|
|
502
|
+
}
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
#### MenuItemCheckbox Slots
|
|
506
|
+
|
|
507
|
+
- `root` - The outer container representing the `MenuItem` itself that wraps everything passed via the `children` prop.
|
|
508
|
+
- `checkbox` - If specified render box with checkmark svg which indicates that the `MenuItem` is selected.
|
|
509
|
+
- `content` - If specified, renders the `content` prop as text.
|
|
510
|
+
- `checkmark` - If specified, renders an SVG which indicates that the `MenuItem` is selected.
|
|
511
|
+
- `iconPlaceholder` - If specified, renders space for an icon before the content. Could be blank or contain an icon. Used when the `Menu` has `hasIcons`.
|
|
512
|
+
- `imgIcon` - If specified, renders an `Image` as an icon.
|
|
513
|
+
- `fontOrSvgIcon` - If specified, renders an `Icon` which supports font or SVG icons.
|
|
514
|
+
|
|
515
|
+
### MenuItemRadio
|
|
516
|
+
|
|
517
|
+
Variants of `MenuItem` that allows single selection state based on the value that it represents. These `MenuItems` do not support submenus.
|
|
518
|
+
|
|
519
|
+
#### MenuItemRadio Props
|
|
520
|
+
|
|
521
|
+
```ts
|
|
522
|
+
export interface MenuItemRadioProps extends MenuItemProps {
|
|
523
|
+
/**
|
|
524
|
+
* Identifier for the control
|
|
525
|
+
*/
|
|
526
|
+
name: string;
|
|
387
527
|
}
|
|
388
528
|
```
|
|
389
529
|
|
|
390
|
-
####
|
|
530
|
+
#### MenuItemRadio Tokens
|
|
391
531
|
|
|
392
532
|
```ts
|
|
393
|
-
export interface
|
|
533
|
+
export interface MenuItemRadioTokens
|
|
534
|
+
extends Omit<MenuItemTokens, 'submenuIndicatorPadding' | 'submenuIndicatorSize' | 'disabled' | 'focused' | 'hovered' | 'pressed'> {
|
|
394
535
|
/**
|
|
395
536
|
* Color of the checkmark icon
|
|
396
537
|
*/
|
|
@@ -402,46 +543,120 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
402
543
|
checkmarkPadding?: number;
|
|
403
544
|
|
|
404
545
|
/**
|
|
405
|
-
*
|
|
546
|
+
* Visibility of the checkmark icon from 0 to 1
|
|
406
547
|
*/
|
|
407
|
-
|
|
548
|
+
checkmarkVisibility?: number;
|
|
408
549
|
|
|
409
550
|
/**
|
|
410
|
-
*
|
|
551
|
+
* Color of the icon
|
|
411
552
|
*/
|
|
412
|
-
|
|
553
|
+
iconColor?: ColorValue;
|
|
413
554
|
|
|
414
555
|
/**
|
|
415
|
-
*
|
|
556
|
+
* Size of the icon. Pixels for SVG and points for font icon.
|
|
416
557
|
*/
|
|
417
|
-
|
|
558
|
+
iconSize?: number;
|
|
418
559
|
|
|
419
560
|
/**
|
|
420
|
-
*
|
|
561
|
+
* Ripple color for Android.
|
|
562
|
+
*
|
|
563
|
+
* A ripple animation is shown on click for Android. This sets the color of the ripple.
|
|
564
|
+
* @platform android
|
|
421
565
|
*/
|
|
422
|
-
|
|
566
|
+
rippleColor?: ColorValue;
|
|
423
567
|
|
|
424
568
|
/**
|
|
425
|
-
*
|
|
569
|
+
* Color of the background of the box containing the radio.
|
|
570
|
+
* @platform android
|
|
426
571
|
*/
|
|
427
|
-
|
|
572
|
+
radioBackgroundColor?: ColorValue;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Color of the border of the box containing the radio.
|
|
576
|
+
* @platform android
|
|
577
|
+
*/
|
|
578
|
+
radioBorderColor?: ColorValue;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Border radius of the box containing the radio.
|
|
582
|
+
* @platform android
|
|
583
|
+
*/
|
|
584
|
+
radioBorderRadius?: number;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Height and width of the box containing the radio.
|
|
588
|
+
* @platform android
|
|
589
|
+
*/
|
|
590
|
+
radioSize?: number;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Indicator radio border color
|
|
594
|
+
* @platform android
|
|
595
|
+
*/
|
|
596
|
+
radioBorder?: ColorValue;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Indicator radio border style
|
|
600
|
+
* @platform android
|
|
601
|
+
*/
|
|
602
|
+
radioBorderStyle?: ViewStyle['borderStyle'];
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Inner circle color when selected
|
|
606
|
+
* @platform android
|
|
607
|
+
*/
|
|
608
|
+
radioFill?: ColorValue;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Visibility of the radio inner circle from 0 to 1
|
|
612
|
+
* @platform android
|
|
613
|
+
*/
|
|
614
|
+
radioVisibility?: number;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Diameter size of the outer indicator
|
|
618
|
+
* @platform android
|
|
619
|
+
*/
|
|
620
|
+
radioOuterCircleSize?: number;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Diameter size of the inner circle indicator
|
|
624
|
+
* @platform android
|
|
625
|
+
*/
|
|
626
|
+
radioInnerCircleSize?: number;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Border width of Radio
|
|
630
|
+
* @platform android
|
|
631
|
+
*/
|
|
632
|
+
radioBorderWidth?: number;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Ripple radius for circular radio on Android.
|
|
636
|
+
*
|
|
637
|
+
* A ripple animation is shown on click for Android. This sets the radius of the circular ripple shown on the radio button.
|
|
638
|
+
* @platform android
|
|
639
|
+
*/
|
|
640
|
+
rippleRadius?: number;
|
|
428
641
|
|
|
429
642
|
/**
|
|
430
643
|
* States of the item control
|
|
431
644
|
*/
|
|
432
|
-
checked?:
|
|
433
|
-
disabled?:
|
|
434
|
-
focused?:
|
|
435
|
-
hovered?:
|
|
436
|
-
pressed?:
|
|
645
|
+
checked?: MenuItemRadioTokens;
|
|
646
|
+
disabled?: MenuItemRadioTokens;
|
|
647
|
+
focused?: MenuItemRadioTokens;
|
|
648
|
+
hovered?: MenuItemRadioTokens;
|
|
649
|
+
pressed?: MenuItemRadioTokens;
|
|
437
650
|
}
|
|
438
651
|
```
|
|
439
652
|
|
|
440
|
-
####
|
|
653
|
+
#### MenuItemRadio Slots
|
|
441
654
|
|
|
442
655
|
- `root` - The outer container representing the `MenuItem` itself that wraps everything passed via the `children` prop.
|
|
443
656
|
- `content` - If specified, renders the `content` prop as text.
|
|
444
657
|
- `checkmark` - If specified, renders an SVG which indicates that the `MenuItem` is selected.
|
|
658
|
+
- `radioButton` - A pressable view that represents the outer circle of the indicator button and wraps the inner circle of the indicator button.
|
|
659
|
+
- `radioInnerCircle` - A wrapper view that represents the inner circle of the indicator button.
|
|
445
660
|
- `iconPlaceholder` - If specified, renders space for an icon before the content. Could be blank or contain an icon. Used when the `Menu` has `hasIcons`.
|
|
446
661
|
- `imgIcon` - If specified, renders an `Image` as an icon.
|
|
447
662
|
- `fontOrSvgIcon` - If specified, renders an `Icon` which supports font or SVG icons.
|
|
Binary file
|
|
Binary file
|
package/lib/Menu/Menu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,0EAef,CAAC;AAIH,eAAe,IAAI,CAAC"}
|
package/lib/Menu/Menu.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { stagedComponent } from '@fluentui-react-native/framework';
|
|
3
3
|
import { menuName } from './Menu.types';
|
|
4
|
+
import { renderFinalMenu } from './renderMenu';
|
|
4
5
|
import { useMenu } from './useMenu';
|
|
5
6
|
import { useMenuContextValue } from './useMenuContextValue';
|
|
6
|
-
import { MenuProvider } from '../context/menuContext';
|
|
7
7
|
export var Menu = stagedComponent(function (props) {
|
|
8
8
|
var state = useMenu(props);
|
|
9
9
|
var contextValue = useMenuContextValue(state);
|
|
@@ -15,11 +15,7 @@ export var Menu = stagedComponent(function (props) {
|
|
|
15
15
|
console.warn('Menu must contain two children');
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
var menuPopover = childrenArray[1];
|
|
20
|
-
return (React.createElement(MenuProvider, { value: contextValue },
|
|
21
|
-
menuTrigger,
|
|
22
|
-
state.open && state.shouldFocusOnContainer !== undefined && menuPopover));
|
|
18
|
+
return renderFinalMenu(childrenArray, contextValue, state);
|
|
23
19
|
};
|
|
24
20
|
});
|
|
25
21
|
Menu.displayName = menuName;
|
package/lib/Menu/Menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,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;QAE/E,IAAI,OAAO,EAAE;YACX,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC9B,sCAAsC;gBACtC,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;aAChD;SACF;QACD,OAAO,eAAe,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE5B,eAAe,IAAI,CAAC"}
|
package/lib/Menu/Menu.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
import type { View } from 'react-native';
|
|
3
|
+
import type { Animated, LayoutChangeEvent, View } from 'react-native';
|
|
4
4
|
import type { InteractionEvent } from '@fluentui-react-native/interactive-hooks';
|
|
5
5
|
import type { MenuListProps } from '../MenuList/MenuList.types';
|
|
6
6
|
export declare const menuName = "Menu";
|
|
@@ -11,6 +11,7 @@ export interface MenuProps extends MenuListProps {
|
|
|
11
11
|
defaultOpen?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* How much delay to have between hover in and showing the menu, in ms.
|
|
14
|
+
* @platform win32, macOS
|
|
14
15
|
*/
|
|
15
16
|
hoverDelay?: number;
|
|
16
17
|
/**
|
|
@@ -27,6 +28,10 @@ export interface MenuProps extends MenuListProps {
|
|
|
27
28
|
*/
|
|
28
29
|
persistOnItemClick?: boolean;
|
|
29
30
|
}
|
|
31
|
+
export type MenuSizeType = {
|
|
32
|
+
width: Animated.Value;
|
|
33
|
+
height: Animated.Value;
|
|
34
|
+
};
|
|
30
35
|
export interface MenuState extends MenuProps {
|
|
31
36
|
isControlled: boolean;
|
|
32
37
|
isSubmenu: boolean;
|
|
@@ -36,5 +41,20 @@ export interface MenuState extends MenuProps {
|
|
|
36
41
|
triggerRef: React.RefObject<View>;
|
|
37
42
|
hasMaxHeight?: boolean;
|
|
38
43
|
hasMaxWidth?: boolean;
|
|
44
|
+
setAnchorWidth?: (value: null | number | ((prevState: null | number) => null | number)) => void;
|
|
45
|
+
shadowMenuContainerStyle?: object;
|
|
46
|
+
_container?: React.MutableRefObject<View>;
|
|
47
|
+
onRequestClose?: (e: InteractionEvent) => void;
|
|
48
|
+
onMenuLayout?: (e: LayoutChangeEvent) => void;
|
|
49
|
+
menuHeight?: number;
|
|
50
|
+
maxMenuHeight?: number;
|
|
51
|
+
animationStarted?: boolean;
|
|
52
|
+
menuSize?: MenuSizeType;
|
|
53
|
+
testID?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare enum AndroidMenuStates {
|
|
56
|
+
Hidden = 0,
|
|
57
|
+
Animating = 1,
|
|
58
|
+
Shown = 2
|
|
39
59
|
}
|
|
40
60
|
//# sourceMappingURL=Menu.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEtE,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;;;OAGG;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;IAM9D,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC;IACtB,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC;CACxB,CAAC;AAEF,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;IACtB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,KAAK,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC;IAChG,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,UAAU,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC1C,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/C,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,iBAAiB;IAC3B,MAAM,IAAA;IACN,SAAS,IAAA;IACT,KAAK,IAAA;CACN"}
|
package/lib/Menu/Menu.types.js
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export var menuName = 'Menu';
|
|
2
|
+
export var AndroidMenuStates;
|
|
3
|
+
(function (AndroidMenuStates) {
|
|
4
|
+
AndroidMenuStates[AndroidMenuStates["Hidden"] = 0] = "Hidden";
|
|
5
|
+
AndroidMenuStates[AndroidMenuStates["Animating"] = 1] = "Animating";
|
|
6
|
+
AndroidMenuStates[AndroidMenuStates["Shown"] = 2] = "Shown";
|
|
7
|
+
})(AndroidMenuStates || (AndroidMenuStates = {}));
|
|
2
8
|
//# sourceMappingURL=Menu.types.js.map
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"version":3,"file":"Menu.types.js","sourceRoot":"","sources":["../../src/Menu/Menu.types.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,IAAM,QAAQ,GAAG,MAAM,CAAC;AA8D/B,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,6DAAM,CAAA;IACN,mEAAS,CAAA;IACT,2DAAK,CAAA;AACP,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MenuState } from './Menu.types';
|
|
3
|
+
import type { MenuContextValue } from '../context';
|
|
4
|
+
export declare const renderFinalMenu: (childrenArray: React.ReactElement[], contextValue: MenuContextValue, state: MenuState) => JSX.Element;
|
|
5
|
+
//# sourceMappingURL=renderMenu.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderMenu.android.d.ts","sourceRoot":"","sources":["../../src/Menu/renderMenu.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,eAAO,MAAM,eAAe,kBAAmB,MAAM,YAAY,EAAE,gBAAgB,gBAAgB,SAAS,SAAS,gBAkBpH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { MenuProvider } from '../context';
|
|
4
|
+
export var renderFinalMenu = function (childrenArray, contextValue, state) {
|
|
5
|
+
var menuTrigger = childrenArray[0];
|
|
6
|
+
var menuPopover = childrenArray[1];
|
|
7
|
+
return (React.createElement(MenuProvider, { value: contextValue },
|
|
8
|
+
React.createElement(View, { onLayout: function (event) {
|
|
9
|
+
var width = event.nativeEvent.layout.width;
|
|
10
|
+
state.setAnchorWidth(width);
|
|
11
|
+
} }, menuTrigger),
|
|
12
|
+
React.createElement(View, { ref: state._container, collapsable: false, testID: state.testID }, state.open && menuPopover)));
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=renderMenu.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderMenu.android.js","sourceRoot":"","sources":["../../src/Menu/renderMenu.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIpC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,IAAM,eAAe,GAAG,UAAC,aAAmC,EAAE,YAA8B,EAAE,KAAgB;IACnH,IAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;IACrC,IAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;IACrC,OAAO,CACL,oBAAC,YAAY,IAAC,KAAK,EAAE,YAAY;QAC/B,oBAAC,IAAI,IACH,QAAQ,EAAE,UAAC,KAAK;gBACN,IAAA,KAAK,GAAK,KAAK,CAAC,WAAW,CAAC,MAAM,MAA7B,CAA8B;gBAC3C,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC9B,CAAC,IAEA,WAAW,CACP;QACP,oBAAC,IAAI,IAAC,GAAG,EAAE,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAClE,KAAK,CAAC,IAAI,IAAI,WAAW,CACrB,CACM,CAChB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MenuState } from './Menu.types';
|
|
3
|
+
import type { MenuContextValue } from '../context';
|
|
4
|
+
export declare const renderFinalMenu: (childrenArray: React.ReactElement[], contextValue: MenuContextValue, state: MenuState) => JSX.Element;
|
|
5
|
+
//# sourceMappingURL=renderMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderMenu.d.ts","sourceRoot":"","sources":["../../src/Menu/renderMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,eAAO,MAAM,eAAe,kBAAmB,MAAM,YAAY,EAAE,gBAAgB,gBAAgB,SAAS,SAAS,gBAWpH,CAAC"}
|