@fluentui-react-native/experimental-shadow 0.6.19 → 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.
- package/CHANGELOG.md +39 -0
- package/SPEC.md +1 -1
- package/lib/Shadow.d.ts +2 -2
- package/lib/Shadow.d.ts.map +1 -1
- package/lib/Shadow.js +108 -78
- package/lib/Shadow.js.map +1 -1
- package/lib/Shadow.types.d.ts +6 -3
- package/lib/Shadow.types.d.ts.map +1 -1
- package/lib/Shadow.types.js +1 -1
- package/lib/Shadow.types.js.map +1 -1
- package/lib/__tests__/Shadow.test.d.ts +1 -1
- package/lib/__tests__/Shadow.test.js +144 -89
- package/lib/__tests__/Shadow.test.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/shadowStyle.d.ts +17 -17
- package/lib/shadowStyle.js +29 -29
- package/lib/shadowStyle.js.map +1 -1
- package/lib-commonjs/Shadow.d.ts +2 -2
- package/lib-commonjs/Shadow.d.ts.map +1 -1
- package/lib-commonjs/Shadow.js +164 -107
- package/lib-commonjs/Shadow.js.map +1 -1
- package/lib-commonjs/Shadow.types.d.ts +6 -3
- package/lib-commonjs/Shadow.types.d.ts.map +1 -1
- package/lib-commonjs/Shadow.types.js +3 -3
- package/lib-commonjs/Shadow.types.js.map +1 -1
- package/lib-commonjs/__tests__/Shadow.test.d.ts +1 -1
- package/lib-commonjs/__tests__/Shadow.test.js +207 -119
- package/lib-commonjs/__tests__/Shadow.test.js.map +1 -1
- package/lib-commonjs/index.d.ts +1 -1
- package/lib-commonjs/index.js +17 -7
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/shadowStyle.d.ts +17 -17
- package/lib-commonjs/shadowStyle.js +36 -33
- package/lib-commonjs/shadowStyle.js.map +1 -1
- package/package.json +60 -59
- package/src/Shadow.tsx +8 -17
- package/src/Shadow.types.ts +4 -0
- package/src/__tests__/Shadow.test.tsx +83 -34
- 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/
|
|
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(
|
|
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
|
package/lib/Shadow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shadow.d.ts","sourceRoot":"","sources":["../src/Shadow.tsx"],"names":[],"mappings":"
|
|
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,
|
|
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 =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
113
|
+
if (value !== undefined) {
|
|
114
|
+
return Object.assign(object, { [key]: value });
|
|
115
|
+
}
|
|
116
|
+
return object;
|
|
87
117
|
}
|
|
88
118
|
const removeUndefinedProperties = (object) => {
|
|
89
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"Shadow.js","sourceRoot":"","sources":["../src/Shadow.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK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AAK;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"}
|
package/lib/Shadow.types.d.ts
CHANGED
|
@@ -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 =
|
|
4
|
+
export declare const shadowName = 'Shadow';
|
|
4
5
|
export interface ShadowProps extends ViewProps {
|
|
5
|
-
|
|
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;
|
|
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"}
|
package/lib/Shadow.types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const shadowName = 'Shadow';
|
|
2
|
-
//# sourceMappingURL=Shadow.types.js.map
|
|
2
|
+
//# sourceMappingURL=Shadow.types.js.map
|
package/lib/Shadow.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shadow.types.js","sourceRoot":"","sources":["../src/Shadow.types.ts"],"names":[],"mappings":"
|
|
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
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"Shadow.test.js","sourceRoot":"","sources":["../../src/__tests__/Shadow.test.tsx"],"names":[],"mappings":";AACA,OAA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