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