@fluentui-react-native/tester 0.51.1 → 0.51.5
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 +163 -1
- package/CHANGELOG.md +51 -2
- package/lib/FluentTester/TestComponents/Badge/BadgeTest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Badge/BadgeTest.js +12 -2
- package/lib/FluentTester/TestComponents/Badge/BadgeTest.js.map +1 -1
- package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.d.ts +3 -0
- package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.d.ts.map +1 -0
- package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.js +32 -0
- package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.js.map +1 -0
- package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonTest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonTest.js +5 -0
- package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonTest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Badge/BadgeTest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Badge/BadgeTest.js +11 -1
- package/lib-commonjs/FluentTester/TestComponents/Badge/BadgeTest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.d.ts +3 -0
- package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.d.ts.map +1 -0
- package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.js +37 -0
- package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.js.map +1 -0
- package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonTest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonTest.js +5 -0
- package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonTest.js.map +1 -1
- package/package.json +9 -9
- package/src/FluentTester/TestComponents/Badge/BadgeTest.tsx +14 -1
- package/src/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.tsx +43 -0
- package/src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx +5 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,169 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 28 Jan 2022 20:52:02 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.51.5",
|
|
7
|
+
"version": "0.51.5",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.3.1",
|
|
14
|
+
"commit": "7444b2ae84923594dc3c835b2b6d60dd75913410"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"comment": "Bump @fluentui/react-native to v0.27.23",
|
|
20
|
+
"commit": "7444b2ae84923594dc3c835b2b6d60dd75913410"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Thu, 27 Jan 2022 10:39:35 GMT",
|
|
27
|
+
"tag": "@fluentui-react-native/tester_v0.51.4",
|
|
28
|
+
"version": "0.51.4",
|
|
29
|
+
"comments": {
|
|
30
|
+
"patch": [
|
|
31
|
+
{
|
|
32
|
+
"author": "v.kozlova13@gmail.com",
|
|
33
|
+
"package": "@fluentui-react-native/tester",
|
|
34
|
+
"commit": "23fc5537a032d1e421db408b0f1257ed5677f798",
|
|
35
|
+
"comment": "Added Presence Badge"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@fluentui-react-native/tester",
|
|
40
|
+
"comment": "Bump @fluentui-react-native/badge to v0.0.7",
|
|
41
|
+
"commit": "23fc5537a032d1e421db408b0f1257ed5677f798"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"date": "Wed, 26 Jan 2022 20:31:04 GMT",
|
|
48
|
+
"tag": "@fluentui-react-native/tester_v0.51.3",
|
|
49
|
+
"version": "0.51.3",
|
|
50
|
+
"comments": {
|
|
51
|
+
"patch": [
|
|
52
|
+
{
|
|
53
|
+
"author": "ruaraki@microsoft.com",
|
|
54
|
+
"package": "@fluentui-react-native/tester",
|
|
55
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4",
|
|
56
|
+
"comment": "Let's add some tests"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@fluentui-react-native/tester",
|
|
61
|
+
"comment": "Bump @fluentui-react-native/badge to v0.0.6",
|
|
62
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@fluentui-react-native/tester",
|
|
67
|
+
"comment": "Bump @fluentui-react-native/button to v0.21.18",
|
|
68
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@fluentui-react-native/tester",
|
|
73
|
+
"comment": "Bump @fluentui-react-native/experimental-button to v0.12.0",
|
|
74
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"author": "beachball",
|
|
78
|
+
"package": "@fluentui-react-native/tester",
|
|
79
|
+
"comment": "Bump @fluentui-react-native/experimental-checkbox to v0.6.4",
|
|
80
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "beachball",
|
|
84
|
+
"package": "@fluentui-react-native/tester",
|
|
85
|
+
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.3.0",
|
|
86
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "beachball",
|
|
90
|
+
"package": "@fluentui-react-native/tester",
|
|
91
|
+
"comment": "Bump @fluentui-react-native/experimental-tabs to v0.4.17",
|
|
92
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"author": "beachball",
|
|
96
|
+
"package": "@fluentui-react-native/tester",
|
|
97
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.12.1",
|
|
98
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"author": "beachball",
|
|
102
|
+
"package": "@fluentui-react-native/tester",
|
|
103
|
+
"comment": "Bump @fluentui/react-native to v0.27.22",
|
|
104
|
+
"commit": "1f6a66699e8a06bfd55a613ee9019ba8ca27d0b4"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"date": "Wed, 26 Jan 2022 17:02:27 GMT",
|
|
111
|
+
"tag": "@fluentui-react-native/tester_v0.51.2",
|
|
112
|
+
"version": "0.51.2",
|
|
113
|
+
"comments": {
|
|
114
|
+
"patch": [
|
|
115
|
+
{
|
|
116
|
+
"author": "beachball",
|
|
117
|
+
"package": "@fluentui-react-native/tester",
|
|
118
|
+
"comment": "Bump @fluentui-react-native/badge to v0.0.5",
|
|
119
|
+
"commit": "883ef66b94a1efb5d429c5ecad015f312be3b4c3"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"author": "beachball",
|
|
123
|
+
"package": "@fluentui-react-native/tester",
|
|
124
|
+
"comment": "Bump @fluentui-react-native/button to v0.21.17",
|
|
125
|
+
"commit": "883ef66b94a1efb5d429c5ecad015f312be3b4c3"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"author": "beachball",
|
|
129
|
+
"package": "@fluentui-react-native/tester",
|
|
130
|
+
"comment": "Bump @fluentui-react-native/experimental-button to v0.11.21",
|
|
131
|
+
"commit": "883ef66b94a1efb5d429c5ecad015f312be3b4c3"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"author": "beachball",
|
|
135
|
+
"package": "@fluentui-react-native/tester",
|
|
136
|
+
"comment": "Bump @fluentui-react-native/experimental-checkbox to v0.6.3",
|
|
137
|
+
"commit": "883ef66b94a1efb5d429c5ecad015f312be3b4c3"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"author": "beachball",
|
|
141
|
+
"package": "@fluentui-react-native/tester",
|
|
142
|
+
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.2.25",
|
|
143
|
+
"commit": "883ef66b94a1efb5d429c5ecad015f312be3b4c3"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"author": "beachball",
|
|
147
|
+
"package": "@fluentui-react-native/tester",
|
|
148
|
+
"comment": "Bump @fluentui-react-native/experimental-tabs to v0.4.16",
|
|
149
|
+
"commit": "883ef66b94a1efb5d429c5ecad015f312be3b4c3"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"author": "beachball",
|
|
153
|
+
"package": "@fluentui-react-native/tester",
|
|
154
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.12.0",
|
|
155
|
+
"commit": "883ef66b94a1efb5d429c5ecad015f312be3b4c3"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"author": "beachball",
|
|
159
|
+
"package": "@fluentui-react-native/tester",
|
|
160
|
+
"comment": "Bump @fluentui/react-native to v0.27.21",
|
|
161
|
+
"commit": "883ef66b94a1efb5d429c5ecad015f312be3b4c3"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"date": "Tue, 25 Jan 2022 21:55:31 GMT",
|
|
6
168
|
"tag": "@fluentui-react-native/tester_v0.51.1",
|
|
7
169
|
"version": "0.51.1",
|
|
8
170
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,61 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tester
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 28 Jan 2022 20:52:02 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.51.5
|
|
8
|
+
|
|
9
|
+
Fri, 28 Jan 2022 20:52:02 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/experimental-menu-button to v0.3.1
|
|
14
|
+
- Bump @fluentui/react-native to v0.27.23
|
|
15
|
+
|
|
16
|
+
## 0.51.4
|
|
17
|
+
|
|
18
|
+
Thu, 27 Jan 2022 10:39:35 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- Added Presence Badge (v.kozlova13@gmail.com)
|
|
23
|
+
- Bump @fluentui-react-native/badge to v0.0.7
|
|
24
|
+
|
|
25
|
+
## 0.51.3
|
|
26
|
+
|
|
27
|
+
Wed, 26 Jan 2022 20:31:04 GMT
|
|
28
|
+
|
|
29
|
+
### Patches
|
|
30
|
+
|
|
31
|
+
- Let's add some tests (ruaraki@microsoft.com)
|
|
32
|
+
- Bump @fluentui-react-native/badge to v0.0.6
|
|
33
|
+
- Bump @fluentui-react-native/button to v0.21.18
|
|
34
|
+
- Bump @fluentui-react-native/experimental-button to v0.12.0
|
|
35
|
+
- Bump @fluentui-react-native/experimental-checkbox to v0.6.4
|
|
36
|
+
- Bump @fluentui-react-native/experimental-menu-button to v0.3.0
|
|
37
|
+
- Bump @fluentui-react-native/experimental-tabs to v0.4.17
|
|
38
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.12.1
|
|
39
|
+
- Bump @fluentui/react-native to v0.27.22
|
|
40
|
+
|
|
41
|
+
## 0.51.2
|
|
42
|
+
|
|
43
|
+
Wed, 26 Jan 2022 17:02:27 GMT
|
|
44
|
+
|
|
45
|
+
### Patches
|
|
46
|
+
|
|
47
|
+
- Bump @fluentui-react-native/badge to v0.0.5
|
|
48
|
+
- Bump @fluentui-react-native/button to v0.21.17
|
|
49
|
+
- Bump @fluentui-react-native/experimental-button to v0.11.21
|
|
50
|
+
- Bump @fluentui-react-native/experimental-checkbox to v0.6.3
|
|
51
|
+
- Bump @fluentui-react-native/experimental-menu-button to v0.2.25
|
|
52
|
+
- Bump @fluentui-react-native/experimental-tabs to v0.4.16
|
|
53
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.12.0
|
|
54
|
+
- Bump @fluentui/react-native to v0.27.21
|
|
55
|
+
|
|
7
56
|
## 0.51.1
|
|
8
57
|
|
|
9
|
-
Tue, 25 Jan 2022 21:
|
|
58
|
+
Tue, 25 Jan 2022 21:55:31 GMT
|
|
10
59
|
|
|
11
60
|
### Patches
|
|
12
61
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BadgeTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Badge/BadgeTest.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"BadgeTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Badge/BadgeTest.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAwE9B,CAAC;AAUF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAa7B,CAAC"}
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { BADGE_TESTPAGE } from './consts';
|
|
5
5
|
import { Test } from '../Test';
|
|
6
6
|
import { View, Platform, Text } from 'react-native';
|
|
7
|
-
import { Badge, CompressibleBadge } from '@fluentui-react-native/badge';
|
|
7
|
+
import { Badge, CompressibleBadge, PresenceBadge } from '@fluentui-react-native/badge';
|
|
8
8
|
import BadgeSvg from './oof.svg';
|
|
9
9
|
export var BasicBadge = function () {
|
|
10
10
|
var svgProps = {
|
|
@@ -53,7 +53,17 @@ export var BasicBadge = function () {
|
|
|
53
53
|
React.createElement(StyledBadge, { appearance: "outline", text: "styled badge" }),
|
|
54
54
|
React.createElement(Text, null, "Compressible badge"),
|
|
55
55
|
React.createElement(CompressibleBadge, null),
|
|
56
|
-
React.createElement(CompressibleBadge, { text: "Basic compressible" })
|
|
56
|
+
React.createElement(CompressibleBadge, { text: "Basic compressible" }),
|
|
57
|
+
svgIconsEnabled && (React.createElement(React.Fragment, null,
|
|
58
|
+
React.createElement(Text, null, "Presence Badge"),
|
|
59
|
+
React.createElement(PresenceBadge, { presence: "available", size: "largest" }),
|
|
60
|
+
React.createElement(PresenceBadge, { presence: "available", isOutOfOffice: true, size: "large" }),
|
|
61
|
+
React.createElement(PresenceBadge, { presence: "doNotDisturb", text: "doNotDisturb", isOutOfOffice: true }),
|
|
62
|
+
React.createElement(PresenceBadge, { presence: "away", size: "small" }),
|
|
63
|
+
React.createElement(PresenceBadge, { presence: "busy", size: "smallest" }),
|
|
64
|
+
React.createElement(PresenceBadge, { presence: "offline" }),
|
|
65
|
+
React.createElement(PresenceBadge, { presence: "outOfOffice" }),
|
|
66
|
+
React.createElement(PresenceBadge, { presence: "away" })))));
|
|
57
67
|
};
|
|
58
68
|
var badgeSections = [
|
|
59
69
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BadgeTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Badge/BadgeTest.tsx"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,IAAI,EAA+B,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"BadgeTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Badge/BadgeTest.tsx"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,IAAI,EAA+B,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,QAAQ,MAAM,WAAW,CAAC;AAIjC,MAAM,CAAC,IAAM,UAAU,GAA4B;IACjD,IAAM,QAAQ,GAAiB;QAC7B,GAAG,EAAE,QAAQ;QACb,OAAO,EAAE,WAAW;KACrB,CAAC;IAEF,IAAM,gBAAgB,GAAG;QACvB,UAAU,EAAE,OAAO;QACnB,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,EAAE;KACb,CAAC;IAEF,IAAM,aAAa,GAAG,KAAK,CAAC,SAAS,CAAC;QACpC,WA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GAAG;YACpC,oBAAC,aAAa,IAAC,QAAQ,EAAC,aAAa,GAAG;YACxC,oBAAC,aAAa,IAAC,QAAQ,EAAC,MAAM,GAAG,CAChC,CACJ,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,aAAa,GAAkB;IACnC;QACE,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,UAAU;KACtB;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,SAAS,GAA4B;IAChD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,MAAM;QACnB,SAAS,EAAE,cAAc;QACzB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GACf,uSAAuS,CAAC;IAE1S,OAAO,oBAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAS,CAAC;AAC5G,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonHOCTestSection.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAmCjC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Button } from '@fluentui-react-native/experimental-button';
|
|
2
|
+
import { Text } from '@fluentui-react-native/experimental-text';
|
|
3
|
+
import { Icon } from '@fluentui-react-native/icon';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { View } from 'react-native';
|
|
6
|
+
import { commonTestStyles, stackStyle } from '../Common/styles';
|
|
7
|
+
export var ButtonHOCTest = function () {
|
|
8
|
+
var buttonRef = React.useRef(null);
|
|
9
|
+
var CustomText = Text.customize({ fontSize: 'header', color: 'hotpink' });
|
|
10
|
+
var CustomButton = Button.customize({ backgroundColor: 'pink' });
|
|
11
|
+
var ComposedButton = Button.compose({
|
|
12
|
+
slots: {
|
|
13
|
+
root: View,
|
|
14
|
+
icon: Icon,
|
|
15
|
+
content: CustomText,
|
|
16
|
+
},
|
|
17
|
+
slotProps: {
|
|
18
|
+
content: {
|
|
19
|
+
style: { marginTop: -1, marginBottom: 1, marginStart: 0, marginEnd: -2 },
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
return (React.createElement(View, { style: stackStyle },
|
|
24
|
+
React.createElement(CustomButton, { style: commonTestStyles.vmargin, componentRef: buttonRef }, "Customized Button with ref"),
|
|
25
|
+
React.createElement(Button, { style: commonTestStyles.vmargin, onClick: function () {
|
|
26
|
+
if (buttonRef.current) {
|
|
27
|
+
buttonRef.current.focus();
|
|
28
|
+
}
|
|
29
|
+
} }, "Press to focus Customized Button"),
|
|
30
|
+
React.createElement(ComposedButton, { style: commonTestStyles.vmargin }, "Composed button using customized Text for text slot")));
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=ButtonHOCTestSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonHOCTestSection.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEhE,MAAM,CAAC,IAAM,aAAa,GAA4B;IACpD,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrC,IAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5E,IAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,IAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC;QACpC,KAAK,EAAE;YACL,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,UAAU;SACpB;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE;aACzE;SACF;KACF,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,UAAU;QACrB,oBAAC,YAAY,IAAC,KAAK,EAAE,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,iCAEvD;QACf,oBAAC,MAAM,IACL,KAAK,EAAE,gBAAgB,CAAC,OAAO,EAC/B,OAAO,EAAE;gBACP,IAAI,SAAS,CAAC,OAAO,EAAE;oBACrB,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;iBAC3B;YACH,CAAC,uCAGM;QACT,oBAAC,cAAc,IAAC,KAAK,EAAE,gBAAgB,CAAC,OAAO,0DAAsE,CAChH,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2C/B,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,iBAa1C,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { ButtonIconTest } from './ButtonIconTestSection';
|
|
|
7
7
|
import { ButtonSizeTest } from './ButtonSizeTestSection';
|
|
8
8
|
import { ButtonShapeTest } from './ButtonShapeTestSection';
|
|
9
9
|
import { E2EButtonExperimentalTest } from './E2EButtonTest';
|
|
10
|
+
import { ButtonHOCTest } from './ButtonHOCTestSection';
|
|
10
11
|
var buttonSections = [
|
|
11
12
|
{
|
|
12
13
|
name: 'Button Variants',
|
|
@@ -29,6 +30,10 @@ var buttonSections = [
|
|
|
29
30
|
name: 'Sizes',
|
|
30
31
|
component: ButtonSizeTest,
|
|
31
32
|
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Customize, Compose, and Ref',
|
|
35
|
+
component: ButtonHOCTest,
|
|
36
|
+
},
|
|
32
37
|
{
|
|
33
38
|
name: 'E2E Button Testing',
|
|
34
39
|
component: E2EButtonExperimentalTest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,IAAI,EAA+B,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,IAAI,EAA+B,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,IAAM,cAAc,GAAkB;IACpC;QACE,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,6BAA6B;QACrC,SAAS,EAAE,iBAAiB;KAC7B;IACD;QACE,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,eAAe;KAC3B;IACD;QACE,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,cAAc;KAC1B;IACD;QACE,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,gBAAgB;KAC5B;IACD;QACE,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,cAAc;KAC1B;IACD;QACE,IAAI,EAAE,6BAA6B;QACnC,SAAS,EAAE,aAAa;KACzB;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,SAAS,EAAE,yBAAyB;KACrC;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,sBAAsB,GAA4B;IAC7D,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,cAAc;QACzB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GACf,qyBAAqyB,CAAC;IAExyB,OAAO,oBAAC,IAAI,IAAC,IAAI,EAAC,0BAA0B,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACtH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BadgeTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Badge/BadgeTest.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"BadgeTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Badge/BadgeTest.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAwE9B,CAAC;AAUF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAa7B,CAAC"}
|
|
@@ -56,7 +56,17 @@ var BasicBadge = function () {
|
|
|
56
56
|
React.createElement(StyledBadge, { appearance: "outline", text: "styled badge" }),
|
|
57
57
|
React.createElement(react_native_1.Text, null, "Compressible badge"),
|
|
58
58
|
React.createElement(badge_1.CompressibleBadge, null),
|
|
59
|
-
React.createElement(badge_1.CompressibleBadge, { text: "Basic compressible" })
|
|
59
|
+
React.createElement(badge_1.CompressibleBadge, { text: "Basic compressible" }),
|
|
60
|
+
svgIconsEnabled && (React.createElement(React.Fragment, null,
|
|
61
|
+
React.createElement(react_native_1.Text, null, "Presence Badge"),
|
|
62
|
+
React.createElement(badge_1.PresenceBadge, { presence: "available", size: "largest" }),
|
|
63
|
+
React.createElement(badge_1.PresenceBadge, { presence: "available", isOutOfOffice: true, size: "large" }),
|
|
64
|
+
React.createElement(badge_1.PresenceBadge, { presence: "doNotDisturb", text: "doNotDisturb", isOutOfOffice: true }),
|
|
65
|
+
React.createElement(badge_1.PresenceBadge, { presence: "away", size: "small" }),
|
|
66
|
+
React.createElement(badge_1.PresenceBadge, { presence: "busy", size: "smallest" }),
|
|
67
|
+
React.createElement(badge_1.PresenceBadge, { presence: "offline" }),
|
|
68
|
+
React.createElement(badge_1.PresenceBadge, { presence: "outOfOffice" }),
|
|
69
|
+
React.createElement(badge_1.PresenceBadge, { presence: "away" })))));
|
|
60
70
|
};
|
|
61
71
|
exports.BasicBadge = BasicBadge;
|
|
62
72
|
var badgeSections = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BadgeTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Badge/BadgeTest.tsx"],"names":[],"mappings":";;;;AAAA,uDAAuD;AACvD,wDAA+B;AAC/B,mCAA0C;AAC1C,gCAA4D;AAC5D,6CAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"BadgeTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Badge/BadgeTest.tsx"],"names":[],"mappings":";;;;AAAA,uDAAuD;AACvD,wDAA+B;AAC/B,mCAA0C;AAC1C,gCAA4D;AAC5D,6CAAoD;AACpD,sDAAuF;AACvF,mEAAiC;AAI1B,IAAM,UAAU,GAA4B;IACjD,IAAM,QAAQ,GAAiB;QAC7B,GAAG,EAAE,iBAAQ;QACb,OAAO,EAAE,WAAW;KACrB,CAAC;IAEF,IAAM,gBAAgB,GAAG;QACvB,UAAU,EAAE,OAAO;QACnB,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,EAAE;KACb,CAAC;IAEF,IAAM,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,EAAC,UAAU,GAAG;YACjD,oBAAC,qBAAa,IAAC,QAAQ,EAAC,SAAS,GAAG;YACpC,oBAAC,qBAAa,IAAC,QAAQ,EAAC,aAAa,GAAG;YACxC,oBAAC,qBAAa,IAAC,QAAQ,EAAC,MAAM,GAAG,CAChC,CACJ,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AAxEW,QAAA,UAAU,cAwErB;AAEF,IAAM,aAAa,GAAkB;IACnC;QACE,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,uBAAc;QACtB,SAAS,EAAE,kBAAU;KACtB;CACF,CAAC;AAEK,IAAM,SAAS,GAA4B;IAChD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,MAAM;QACnB,SAAS,EAAE,cAAc;QACzB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GACf,uSAAuS,CAAC;IAE1S,OAAO,oBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAS,CAAC;AAC5G,CAAC,CAAC;AAbW,QAAA,SAAS,aAapB"}
|
package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonHOCTestSection.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAmCjC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ButtonHOCTest = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var experimental_button_1 = require("@fluentui-react-native/experimental-button");
|
|
6
|
+
var experimental_text_1 = require("@fluentui-react-native/experimental-text");
|
|
7
|
+
var icon_1 = require("@fluentui-react-native/icon");
|
|
8
|
+
var React = (0, tslib_1.__importStar)(require("react"));
|
|
9
|
+
var react_native_1 = require("react-native");
|
|
10
|
+
var styles_1 = require("../Common/styles");
|
|
11
|
+
var ButtonHOCTest = function () {
|
|
12
|
+
var buttonRef = React.useRef(null);
|
|
13
|
+
var CustomText = experimental_text_1.Text.customize({ fontSize: 'header', color: 'hotpink' });
|
|
14
|
+
var CustomButton = experimental_button_1.Button.customize({ backgroundColor: 'pink' });
|
|
15
|
+
var ComposedButton = experimental_button_1.Button.compose({
|
|
16
|
+
slots: {
|
|
17
|
+
root: react_native_1.View,
|
|
18
|
+
icon: icon_1.Icon,
|
|
19
|
+
content: CustomText,
|
|
20
|
+
},
|
|
21
|
+
slotProps: {
|
|
22
|
+
content: {
|
|
23
|
+
style: { marginTop: -1, marginBottom: 1, marginStart: 0, marginEnd: -2 },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
return (React.createElement(react_native_1.View, { style: styles_1.stackStyle },
|
|
28
|
+
React.createElement(CustomButton, { style: styles_1.commonTestStyles.vmargin, componentRef: buttonRef }, "Customized Button with ref"),
|
|
29
|
+
React.createElement(experimental_button_1.Button, { style: styles_1.commonTestStyles.vmargin, onClick: function () {
|
|
30
|
+
if (buttonRef.current) {
|
|
31
|
+
buttonRef.current.focus();
|
|
32
|
+
}
|
|
33
|
+
} }, "Press to focus Customized Button"),
|
|
34
|
+
React.createElement(ComposedButton, { style: styles_1.commonTestStyles.vmargin }, "Composed button using customized Text for text slot")));
|
|
35
|
+
};
|
|
36
|
+
exports.ButtonHOCTest = ButtonHOCTest;
|
|
37
|
+
//# sourceMappingURL=ButtonHOCTestSection.js.map
|
package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonHOCTestSection.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonHOCTestSection.tsx"],"names":[],"mappings":";;;;AAAA,kFAAoE;AACpE,8EAAgE;AAChE,oDAAmD;AACnD,wDAA+B;AAC/B,6CAAoC;AACpC,2CAAgE;AAEzD,IAAM,aAAa,GAA4B;IACpD,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrC,IAAM,UAAU,GAAG,wBAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5E,IAAM,YAAY,GAAG,4BAAM,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,IAAM,cAAc,GAAG,4BAAM,CAAC,OAAO,CAAC;QACpC,KAAK,EAAE;YACL,IAAI,EAAE,mBAAI;YACV,IAAI,EAAE,WAAI;YACV,OAAO,EAAE,UAAU;SACpB;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE;aACzE;SACF;KACF,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,mBAAI,IAAC,KAAK,EAAE,mBAAU;QACrB,oBAAC,YAAY,IAAC,KAAK,EAAE,yBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,iCAEvD;QACf,oBAAC,4BAAM,IACL,KAAK,EAAE,yBAAgB,CAAC,OAAO,EAC/B,OAAO,EAAE;gBACP,IAAI,SAAS,CAAC,OAAO,EAAE;oBACrB,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;iBAC3B;YACH,CAAC,uCAGM;QACT,oBAAC,cAAc,IAAC,KAAK,EAAE,yBAAgB,CAAC,OAAO,0DAAsE,CAChH,CACR,CAAC;AACJ,CAAC,CAAC;AAnCW,QAAA,aAAa,iBAmCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2C/B,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,iBAa1C,CAAC"}
|
|
@@ -11,6 +11,7 @@ var ButtonIconTestSection_1 = require("./ButtonIconTestSection");
|
|
|
11
11
|
var ButtonSizeTestSection_1 = require("./ButtonSizeTestSection");
|
|
12
12
|
var ButtonShapeTestSection_1 = require("./ButtonShapeTestSection");
|
|
13
13
|
var E2EButtonTest_1 = require("./E2EButtonTest");
|
|
14
|
+
var ButtonHOCTestSection_1 = require("./ButtonHOCTestSection");
|
|
14
15
|
var buttonSections = [
|
|
15
16
|
{
|
|
16
17
|
name: 'Button Variants',
|
|
@@ -33,6 +34,10 @@ var buttonSections = [
|
|
|
33
34
|
name: 'Sizes',
|
|
34
35
|
component: ButtonSizeTestSection_1.ButtonSizeTest,
|
|
35
36
|
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Customize, Compose, and Ref',
|
|
39
|
+
component: ButtonHOCTestSection_1.ButtonHOCTest,
|
|
40
|
+
},
|
|
36
41
|
{
|
|
37
42
|
name: 'E2E Button Testing',
|
|
38
43
|
component: E2EButtonTest_1.E2EButtonExperimentalTest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,uEAA+D;AAC/D,qEAA6D;AAC7D,mCAAyD;AACzD,gCAA4D;AAC5D,iEAAyD;AACzD,iEAAyD;AACzD,mEAA2D;AAC3D,iDAA4D;
|
|
1
|
+
{"version":3,"file":"ButtonTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/ButtonExperimental/ButtonTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,uEAA+D;AAC/D,qEAA6D;AAC7D,mCAAyD;AACzD,gCAA4D;AAC5D,iEAAyD;AACzD,iEAAyD;AACzD,mEAA2D;AAC3D,iDAA4D;AAC5D,+DAAuD;AAEvD,IAAM,cAAc,GAAkB;IACpC;QACE,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,sCAA6B;QACrC,SAAS,EAAE,4CAAiB;KAC7B;IACD;QACE,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,wCAAe;KAC3B;IACD;QACE,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,sCAAc;KAC1B;IACD;QACE,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,0CAAgB;KAC5B;IACD;QACE,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,sCAAc;KAC1B;IACD;QACE,IAAI,EAAE,6BAA6B;QACnC,SAAS,EAAE,oCAAa;KACzB;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,SAAS,EAAE,yCAAyB;KACrC;CACF,CAAC;AAEK,IAAM,sBAAsB,GAA4B;IAC7D,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,cAAc;QACzB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GACf,qyBAAqyB,CAAC;IAExyB,OAAO,oBAAC,WAAI,IAAC,IAAI,EAAC,0BAA0B,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACtH,CAAC,CAAC;AAbW,QAAA,sBAAsB,0BAajC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.51.
|
|
3
|
+
"version": "0.51.5",
|
|
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>",
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@fluentui-react-native/android-theme": ">=0.5.4 <1.0.0",
|
|
31
31
|
"@fluentui-react-native/apple-theme": ">=0.9.8 <1.0.0",
|
|
32
|
-
"@fluentui-react-native/badge": ">=0.0.
|
|
33
|
-
"@fluentui-react-native/button": ">=0.21.
|
|
32
|
+
"@fluentui-react-native/badge": ">=0.0.7 <1.0.0",
|
|
33
|
+
"@fluentui-react-native/button": ">=0.21.18 <1.0.0",
|
|
34
34
|
"@fluentui-react-native/default-theme": ">=0.9.8 <1.0.0",
|
|
35
35
|
"@fluentui-react-native/experimental-activity-indicator": ">=0.5.10 <1.0.0",
|
|
36
36
|
"@fluentui-react-native/experimental-avatar": ">=0.14.2 <1.0.0",
|
|
37
|
-
"@fluentui-react-native/experimental-button": "0.
|
|
38
|
-
"@fluentui-react-native/experimental-checkbox": "0.6.
|
|
37
|
+
"@fluentui-react-native/experimental-button": "0.12.0",
|
|
38
|
+
"@fluentui-react-native/experimental-checkbox": "0.6.4",
|
|
39
39
|
"@fluentui-react-native/experimental-native-date-picker": ">=0.4.1 <1.0.0",
|
|
40
40
|
"@fluentui-react-native/experimental-expander": "0.3.11",
|
|
41
|
-
"@fluentui-react-native/experimental-menu-button": ">=0.
|
|
41
|
+
"@fluentui-react-native/experimental-menu-button": ">=0.3.1 <1.0.0",
|
|
42
42
|
"@fluentui-react-native/experimental-shimmer": "0.6.13",
|
|
43
|
-
"@fluentui-react-native/experimental-tabs": "0.4.
|
|
43
|
+
"@fluentui-react-native/experimental-tabs": "0.4.17",
|
|
44
44
|
"@fluentui-react-native/experimental-text": ">=0.7.11 <1.0.0",
|
|
45
45
|
"@fluentui-react-native/framework": ">=0.7.11 <1.0.0",
|
|
46
46
|
"@fluentui-react-native/icon": "0.11.5",
|
|
47
|
-
"@fluentui-react-native/interactive-hooks": ">=0.
|
|
47
|
+
"@fluentui-react-native/interactive-hooks": ">=0.12.1 <1.0.0",
|
|
48
48
|
"@fluentui-react-native/stack": ">=0.6.11 <1.0.0",
|
|
49
49
|
"@fluentui-react-native/theme": ">=0.6.4 <1.0.0",
|
|
50
50
|
"@fluentui-react-native/theme-types": ">=0.13.3 <1.0.0",
|
|
51
51
|
"@fluentui-react-native/themed-stylesheet": "^1.3.2",
|
|
52
52
|
"@fluentui-react-native/theming-utils": ">=0.8.8 <1.0.0",
|
|
53
53
|
"@fluentui-react-native/win32-theme": ">=0.14.9 <1.0.0",
|
|
54
|
-
"@fluentui/react-native": ">=0.27.
|
|
54
|
+
"@fluentui/react-native": ">=0.27.23 <1.0.0",
|
|
55
55
|
"@react-native-community/slider": "^4.1.12",
|
|
56
56
|
"@react-native-menu/menu": "^0.1.2",
|
|
57
57
|
"@react-native-picker/picker": "^1.16.7",
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { BADGE_TESTPAGE } from './consts';
|
|
4
4
|
import { Test, TestSection, PlatformStatus } from '../Test';
|
|
5
5
|
import { View, Platform, Text } from 'react-native';
|
|
6
|
-
import { Badge, CompressibleBadge } from '@fluentui-react-native/badge';
|
|
6
|
+
import { Badge, CompressibleBadge, PresenceBadge } from '@fluentui-react-native/badge';
|
|
7
7
|
import BadgeSvg from './oof.svg';
|
|
8
8
|
|
|
9
9
|
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
@@ -65,6 +65,19 @@ export const BasicBadge: React.FunctionComponent = () => {
|
|
|
65
65
|
<Text>Compressible badge</Text>
|
|
66
66
|
<CompressibleBadge />
|
|
67
67
|
<CompressibleBadge text="Basic compressible" />
|
|
68
|
+
{svgIconsEnabled && (
|
|
69
|
+
<>
|
|
70
|
+
<Text>Presence Badge</Text>
|
|
71
|
+
<PresenceBadge presence="available" size="largest" />
|
|
72
|
+
<PresenceBadge presence="available" isOutOfOffice={true} size="large" />
|
|
73
|
+
<PresenceBadge presence="doNotDisturb" text="doNotDisturb" isOutOfOffice={true} />
|
|
74
|
+
<PresenceBadge presence="away" size="small" />
|
|
75
|
+
<PresenceBadge presence="busy" size="smallest" />
|
|
76
|
+
<PresenceBadge presence="offline" />
|
|
77
|
+
<PresenceBadge presence="outOfOffice" />
|
|
78
|
+
<PresenceBadge presence="away" />
|
|
79
|
+
</>
|
|
80
|
+
)}
|
|
68
81
|
</View>
|
|
69
82
|
);
|
|
70
83
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Button } from '@fluentui-react-native/experimental-button';
|
|
2
|
+
import { Text } from '@fluentui-react-native/experimental-text';
|
|
3
|
+
import { Icon } from '@fluentui-react-native/icon';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { View } from 'react-native';
|
|
6
|
+
import { commonTestStyles, stackStyle } from '../Common/styles';
|
|
7
|
+
|
|
8
|
+
export const ButtonHOCTest: React.FunctionComponent = () => {
|
|
9
|
+
const buttonRef = React.useRef(null);
|
|
10
|
+
const CustomText = Text.customize({ fontSize: 'header', color: 'hotpink' });
|
|
11
|
+
const CustomButton = Button.customize({ backgroundColor: 'pink' });
|
|
12
|
+
const ComposedButton = Button.compose({
|
|
13
|
+
slots: {
|
|
14
|
+
root: View,
|
|
15
|
+
icon: Icon,
|
|
16
|
+
content: CustomText,
|
|
17
|
+
},
|
|
18
|
+
slotProps: {
|
|
19
|
+
content: {
|
|
20
|
+
style: { marginTop: -1, marginBottom: 1, marginStart: 0, marginEnd: -2 },
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<View style={stackStyle}>
|
|
27
|
+
<CustomButton style={commonTestStyles.vmargin} componentRef={buttonRef}>
|
|
28
|
+
Customized Button with ref
|
|
29
|
+
</CustomButton>
|
|
30
|
+
<Button
|
|
31
|
+
style={commonTestStyles.vmargin}
|
|
32
|
+
onClick={() => {
|
|
33
|
+
if (buttonRef.current) {
|
|
34
|
+
buttonRef.current.focus();
|
|
35
|
+
}
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
Press to focus Customized Button
|
|
39
|
+
</Button>
|
|
40
|
+
<ComposedButton style={commonTestStyles.vmargin}>Composed button using customized Text for text slot</ComposedButton>
|
|
41
|
+
</View>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
@@ -7,6 +7,7 @@ import { ButtonIconTest } from './ButtonIconTestSection';
|
|
|
7
7
|
import { ButtonSizeTest } from './ButtonSizeTestSection';
|
|
8
8
|
import { ButtonShapeTest } from './ButtonShapeTestSection';
|
|
9
9
|
import { E2EButtonExperimentalTest } from './E2EButtonTest';
|
|
10
|
+
import { ButtonHOCTest } from './ButtonHOCTestSection';
|
|
10
11
|
|
|
11
12
|
const buttonSections: TestSection[] = [
|
|
12
13
|
{
|
|
@@ -30,6 +31,10 @@ const buttonSections: TestSection[] = [
|
|
|
30
31
|
name: 'Sizes',
|
|
31
32
|
component: ButtonSizeTest,
|
|
32
33
|
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Customize, Compose, and Ref',
|
|
36
|
+
component: ButtonHOCTest,
|
|
37
|
+
},
|
|
33
38
|
{
|
|
34
39
|
name: 'E2E Button Testing',
|
|
35
40
|
component: E2EButtonExperimentalTest,
|