@fluentui-react-native/tester 0.129.4 → 0.129.6
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 +235 -1
- package/CHANGELOG.md +52 -2
- package/docs/android.md +0 -19
- package/lib/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js +0 -3
- package/lib/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts +2 -13
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.desktop.d.ts +2 -2
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.desktop.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.js +4 -0
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.types.d.ts +14 -0
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.types.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.types.js +2 -0
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.types.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.windows.d.ts +2 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.windows.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.windows.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js +0 -3
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts +2 -13
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.desktop.d.ts +2 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.desktop.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.js +4 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.types.d.ts +14 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.types.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.types.js +3 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.types.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.windows.d.ts +2 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.windows.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.windows.js.map +1 -1
- package/package.json +34 -34
- package/src/TestComponents/Button/deprecated/ButtonFocusTest.tsx +0 -3
- package/src/TestComponents/Common/MenuPicker.desktop.tsx +2 -2
- package/src/TestComponents/Common/MenuPicker.tsx +2 -15
- package/src/TestComponents/Common/MenuPicker.types.tsx +14 -0
- package/src/TestComponents/Common/MenuPicker.windows.tsx +2 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,241 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 02 Feb 2023 02:18:30 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.129.6",
|
|
7
|
+
"version": "0.129.6",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "78454019+lyzhan7@users.noreply.github.com",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"commit": "577c02ea7474e2151306e348c1f446b1e69bfe7d",
|
|
14
|
+
"comment": "Remove section containing dead link"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5",
|
|
20
|
+
"comment": "Fix some type errors when running TS type check for win32 platform"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/tester",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/experimental-shimmer to v0.8.17",
|
|
26
|
+
"commit": "577c02ea7474e2151306e348c1f446b1e69bfe7d"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Thu, 02 Feb 2023 01:29:39 GMT",
|
|
33
|
+
"tag": "@fluentui-react-native/tester_v0.129.5",
|
|
34
|
+
"version": "0.129.5",
|
|
35
|
+
"comments": {
|
|
36
|
+
"patch": [
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@fluentui-react-native/tester",
|
|
40
|
+
"comment": "Bump @fluentui-react-native/android-theme to v0.16.4",
|
|
41
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@fluentui-react-native/tester",
|
|
46
|
+
"comment": "Bump @fluentui-react-native/apple-theme to v0.18.7",
|
|
47
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui-react-native/tester",
|
|
52
|
+
"comment": "Bump @fluentui-react-native/avatar to v1.6.3",
|
|
53
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@fluentui-react-native/tester",
|
|
58
|
+
"comment": "Bump @fluentui-react-native/badge to v0.4.24",
|
|
59
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui-react-native/tester",
|
|
64
|
+
"comment": "Bump @fluentui-react-native/button to v0.32.28",
|
|
65
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "beachball",
|
|
69
|
+
"package": "@fluentui-react-native/tester",
|
|
70
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.16.29",
|
|
71
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@fluentui-react-native/tester",
|
|
76
|
+
"comment": "Bump @fluentui-react-native/dropdown to v0.7.23",
|
|
77
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"author": "beachball",
|
|
81
|
+
"package": "@fluentui-react-native/tester",
|
|
82
|
+
"comment": "Bump @fluentui-react-native/experimental-activity-indicator to v0.7.16",
|
|
83
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"author": "beachball",
|
|
87
|
+
"package": "@fluentui-react-native/tester",
|
|
88
|
+
"comment": "Bump @fluentui-react-native/experimental-appearance-additions to v0.2.3",
|
|
89
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"author": "beachball",
|
|
93
|
+
"package": "@fluentui-react-native/tester",
|
|
94
|
+
"comment": "Bump @fluentui-react-native/experimental-avatar to v0.17.13",
|
|
95
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"author": "beachball",
|
|
99
|
+
"package": "@fluentui-react-native/tester",
|
|
100
|
+
"comment": "Bump @fluentui-react-native/experimental-button to v0.16.86",
|
|
101
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"author": "beachball",
|
|
105
|
+
"package": "@fluentui-react-native/tester",
|
|
106
|
+
"comment": "Bump @fluentui-react-native/experimental-checkbox to v0.13.35",
|
|
107
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"author": "beachball",
|
|
111
|
+
"package": "@fluentui-react-native/tester",
|
|
112
|
+
"comment": "Bump @fluentui-react-native/experimental-expander to v0.5.16",
|
|
113
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"author": "beachball",
|
|
117
|
+
"package": "@fluentui-react-native/tester",
|
|
118
|
+
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.6.25",
|
|
119
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"author": "beachball",
|
|
123
|
+
"package": "@fluentui-react-native/tester",
|
|
124
|
+
"comment": "Bump @fluentui-react-native/experimental-native-date-picker to v0.7.5",
|
|
125
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"author": "beachball",
|
|
129
|
+
"package": "@fluentui-react-native/tester",
|
|
130
|
+
"comment": "Bump @fluentui-react-native/experimental-radio-group to v0.9.16",
|
|
131
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"author": "beachball",
|
|
135
|
+
"package": "@fluentui-react-native/tester",
|
|
136
|
+
"comment": "Bump @fluentui-react-native/experimental-shadow to v0.2.65",
|
|
137
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"author": "beachball",
|
|
141
|
+
"package": "@fluentui-react-native/tester",
|
|
142
|
+
"comment": "Bump @fluentui-react-native/experimental-shimmer to v0.8.16",
|
|
143
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"author": "beachball",
|
|
147
|
+
"package": "@fluentui-react-native/tester",
|
|
148
|
+
"comment": "Bump @fluentui-react-native/experimental-tabs to v0.8.30",
|
|
149
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"author": "beachball",
|
|
153
|
+
"package": "@fluentui-react-native/tester",
|
|
154
|
+
"comment": "Bump @fluentui-react-native/experimental-text to v0.11.49",
|
|
155
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"author": "beachball",
|
|
159
|
+
"package": "@fluentui-react-native/tester",
|
|
160
|
+
"comment": "Bump @fluentui-react-native/framework to v0.8.39",
|
|
161
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"author": "beachball",
|
|
165
|
+
"package": "@fluentui-react-native/tester",
|
|
166
|
+
"comment": "Bump @fluentui-react-native/icon to v0.17.10",
|
|
167
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"author": "beachball",
|
|
171
|
+
"package": "@fluentui-react-native/tester",
|
|
172
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.16",
|
|
173
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"author": "beachball",
|
|
177
|
+
"package": "@fluentui-react-native/tester",
|
|
178
|
+
"comment": "Bump @fluentui-react-native/menu to v1.2.26",
|
|
179
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"author": "beachball",
|
|
183
|
+
"package": "@fluentui-react-native/tester",
|
|
184
|
+
"comment": "Bump @fluentui-react-native/notification to v0.21.26",
|
|
185
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"author": "beachball",
|
|
189
|
+
"package": "@fluentui-react-native/tester",
|
|
190
|
+
"comment": "Bump @fluentui-react-native/separator to v0.14.13",
|
|
191
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"author": "beachball",
|
|
195
|
+
"package": "@fluentui-react-native/tester",
|
|
196
|
+
"comment": "Bump @fluentui-react-native/stack to v0.7.50",
|
|
197
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"author": "beachball",
|
|
201
|
+
"package": "@fluentui-react-native/tester",
|
|
202
|
+
"comment": "Bump @fluentui-react-native/switch to v0.8.22",
|
|
203
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"author": "beachball",
|
|
207
|
+
"package": "@fluentui-react-native/tester",
|
|
208
|
+
"comment": "Bump @fluentui-react-native/text to v0.19.18",
|
|
209
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"author": "beachball",
|
|
213
|
+
"package": "@fluentui-react-native/tester",
|
|
214
|
+
"comment": "Bump @fluentui-react-native/theme to v0.7.21",
|
|
215
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"author": "beachball",
|
|
219
|
+
"package": "@fluentui-react-native/tester",
|
|
220
|
+
"comment": "Bump @fluentui-react-native/win32-theme to v0.24.16",
|
|
221
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"author": "beachball",
|
|
225
|
+
"package": "@fluentui-react-native/tester",
|
|
226
|
+
"comment": "Bump @fluentui/react-native to v0.35.15",
|
|
227
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"author": "beachball",
|
|
231
|
+
"package": "@fluentui-react-native/tester",
|
|
232
|
+
"comment": "Bump @fluentui-react-native/focus-zone to v0.11.28",
|
|
233
|
+
"commit": "8babef935750d57271f466a1c446e6531ee1b0a5"
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"date": "Wed, 01 Feb 2023 22:33:16 GMT",
|
|
6
240
|
"tag": "@fluentui-react-native/tester_v0.129.4",
|
|
7
241
|
"version": "0.129.4",
|
|
8
242
|
"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 Thu, 02 Feb 2023 02:18:30 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.129.6
|
|
8
|
+
|
|
9
|
+
Thu, 02 Feb 2023 02:18:30 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Remove section containing dead link (78454019+lyzhan7@users.noreply.github.com)
|
|
14
|
+
- Fix some type errors when running TS type check for win32 platform (30809111+acoates-ms@users.noreply.github.com)
|
|
15
|
+
- Bump @fluentui-react-native/experimental-shimmer to v0.8.17
|
|
16
|
+
|
|
17
|
+
## 0.129.5
|
|
18
|
+
|
|
19
|
+
Thu, 02 Feb 2023 01:29:39 GMT
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- Bump @fluentui-react-native/android-theme to v0.16.4
|
|
24
|
+
- Bump @fluentui-react-native/apple-theme to v0.18.7
|
|
25
|
+
- Bump @fluentui-react-native/avatar to v1.6.3
|
|
26
|
+
- Bump @fluentui-react-native/badge to v0.4.24
|
|
27
|
+
- Bump @fluentui-react-native/button to v0.32.28
|
|
28
|
+
- Bump @fluentui-react-native/default-theme to v0.16.29
|
|
29
|
+
- Bump @fluentui-react-native/dropdown to v0.7.23
|
|
30
|
+
- Bump @fluentui-react-native/experimental-activity-indicator to v0.7.16
|
|
31
|
+
- Bump @fluentui-react-native/experimental-appearance-additions to v0.2.3
|
|
32
|
+
- Bump @fluentui-react-native/experimental-avatar to v0.17.13
|
|
33
|
+
- Bump @fluentui-react-native/experimental-button to v0.16.86
|
|
34
|
+
- Bump @fluentui-react-native/experimental-checkbox to v0.13.35
|
|
35
|
+
- Bump @fluentui-react-native/experimental-expander to v0.5.16
|
|
36
|
+
- Bump @fluentui-react-native/experimental-menu-button to v0.6.25
|
|
37
|
+
- Bump @fluentui-react-native/experimental-native-date-picker to v0.7.5
|
|
38
|
+
- Bump @fluentui-react-native/experimental-radio-group to v0.9.16
|
|
39
|
+
- Bump @fluentui-react-native/experimental-shadow to v0.2.65
|
|
40
|
+
- Bump @fluentui-react-native/experimental-shimmer to v0.8.16
|
|
41
|
+
- Bump @fluentui-react-native/experimental-tabs to v0.8.30
|
|
42
|
+
- Bump @fluentui-react-native/experimental-text to v0.11.49
|
|
43
|
+
- Bump @fluentui-react-native/framework to v0.8.39
|
|
44
|
+
- Bump @fluentui-react-native/icon to v0.17.10
|
|
45
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.22.16
|
|
46
|
+
- Bump @fluentui-react-native/menu to v1.2.26
|
|
47
|
+
- Bump @fluentui-react-native/notification to v0.21.26
|
|
48
|
+
- Bump @fluentui-react-native/separator to v0.14.13
|
|
49
|
+
- Bump @fluentui-react-native/stack to v0.7.50
|
|
50
|
+
- Bump @fluentui-react-native/switch to v0.8.22
|
|
51
|
+
- Bump @fluentui-react-native/text to v0.19.18
|
|
52
|
+
- Bump @fluentui-react-native/theme to v0.7.21
|
|
53
|
+
- Bump @fluentui-react-native/win32-theme to v0.24.16
|
|
54
|
+
- Bump @fluentui/react-native to v0.35.15
|
|
55
|
+
- Bump @fluentui-react-native/focus-zone to v0.11.28
|
|
56
|
+
|
|
7
57
|
## 0.129.4
|
|
8
58
|
|
|
9
|
-
Wed, 01 Feb 2023 22:
|
|
59
|
+
Wed, 01 Feb 2023 22:33:16 GMT
|
|
10
60
|
|
|
11
61
|
### Patches
|
|
12
62
|
|
package/docs/android.md
CHANGED
|
@@ -31,25 +31,6 @@ cd apps/fluent-tester
|
|
|
31
31
|
yarn android
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
## Using an Apple Silicon Mac (As of July 2021)
|
|
35
|
-
|
|
36
|
-
- The virtual devices in the AVD Manager with arm64 images still have some bugs. To get the current best emulator, download it from Github: [version 3](https://github.com/google/android-emulator-m1-preview).
|
|
37
|
-
|
|
38
|
-
- Since the emulator is an emulator, you need open it manually first. Then open Android Studio from `/apps/android/src`, choose 'emulator-5554' as the device and run the app.
|
|
39
|
-
- To connect to metro run the following and reload the app:
|
|
40
|
-
|
|
41
|
-
```sh
|
|
42
|
-
adb reverse tcp:8081 tcp:8081
|
|
43
|
-
yarn start
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
- APKs: The emulator is running on arm64 so any APKs that need to be installed need to be for arm64. Here is a [link](https://www.apkmirror.com/apk/google-inc/android-accessibility-suite/android-accessibility-suite-9-1-0-358315219-release/android-accessibility-suite-9-1-0-358315219-android-apk-download/) to the accessibility APK which includes TalkBack (voiceover)
|
|
47
|
-
- The ADB location is not automatically detected on the emulator so you need to manually set it.
|
|
48
|
-
1. Go to expanded settings (three dots on the side) -> settings
|
|
49
|
-
2. Turn off "Use detected ADB location"
|
|
50
|
-
3. Click the folder and find the location of adb (~/Library/Android/sdk/platform-tools/adb). You will need to show hidden folders (Shift + CMD + .) to see Library
|
|
51
|
-
- Once ADB location is set, drag and drop the downloaded APK into the emulator to install it onto the emulator
|
|
52
|
-
|
|
53
34
|
## Dependencies
|
|
54
35
|
|
|
55
36
|
Dependencies are managed by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonFocusTest.d.ts","sourceRoot":"","sources":["../../../../../../src/TestComponents/Button/deprecated/ButtonFocusTest.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonFocusTest.d.ts","sourceRoot":"","sources":["../../../../../../src/TestComponents/Button/deprecated/ButtonFocusTest.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,iBAoB9C,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Button } from '@fluentui/react-native';
|
|
2
2
|
import { Stack } from '@fluentui-react-native/stack';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { findNodeHandle } from 'react-native';
|
|
5
4
|
import { stackStyle } from '../../Common/styles';
|
|
6
5
|
export var ButtonFocusTest_deprecated = function () {
|
|
7
6
|
var _a = React.useState({
|
|
@@ -11,8 +10,6 @@ export var ButtonFocusTest_deprecated = function () {
|
|
|
11
10
|
var onFocus = React.useCallback(function () {
|
|
12
11
|
setState({ focused: !state.focused });
|
|
13
12
|
if (buttonRef.current && !state.focused) {
|
|
14
|
-
var node = findNodeHandle(buttonRef.current);
|
|
15
|
-
console.log(node);
|
|
16
13
|
buttonRef.current.focus();
|
|
17
14
|
}
|
|
18
15
|
}, [state, setState]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonFocusTest.js","sourceRoot":"","sources":["../../../../../../src/TestComponents/Button/deprecated/ButtonFocusTest.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ButtonFocusTest.js","sourceRoot":"","sources":["../../../../../../src/TestComponents/Button/deprecated/ButtonFocusTest.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,CAAC,IAAM,0BAA0B,GAA4B;IAC3D,IAAA,KAAoB,KAAK,CAAC,QAAQ,CAAC;QACvC,OAAO,EAAE,KAAK;KACf,CAAC,EAFK,KAAK,QAAA,EAAE,QAAQ,QAEpB,CAAC;IACH,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAa,IAAI,CAAC,CAAC;IAEjD,IAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC;QAChC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACtC,IAAI,SAAS,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;YACvC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;SAC3B;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtB,OAAO,CACL,oBAAC,KAAK,IAAC,KAAK,EAAE,UAAU;QACtB,oBAAC,MAAM,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAC,wBAAwB,GAAG;QACnI,oBAAC,MAAM,IAAC,OAAO,EAAC,gBAAgB,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,gBAAgB,GAAG;QAC9E,oBAAC,MAAM,IAAC,OAAO,EAAC,iBAAiB,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,iBAAiB,EAAC,QAAQ,SAAG,CACnF,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value?: T;
|
|
5
|
-
testID?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface MenuPickerProps {
|
|
8
|
-
prompt?: string;
|
|
9
|
-
selected?: string;
|
|
10
|
-
onChange?: (value: any, index?: number) => void;
|
|
11
|
-
collection?: CollectionItem[];
|
|
12
|
-
style?: any;
|
|
13
|
-
testID?: string;
|
|
14
|
-
}
|
|
2
|
+
import type { CollectionItem, MenuPickerProps } from './MenuPicker.types';
|
|
3
|
+
export { CollectionItem, MenuPickerProps };
|
|
15
4
|
export declare const MenuPicker: React.FunctionComponent<MenuPickerProps>;
|
|
16
5
|
//# sourceMappingURL=MenuPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuPicker.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC;AAO3C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CA6B/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { MenuPickerProps } from './MenuPicker';
|
|
3
|
-
export
|
|
2
|
+
import type { MenuPickerProps, CollectionItem } from './MenuPicker.types';
|
|
3
|
+
export { MenuPickerProps, CollectionItem };
|
|
4
4
|
export declare const MenuPicker: React.FunctionComponent<MenuPickerProps>;
|
|
5
5
|
//# sourceMappingURL=MenuPicker.desktop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.desktop.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.desktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"MenuPicker.desktop.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.desktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;AAS3C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAkC/D,CAAC"}
|
|
@@ -2,6 +2,10 @@ import { __assign } from "tslib";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Picker } from '@react-native-picker/picker';
|
|
4
4
|
import { testProps } from './TestProps';
|
|
5
|
+
/*
|
|
6
|
+
* The MenuPicker was created because the RN Core Picker was deprecated (preventing us from updating to RN 0.66).
|
|
7
|
+
* MenuPicker uses the community Picker package for iOS/Win32 and our own Picker for Win32/MacOS.
|
|
8
|
+
*/
|
|
5
9
|
export var MenuPicker = function (props) {
|
|
6
10
|
var prompt = props.prompt, selected = props.selected, onChange = props.onChange, collection = props.collection, style = props.style, testID = props.testID;
|
|
7
11
|
var selectedItemKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuPicker.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC;;;GAGG;AAEH,MAAM,CAAC,IAAM,UAAU,GAA6C,UAAC,KAAsB;IACjF,IAAA,MAAM,GAAoD,KAAK,OAAzD,EAAE,QAAQ,GAA0C,KAAK,SAA/C,EAAE,QAAQ,GAAgC,KAAK,SAArC,EAAE,UAAU,GAAoB,KAAK,WAAzB,EAAE,KAAK,GAAa,KAAK,MAAlB,EAAE,MAAM,GAAK,KAAK,OAAV,CAAW;IACxE,IAAI,eAAe,CAAC;IAEpB,UAAU,CAAC,OAAO,CAAC,UAAC,IAAI;QACtB,IAAI,IAAI,CAAC,KAAK,IAAI,QAAQ,EAAE;YAC1B,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC;SAC9B;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,MAAM,aACL,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,eAAe,EAC9B,aAAa,EAAE,UAAC,KAAa,EAAE,KAAa,IAAK,OAAA,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,EAAtB,CAAsB,EACvE,KAAK,eAAO,KAAK,KAEb,SAAS,CAAC,MAAM,CAAC,GAEpB,UAAU,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CAC/B,oBAAC,MAAM,CAAC,IAAI,aACV,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,IAAI,CAAC,KAAK,IACb,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAC1B,CACH,EAPgC,CAOhC,CAAC,CACK,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CollectionItem<T = string> {
|
|
2
|
+
label: string;
|
|
3
|
+
value?: T;
|
|
4
|
+
testID?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MenuPickerProps {
|
|
7
|
+
prompt?: string;
|
|
8
|
+
selected?: string;
|
|
9
|
+
onChange?: (value: any, index?: number) => void;
|
|
10
|
+
collection?: CollectionItem[];
|
|
11
|
+
style?: any;
|
|
12
|
+
testID?: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=MenuPicker.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuPicker.types.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.types.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuPicker.types.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.types.tsx"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './MenuPicker.desktop';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { MenuPickerProps } from './MenuPicker';
|
|
3
|
+
import type { MenuPickerProps, CollectionItem } from './MenuPicker.types';
|
|
4
|
+
export { MenuPickerProps, CollectionItem };
|
|
4
5
|
export declare const MenuPicker: React.FunctionComponent<MenuPickerProps>;
|
|
5
6
|
//# sourceMappingURL=MenuPicker.windows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.windows.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.windows.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"MenuPicker.windows.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.windows.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;AAE3C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAU/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.windows.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.windows.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuPicker.windows.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.windows.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI9D,MAAM,CAAC,IAAM,UAAU,GAA6C,UAAC,KAAsB;IACjF,IAAA,MAAM,GAA2B,KAAK,OAAhC,EAAE,QAAQ,GAAiB,KAAK,SAAtB,EAAE,UAAU,GAAK,KAAK,WAAV,CAAW;IAC/C,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,gBAAgB,CAAC,SAAS;QACrC,oBAAC,IAAI,IAAC,KAAK,EAAE,gBAAgB,CAAC,MAAM,IAAG,MAAM,CAAQ;QACpD,UAAU,CAAC,GAAG,CAAC,UAAC,IAAoB,EAAE,KAAa,IAAK,OAAA,CACvD,oBAAC,MAAM,IAAC,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,EAA3B,CAA2B,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CACtF,EAFwD,CAExD,CAAC,CACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,CAAC;KACV;IACD,MAAM,EAAE;QACN,WAAW,EAAE,CAAC;KACf;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,CAAC;KACX;CACF,CAAC,CAAC"}
|
package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonFocusTest.d.ts","sourceRoot":"","sources":["../../../../../../src/TestComponents/Button/deprecated/ButtonFocusTest.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonFocusTest.d.ts","sourceRoot":"","sources":["../../../../../../src/TestComponents/Button/deprecated/ButtonFocusTest.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,iBAoB9C,CAAC"}
|
|
@@ -5,7 +5,6 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var react_native_1 = require("@fluentui/react-native");
|
|
6
6
|
var stack_1 = require("@fluentui-react-native/stack");
|
|
7
7
|
var React = tslib_1.__importStar(require("react"));
|
|
8
|
-
var react_native_2 = require("react-native");
|
|
9
8
|
var styles_1 = require("../../Common/styles");
|
|
10
9
|
var ButtonFocusTest_deprecated = function () {
|
|
11
10
|
var _a = React.useState({
|
|
@@ -15,8 +14,6 @@ var ButtonFocusTest_deprecated = function () {
|
|
|
15
14
|
var onFocus = React.useCallback(function () {
|
|
16
15
|
setState({ focused: !state.focused });
|
|
17
16
|
if (buttonRef.current && !state.focused) {
|
|
18
|
-
var node = (0, react_native_2.findNodeHandle)(buttonRef.current);
|
|
19
|
-
console.log(node);
|
|
20
17
|
buttonRef.current.focus();
|
|
21
18
|
}
|
|
22
19
|
}, [state, setState]);
|
package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonFocusTest.js","sourceRoot":"","sources":["../../../../../../src/TestComponents/Button/deprecated/ButtonFocusTest.tsx"],"names":[],"mappings":";;;;AAAA,uDAAgD;AAEhD,sDAAqD;AACrD,mDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"ButtonFocusTest.js","sourceRoot":"","sources":["../../../../../../src/TestComponents/Button/deprecated/ButtonFocusTest.tsx"],"names":[],"mappings":";;;;AAAA,uDAAgD;AAEhD,sDAAqD;AACrD,mDAA+B;AAC/B,8CAAiD;AAE1C,IAAM,0BAA0B,GAA4B;IAC3D,IAAA,KAAoB,KAAK,CAAC,QAAQ,CAAC;QACvC,OAAO,EAAE,KAAK;KACf,CAAC,EAFK,KAAK,QAAA,EAAE,QAAQ,QAEpB,CAAC;IACH,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAa,IAAI,CAAC,CAAC;IAEjD,IAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC;QAChC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACtC,IAAI,SAAS,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;YACvC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;SAC3B;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtB,OAAO,CACL,oBAAC,aAAK,IAAC,KAAK,EAAE,mBAAU;QACtB,oBAAC,qBAAM,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAC,wBAAwB,GAAG;QACnI,oBAAC,qBAAM,IAAC,OAAO,EAAC,gBAAgB,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,gBAAgB,GAAG;QAC9E,oBAAC,qBAAM,IAAC,OAAO,EAAC,iBAAiB,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,iBAAiB,EAAC,QAAQ,SAAG,CACnF,CACT,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,0BAA0B,8BAoBrC"}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value?: T;
|
|
5
|
-
testID?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface MenuPickerProps {
|
|
8
|
-
prompt?: string;
|
|
9
|
-
selected?: string;
|
|
10
|
-
onChange?: (value: any, index?: number) => void;
|
|
11
|
-
collection?: CollectionItem[];
|
|
12
|
-
style?: any;
|
|
13
|
-
testID?: string;
|
|
14
|
-
}
|
|
2
|
+
import type { CollectionItem, MenuPickerProps } from './MenuPicker.types';
|
|
3
|
+
export { CollectionItem, MenuPickerProps };
|
|
15
4
|
export declare const MenuPicker: React.FunctionComponent<MenuPickerProps>;
|
|
16
5
|
//# sourceMappingURL=MenuPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuPicker.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC;AAO3C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CA6B/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { MenuPickerProps } from './MenuPicker';
|
|
3
|
-
export
|
|
2
|
+
import type { MenuPickerProps, CollectionItem } from './MenuPicker.types';
|
|
3
|
+
export { MenuPickerProps, CollectionItem };
|
|
4
4
|
export declare const MenuPicker: React.FunctionComponent<MenuPickerProps>;
|
|
5
5
|
//# sourceMappingURL=MenuPicker.desktop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.desktop.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.desktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"MenuPicker.desktop.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.desktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;AAS3C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAkC/D,CAAC"}
|
|
@@ -5,6 +5,10 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var React = tslib_1.__importStar(require("react"));
|
|
6
6
|
var picker_1 = require("@react-native-picker/picker");
|
|
7
7
|
var TestProps_1 = require("./TestProps");
|
|
8
|
+
/*
|
|
9
|
+
* The MenuPicker was created because the RN Core Picker was deprecated (preventing us from updating to RN 0.66).
|
|
10
|
+
* MenuPicker uses the community Picker package for iOS/Win32 and our own Picker for Win32/MacOS.
|
|
11
|
+
*/
|
|
8
12
|
var MenuPicker = function (props) {
|
|
9
13
|
var prompt = props.prompt, selected = props.selected, onChange = props.onChange, collection = props.collection, style = props.style, testID = props.testID;
|
|
10
14
|
var selectedItemKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.tsx"],"names":[],"mappings":";;;;AAAA,mDAA+B;AAC/B,sDAAqD;AACrD,yCAAwC;
|
|
1
|
+
{"version":3,"file":"MenuPicker.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.tsx"],"names":[],"mappings":";;;;AAAA,mDAA+B;AAC/B,sDAAqD;AACrD,yCAAwC;AAIxC;;;GAGG;AAEI,IAAM,UAAU,GAA6C,UAAC,KAAsB;IACjF,IAAA,MAAM,GAAoD,KAAK,OAAzD,EAAE,QAAQ,GAA0C,KAAK,SAA/C,EAAE,QAAQ,GAAgC,KAAK,SAArC,EAAE,UAAU,GAAoB,KAAK,WAAzB,EAAE,KAAK,GAAa,KAAK,MAAlB,EAAE,MAAM,GAAK,KAAK,OAAV,CAAW;IACxE,IAAI,eAAe,CAAC;IAEpB,UAAU,CAAC,OAAO,CAAC,UAAC,IAAI;QACtB,IAAI,IAAI,CAAC,KAAK,IAAI,QAAQ,EAAE;YAC1B,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC;SAC9B;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,eAAM,qBACL,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,eAAe,EAC9B,aAAa,EAAE,UAAC,KAAa,EAAE,KAAa,IAAK,OAAA,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,EAAtB,CAAsB,EACvE,KAAK,uBAAO,KAAK,KAEb,IAAA,qBAAS,EAAC,MAAM,CAAC,GAEpB,UAAU,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CAC/B,oBAAC,eAAM,CAAC,IAAI,qBACV,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,IAAI,CAAC,KAAK,IACb,IAAA,qBAAS,EAAC,IAAI,CAAC,MAAM,CAAC,EAC1B,CACH,EAPgC,CAOhC,CAAC,CACK,CACV,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,UAAU,cA6BrB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CollectionItem<T = string> {
|
|
2
|
+
label: string;
|
|
3
|
+
value?: T;
|
|
4
|
+
testID?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MenuPickerProps {
|
|
7
|
+
prompt?: string;
|
|
8
|
+
selected?: string;
|
|
9
|
+
onChange?: (value: any, index?: number) => void;
|
|
10
|
+
collection?: CollectionItem[];
|
|
11
|
+
style?: any;
|
|
12
|
+
testID?: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=MenuPicker.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuPicker.types.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.types.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuPicker.types.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.types.tsx"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './MenuPicker.desktop';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { MenuPickerProps } from './MenuPicker';
|
|
3
|
+
import type { MenuPickerProps, CollectionItem } from './MenuPicker.types';
|
|
4
|
+
export { MenuPickerProps, CollectionItem };
|
|
4
5
|
export declare const MenuPicker: React.FunctionComponent<MenuPickerProps>;
|
|
5
6
|
//# sourceMappingURL=MenuPicker.windows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.windows.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.windows.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"MenuPicker.windows.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.windows.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;AAE3C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAU/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPicker.windows.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.windows.tsx"],"names":[],"mappings":";;;;AAAA,+DAAqC;AACrC,mDAA+B;AAC/B,6CAA8D;
|
|
1
|
+
{"version":3,"file":"MenuPicker.windows.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/MenuPicker.windows.tsx"],"names":[],"mappings":";;;;AAAA,+DAAqC;AACrC,mDAA+B;AAC/B,6CAA8D;AAIvD,IAAM,UAAU,GAA6C,UAAC,KAAsB;IACjF,IAAA,MAAM,GAA2B,KAAK,OAAhC,EAAE,QAAQ,GAAiB,KAAK,SAAtB,EAAE,UAAU,GAAK,KAAK,WAAV,CAAW;IAC/C,OAAO,CACL,oBAAC,mBAAI,IAAC,KAAK,EAAE,gBAAgB,CAAC,SAAS;QACrC,oBAAC,mBAAI,IAAC,KAAK,EAAE,gBAAgB,CAAC,MAAM,IAAG,MAAM,CAAQ;QACpD,UAAU,CAAC,GAAG,CAAC,UAAC,IAAoB,EAAE,KAAa,IAAK,OAAA,CACvD,oBAAC,qBAAM,IAAC,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,EAA3B,CAA2B,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CACtF,EAFwD,CAExD,CAAC,CACG,CACR,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,UAAU,cAUrB;AAEF,IAAM,gBAAgB,GAAG,yBAAU,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,CAAC;KACV;IACD,MAAM,EAAE;QACN,WAAW,EAAE,CAAC;KACf;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,CAAC;KACX;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.129.
|
|
3
|
+
"version": "0.129.6",
|
|
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>",
|
|
@@ -33,43 +33,43 @@
|
|
|
33
33
|
"directory": "apps/fluent-tester"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@fluentui-react-native/android-theme": ">=0.16.
|
|
37
|
-
"@fluentui-react-native/apple-theme": ">=0.18.
|
|
38
|
-
"@fluentui-react-native/avatar": "^1.6.
|
|
39
|
-
"@fluentui-react-native/badge": ">=0.4.
|
|
40
|
-
"@fluentui-react-native/button": ">=0.32.
|
|
41
|
-
"@fluentui-react-native/default-theme": ">=0.16.
|
|
42
|
-
"@fluentui-react-native/dropdown": ">=0.7.
|
|
43
|
-
"@fluentui-react-native/experimental-activity-indicator": ">=0.7.
|
|
44
|
-
"@fluentui-react-native/experimental-appearance-additions": "^0.2.
|
|
45
|
-
"@fluentui-react-native/experimental-avatar": ">=0.17.
|
|
46
|
-
"@fluentui-react-native/experimental-button": "0.16.
|
|
47
|
-
"@fluentui-react-native/experimental-checkbox": "0.13.
|
|
48
|
-
"@fluentui-react-native/experimental-expander": "0.5.
|
|
49
|
-
"@fluentui-react-native/experimental-menu-button": ">=0.6.
|
|
50
|
-
"@fluentui-react-native/experimental-native-date-picker": ">=0.7.
|
|
51
|
-
"@fluentui-react-native/experimental-radio-group": "^0.9.
|
|
52
|
-
"@fluentui-react-native/experimental-shadow": "0.2.
|
|
53
|
-
"@fluentui-react-native/experimental-shimmer": "0.8.
|
|
54
|
-
"@fluentui-react-native/experimental-tabs": "0.8.
|
|
55
|
-
"@fluentui-react-native/experimental-text": ">=0.11.
|
|
56
|
-
"@fluentui-react-native/framework": ">=0.8.
|
|
57
|
-
"@fluentui-react-native/icon": "0.17.
|
|
58
|
-
"@fluentui-react-native/interactive-hooks": ">=0.22.
|
|
59
|
-
"@fluentui-react-native/menu": "^1.2.
|
|
36
|
+
"@fluentui-react-native/android-theme": ">=0.16.4 <1.0.0",
|
|
37
|
+
"@fluentui-react-native/apple-theme": ">=0.18.7 <1.0.0",
|
|
38
|
+
"@fluentui-react-native/avatar": "^1.6.3",
|
|
39
|
+
"@fluentui-react-native/badge": ">=0.4.24 <1.0.0",
|
|
40
|
+
"@fluentui-react-native/button": ">=0.32.28 <1.0.0",
|
|
41
|
+
"@fluentui-react-native/default-theme": ">=0.16.29 <1.0.0",
|
|
42
|
+
"@fluentui-react-native/dropdown": ">=0.7.23 <1.0.0",
|
|
43
|
+
"@fluentui-react-native/experimental-activity-indicator": ">=0.7.16 <1.0.0",
|
|
44
|
+
"@fluentui-react-native/experimental-appearance-additions": "^0.2.3",
|
|
45
|
+
"@fluentui-react-native/experimental-avatar": ">=0.17.13 <1.0.0",
|
|
46
|
+
"@fluentui-react-native/experimental-button": "0.16.86",
|
|
47
|
+
"@fluentui-react-native/experimental-checkbox": "0.13.35",
|
|
48
|
+
"@fluentui-react-native/experimental-expander": "0.5.16",
|
|
49
|
+
"@fluentui-react-native/experimental-menu-button": ">=0.6.25 <1.0.0",
|
|
50
|
+
"@fluentui-react-native/experimental-native-date-picker": ">=0.7.5 <1.0.0",
|
|
51
|
+
"@fluentui-react-native/experimental-radio-group": "^0.9.16",
|
|
52
|
+
"@fluentui-react-native/experimental-shadow": "0.2.65",
|
|
53
|
+
"@fluentui-react-native/experimental-shimmer": "0.8.17",
|
|
54
|
+
"@fluentui-react-native/experimental-tabs": "0.8.30",
|
|
55
|
+
"@fluentui-react-native/experimental-text": ">=0.11.49 <1.0.0",
|
|
56
|
+
"@fluentui-react-native/framework": ">=0.8.39 <1.0.0",
|
|
57
|
+
"@fluentui-react-native/icon": "0.17.10",
|
|
58
|
+
"@fluentui-react-native/interactive-hooks": ">=0.22.16 <1.0.0",
|
|
59
|
+
"@fluentui-react-native/menu": "^1.2.26",
|
|
60
60
|
"@fluentui-react-native/merge-props": ">=0.5.2 <1.0.0",
|
|
61
|
-
"@fluentui-react-native/notification": "0.21.
|
|
62
|
-
"@fluentui-react-native/separator": "^0.14.
|
|
63
|
-
"@fluentui-react-native/stack": ">=0.7.
|
|
64
|
-
"@fluentui-react-native/switch": "^0.8.
|
|
65
|
-
"@fluentui-react-native/text": ">=0.19.
|
|
66
|
-
"@fluentui-react-native/theme": ">=0.7.
|
|
61
|
+
"@fluentui-react-native/notification": "0.21.26",
|
|
62
|
+
"@fluentui-react-native/separator": "^0.14.13",
|
|
63
|
+
"@fluentui-react-native/stack": ">=0.7.50 <1.0.0",
|
|
64
|
+
"@fluentui-react-native/switch": "^0.8.22",
|
|
65
|
+
"@fluentui-react-native/text": ">=0.19.18 <1.0.0",
|
|
66
|
+
"@fluentui-react-native/theme": ">=0.7.21 <1.0.0",
|
|
67
67
|
"@fluentui-react-native/theme-tokens": "^0.24.2",
|
|
68
68
|
"@fluentui-react-native/theme-types": ">=0.30.2 <1.0.0",
|
|
69
69
|
"@fluentui-react-native/themed-stylesheet": "^1.4.2",
|
|
70
70
|
"@fluentui-react-native/theming-utils": ">=0.23.2 <1.0.0",
|
|
71
|
-
"@fluentui-react-native/win32-theme": ">=0.24.
|
|
72
|
-
"@fluentui/react-native": ">=0.35.
|
|
71
|
+
"@fluentui-react-native/win32-theme": ">=0.24.16 <1.0.0",
|
|
72
|
+
"@fluentui/react-native": ">=0.35.15 <1.0.0",
|
|
73
73
|
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
74
74
|
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
75
75
|
"@fortawesome/react-native-fontawesome": "^0.3.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@babel/core": "^7.8.0",
|
|
89
89
|
"@babel/runtime": "^7.8.0",
|
|
90
90
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|
|
91
|
-
"@fluentui-react-native/focus-zone": "^0.11.
|
|
91
|
+
"@fluentui-react-native/focus-zone": "^0.11.28",
|
|
92
92
|
"@fluentui-react-native/scripts": "^0.1.1",
|
|
93
93
|
"@rnx-kit/cli": "^0.16.2",
|
|
94
94
|
"@rnx-kit/metro-config": "^1.3.1",
|
|
@@ -2,7 +2,6 @@ import { Button } from '@fluentui/react-native';
|
|
|
2
2
|
import type { IFocusable } from '@fluentui-react-native/interactive-hooks';
|
|
3
3
|
import { Stack } from '@fluentui-react-native/stack';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { findNodeHandle } from 'react-native';
|
|
6
5
|
import { stackStyle } from '../../Common/styles';
|
|
7
6
|
|
|
8
7
|
export const ButtonFocusTest_deprecated: React.FunctionComponent = () => {
|
|
@@ -14,8 +13,6 @@ export const ButtonFocusTest_deprecated: React.FunctionComponent = () => {
|
|
|
14
13
|
const onFocus = React.useCallback(() => {
|
|
15
14
|
setState({ focused: !state.focused });
|
|
16
15
|
if (buttonRef.current && !state.focused) {
|
|
17
|
-
const node = findNodeHandle(buttonRef.current);
|
|
18
|
-
console.log(node);
|
|
19
16
|
buttonRef.current.focus();
|
|
20
17
|
}
|
|
21
18
|
}, [state, setState]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { View, StyleSheet } from 'react-native';
|
|
3
3
|
import { Menu, MenuItem, MenuTrigger, MenuPopover, MenuList } from '@fluentui-react-native/menu';
|
|
4
|
-
import type { MenuPickerProps, CollectionItem } from './MenuPicker';
|
|
5
|
-
export
|
|
4
|
+
import type { MenuPickerProps, CollectionItem } from './MenuPicker.types';
|
|
5
|
+
export { MenuPickerProps, CollectionItem };
|
|
6
6
|
import { ButtonV1 as Button, Text } from '@fluentui/react-native';
|
|
7
7
|
import { SvgXml } from 'react-native-svg';
|
|
8
8
|
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Picker } from '@react-native-picker/picker';
|
|
3
3
|
import { testProps } from './TestProps';
|
|
4
|
+
import type { CollectionItem, MenuPickerProps } from './MenuPicker.types';
|
|
5
|
+
export { CollectionItem, MenuPickerProps };
|
|
4
6
|
|
|
5
7
|
/*
|
|
6
8
|
* The MenuPicker was created because the RN Core Picker was deprecated (preventing us from updating to RN 0.66).
|
|
7
9
|
* MenuPicker uses the community Picker package for iOS/Win32 and our own Picker for Win32/MacOS.
|
|
8
10
|
*/
|
|
9
11
|
|
|
10
|
-
export interface CollectionItem<T = string> {
|
|
11
|
-
label: string;
|
|
12
|
-
value?: T;
|
|
13
|
-
testID?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface MenuPickerProps {
|
|
17
|
-
prompt?: string;
|
|
18
|
-
selected?: string;
|
|
19
|
-
onChange?: (value: any, index?: number) => void;
|
|
20
|
-
collection?: CollectionItem[];
|
|
21
|
-
style?: any;
|
|
22
|
-
testID?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
12
|
export const MenuPicker: React.FunctionComponent<MenuPickerProps> = (props: MenuPickerProps) => {
|
|
26
13
|
const { prompt, selected, onChange, collection, style, testID } = props;
|
|
27
14
|
let selectedItemKey;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CollectionItem<T = string> {
|
|
2
|
+
label: string;
|
|
3
|
+
value?: T;
|
|
4
|
+
testID?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface MenuPickerProps {
|
|
8
|
+
prompt?: string;
|
|
9
|
+
selected?: string;
|
|
10
|
+
onChange?: (value: any, index?: number) => void;
|
|
11
|
+
collection?: CollectionItem[];
|
|
12
|
+
style?: any;
|
|
13
|
+
testID?: string;
|
|
14
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from './MenuPicker.desktop';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Button, Text, View, StyleSheet } from 'react-native';
|
|
4
|
-
import type { MenuPickerProps, CollectionItem } from './MenuPicker';
|
|
4
|
+
import type { MenuPickerProps, CollectionItem } from './MenuPicker.types';
|
|
5
|
+
export { MenuPickerProps, CollectionItem };
|
|
5
6
|
|
|
6
7
|
export const MenuPicker: React.FunctionComponent<MenuPickerProps> = (props: MenuPickerProps) => {
|
|
7
8
|
const { prompt, onChange, collection } = props;
|