@fluentui-react-native/tester 0.61.4 → 0.61.7
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 +202 -1
- package/CHANGELOG.md +52 -2
- package/lib/FluentTester/TestComponents/Menu/MenuTest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Menu/MenuTest.js +13 -10
- package/lib/FluentTester/TestComponents/Menu/MenuTest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Menu/MenuTest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Menu/MenuTest.js +12 -9
- package/lib-commonjs/FluentTester/TestComponents/Menu/MenuTest.js.map +1 -1
- package/package.json +26 -26
- package/src/FluentTester/TestComponents/Menu/MenuTest.tsx +13 -10
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,208 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 21 May 2022 01:46:24 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.61.7",
|
|
7
|
+
"version": "0.61.7",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/android-theme to v0.8.0",
|
|
14
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/apple-theme to v0.12.0",
|
|
20
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/tester",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/badge to v0.0.35",
|
|
26
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/tester",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/button to v0.22.22",
|
|
32
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/tester",
|
|
37
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.11.0",
|
|
38
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui-react-native/tester",
|
|
43
|
+
"comment": "Bump @fluentui-react-native/experimental-activity-indicator to v0.5.26",
|
|
44
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui-react-native/tester",
|
|
49
|
+
"comment": "Bump @fluentui-react-native/experimental-avatar to v0.14.29",
|
|
50
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@fluentui-react-native/tester",
|
|
55
|
+
"comment": "Bump @fluentui-react-native/experimental-button to v0.15.23",
|
|
56
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@fluentui-react-native/tester",
|
|
61
|
+
"comment": "Bump @fluentui-react-native/experimental-checkbox to v0.11.5",
|
|
62
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@fluentui-react-native/tester",
|
|
67
|
+
"comment": "Bump @fluentui-react-native/experimental-drawer to v0.1.10",
|
|
68
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@fluentui-react-native/tester",
|
|
73
|
+
"comment": "Bump @fluentui-react-native/experimental-expander to v0.3.28",
|
|
74
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"author": "beachball",
|
|
78
|
+
"package": "@fluentui-react-native/tester",
|
|
79
|
+
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.3.40",
|
|
80
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "beachball",
|
|
84
|
+
"package": "@fluentui-react-native/tester",
|
|
85
|
+
"comment": "Bump @fluentui-react-native/experimental-shimmer to v0.6.30",
|
|
86
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "beachball",
|
|
90
|
+
"package": "@fluentui-react-native/tester",
|
|
91
|
+
"comment": "Bump @fluentui-react-native/experimental-tabs to v0.4.45",
|
|
92
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"author": "beachball",
|
|
96
|
+
"package": "@fluentui-react-native/tester",
|
|
97
|
+
"comment": "Bump @fluentui-react-native/experimental-text to v0.7.27",
|
|
98
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"author": "beachball",
|
|
102
|
+
"package": "@fluentui-react-native/tester",
|
|
103
|
+
"comment": "Bump @fluentui-react-native/framework to v0.7.27",
|
|
104
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"author": "beachball",
|
|
108
|
+
"package": "@fluentui-react-native/tester",
|
|
109
|
+
"comment": "Bump @fluentui-react-native/icon to v0.11.22",
|
|
110
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"author": "beachball",
|
|
114
|
+
"package": "@fluentui-react-native/tester",
|
|
115
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.15.7",
|
|
116
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"author": "beachball",
|
|
120
|
+
"package": "@fluentui-react-native/tester",
|
|
121
|
+
"comment": "Bump @fluentui-react-native/menu to v0.9.1",
|
|
122
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"author": "beachball",
|
|
126
|
+
"package": "@fluentui-react-native/tester",
|
|
127
|
+
"comment": "Bump @fluentui-react-native/stack to v0.6.27",
|
|
128
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"author": "beachball",
|
|
132
|
+
"package": "@fluentui-react-native/tester",
|
|
133
|
+
"comment": "Bump @fluentui-react-native/theme to v0.6.9",
|
|
134
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"author": "beachball",
|
|
138
|
+
"package": "@fluentui-react-native/tester",
|
|
139
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.15.0",
|
|
140
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"author": "beachball",
|
|
144
|
+
"package": "@fluentui-react-native/tester",
|
|
145
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.11.0",
|
|
146
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"author": "beachball",
|
|
150
|
+
"package": "@fluentui-react-native/tester",
|
|
151
|
+
"comment": "Bump @fluentui-react-native/win32-theme to v0.17.0",
|
|
152
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"author": "beachball",
|
|
156
|
+
"package": "@fluentui-react-native/tester",
|
|
157
|
+
"comment": "Bump @fluentui/react-native to v0.29.8",
|
|
158
|
+
"commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"date": "Fri, 20 May 2022 19:53:48 GMT",
|
|
165
|
+
"tag": "@fluentui-react-native/tester_v0.61.6",
|
|
166
|
+
"version": "0.61.6",
|
|
167
|
+
"comments": {
|
|
168
|
+
"patch": [
|
|
169
|
+
{
|
|
170
|
+
"author": "ruaraki@microsoft.com",
|
|
171
|
+
"package": "@fluentui-react-native/tester",
|
|
172
|
+
"commit": "1b2eb8874e0571a19cdbab4ba78e3b112d025817",
|
|
173
|
+
"comment": "Implement MenuDivider"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"author": "beachball",
|
|
177
|
+
"package": "@fluentui-react-native/tester",
|
|
178
|
+
"comment": "Bump @fluentui-react-native/menu to v0.9.0",
|
|
179
|
+
"commit": "3fdd5fccdcd5e76c90bac7ad2fa436917b1c84e0"
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"date": "Fri, 20 May 2022 18:23:41 GMT",
|
|
186
|
+
"tag": "@fluentui-react-native/tester_v0.61.5",
|
|
187
|
+
"version": "0.61.5",
|
|
188
|
+
"comments": {
|
|
189
|
+
"patch": [
|
|
190
|
+
{
|
|
191
|
+
"author": "ruaraki@microsoft.com",
|
|
192
|
+
"package": "@fluentui-react-native/tester",
|
|
193
|
+
"commit": "e121f1b23ba443ebacff6d74cae04f48eff8e329",
|
|
194
|
+
"comment": "Fix bug, add test"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"author": "beachball",
|
|
198
|
+
"package": "@fluentui-react-native/tester",
|
|
199
|
+
"comment": "Bump @fluentui-react-native/menu to v0.8.0",
|
|
200
|
+
"commit": "01b048b57cf1f9b122fc4305484f4ef98cbb978c"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"date": "Thu, 19 May 2022 20:09:25 GMT",
|
|
6
207
|
"tag": "@fluentui-react-native/tester_v0.61.4",
|
|
7
208
|
"version": "0.61.4",
|
|
8
209
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,62 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tester
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 21 May 2022 01:46:24 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.61.7
|
|
8
|
+
|
|
9
|
+
Sat, 21 May 2022 01:46:24 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/android-theme to v0.8.0
|
|
14
|
+
- Bump @fluentui-react-native/apple-theme to v0.12.0
|
|
15
|
+
- Bump @fluentui-react-native/badge to v0.0.35
|
|
16
|
+
- Bump @fluentui-react-native/button to v0.22.22
|
|
17
|
+
- Bump @fluentui-react-native/default-theme to v0.11.0
|
|
18
|
+
- Bump @fluentui-react-native/experimental-activity-indicator to v0.5.26
|
|
19
|
+
- Bump @fluentui-react-native/experimental-avatar to v0.14.29
|
|
20
|
+
- Bump @fluentui-react-native/experimental-button to v0.15.23
|
|
21
|
+
- Bump @fluentui-react-native/experimental-checkbox to v0.11.5
|
|
22
|
+
- Bump @fluentui-react-native/experimental-drawer to v0.1.10
|
|
23
|
+
- Bump @fluentui-react-native/experimental-expander to v0.3.28
|
|
24
|
+
- Bump @fluentui-react-native/experimental-menu-button to v0.3.40
|
|
25
|
+
- Bump @fluentui-react-native/experimental-shimmer to v0.6.30
|
|
26
|
+
- Bump @fluentui-react-native/experimental-tabs to v0.4.45
|
|
27
|
+
- Bump @fluentui-react-native/experimental-text to v0.7.27
|
|
28
|
+
- Bump @fluentui-react-native/framework to v0.7.27
|
|
29
|
+
- Bump @fluentui-react-native/icon to v0.11.22
|
|
30
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.15.7
|
|
31
|
+
- Bump @fluentui-react-native/menu to v0.9.1
|
|
32
|
+
- Bump @fluentui-react-native/stack to v0.6.27
|
|
33
|
+
- Bump @fluentui-react-native/theme to v0.6.9
|
|
34
|
+
- Bump @fluentui-react-native/theme-types to v0.15.0
|
|
35
|
+
- Bump @fluentui-react-native/theming-utils to v0.11.0
|
|
36
|
+
- Bump @fluentui-react-native/win32-theme to v0.17.0
|
|
37
|
+
- Bump @fluentui/react-native to v0.29.8
|
|
38
|
+
|
|
39
|
+
## 0.61.6
|
|
40
|
+
|
|
41
|
+
Fri, 20 May 2022 19:53:48 GMT
|
|
42
|
+
|
|
43
|
+
### Patches
|
|
44
|
+
|
|
45
|
+
- Implement MenuDivider (ruaraki@microsoft.com)
|
|
46
|
+
- Bump @fluentui-react-native/menu to v0.9.0
|
|
47
|
+
|
|
48
|
+
## 0.61.5
|
|
49
|
+
|
|
50
|
+
Fri, 20 May 2022 18:23:41 GMT
|
|
51
|
+
|
|
52
|
+
### Patches
|
|
53
|
+
|
|
54
|
+
- Fix bug, add test (ruaraki@microsoft.com)
|
|
55
|
+
- Bump @fluentui-react-native/menu to v0.8.0
|
|
56
|
+
|
|
7
57
|
## 0.61.4
|
|
8
58
|
|
|
9
|
-
Thu, 19 May 2022 20:09:
|
|
59
|
+
Thu, 19 May 2022 20:09:25 GMT
|
|
10
60
|
|
|
11
61
|
### Patches
|
|
12
62
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Menu/MenuTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Menu/MenuTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoK/B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAY5B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonV1 as Button } from '@fluentui/react-native';
|
|
3
|
-
import { Menu, MenuItem, MenuItemCheckbox, MenuTrigger, MenuPopover, MenuList } from '@fluentui-react-native/menu';
|
|
3
|
+
import { Menu, MenuItem, MenuItemCheckbox, MenuTrigger, MenuPopover, MenuList, MenuDivider } from '@fluentui-react-native/menu';
|
|
4
4
|
import { Stack } from '@fluentui-react-native/stack';
|
|
5
5
|
import { Text } from '@fluentui-react-native/experimental-text';
|
|
6
6
|
import { stackStyle } from '../Common/styles';
|
|
@@ -17,27 +17,30 @@ var MenuDefault = function () {
|
|
|
17
17
|
};
|
|
18
18
|
var MenuCheckmarks = function () {
|
|
19
19
|
return (React.createElement(Stack, { style: stackStyle },
|
|
20
|
-
React.createElement(Menu,
|
|
20
|
+
React.createElement(Menu, { defaultChecked: { itemOne: true } },
|
|
21
21
|
React.createElement(MenuTrigger, null,
|
|
22
22
|
React.createElement(Button, null, "All checkmark items")),
|
|
23
23
|
React.createElement(MenuPopover, null,
|
|
24
24
|
React.createElement(MenuList, null,
|
|
25
|
-
React.createElement(MenuItemCheckbox, { content: "A MenuItem" }),
|
|
26
|
-
React.createElement(
|
|
27
|
-
|
|
25
|
+
React.createElement(MenuItemCheckbox, { name: "itemOne", content: "A MenuItem with checkmark" }),
|
|
26
|
+
React.createElement(MenuDivider, null),
|
|
27
|
+
React.createElement(MenuItemCheckbox, { name: "itemTwo", content: "Another MenuItem with checkmark" })))),
|
|
28
|
+
React.createElement(Menu, { hasCheckmarks: true, checked: { itemTwo: true } },
|
|
28
29
|
React.createElement(MenuTrigger, null,
|
|
29
|
-
React.createElement(Button, null, "Some checkmark items with alignment")),
|
|
30
|
+
React.createElement(Button, null, "Some controlled checkmark items with alignment")),
|
|
30
31
|
React.createElement(MenuPopover, null,
|
|
31
32
|
React.createElement(MenuList, null,
|
|
32
|
-
React.createElement(MenuItem, { content: "A MenuItem" }),
|
|
33
|
-
React.createElement(MenuItemCheckbox, { content: "A MenuItem" })
|
|
33
|
+
React.createElement(MenuItem, { content: "A plain MenuItem" }),
|
|
34
|
+
React.createElement(MenuItemCheckbox, { name: "itemTwo", content: "A MenuItem with checkmark" }),
|
|
35
|
+
React.createElement(MenuItemCheckbox, { name: "itemThree", content: "A MenuItem with checkmark" })))),
|
|
34
36
|
React.createElement(Menu, null,
|
|
35
37
|
React.createElement(MenuTrigger, null,
|
|
36
38
|
React.createElement(Button, null, "Some checkmark items without alignment")),
|
|
37
39
|
React.createElement(MenuPopover, null,
|
|
38
40
|
React.createElement(MenuList, null,
|
|
39
|
-
React.createElement(MenuItem, { content: "A MenuItem" }),
|
|
40
|
-
React.createElement(MenuItemCheckbox, { content: "A MenuItem" })
|
|
41
|
+
React.createElement(MenuItem, { content: "A plain MenuItem" }),
|
|
42
|
+
React.createElement(MenuItemCheckbox, { name: "itemTwo", content: "A MenuItem with checkmark" }),
|
|
43
|
+
React.createElement(MenuItemCheckbox, { name: "itemThree", content: "A MenuItem with checkmark" }))))));
|
|
41
44
|
};
|
|
42
45
|
var Submenu = function () {
|
|
43
46
|
return (React.createElement(Menu, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Menu/MenuTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Menu/MenuTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAChI,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,IAAI,EAA+B,MAAM,SAAS,CAAC;AAE5D,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,KAAK,IAAC,KAAK,EAAE,UAAU;QACtB,oBAAC,IAAI;YACH,oBAAC,WAAW;gBACV,oBAAC,MAAM,eAAc,CACT;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KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Menu/MenuTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoK/B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAY5B,CAAC"}
|
|
@@ -21,27 +21,30 @@ var MenuDefault = function () {
|
|
|
21
21
|
};
|
|
22
22
|
var MenuCheckmarks = function () {
|
|
23
23
|
return (React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
|
|
24
|
-
React.createElement(menu_1.Menu,
|
|
24
|
+
React.createElement(menu_1.Menu, { defaultChecked: { itemOne: true } },
|
|
25
25
|
React.createElement(menu_1.MenuTrigger, null,
|
|
26
26
|
React.createElement(react_native_1.ButtonV1, null, "All checkmark items")),
|
|
27
27
|
React.createElement(menu_1.MenuPopover, null,
|
|
28
28
|
React.createElement(menu_1.MenuList, null,
|
|
29
|
-
React.createElement(menu_1.MenuItemCheckbox, { content: "A MenuItem" }),
|
|
30
|
-
React.createElement(menu_1.
|
|
31
|
-
|
|
29
|
+
React.createElement(menu_1.MenuItemCheckbox, { name: "itemOne", content: "A MenuItem with checkmark" }),
|
|
30
|
+
React.createElement(menu_1.MenuDivider, null),
|
|
31
|
+
React.createElement(menu_1.MenuItemCheckbox, { name: "itemTwo", content: "Another MenuItem with checkmark" })))),
|
|
32
|
+
React.createElement(menu_1.Menu, { hasCheckmarks: true, checked: { itemTwo: true } },
|
|
32
33
|
React.createElement(menu_1.MenuTrigger, null,
|
|
33
|
-
React.createElement(react_native_1.ButtonV1, null, "Some checkmark items with alignment")),
|
|
34
|
+
React.createElement(react_native_1.ButtonV1, null, "Some controlled checkmark items with alignment")),
|
|
34
35
|
React.createElement(menu_1.MenuPopover, null,
|
|
35
36
|
React.createElement(menu_1.MenuList, null,
|
|
36
|
-
React.createElement(menu_1.MenuItem, { content: "A MenuItem" }),
|
|
37
|
-
React.createElement(menu_1.MenuItemCheckbox, { content: "A MenuItem" })
|
|
37
|
+
React.createElement(menu_1.MenuItem, { content: "A plain MenuItem" }),
|
|
38
|
+
React.createElement(menu_1.MenuItemCheckbox, { name: "itemTwo", content: "A MenuItem with checkmark" }),
|
|
39
|
+
React.createElement(menu_1.MenuItemCheckbox, { name: "itemThree", content: "A MenuItem with checkmark" })))),
|
|
38
40
|
React.createElement(menu_1.Menu, null,
|
|
39
41
|
React.createElement(menu_1.MenuTrigger, null,
|
|
40
42
|
React.createElement(react_native_1.ButtonV1, null, "Some checkmark items without alignment")),
|
|
41
43
|
React.createElement(menu_1.MenuPopover, null,
|
|
42
44
|
React.createElement(menu_1.MenuList, null,
|
|
43
|
-
React.createElement(menu_1.MenuItem, { content: "A MenuItem" }),
|
|
44
|
-
React.createElement(menu_1.MenuItemCheckbox, { content: "A MenuItem" })
|
|
45
|
+
React.createElement(menu_1.MenuItem, { content: "A plain MenuItem" }),
|
|
46
|
+
React.createElement(menu_1.MenuItemCheckbox, { name: "itemTwo", content: "A MenuItem with checkmark" }),
|
|
47
|
+
React.createElement(menu_1.MenuItemCheckbox, { name: "itemThree", content: "A MenuItem with checkmark" }))))));
|
|
45
48
|
};
|
|
46
49
|
var Submenu = function () {
|
|
47
50
|
return (React.createElement(menu_1.Menu, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Menu/MenuTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,uDAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"MenuTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Menu/MenuTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,uDAA4D;AAC5D,oDAAgI;AAChI,sDAAqD;AACrD,8EAAgE;AAChE,2CAA8C;AAC9C,mCAAyC;AACzC,gCAA4D;AAE5D,IAAM,WAAW,G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C,CAAC;AAZW,QAAA,QAAQ,YAYnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.7",
|
|
4
4
|
"description": "A test app to test FluentUI React Native Components during development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
@@ -25,33 +25,33 @@
|
|
|
25
25
|
"directory": "apps/fluent-tester"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@fluentui-react-native/android-theme": ">=0.
|
|
29
|
-
"@fluentui-react-native/apple-theme": ">=0.
|
|
30
|
-
"@fluentui-react-native/badge": ">=0.0.
|
|
31
|
-
"@fluentui-react-native/button": ">=0.22.
|
|
32
|
-
"@fluentui-react-native/default-theme": ">=0.
|
|
33
|
-
"@fluentui-react-native/experimental-activity-indicator": ">=0.5.
|
|
34
|
-
"@fluentui-react-native/experimental-avatar": ">=0.14.
|
|
35
|
-
"@fluentui-react-native/experimental-button": "0.15.
|
|
36
|
-
"@fluentui-react-native/experimental-checkbox": "0.11.
|
|
37
|
-
"@fluentui-react-native/experimental-drawer": ">=0.1.
|
|
28
|
+
"@fluentui-react-native/android-theme": ">=0.8.0 <1.0.0",
|
|
29
|
+
"@fluentui-react-native/apple-theme": ">=0.12.0 <1.0.0",
|
|
30
|
+
"@fluentui-react-native/badge": ">=0.0.35 <1.0.0",
|
|
31
|
+
"@fluentui-react-native/button": ">=0.22.22 <1.0.0",
|
|
32
|
+
"@fluentui-react-native/default-theme": ">=0.11.0 <1.0.0",
|
|
33
|
+
"@fluentui-react-native/experimental-activity-indicator": ">=0.5.26 <1.0.0",
|
|
34
|
+
"@fluentui-react-native/experimental-avatar": ">=0.14.29 <1.0.0",
|
|
35
|
+
"@fluentui-react-native/experimental-button": "0.15.23",
|
|
36
|
+
"@fluentui-react-native/experimental-checkbox": "0.11.5",
|
|
37
|
+
"@fluentui-react-native/experimental-drawer": ">=0.1.10 <1.0.0",
|
|
38
38
|
"@fluentui-react-native/experimental-native-date-picker": ">=0.4.2 <1.0.0",
|
|
39
|
-
"@fluentui-react-native/experimental-expander": "0.3.
|
|
40
|
-
"@fluentui-react-native/experimental-menu-button": ">=0.3.
|
|
41
|
-
"@fluentui-react-native/experimental-shimmer": "0.6.
|
|
42
|
-
"@fluentui-react-native/experimental-tabs": "0.4.
|
|
43
|
-
"@fluentui-react-native/experimental-text": ">=0.7.
|
|
44
|
-
"@fluentui-react-native/framework": ">=0.7.
|
|
45
|
-
"@fluentui-react-native/icon": "0.11.
|
|
46
|
-
"@fluentui-react-native/interactive-hooks": ">=0.15.
|
|
47
|
-
"@fluentui-react-native/menu": ">=0.
|
|
48
|
-
"@fluentui-react-native/stack": ">=0.6.
|
|
49
|
-
"@fluentui-react-native/theme": ">=0.6.
|
|
50
|
-
"@fluentui-react-native/theme-types": ">=0.
|
|
39
|
+
"@fluentui-react-native/experimental-expander": "0.3.28",
|
|
40
|
+
"@fluentui-react-native/experimental-menu-button": ">=0.3.40 <1.0.0",
|
|
41
|
+
"@fluentui-react-native/experimental-shimmer": "0.6.30",
|
|
42
|
+
"@fluentui-react-native/experimental-tabs": "0.4.45",
|
|
43
|
+
"@fluentui-react-native/experimental-text": ">=0.7.27 <1.0.0",
|
|
44
|
+
"@fluentui-react-native/framework": ">=0.7.27 <1.0.0",
|
|
45
|
+
"@fluentui-react-native/icon": "0.11.22",
|
|
46
|
+
"@fluentui-react-native/interactive-hooks": ">=0.15.7 <1.0.0",
|
|
47
|
+
"@fluentui-react-native/menu": ">=0.9.1 <1.0.0",
|
|
48
|
+
"@fluentui-react-native/stack": ">=0.6.27 <1.0.0",
|
|
49
|
+
"@fluentui-react-native/theme": ">=0.6.9 <1.0.0",
|
|
50
|
+
"@fluentui-react-native/theme-types": ">=0.15.0 <1.0.0",
|
|
51
51
|
"@fluentui-react-native/themed-stylesheet": "^1.3.3",
|
|
52
|
-
"@fluentui-react-native/theming-utils": ">=0.
|
|
53
|
-
"@fluentui-react-native/win32-theme": ">=0.
|
|
54
|
-
"@fluentui/react-native": ">=0.29.
|
|
52
|
+
"@fluentui-react-native/theming-utils": ">=0.11.0 <1.0.0",
|
|
53
|
+
"@fluentui-react-native/win32-theme": ">=0.17.0 <1.0.0",
|
|
54
|
+
"@fluentui/react-native": ">=0.29.8 <1.0.0",
|
|
55
55
|
"@react-native-community/slider": "^4.2.0",
|
|
56
56
|
"@react-native-menu/menu": "^0.1.2",
|
|
57
57
|
"@react-native-picker/picker": "^2.2.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonV1 as Button } from '@fluentui/react-native';
|
|
3
|
-
import { Menu, MenuItem, MenuItemCheckbox, MenuTrigger, MenuPopover, MenuList } from '@fluentui-react-native/menu';
|
|
3
|
+
import { Menu, MenuItem, MenuItemCheckbox, MenuTrigger, MenuPopover, MenuList, MenuDivider } from '@fluentui-react-native/menu';
|
|
4
4
|
import { Stack } from '@fluentui-react-native/stack';
|
|
5
5
|
import { Text } from '@fluentui-react-native/experimental-text';
|
|
6
6
|
import { stackStyle } from '../Common/styles';
|
|
@@ -27,25 +27,27 @@ const MenuDefault: React.FunctionComponent = () => {
|
|
|
27
27
|
const MenuCheckmarks: React.FunctionComponent = () => {
|
|
28
28
|
return (
|
|
29
29
|
<Stack style={stackStyle}>
|
|
30
|
-
<Menu>
|
|
30
|
+
<Menu defaultChecked={{ itemOne: true }}>
|
|
31
31
|
<MenuTrigger>
|
|
32
32
|
<Button>All checkmark items</Button>
|
|
33
33
|
</MenuTrigger>
|
|
34
34
|
<MenuPopover>
|
|
35
35
|
<MenuList>
|
|
36
|
-
<MenuItemCheckbox content="A MenuItem" />
|
|
37
|
-
<
|
|
36
|
+
<MenuItemCheckbox name="itemOne" content="A MenuItem with checkmark" />
|
|
37
|
+
<MenuDivider />
|
|
38
|
+
<MenuItemCheckbox name="itemTwo" content="Another MenuItem with checkmark" />
|
|
38
39
|
</MenuList>
|
|
39
40
|
</MenuPopover>
|
|
40
41
|
</Menu>
|
|
41
|
-
<Menu hasCheckmarks>
|
|
42
|
+
<Menu hasCheckmarks checked={{ itemTwo: true }}>
|
|
42
43
|
<MenuTrigger>
|
|
43
|
-
<Button>Some checkmark items with alignment</Button>
|
|
44
|
+
<Button>Some controlled checkmark items with alignment</Button>
|
|
44
45
|
</MenuTrigger>
|
|
45
46
|
<MenuPopover>
|
|
46
47
|
<MenuList>
|
|
47
|
-
<MenuItem content="A MenuItem" />
|
|
48
|
-
<MenuItemCheckbox content="A MenuItem" />
|
|
48
|
+
<MenuItem content="A plain MenuItem" />
|
|
49
|
+
<MenuItemCheckbox name="itemTwo" content="A MenuItem with checkmark" />
|
|
50
|
+
<MenuItemCheckbox name="itemThree" content="A MenuItem with checkmark" />
|
|
49
51
|
</MenuList>
|
|
50
52
|
</MenuPopover>
|
|
51
53
|
</Menu>
|
|
@@ -55,8 +57,9 @@ const MenuCheckmarks: React.FunctionComponent = () => {
|
|
|
55
57
|
</MenuTrigger>
|
|
56
58
|
<MenuPopover>
|
|
57
59
|
<MenuList>
|
|
58
|
-
<MenuItem content="A MenuItem" />
|
|
59
|
-
<MenuItemCheckbox content="A MenuItem" />
|
|
60
|
+
<MenuItem content="A plain MenuItem" />
|
|
61
|
+
<MenuItemCheckbox name="itemTwo" content="A MenuItem with checkmark" />
|
|
62
|
+
<MenuItemCheckbox name="itemThree" content="A MenuItem with checkmark" />
|
|
60
63
|
</MenuList>
|
|
61
64
|
</MenuPopover>
|
|
62
65
|
</Menu>
|