@fluentui-react-native/experimental-shadow 0.7.0 → 0.7.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.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Change Log - @fluentui-react-native/experimental-shadow
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0d6e9c1: chore: migrate to `oxfmt`
8
+ - ac6e7af: Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering
9
+ - Updated dependencies [0d6e9c1]
10
+ - Updated dependencies [ac6e7af]
11
+ - @fluentui-react-native/pressable@0.13.1
12
+ - @fluentui-react-native/framework@0.15.1
13
+ - @fluentui-react-native/theme-types@0.44.1
14
+ - @fluentui-react-native/framework-base@0.3.1
15
+
3
16
  ## 0.7.0
4
17
 
5
18
  ### Minor Changes
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-base').FunctionComponent<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
package/lib/Shadow.js CHANGED
@@ -1,123 +1,87 @@
1
- import { Fragment as _Fragment, jsx as _jsx } from 'react/jsx-runtime';
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { View } from 'react-native';
4
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
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
- });
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
+ });
20
20
  });
21
21
  const getStylePropsForShadowViews = memoize(getStylePropsForShadowViewsWorker);
22
22
  function getStylePropsForShadowViewsWorker(childStyleProps = {}, shadowToken) {
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');
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');
27
+ }
27
28
  }
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 } };
29
+ 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;
30
+ // Remove undefined properties, otherwise every prop will be added and be set to
31
+ // undefined, which can cause unexpected behaviour with some of the styles
32
+ const innerStyle = removeUndefinedProperties({
33
+ borderBottomWidth,
34
+ borderEndWidth,
35
+ borderLeftWidth,
36
+ borderRightWidth,
37
+ borderStartWidth,
38
+ borderTopWidth,
39
+ borderWidth,
40
+ padding,
41
+ paddingBottom,
42
+ paddingEnd,
43
+ paddingHorizontal,
44
+ paddingLeft,
45
+ paddingRight,
46
+ paddingStart,
47
+ paddingTop,
48
+ paddingVertical,
49
+ alignItems,
50
+ flexWrap,
51
+ flexDirection,
52
+ ...shadowTokenStyleSet.key,
53
+ ...restOfChildStyleProps,
54
+ });
55
+ const outerStyle = removeUndefinedProperties({
56
+ margin,
57
+ marginBottom,
58
+ marginEnd,
59
+ marginHorizontal,
60
+ marginLeft,
61
+ marginRight,
62
+ marginStart,
63
+ marginTop,
64
+ marginVertical,
65
+ start,
66
+ end,
67
+ left,
68
+ right,
69
+ top,
70
+ bottom,
71
+ ...shadowTokenStyleSet.ambient,
72
+ ...restOfChildStyleProps,
73
+ });
74
+ return { inner: { style: innerStyle }, outer: { style: outerStyle } };
111
75
  }
112
76
  function withObjectAssign(object, [key, value]) {
113
- if (value !== undefined) {
114
- return Object.assign(object, { [key]: value });
115
- }
116
- return object;
77
+ if (value !== undefined) {
78
+ return Object.assign(object, { [key]: value });
79
+ }
80
+ return object;
117
81
  }
118
82
  const removeUndefinedProperties = (object) => {
119
- return Object.entries(object).reduce(withObjectAssign, {});
83
+ return Object.entries(object).reduce(withObjectAssign, {});
120
84
  };
121
85
  Shadow.displayName = shadowName;
122
86
  export default Shadow;
123
- //# sourceMappingURL=Shadow.js.map
87
+ //# sourceMappingURL=Shadow.js.map
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import type { ShadowToken } from '@fluentui-react-native/theme-types';
4
- export declare const shadowName = 'Shadow';
4
+ export declare const shadowName = "Shadow";
5
5
  export interface ShadowProps extends ViewProps {
6
- shadowToken?: ShadowToken;
7
- /** Exactly one child */
8
- children: React.ReactElement;
6
+ shadowToken?: ShadowToken;
7
+ /** Exactly one child */
8
+ children: React.ReactElement;
9
9
  }
10
- //# sourceMappingURL=Shadow.types.d.ts.map
10
+ //# sourceMappingURL=Shadow.types.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export const shadowName = 'Shadow';
2
- //# sourceMappingURL=Shadow.types.js.map
2
+ //# sourceMappingURL=Shadow.types.js.map
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=Shadow.test.d.ts.map
2
+ //# sourceMappingURL=Shadow.test.d.ts.map
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from 'react/jsx-runtime';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { act } from 'react';
3
3
  import { Text, View } from 'react-native';
