@fluentui-react-native/menu 1.4.28 → 1.4.30
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 +79 -1
- package/CHANGELOG.md +26 -2
- package/SPEC.md +46 -0
- package/lib/Menu/Menu.d.ts +4 -0
- package/lib/Menu/Menu.d.ts.map +1 -0
- package/lib/Menu/Menu.js +35 -0
- package/lib/Menu/Menu.js.map +1 -0
- package/lib/Menu/Menu.types.d.ts +40 -0
- package/lib/Menu/Menu.types.d.ts.map +1 -0
- package/lib/Menu/Menu.types.js +2 -0
- package/lib/Menu/Menu.types.js.map +1 -0
- package/lib/Menu/index.d.ts +6 -0
- package/lib/Menu/index.d.ts.map +1 -0
- package/lib/Menu/index.js +5 -0
- package/lib/Menu/index.js.map +1 -0
- package/lib/Menu/useMenu.d.ts +3 -0
- package/lib/Menu/useMenu.d.ts.map +1 -0
- package/lib/Menu/useMenu.js +76 -0
- package/lib/Menu/useMenu.js.map +1 -0
- package/lib/Menu/useMenuContextValue.d.ts +4 -0
- package/lib/Menu/useMenuContextValue.d.ts.map +1 -0
- package/lib/Menu/useMenuContextValue.js +8 -0
- package/lib/Menu/useMenuContextValue.js.map +1 -0
- package/lib/MenuDivider/MenuDivider.d.ts +2 -0
- package/lib/MenuDivider/MenuDivider.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDivider.js +15 -0
- package/lib/MenuDivider/MenuDivider.js.map +1 -0
- package/lib/MenuDivider/MenuDivider.styling.d.ts +4 -0
- package/lib/MenuDivider/MenuDivider.styling.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDivider.styling.js +19 -0
- package/lib/MenuDivider/MenuDivider.styling.js.map +1 -0
- package/lib/MenuDivider/MenuDivider.types.d.ts +21 -0
- package/lib/MenuDivider/MenuDivider.types.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDivider.types.js +2 -0
- package/lib/MenuDivider/MenuDivider.types.js.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.d.ts +5 -0
- package/lib/MenuDivider/MenuDividerTokens.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.js +7 -0
- package/lib/MenuDivider/MenuDividerTokens.js.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.macos.d.ts +5 -0
- package/lib/MenuDivider/MenuDividerTokens.macos.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.macos.js +7 -0
- package/lib/MenuDivider/MenuDividerTokens.macos.js.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.win32.d.ts +5 -0
- package/lib/MenuDivider/MenuDividerTokens.win32.d.ts.map +1 -0
- package/lib/MenuDivider/MenuDividerTokens.win32.js +7 -0
- package/lib/MenuDivider/MenuDividerTokens.win32.js.map +1 -0
- package/lib/MenuDivider/index.d.ts +4 -0
- package/lib/MenuDivider/index.d.ts.map +1 -0
- package/lib/MenuDivider/index.js +3 -0
- package/lib/MenuDivider/index.js.map +1 -0
- package/lib/MenuItem/MenuItem.d.ts +7 -0
- package/lib/MenuItem/MenuItem.d.ts.map +1 -0
- package/lib/MenuItem/MenuItem.js +58 -0
- package/lib/MenuItem/MenuItem.js.map +1 -0
- package/lib/MenuItem/MenuItem.styling.d.ts +5 -0
- package/lib/MenuItem/MenuItem.styling.d.ts.map +1 -0
- package/lib/MenuItem/MenuItem.styling.js +50 -0
- package/lib/MenuItem/MenuItem.styling.js.map +1 -0
- package/lib/MenuItem/MenuItem.types.d.ts +98 -0
- package/lib/MenuItem/MenuItem.types.d.ts.map +1 -0
- package/lib/MenuItem/MenuItem.types.js +2 -0
- package/lib/MenuItem/MenuItem.types.js.map +1 -0
- package/lib/MenuItem/MenuItemTokens.d.ts +5 -0
- package/lib/MenuItem/MenuItemTokens.d.ts.map +1 -0
- package/lib/MenuItem/MenuItemTokens.js +39 -0
- package/lib/MenuItem/MenuItemTokens.js.map +1 -0
- package/lib/MenuItem/MenuItemTokens.macos.d.ts +5 -0
- package/lib/MenuItem/MenuItemTokens.macos.d.ts.map +1 -0
- package/lib/MenuItem/MenuItemTokens.macos.js +34 -0
- package/lib/MenuItem/MenuItemTokens.macos.js.map +1 -0
- package/lib/MenuItem/MenuItemTokens.win32.d.ts +5 -0
- package/lib/MenuItem/MenuItemTokens.win32.d.ts.map +1 -0
- package/lib/MenuItem/MenuItemTokens.win32.js +40 -0
- package/lib/MenuItem/MenuItemTokens.win32.js.map +1 -0
- package/lib/MenuItem/index.d.ts +5 -0
- package/lib/MenuItem/index.d.ts.map +1 -0
- package/lib/MenuItem/index.js +4 -0
- package/lib/MenuItem/index.js.map +1 -0
- package/lib/MenuItem/useMenuItem.d.ts +7 -0
- package/lib/MenuItem/useMenuItem.d.ts.map +1 -0
- package/lib/MenuItem/useMenuItem.js +74 -0
- package/lib/MenuItem/useMenuItem.js.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.d.ts +7 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.js +37 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.d.ts +5 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.js +40 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.styling.js.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +66 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.types.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.types.js +2 -0
- package/lib/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.d.ts +5 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.js +51 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.js.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.macos.d.ts +5 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.macos.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.macos.js +49 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.macos.js.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.win32.d.ts +5 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.win32.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.win32.js +52 -0
- package/lib/MenuItemCheckbox/MenuItemCheckboxTokens.win32.js.map +1 -0
- package/lib/MenuItemCheckbox/index.d.ts +5 -0
- package/lib/MenuItemCheckbox/index.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/index.js +4 -0
- package/lib/MenuItemCheckbox/index.js.map +1 -0
- package/lib/MenuItemCheckbox/useMenuItemCheckbox.d.ts +13 -0
- package/lib/MenuItemCheckbox/useMenuItemCheckbox.d.ts.map +1 -0
- package/lib/MenuItemCheckbox/useMenuItemCheckbox.js +85 -0
- package/lib/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadio.d.ts +4 -0
- package/lib/MenuItemRadio/MenuItemRadio.d.ts.map +1 -0
- package/lib/MenuItemRadio/MenuItemRadio.js +12 -0
- package/lib/MenuItemRadio/MenuItemRadio.js.map +1 -0
- package/lib/MenuItemRadio/index.d.ts +3 -0
- package/lib/MenuItemRadio/index.d.ts.map +1 -0
- package/lib/MenuItemRadio/index.js +3 -0
- package/lib/MenuItemRadio/index.js.map +1 -0
- package/lib/MenuItemRadio/useMenuItemRadio.d.ts +3 -0
- package/lib/MenuItemRadio/useMenuItemRadio.d.ts.map +1 -0
- package/lib/MenuItemRadio/useMenuItemRadio.js +30 -0
- package/lib/MenuItemRadio/useMenuItemRadio.js.map +1 -0
- package/lib/MenuList/MenuList.d.ts +4 -0
- package/lib/MenuList/MenuList.d.ts.map +1 -0
- package/lib/MenuList/MenuList.js +68 -0
- package/lib/MenuList/MenuList.js.map +1 -0
- package/lib/MenuList/MenuList.styling.d.ts +5 -0
- package/lib/MenuList/MenuList.styling.d.ts.map +1 -0
- package/lib/MenuList/MenuList.styling.js +17 -0
- package/lib/MenuList/MenuList.styling.js.map +1 -0
- package/lib/MenuList/MenuList.types.d.ts +77 -0
- package/lib/MenuList/MenuList.types.d.ts.map +1 -0
- package/lib/MenuList/MenuList.types.js +2 -0
- package/lib/MenuList/MenuList.types.js.map +1 -0
- package/lib/MenuList/MenuListTokens.d.ts +5 -0
- package/lib/MenuList/MenuListTokens.d.ts.map +1 -0
- package/lib/MenuList/MenuListTokens.js +9 -0
- package/lib/MenuList/MenuListTokens.js.map +1 -0
- package/lib/MenuList/MenuListTokens.macos.d.ts +5 -0
- package/lib/MenuList/MenuListTokens.macos.d.ts.map +1 -0
- package/lib/MenuList/MenuListTokens.macos.js +7 -0
- package/lib/MenuList/MenuListTokens.macos.js.map +1 -0
- package/lib/MenuList/MenuListTokens.win32.d.ts +5 -0
- package/lib/MenuList/MenuListTokens.win32.d.ts.map +1 -0
- package/lib/MenuList/MenuListTokens.win32.js +12 -0
- package/lib/MenuList/MenuListTokens.win32.js.map +1 -0
- package/lib/MenuList/index.d.ts +6 -0
- package/lib/MenuList/index.d.ts.map +1 -0
- package/lib/MenuList/index.js +5 -0
- package/lib/MenuList/index.js.map +1 -0
- package/lib/MenuList/useMenuList.d.ts +3 -0
- package/lib/MenuList/useMenuList.d.ts.map +1 -0
- package/lib/MenuList/useMenuList.js +109 -0
- package/lib/MenuList/useMenuList.js.map +1 -0
- package/lib/MenuList/useMenuListContextValue.d.ts +4 -0
- package/lib/MenuList/useMenuListContextValue.d.ts.map +1 -0
- package/lib/MenuList/useMenuListContextValue.js +5 -0
- package/lib/MenuList/useMenuListContextValue.js.map +1 -0
- package/lib/MenuPopover/MenuPopover.d.ts +4 -0
- package/lib/MenuPopover/MenuPopover.d.ts.map +1 -0
- package/lib/MenuPopover/MenuPopover.js +44 -0
- package/lib/MenuPopover/MenuPopover.js.map +1 -0
- package/lib/MenuPopover/MenuPopover.types.d.ts +10 -0
- package/lib/MenuPopover/MenuPopover.types.d.ts.map +1 -0
- package/lib/MenuPopover/MenuPopover.types.js +2 -0
- package/lib/MenuPopover/MenuPopover.types.js.map +1 -0
- package/lib/MenuPopover/MenuPopoverTokens.d.ts +3 -0
- package/lib/MenuPopover/MenuPopoverTokens.d.ts.map +1 -0
- package/lib/MenuPopover/MenuPopoverTokens.js +4 -0
- package/lib/MenuPopover/MenuPopoverTokens.js.map +1 -0
- package/lib/MenuPopover/index.d.ts +5 -0
- package/lib/MenuPopover/index.d.ts.map +1 -0
- package/lib/MenuPopover/index.js +4 -0
- package/lib/MenuPopover/index.js.map +1 -0
- package/lib/MenuPopover/useMenuPopover.d.ts +3 -0
- package/lib/MenuPopover/useMenuPopover.d.ts.map +1 -0
- package/lib/MenuPopover/useMenuPopover.js +92 -0
- package/lib/MenuPopover/useMenuPopover.js.map +1 -0
- package/lib/MenuTrigger/MenuTrigger.d.ts +5 -0
- package/lib/MenuTrigger/MenuTrigger.d.ts.map +1 -0
- package/lib/MenuTrigger/MenuTrigger.js +20 -0
- package/lib/MenuTrigger/MenuTrigger.js.map +1 -0
- package/lib/MenuTrigger/MenuTrigger.types.d.ts +28 -0
- package/lib/MenuTrigger/MenuTrigger.types.d.ts.map +1 -0
- package/lib/MenuTrigger/MenuTrigger.types.js +2 -0
- package/lib/MenuTrigger/MenuTrigger.types.js.map +1 -0
- package/lib/MenuTrigger/index.d.ts +5 -0
- package/lib/MenuTrigger/index.d.ts.map +1 -0
- package/lib/MenuTrigger/index.js +4 -0
- package/lib/MenuTrigger/index.js.map +1 -0
- package/lib/MenuTrigger/useMenuTrigger.d.ts +3 -0
- package/lib/MenuTrigger/useMenuTrigger.d.ts.map +1 -0
- package/lib/MenuTrigger/useMenuTrigger.js +79 -0
- package/lib/MenuTrigger/useMenuTrigger.js.map +1 -0
- package/lib/MenuTrigger/useMergeRefs.d.ts +20 -0
- package/lib/MenuTrigger/useMergeRefs.d.ts.map +1 -0
- package/lib/MenuTrigger/useMergeRefs.js +36 -0
- package/lib/MenuTrigger/useMergeRefs.js.map +1 -0
- package/lib/__tests__/Menu.test.d.ts +2 -0
- package/lib/__tests__/Menu.test.d.ts.map +1 -0
- package/lib/__tests__/Menu.test.js +145 -0
- package/lib/__tests__/Menu.test.js.map +1 -0
- package/lib/consts.d.ts +2 -0
- package/lib/consts.d.ts.map +1 -0
- package/lib/consts.js +6 -0
- package/lib/consts.js.map +1 -0
- package/lib/context/index.d.ts +4 -0
- package/lib/context/index.d.ts.map +1 -0
- package/lib/context/index.js +4 -0
- package/lib/context/index.js.map +1 -0
- package/lib/context/menuContext.d.ts +16 -0
- package/lib/context/menuContext.d.ts.map +1 -0
- package/lib/context/menuContext.js +20 -0
- package/lib/context/menuContext.js.map +1 -0
- package/lib/context/menuListContext.d.ts +14 -0
- package/lib/context/menuListContext.d.ts.map +1 -0
- package/lib/context/menuListContext.js +15 -0
- package/lib/context/menuListContext.js.map +1 -0
- package/lib/context/menuTriggerContext.d.ts +9 -0
- package/lib/context/menuTriggerContext.d.ts.map +1 -0
- package/lib/context/menuTriggerContext.js +9 -0
- package/lib/context/menuTriggerContext.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/MenuItem/MenuItem.types.d.ts +12 -0
- package/lib-commonjs/MenuItem/MenuItem.types.d.ts.map +1 -1
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +6 -0
- package/lib-commonjs/MenuItemCheckbox/MenuItemCheckbox.types.d.ts.map +1 -1
- package/lib-commonjs/MenuList/MenuList.types.d.ts +3 -0
- package/lib-commonjs/MenuList/MenuList.types.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/MenuItem/MenuItem.types.ts +14 -0
- package/src/MenuItemCheckbox/MenuItemCheckbox.types.ts +8 -0
- package/src/MenuList/MenuList.types.ts +4 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,85 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/menu",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 23 Mar 2023 06:04:49 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/menu_v1.4.30",
|
|
7
|
+
"version": "1.4.30",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "ruaraki@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/menu",
|
|
13
|
+
"commit": "6821628b9c22887c01da2224c8c76558158a8939",
|
|
14
|
+
"comment": "Update Menu documentation"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Tue, 21 Mar 2023 21:53:47 GMT",
|
|
21
|
+
"tag": "@fluentui-react-native/menu_v1.4.29",
|
|
22
|
+
"version": "1.4.29",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "krsiler@microsoft.com",
|
|
27
|
+
"package": "@fluentui-react-native/menu",
|
|
28
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6",
|
|
29
|
+
"comment": "Trigger manual bump (no changes)"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@fluentui-react-native/menu",
|
|
34
|
+
"comment": "Bump @fluentui-react-native/callout to v0.23.10",
|
|
35
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@fluentui-react-native/menu",
|
|
40
|
+
"comment": "Bump @fluentui-react-native/focus-zone to v0.11.39",
|
|
41
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@fluentui-react-native/menu",
|
|
46
|
+
"comment": "Bump @fluentui-react-native/framework to v0.9.8",
|
|
47
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui-react-native/menu",
|
|
52
|
+
"comment": "Bump @fluentui-react-native/icon to v0.17.23",
|
|
53
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@fluentui-react-native/menu",
|
|
58
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.27",
|
|
59
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui-react-native/menu",
|
|
64
|
+
"comment": "Bump @fluentui-react-native/text to v0.19.29",
|
|
65
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "beachball",
|
|
69
|
+
"package": "@fluentui-react-native/menu",
|
|
70
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.20.14",
|
|
71
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@fluentui-react-native/menu",
|
|
76
|
+
"comment": "Bump @fluentui-react-native/button to v0.32.47",
|
|
77
|
+
"commit": "e706a7afbd63d528878eadd179d5a91210ed62f6"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"date": "Sat, 18 Mar 2023 17:22:31 GMT",
|
|
6
84
|
"tag": "@fluentui-react-native/menu_v1.4.28",
|
|
7
85
|
"version": "1.4.28",
|
|
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
|
|
3
|
+
This log was last generated on Thu, 23 Mar 2023 06:04:49 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.4.30
|
|
8
|
+
|
|
9
|
+
Thu, 23 Mar 2023 06:04:49 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Update Menu documentation (ruaraki@microsoft.com)
|
|
14
|
+
|
|
15
|
+
## 1.4.29
|
|
16
|
+
|
|
17
|
+
Tue, 21 Mar 2023 21:53:47 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Trigger manual bump (no changes) (krsiler@microsoft.com)
|
|
22
|
+
- Bump @fluentui-react-native/callout to v0.23.10
|
|
23
|
+
- Bump @fluentui-react-native/focus-zone to v0.11.39
|
|
24
|
+
- Bump @fluentui-react-native/framework to v0.9.8
|
|
25
|
+
- Bump @fluentui-react-native/icon to v0.17.23
|
|
26
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.22.27
|
|
27
|
+
- Bump @fluentui-react-native/text to v0.19.29
|
|
28
|
+
- Bump @fluentui-react-native/tokens to v0.20.14
|
|
29
|
+
- Bump @fluentui-react-native/button to v0.32.47
|
|
30
|
+
|
|
7
31
|
## 1.4.28
|
|
8
32
|
|
|
9
|
-
Sat, 18 Mar 2023 17:
|
|
33
|
+
Sat, 18 Mar 2023 17:22:31 GMT
|
|
10
34
|
|
|
11
35
|
### Patches
|
|
12
36
|
|
package/SPEC.md
CHANGED
|
@@ -218,6 +218,11 @@ export type MenuListProps = {
|
|
|
218
218
|
*/
|
|
219
219
|
defaultChecked?: string[];
|
|
220
220
|
|
|
221
|
+
/**
|
|
222
|
+
* States that menu items can contain icons and reserves space for item alignment
|
|
223
|
+
*/
|
|
224
|
+
hasIcons?: boolean;
|
|
225
|
+
|
|
221
226
|
/**
|
|
222
227
|
* States that menu items can contain selectable items and reserves space for item alignment
|
|
223
228
|
*/
|
|
@@ -249,6 +254,11 @@ export interface MenuListTokens extends LayoutTokens, IBackgroundColorTokens {
|
|
|
249
254
|
* Space between items in pixels
|
|
250
255
|
*/
|
|
251
256
|
gap?: number;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* States of the list control
|
|
260
|
+
*/
|
|
261
|
+
hasMaxHeight?: MenuListTokens;
|
|
252
262
|
}
|
|
253
263
|
```
|
|
254
264
|
|
|
@@ -271,6 +281,11 @@ export interface MenuItemProps extends Omit<PressablePropsExtended, 'onPress'> {
|
|
|
271
281
|
*/
|
|
272
282
|
componentRef?: React.RefObject<IFocusable>;
|
|
273
283
|
|
|
284
|
+
/*
|
|
285
|
+
* Source URL or name of the icon to show on the Button.
|
|
286
|
+
*/
|
|
287
|
+
icon?: IconProps | ImageProps;
|
|
288
|
+
|
|
274
289
|
/**
|
|
275
290
|
* A callback to call on button click event
|
|
276
291
|
*/
|
|
@@ -297,6 +312,16 @@ export interface MenuItemTokens extends LayoutTokens, FontTokens, IBorderTokens,
|
|
|
297
312
|
*/
|
|
298
313
|
gap?: number;
|
|
299
314
|
|
|
315
|
+
/**
|
|
316
|
+
* Color of the icon
|
|
317
|
+
*/
|
|
318
|
+
iconColor?: ColorValue;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Size of the icon. Pixels for SVG and points for font icon.
|
|
322
|
+
*/
|
|
323
|
+
iconSize?: number;
|
|
324
|
+
|
|
300
325
|
/**
|
|
301
326
|
* Color of the indicator that shows that an item has a submenu
|
|
302
327
|
*/
|
|
@@ -327,6 +352,9 @@ export interface MenuItemTokens extends LayoutTokens, FontTokens, IBorderTokens,
|
|
|
327
352
|
- `root` - The outer container representing the `MenuItem` itself that wraps everything passed via the `children` prop.
|
|
328
353
|
- `content` - If specified, renders the `content` prop as text.
|
|
329
354
|
- `checkmark` - If specified, renders space such that the `content` aligns with other items which have checkmarks. Only used when the `Menu` has `hasCheckmarks`.
|
|
355
|
+
- `iconPlaceholder` - If specified, renders space for an icon before the content. Could be blank or contain an icon. Used when the `Menu` has `hasIcons`.
|
|
356
|
+
- `imgIcon` - If specified, renders an `Image` as an icon.
|
|
357
|
+
- `fontOrSvgIcon` - If specified, renders an `Icon` which supports font or SVG icons.
|
|
330
358
|
- `submenuIndicator` - If specified, renders an SVG which indicates that the `MenuItem` is a trigger for a nested `Menu`.
|
|
331
359
|
|
|
332
360
|
### MenuItemCheckbox/Radio
|
|
@@ -342,6 +370,11 @@ export interface MenuItemCheckboxProps extends Omit<IWithPressableOptions<ViewPr
|
|
|
342
370
|
*/
|
|
343
371
|
componentRef?: React.RefObject<IFocusable>;
|
|
344
372
|
|
|
373
|
+
/*
|
|
374
|
+
* Source URL or name of the icon to show on the Button.
|
|
375
|
+
*/
|
|
376
|
+
icon?: IconProps | ImageProps;
|
|
377
|
+
|
|
345
378
|
/**
|
|
346
379
|
* Identifier for the control
|
|
347
380
|
*/
|
|
@@ -383,6 +416,16 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
383
416
|
*/
|
|
384
417
|
gap?: number;
|
|
385
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Color of the icon
|
|
421
|
+
*/
|
|
422
|
+
iconColor?: ColorValue;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Size of the icon. Pixels for SVG and points for font icon.
|
|
426
|
+
*/
|
|
427
|
+
iconSize?: number;
|
|
428
|
+
|
|
386
429
|
/**
|
|
387
430
|
* States of the item control
|
|
388
431
|
*/
|
|
@@ -399,6 +442,9 @@ export interface MenuItemCheckboxTokens extends LayoutTokens, FontTokens, IBorde
|
|
|
399
442
|
- `root` - The outer container representing the `MenuItem` itself that wraps everything passed via the `children` prop.
|
|
400
443
|
- `content` - If specified, renders the `content` prop as text.
|
|
401
444
|
- `checkmark` - If specified, renders an SVG which indicates that the `MenuItem` is selected.
|
|
445
|
+
- `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
|
+
- `imgIcon` - If specified, renders an `Image` as an icon.
|
|
447
|
+
- `fontOrSvgIcon` - If specified, renders an `Icon` which supports font or SVG icons.
|
|
402
448
|
|
|
403
449
|
## Behaviors
|
|
404
450
|
|
|
@@ -0,0 +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,0EA2Cf,CAAC;AAGH,eAAe,IAAI,CAAC"}
|
package/lib/Menu/Menu.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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
|
|
@@ -0,0 +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,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,K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@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.types.d.ts","sourceRoot":"","sources":["../../src/Menu/Menu.types.ts"],"names":[],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G,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMenu.js","sourceRoot":"","sources":["../../src/Menu/useMenu.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,0DAA0D;AAC1D,sDAAsD;AACtD,wDAAwD;AACxD,iBAAiB;AACjB,IAAM,SAAS,GAAG,GAAG,CAAC;AACtB,IAAI,kBAAkB,GAAG,CAAC,CAAC,CAAC;AAE5B,MAAM,CAAC,IAAM,OAAO,GAAG,UAAC,KAAgB;IACtC,IAAM,UAAU,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;IAClC,IAAM,OAAO,GAAG,cAAc,EAAE,CAAC;IACjC,IAAM,SAAS,GAAG,OAAO,CAAC,UAAU,KAAK,IAAI,CAAC;IAC9C,IAAM,gBAAgB,GAAG,OAAO,KAAK,CAAC,IAAI,KAAK,WAAW,CAAC;IACrD,IAAA,KAA0C,gBAAgB,CAAC,gBAAgB,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,EAAnG,IAAI,QAAA,EAAE,sBAAsB,QAAA,EAAE,OAAO,QAA8D,CAAC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AAY,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;IACpD,IAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;IAEvD,IAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CACvC,UAAC,CAAmB,EAAE,OAAiB;QACrC,IAAI,CAAC,YAAY,EAAE;YACjB,kBAAkB,CAAC,OAAO,CAAC,CAAC;SAC7B;QAED,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC,EACD,CAAC,YAAY,EAAE,kBAAkB,EAAE,uBAAuB,CAAC,CAC5D,CAAC;IAEF,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;AAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.d.ts","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,mOAatB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.types.js","sourceRoot":"","sources":["../../src/MenuDivider/MenuDivider.types.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,IAAM,eAAe,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|