@fluentui-react-native/experimental-shadow 0.6.18 → 0.7.0

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.md +39 -0
  2. package/SPEC.md +1 -1
  3. package/lib/Shadow.d.ts +2 -2
  4. package/lib/Shadow.d.ts.map +1 -1
  5. package/lib/Shadow.js +108 -78
  6. package/lib/Shadow.js.map +1 -1
  7. package/lib/Shadow.types.d.ts +6 -3
  8. package/lib/Shadow.types.d.ts.map +1 -1
  9. package/lib/Shadow.types.js +1 -1
  10. package/lib/Shadow.types.js.map +1 -1
  11. package/lib/__tests__/Shadow.test.d.ts +1 -1
  12. package/lib/__tests__/Shadow.test.js +144 -89
  13. package/lib/__tests__/Shadow.test.js.map +1 -1
  14. package/lib/index.d.ts +1 -1
  15. package/lib/index.js +1 -1
  16. package/lib/shadowStyle.d.ts +17 -17
  17. package/lib/shadowStyle.js +29 -29
  18. package/lib/shadowStyle.js.map +1 -1
  19. package/lib-commonjs/Shadow.d.ts +2 -2
  20. package/lib-commonjs/Shadow.d.ts.map +1 -1
  21. package/lib-commonjs/Shadow.js +164 -107
  22. package/lib-commonjs/Shadow.js.map +1 -1
  23. package/lib-commonjs/Shadow.types.d.ts +6 -3
  24. package/lib-commonjs/Shadow.types.d.ts.map +1 -1
  25. package/lib-commonjs/Shadow.types.js +3 -3
  26. package/lib-commonjs/Shadow.types.js.map +1 -1
  27. package/lib-commonjs/__tests__/Shadow.test.d.ts +1 -1
  28. package/lib-commonjs/__tests__/Shadow.test.js +207 -119
  29. package/lib-commonjs/__tests__/Shadow.test.js.map +1 -1
  30. package/lib-commonjs/index.d.ts +1 -1
  31. package/lib-commonjs/index.js +17 -7
  32. package/lib-commonjs/index.js.map +1 -1
  33. package/lib-commonjs/shadowStyle.d.ts +17 -17
  34. package/lib-commonjs/shadowStyle.js +36 -33
  35. package/lib-commonjs/shadowStyle.js.map +1 -1
  36. package/package.json +60 -59
  37. package/src/Shadow.tsx +8 -17
  38. package/src/Shadow.types.ts +4 -0
  39. package/src/__tests__/Shadow.test.tsx +83 -34
  40. package/src/__tests__/__snapshots__/Shadow.test.tsx.snap +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Change Log - @fluentui-react-native/experimental-shadow
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d7adbdd: # Migration from Beachball to Changesets
8
+
9
+ This changeset represents the migration from Beachball to Changesets for version management and consolidates all changes from 440+ beachball change files that were in the `change/` directory.
10
+
11
+ All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
12
+
13
+ ## What Changed
14
+
15
+ Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
16
+
17
+ - ❌ 440+ beachball change files from `change/` directory
18
+ - ❌ `beachball` package dependency
19
+ - ❌ Beachball scripts from `package.json`
20
+ - ❌ `beachball.config.js` configuration file
21
+ - ❌ Beachball publish steps from Azure Pipelines
22
+
23
+ ## New Workflow
24
+
25
+ ✅ **Create changes**: Run `yarn changeset` to document changes
26
+ ✅ **Version bump PRs**: Automatically created by GitHub Actions
27
+ ✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
28
+ ✅ **Validation**: CI validates changesets and blocks major version bumps
29
+
30
+ For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
31
+
32
+ ### Patch Changes
33
+
34
+ - d1d8c26: We were pinning @types/react and react-native-macos via resolutions. This fixes that which uncovered a bunch of type inconsistencies that needed to be addressed.
35
+ - Updated dependencies [d7adbdd]
36
+ - Updated dependencies [d1d8c26]
37
+ - @fluentui-react-native/framework@0.15.0
38
+ - @fluentui-react-native/framework-base@0.3.0
39
+ - @fluentui-react-native/pressable@0.13.0
40
+ - @fluentui-react-native/theme-types@0.44.0
41
+
3
42
  <!-- This log was last generated on Tue, 05 Aug 2025 18:50:43 GMT and should not be manually modified. -->