4
4
  import { mergeStyles, useFluentTheme } from '@fluentui-react-native/framework';
@@ -7,152 +7,140 @@ import * as renderer from 'react-test-renderer';
7
7
  import { Shadow } from '../Shadow';
8
8
  const backgroundColor = { backgroundColor: 'red' };
9
9
  const TestShadow = (props) => {
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
- });
10
+ const theme = useFluentTheme();
11
+ return (_jsx(Shadow, { shadowToken: theme.shadows[props.depth], children: _jsx(View, { style: backgroundColor, children: _jsx(Text, { children: props.displayText }) }) }));
15
12
  };
16
13
  const TestPressableWithAndWithoutShadow = () => {
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
- });
14
+ const theme = useFluentTheme();
15
+ return (_jsxs(View, { children: [
16
+ _jsx(Shadow, { shadowToken: theme.shadows['shadow16'], children: _jsx(Pressable, { style: backgroundColor }) }), _jsx(View, { children: _jsx(Pressable, { style: backgroundColor }) })
17
+ ] }));
24
18
  };
25
19
  const TestShadowOnChildViewWithProps = (props) => {
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
- });
20
+ const theme = useFluentTheme();
21
+ return (_jsx(Shadow, { shadowToken: theme.shadows['shadow16'], children: _jsx(View, { style: mergeStyles(props.childViewStyleProps, backgroundColor), children: _jsx(Text, { children: JSON.stringify(props.childViewStyleProps) }) }) }));
34
22
  };
