@fluentui-react-native/tester 0.82.14 → 0.83.2

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.
Files changed (73) hide show
  1. package/CHANGELOG.json +163 -3
  2. package/CHANGELOG.md +48 -2
  3. package/android/build.gradle +7 -2
  4. package/app.json +23 -0
  5. package/assets/fluent_app_icon_ios.png +0 -0
  6. package/assets/fluent_app_icon_macos.png +0 -0
  7. package/assets/res/drawable/fluent_app_icon_android_background.xml +74 -0
  8. package/assets/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
  9. package/assets/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
  10. package/assets/res/mipmap-hdpi/fluent_app_icon_android.png +0 -0
  11. package/assets/res/mipmap-hdpi/fluent_app_icon_android_foreground.png +0 -0
  12. package/assets/res/mipmap-hdpi/fluent_app_icon_android_round.png +0 -0
  13. package/assets/res/mipmap-mdpi/fluent_app_icon_android.png +0 -0
  14. package/assets/res/mipmap-mdpi/fluent_app_icon_android_foreground.png +0 -0
  15. package/assets/res/mipmap-mdpi/fluent_app_icon_android_round.png +0 -0
  16. package/assets/res/mipmap-xhdpi/fluent_app_icon_android.png +0 -0
  17. package/assets/res/mipmap-xhdpi/fluent_app_icon_android_foreground.png +0 -0
  18. package/assets/res/mipmap-xhdpi/fluent_app_icon_android_round.png +0 -0
  19. package/assets/res/mipmap-xxhdpi/fluent_app_icon_android.png +0 -0
  20. package/assets/res/mipmap-xxhdpi/fluent_app_icon_android_foreground.png +0 -0
  21. package/assets/res/mipmap-xxhdpi/fluent_app_icon_android_round.png +0 -0
  22. package/assets/res/mipmap-xxxhdpi/fluent_app_icon_android.png +0 -0
  23. package/assets/res/mipmap-xxxhdpi/fluent_app_icon_android_foreground.png +0 -0
  24. package/assets/res/mipmap-xxxhdpi/fluent_app_icon_android_round.png +0 -0
  25. package/docs/ios.md +9 -9
  26. package/docs/macos.md +7 -7
  27. package/ios/Podfile.lock +9 -13
  28. package/lib/FluentTesterApp.d.ts.map +1 -1
  29. package/lib/FluentTesterApp.js +34 -3
  30. package/lib/FluentTesterApp.js.map +1 -1
  31. package/lib/TestComponents/Badge/BadgeTest.d.ts +1 -2
  32. package/lib/TestComponents/Badge/BadgeTest.d.ts.map +1 -1
  33. package/lib/TestComponents/Badge/BadgeTest.js +12 -108
  34. package/lib/TestComponents/Badge/BadgeTest.js.map +1 -1
  35. package/lib/TestComponents/Badge/BasicBadgeTest.d.ts +3 -0
  36. package/lib/TestComponents/Badge/BasicBadgeTest.d.ts.map +1 -0
  37. package/lib/TestComponents/Badge/BasicBadgeTest.js +83 -0
  38. package/lib/TestComponents/Badge/BasicBadgeTest.js.map +1 -0
  39. package/lib/TestComponents/Badge/CounterBadgeTest.d.ts +3 -0
  40. package/lib/TestComponents/Badge/CounterBadgeTest.d.ts.map +1 -0
  41. package/lib/TestComponents/Badge/CounterBadgeTest.js +24 -0
  42. package/lib/TestComponents/Badge/CounterBadgeTest.js.map +1 -0
  43. package/lib/TestComponents/Badge/PresenceBadgeTest.d.ts +3 -0
  44. package/lib/TestComponents/Badge/PresenceBadgeTest.d.ts.map +1 -0
  45. package/lib/TestComponents/Badge/PresenceBadgeTest.js +18 -0
  46. package/lib/TestComponents/Badge/PresenceBadgeTest.js.map +1 -0
  47. package/lib-commonjs/FluentTesterApp.d.ts.map +1 -1
  48. package/lib-commonjs/FluentTesterApp.js +33 -2
  49. package/lib-commonjs/FluentTesterApp.js.map +1 -1
  50. package/lib-commonjs/TestComponents/Badge/BadgeTest.d.ts +1 -2
  51. package/lib-commonjs/TestComponents/Badge/BadgeTest.d.ts.map +1 -1
  52. package/lib-commonjs/TestComponents/Badge/BadgeTest.js +15 -111
  53. package/lib-commonjs/TestComponents/Badge/BadgeTest.js.map +1 -1
  54. package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.d.ts +3 -0
  55. package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.d.ts.map +1 -0
  56. package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.js +87 -0
  57. package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.js.map +1 -0
  58. package/lib-commonjs/TestComponents/Badge/CounterBadgeTest.d.ts +3 -0
  59. package/lib-commonjs/TestComponents/Badge/CounterBadgeTest.d.ts.map +1 -0
  60. package/lib-commonjs/TestComponents/Badge/CounterBadgeTest.js +29 -0
  61. package/lib-commonjs/TestComponents/Badge/CounterBadgeTest.js.map +1 -0
  62. package/lib-commonjs/TestComponents/Badge/PresenceBadgeTest.d.ts +3 -0
  63. package/lib-commonjs/TestComponents/Badge/PresenceBadgeTest.d.ts.map +1 -0
  64. package/lib-commonjs/TestComponents/Badge/PresenceBadgeTest.js +23 -0
  65. package/lib-commonjs/TestComponents/Badge/PresenceBadgeTest.js.map +1 -0
  66. package/macos/Podfile.lock +223 -227
  67. package/package.json +18 -18
  68. package/src/FluentTesterApp.tsx +36 -3
  69. package/src/TestComponents/Badge/BadgeTest.tsx +12 -181
  70. package/src/TestComponents/Badge/BasicBadgeTest.tsx +120 -0
  71. package/src/TestComponents/Badge/CounterBadgeTest.tsx +30 -0
  72. package/src/TestComponents/Badge/PresenceBadgeTest.tsx +26 -0
  73. package/src/TestComponents/Notification/assets/play_button.svg +1 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,167 @@
