@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.
Files changed (40) hide show
  1. package/CHANGELOG.json +229 -1
  2. package/CHANGELOG.md +51 -2
  3. package/ios/Podfile +0 -5
  4. package/ios/Podfile.lock +237 -224
  5. package/lib/TestComponents/Spacing/SpacingTest.d.ts +3 -0
  6. package/lib/TestComponents/Spacing/SpacingTest.d.ts.map +1 -0
  7. package/lib/TestComponents/Spacing/SpacingTest.js +51 -0
  8. package/lib/TestComponents/Spacing/SpacingTest.js.map +1 -0
  9. package/lib/TestComponents/Spacing/consts.d.ts +3 -0
  10. package/lib/TestComponents/Spacing/consts.d.ts.map +1 -0
  11. package/lib/TestComponents/Spacing/consts.js +3 -0
  12. package/lib/TestComponents/Spacing/consts.js.map +1 -0
  13. package/lib/TestComponents/Spacing/index.d.ts +3 -0
  14. package/lib/TestComponents/Spacing/index.d.ts.map +1 -0
  15. package/lib/TestComponents/Spacing/index.js +3 -0
  16. package/lib/TestComponents/Spacing/index.js.map +1 -0
  17. package/lib/testPages.d.ts.map +1 -1
  18. package/lib/testPages.js +7 -0
  19. package/lib/testPages.js.map +1 -1
  20. package/lib-commonjs/TestComponents/Spacing/SpacingTest.d.ts +3 -0
  21. package/lib-commonjs/TestComponents/Spacing/SpacingTest.d.ts.map +1 -0
  22. package/lib-commonjs/TestComponents/Spacing/SpacingTest.js +56 -0
  23. package/lib-commonjs/TestComponents/Spacing/SpacingTest.js.map +1 -0
  24. package/lib-commonjs/TestComponents/Spacing/consts.d.ts +3 -0
  25. package/lib-commonjs/TestComponents/Spacing/consts.d.ts.map +1 -0
  26. package/lib-commonjs/TestComponents/Spacing/consts.js +6 -0
  27. package/lib-commonjs/TestComponents/Spacing/consts.js.map +1 -0
  28. package/lib-commonjs/TestComponents/Spacing/index.d.ts +3 -0
  29. package/lib-commonjs/TestComponents/Spacing/index.d.ts.map +1 -0
  30. package/lib-commonjs/TestComponents/Spacing/index.js +6 -0
  31. package/lib-commonjs/TestComponents/Spacing/index.js.map +1 -0
  32. package/lib-commonjs/testPages.d.ts.map +1 -1
  33. package/lib-commonjs/testPages.js +7 -0
  34. package/lib-commonjs/testPages.js.map +1 -1
  35. package/macos/Podfile.lock +237 -229
  36. package/package.json +33 -33
  37. package/src/TestComponents/Spacing/SpacingTest.tsx +63 -0
  38. package/src/TestComponents/Spacing/consts.ts +2 -0
  39. package/src/TestComponents/Spacing/index.ts +2 -0
  40. 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.1",
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.6 <1.0.0",
40
- "@fluentui-react-native/apple-theme": ">=0.15.5 <1.0.0",
41
- "@fluentui-react-native/avatar": "^1.2.18",
42
- "@fluentui-react-native/badge": ">=0.1.40 <1.0.0",
43
- "@fluentui-react-native/button": ">=0.25.6 <1.0.0",
44
- "@fluentui-react-native/default-theme": ">=0.16.2 <1.0.0",
45
- "@fluentui-react-native/dropdown": ">=0.4.8 <1.0.0",
46
- "@fluentui-react-native/experimental-activity-indicator": ">=0.6.8 <1.0.0",
47
- "@fluentui-react-native/experimental-avatar": ">=0.16.11 <1.0.0",
48
- "@fluentui-react-native/experimental-button": "0.16.33",
49
- "@fluentui-react-native/experimental-checkbox": "0.12.24",
50
- "@fluentui-react-native/experimental-expander": "0.4.10",
51
- "@fluentui-react-native/experimental-menu-button": ">=0.4.39 <1.0.0",
52
- "@fluentui-react-native/experimental-native-date-picker": ">=0.7.2 <1.0.0",
53
- "@fluentui-react-native/experimental-radio-group": "^0.5.6",
54
- "@fluentui-react-native/experimental-shadow": "0.2.26",
55
- "@fluentui-react-native/experimental-shimmer": "0.7.9",
56
- "@fluentui-react-native/experimental-tabs": "0.5.22",
57
- "@fluentui-react-native/experimental-text": ">=0.11.10 <1.0.0",
58
- "@fluentui-react-native/framework": ">=0.8.8 <1.0.0",
59
- "@fluentui-react-native/icon": "0.13.13",
60
- "@fluentui-react-native/interactive-hooks": ">=0.18.11 <1.0.0",
61
- "@fluentui-react-native/menu": "^1.0.45",
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.18",
64
- "@fluentui-react-native/stack": ">=0.7.12 <1.0.0",
65
- "@fluentui-react-native/switch": "^0.6.13",
66
- "@fluentui-react-native/text": ">=0.15.4 <1.0.0",
67
- "@fluentui-react-native/theme": ">=0.7.4 <1.0.0",
68
- "@fluentui-react-native/theme-types": ">=0.20.0 <1.0.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.0 <1.0.0",
71
- "@fluentui-react-native/win32-theme": ">=0.21.6 <1.0.0",
72
- "@fluentui/react-native": ">=0.32.31 <1.0.0",
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
+ };
@@ -0,0 +1,2 @@
1
+ export const HOMEPAGE_SPACING_BUTTON = 'Homepage_Spacing_Button';
2
+ export const SPACING_TESTPAGE = 'Spacing_TestPage';
@@ -0,0 +1,2 @@
1
+ export * from './SpacingTest';
2
+ export * from './consts';
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,