@fluentui-react-native/tester 0.134.15 → 0.134.16
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 +76 -1
- package/CHANGELOG.md +20 -2
- package/lib/fluent-tester/src/TestComponents/Shadow/ShadowButtonTestSection.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Shadow/ShadowButtonTestSection.js +18 -7
- package/lib/fluent-tester/src/TestComponents/Shadow/ShadowButtonTestSection.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Shadow/ShadowButtonTestSection.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Shadow/ShadowButtonTestSection.js +16 -5
- package/lib-commonjs/fluent-tester/src/TestComponents/Shadow/ShadowButtonTestSection.js.map +1 -1
- package/package.json +11 -11
- package/src/TestComponents/Shadow/ShadowButtonTestSection.tsx +34 -13
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,82 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Fri, 24 Feb 2023
|
|
5
|
+
"date": "Fri, 24 Feb 2023 23:52:48 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.134.16",
|
|
7
|
+
"version": "0.134.16",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "78454019+lyzhan7@users.noreply.github.com",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211",
|
|
14
|
+
"comment": "Update shadow component to only set a style prop if it is defined"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/avatar to v1.6.9",
|
|
20
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/tester",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/badge to v0.4.30",
|
|
26
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/tester",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/button to v0.32.35",
|
|
32
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/tester",
|
|
37
|
+
"comment": "Bump @fluentui-react-native/dropdown to v0.7.32",
|
|
38
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui-react-native/tester",
|
|
43
|
+
"comment": "Bump @fluentui-react-native/experimental-button to v0.16.93",
|
|
44
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui-react-native/tester",
|
|
49
|
+
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.6.34",
|
|
50
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@fluentui-react-native/tester",
|
|
55
|
+
"comment": "Bump @fluentui-react-native/experimental-shadow to v0.2.71",
|
|
56
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@fluentui-react-native/tester",
|
|
61
|
+
"comment": "Bump @fluentui-react-native/menu to v1.4.11",
|
|
62
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@fluentui-react-native/tester",
|
|
67
|
+
"comment": "Bump @fluentui-react-native/notification to v0.21.36",
|
|
68
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@fluentui-react-native/tester",
|
|
73
|
+
"comment": "Bump @fluentui/react-native to v0.36.5",
|
|
74
|
+
"commit": "18aa3e636f05bd4a957e85842cbe8c172f040211"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"date": "Fri, 24 Feb 2023 20:39:59 GMT",
|
|
6
81
|
"tag": "@fluentui-react-native/tester_v0.134.15",
|
|
7
82
|
"version": "0.134.15",
|
|
8
83
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tester
|
|
2
2
|
|
|
3
|
-
This log was last generated on Fri, 24 Feb 2023
|
|
3
|
+
This log was last generated on Fri, 24 Feb 2023 23:52:48 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.134.16
|
|
8
|
+
|
|
9
|
+
Fri, 24 Feb 2023 23:52:48 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Update shadow component to only set a style prop if it is defined (78454019+lyzhan7@users.noreply.github.com)
|
|
14
|
+
- Bump @fluentui-react-native/avatar to v1.6.9
|
|
15
|
+
- Bump @fluentui-react-native/badge to v0.4.30
|
|
16
|
+
- Bump @fluentui-react-native/button to v0.32.35
|
|
17
|
+
- Bump @fluentui-react-native/dropdown to v0.7.32
|
|
18
|
+
- Bump @fluentui-react-native/experimental-button to v0.16.93
|
|
19
|
+
- Bump @fluentui-react-native/experimental-menu-button to v0.6.34
|
|
20
|
+
- Bump @fluentui-react-native/experimental-shadow to v0.2.71
|
|
21
|
+
- Bump @fluentui-react-native/menu to v1.4.11
|
|
22
|
+
- Bump @fluentui-react-native/notification to v0.21.36
|
|
23
|
+
- Bump @fluentui/react-native to v0.36.5
|
|
24
|
+
|
|
7
25
|
## 0.134.15
|
|
8
26
|
|
|
9
|
-
Fri, 24 Feb 2023 20:
|
|
27
|
+
Fri, 24 Feb 2023 20:39:59 GMT
|
|
10
28
|
|
|
11
29
|
### Patches
|
|
12
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShadowButtonTestSection.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Shadow/ShadowButtonTestSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ShadowButtonTestSection.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Shadow/ShadowButtonTestSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,iBAsC3C,CAAC"}
|
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Platform, View } from 'react-native';
|
|
2
|
+
import { Platform, View, StyleSheet } from 'react-native';
|
|
3
3
|
import { FAB, Text } from '@fluentui/react-native';
|
|
4
|
+
import { ButtonV1 as Button } from '@fluentui-react-native/button';
|
|
5
|
+
import { Shadow } from '@fluentui-react-native/experimental-shadow';
|
|
4
6
|
import { useFluentTheme } from '@fluentui-react-native/framework';
|
|
5
7
|
import { shadowTestPageStyles } from './ShadowTestPageStyles';
|
|
6
8
|
import { iconProps } from '../Common/iconExamples';
|
|
7
|
-
import {
|
|
9
|
+
import { stackStyle } from '../Common/styles';
|
|
10
|
+
var styles = StyleSheet.create({ marginBetweenComponentsWithShadow: { margin: 10 } });
|
|
8
11
|
var CustomFABNoShadow = FAB.customize({ shadowToken: undefined });
|
|
9
12
|
var CustomFABShadow64 = FAB.customize({
|
|
10
13
|
shadowToken: { ambient: { x: 0, y: 0, blur: 8, color: '#00000033' }, key: { x: 0, y: 32, blur: 64, color: '#0000003d' } },
|
|
11
14
|
});
|
|
15
|
+
var platformSupportsShadow = Platform.OS !== 'android';
|
|
16
|
+
var platformSupportsFAB = Platform.OS === 'ios' || Platform.OS === 'android';
|
|
12
17
|
export var ShadowButtonTestSection = function () {
|
|
13
18
|
var t = useFluentTheme();
|
|
14
|
-
if (
|
|
19
|
+
if (platformSupportsShadow) {
|
|
15
20
|
return (React.createElement(View, { style: shadowTestPageStyles(t).backgroundColor },
|
|
16
|
-
React.createElement(
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
platformSupportsShadow && platformSupportsFAB && (React.createElement(View, { style: stackStyle },
|
|
22
|
+
React.createElement(FAB, { icon: iconProps, style: styles.marginBetweenComponentsWithShadow }, "FAB with default shadow"),
|
|
23
|
+
React.createElement(CustomFABShadow64, { icon: iconProps, style: styles.marginBetweenComponentsWithShadow }, "Custom FAB with shadow64"),
|
|
24
|
+
React.createElement(CustomFABNoShadow, { icon: iconProps, style: styles.marginBetweenComponentsWithShadow }, "Custom FAB with no shadow"))),
|
|
25
|
+
platformSupportsShadow && (React.createElement(View, { style: stackStyle },
|
|
26
|
+
React.createElement(Shadow, { shadowToken: t.shadows['shadow16'] },
|
|
27
|
+
React.createElement(Button, { style: styles.marginBetweenComponentsWithShadow }, "Button with shadow16")),
|
|
28
|
+
React.createElement(View, null,
|
|
29
|
+
React.createElement(Button, { style: styles.marginBetweenComponentsWithShadow }, "Button without shadow"))))));
|
|
19
30
|
}
|
|
20
31
|
else {
|
|
21
32
|
return (React.createElement(View, { style: stackStyle },
|
|
22
|
-
React.createElement(Text, null, "Shadows
|
|
33
|
+
React.createElement(Text, null, "Shadows not implemented on this platform at this time")));
|
|
23
34
|
}
|
|
24
35
|
};
|
|
25
36
|
//# sourceMappingURL=ShadowButtonTestSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShadowButtonTestSection.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Shadow/ShadowButtonTestSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ShadowButtonTestSection.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Shadow/ShadowButtonTestSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,iCAAiC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAExF,IAAM,iBAAiB,GAAG,GAAG,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;AACpE,IAAM,iBAAiB,GAAG,GAAG,CAAC,SAAS,C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BACT,oBAAC,IAAI;oBACH,oBAAC,MAAM,IAAC,KAAK,EAAE,MAAM,CAAC,iCAAiC,4BAAgC,CAClF,CACF,CACR,CACI,CACR,CAAC;KACH;SAAM;QACL,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,UAAU;YACrB,oBAAC,IAAI,gEAA6D,CAC7D,CACR,CAAC;KACH;AACH,CAAC,CAAC"}
|
package/lib-commonjs/fluent-tester/src/TestComponents/Shadow/ShadowButtonTestSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShadowButtonTestSection.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Shadow/ShadowButtonTestSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ShadowButtonTestSection.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Shadow/ShadowButtonTestSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,iBAsC3C,CAAC"}
|
|
@@ -5,25 +5,36 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var React = tslib_1.__importStar(require("react"));
|
|
6
6
|
var react_native_1 = require("react-native");
|
|
7
7
|
var react_native_2 = require("@fluentui/react-native");
|
|
8
|
+
var button_1 = require("@fluentui-react-native/button");
|
|
9
|
+
var experimental_shadow_1 = require("@fluentui-react-native/experimental-shadow");
|
|
8
10
|
var framework_1 = require("@fluentui-react-native/framework");
|
|
9
11
|
var ShadowTestPageStyles_1 = require("./ShadowTestPageStyles");
|
|
10
12
|
var iconExamples_1 = require("../Common/iconExamples");
|
|
11
13
|
var styles_1 = require("../Common/styles");
|
|
14
|
+
var styles = react_native_1.StyleSheet.create({ marginBetweenComponentsWithShadow: { margin: 10 } });
|
|
12
15
|
var CustomFABNoShadow = react_native_2.FAB.customize({ shadowToken: undefined });
|
|
13
16
|
var CustomFABShadow64 = react_native_2.FAB.customize({
|
|
14
17
|
shadowToken: { ambient: { x: 0, y: 0, blur: 8, color: '#00000033' }, key: { x: 0, y: 32, blur: 64, color: '#0000003d' } },
|
|
15
18
|
});
|
|
19
|
+
var platformSupportsShadow = react_native_1.Platform.OS !== 'android';
|
|
20
|
+
var platformSupportsFAB = react_native_1.Platform.OS === 'ios' || react_native_1.Platform.OS === 'android';
|
|
16
21
|
var ShadowButtonTestSection = function () {
|
|
17
22
|
var t = (0, framework_1.useFluentTheme)();
|
|
18
|
-
if (
|
|
23
|
+
if (platformSupportsShadow) {
|
|
19
24
|
return (React.createElement(react_native_1.View, { style: (0, ShadowTestPageStyles_1.shadowTestPageStyles)(t).backgroundColor },
|
|
20
|
-
React.createElement(
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
platformSupportsShadow && platformSupportsFAB && (React.createElement(react_native_1.View, { style: styles_1.stackStyle },
|
|
26
|
+
React.createElement(react_native_2.FAB, { icon: iconExamples_1.iconProps, style: styles.marginBetweenComponentsWithShadow }, "FAB with default shadow"),
|
|
27
|
+
React.createElement(CustomFABShadow64, { icon: iconExamples_1.iconProps, style: styles.marginBetweenComponentsWithShadow }, "Custom FAB with shadow64"),
|
|
28
|
+
React.createElement(CustomFABNoShadow, { icon: iconExamples_1.iconProps, style: styles.marginBetweenComponentsWithShadow }, "Custom FAB with no shadow"))),
|
|
29
|
+
platformSupportsShadow && (React.createElement(react_native_1.View, { style: styles_1.stackStyle },
|
|
30
|
+
React.createElement(experimental_shadow_1.Shadow, { shadowToken: t.shadows['shadow16'] },
|
|
31
|
+
React.createElement(button_1.ButtonV1, { style: styles.marginBetweenComponentsWithShadow }, "Button with shadow16")),
|
|
32
|
+
React.createElement(react_native_1.View, null,
|
|
33
|
+
React.createElement(button_1.ButtonV1, { style: styles.marginBetweenComponentsWithShadow }, "Button without shadow"))))));
|
|
23
34
|
}
|
|
24
35
|
else {
|
|
25
36
|
return (React.createElement(react_native_1.View, { style: styles_1.stackStyle },
|
|
26
|
-
React.createElement(react_native_2.Text, null, "Shadows
|
|
37
|
+
React.createElement(react_native_2.Text, null, "Shadows not implemented on this platform at this time")));
|
|
27
38
|
}
|
|
28
39
|
};
|
|
29
40
|
exports.ShadowButtonTestSection = ShadowButtonTestSection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShadowButtonTestSection.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Shadow/ShadowButtonTestSection.tsx"],"names":[],"mappings":";;;;AAAA,mDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"ShadowButtonTestSection.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Shadow/ShadowButtonTestSection.tsx"],"names":[],"mappings":";;;;AAAA,mDAA+B;AAC/B,6CAA0D;AAE1D,uDAAmD;AACnD,wDAAmE;AACnE,kFAAoE;AACpE,8DAAkE;AAElE,+DAA8D;AAC9D,uDAAmD;AACnD,2CAA8C;AAE9C,IAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC,EAAE,iCAAiC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAExF,IAAM,iBAAiB,GAAG,kBAAG,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;AACpE,IAAM,iBAAiB,GAAG,kBAAG,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE;CAC1H,CAAC,CAAC;AAEH,IAAM,sBAAsB,GAAG,uBAAQ,CAAC,EAAE,KAAK,SAAS,CAAC;AACzD,IA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2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.134.
|
|
3
|
+
"version": "0.134.16",
|
|
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>",
|
|
@@ -35,31 +35,31 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@fluentui-react-native/android-theme": ">=0.16.8 <1.0.0",
|
|
37
37
|
"@fluentui-react-native/apple-theme": ">=0.18.14 <1.0.0",
|
|
38
|
-
"@fluentui-react-native/avatar": "^1.6.
|
|
39
|
-
"@fluentui-react-native/badge": ">=0.4.
|
|
40
|
-
"@fluentui-react-native/button": ">=0.32.
|
|
38
|
+
"@fluentui-react-native/avatar": "^1.6.9",
|
|
39
|
+
"@fluentui-react-native/badge": ">=0.4.30 <1.0.0",
|
|
40
|
+
"@fluentui-react-native/button": ">=0.32.35 <1.0.0",
|
|
41
41
|
"@fluentui-react-native/default-theme": ">=0.17.3 <1.0.0",
|
|
42
42
|
"@fluentui-react-native/divider": "^0.3.1",
|
|
43
|
-
"@fluentui-react-native/dropdown": ">=0.7.
|
|
43
|
+
"@fluentui-react-native/dropdown": ">=0.7.32 <1.0.0",
|
|
44
44
|
"@fluentui-react-native/experimental-activity-indicator": ">=0.7.20 <1.0.0",
|
|
45
45
|
"@fluentui-react-native/experimental-appearance-additions": "^0.3.4",
|
|
46
46
|
"@fluentui-react-native/experimental-avatar": ">=0.17.18 <1.0.0",
|
|
47
|
-
"@fluentui-react-native/experimental-button": "0.16.
|
|
47
|
+
"@fluentui-react-native/experimental-button": "0.16.93",
|
|
48
48
|
"@fluentui-react-native/experimental-checkbox": "0.13.40",
|
|
49
49
|
"@fluentui-react-native/experimental-expander": "0.5.20",
|
|
50
|
-
"@fluentui-react-native/experimental-menu-button": ">=0.6.
|
|
50
|
+
"@fluentui-react-native/experimental-menu-button": ">=0.6.34 <1.0.0",
|
|
51
51
|
"@fluentui-react-native/experimental-native-date-picker": ">=0.7.6 <1.0.0",
|
|
52
52
|
"@fluentui-react-native/experimental-radio-group": "^0.9.21",
|
|
53
|
-
"@fluentui-react-native/experimental-shadow": "0.2.
|
|
53
|
+
"@fluentui-react-native/experimental-shadow": "0.2.71",
|
|
54
54
|
"@fluentui-react-native/experimental-shimmer": "0.8.22",
|
|
55
55
|
"@fluentui-react-native/experimental-tabs": "0.8.34",
|
|
56
56
|
"@fluentui-react-native/experimental-text": ">=0.11.53 <1.0.0",
|
|
57
57
|
"@fluentui-react-native/framework": ">=0.9.3 <1.0.0",
|
|
58
58
|
"@fluentui-react-native/icon": "0.17.14",
|
|
59
59
|
"@fluentui-react-native/interactive-hooks": ">=0.22.20 <1.0.0",
|
|
60
|
-
"@fluentui-react-native/menu": "^1.4.
|
|
60
|
+
"@fluentui-react-native/menu": "^1.4.11",
|
|
61
61
|
"@fluentui-react-native/merge-props": ">=0.5.3 <1.0.0",
|
|
62
|
-
"@fluentui-react-native/notification": "0.21.
|
|
62
|
+
"@fluentui-react-native/notification": "0.21.36",
|
|
63
63
|
"@fluentui-react-native/separator": "^0.14.17",
|
|
64
64
|
"@fluentui-react-native/stack": ">=0.7.54 <1.0.0",
|
|
65
65
|
"@fluentui-react-native/switch": "^0.8.28",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@fluentui-react-native/themed-stylesheet": "^1.4.3",
|
|
71
71
|
"@fluentui-react-native/theming-utils": ">=0.23.5 <1.0.0",
|
|
72
72
|
"@fluentui-react-native/win32-theme": ">=0.25.3 <1.0.0",
|
|
73
|
-
"@fluentui/react-native": ">=0.36.
|
|
73
|
+
"@fluentui/react-native": ">=0.36.5 <1.0.0",
|
|
74
74
|
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
75
75
|
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
76
76
|
"@fortawesome/react-native-fontawesome": "^0.3.0",
|
|
@@ -1,39 +1,60 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Platform, View } from 'react-native';
|
|
2
|
+
import { Platform, View, StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { FAB, Text } from '@fluentui/react-native';
|
|
5
|
+
import { ButtonV1 as Button } from '@fluentui-react-native/button';
|
|
6
|
+
import { Shadow } from '@fluentui-react-native/experimental-shadow';
|
|
5
7
|
import { useFluentTheme } from '@fluentui-react-native/framework';
|
|
6
8
|
|
|
7
9
|
import { shadowTestPageStyles } from './ShadowTestPageStyles';
|
|
8
10
|
import { iconProps } from '../Common/iconExamples';
|
|
9
|
-
import {
|
|
11
|
+
import { stackStyle } from '../Common/styles';
|
|
12
|
+
|
|
13
|
+
const styles = StyleSheet.create({ marginBetweenComponentsWithShadow: { margin: 10 } });
|
|
10
14
|
|
|
11
15
|
const CustomFABNoShadow = FAB.customize({ shadowToken: undefined });
|
|
12
16
|
const CustomFABShadow64 = FAB.customize({
|
|
13
17
|
shadowToken: { ambient: { x: 0, y: 0, blur: 8, color: '#00000033' }, key: { x: 0, y: 32, blur: 64, color: '#0000003d' } },
|
|
14
18
|
});
|
|
15
19
|
|
|
20
|
+
const platformSupportsShadow = Platform.OS !== 'android';
|
|
21
|
+
const platformSupportsFAB = Platform.OS === 'ios' || Platform.OS === 'android';
|
|
22
|
+
|
|
16
23
|
export const ShadowButtonTestSection: React.FunctionComponent = () => {
|
|
17
24
|
const t = useFluentTheme();
|
|
18
25
|
|
|
19
|
-
if (
|
|
26
|
+
if (platformSupportsShadow) {
|
|
20
27
|
return (
|
|
21
28
|
<View style={shadowTestPageStyles(t).backgroundColor}>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
{platformSupportsShadow && platformSupportsFAB && (
|
|
30
|
+
<View style={stackStyle}>
|
|
31
|
+
<FAB icon={iconProps} style={styles.marginBetweenComponentsWithShadow}>
|
|
32
|
+
FAB with default shadow
|
|
33
|
+
</FAB>
|
|
34
|
+
<CustomFABShadow64 icon={iconProps} style={styles.marginBetweenComponentsWithShadow}>
|
|
35
|
+
Custom FAB with shadow64
|
|
36
|
+
</CustomFABShadow64>
|
|
37
|
+
<CustomFABNoShadow icon={iconProps} style={styles.marginBetweenComponentsWithShadow}>
|
|
38
|
+
Custom FAB with no shadow
|
|
39
|
+
</CustomFABNoShadow>
|
|
40
|
+
</View>
|
|
41
|
+
)}
|
|
42
|
+
{platformSupportsShadow && (
|
|
43
|
+
<View style={stackStyle}>
|
|
44
|
+
<Shadow shadowToken={t.shadows['shadow16']}>
|
|
45
|
+
<Button style={styles.marginBetweenComponentsWithShadow}>Button with shadow16</Button>
|
|
46
|
+
</Shadow>
|
|
47
|
+
<View>
|
|
48
|
+
<Button style={styles.marginBetweenComponentsWithShadow}>Button without shadow</Button>
|
|
49
|
+
</View>
|
|
50
|
+
</View>
|
|
51
|
+
)}
|
|
31
52
|
</View>
|
|
32
53
|
);
|
|
33
54
|
} else {
|
|
34
55
|
return (
|
|
35
56
|
<View style={stackStyle}>
|
|
36
|
-
<Text>Shadows
|
|
57
|
+
<Text>Shadows not implemented on this platform at this time</Text>
|
|
37
58
|
</View>
|
|
38
59
|
);
|
|
39
60
|
}
|