@fluentui-react-native/tester 0.100.1 → 0.100.3
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 +229 -1
- package/CHANGELOG.md +51 -2
- package/ios/Podfile +0 -5
- package/ios/Podfile.lock +237 -224
- package/lib/TestComponents/Spacing/SpacingTest.d.ts +3 -0
- package/lib/TestComponents/Spacing/SpacingTest.d.ts.map +1 -0
- package/lib/TestComponents/Spacing/SpacingTest.js +51 -0
- package/lib/TestComponents/Spacing/SpacingTest.js.map +1 -0
- package/lib/TestComponents/Spacing/consts.d.ts +3 -0
- package/lib/TestComponents/Spacing/consts.d.ts.map +1 -0
- package/lib/TestComponents/Spacing/consts.js +3 -0
- package/lib/TestComponents/Spacing/consts.js.map +1 -0
- package/lib/TestComponents/Spacing/index.d.ts +3 -0
- package/lib/TestComponents/Spacing/index.d.ts.map +1 -0
- package/lib/TestComponents/Spacing/index.js +3 -0
- package/lib/TestComponents/Spacing/index.js.map +1 -0
- package/lib/testPages.d.ts.map +1 -1
- package/lib/testPages.js +7 -0
- package/lib/testPages.js.map +1 -1
- package/lib-commonjs/TestComponents/Spacing/SpacingTest.d.ts +3 -0
- package/lib-commonjs/TestComponents/Spacing/SpacingTest.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/Spacing/SpacingTest.js +56 -0
- package/lib-commonjs/TestComponents/Spacing/SpacingTest.js.map +1 -0
- package/lib-commonjs/TestComponents/Spacing/consts.d.ts +3 -0
- package/lib-commonjs/TestComponents/Spacing/consts.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/Spacing/consts.js +6 -0
- package/lib-commonjs/TestComponents/Spacing/consts.js.map +1 -0
- package/lib-commonjs/TestComponents/Spacing/index.d.ts +3 -0
- package/lib-commonjs/TestComponents/Spacing/index.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/Spacing/index.js +6 -0
- package/lib-commonjs/TestComponents/Spacing/index.js.map +1 -0
- package/lib-commonjs/testPages.d.ts.map +1 -1
- package/lib-commonjs/testPages.js +7 -0
- package/lib-commonjs/testPages.js.map +1 -1
- package/macos/Podfile.lock +237 -229
- package/package.json +33 -33
- package/src/TestComponents/Spacing/SpacingTest.tsx +63 -0
- package/src/TestComponents/Spacing/consts.ts +2 -0
- package/src/TestComponents/Spacing/index.ts +2 -0
- package/src/testPages.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.100.
|
|
3
|
+
"version": "0.100.3",
|
|
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>",
|
|
@@ -36,40 +36,40 @@
|
|
|
36
36
|
"directory": "apps/fluent-tester"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@fluentui-react-native/android-theme": ">=0.12.
|
|
40
|
-
"@fluentui-react-native/apple-theme": ">=0.
|
|
41
|
-
"@fluentui-react-native/avatar": "^1.2.
|
|
42
|
-
"@fluentui-react-native/badge": ">=0.1.
|
|
43
|
-
"@fluentui-react-native/button": ">=0.25.
|
|
44
|
-
"@fluentui-react-native/default-theme": ">=0.16.
|
|
45
|
-
"@fluentui-react-native/dropdown": ">=0.4.
|
|
46
|
-
"@fluentui-react-native/experimental-activity-indicator": ">=0.6.
|
|
47
|
-
"@fluentui-react-native/experimental-avatar": ">=0.16.
|
|
48
|
-
"@fluentui-react-native/experimental-button": "0.16.
|
|
49
|
-
"@fluentui-react-native/experimental-checkbox": "0.12.
|
|
50
|
-
"@fluentui-react-native/experimental-expander": "0.4.
|
|
51
|
-
"@fluentui-react-native/experimental-menu-button": ">=0.4.
|
|
52
|
-
"@fluentui-react-native/experimental-native-date-picker": ">=0.7.
|
|
53
|
-
"@fluentui-react-native/experimental-radio-group": "^0.5.
|
|
54
|
-
"@fluentui-react-native/experimental-shadow": "0.2.
|
|
55
|
-
"@fluentui-react-native/experimental-shimmer": "0.7.
|
|
56
|
-
"@fluentui-react-native/experimental-tabs": "0.5.
|
|
57
|
-
"@fluentui-react-native/experimental-text": ">=0.11.
|
|
58
|
-
"@fluentui-react-native/framework": ">=0.8.
|
|
59
|
-
"@fluentui-react-native/icon": "0.13.
|
|
60
|
-
"@fluentui-react-native/interactive-hooks": ">=0.18.
|
|
61
|
-
"@fluentui-react-native/menu": "^1.0.
|
|
39
|
+
"@fluentui-react-native/android-theme": ">=0.12.7 <1.0.0",
|
|
40
|
+
"@fluentui-react-native/apple-theme": ">=0.16.0 <1.0.0",
|
|
41
|
+
"@fluentui-react-native/avatar": "^1.2.19",
|
|
42
|
+
"@fluentui-react-native/badge": ">=0.1.41 <1.0.0",
|
|
43
|
+
"@fluentui-react-native/button": ">=0.25.7 <1.0.0",
|
|
44
|
+
"@fluentui-react-native/default-theme": ">=0.16.3 <1.0.0",
|
|
45
|
+
"@fluentui-react-native/dropdown": ">=0.4.9 <1.0.0",
|
|
46
|
+
"@fluentui-react-native/experimental-activity-indicator": ">=0.6.9 <1.0.0",
|
|
47
|
+
"@fluentui-react-native/experimental-avatar": ">=0.16.13 <1.0.0",
|
|
48
|
+
"@fluentui-react-native/experimental-button": "0.16.34",
|
|
49
|
+
"@fluentui-react-native/experimental-checkbox": "0.12.25",
|
|
50
|
+
"@fluentui-react-native/experimental-expander": "0.4.11",
|
|
51
|
+
"@fluentui-react-native/experimental-menu-button": ">=0.4.40 <1.0.0",
|
|
52
|
+
"@fluentui-react-native/experimental-native-date-picker": ">=0.7.3 <1.0.0",
|
|
53
|
+
"@fluentui-react-native/experimental-radio-group": "^0.5.7",
|
|
54
|
+
"@fluentui-react-native/experimental-shadow": "0.2.27",
|
|
55
|
+
"@fluentui-react-native/experimental-shimmer": "0.7.10",
|
|
56
|
+
"@fluentui-react-native/experimental-tabs": "0.5.23",
|
|
57
|
+
"@fluentui-react-native/experimental-text": ">=0.11.11 <1.0.0",
|
|
58
|
+
"@fluentui-react-native/framework": ">=0.8.9 <1.0.0",
|
|
59
|
+
"@fluentui-react-native/icon": "0.13.14",
|
|
60
|
+
"@fluentui-react-native/interactive-hooks": ">=0.18.12 <1.0.0",
|
|
61
|
+
"@fluentui-react-native/menu": "^1.0.46",
|
|
62
62
|
"@fluentui-react-native/merge-props": ">=0.5.1 <1.0.0",
|
|
63
|
-
"@fluentui-react-native/notification": "0.17.
|
|
64
|
-
"@fluentui-react-native/stack": ">=0.7.
|
|
65
|
-
"@fluentui-react-native/switch": "^0.6.
|
|
66
|
-
"@fluentui-react-native/text": ">=0.15.
|
|
67
|
-
"@fluentui-react-native/theme": ">=0.7.
|
|
68
|
-
"@fluentui-react-native/theme-types": ">=0.
|
|
63
|
+
"@fluentui-react-native/notification": "0.17.19",
|
|
64
|
+
"@fluentui-react-native/stack": ">=0.7.13 <1.0.0",
|
|
65
|
+
"@fluentui-react-native/switch": "^0.6.14",
|
|
66
|
+
"@fluentui-react-native/text": ">=0.15.5 <1.0.0",
|
|
67
|
+
"@fluentui-react-native/theme": ">=0.7.5 <1.0.0",
|
|
68
|
+
"@fluentui-react-native/theme-types": ">=0.21.0 <1.0.0",
|
|
69
69
|
"@fluentui-react-native/themed-stylesheet": "^1.4.1",
|
|
70
|
-
"@fluentui-react-native/theming-utils": ">=0.16.
|
|
71
|
-
"@fluentui-react-native/win32-theme": ">=0.21.
|
|
72
|
-
"@fluentui/react-native": ">=0.32.
|
|
70
|
+
"@fluentui-react-native/theming-utils": ">=0.16.1 <1.0.0",
|
|
71
|
+
"@fluentui-react-native/win32-theme": ">=0.21.7 <1.0.0",
|
|
72
|
+
"@fluentui/react-native": ">=0.32.32 <1.0.0",
|
|
73
73
|
"@react-native-community/slider": "^4.2.0",
|
|
74
74
|
"@react-native-menu/menu": "^0.1.2",
|
|
75
75
|
"@react-native-picker/picker": "^2.2.1",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createAppleTheme } from '@fluentui-react-native/apple-theme';
|
|
2
|
+
import { Stack } from '@fluentui-react-native/stack';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Text, View } from 'react-native';
|
|
5
|
+
import { stackStyle } from '../Common/styles';
|
|
6
|
+
import { Test, TestSection, PlatformStatus } from '../Test';
|
|
7
|
+
|
|
8
|
+
const BasicUsage: React.FunctionComponent = () => {
|
|
9
|
+
function spacingExample(tokenName: string, spacing?: number | string) {
|
|
10
|
+
return (
|
|
11
|
+
<View>
|
|
12
|
+
<Text>
|
|
13
|
+
{tokenName} ({spacing})
|
|
14
|
+
</Text>
|
|
15
|
+
<View style={{ flexDirection: 'row', alignItems: 'baseline' }}>
|
|
16
|
+
<Text style={{ padding: spacing, backgroundColor: '#f80' }}>First</Text>
|
|
17
|
+
<Text style={{ padding: spacing, backgroundColor: '#0af' }}>Second</Text>
|
|
18
|
+
</View>
|
|
19
|
+
</View>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const appleTheme = createAppleTheme().theme;
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<View>
|
|
27
|
+
<Stack style={stackStyle} gap={5}>
|
|
28
|
+
{spacingExample('None', appleTheme.spacing.none)}
|
|
29
|
+
{spacingExample('XXXS', appleTheme.spacing.xxxs)}
|
|
30
|
+
{spacingExample('XXS', appleTheme.spacing.xxs)}
|
|
31
|
+
{spacingExample('XS', appleTheme.spacing.xs)}
|
|
32
|
+
{spacingExample('S', appleTheme.spacing.s)}
|
|
33
|
+
{spacingExample('M', appleTheme.spacing.m)}
|
|
34
|
+
{spacingExample('L', appleTheme.spacing.l)}
|
|
35
|
+
{spacingExample('XL', appleTheme.spacing.xl)}
|
|
36
|
+
{spacingExample('XXL', appleTheme.spacing.xxl)}
|
|
37
|
+
{spacingExample('XXXL', appleTheme.spacing.xxxl)}
|
|
38
|
+
{spacingExample('XXXXL', appleTheme.spacing.xxxxl)}
|
|
39
|
+
</Stack>
|
|
40
|
+
</View>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const SpacingTokensTest: React.FunctionComponent = () => {
|
|
45
|
+
const status: PlatformStatus = {
|
|
46
|
+
win32Status: 'Backlog',
|
|
47
|
+
uwpStatus: 'Backlog',
|
|
48
|
+
iosStatus: 'Experimental',
|
|
49
|
+
macosStatus: 'Backlog',
|
|
50
|
+
androidStatus: 'Backlog',
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const description = 'This showcases the different spacing tokens available in Fluent UI.';
|
|
54
|
+
|
|
55
|
+
const spacingSections: TestSection[] = [
|
|
56
|
+
{
|
|
57
|
+
name: 'Basic Usage',
|
|
58
|
+
component: BasicUsage,
|
|
59
|
+
},
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
return <Test name="Spacing Tokens Test" description={description} sections={spacingSections} status={status} />;
|
|
63
|
+
};
|
package/src/testPages.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { PressableTest, HOMEPAGE_PRESSABLE_BUTTON } from './TestComponents/Press
|
|
|
25
25
|
import { RadioGroupTest, HOMEPAGE_RADIOGROUP_BUTTON } from './TestComponents/RadioGroup';
|
|
26
26
|
import { RadioGroupExperimentalTest, HOMEPAGE_RADIO_GROUP_EXPERIMENTAL_BUTTON } from './TestComponents/RadioGroupExperimental';
|
|
27
27
|
import { SeparatorTest, HOMEPAGE_SEPARATOR_BUTTON } from './TestComponents/Separator';
|
|
28
|
+
import { SpacingTokensTest, HOMEPAGE_SPACING_BUTTON } from './TestComponents/Spacing';
|
|
28
29
|
import { ShadowTest, HOMEPAGE_SHADOW_BUTTON } from './TestComponents/Shadow';
|
|
29
30
|
import { ShimmerTest, HOMEPAGE_SHIMMER_BUTTON } from './TestComponents/Shimmer';
|
|
30
31
|
import { SvgTest, HOMEPAGE_SVG_BUTTON } from './TestComponents/Svg';
|
|
@@ -194,6 +195,12 @@ export const tests: TestDescription[] = [
|
|
|
194
195
|
testPage: HOMEPAGE_RADIO_GROUP_EXPERIMENTAL_BUTTON,
|
|
195
196
|
platforms: ['android', 'ios', 'macos', 'web', 'win32'],
|
|
196
197
|
},
|
|
198
|
+
{
|
|
199
|
+
name: 'Spacing Tokens',
|
|
200
|
+
component: SpacingTokensTest,
|
|
201
|
+
testPage: HOMEPAGE_SPACING_BUTTON,
|
|
202
|
+
platforms: ['ios'],
|
|
203
|
+
},
|
|
197
204
|
{
|
|
198
205
|
name: 'Separator',
|
|
199
206
|
component: SeparatorTest,
|