2
2
  "name": "@fluentui-react-native/tester",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 05 Aug 2022 19:59:48 GMT",
5
+ "date": "Mon, 08 Aug 2022 11:50:11 GMT",
6
+ "tag": "@fluentui-react-native/tester_v0.83.2",
7
+ "version": "0.83.2",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "v.kozova13@gmail.com",
12
+ "package": "@fluentui-react-native/tester",
13
+ "commit": "b9e1f165db6bd4bfbb61ce614ede3f8b43e315d2",
14
+ "comment": "Added CounterBadge"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/tester",
19
+ "comment": "Bump @fluentui-react-native/avatar to v1.1.34",
20
+ "commit": "b9e1f165db6bd4bfbb61ce614ede3f8b43e315d2"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui-react-native/tester",
25
+ "comment": "Bump @fluentui-react-native/badge to v0.1.19",
26
+ "commit": "b9e1f165db6bd4bfbb61ce614ede3f8b43e315d2"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Sun, 07 Aug 2022 20:38:13 GMT",
33
+ "tag": "@fluentui-react-native/tester_v0.83.1",
34
+ "version": "0.83.1",
35
+ "comments": {
36
+ "patch": [
37
+ {
38
+ "author": "sanajmi@microsoft.com",
39
+ "package": "@fluentui-react-native/tester",
40
+ "commit": "757b02b2c8712c6936b615ff4e8cdfeed11352f3"
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "date": "Fri, 05 Aug 2022 23:22:37 GMT",
47
+ "tag": "@fluentui-react-native/tester_v0.83.0",
48
+ "version": "0.83.0",
49
+ "comments": {
50
+ "patch": [
51
+ {
52
+ "author": "sanajmi@microsoft.com",
53
+ "package": "@fluentui-react-native/tester",
54
+ "commit": "019d6b43385d09d2306918baa39838f522c565a6",
55
+ "comment": "Update out of date documentation"
56
+ }
57
+ ],
58
+ "minor": [
59
+ {
60
+ "author": "joannaquu@gmail.com",
61
+ "package": "@fluentui-react-native/tester",
62
+ "commit": "0d264fca5e03c4412f1d995eee43f3cc85042748",
63
+ "comment": "add support for compact mode"
64
+ },
65
+ {
66
+ "author": "beachball",
67
+ "package": "@fluentui-react-native/tester",
68
+ "comment": "Bump @fluentui-react-native/avatar to v1.1.33",
69
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
70
+ },
71
+ {
72
+ "author": "beachball",
73
+ "package": "@fluentui-react-native/tester",
74
+ "comment": "Bump @fluentui-react-native/badge to v0.1.18",
75
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
76
+ },
77
+ {
78
+ "author": "beachball",
79
+ "package": "@fluentui-react-native/tester",
80
+ "comment": "Bump @fluentui-react-native/button to v0.24.14",
81
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
82
+ },
83
+ {
84
+ "author": "beachball",
85
+ "package": "@fluentui-react-native/tester",
86
+ "comment": "Bump @fluentui-react-native/experimental-button to v0.16.14",
87
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
88
+ },
89
+ {
90
+ "author": "beachball",
91
+ "package": "@fluentui-react-native/tester",
92
+ "comment": "Bump @fluentui-react-native/experimental-checkbox to v0.12.10",
93
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
94
+ },
95
+ {
96
+ "author": "beachball",
97
+ "package": "@fluentui-react-native/tester",
98
+ "comment": "Bump @fluentui-react-native/experimental-menu-button to v0.4.17",
99
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
100
+ },
101
+ {
102
+ "author": "beachball",
103
+ "package": "@fluentui-react-native/tester",
104
+ "comment": "Bump @fluentui-react-native/experimental-tabs to v0.5.9",
105
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
106
+ },
107
+ {
108
+ "author": "beachball",
109
+ "package": "@fluentui-react-native/tester",
110
+ "comment": "Bump @fluentui-react-native/experimental-text to v0.11.1",
111
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
112
+ },
113
+ {
114
+ "author": "beachball",
115
+ "package": "@fluentui-react-native/tester",
116
+ "comment": "Bump @fluentui-react-native/icon to v0.13.4",
117
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
118
+ },
119
+ {
120
+ "author": "beachball",
121
+ "package": "@fluentui-react-native/tester",
122
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.18.1",
123
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
124
+ },
125
+ {
126
+ "author": "beachball",
127
+ "package": "@fluentui-react-native/tester",
128
+ "comment": "Bump @fluentui-react-native/menu to v1.0.23",
129
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
130
+ },
131
+ {
132
+ "author": "beachball",
133
+ "package": "@fluentui-react-native/tester",
134
+ "comment": "Bump @fluentui-react-native/notification to v0.12.0",
135
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
136
+ },
137
+ {
138
+ "author": "beachball",
139
+ "package": "@fluentui-react-native/tester",
140
+ "comment": "Bump @fluentui-react-native/stack to v0.7.3",
141
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
142
+ },
143
+ {
144
+ "author": "beachball",
145
+ "package": "@fluentui-react-native/tester",
146
+ "comment": "Bump @fluentui-react-native/switch to v0.3.1",
147
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
148
+ },
149
+ {
150
+ "author": "beachball",
151
+ "package": "@fluentui-react-native/tester",
152
+ "comment": "Bump @fluentui-react-native/text to v0.14.0",
153
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
154
+ },
155
+ {
156
+ "author": "beachball",
157
+ "package": "@fluentui-react-native/tester",
158
+ "comment": "Bump @fluentui/react-native to v0.32.5",
159
+ "commit": "b77d041fc8feb1088d2b4f1a1a755a9061148b97"
160
+ }
161
+ ]
162
+ }
163
+ },
164
+ {
165
+ "date": "Fri, 05 Aug 2022 20:00:03 GMT",
6
166
  "tag": "@fluentui-react-native/tester_v0.82.14",
7
167
  "version": "0.82.14",
8
168
  "comments": {
@@ -17,13 +177,13 @@
17
177
  "author": "beachball",
18
178
  "package": "@fluentui-react-native/tester",
19
179
  "comment": "Bump @fluentui-react-native/experimental-avatar to v0.16.1",
20
- "commit": "1e36771980f2e8e3b710949eb86e4233cad14bf1"
180
+ "commit": "162454407cd6e5fbf9c824339457c11d7f94f14c"
21
181
  },
22
182
  {
23
183
  "author": "beachball",
24
184
  "package": "@fluentui-react-native/tester",
25
185
  "comment": "Bump @fluentui-react-native/experimental-native-date-picker to v0.6.1",
26
- "commit": "1e36771980f2e8e3b710949eb86e4233cad14bf1"
186
+ "commit": "162454407cd6e5fbf9c824339457c11d7f94f14c"
27
187
  }
28
188
  ]
29
189
  }
package/CHANGELOG.md CHANGED
@@ -1,12 +1,58 @@
1
1
  # Change Log - @fluentui-react-native/tester
2
2
 
3
- This log was last generated on Fri, 05 Aug 2022 19:59:48 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 08 Aug 2022 11:50:11 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.83.2
8
+
9
+ Mon, 08 Aug 2022 11:50:11 GMT
10
+
11
+ ### Patches
12
+
13
+ - Added CounterBadge (v.kozova13@gmail.com)
14
+ - Bump @fluentui-react-native/avatar to v1.1.34
15
+ - Bump @fluentui-react-native/badge to v0.1.19
16
+
17
+ ## 0.83.1
18
+
19
+ Sun, 07 Aug 2022 20:38:13 GMT
20
+
21
+ ### Patches
22
+
23
+ - undefined (sanajmi@microsoft.com)
24
+
25
+ ## 0.83.0
26
+
27
+ Fri, 05 Aug 2022 23:22:37 GMT
28
+
29
+ ### Minor changes
30
+
31
+ - add support for compact mode (joannaquu@gmail.com)
32
+ - Bump @fluentui-react-native/avatar to v1.1.33
33
+ - Bump @fluentui-react-native/badge to v0.1.18
34
+ - Bump @fluentui-react-native/button to v0.24.14
35
+ - Bump @fluentui-react-native/experimental-button to v0.16.14
36
+ - Bump @fluentui-react-native/experimental-checkbox to v0.12.10
37
+ - Bump @fluentui-react-native/experimental-menu-button to v0.4.17
38
+ - Bump @fluentui-react-native/experimental-tabs to v0.5.9
39
+ - Bump @fluentui-react-native/experimental-text to v0.11.1
40
+ - Bump @fluentui-react-native/icon to v0.13.4
41
+ - Bump @fluentui-react-native/interactive-hooks to v0.18.1
42
+ - Bump @fluentui-react-native/menu to v1.0.23
43
+ - Bump @fluentui-react-native/notification to v0.12.0
44
+ - Bump @fluentui-react-native/stack to v0.7.3
45
+ - Bump @fluentui-react-native/switch to v0.3.1
46
+ - Bump @fluentui-react-native/text to v0.14.0
47
+ - Bump @fluentui/react-native to v0.32.5
48
+
49
+ ### Patches
50
+
51
+ - Update out of date documentation (sanajmi@microsoft.com)
52
+
7
53
  ## 0.82.14
8
54
 
9
- Fri, 05 Aug 2022 19:59:48 GMT
55
+ Fri, 05 Aug 2022 20:00:03 GMT
10
56
 
11
57
  ### Patches
12
58
 
@@ -1,6 +1,7 @@
1
1
  buildscript {
2
2
  def androidTestAppDir = "../../../node_modules/react-native-test-app/android"
3
3
  apply(from: "${androidTestAppDir}/dependencies.gradle")
4
+ apply(from: "${androidTestAppDir}/test-app-util.gradle")
4
5
 
5
6
  repositories {
6
7
  mavenCentral()
@@ -8,8 +9,12 @@ buildscript {
8
9
  }
9
10
 
10
11
  dependencies {
11
- classpath "com.android.tools.build:gradle:$androidPluginVersion"
12
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
12
+ classpath("com.android.tools.build:gradle:${androidPluginVersion}")
13
+
14
+ if (isNewArchitectureEnabled(project)) {
15
+ classpath("com.facebook.react:react-native-gradle-plugin")
16
+ classpath("de.undercouch:gradle-download-task:5.1.0")
17
+ }
13
18
  }
14
19
  }
15
20
 
package/app.json CHANGED
@@ -3,6 +3,29 @@
3
3
  "displayName": "FluentTester",
4
4
  "singleApp": "fluent-tester",
5
5
  "components": [{ "appKey": "FluentTester", "displayName": "Fluent Tester", "slug": "fluent-tester" }],
6
+ "android": {
7
+ "icons": "assets/res"
8
+ },
9
+ "ios": {
10
+ "icons": {
11
+ "primaryIcon": {
12
+ "filename": "assets/fluent_app_icon_ios.png",
13
+ "prerendered": true
14
+ }
15
+ }
16
+ },
17
+ "macos": {
18
+ "icons": {
19
+ "primaryIcon": {
20
+ "filename": "assets/fluent_app_icon_macos.png",
21
+ "prerendered": true
22
+ },
23
+ "alternateIcon": {
24
+ "filename": "assets/fluent_app_icon_macos.png",
25
+ "prerendered": true
26
+ }
27
+ }
28
+ },
6
29
  "resources": {
7
30
  "android": ["dist/res", "dist/index.android.bundle"],
8
31
  "ios": ["dist/assets", "dist/index.ios.jsbundle"],
Binary file
Binary file
@@ -0,0 +1,74 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <vector
3
+ android:height="108dp"
4
+ android:width="108dp"
5
+ android:viewportHeight="108"
6
+ android:viewportWidth="108"
7
+ xmlns:android="http://schemas.android.com/apk/res/android">
8
+ <path android:fillColor="#3DDC84"
9
+ android:pathData="M0,0h108v108h-108z"/>
10
+ <path android:fillColor="#00000000" android:pathData="M9,0L9,108"
11
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
12
+ <path android:fillColor="#00000000" android:pathData="M19,0L19,108"
13
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
14
+ <path android:fillColor="#00000000" android:pathData="M29,0L29,108"
15
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
16
+ <path android:fillColor="#00000000" android:pathData="M39,0L39,108"
17
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
18
+ <path android:fillColor="#00000000" android:pathData="M49,0L49,108"
19
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
20
+ <path android:fillColor="#00000000" android:pathData="M59,0L59,108"
21
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
22
+ <path android:fillColor="#00000000" android:pathData="M69,0L69,108"
23
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
24
+ <path android:fillColor="#00000000" android:pathData="M79,0L79,108"
25
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
26
+ <path android:fillColor="#00000000" android:pathData="M89,0L89,108"
27
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
28
+ <path android:fillColor="#00000000" android:pathData="M99,0L99,108"
29
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
30
+ <path android:fillColor="#00000000" android:pathData="M0,9L108,9"
31
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
32
+ <path android:fillColor="#00000000" android:pathData="M0,19L108,19"
33
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
34
+ <path android:fillColor="#00000000" android:pathData="M0,29L108,29"
35
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
36
+ <path android:fillColor="#00000000" android:pathData="M0,39L108,39"
37
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
38
+ <path android:fillColor="#00000000" android:pathData="M0,49L108,49"
39
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
40
+ <path android:fillColor="#00000000" android:pathData="M0,59L108,59"
41
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
42
+ <path android:fillColor="#00000000" android:pathData="M0,69L108,69"
43
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
44
+ <path android:fillColor="#00000000" android:pathData="M0,79L108,79"
45
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
46
+ <path android:fillColor="#00000000" android:pathData="M0,89L108,89"
47
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
48
+ <path android:fillColor="#00000000" android:pathData="M0,99L108,99"
49
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
50
+ <path android:fillColor="#00000000" android:pathData="M19,29L89,29"
51
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
52
+ <path android:fillColor="#00000000" android:pathData="M19,39L89,39"
53
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
54
+ <path android:fillColor="#00000000" android:pathData="M19,49L89,49"
55
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
56
+ <path android:fillColor="#00000000" android:pathData="M19,59L89,59"
57
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
58
+ <path android:fillColor="#00000000" android:pathData="M19,69L89,69"
59
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
60
+ <path android:fillColor="#00000000" android:pathData="M19,79L89,79"
61
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
62
+ <path android:fillColor="#00000000" android:pathData="M29,19L29,89"
63
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
64
+ <path android:fillColor="#00000000" android:pathData="M39,19L39,89"
65
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
66
+ <path android:fillColor="#00000000" android:pathData="M49,19L49,89"
67
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
68
+ <path android:fillColor="#00000000" android:pathData="M59,19L59,89"
69
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
70
+ <path android:fillColor="#00000000" android:pathData="M69,19L69,89"
71
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
72
+ <path android:fillColor="#00000000" android:pathData="M79,19L79,89"
73
+ android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
74
+ </vector>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <background android:drawable="@drawable/fluent_app_icon_android_background"/>
4
+ <foreground android:drawable="@mipmap/fluent_app_icon_android_foreground"/>
5
+ </adaptive-icon>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <background android:drawable="@drawable/fluent_app_icon_android_background"/>
4
+ <foreground android:drawable="@mipmap/fluent_app_icon_android_foreground"/>
5
+ </adaptive-icon>
package/docs/ios.md CHANGED
@@ -13,10 +13,10 @@ yarn
13
13
  yarn build
14
14
  ```
15
15
 
16
- 2. Then go into `apps/ios/src` folder and run pod install to pull in the project-level Cocoapod dependencies defined in the podfile, and to generate a valid xcworkspace:
16
+ 2. Then go into `apps/fluent-tester/ios` folder and run pod install to pull in the project-level Cocoapod dependencies defined in the podfile, and to generate a valid xcworkspace:
17
17
 
18
18
  ```sh
19
- cd apps/ios/src
19
+ apps/fluent-tester/ios
20
20
  pod install
21
21
  ```
22
22
 
@@ -34,7 +34,7 @@ yarn ios
34
34
  Dependencies are managed by
35
35
  [`@rnx-kit/dep-check`](https://github.com/microsoft/rnx-kit/tree/main/packages/dep-check).
36
36
  If you're looking to upgrade `react-native`, look for the `rnx-kit` section in
37
- `/apps/ios/package.json`:
37
+ `/apps/fluent-tester/package.json`:
38
38
 
39
39
  ```json
40
40
  {
@@ -64,15 +64,15 @@ You can debug native code in Xcode. To debug javascript code, you can either use
64
64
 
65
65
  ## Troubleshooting
66
66
 
67
- - The first time you yarn ios, you receive an error and have to run "FluentTester.xcworkspace" directly from Xcode. The workspace can be found in the apps/ios/src folder. After running the workspace the first time from Xcode, you will be able to `yarn ios` from the CLI.
68
- - If the packager didn't launch in a separate terminal and your iOS simulator just shows a white screen for your app, you can run `yarn start` from apps/ios to launch it separately
67
+ - The first time you yarn ios, you receive an error and have to run "FluentTester.xcworkspace" directly from Xcode. The workspace can be found in the apps/fluent-tester/ios folder. After running the workspace the first time from Xcode, you will be able to `yarn ios` from the CLI.
68
+ - If the packager didn't launch in a separate terminal and your iOS simulator just shows a white screen for your app, you can run `yarn start` from apps/fluent-tester to launch it separately
69
69
  - If you get the error: "Unable to resolve module... None of these files exist:...", close the packager and restart it by running `yarn start`. Note: you need to restart the packager when you switch to a different platform (e.g. from macOS or Android to iOS), but once it restarts you can reload the tester apps on all running platforms at once.
70
70
  - If you want to do direct debugging via xcode, after the pod install, you can launch src/FluentTester.xcworkspace and build/run the scheme "ReactTestApp"
71
71
  - If you want to have a clean rebuild of the generated iOS project, you can do the following:
72
72
 
73
73
  ```sh
74
- cd apps/ios/
75
- rm src/FluentTester.xcworkspace
76
- rm -r src/Pods/
77
- pod install --project-directory=src.
74
+ cd apps/fluent-tester/ios
75
+ rm FluentTester.xcworkspace
76
+ rm -rf Pods/
77
+ pod install
78
78
  ```
package/docs/macos.md CHANGED
@@ -13,10 +13,10 @@ yarn
13
13
  yarn build
14
14
  ```
15
15
 
16
- 2. Then go into `apps/macos/src` folder and run pod install to pull in the project-level Cocoapod dependencies defined in the podfile, and to generate a valid xcworkspace:
16
+ 2. Then go into `apps/fluent-tester/macos` folder and run pod install to pull in the project-level Cocoapod dependencies defined in the podfile, and to generate a valid xcworkspace:
17
17
 
18
18
  ```sh
19
- cd apps/macos/src
19
+ cd apps/fluent-tester/macos
20
20
  pod install
21
21
  ```
22
22
 
@@ -43,7 +43,7 @@ You can debug native code in Xcode. To debug javascript code, you can either use
43
43
  Dependencies are managed by
44
44
  [`@rnx-kit/dep-check`](https://github.com/microsoft/rnx-kit/tree/main/packages/dep-check).
45
45
  If you're looking to upgrade `react-native`, look for the `rnx-kit` section in
46
- `/apps/macos/package.json`:
46
+ `/apps/fluent-tester/package.json`:
47
47
 
48
48
  ```json
49
49
  {
@@ -69,8 +69,8 @@ You can read more about this tool here:
69
69
  - If you want to have a clean rebuild of the generated macOS project, you can do the following:
70
70
 
71
71
  ```sh
72
- cd apps/macos/
73
- rm src/FluentTester.xcworkspace
74
- rm -r src/Pods/
75
- pod install --project-directory=src.
72
+ cd apps/fluent-tester/macos
73
+ rm FluentTester.xcworkspace
74
+ rm -r Pods/
75
+ pod install
76
76
  ```
package/ios/Podfile.lock CHANGED
@@ -10,11 +10,11 @@ PODS:
10
10
  - React-jsi (= 0.66.4)
11
11
  - ReactCommon/turbomodule/core (= 0.66.4)
12
12
  - fmt (6.2.1)
13
- - FRNAvatar (0.16.0):
13
+ - FRNAvatar (0.16.1):
14
14
  - MicrosoftFluentUI (= 0.6.1)
15
15
  - MicrosoftFluentUI/Avatar_ios (= 0.6.1)
16
16
  - React
17
- - FRNDatePicker (0.6.0):
17
+ - FRNDatePicker (0.6.1):
18
18
  - MicrosoftFluentUI (= 0.6.1)
19
19
  - React
20
20
  - glog (0.3.5)
@@ -443,15 +443,14 @@ PODS:
443
443
  - React-jsi (= 0.66.4)
444
444
  - React-logger (= 0.66.4)
445
445
  - React-perflogger (= 0.66.4)
446
- - ReactTestApp-DevSupport (1.4.0):
446
+ - ReactTestApp-DevSupport (1.6.2):
447
447
  - React-Core
448
448
  - React-jsi
449
449
  - ReactTestApp-Resources (1.0.0-dev)
450
- - RNCPicker (2.4.3):
450
+ - RNCPicker (2.4.2):
451
451
  - React-Core
452
452
  - RNSVG (12.3.0):
453
453
  - React-Core
454
- - SwiftLint (0.47.1)
455
454
  - Yoga (1.14.0)
456
455
 
457
456
  DEPENDENCIES:
@@ -494,14 +493,12 @@ DEPENDENCIES:
494
493
  - ReactTestApp-Resources (from `..`)
495
494
  - "RNCPicker (from `../../../node_modules/@react-native-picker/picker`)"
496
495
  - RNSVG (from `../../../node_modules/react-native-svg`)
497
- - SwiftLint
498
496
  - Yoga (from `../../../node_modules/react-native/ReactCommon/yoga`)
499
497
 
500
498
  SPEC REPOS:
501
499
  trunk:
502
500
  - fmt
503
501
  - MicrosoftFluentUI
504
- - SwiftLint
505
502
 
506
503
  EXTERNAL SOURCES:
507
504
  boost:
@@ -587,8 +584,8 @@ SPEC CHECKSUMS:
587
584
  FBLazyVector: e5569e42a1c79ca00521846c223173a57aca1fe1
588
585
  FBReactNativeSpec: fe08c1cd7e2e205718d77ad14b34957cce949b58
589
586
  fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
590
- FRNAvatar: c516d270e12c0f6bf44bc12da08a5b244bdf4e1a
591
- FRNDatePicker: a5e655082ae767dbd7b8967996347216a915994b
587
+ FRNAvatar: 106dad851d08d0cea35d56310b64db6a065c2099
588
+ FRNDatePicker: 75eb1d59c15ec0cfe681e91316105cd2fc206bea
592
589
  glog: 5337263514dd6f09803962437687240c5dc39aa4
593
590
  MicrosoftFluentUI: 28925cbf24aa550b9942f844d293b90d1a5db330
594
591
  RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9
@@ -617,11 +614,10 @@ SPEC CHECKSUMS:
617
614
  React-RCTVibration: e3ffca672dd3772536cb844274094b0e2c31b187
618
615
  React-runtimeexecutor: dec32ee6f2e2a26e13e58152271535fadff5455a
619
616
  ReactCommon: 57b69f6383eafcbd7da625bfa6003810332313c4
620
- ReactTestApp-DevSupport: f304d297706114319929405239789b443b5c2fee
621
- ReactTestApp-Resources: 810cb22ae7c4e042ce930887b2665f26d8011498
622
- RNCPicker: a99807a74d9cd65c394f6e2a6c843a377b355b4d
617
+ ReactTestApp-DevSupport: 2fa32bc5aec307737d9836a8e40dfaa3745e7525
618
+ ReactTestApp-Resources: ecba662266ac5af3e30e1e3004c0fa8c0298b61a
619
+ RNCPicker: 0250e95ad170569a96f5b0555cdd5e65b9084dca
623
620
  RNSVG: 302bfc9905bd8122f08966dc2ce2d07b7b52b9f8
624
- SwiftLint: f80f1be7fa96d30e0aa68e58d45d4ea1ccaac519
625
621
  Yoga: e7dc4e71caba6472ff48ad7d234389b91dadc280
626
622
 
627
623
  PODFILE CHECKSUM: 471bcded6dd3e64a1865525c60e6a27d0b4961a9
@@ -1 +1 @@
1
- {"version":3,"file":"FluentTesterApp.d.ts","sourceRoot":"","sources":["../src/FluentTesterApp.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMjE,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAMtE,CAAC"}
1
+ {"version":3,"file":"FluentTesterApp.d.ts","sourceRoot":"","sources":["../src/FluentTesterApp.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAiCjE,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAYtE,CAAC"}
@@ -2,13 +2,44 @@
2
2
  import { __assign } from "tslib";
3
3
  import { ThemeProvider } from '@fluentui-react-native/theme';
4
4
  import * as React from 'react';
5
- import { Platform } from 'react-native';
5
+ import { Platform, useWindowDimensions } from 'react-native';
6
6
  import { FluentTester } from './FluentTester';
7
7
  import { tests } from './testPages';
8
8
  import { testerTheme } from './theme/index';
9
- var isMobile = Platform.OS == 'android' || (Platform.OS === 'ios' && Platform.isPad === false);
9
+ /**
10
+ * Hook that "guesses" our Size Class on iOS based on our window width.
11
+ * Note: this is hacky and should not be used.
12
+ *
13
+ * For more information about Size Classes, see the following:
14
+ * https://developer.apple.com/documentation/uikit/uitraitcollection
15
+ * https://developer.apple.com/design/human-interface-guidelines/foundations/layout/#platform-considerations
16
+ * @returns SizeClassIOS: enum determining our size class
17
+ */
18
+ var useSizeClassIOS_DO_NOT_USE = function () {
19
+ if (Platform.OS === 'ios') {
20
+ /**
21
+ * Technically this violates the rules of hooks (calling hooks inside conditions) but Platform.OS checks are pretty non-conditional.
22
+ * This is necessary because useWindowDimensions() does not work in win32.
23
+ */
24
+ // eslint-disable-next-line react-hooks/rules-of-hooks
25
+ var width = useWindowDimensions().width;
26
+ if (Platform.isPad && width > 375) {
27
+ return 'regular';
28
+ }
29
+ else {
30
+ return 'compact';
31
+ }
32
+ }
33
+ else {
34
+ return undefined;
35
+ }
36
+ };
10
37
  export var FluentTesterApp = function (props) {
38
+ var sizeClass = useSizeClassIOS_DO_NOT_USE();
39
+ var isMobile = Platform.OS == 'android' || (Platform.OS === 'ios' && Platform.isPad === false);
40
+ // If on iPad we are presented in a Split View or Slide Over context, show the single pane view.
41
+ var shouldShowSinglePane = isMobile || (!isMobile && sizeClass === 'compact');
11
42
  return (React.createElement(ThemeProvider, { theme: testerTheme },
12
- React.createElement(FluentTester, __assign({ enabledTests: tests, enableSinglePaneView: isMobile }, props))));
43
+ React.createElement(FluentTester, __assign({ enabledTests: tests, enableSinglePaneView: shouldShowSinglePane }, props))));
13
44
  };
14
45
  //# sourceMappingURL=FluentTesterApp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FluentTesterApp.js","sourceRoot":"","sources":["../src/FluentTesterApp.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAqB,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,IAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,IAAI,SAAS,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,QAAQ,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAEjG,MAAM,CAAC,IAAM,eAAe,GAA+C,UAAC,KAAK;IAC/E,OAAO,CACL,oBAAC,aAAa,IAAC,KAAK,EAAE,WAAW;QAC/B,oBAAC,YAAY,aAAC,YAAY,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,IAAM,KAAK,EAAI,CAClE,CACjB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"FluentTesterApp.js","sourceRoot":"","sources":["../src/FluentTesterApp.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAqB,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C;;;;;;;;GAQG;AACH,IAAM,0BAA0B,GAAuB;IACrD,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;QACzB;;;WAGG;QACH,sDAAsD;QACtD,IAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC,KAAK,CAAC;QAC1C,IAAI,QAAQ,CAAC,KAAK,IAAI,KAAK,GAAG,GAAG,EAAE;YACjC,OAAO,SAAS,CAAC;SAClB;aAAM;YACL,OAAO,SAAS,CAAC;SAClB;KACF;SAAM;QACL,OAAO,SAAS,CAAC;KAClB;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAA+C,UAAC,KAAK;IAC/E,IAAM,SAAS,GAAG,0BAA0B,EAAE,CAAC;IAC/C,IAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,IAAI,SAAS,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,QAAQ,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAEjG,gGAAgG;IAChG,IAAM,oBAAoB,GAAG,QAAQ,IAAI,CAAC,CAAC,QAAQ,IAAI,SAAS,KAAK,SAAS,CAAC,CAAC;IAEhF,OAAO,CACL,oBAAC,aAAa,IAAC,KAAK,EAAE,WAAW;QAC/B,oBAAC,YAAY,aAAC,YAAY,EAAE,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,IAAM,KAAK,EAAI,CAC9E,CACjB,CAAC;AACJ,CAAC,CAAC"}