react-ui-animate 4.3.1 → 5.0.0-alpha.2

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 (31) hide show
  1. package/README.md +126 -141
  2. package/dist/animation/Value.d.ts +12 -0
  3. package/dist/animation/controllers.d.ts +41 -0
  4. package/dist/animation/hooks/index.d.ts +1 -1
  5. package/dist/animation/hooks/useAnimatedList.d.ts +24 -0
  6. package/dist/animation/hooks/useMount.d.ts +10 -8
  7. package/dist/animation/hooks/useValue.d.ts +15 -7
  8. package/dist/animation/index.d.ts +3 -4
  9. package/dist/animation/interpolation/index.d.ts +1 -1
  10. package/dist/animation/types.d.ts +22 -11
  11. package/dist/index.d.ts +2 -6
  12. package/dist/index.js +1 -1
  13. package/dist/index.js.map +1 -1
  14. package/package.json +2 -2
  15. package/dist/animation/controllers/index.d.ts +0 -8
  16. package/dist/animation/controllers/withDecay.d.ts +0 -11
  17. package/dist/animation/controllers/withDelay.d.ts +0 -4
  18. package/dist/animation/controllers/withEase.d.ts +0 -8
  19. package/dist/animation/controllers/withLoop.d.ts +0 -8
  20. package/dist/animation/controllers/withNative.d.ts +0 -5
  21. package/dist/animation/controllers/withSequence.d.ts +0 -8
  22. package/dist/animation/controllers/withSpring.d.ts +0 -12
  23. package/dist/animation/controllers/withTiming.d.ts +0 -11
  24. package/dist/animation/helpers/getToValue.d.ts +0 -2
  25. package/dist/animation/helpers/index.d.ts +0 -2
  26. package/dist/animation/hooks/useValues.d.ts +0 -7
  27. package/dist/animation/interpolation/interpolate.d.ts +0 -11
  28. package/dist/animation/modules/MountedBlock.d.ts +0 -11
  29. package/dist/animation/modules/ScrollableBlock.d.ts +0 -11
  30. package/dist/animation/modules/index.d.ts +0 -2
  31. /package/dist/animation/{helpers/animationType.d.ts → AnimationConfig.d.ts} +0 -0
@@ -1,11 +0,0 @@
1
- import { FluidValue } from '@raidipesh78/re-motion';
2
- import type { WithCallbacks } from '../types';
3
- interface WithTimingConfig extends WithCallbacks {
4
- duration?: number;
5
- easing?: (t: number) => number;
6
- }
7
- export declare const withTiming: (toValue: number, config?: WithTimingConfig, callback?: (result: any) => void) => (value: FluidValue) => {
8
- controller: import("@raidipesh78/re-motion/dist/controllers/types").ControllerAnimation;
9
- callback: ((result: any) => void) | undefined;
10
- };
11
- export {};
@@ -1,2 +0,0 @@
1
- import { ToValue } from '../types';
2
- export declare function getToValue(val: string | number | ToValue): ToValue;
@@ -1,2 +0,0 @@
1
- export * from './animationType';
2
- export * from './getToValue';
@@ -1,7 +0,0 @@
1
- import { FluidValue } from '@raidipesh78/re-motion';
2
- import type { ToValue } from '../types';
3
- export declare function useValues(initialValue: number[] | string[]): {
4
- get value(): FluidValue[];
5
- set value(to: number[] | string[] | ToValue[]);
6
- readonly currentValue: (string | number)[];
7
- };
@@ -1,11 +0,0 @@
1
- import { FluidValue } from '@raidipesh78/re-motion';
2
- type ExtrapolateType = 'identity' | 'extend' | 'clamp';
3
- type ExtrapolateConfig = {
4
- extrapolate?: ExtrapolateType;
5
- extrapolateLeft?: ExtrapolateType;
6
- extrapolateRight?: ExtrapolateType;
7
- };
8
- type InterpolateReturnType<T> = T extends number ? number : ReturnType<FluidValue['interpolate']>;
9
- export declare const interpolate: <T extends number | FluidValue>(value: T, inputRange: number[], outputRange: number[] | string[], extrapolateConfig?: ExtrapolateConfig) => InterpolateReturnType<T>;
10
- export declare const bInterpolate: <T extends number | FluidValue>(value: T, minOutput: number | string, maxOutput: number | string, extrapolateConfig?: ExtrapolateConfig) => InterpolateReturnType<T>;
11
- export {};
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { FluidValue } from '@raidipesh78/re-motion';
3
- import { type UseMountConfig } from '../hooks';
4
- interface MountedBlockProps extends Partial<UseMountConfig> {
5
- state: boolean;
6
- children: (animation: {
7
- value: FluidValue;
8
- }) => ReactNode;
9
- }
10
- export declare const MountedBlock: ({ state, children, from, enter, exit, }: MountedBlockProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { FluidValue } from '@raidipesh78/re-motion';
3
- interface ScrollableBlockProps {
4
- children?: (animation: {
5
- value: FluidValue;
6
- }) => ReactNode;
7
- direction?: 'single' | 'both';
8
- threshold?: number;
9
- }
10
- export declare const ScrollableBlock: (props: ScrollableBlockProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,2 +0,0 @@
1
- export * from './MountedBlock';
2
- export * from './ScrollableBlock';