@fluentui-react-native/experimental-shimmer 0.13.20 → 0.14.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 +52 -0
- package/SPEC.md +2 -2
- package/lib/Shimmer.d.ts +1 -1
- package/lib/Shimmer.d.ts.map +1 -1
- package/lib/Shimmer.js +15 -16
- package/lib/Shimmer.js.map +1 -1
- package/lib/Shimmer.test.js +16 -12
- package/lib/Shimmer.test.js.map +1 -1
- package/lib/Shimmer.win32.d.ts +1 -1
- package/lib/Shimmer.win32.d.ts.map +1 -1
- package/lib/Shimmer.win32.js +15 -21
- package/lib/Shimmer.win32.js.map +1 -1
- package/lib/ShimmerTokens.android.js.map +1 -1
- package/lib/ShimmerTokens.ios.js.map +1 -1
- package/lib/ShimmerTokens.js.map +1 -1
- package/lib/ShimmerTokens.win32.js.map +1 -1
- package/lib/SvgShapeToPath.js.map +1 -1
- package/lib/Win32ShimmerNativeComponent.d.ts +2 -2
- package/lib/Win32ShimmerNativeComponent.d.ts.map +1 -1
- package/lib/Win32ShimmerNativeComponent.js +2 -2
- package/lib/Win32ShimmerNativeComponent.js.map +1 -1
- package/lib-commonjs/Shimmer.d.ts.map +1 -1
- package/lib-commonjs/Shimmer.js +14 -15
- package/lib-commonjs/Shimmer.js.map +1 -1
- package/lib-commonjs/Shimmer.test.js +33 -19
- package/lib-commonjs/Shimmer.test.js.map +1 -1
- package/lib-commonjs/Shimmer.types.js +1 -1
- package/lib-commonjs/Shimmer.types.js.map +1 -1
- package/lib-commonjs/Shimmer.types.win32.js +1 -1
- package/lib-commonjs/Shimmer.types.win32.js.map +1 -1
- package/lib-commonjs/Shimmer.win32.d.ts.map +1 -1
- package/lib-commonjs/Shimmer.win32.js +20 -26
- package/lib-commonjs/Shimmer.win32.js.map +1 -1
- package/lib-commonjs/ShimmerTokens.android.js.map +1 -1
- package/lib-commonjs/ShimmerTokens.ios.js.map +1 -1
- package/lib-commonjs/ShimmerTokens.js.map +1 -1
- package/lib-commonjs/ShimmerTokens.win32.js.map +1 -1
- package/lib-commonjs/SvgShapeToPath.js +2 -3
- package/lib-commonjs/SvgShapeToPath.js.map +1 -1
- package/lib-commonjs/Win32ShimmerNativeComponent.d.ts +2 -2
- package/lib-commonjs/Win32ShimmerNativeComponent.d.ts.map +1 -1
- package/lib-commonjs/Win32ShimmerNativeComponent.js +2 -5
- package/lib-commonjs/Win32ShimmerNativeComponent.js.map +1 -1
- package/lib-commonjs/index.js +3 -3
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +63 -61
- package/src/Shimmer.test.tsx +16 -13
- package/src/Shimmer.tsx +4 -5
- package/src/Shimmer.win32.tsx +1 -3
- package/src/ShimmerTokens.android.ts +1 -1
- package/src/ShimmerTokens.ios.ts +1 -1
- package/src/ShimmerTokens.ts +1 -1
- package/src/ShimmerTokens.win32.ts +1 -1
- package/src/Win32ShimmerNativeComponent.ts +3 -3
package/src/Shimmer.win32.tsx
CHANGED
|
@@ -4,13 +4,11 @@
|
|
|
4
4
|
* @format
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/** @
|
|
8
|
-
/** @jsx withSlots */
|
|
7
|
+
/** @jsxImportSource @fluentui-react-native/framework-base */
|
|
9
8
|
import { processColor, View } from 'react-native';
|
|
10
9
|
|
|
11
10
|
import type { UseSlots } from '@fluentui-react-native/framework';
|
|
12
11
|
import { compose, mergeProps } from '@fluentui-react-native/framework';
|
|
13
|
-
import { withSlots } from '@fluentui-react-native/framework';
|
|
14
12
|
import { assertNever } from 'assert-never';
|
|
15
13
|
import type { SvgProps } from 'react-native-svg';
|
|
16
14
|
import { ClipPath, Defs, LinearGradient, Path, Rect, Stop, Svg } from 'react-native-svg';
|
package/src/ShimmerTokens.ios.ts
CHANGED
package/src/ShimmerTokens.ts
CHANGED
|
@@ -15,4 +15,4 @@ export const defaultShimmerTokens: TokenSettings<ShimmerTokens, Theme> = (theme:
|
|
|
15
15
|
shimmerColorOpacity: 1,
|
|
16
16
|
shimmerWaveColor: getCurrentAppearance(theme.host.appearance, 'light') === 'light' ? 'white' : 'black',
|
|
17
17
|
shimmerWaveColorOpacity: 1,
|
|
18
|
-
} as ShimmerTokens
|
|
18
|
+
}) as ShimmerTokens;
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* @format
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type {
|
|
7
|
+
import type { ViewProps } from 'react-native';
|
|
8
8
|
|
|
9
9
|
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
10
|
-
import
|
|
10
|
+
import { requireNativeComponent } from 'react-native';
|
|
11
11
|
|
|
12
12
|
export interface NativeProps extends ViewProps {
|
|
13
13
|
delay?: Double;
|
|
14
14
|
duration?: Double;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export default
|
|
17
|
+
export default requireNativeComponent<NativeProps>('RCTNativeAnimatedShimmer');
|