4
43
 
5
44
  <!-- Start content -->
package/SPEC.md CHANGED
@@ -33,7 +33,7 @@ Examples adding some Shadows to a Button:
33
33
  </Shadow>
34
34
  ```
35
35
 
36
- For more examples of using Shadow, please see the [ShadowTest test page](https://github.com/microsoft/fluentui-react-native/tree/main/apps/fluent-tester/src/TestComponents/Shadow) in the [Fluent Tester app](https://github.com/microsoft/fluentui-react-native/blob/main/apps/fluent-tester/README.md).
36
+ For more examples of using Shadow, please see the [ShadowTest test page](https://github.com/microsoft/fluentui-react-native/tree/main/apps/tester-core/src/TestComponents/Shadow) in the [Fluent Tester app](https://github.com/microsoft/fluentui-react-native/blob/main/apps/fluent-tester/README.md).
37
37
 
38
38
  For an example of adding a Shadow as a slot to a Fluent component, please see the [FAB component](https://github.com/microsoft/fluentui-react-native/tree/main/packages/components/Button/src/FAB) - this component exists on both iOS and Android, but currently only the iOS version uses the Shadow component. The [Notification component](https://github.com/microsoft/fluentui-react-native/tree/main/packages/components/Notification) is another example that uses the Shadow component.
39
39
 
package/lib/Shadow.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type { ShadowProps } from './Shadow.types';
2
- export declare const Shadow: import("@fluentui-react-native/framework").ComposableFunction<ShadowProps>;
2
+ export declare const Shadow: import('@fluentui-react-native/framework-base').FunctionComponent<ShadowProps>;
3
3
  export default Shadow;
4
- //# sourceMappingURL=Shadow.d.ts.map
4
+ //# sourceMappingURL=Shadow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shadow.d.ts","sourceRoot":"","sources":["../src/Shadow.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,eAAO,MAAM,MAAM,4EAyBjB,CAAC;AA6HH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Shadow.d.ts","sourceRoot":"","sources":["../src/Shadow.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,eAAO,MAAM,MAAM,gFAiBjB,CAAC;AA6HH,eAAe,MAAM,CAAC"}
package/lib/Shadow.js CHANGED
@@ -1,93 +1,123 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { View } from 'react-native';
3
- import { mergeProps, stagedComponent } from '@fluentui-react-native/framework';
4
- import { memoize } from '@fluentui-react-native/framework';
4
+ import { memoize, mergeProps, phasedComponent, directComponent } from '@fluentui-react-native/framework-base';
5
5
  import { shadowName } from './Shadow.types';
6
6
  import { getShadowTokenStyleSet } from './shadowStyle';
7
- export const Shadow = stagedComponent((props) => {
8
- return (final, children) => {
9
- if (!props.shadowToken) {
10
- return React.createElement(React.Fragment, null, children);
11
- }
12
- const childrenArray = React.Children.toArray(children);
13
- const child = childrenArray[0];
14
- if (__DEV__) {
15
- if (childrenArray.length !== 1) {
16
- console.warn('Shadow must only have one child');
17
- }
18
- }
19
- const { style: childStyle, ...restOfChildProps } = child.props;
20
- const shadowViewStyleProps = getStylePropsForShadowViews(childStyle, props.shadowToken);
21
- const innerShadowViewProps = mergeProps(restOfChildProps, shadowViewStyleProps.inner);
22
- const outerShadowViewProps = mergeProps(final, shadowViewStyleProps.outer);
23
- const childWithInnerShadow = React.cloneElement(child, innerShadowViewProps);
24
- return React.createElement(View, { ...outerShadowViewProps }, childWithInnerShadow);
25
- };
7
+ export const Shadow = phasedComponent((props) => {
8
+ return directComponent((final) => {
9
+ const { children, ...rest } = final;
10
+ if (!props.shadowToken) {
11
+ return _jsx(_Fragment, { children: children });
12
+ }
13
+ const { style: childStyle, ...restOfChildProps } = children.props;
14
+ const shadowViewStyleProps = getStylePropsForShadowViews(childStyle, props.shadowToken);
15
+ const innerShadowViewProps = mergeProps(restOfChildProps, shadowViewStyleProps.inner);
16
+ const outerShadowViewProps = mergeProps(rest, shadowViewStyleProps.outer);
17
+ const childWithInnerShadow = React.cloneElement(children, innerShadowViewProps);
18
+ return _jsx(View, { ...outerShadowViewProps, children: childWithInnerShadow });
19
+ });
26
20
  });
27
21
  const getStylePropsForShadowViews = memoize(getStylePropsForShadowViewsWorker);
28
22
  function getStylePropsForShadowViewsWorker(childStyleProps = {}, shadowToken) {
29
- const shadowTokenStyleSet = getShadowTokenStyleSet(shadowToken);
30
- if (__DEV__) {
31
- if (!childStyleProps.backgroundColor) {
32
- console.warn('The View that the Shadow is set on must have a background color set');
33
- }
23
+ const shadowTokenStyleSet = getShadowTokenStyleSet(shadowToken);
24
+ if (__DEV__) {
25
+ if (!childStyleProps.backgroundColor) {
26
+ console.warn('The View that the Shadow is set on must have a background color set');
34
27
  }
35
- const { borderBottomWidth, borderEndWidth, borderLeftWidth, borderRightWidth, borderStartWidth, borderTopWidth, borderWidth, margin, marginBottom, marginEnd, marginHorizontal, marginLeft, marginRight, marginStart, marginTop, marginVertical, padding, paddingBottom, paddingEnd, paddingHorizontal, paddingLeft, paddingRight, paddingStart, paddingTop, paddingVertical, alignItems, flexWrap, flexDirection, start, end, left, right, top, bottom, ...restOfChildStyleProps } = childStyleProps;
36
- // Remove undefined properties, otherwise every prop will be added and be set to
37
- // undefined, which can cause unexpected behaviour with some of the styles
38
- const innerStyle = removeUndefinedProperties({
39
- borderBottomWidth,
40
- borderEndWidth,
41
- borderLeftWidth,
42
- borderRightWidth,
43
- borderStartWidth,
44
- borderTopWidth,
45
- borderWidth,
46
- padding,
47
- paddingBottom,
48
- paddingEnd,
49
- paddingHorizontal,
50
- paddingLeft,
51
- paddingRight,
52
- paddingStart,
53
- paddingTop,
54
- paddingVertical,
55
- alignItems,
56
- flexWrap,
57
- flexDirection,
58
- ...shadowTokenStyleSet.key,
59
- ...restOfChildStyleProps,
60
- });
61
- const outerStyle = removeUndefinedProperties({
62
- margin,
63
- marginBottom,
64
- marginEnd,
65
- marginHorizontal,
66
- marginLeft,
67
- marginRight,
68
- marginStart,
69
- marginTop,
70
- marginVertical,
71
- start,
72
- end,
73
- left,
74
- right,
75
- top,
76
- bottom,
77
- ...shadowTokenStyleSet.ambient,
78
- ...restOfChildStyleProps,
79
- });
80
- return { inner: { style: innerStyle }, outer: { style: outerStyle } };
28
+ }
29
+ const {
30
+ borderBottomWidth,
31
+ borderEndWidth,
32
+ borderLeftWidth,
33
+ borderRightWidth,
34
+ borderStartWidth,
35
+ borderTopWidth,
36
+ borderWidth,
37
+ margin,
38
+ marginBottom,
39
+ marginEnd,
40
+ marginHorizontal,
41
+ marginLeft,
42
+ marginRight,
43
+ marginStart,
44
+ marginTop,
45
+ marginVertical,
46
+ padding,
47
+ paddingBottom,
48
+ paddingEnd,
49
+ paddingHorizontal,
50
+ paddingLeft,
51
+ paddingRight,
52
+ paddingStart,
53
+ paddingTop,
54
+ paddingVertical,
55
+ alignItems,
56
+ flexWrap,
57
+ flexDirection,
58
+ start,
59
+ end,
60
+ left,
61
+ right,
62
+ top,
63
+ bottom,
64
+ ...restOfChildStyleProps
65
+ } = childStyleProps;
66
+ // Remove undefined properties, otherwise every prop will be added and be set to
67
+ // undefined, which can cause unexpected behaviour with some of the styles
68
+ const innerStyle = removeUndefinedProperties({
69
+ borderBottomWidth,
70
+ borderEndWidth,
71
+ borderLeftWidth,
72
+ borderRightWidth,
73
+ borderStartWidth,
74
+ borderTopWidth,
75
+ borderWidth,
76
+ padding,
77
+ paddingBottom,
78
+ paddingEnd,
79
+ paddingHorizontal,
80
+ paddingLeft,
81
+ paddingRight,
82
+ paddingStart,
83
+ paddingTop,
84
+ paddingVertical,
85
+ alignItems,
86
+ flexWrap,
87
+ flexDirection,
88
+ ...shadowTokenStyleSet.key,
89
+ ...restOfChildStyleProps,
90
+ });
91
+ const outerStyle = removeUndefinedProperties({
92
+ margin,
93
+ marginBottom,
94
+ marginEnd,
95
+ marginHorizontal,
96
+ marginLeft,
97
+ marginRight,
98
+ marginStart,
99
+ marginTop,
100
+ marginVertical,
101
+ start,
102
+ end,
103
+ left,
104
+ right,
105
+ top,
106
+ bottom,
107
+ ...shadowTokenStyleSet.ambient,
108
+ ...restOfChildStyleProps,
109
+ });
110
+ return { inner: { style: innerStyle }, outer: { style: outerStyle } };
81
111
  }
82
112
  function withObjectAssign(object, [key, value]) {
83
- if (value !== undefined) {
84
- return Object.assign(object, { [key]: value });
85
- }
86
- return object;
113
+ if (value !== undefined) {
114
+ return Object.assign(object, { [key]: value });
115
+ }
116
+ return object;
87
117
  }
88
118
  const removeUndefinedProperties = (object) => {
89
- return Object.entries(object).reduce(withObjectAssign, {});
119
+ return Object.entries(object).reduce(withObjectAssign, {});
90
120
  };
91
121
  Shadow.displayName = shadowName;
92
122
  export default Shadow;
93
- //# sourceMappingURL=Shadow.js.map
123
+ //# sourceMappingURL=Shadow.js.map
package/lib/Shadow.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Shadow.js","sourceRoot":"","sources":["../src/Shadow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAI3D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,CAAC,KAAkB,EAAE,EAAE;IAC3D,OAAO,CAAC,KAAkB,EAAE,QAAyB,EAAE,EAAE;QACvD,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;YACtB,OAAO,0CAAG,QAAQ,CAAI,CAAC;SACxB;QAED,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAyB,CAAC;QAC/E,MAAM,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QAE/B,IAAI,OAAO,EAAE;YACX,IAAI,aAAa,CAAC,MAAM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AAQ;QACR,aAAa;QAEb,GAAG,mBAAmB,CAAC,GAAG;QAC1B,GAAG,qBAAqB;KACzB,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,yBAAyB,CAAC;QAC3C,MAAM;QACN,YAAY;QACZ,SAAS;QACT,gBAAgB;QAChB,UAAU;QACV,WAAW;QACX,WAAW;QACX,SAAS;QACT,cAAc;QAEd,KAAK;QACL,GAAG;QACH,IAAI;QACJ,KAAK;QACL,GAAG;QACH,MAAM;QAEN,GAAG,mBAAmB,CAAC,OAAO;QAC9B,GAAG,qBAAqB;KACzB,CAAC,CAAC;IAEH,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC;AAAA,CACvE;AAED,SAAS,gBAAgB,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE;IAC9C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,MAAM,CAAC;AAAA,CACf;AAED,MAAM,yBAAyB,GAAG,CAAC,MAAiB,EAAE,EAAE,CAAC;IACvD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;AAAA,CAC5D,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,UAAU,CAAC;AAEhC,eAAe,MAAM,CAAC"}
@@ -1,7 +1,10 @@
1
+ import type React from 'react';
1
2
  import type { ViewProps } from 'react-native';
2
3
  import type { ShadowToken } from '@fluentui-react-native/theme-types';
3
- export declare const shadowName = "Shadow";
4
+ export declare const shadowName = 'Shadow';
4
5
  export interface ShadowProps extends ViewProps {
5
- shadowToken?: ShadowToken;
6
+ shadowToken?: ShadowToken;
7
+ /** Exactly one child */
8
+ children: React.ReactElement;
6
9
  }
7
- //# sourceMappingURL=Shadow.types.d.ts.map
10
+ //# sourceMappingURL=Shadow.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shadow.types.d.ts","sourceRoot":"","sources":["../src/Shadow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE,eAAO,MAAM,UAAU,WAAW,CAAC;AAEnC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
1
+ {"version":3,"file":"Shadow.types.d.ts","sourceRoot":"","sources":["../src/Shadow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE,eAAO,MAAM,UAAU,WAAW,CAAC;AAEnC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B,wBAAwB;IACxB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;CAC9B"}
@@ -1,2 +1,2 @@
1
1
  export const shadowName = 'Shadow';
2
- //# sourceMappingURL=Shadow.types.js.map
2
+ //# sourceMappingURL=Shadow.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shadow.types.js","sourceRoot":"","sources":["../src/Shadow.types.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"Shadow.types.js","sourceRoot":"","sources":["../src/Shadow.types.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=Shadow.test.d.ts.map
2
+ //# sourceMappingURL=Shadow.test.d.ts.map
@@ -1,4 +1,5 @@
1
- import * as React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from 'react/jsx-runtime';
2
+ import { act } from 'react';
2
3
  import { Text, View } from 'react-native';
3
4
  import { mergeStyles, useFluentTheme } from '@fluentui-react-native/framework';
4
5
  import { Pressable } from '@fluentui-react-native/pressable';
@@ -6,98 +7,152 @@ import * as renderer from 'react-test-renderer';
6
7
  import { Shadow } from '../Shadow';
7
8
  const backgroundColor = { backgroundColor: 'red' };
8
9
  const TestShadow = (props) => {
9
- const theme = useFluentTheme();
10
- return (React.createElement(Shadow, { shadowToken: theme.shadows[props.depth] },
11
- React.createElement(View, { style: backgroundColor },
12
- React.createElement(Text, null, props.displayText))));
10
+ const theme = useFluentTheme();
11
+ return _jsx(Shadow, {
12
+ shadowToken: theme.shadows[props.depth],
13
+ children: _jsx(View, { style: backgroundColor, children: _jsx(Text, { children: props.displayText }) }),
14
+ });
13
15
  };
14
16
  const TestPressableWithAndWithoutShadow = () => {
15
- const theme = useFluentTheme();
16
- return (React.createElement(View, null,
17
- React.createElement(Shadow, { shadowToken: theme.shadows['shadow16'] },
18
- React.createElement(Pressable, { style: backgroundColor })),
19
- React.createElement(View, null,
20
- React.createElement(Pressable, { style: backgroundColor }))));
17
+ const theme = useFluentTheme();
18
+ return _jsxs(View, {
19
+ children: [
20
+ _jsx(Shadow, { shadowToken: theme.shadows['shadow16'], children: _jsx(Pressable, { style: backgroundColor }) }),
21
+ _jsx(View, { children: _jsx(Pressable, { style: backgroundColor }) }),
22
+ ],
23
+ });
21
24
  };
22
25
  const TestShadowOnChildViewWithProps = (props) => {
23
- const theme = useFluentTheme();
24
- return (React.createElement(Shadow, { shadowToken: theme.shadows['shadow16'] },
25
- React.createElement(View, { style: mergeStyles(props.childViewStyleProps, backgroundColor) },
26
- React.createElement(Text, null, JSON.stringify(props.childViewStyleProps)))));
26
+ const theme = useFluentTheme();
27
+ return _jsx(Shadow, {
28
+ shadowToken: theme.shadows['shadow16'],
29
+ children: _jsx(View, {
30
+ style: mergeStyles(props.childViewStyleProps, backgroundColor),
31
+ children: _jsx(Text, { children: JSON.stringify(props.childViewStyleProps) }),
32
+ }),
33
+ });
27
34
  };
28
35
  describe('Shadow component tests', () => {
29
- beforeAll(() => {
30
- jest.mock('react-native/Libraries/Utilities/Platform', () => ({
31
- OS: 'macos',
32
- select: () => null,
33
- }));
34
- });
35
- it('Shadow (depth=2)', () => {
36
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Shadow (depth=2)", depth: "shadow2" })).toJSON();
37
- expect(tree).toMatchSnapshot();
38
- });
39
- it('Shadow (depth=4)', () => {
40
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Shadow (depth=4)", depth: "shadow4" })).toJSON();
41
- expect(tree).toMatchSnapshot();
42
- });
43
- it('Shadow (depth=8)', () => {
44
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Shadow (depth=8)", depth: "shadow8" })).toJSON();
45
- expect(tree).toMatchSnapshot();
46
- });
47
- it('Shadow (depth=16)', () => {
48
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Shadow (depth=16)", depth: "shadow16" })).toJSON();
49
- expect(tree).toMatchSnapshot();
50
- });
51
- it('Shadow (depth=28)', () => {
52
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Shadow (depth=28)", depth: "shadow28" })).toJSON();
53
- expect(tree).toMatchSnapshot();
54
- });
55
- it('Shadow (depth=64)', () => {
56
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Shadow (depth=64)", depth: "shadow64" })).toJSON();
57
- expect(tree).toMatchSnapshot();
58
- });
59
- it('Brand shadow (depth=2)', () => {
60
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Brand shadow (depth=2)", depth: "shadow2brand" })).toJSON();
61
- expect(tree).toMatchSnapshot();
62
- });
63
- it('Brand shadow (depth=4)', () => {
64
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Brand shadow (depth=4)", depth: "shadow4brand" })).toJSON();
65
- expect(tree).toMatchSnapshot();
66
- });
67
- it('Brand shadow (depth=8)', () => {
68
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Brand shadow (depth=8)", depth: "shadow8brand" })).toJSON();
69
- expect(tree).toMatchSnapshot();
70
- });
71
- it('Brand shadow (depth=16)', () => {
72
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Brand shadow (depth=16)", depth: "shadow16brand" })).toJSON();
73
- expect(tree).toMatchSnapshot();
74
- });
75
- it('Brand shadow (depth=28)', () => {
76
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Brand shadow (depth=28)", depth: "shadow28brand" })).toJSON();
77
- expect(tree).toMatchSnapshot();
78
- });
79
- it('Brand shadow (depth=64)', () => {
80
- const tree = renderer.create(React.createElement(TestShadow, { displayText: "Brand shadow (depth=64)", depth: "shadow64brand" })).toJSON();
81
- expect(tree).toMatchSnapshot();
82
- });
83
- it('Pressable that has a shadow vs. pressable without shadow', () => {
84
- const tree = renderer.create(React.createElement(TestPressableWithAndWithoutShadow, null)).toJSON();
85
- expect(tree).toMatchSnapshot();
86
- });
87
- it('Shadow on a child with margin and padding', () => {
88
- const tree = renderer.create(React.createElement(TestShadowOnChildViewWithProps, { childViewStyleProps: { margin: 2, padding: 2 } })).toJSON();
89
- expect(tree).toMatchSnapshot();
90
- });
91
- it('Shadow on a child with border radius', () => {
92
- const tree = renderer.create(React.createElement(TestShadowOnChildViewWithProps, { childViewStyleProps: { borderRadius: 2 } })).toJSON();
93
- expect(tree).toMatchSnapshot();
94
- });
95
- it('Shadow on a child with border width', () => {
96
- const tree = renderer.create(React.createElement(TestShadowOnChildViewWithProps, { childViewStyleProps: { borderWidth: 2 } })).toJSON();
97
- expect(tree).toMatchSnapshot();
98
- });
99
- afterAll(() => {
100
- jest.unmock('react-native/Libraries/Utilities/Platform');
101
- });
36
+ beforeAll(() => {
37
+ jest.mock('react-native/Libraries/Utilities/Platform', () => ({
38
+ OS: 'macos',
39
+ select: () => null,
40
+ }));
41
+ });
42
+ it('Shadow (depth=2)', () => {
43
+ let component;
44
+ act(() => {
45
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Shadow (depth=2)', depth: 'shadow2' }));
46
+ });
47
+ expect(component.toJSON()).toMatchSnapshot();
48
+ });
49
+ it('Shadow (depth=4)', () => {
50
+ let component;
51
+ act(() => {
52
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Shadow (depth=4)', depth: 'shadow4' }));
53
+ });
54
+ expect(component.toJSON()).toMatchSnapshot();
55
+ });
56
+ it('Shadow (depth=8)', () => {
57
+ let component;
58
+ act(() => {
59
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Shadow (depth=8)', depth: 'shadow8' }));
60
+ });
61
+ expect(component.toJSON()).toMatchSnapshot();
62
+ });
63
+ it('Shadow (depth=16)', () => {
64
+ let component;
65
+ act(() => {
66
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Shadow (depth=16)', depth: 'shadow16' }));
67
+ });
68
+ expect(component.toJSON()).toMatchSnapshot();
69
+ });
70
+ it('Shadow (depth=28)', () => {
71
+ let component;
72
+ act(() => {
73
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Shadow (depth=28)', depth: 'shadow28' }));
74
+ });
75
+ expect(component.toJSON()).toMatchSnapshot();
76
+ });
77
+ it('Shadow (depth=64)', () => {
78
+ let component;
79
+ act(() => {
80
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Shadow (depth=64)', depth: 'shadow64' }));
81
+ });
82
+ expect(component.toJSON()).toMatchSnapshot();
83
+ });
84
+ it('Brand shadow (depth=2)', () => {
85
+ let component;
86
+ act(() => {
87
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Brand shadow (depth=2)', depth: 'shadow2brand' }));
88
+ });
89
+ expect(component.toJSON()).toMatchSnapshot();
90
+ });
91
+ it('Brand shadow (depth=4)', () => {
92
+ let component;
93
+ act(() => {
94
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Brand shadow (depth=4)', depth: 'shadow4brand' }));
95
+ });
96
+ expect(component.toJSON()).toMatchSnapshot();
97
+ });
98
+ it('Brand shadow (depth=8)', () => {
99
+ let component;
100
+ act(() => {
101
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Brand shadow (depth=8)', depth: 'shadow8brand' }));
102
+ });
103
+ expect(component.toJSON()).toMatchSnapshot();
104
+ });
105
+ it('Brand shadow (depth=16)', () => {
106
+ let component;
107
+ act(() => {
108
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Brand shadow (depth=16)', depth: 'shadow16brand' }));
109
+ });
110
+ expect(component.toJSON()).toMatchSnapshot();
111
+ });
112
+ it('Brand shadow (depth=28)', () => {
113
+ let component;
114
+ act(() => {
115
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Brand shadow (depth=28)', depth: 'shadow28brand' }));
116
+ });
117
+ expect(component.toJSON()).toMatchSnapshot();
118
+ });
119
+ it('Brand shadow (depth=64)', () => {
120
+ let component;
121
+ act(() => {
122
+ component = renderer.create(_jsx(TestShadow, { displayText: 'Brand shadow (depth=64)', depth: 'shadow64brand' }));
123
+ });
124
+ expect(component.toJSON()).toMatchSnapshot();
125
+ });
126
+ it('Pressable that has a shadow vs. pressable without shadow', () => {
127
+ let component;
128
+ act(() => {
129
+ component = renderer.create(_jsx(TestPressableWithAndWithoutShadow, {}));
130
+ });
131
+ expect(component.toJSON()).toMatchSnapshot();
132
+ });
133
+ it('Shadow on a child with margin and padding', () => {
134
+ let component;
135
+ act(() => {
136
+ component = renderer.create(_jsx(TestShadowOnChildViewWithProps, { childViewStyleProps: { margin: 2, padding: 2 } }));
137
+ });
138
+ expect(component.toJSON()).toMatchSnapshot();
139
+ });
140
+ it('Shadow on a child with border radius', () => {
141
+ let component;
142
+ act(() => {
143
+ component = renderer.create(_jsx(TestShadowOnChildViewWithProps, { childViewStyleProps: { borderRadius: 2 } }));
144
+ });
145
+ expect(component.toJSON()).toMatchSnapshot();
146
+ });
147
+ it('Shadow on a child with border width', () => {
148
+ let component;
149
+ act(() => {
150
+ component = renderer.create(_jsx(TestShadowOnChildViewWithProps, { childViewStyleProps: { borderWidth: 2 } }));
151
+ });
152
+ expect(component.toJSON()).toMatchSnapshot();
153
+ });
154
+ afterAll(() => {
155
+ jest.unmock('react-native/Libraries/Utilities/Platform');
156
+ });
102
157
  });
103
- //# sourceMappingURL=Shadow.test.js.map
158
+ //# sourceMappingURL=Shadow.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shadow.test.js","sourceRoot":"","sources":["../../src/__tests__/Shadow.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,eAAe,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;AAMnD,MAAM,UAAU,GAA6C,CAAC,KAAsB,EAAE,EAAE;IACtF,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO,CACL,oBAAC,MAAM,IAAC,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;QAC7C,oBAAC,IAAI,IAAC,KAAK,EAAE,eAAe;YAC1B,oBAAC,IAAI,QAAE,KAAK,CAAC,WAAW,CAAQ,CAC3B,CACA,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iCAAiC,GAA4B,GAAG,EAAE;IACtE,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO,CACL,oB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BAA8B,IAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,GAAI,CAAC,CAAC;QAAA,CAC3G,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC/C,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE,CAAC;QAC9C,IAAI,SAAqC,CAAC;QAC1C,GAAG,CAAC,GAAG,EAAE,CAAC;YACR,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAC,8BAA8B,IAAC,mBAAmB,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,GAAI,CAAC,CAAC;QAAA,CAC1G,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC/C,CAAC,CAAC;IAEH,QAAQ,CAAC,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,MAAM,CAAC,2CAA2C,CAAC,CAAC;IAAA,CAC1D,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Shadow } from './Shadow';
2
2
  export type { ShadowProps } from './Shadow.types';
3
3
  export { getShadowTokenStyleSet } from './shadowStyle';
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export { Shadow } from './Shadow';
2
2
  export { getShadowTokenStyleSet } from './shadowStyle';
3
- //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map