@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.
Files changed (54) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/SPEC.md +2 -2
  3. package/lib/Shimmer.d.ts +1 -1
  4. package/lib/Shimmer.d.ts.map +1 -1
  5. package/lib/Shimmer.js +15 -16
  6. package/lib/Shimmer.js.map +1 -1
  7. package/lib/Shimmer.test.js +16 -12
  8. package/lib/Shimmer.test.js.map +1 -1
  9. package/lib/Shimmer.win32.d.ts +1 -1
  10. package/lib/Shimmer.win32.d.ts.map +1 -1
  11. package/lib/Shimmer.win32.js +15 -21
  12. package/lib/Shimmer.win32.js.map +1 -1
  13. package/lib/ShimmerTokens.android.js.map +1 -1
  14. package/lib/ShimmerTokens.ios.js.map +1 -1
  15. package/lib/ShimmerTokens.js.map +1 -1
  16. package/lib/ShimmerTokens.win32.js.map +1 -1
  17. package/lib/SvgShapeToPath.js.map +1 -1
  18. package/lib/Win32ShimmerNativeComponent.d.ts +2 -2
  19. package/lib/Win32ShimmerNativeComponent.d.ts.map +1 -1
  20. package/lib/Win32ShimmerNativeComponent.js +2 -2
  21. package/lib/Win32ShimmerNativeComponent.js.map +1 -1
  22. package/lib-commonjs/Shimmer.d.ts.map +1 -1
  23. package/lib-commonjs/Shimmer.js +14 -15
  24. package/lib-commonjs/Shimmer.js.map +1 -1
  25. package/lib-commonjs/Shimmer.test.js +33 -19
  26. package/lib-commonjs/Shimmer.test.js.map +1 -1
  27. package/lib-commonjs/Shimmer.types.js +1 -1
  28. package/lib-commonjs/Shimmer.types.js.map +1 -1
  29. package/lib-commonjs/Shimmer.types.win32.js +1 -1
  30. package/lib-commonjs/Shimmer.types.win32.js.map +1 -1
  31. package/lib-commonjs/Shimmer.win32.d.ts.map +1 -1
  32. package/lib-commonjs/Shimmer.win32.js +20 -26
  33. package/lib-commonjs/Shimmer.win32.js.map +1 -1
  34. package/lib-commonjs/ShimmerTokens.android.js.map +1 -1
  35. package/lib-commonjs/ShimmerTokens.ios.js.map +1 -1
  36. package/lib-commonjs/ShimmerTokens.js.map +1 -1
  37. package/lib-commonjs/ShimmerTokens.win32.js.map +1 -1
  38. package/lib-commonjs/SvgShapeToPath.js +2 -3
  39. package/lib-commonjs/SvgShapeToPath.js.map +1 -1
  40. package/lib-commonjs/Win32ShimmerNativeComponent.d.ts +2 -2
  41. package/lib-commonjs/Win32ShimmerNativeComponent.d.ts.map +1 -1
  42. package/lib-commonjs/Win32ShimmerNativeComponent.js +2 -5
  43. package/lib-commonjs/Win32ShimmerNativeComponent.js.map +1 -1
  44. package/lib-commonjs/index.js +3 -3
  45. package/lib-commonjs/index.js.map +1 -1
  46. package/package.json +63 -61
  47. package/src/Shimmer.test.tsx +16 -13
  48. package/src/Shimmer.tsx +4 -5
  49. package/src/Shimmer.win32.tsx +1 -3
  50. package/src/ShimmerTokens.android.ts +1 -1
  51. package/src/ShimmerTokens.ios.ts +1 -1
  52. package/src/ShimmerTokens.ts +1 -1
  53. package/src/ShimmerTokens.win32.ts +1 -1
  54. package/src/Win32ShimmerNativeComponent.ts +3 -3
@@ -4,13 +4,11 @@
4
4
  * @format
5
5
  */
6
6
 
7
- /** @jsxRuntime classic */
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';
@@ -13,4 +13,4 @@ export const defaultShimmerTokens: TokenSettings<ShimmerTokens, Theme> = (theme:
13
13
  shimmerColorOpacity: 1,
14
14
  shimmerWaveColor: theme.colors.neutralStencil2,
15
15
  shimmerWaveColorOpacity: 1,
16
- } as ShimmerTokens);
16
+ }) as ShimmerTokens;
@@ -13,4 +13,4 @@ export const defaultShimmerTokens: TokenSettings<ShimmerTokens, Theme> = (theme:
13
13
  shimmerColorOpacity: 1,
14
14
  shimmerWaveColor: theme.colors.neutralStencil2,
15
15
  shimmerWaveColorOpacity: 1,
16
- } as ShimmerTokens);
16
+ }) as ShimmerTokens;
@@ -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;
@@ -15,4 +15,4 @@ export const defaultShimmerTokens: TokenSettings<ShimmerTokens, Theme> = (theme:
15
15
  shimmerWaveColor: '#E1E1E1',
16
16
  shimmerWaveColorOpacity: 1,
17
17
  shimmerWaveWidth: '100%',
18
- } as ShimmerTokens);
18
+ }) as ShimmerTokens;
@@ -4,14 +4,14 @@
4
4
  * @format
5
5
  */
6
6
 
7
- import type { HostComponent, ViewProps } from 'react-native';
7
+ import type { ViewProps } from 'react-native';
8
8
 
9
9
  import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
10
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
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 codegenNativeComponent<NativeProps>('RCTNativeAnimatedShimmer') as HostComponent<NativeProps>;
17
+ export default requireNativeComponent<NativeProps>('RCTNativeAnimatedShimmer');