@fluentui-react-native/tester 0.88.0 → 0.90.1
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 +63 -12
- package/CHANGELOG.md +27 -2
- package/lib/FluentTester.js +6 -6
- package/lib/FluentTester.js.map +1 -1
- package/lib/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
- package/lib/TestComponents/Avatar/AvatarTest.js +2 -1
- package/lib/TestComponents/Avatar/AvatarTest.js.map +1 -1
- package/lib/TestComponents/Avatar/BasicAvatar.js +3 -3
- package/lib/TestComponents/Avatar/BasicAvatar.js.map +1 -1
- package/lib/TestComponents/Avatar/CustomizedAvatar.d.ts.map +1 -1
- package/lib/TestComponents/Avatar/CustomizedAvatar.js +14 -8
- package/lib/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
- package/lib/TestComponents/Badge/BadgeTest.d.ts.map +1 -1
- package/lib/TestComponents/Badge/BadgeTest.js +2 -1
- package/lib/TestComponents/Badge/BadgeTest.js.map +1 -1
- package/lib/TestComponents/Button/ButtonIconTestSection.js +2 -2
- package/lib/TestComponents/Button/ButtonIconTestSection.js.map +1 -1
- package/lib/TestComponents/Button/ButtonShapeTestSection.js +2 -2
- package/lib/TestComponents/Button/ButtonShapeTestSection.js.map +1 -1
- package/lib/TestComponents/Button/ButtonSizeTestSection.js +2 -2
- package/lib/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
- package/lib/TestComponents/Button/ButtonTest.d.ts.map +1 -1
- package/lib/TestComponents/Button/ButtonTest.js +2 -1
- package/lib/TestComponents/Button/ButtonTest.js.map +1 -1
- package/lib/TestComponents/Button/ButtonVariantTestSection.js +2 -2
- package/lib/TestComponents/Button/ButtonVariantTestSection.js.map +1 -1
- package/lib/TestComponents/Button/ToggleButtonTestSection.d.ts.map +1 -1
- package/lib/TestComponents/Button/ToggleButtonTestSection.js +6 -7
- package/lib/TestComponents/Button/ToggleButtonTestSection.js.map +1 -1
- package/lib/TestComponents/Callout/CalloutTest.js +1 -1
- package/lib/TestComponents/Callout/CalloutTest.js.map +1 -1
- package/lib/TestComponents/Checkbox/CheckboxTest.d.ts.map +1 -1
- package/lib/TestComponents/Checkbox/CheckboxTest.js +10 -6
- package/lib/TestComponents/Checkbox/CheckboxTest.js.map +1 -1
- package/lib/TestComponents/CheckboxExperimental/CheckboxTest.d.ts.map +1 -1
- package/lib/TestComponents/CheckboxExperimental/CheckboxTest.js +8 -5
- package/lib/TestComponents/CheckboxExperimental/CheckboxTest.js.map +1 -1
- package/lib/TestComponents/Common/styles.d.ts +10 -0
- package/lib/TestComponents/Common/styles.d.ts.map +1 -1
- package/lib/TestComponents/Common/styles.js +3 -0
- package/lib/TestComponents/Common/styles.js.map +1 -1
- package/lib/TestComponents/Menu/MenuTest.d.ts.map +1 -1
- package/lib/TestComponents/Menu/MenuTest.js +11 -5
- package/lib/TestComponents/Menu/MenuTest.js.map +1 -1
- package/lib/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
- package/lib/TestComponents/Notification/NotificationTest.js +4 -3
- package/lib/TestComponents/Notification/NotificationTest.js.map +1 -1
- package/lib/TestComponents/Persona/CustomizeUsage.d.ts.map +1 -1
- package/lib/TestComponents/Persona/CustomizeUsage.js +8 -5
- package/lib/TestComponents/Persona/CustomizeUsage.js.map +1 -1
- package/lib/TestComponents/PersonaCoin/CustomizeUsage.d.ts.map +1 -1
- package/lib/TestComponents/PersonaCoin/CustomizeUsage.js +11 -8
- package/lib/TestComponents/PersonaCoin/CustomizeUsage.js.map +1 -1
- package/lib/TestComponents/PersonaCoin/CustomizeUsage.mobile.d.ts.map +1 -1
- package/lib/TestComponents/PersonaCoin/CustomizeUsage.mobile.js +3 -2
- package/lib/TestComponents/PersonaCoin/CustomizeUsage.mobile.js.map +1 -1
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.d.ts.map +1 -1
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js +2 -1
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js.map +1 -1
- package/lib/TestComponents/Shadow/ShadowTest.d.ts.map +1 -1
- package/lib/TestComponents/Shadow/ShadowTest.js +2 -1
- package/lib/TestComponents/Shadow/ShadowTest.js.map +1 -1
- package/lib/TestComponents/Switch/Switch.d.ts.map +1 -1
- package/lib/TestComponents/Switch/Switch.js +2 -1
- package/lib/TestComponents/Switch/Switch.js.map +1 -1
- package/lib/TestComponents/Test.d.ts +1 -0
- package/lib/TestComponents/Test.d.ts.map +1 -1
- package/lib/TestComponents/Test.js +74 -47
- package/lib/TestComponents/Test.js.map +1 -1
- package/lib/TestComponents/Text/TextTest.d.ts.map +1 -1
- package/lib/TestComponents/Text/TextTest.js +2 -1
- package/lib/TestComponents/Text/TextTest.js.map +1 -1
- package/lib/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
- package/lib/TestComponents/Theme/ThemeTest.js +11 -12
- package/lib/TestComponents/Theme/ThemeTest.js.map +1 -1
- package/lib/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
- package/lib/TestComponents/Tokens/TokenTest.js +8 -10
- package/lib/TestComponents/Tokens/TokenTest.js.map +1 -1
- package/lib-commonjs/FluentTester.js +5 -5
- package/lib-commonjs/FluentTester.js.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/AvatarTest.js +2 -1
- package/lib-commonjs/TestComponents/Avatar/AvatarTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/BasicAvatar.js +2 -2
- package/lib-commonjs/TestComponents/Avatar/BasicAvatar.js.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.js +13 -7
- package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
- package/lib-commonjs/TestComponents/Badge/BadgeTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Badge/BadgeTest.js +2 -1
- package/lib-commonjs/TestComponents/Badge/BadgeTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.js +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonShapeTestSection.js +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonShapeTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonSizeTestSection.js +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonTest.js +2 -1
- package/lib-commonjs/TestComponents/Button/ButtonTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.js +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ToggleButtonTestSection.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Button/ToggleButtonTestSection.js +4 -6
- package/lib-commonjs/TestComponents/Button/ToggleButtonTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Callout/CalloutTest.js +1 -1
- package/lib-commonjs/TestComponents/Callout/CalloutTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Checkbox/CheckboxTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Checkbox/CheckboxTest.js +9 -6
- package/lib-commonjs/TestComponents/Checkbox/CheckboxTest.js.map +1 -1
- package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.js +7 -5
- package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Common/styles.d.ts +10 -0
- package/lib-commonjs/TestComponents/Common/styles.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Common/styles.js +4 -1
- package/lib-commonjs/TestComponents/Common/styles.js.map +1 -1
- package/lib-commonjs/TestComponents/Menu/MenuTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Menu/MenuTest.js +10 -5
- package/lib-commonjs/TestComponents/Menu/MenuTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Notification/NotificationTest.js +4 -3
- package/lib-commonjs/TestComponents/Notification/NotificationTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Persona/CustomizeUsage.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Persona/CustomizeUsage.js +7 -5
- package/lib-commonjs/TestComponents/Persona/CustomizeUsage.js.map +1 -1
- package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.js +10 -8
- package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.js.map +1 -1
- package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.mobile.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.mobile.js +2 -1
- package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.mobile.js.map +1 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js +2 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Shadow/ShadowTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Shadow/ShadowTest.js +2 -1
- package/lib-commonjs/TestComponents/Shadow/ShadowTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Switch/Switch.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Switch/Switch.js +2 -1
- package/lib-commonjs/TestComponents/Switch/Switch.js.map +1 -1
- package/lib-commonjs/TestComponents/Test.d.ts +1 -0
- package/lib-commonjs/TestComponents/Test.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Test.js +72 -45
- package/lib-commonjs/TestComponents/Test.js.map +1 -1
- package/lib-commonjs/TestComponents/Text/TextTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Text/TextTest.js +2 -1
- package/lib-commonjs/TestComponents/Text/TextTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Theme/ThemeTest.js +10 -12
- package/lib-commonjs/TestComponents/Theme/ThemeTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Tokens/TokenTest.js +8 -10
- package/lib-commonjs/TestComponents/Tokens/TokenTest.js.map +1 -1
- package/package.json +2 -2
- package/src/FluentTester.tsx +6 -6
- package/src/TestComponents/Avatar/AvatarTest.tsx +3 -1
- package/src/TestComponents/Avatar/BasicAvatar.tsx +2 -2
- package/src/TestComponents/Avatar/CustomizedAvatar.tsx +15 -8
- package/src/TestComponents/Badge/BadgeTest.tsx +3 -1
- package/src/TestComponents/Button/ButtonIconTestSection.tsx +2 -2
- package/src/TestComponents/Button/ButtonShapeTestSection.tsx +2 -2
- package/src/TestComponents/Button/ButtonSizeTestSection.tsx +2 -2
- package/src/TestComponents/Button/ButtonTest.tsx +3 -1
- package/src/TestComponents/Button/ButtonVariantTestSection.tsx +2 -2
- package/src/TestComponents/Button/ToggleButtonTestSection.tsx +6 -5
- package/src/TestComponents/Callout/CalloutTest.tsx +1 -1
- package/src/TestComponents/Checkbox/CheckboxTest.tsx +14 -8
- package/src/TestComponents/CheckboxExperimental/CheckboxTest.tsx +10 -7
- package/src/TestComponents/Common/styles.ts +5 -0
- package/src/TestComponents/Menu/MenuTest.tsx +13 -5
- package/src/TestComponents/Notification/NotificationTest.tsx +5 -3
- package/src/TestComponents/Persona/CustomizeUsage.tsx +10 -7
- package/src/TestComponents/PersonaCoin/CustomizeUsage.mobile.tsx +4 -9
- package/src/TestComponents/PersonaCoin/CustomizeUsage.tsx +13 -10
- package/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.tsx +9 -1
- package/src/TestComponents/Shadow/ShadowTest.tsx +3 -1
- package/src/TestComponents/Switch/Switch.tsx +3 -1
- package/src/TestComponents/Test.tsx +98 -62
- package/src/TestComponents/Text/TextTest.tsx +3 -1
- package/src/TestComponents/Theme/ThemeTest.tsx +15 -11
- package/src/TestComponents/Tokens/TokenTest.tsx +8 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenTest.js","sourceRoot":"","sources":["../../../src/TestComponents/Tokens/TokenTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,6CAAuE;AACvE,kEAAqE;AACrE,8EAA4E;AAC5E,sEAA4E;AAC5E,kEAA6E;AAC7E,sEAAyE;AACzE,2CAAoD;AACpD,uDAA8C;AAC9C,gCAA4D;AAC5D,mCAAiE;AAEjE,IAAM,eAAe,GAAG,IAAA,oCAAgB,EAAC,UAAC,KAAY;IACpD,OAAO;QACL,MAAM,EAAE;YACN,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;SACnC;
|
|
1
|
+
{"version":3,"file":"TokenTest.js","sourceRoot":"","sources":["../../../src/TestComponents/Tokens/TokenTest.tsx"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.90.1",
|
|
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>",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@fluentui-react-native/icon": "0.13.4",
|
|
58
58
|
"@fluentui-react-native/interactive-hooks": ">=0.18.1 <1.0.0",
|
|
59
59
|
"@fluentui-react-native/menu": "^1.0.26",
|
|
60
|
-
"@fluentui-react-native/notification": "0.
|
|
60
|
+
"@fluentui-react-native/notification": "0.17.0",
|
|
61
61
|
"@fluentui-react-native/stack": ">=0.7.3 <1.0.0",
|
|
62
62
|
"@fluentui-react-native/switch": "^0.6.2",
|
|
63
63
|
"@fluentui-react-native/text": ">=0.14.0 <1.0.0",
|
package/src/FluentTester.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ScrollView, View, Text as RNText, Platform, SafeAreaView, BackHandler } from 'react-native';
|
|
7
7
|
import { BASE_TESTPAGE } from './TestComponents/Common/consts';
|
|
8
|
-
import { fluentTesterStyles, mobileStyles } from './TestComponents/Common/styles';
|
|
8
|
+
import { commonTestStyles, fluentTesterStyles, mobileStyles } from './TestComponents/Common/styles';
|
|
9
9
|
import { useTheme } from '@fluentui-react-native/theme-types';
|
|
10
10
|
import { ThemePickers } from './theme/ThemePickers';
|
|
11
11
|
import { tests } from './testPages';
|
|
@@ -89,7 +89,7 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
89
89
|
<View style={fluentTesterStyles.header}>
|
|
90
90
|
<Text
|
|
91
91
|
testID={BASE_TESTPAGE}
|
|
92
|
-
style={
|
|
92
|
+
style={fluentTesterStyles.testHeader}
|
|
93
93
|
variant="heroLargeSemibold"
|
|
94
94
|
color={theme.host.palette?.TextEmphasis}
|
|
95
95
|
>
|
|
@@ -107,7 +107,7 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
107
107
|
return (
|
|
108
108
|
<View style={mobileStyles.header}>
|
|
109
109
|
<Text
|
|
110
|
-
style={
|
|
110
|
+
style={fluentTesterStyles.testHeader}
|
|
111
111
|
variant="heroLargeSemibold"
|
|
112
112
|
color={theme.host.palette?.TextEmphasis}
|
|
113
113
|
testID={BASE_TESTPAGE}
|
|
@@ -153,7 +153,7 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
153
153
|
})}
|
|
154
154
|
</ScrollView>
|
|
155
155
|
|
|
156
|
-
<TestListSeparator vertical style={
|
|
156
|
+
<TestListSeparator vertical style={fluentTesterStyles.testListSeparator} />
|
|
157
157
|
</View>
|
|
158
158
|
);
|
|
159
159
|
};
|
|
@@ -208,7 +208,7 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
208
208
|
|
|
209
209
|
const TesterContent: React.FunctionComponent = () => {
|
|
210
210
|
return (
|
|
211
|
-
<View style={
|
|
211
|
+
<View style={commonTestStyles.flex}>
|
|
212
212
|
{enableSinglePaneView ? <MobileHeader /> : <Header />}
|
|
213
213
|
|
|
214
214
|
<HeaderSeparator />
|
|
@@ -222,7 +222,7 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
222
222
|
};
|
|
223
223
|
|
|
224
224
|
return (
|
|
225
|
-
<View style={
|
|
225
|
+
<View style={commonTestStyles.flex}>
|
|
226
226
|
{Platform.OS === ('win32' as any) ? (
|
|
227
227
|
<FocusTrapZone style={themedStyles.root}>
|
|
228
228
|
<TesterContent />
|
|
@@ -33,5 +33,7 @@ export const AvatarTest: React.FunctionComponent = () => {
|
|
|
33
33
|
const description =
|
|
34
34
|
'AvatarView is a visual representation of a user, entity, or group. If an image is supplied, it is cropped to a circle of the requested size. If an image is not supplied, initials are extracted from the given name and email address provided and displayed on a colorful background.';
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Avatar/SPEC.md';
|
|
37
|
+
|
|
38
|
+
return <Test name="Avatar Test" description={description} spec={spec} sections={avatarSections} status={status} />;
|
|
37
39
|
};
|
|
@@ -100,7 +100,7 @@ export const StandardUsage: FunctionComponent = () => {
|
|
|
100
100
|
size={36}
|
|
101
101
|
shape={isSquare ? 'square' : 'circular'}
|
|
102
102
|
accessibilityLabel="SVG Icon"
|
|
103
|
-
icon={{ fontSource:
|
|
103
|
+
icon={{ fontSource: fontBuiltInProps }}
|
|
104
104
|
avatarColor={avatarColor}
|
|
105
105
|
badge={{ status: 'outOfOffice', outOfOffice }}
|
|
106
106
|
/>
|
|
@@ -110,7 +110,7 @@ export const StandardUsage: FunctionComponent = () => {
|
|
|
110
110
|
size={imageSize === undefinedText ? undefined : imageSize}
|
|
111
111
|
shape={isSquare ? 'square' : 'circular'}
|
|
112
112
|
accessibilityLabel="SVG Icon"
|
|
113
|
-
icon={{ fontSource:
|
|
113
|
+
icon={{ fontSource: fontBuiltInProps, color: 'green' }}
|
|
114
114
|
avatarColor={avatarColor}
|
|
115
115
|
badge={{ status: 'outOfOffice', outOfOffice }}
|
|
116
116
|
/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useMemo } from 'react';
|
|
2
2
|
import { Avatar, AvatarColors, AvatarSize, getJavaHashCode } from '@fluentui-react-native/avatar';
|
|
3
|
-
import { View, Text, TextInput, Platform } from 'react-native';
|
|
3
|
+
import { View, Text, TextInput, Platform, StyleSheet } from 'react-native';
|
|
4
4
|
import { steveBallmerPhotoUrl } from './../PersonaCoin/styles';
|
|
5
5
|
import { commonTestStyles as commonStyles } from '../Common/styles';
|
|
6
6
|
import { FontWeight } from '@fluentui-react-native/theme-types';
|
|
@@ -8,6 +8,13 @@ import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
|
8
8
|
import TestSvg from '../../FluentTester/test-data/test.svg';
|
|
9
9
|
import { ToggleButton } from '@fluentui/react-native';
|
|
10
10
|
|
|
11
|
+
const styles = StyleSheet.create({
|
|
12
|
+
avatarTestCaseContainer: { marginLeft: 20 },
|
|
13
|
+
avatarTokenOptions: { flexDirection: 'row' },
|
|
14
|
+
fontTokenOptions: { paddingHorizontal: 20 },
|
|
15
|
+
tokenHeader: { fontWeight: 'bold' },
|
|
16
|
+
});
|
|
17
|
+
|
|
11
18
|
export const CustomizeUsage: React.FunctionComponent = () => {
|
|
12
19
|
const [showImage, setShowImage] = useState(true);
|
|
13
20
|
const [showInitials, setShowInitials] = useState(true);
|
|
@@ -80,7 +87,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
80
87
|
<ToggleButton onClick={() => setShowRing(!showRing)} checked={showRing} style={commonStyles.vmargin}>
|
|
81
88
|
{showRing ? 'Hide' : 'Show'} ring
|
|
82
89
|
</ToggleButton>
|
|
83
|
-
<View style={
|
|
90
|
+
<View style={styles.avatarTokenOptions}>
|
|
84
91
|
<View>
|
|
85
92
|
<TextInput
|
|
86
93
|
accessibilityLabel="Name for generating initials"
|
|
@@ -100,7 +107,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
100
107
|
setInitials(e.nativeEvent.text);
|
|
101
108
|
}}
|
|
102
109
|
/>
|
|
103
|
-
<Text style={
|
|
110
|
+
<Text style={styles.tokenHeader}>Avatar tokens</Text>
|
|
104
111
|
<TextInput
|
|
105
112
|
accessibilityLabel="Background color"
|
|
106
113
|
style={commonStyles.textBox}
|
|
@@ -139,7 +146,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
139
146
|
setIconColor(e.nativeEvent.text);
|
|
140
147
|
}}
|
|
141
148
|
/>
|
|
142
|
-
<Text style={
|
|
149
|
+
<Text style={styles.tokenHeader}>Ring tokens</Text>
|
|
143
150
|
<TextInput
|
|
144
151
|
accessibilityLabel="Ring background color"
|
|
145
152
|
style={commonStyles.textBox}
|
|
@@ -177,8 +184,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
177
184
|
}}
|
|
178
185
|
/>
|
|
179
186
|
</View>
|
|
180
|
-
<View style={
|
|
181
|
-
<Text style={
|
|
187
|
+
<View style={styles.fontTokenOptions}>
|
|
188
|
+
<Text style={styles.tokenHeader}>Font tokens</Text>
|
|
182
189
|
<TextInput
|
|
183
190
|
accessibilityLabel="Initials text color"
|
|
184
191
|
style={commonStyles.textBox}
|
|
@@ -232,7 +239,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
232
239
|
transparentRing={!showRing}
|
|
233
240
|
/>
|
|
234
241
|
</View>
|
|
235
|
-
<View style={
|
|
242
|
+
<View style={styles.avatarTestCaseContainer}>
|
|
236
243
|
<Text>Avatar customized with props</Text>
|
|
237
244
|
<Avatar
|
|
238
245
|
active="active"
|
|
@@ -251,7 +258,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
251
258
|
/>
|
|
252
259
|
</View>
|
|
253
260
|
{useJavaHashCode && (
|
|
254
|
-
<View style={
|
|
261
|
+
<View style={styles.avatarTestCaseContainer}>
|
|
255
262
|
<Text>Avatar with hashed color</Text>
|
|
256
263
|
<Avatar
|
|
257
264
|
active="active"
|
|
@@ -38,5 +38,7 @@ export const BadgeTest: React.FunctionComponent = () => {
|
|
|
38
38
|
const description =
|
|
39
39
|
'A badge is an additional visual descriptor for UI elements. It can be used to denote numerical value, status or general information.\n Included in this spec are base properties for usage in all badge scenarios. Reference properties for other badge types i.e. size, layout, and style variations';
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/experimental/Badge/SPEC.md';
|
|
42
|
+
|
|
43
|
+
return <Test name="Badge Test" description={description} spec={spec} sections={badgeSections} status={status} />;
|
|
42
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonV1 as Button } from '@fluentui/react-native';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Platform, View, StyleSheet } from 'react-native';
|
|
4
|
-
import { commonTestStyles,
|
|
4
|
+
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
5
5
|
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
6
6
|
import TestSvg from './test.svg';
|
|
7
7
|
import { SvgXml } from 'react-native-svg';
|
|
@@ -32,7 +32,7 @@ export const ButtonIconTest: React.FunctionComponent = () => {
|
|
|
32
32
|
</svg>`;
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
|
-
<View style={
|
|
35
|
+
<View style={testContentRootViewStyle}>
|
|
36
36
|
<Button icon={{ fontSource: { ...fontBuiltInProps, fontSize: 32 }, color: '#060' }} style={commonTestStyles.vmargin}>
|
|
37
37
|
Font icon
|
|
38
38
|
</Button>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ButtonV1 as Button, CompoundButton } from '@fluentui/react-native';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
|
-
import { commonTestStyles,
|
|
4
|
+
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
5
5
|
|
|
6
6
|
export const ButtonShapeTest: React.FunctionComponent = () => {
|
|
7
7
|
return (
|
|
8
|
-
<View style={
|
|
8
|
+
<View style={testContentRootViewStyle}>
|
|
9
9
|
<Button shape="rounded" style={commonTestStyles.vmargin}>
|
|
10
10
|
Default Rounded Button
|
|
11
11
|
</Button>
|
|
@@ -2,7 +2,7 @@ import { ButtonV1 as Button, CompoundButton } from '@fluentui/react-native';
|
|
|
2
2
|
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { Platform, View } from 'react-native';
|
|
5
|
-
import { commonTestStyles,
|
|
5
|
+
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
6
6
|
import TestSvg from './test.svg';
|
|
7
7
|
|
|
8
8
|
export const ButtonSizeTest: React.FunctionComponent = () => {
|
|
@@ -12,7 +12,7 @@ export const ButtonSizeTest: React.FunctionComponent = () => {
|
|
|
12
12
|
};
|
|
13
13
|
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
|
|
14
14
|
return (
|
|
15
|
-
<View style={
|
|
15
|
+
<View style={testContentRootViewStyle}>
|
|
16
16
|
{svgIconsEnabled && (
|
|
17
17
|
<>
|
|
18
18
|
<Button
|
|
@@ -68,5 +68,7 @@ export const ButtonTest: React.FunctionComponent = () => {
|
|
|
68
68
|
const description =
|
|
69
69
|
'Buttons are best used to enable a user to commit a change or complete steps in a task. They are typically found inside forms, dialogs, panels or pages. An example of their usage is confirming the deletion of a file in a confirmation dialog.\n\nWhen considering their place in a layout, contemplate the order in which a user will flow through the UI. As an example, in a form, the individual will need to read and interact with the form fields before submiting the form. Therefore, as a general rule, the button should be placed at the bottom of the UI container (a dialog, panel, or page) which holds the related UI elements.\n\nWhile buttons can technically be used to navigate a user to another part of the experience, this is not recommended unless that navigation is part of an action or their flow.';
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Button/SPEC.md';
|
|
72
|
+
|
|
73
|
+
return <Test name="Button Test" description={description} spec={spec} sections={buttonSections} status={status} />;
|
|
72
74
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button, CompoundButton, FAB } from '@fluentui-react-native/experimental-button';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
|
-
import { commonTestStyles,
|
|
4
|
+
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
5
5
|
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
6
6
|
import TestSvg from './test.svg';
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ export const ButtonVariantTest: React.FunctionComponent = () => {
|
|
|
14
14
|
const iconProps = { svgSource: svgProps, width: 20, height: 20 };
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
|
-
<View style={
|
|
17
|
+
<View style={testContentRootViewStyle}>
|
|
18
18
|
<Button style={commonTestStyles.vmargin}>Default</Button>
|
|
19
19
|
<Button disabled style={commonTestStyles.vmargin}>
|
|
20
20
|
Default Disabled
|
|
@@ -2,13 +2,14 @@ import { ToggleButton } from '@fluentui/react-native';
|
|
|
2
2
|
import { Checkbox } from '@fluentui/react-native';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { commonTestStyles,
|
|
5
|
+
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
6
6
|
|
|
7
7
|
const styles = StyleSheet.create({
|
|
8
8
|
row: {
|
|
9
9
|
flexDirection: 'row',
|
|
10
10
|
},
|
|
11
|
-
|
|
11
|
+
checkbox: {
|
|
12
|
+
...commonTestStyles.vmargin,
|
|
12
13
|
marginHorizontal: 8,
|
|
13
14
|
},
|
|
14
15
|
});
|
|
@@ -20,12 +21,12 @@ export const ToggleButtonTest: React.FunctionComponent = () => {
|
|
|
20
21
|
const onGhostClicked = React.useCallback(() => setSubtleChecked(!subtleChecked), [subtleChecked, setSubtleChecked]);
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
|
-
<View style={
|
|
24
|
+
<View style={testContentRootViewStyle}>
|
|
24
25
|
<View style={styles.row}>
|
|
25
26
|
<ToggleButton onClick={onDefaultClicked} checked={defaultChecked} style={commonTestStyles.vmargin}>
|
|
26
27
|
Default Toggle
|
|
27
28
|
</ToggleButton>
|
|
28
|
-
<Checkbox checked={defaultChecked} label="Default Toggle is Checked" style={
|
|
29
|
+
<Checkbox checked={defaultChecked} label="Default Toggle is Checked" style={styles.checkbox} />
|
|
29
30
|
</View>
|
|
30
31
|
<ToggleButton checked style={commonTestStyles.vmargin}>
|
|
31
32
|
Checked Default Toggle
|
|
@@ -46,7 +47,7 @@ export const ToggleButtonTest: React.FunctionComponent = () => {
|
|
|
46
47
|
<ToggleButton appearance="subtle" onClick={onGhostClicked} checked={subtleChecked} style={commonTestStyles.vmargin}>
|
|
47
48
|
Subtle Toggle
|
|
48
49
|
</ToggleButton>
|
|
49
|
-
<Checkbox checked={subtleChecked} label="Subtle Toggle is Checked" style={
|
|
50
|
+
<Checkbox checked={subtleChecked} label="Subtle Toggle is Checked" style={styles.checkbox} />
|
|
50
51
|
</View>
|
|
51
52
|
<ToggleButton appearance="subtle" checked style={commonTestStyles.vmargin}>
|
|
52
53
|
Checked Subtle Toggle
|
|
@@ -348,7 +348,7 @@ const StandardCallout: React.FunctionComponent = () => {
|
|
|
348
348
|
</View>
|
|
349
349
|
) : (
|
|
350
350
|
//else
|
|
351
|
-
<View style={
|
|
351
|
+
<View style={{ padding: 20, backgroundColor: calloutHovered ? 'lightgreen' : 'pink' }}>
|
|
352
352
|
<Button content="click to change anchor" onClick={toggleCalloutRef} />
|
|
353
353
|
</View>
|
|
354
354
|
)}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Checkbox } from '@fluentui/react-native';
|
|
2
|
-
import { useTheme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import { Theme, useTheme } from '@fluentui-react-native/theme-types';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { View, TextInput
|
|
4
|
+
import { View, TextInput } from 'react-native';
|
|
5
5
|
import { commonTestStyles as commonStyles } from '../Common/styles';
|
|
6
6
|
import { CHECKBOX_TESTPAGE } from './consts';
|
|
7
7
|
import { E2ECheckboxTest } from './CheckboxE2ETest';
|
|
8
8
|
import { Test, TestSection, PlatformStatus } from '../Test';
|
|
9
|
+
import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
|
|
9
10
|
|
|
10
11
|
function onChangeUncontrolled(isChecked: boolean) {
|
|
11
12
|
console.log(isChecked);
|
|
@@ -87,6 +88,10 @@ const HoverCheckbox = Checkbox.customize({
|
|
|
87
88
|
},
|
|
88
89
|
});
|
|
89
90
|
|
|
91
|
+
const getThemedStyles = themedStyleSheet((t: Theme) => {
|
|
92
|
+
return { textbox: { ...commonStyles.textBox, borderColor: t.colors.inputBorder } };
|
|
93
|
+
});
|
|
94
|
+
|
|
90
95
|
const TokenCheckbox: React.FunctionComponent = () => {
|
|
91
96
|
const [checkboxColor, setCheckboxColor] = React.useState('blue');
|
|
92
97
|
const [checkmarkColor, setCheckmarkColor] = React.useState('white');
|
|
@@ -108,9 +113,8 @@ const TokenCheckbox: React.FunctionComponent = () => {
|
|
|
108
113
|
});
|
|
109
114
|
|
|
110
115
|
const theme = useTheme();
|
|
111
|
-
const textBoxBorderStyle
|
|
112
|
-
|
|
113
|
-
};
|
|
116
|
+
const textBoxBorderStyle = getThemedStyles(theme);
|
|
117
|
+
|
|
114
118
|
return (
|
|
115
119
|
<View>
|
|
116
120
|
<CircularCheckbox label="A circular checkbox" onChange={onChangeUncontrolled} defaultChecked={false} />
|
|
@@ -125,7 +129,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
|
|
|
125
129
|
|
|
126
130
|
<TextInput
|
|
127
131
|
accessibilityLabel="Background color"
|
|
128
|
-
style={
|
|
132
|
+
style={textBoxBorderStyle.textbox}
|
|
129
133
|
placeholder="Background color"
|
|
130
134
|
blurOnSubmit={true}
|
|
131
135
|
onSubmitEditing={(e) => {
|
|
@@ -135,7 +139,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
|
|
|
135
139
|
|
|
136
140
|
<TextInput
|
|
137
141
|
accessibilityLabel="Checkmark color"
|
|
138
|
-
style={
|
|
142
|
+
style={textBoxBorderStyle.textbox}
|
|
139
143
|
placeholder="Checkmark color"
|
|
140
144
|
blurOnSubmit={true}
|
|
141
145
|
onSubmitEditing={(e) => {
|
|
@@ -178,5 +182,7 @@ export const CheckboxTest: React.FunctionComponent = () => {
|
|
|
178
182
|
const description =
|
|
179
183
|
'Checkboxes give people a way to select one or more items from a group, or switch between two mutually exclusive options (checked or unchecked, on or off).';
|
|
180
184
|
|
|
181
|
-
|
|
185
|
+
const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Checkbox/SPEC.md';
|
|
186
|
+
|
|
187
|
+
return <Test name="Checkbox Test" description={description} spec={spec} sections={checkboxSections} status={status} />;
|
|
182
188
|
};
|
|
@@ -2,11 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import { EXPERIMENTAL_CHECKBOX_TESTPAGE } from './consts';
|
|
3
3
|
import { Test, TestSection, PlatformStatus } from '../Test';
|
|
4
4
|
import { Checkbox } from '@fluentui-react-native/experimental-checkbox';
|
|
5
|
-
import { useTheme } from '@fluentui-react-native/theme-types';
|
|
6
|
-
import { View, TextInput
|
|
5
|
+
import { Theme, useTheme } from '@fluentui-react-native/theme-types';
|
|
6
|
+
import { View, TextInput } from 'react-native';
|
|
7
7
|
import { commonTestStyles as commonStyles } from '../Common/styles';
|
|
8
8
|
import { E2ECheckboxExperimentalTest } from './E2ECheckboxExperimentalTest';
|
|
9
9
|
import { InteractionEvent } from '@fluentui-react-native/interactive-hooks';
|
|
10
|
+
import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
|
|
10
11
|
|
|
11
12
|
function onChangeUncontrolled(_e: InteractionEvent, isChecked: boolean) {
|
|
12
13
|
console.log(isChecked);
|
|
@@ -91,6 +92,10 @@ const ComposedCheckbox = Checkbox.compose({
|
|
|
91
92
|
},
|
|
92
93
|
});
|
|
93
94
|
|
|
95
|
+
const getThemedStyles = themedStyleSheet((t: Theme) => {
|
|
96
|
+
return { textbox: { ...commonStyles.textBox, borderColor: t.colors.inputBorder } };
|
|
97
|
+
});
|
|
98
|
+
|
|
94
99
|
const TokenCheckbox: React.FunctionComponent = () => {
|
|
95
100
|
const [checkboxColor, setCheckboxColor] = React.useState('blue');
|
|
96
101
|
const [checkmarkColor, setCheckmarkColor] = React.useState('white');
|
|
@@ -104,9 +109,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
|
|
|
104
109
|
});
|
|
105
110
|
|
|
106
111
|
const theme = useTheme();
|
|
107
|
-
const textBoxBorderStyle
|
|
108
|
-
borderColor: theme.colors.inputBorder,
|
|
109
|
-
};
|
|
112
|
+
const textBoxBorderStyle = getThemedStyles(theme);
|
|
110
113
|
|
|
111
114
|
return (
|
|
112
115
|
<View>
|
|
@@ -123,7 +126,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
|
|
|
123
126
|
/>
|
|
124
127
|
<TextInput
|
|
125
128
|
accessibilityLabel="Background color"
|
|
126
|
-
style={
|
|
129
|
+
style={textBoxBorderStyle.textbox}
|
|
127
130
|
placeholder="Background color"
|
|
128
131
|
blurOnSubmit={true}
|
|
129
132
|
onSubmitEditing={(e) => {
|
|
@@ -133,7 +136,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
|
|
|
133
136
|
|
|
134
137
|
<TextInput
|
|
135
138
|
accessibilityLabel="Checkmark color"
|
|
136
|
-
style={
|
|
139
|
+
style={textBoxBorderStyle.textbox}
|
|
137
140
|
placeholder="Checkmark color"
|
|
138
141
|
blurOnSubmit={true}
|
|
139
142
|
onSubmitEditing={(e) => {
|
|
@@ -8,6 +8,7 @@ export const commonTestStyles = StyleSheet.create({
|
|
|
8
8
|
flexDirection: 'row',
|
|
9
9
|
alignItems: 'flex-start',
|
|
10
10
|
},
|
|
11
|
+
flex: { flex: 1 },
|
|
11
12
|
header: {
|
|
12
13
|
marginVertical: 6,
|
|
13
14
|
fontSize: 16,
|
|
@@ -116,6 +117,8 @@ export const fluentTesterStyles = StyleSheet.create({
|
|
|
116
117
|
justifyContent: 'flex-start',
|
|
117
118
|
},
|
|
118
119
|
|
|
120
|
+
testListSeparator: { marginHorizontal: 8 },
|
|
121
|
+
|
|
119
122
|
testSection: {
|
|
120
123
|
flexGrow: 1,
|
|
121
124
|
},
|
|
@@ -159,3 +162,5 @@ export const mobileStyles = StyleSheet.create({
|
|
|
159
162
|
width: '100%',
|
|
160
163
|
},
|
|
161
164
|
});
|
|
165
|
+
|
|
166
|
+
export const testContentRootViewStyle = [stackStyle, commonTestStyles.view];
|
|
@@ -16,6 +16,7 @@ import { MENU_TESTPAGE } from './consts';
|
|
|
16
16
|
import { Test, TestSection, PlatformStatus } from '../Test';
|
|
17
17
|
import { TextV1 as Text } from '@fluentui-react-native/text';
|
|
18
18
|
import { E2EMenuTest } from './E2EMenuTest';
|
|
19
|
+
import { StyleSheet } from 'react-native';
|
|
19
20
|
|
|
20
21
|
const MenuDefault: React.FunctionComponent = () => {
|
|
21
22
|
return (
|
|
@@ -36,10 +37,13 @@ const MenuDefault: React.FunctionComponent = () => {
|
|
|
36
37
|
);
|
|
37
38
|
};
|
|
38
39
|
|
|
40
|
+
const defaultCheckedTestCase = ['itemOne'];
|
|
41
|
+
const checkedTestCase = ['itemTwo'];
|
|
42
|
+
|
|
39
43
|
const MenuCheckmarks: React.FunctionComponent = () => {
|
|
40
44
|
return (
|
|
41
45
|
<Stack style={stackStyle}>
|
|
42
|
-
<Menu defaultChecked={
|
|
46
|
+
<Menu defaultChecked={defaultCheckedTestCase}>
|
|
43
47
|
<MenuTrigger>
|
|
44
48
|
<Button>All checkmark items</Button>
|
|
45
49
|
</MenuTrigger>
|
|
@@ -51,7 +55,7 @@ const MenuCheckmarks: React.FunctionComponent = () => {
|
|
|
51
55
|
</MenuList>
|
|
52
56
|
</MenuPopover>
|
|
53
57
|
</Menu>
|
|
54
|
-
<Menu hasCheckmarks checked={
|
|
58
|
+
<Menu hasCheckmarks checked={checkedTestCase}>
|
|
55
59
|
<MenuTrigger>
|
|
56
60
|
<Button>Some controlled checkmark items with alignment</Button>
|
|
57
61
|
</MenuTrigger>
|
|
@@ -94,7 +98,7 @@ const MenuRadioItem: React.FunctionComponent = () => {
|
|
|
94
98
|
return (
|
|
95
99
|
<Stack style={stackStyle}>
|
|
96
100
|
<Text>Current checked: {checked.join(' ')}</Text>
|
|
97
|
-
<Menu defaultChecked={
|
|
101
|
+
<Menu defaultChecked={defaultCheckedTestCase} onCheckedChange={onCheckedChange}>
|
|
98
102
|
<MenuTrigger>
|
|
99
103
|
<Button>Items with radio selection</Button>
|
|
100
104
|
</MenuTrigger>
|
|
@@ -164,10 +168,12 @@ const MenuOpenOnHover: React.FunctionComponent = () => {
|
|
|
164
168
|
);
|
|
165
169
|
};
|
|
166
170
|
|
|
171
|
+
const rootStackStyle = StyleSheet.create({ root: { ...(stackStyle as object), flexDirection: 'row' } });
|
|
172
|
+
|
|
167
173
|
const MenuControlledOpen: React.FunctionComponent = () => {
|
|
168
174
|
const [open, setOpen] = React.useState<boolean>(false);
|
|
169
175
|
return (
|
|
170
|
-
<Stack style={
|
|
176
|
+
<Stack style={rootStackStyle.root}>
|
|
171
177
|
<Button onClick={() => setOpen(!open)}>Toggle open</Button>
|
|
172
178
|
<Menu open={open}>
|
|
173
179
|
<MenuTrigger>
|
|
@@ -283,5 +289,7 @@ export const MenuTest: React.FunctionComponent = () => {
|
|
|
283
289
|
const description =
|
|
284
290
|
'A Menu is an component that displays a list of options on a temporary surface. They are invoked when users interact with a button, action, or other control.';
|
|
285
291
|
|
|
286
|
-
|
|
292
|
+
const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Menu/SPEC.md';
|
|
293
|
+
|
|
294
|
+
return <Test name="Menu Test" description={description} spec={spec} sections={menuSections} status={status} />;
|
|
287
295
|
};
|
|
@@ -164,7 +164,7 @@ const PrimaryWithAutoHide: React.FunctionComponent = () => {
|
|
|
164
164
|
{visible ? 'Hide' : 'Show'}
|
|
165
165
|
</Button>
|
|
166
166
|
{!hidden && (
|
|
167
|
-
<Animated.View style={
|
|
167
|
+
<Animated.View style={animatedViewProps}>
|
|
168
168
|
<Notification
|
|
169
169
|
variant={'primary'}
|
|
170
170
|
action="Undo"
|
|
@@ -237,7 +237,7 @@ const PrimaryBarWithAutoHide: React.FunctionComponent = () => {
|
|
|
237
237
|
{visible ? 'Hide' : 'Show'}
|
|
238
238
|
</Button>
|
|
239
239
|
{!hidden && (
|
|
240
|
-
<Animated.View style={
|
|
240
|
+
<Animated.View style={animatedViewProps}>
|
|
241
241
|
<Notification
|
|
242
242
|
variant={'primaryBar'}
|
|
243
243
|
onPress={() => {
|
|
@@ -282,5 +282,7 @@ export const NotificationTest: React.FunctionComponent = () => {
|
|
|
282
282
|
|
|
283
283
|
const description = 'Testing notification component';
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Notification/SPEC.md';
|
|
286
|
+
|
|
287
|
+
return <Test name="Notification Test" description={description} spec={spec} sections={notificationSections} status={status} />;
|
|
286
288
|
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { View, Text, Switch, TextInput
|
|
2
|
+
import { View, Text, Switch, TextInput } from 'react-native';
|
|
3
3
|
import { Persona } from '@fluentui/react-native';
|
|
4
4
|
import { michaelImageUrl } from './styles';
|
|
5
5
|
import { commonTestStyles as commonStyles } from '../Common/styles';
|
|
6
|
-
import { useTheme } from '@fluentui-react-native/theme-types';
|
|
6
|
+
import { Theme, useTheme } from '@fluentui-react-native/theme-types';
|
|
7
7
|
import { Slider } from '../Common/Slider';
|
|
8
|
+
import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
|
|
9
|
+
|
|
10
|
+
const getThemedStyles = themedStyleSheet((t: Theme) => {
|
|
11
|
+
return { textbox: { ...commonStyles.textBox, borderColor: t.colors.inputBorder } };
|
|
12
|
+
});
|
|
8
13
|
|
|
9
14
|
export const CustomizeUsage: React.FunctionComponent = () => {
|
|
10
15
|
const [showImage, setShowImage] = React.useState(true);
|
|
@@ -20,9 +25,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
20
25
|
const [verticalGap, setVerticalGap] = React.useState<number>();
|
|
21
26
|
|
|
22
27
|
const theme = useTheme();
|
|
23
|
-
const textBoxBorderStyle
|
|
24
|
-
borderColor: theme.colors.inputBorder,
|
|
25
|
-
};
|
|
28
|
+
const textBoxBorderStyle = getThemedStyles(theme);
|
|
26
29
|
|
|
27
30
|
const CustomizedPersona = React.useMemo(() => {
|
|
28
31
|
const tokens = {
|
|
@@ -49,7 +52,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
49
52
|
|
|
50
53
|
<TextInput
|
|
51
54
|
accessibilityLabel="Background color"
|
|
52
|
-
style={
|
|
55
|
+
style={textBoxBorderStyle.textbox}
|
|
53
56
|
placeholder="Background color"
|
|
54
57
|
blurOnSubmit={true}
|
|
55
58
|
onSubmitEditing={(e) => {
|
|
@@ -59,7 +62,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
59
62
|
|
|
60
63
|
<TextInput
|
|
61
64
|
accessibilityLabel="Initials text color"
|
|
62
|
-
style={
|
|
65
|
+
style={textBoxBorderStyle.textbox}
|
|
63
66
|
placeholder="Initials text color"
|
|
64
67
|
blurOnSubmit={true}
|
|
65
68
|
onSubmitEditing={(e) => {
|