35
23
  describe('Shadow component tests', () => {
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
- });
24
+ beforeAll(() => {
25
+ jest.mock('react-native/Libraries/Utilities/Platform', () => ({
26
+ OS: 'macos',
27
+ select: () => null,
28
+ }));
29
+ });
30
+ it('Shadow (depth=2)', () => {
31
+ let component;
32
+ act(() => {
33
+ component = renderer.create(_jsx(TestShadow, { displayText: "Shadow (depth=2)", depth: "shadow2" }));
34
+ });
35
+ expect(component.toJSON()).toMatchSnapshot();
36
+ });
37
+ it('Shadow (depth=4)', () => {
38
+ let component;
39
+ act(() => {
40
+ component = renderer.create(_jsx(TestShadow, { displayText: "Shadow (depth=4)", depth: "shadow4" }));
41
+ });
42
+ expect(component.toJSON()).toMatchSnapshot();
43
+ });
44
+ it('Shadow (depth=8)', () => {
45
+ let component;
46
+ act(() => {
47
+ component = renderer.create(_jsx(TestShadow, { displayText: "Shadow (depth=8)", depth: "shadow8" }));
48
+ });
49
+ expect(component.toJSON()).toMatchSnapshot();
50
+ });
51
+ it('Shadow (depth=16)', () => {
52
+ let component;
53
+ act(() => {
54
+ component = renderer.create(_jsx(TestShadow, { displayText: "Shadow (depth=16)", depth: "shadow16" }));
55
+ });
56
+ expect(component.toJSON()).toMatchSnapshot();
57
+ });
58
+ it('Shadow (depth=28)', () => {
59
+ let component;
60
+ act(() => {
61
+ component = renderer.create(_jsx(TestShadow, { displayText: "Shadow (depth=28)", depth: "shadow28" }));
62
+ });
63
+ expect(component.toJSON()).toMatchSnapshot();
64
+ });
65
+ it('Shadow (depth=64)', () => {
66
+ let component;
67
+ act(() => {
68
+ component = renderer.create(_jsx(TestShadow, { displayText: "Shadow (depth=64)", depth: "shadow64" }));
69
+ });
70
+ expect(component.toJSON()).toMatchSnapshot();
71
+ });
72
+ it('Brand shadow (depth=2)', () => {
73
+ let component;
74
+ act(() => {
75
+ component = renderer.create(_jsx(TestShadow, { displayText: "Brand shadow (depth=2)", depth: "shadow2brand" }));
76
+ });
77
+ expect(component.toJSON()).toMatchSnapshot();
78
+ });
79
+ it('Brand shadow (depth=4)', () => {
80
+ let component;
81
+ act(() => {
82
+ component = renderer.create(_jsx(TestShadow, { displayText: "Brand shadow (depth=4)", depth: "shadow4brand" }));
83
+ });
84
+ expect(component.toJSON()).toMatchSnapshot();
85
+ });
86
+ it('Brand shadow (depth=8)', () => {
87
+ let component;
88
+ act(() => {
89
+ component = renderer.create(_jsx(TestShadow, { displayText: "Brand shadow (depth=8)", depth: "shadow8brand" }));
90
+ });
91
+ expect(component.toJSON()).toMatchSnapshot();
92
+ });
93
+ it('Brand shadow (depth=16)', () => {
94
+ let component;
95
+ act(() => {
96
+ component = renderer.create(_jsx(TestShadow, { displayText: "Brand shadow (depth=16)", depth: "shadow16brand" }));
97
+ });
98
+ expect(component.toJSON()).toMatchSnapshot();
99
+ });
100
+ it('Brand shadow (depth=28)', () => {
101
+ let component;
102
+ act(() => {
103
+ component = renderer.create(_jsx(TestShadow, { displayText: "Brand shadow (depth=28)", depth: "shadow28brand" }));
104
+ });
105
+ expect(component.toJSON()).toMatchSnapshot();
106
+ });
107
+ it('Brand shadow (depth=64)', () => {
108
+ let component;
109
+ act(() => {
110
+ component = renderer.create(_jsx(TestShadow, { displayText: "Brand shadow (depth=64)", depth: "shadow64brand" }));
111
+ });
112
+ expect(component.toJSON()).toMatchSnapshot();
113
+ });
114
+ it('Pressable that has a shadow vs. pressable without shadow', () => {
115
+ let component;
116
+ act(() => {
117
+ component = renderer.create(_jsx(TestPressableWithAndWithoutShadow, {}));
118
+ });
119
+ expect(component.toJSON()).toMatchSnapshot();
120
+ });
121
+ it('Shadow on a child with margin and padding', () => {
122
+ let component;
123
+ act(() => {
124
+ component = renderer.create(_jsx(TestShadowOnChildViewWithProps, { childViewStyleProps: { margin: 2, padding: 2 } }));
125
+ });
126
+ expect(component.toJSON()).toMatchSnapshot();
127
+ });
128
+ it('Shadow on a child with border radius', () => {
129
+ let component;
130
+ act(() => {
131
+ component = renderer.create(_jsx(TestShadowOnChildViewWithProps, { childViewStyleProps: { borderRadius: 2 } }));
132
+ });
133
+ expect(component.toJSON()).toMatchSnapshot();
134
+ });
135
+ it('Shadow on a child with border width', () => {
136
+ let component;
137
+ act(() => {
138
+ component = renderer.create(_jsx(TestShadowOnChildViewWithProps, { childViewStyleProps: { borderWidth: 2 } }));
139
+ });
140
+ expect(component.toJSON()).toMatchSnapshot();
141
+ });
142
+ afterAll(() => {
143
+ jest.unmock('react-native/Libraries/Utilities/Platform');
144
+ });
157
145
  });
158
- //# sourceMappingURL=Shadow.test.js.map
146
+ //# sourceMappingURL=Shadow.test.js.map
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
@@ -1,24 +1,24 @@
1
1
  import type { ShadowToken } from '@fluentui-react-native/theme-types';
2
2
  export declare const getShadowTokenStyleSet: typeof getShadowTokenStyleSetWorker;
3
3
  declare function getShadowTokenStyleSetWorker(shadowToken: ShadowToken): {
4
- key: {
5
- shadowColor: string;
6
- shadowOpacity: number;
7
- shadowRadius: number;
8
- shadowOffset: {
9
- width: number;
10
- height: number;
4
+ key: {
5
+ shadowColor: string;
6
+ shadowOpacity: number;
7
+ shadowRadius: number;
8
+ shadowOffset: {
9
+ width: number;
10
+ height: number;
11
+ };
11
12
  };
12
- };
13
- ambient: {
14
- shadowColor: string;
15
- shadowOpacity: number;
16
- shadowRadius: number;
17
- shadowOffset: {
18
- width: number;
19
- height: number;
13
+ ambient: {
14
+ shadowColor: string;
15
+ shadowOpacity: number;
16
+ shadowRadius: number;
17
+ shadowOffset: {
18
+ width: number;
19
+ height: number;
20
+ };
20
21
  };
21
- };
22
22
  };
23
23
  export {};
24
- //# sourceMappingURL=shadowStyle.d.ts.map
24
+ //# sourceMappingURL=shadowStyle.d.ts.map