@rootnative/inertia 0.0.10 → 0.0.11
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 +28 -1
- package/README.md +2 -2
- package/dist/{chunk-6FCATUMY.mjs → chunk-2Q6JMDYZ.mjs} +1 -1
- package/dist/chunk-2UREDR4Z.js +8 -0
- package/dist/{chunk-3ZNHPT5Z.js → chunk-3PB27UIE.js} +2 -2
- package/dist/{chunk-JENYDTXH.mjs → chunk-5EYIZG72.mjs} +10 -3
- package/dist/{chunk-Z23AMUSW.mjs → chunk-7RMSLKQQ.mjs} +1 -1
- package/dist/{chunk-7BH3CAO5.mjs → chunk-DT2KVAAO.mjs} +1 -1
- package/dist/{chunk-F4HMCXAX.mjs → chunk-FKJLPYGY.mjs} +2 -2
- package/dist/{chunk-2UGWAB6N.js → chunk-HBURWGCZ.js} +43 -36
- package/dist/chunk-JAJHKJC5.js +8 -0
- package/dist/chunk-JBMTTICC.js +8 -0
- package/dist/{chunk-QXKPIENP.mjs → chunk-JGQ6YRDN.mjs} +1 -1
- package/dist/{chunk-DRA2K53O.mjs → chunk-LHW4VNWD.mjs} +1 -1
- package/dist/{chunk-4EZ5DBL3.js → chunk-NTG6PSGZ.js} +8 -8
- package/dist/{chunk-KXU6VH2Y.js → chunk-QDMSFRQR.js} +4 -4
- package/dist/{chunk-HEAWMZEM.mjs → chunk-QIRKPDXA.mjs} +13 -2
- package/dist/{chunk-N33GSDNQ.js → chunk-QX5JHRZ2.js} +12 -1
- package/dist/{chunk-VKXSL3ZL.js → chunk-R7YD6L3D.js} +2 -2
- package/dist/{chunk-CUHOCONB.mjs → chunk-RO4XFTQ6.mjs} +1 -1
- package/dist/{chunk-OLOSU2BD.mjs → chunk-UGYBFAVY.mjs} +1 -1
- package/dist/{chunk-46766TBM.js → chunk-XLKI2MSD.js} +2 -2
- package/dist/gestureLayer/index.d.mts +2 -2
- package/dist/gestureLayer/index.d.ts +2 -2
- package/dist/gestureLayer/index.js +11 -11
- package/dist/gestureLayer/index.mjs +3 -3
- package/dist/index.d.mts +49 -32
- package/dist/index.d.ts +49 -32
- package/dist/index.js +62 -62
- package/dist/index.mjs +19 -19
- package/dist/motion/FlatList.d.mts +2 -1
- package/dist/motion/FlatList.d.ts +2 -1
- package/dist/motion/FlatList.js +5 -5
- package/dist/motion/FlatList.mjs +4 -4
- package/dist/motion/Image.d.mts +2 -1
- package/dist/motion/Image.d.ts +2 -1
- package/dist/motion/Image.js +5 -5
- package/dist/motion/Image.mjs +4 -4
- package/dist/motion/Pressable.d.mts +2 -1
- package/dist/motion/Pressable.d.ts +2 -1
- package/dist/motion/Pressable.js +5 -5
- package/dist/motion/Pressable.mjs +4 -4
- package/dist/motion/ScrollView.d.mts +2 -1
- package/dist/motion/ScrollView.d.ts +2 -1
- package/dist/motion/ScrollView.js +5 -5
- package/dist/motion/ScrollView.mjs +4 -4
- package/dist/motion/Text.d.mts +2 -1
- package/dist/motion/Text.d.ts +2 -1
- package/dist/motion/Text.js +5 -5
- package/dist/motion/Text.mjs +4 -4
- package/dist/motion/View.d.mts +2 -1
- package/dist/motion/View.d.ts +2 -1
- package/dist/motion/View.js +5 -5
- package/dist/motion/View.mjs +4 -4
- package/dist/touch/index.d.mts +5 -4
- package/dist/touch/index.d.ts +5 -4
- package/dist/touch/index.js +3 -3
- package/dist/touch/index.mjs +1 -1
- package/dist/{types-08mG8fNk.d.mts → types-C5Zbs9MC.d.mts} +12 -1
- package/dist/{types-08mG8fNk.d.ts → types-C5Zbs9MC.d.ts} +12 -1
- package/dist/{useGesture-D1lHeQQ6.d.ts → useGesture-Be0ZhCWj.d.ts} +1 -1
- package/dist/{useGesture-DjszaHWz.d.mts → useGesture-Ve8EGjTr.d.mts} +1 -1
- package/dist/useTranslateStyle-BDrOD97O.d.mts +58 -0
- package/dist/useTranslateStyle-BDrOD97O.d.ts +58 -0
- package/jest-preset.js +31 -2
- package/llms.txt +2 -1
- package/package.json +13 -12
- package/src/index.ts +3 -0
- package/src/internal/boxShadow.ts +24 -2
- package/src/touch/useTouchDrag.ts +5 -3
- package/src/transitions/resolveSequence.ts +42 -2
- package/src/types.ts +14 -1
- package/src/values/index.ts +3 -1
- package/src/values/useColorCascade.ts +3 -3
- package/src/values/useColorTransition.ts +17 -2
- package/src/values/useInterpolatedStyle.ts +8 -1
- package/src/values/useShadow.ts +18 -2
- package/src/values/useTranslateStyle.ts +18 -2
- package/dist/applyBounds-BYGiHrYO.d.mts +0 -18
- package/dist/applyBounds-BYGiHrYO.d.ts +0 -18
- package/dist/chunk-PLKXCJIB.js +0 -8
- package/dist/chunk-UBHQJFUW.js +0 -8
- package/dist/chunk-XKNEQDAT.js +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SharedValue, AnimatedStyle } from 'react-native-reanimated';
|
|
2
|
-
import { U as UseGestureHandlers } from '../useGesture-
|
|
3
|
-
import { b as TransitionInput, G as GestureLayerTransitions } from '../types-
|
|
2
|
+
import { U as UseGestureHandlers } from '../useGesture-Ve8EGjTr.mjs';
|
|
3
|
+
import { b as TransitionInput, G as GestureLayerTransitions } from '../types-C5Zbs9MC.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-native';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SharedValue, AnimatedStyle } from 'react-native-reanimated';
|
|
2
|
-
import { U as UseGestureHandlers } from '../useGesture-
|
|
3
|
-
import { b as TransitionInput, G as GestureLayerTransitions } from '../types-
|
|
2
|
+
import { U as UseGestureHandlers } from '../useGesture-Be0ZhCWj.js';
|
|
3
|
+
import { b as TransitionInput, G as GestureLayerTransitions } from '../types-C5Zbs9MC.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-native';
|
|
6
6
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkNTG6PSGZ_js = require('../chunk-NTG6PSGZ.js');
|
|
4
|
+
var chunkQDMSFRQR_js = require('../chunk-QDMSFRQR.js');
|
|
5
|
+
var chunkQX5JHRZ2_js = require('../chunk-QX5JHRZ2.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var reactNativeReanimated = require('react-native-reanimated');
|
|
8
8
|
|
|
9
9
|
function useGestureLayer(states, options = {}) {
|
|
10
10
|
const { disabled: isDisabled = false, transition: transitionInput } = options;
|
|
11
|
-
const shouldReduceMotion =
|
|
12
|
-
const transition =
|
|
11
|
+
const shouldReduceMotion = chunkQDMSFRQR_js.useShouldReduceMotion();
|
|
12
|
+
const transition = chunkQDMSFRQR_js.resolveNamedTransitionProp(
|
|
13
13
|
transitionInput,
|
|
14
|
-
|
|
14
|
+
chunkQDMSFRQR_js.useNamedTransitions()
|
|
15
15
|
);
|
|
16
|
-
const gesture =
|
|
16
|
+
const gesture = chunkNTG6PSGZ_js.useGesture(transition);
|
|
17
17
|
const disabledProgress = reactNativeReanimated.useSharedValue(0);
|
|
18
|
-
const transitionSig =
|
|
18
|
+
const transitionSig = chunkQX5JHRZ2_js.stableSig(transition);
|
|
19
19
|
react.useEffect(() => {
|
|
20
20
|
const target = isDisabled ? 1 : 0;
|
|
21
21
|
const cfg = shouldReduceMotion ? { type: "no-animation" } : disabledTransition(transition) ?? { type: "spring" };
|
|
22
|
-
disabledProgress.value =
|
|
22
|
+
disabledProgress.value = chunkQX5JHRZ2_js.resolveTransition(cfg, target);
|
|
23
23
|
}, [isDisabled, shouldReduceMotion, transitionSig, disabledProgress]);
|
|
24
|
-
const statesSig =
|
|
24
|
+
const statesSig = chunkQX5JHRZ2_js.stableSig(states);
|
|
25
25
|
const meta = react.useMemo(() => {
|
|
26
26
|
const layers = {
|
|
27
27
|
rest: states.rest,
|
|
@@ -148,7 +148,7 @@ function useGestureLayer(states, options = {}) {
|
|
|
148
148
|
}
|
|
149
149
|
function disabledTransition(transition) {
|
|
150
150
|
if (!transition) return void 0;
|
|
151
|
-
if (
|
|
151
|
+
if (chunkQX5JHRZ2_js.isTopLevelTransition(transition)) return transition;
|
|
152
152
|
return void 0;
|
|
153
153
|
}
|
|
154
154
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useGesture } from '../chunk-
|
|
2
|
-
import { useShouldReduceMotion, resolveNamedTransitionProp, useNamedTransitions } from '../chunk-
|
|
3
|
-
import { stableSig, resolveTransition, isTopLevelTransition } from '../chunk-
|
|
1
|
+
import { useGesture } from '../chunk-FKJLPYGY.mjs';
|
|
2
|
+
import { useShouldReduceMotion, resolveNamedTransitionProp, useNamedTransitions } from '../chunk-2Q6JMDYZ.mjs';
|
|
3
|
+
import { stableSig, resolveTransition, isTopLevelTransition } from '../chunk-QIRKPDXA.mjs';
|
|
4
4
|
import { useEffect, useMemo } from 'react';
|
|
5
5
|
import { useSharedValue, useAnimatedStyle, interpolateColor } from 'react-native-reanimated';
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -2,12 +2,12 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { TextStyle, ImageStyle, ViewStyle, NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
|
|
5
|
-
import { M as MotionComponent, V as VariantsMap, a as MotionProps, N as NamedTransitions, b as TransitionInput, T as TransitionConfig, A as AnimatableValue, E as EasingInput, S as SpringTransition, c as TransitionName, d as VariantController } from './types-
|
|
6
|
-
export { e as AnimateStyle, f as AnimationCallbackInfo, B as BoxShadowInput, D as DecayTransition, g as EasingFunction, h as EasingFunctionFactory, G as GestureLayerTransitions, i as GestureSubStates, j as MotionComponentProps, k as NoAnimationTransition, P as PerPropertyTransition, R as RegisteredTransitions, l as RepeatConfig, m as SequenceStep, n as TimingTransition, o as Transition } from './types-
|
|
7
|
-
export { a as applyBounds } from './
|
|
8
|
-
import { SharedValue
|
|
5
|
+
import { M as MotionComponent, V as VariantsMap, a as MotionProps, N as NamedTransitions, b as TransitionInput, T as TransitionConfig, A as AnimatableValue, E as EasingInput, S as SpringTransition, c as TransitionName, d as VariantController } from './types-C5Zbs9MC.mjs';
|
|
6
|
+
export { e as AnimateStyle, f as AnimationCallbackInfo, B as BoxShadowInput, D as DecayTransition, g as EasingFunction, h as EasingFunctionFactory, G as GestureLayerTransitions, i as GestureSubStates, j as MotionComponentProps, k as NoAnimationTransition, P as PerPropertyTransition, R as RegisteredTransitions, l as RepeatConfig, m as SequenceStep, n as TimingTransition, o as Transition } from './types-C5Zbs9MC.mjs';
|
|
7
|
+
export { T as TranslateStyle, a as applyBounds, u as useTranslateStyle } from './useTranslateStyle-BDrOD97O.mjs';
|
|
8
|
+
import { SharedValue } from 'react-native-reanimated';
|
|
9
9
|
export { SharedValue } from 'react-native-reanimated';
|
|
10
|
-
export { U as UseGestureHandlers, a as UseGestureResult, u as useGesture } from './useGesture-
|
|
10
|
+
export { U as UseGestureHandlers, a as UseGestureResult, u as useGesture } from './useGesture-Ve8EGjTr.mjs';
|
|
11
11
|
export { MotionFlatList } from './motion/FlatList.mjs';
|
|
12
12
|
export { MotionImage } from './motion/Image.mjs';
|
|
13
13
|
export { MotionPressable } from './motion/Pressable.mjs';
|
|
@@ -274,6 +274,12 @@ declare function resolveTransition(config: TransitionConfig | undefined, toValue
|
|
|
274
274
|
* 3. array of either → `withSequence` of resolved steps, with the
|
|
275
275
|
* top-level `repeat` applied at the **sequence level** (not per step).
|
|
276
276
|
* Per-step `repeat` overrides remain step-local.
|
|
277
|
+
*
|
|
278
|
+
* `withSequence` writes a `finished` flag onto each argument it is handed, so
|
|
279
|
+
* a bare target throws `Cannot create property 'finished' on number` and takes
|
|
280
|
+
* the whole render down with it. Two paths produce bare targets, and both are
|
|
281
|
+
* handled below rather than at the call site: reduced motion (every step) and
|
|
282
|
+
* a per-step `{ type: 'no-animation' }` override (some steps).
|
|
277
283
|
*/
|
|
278
284
|
declare function resolveAnimatableValue<V extends number | string>(value: AnimatableValue<V>, base: TransitionConfig | undefined, factory?: CallbackFactory): unknown;
|
|
279
285
|
|
|
@@ -533,6 +539,22 @@ declare function useBooleanSpring(active: boolean, springConfig?: SpringTransiti
|
|
|
533
539
|
* returned style fragment is always a legal RN style.
|
|
534
540
|
*/
|
|
535
541
|
type ColorStyleKey = 'backgroundColor' | 'color' | 'borderColor' | 'borderTopColor' | 'borderRightColor' | 'borderBottomColor' | 'borderLeftColor' | 'tintColor' | 'shadowColor';
|
|
542
|
+
/**
|
|
543
|
+
* A one-key colour style fragment, as returned by {@link useColorTransition}
|
|
544
|
+
* and {@link useColorCascade}.
|
|
545
|
+
*
|
|
546
|
+
* Deliberately **not** `ReturnType<typeof useAnimatedStyle>`. Reanimated 4.5
|
|
547
|
+
* brands that value (`AnimatedStyleHandle`), and a branded type is rejected
|
|
548
|
+
* inside a `StyleProp` array — so every call site would need a cast, which is
|
|
549
|
+
* the defect `InterpolatedStyle` was introduced to remove in `0.0.9`. The brand
|
|
550
|
+
* is compile-time only, so the runtime value is unchanged.
|
|
551
|
+
*
|
|
552
|
+
* Optional per key because which slot is filled is chosen at run time from
|
|
553
|
+
* `options.key`; exactly one is ever present.
|
|
554
|
+
*/
|
|
555
|
+
type ColorStyle = {
|
|
556
|
+
[K in ColorStyleKey]?: string;
|
|
557
|
+
};
|
|
536
558
|
interface UseColorTransitionOptions {
|
|
537
559
|
/**
|
|
538
560
|
* Which style slot the interpolated color is emitted under. Defaults to
|
|
@@ -564,7 +586,7 @@ interface UseColorTransitionOptions {
|
|
|
564
586
|
* compose into a hand-rolled `useAnimatedStyle`), use `useTransform`
|
|
565
587
|
* directly with a color output range.
|
|
566
588
|
*/
|
|
567
|
-
declare function useColorTransition(progress: SharedValue<number>, range: readonly [string, string], options?: UseColorTransitionOptions):
|
|
589
|
+
declare function useColorTransition(progress: SharedValue<number>, range: readonly [string, string], options?: UseColorTransitionOptions): ColorStyle;
|
|
568
590
|
|
|
569
591
|
/**
|
|
570
592
|
* One layer in a color cascade: its own `progress` shared value (0→1) and the
|
|
@@ -624,7 +646,7 @@ interface UseColorCascadeOptions {
|
|
|
624
646
|
* `rest`, the layer count, or **which shared value drives a layer** all rewire
|
|
625
647
|
* the worklet as you'd expect.
|
|
626
648
|
*/
|
|
627
|
-
declare function useColorCascade(rest: string, layers: readonly ColorCascadeLayer[], options?: UseColorCascadeOptions):
|
|
649
|
+
declare function useColorCascade(rest: string, layers: readonly ColorCascadeLayer[], options?: UseColorCascadeOptions): ColorStyle;
|
|
628
650
|
|
|
629
651
|
/**
|
|
630
652
|
* Extrapolation behavior at the edges of the input range. Mirrors
|
|
@@ -947,6 +969,24 @@ interface ShadowConfig {
|
|
|
947
969
|
*/
|
|
948
970
|
boxShadow?: string | readonly BoxShadowLayer[];
|
|
949
971
|
}
|
|
972
|
+
/**
|
|
973
|
+
* The style fragment {@link useShadow} returns: the native shadow keys plus the
|
|
974
|
+
* CSS `boxShadow`, each present only when the paired configs drive it.
|
|
975
|
+
*
|
|
976
|
+
* Deliberately **not** `ReturnType<typeof useAnimatedStyle>` — see
|
|
977
|
+
* {@link ColorStyle} for why the brand is erased here.
|
|
978
|
+
*/
|
|
979
|
+
type ShadowStyle = {
|
|
980
|
+
shadowColor?: string;
|
|
981
|
+
shadowOffset?: {
|
|
982
|
+
width: number;
|
|
983
|
+
height: number;
|
|
984
|
+
};
|
|
985
|
+
shadowOpacity?: number;
|
|
986
|
+
shadowRadius?: number;
|
|
987
|
+
elevation?: number;
|
|
988
|
+
boxShadow?: string;
|
|
989
|
+
};
|
|
950
990
|
interface UseShadowOptions {
|
|
951
991
|
/** Shadow state at `progress === 0`. */
|
|
952
992
|
from: ShadowConfig;
|
|
@@ -996,30 +1036,7 @@ interface UseShadowOptions {
|
|
|
996
1036
|
* })
|
|
997
1037
|
* ```
|
|
998
1038
|
*/
|
|
999
|
-
declare function useShadow({ from, to, progress, }: UseShadowOptions):
|
|
1000
|
-
|
|
1001
|
-
/**
|
|
1002
|
-
* Animated style that translates by two shared values:
|
|
1003
|
-
* `transform: [{ translateX: x }, { translateY: y }]`.
|
|
1004
|
-
*
|
|
1005
|
-
* This is the style fragment every drag-style hook returns (`useTouchDrag`,
|
|
1006
|
-
* and `useDrag` / `usePan` / `useSwipe` in `@rootnative/inertia-gestures`).
|
|
1007
|
-
* Use it directly when a custom gesture owns its own translation values.
|
|
1008
|
-
*
|
|
1009
|
-
* The style owns the whole `transform` key. Do not stack a second transform
|
|
1010
|
-
* style beside it — `transform` is one key in React Native, so the later
|
|
1011
|
-
* style replaces this one instead of merging. Nest another animated view, or
|
|
1012
|
-
* build one style from `x` / `y` with `useInterpolatedStyle`, to add a
|
|
1013
|
-
* transform.
|
|
1014
|
-
*
|
|
1015
|
-
* ```tsx
|
|
1016
|
-
* const x = useMotionValue(0)
|
|
1017
|
-
* const y = useMotionValue(0)
|
|
1018
|
-
* const style = useTranslateStyle(x, y)
|
|
1019
|
-
* return <Motion.View style={style} />
|
|
1020
|
-
* ```
|
|
1021
|
-
*/
|
|
1022
|
-
declare function useTranslateStyle(x: SharedValue<number>, y: SharedValue<number>): ReturnType<typeof useAnimatedStyle>;
|
|
1039
|
+
declare function useShadow({ from, to, progress, }: UseShadowOptions): ShadowStyle;
|
|
1023
1040
|
|
|
1024
1041
|
/**
|
|
1025
1042
|
* Build a controller for a variants map. The controller is the imperative
|
|
@@ -1034,4 +1051,4 @@ declare function useTranslateStyle(x: SharedValue<number>, y: SharedValue<number
|
|
|
1034
1051
|
*/
|
|
1035
1052
|
declare function useVariants<V extends Readonly<Record<string, object>>>(variants: V, initial?: keyof V & string): VariantController<keyof V & string>;
|
|
1036
1053
|
|
|
1037
|
-
export { AnimatableValue, type AnimationCallback, type Animator, type BoxShadowLayer, type CallbackFactory, type ColorCascadeLayer, type ColorStyleKey, EasingInput, type ExtrapolationMode, type InterpolatedStyle, type InterpolatedStyleMap, Motion, MotionComponent, MotionConfig, type MotionConfigProps, type MotionConfigValue, MotionProps, NamedTransitions, type NumericStyleKey, Presence, type PresenceContextValue, type ReducedMotion, type ShadowConfig, SpringTransition, Stagger, type StaggerProps, TRANSPARENT, type TransformKey, TransitionConfig, TransitionInput, TransitionName, type UseColorCascadeOptions, type UseColorTransitionOptions, type UseInterpolatedStyleOptions, type UseScrollResult, type UseShadowOptions, type UseTransformOptions, VariantController, VariantsMap, applyDelay, buildReleaseAnimation, createMotionComponent, cubicBezier, ensureWorkletEasing, isTopLevelTransition, resolveAnimatableValue, resolveNamedTransition, resolveTransition, stableSig, useAnimation, useAnimator, useBooleanSpring, useColorCascade, useColorTransition, useInterpolatedStyle, useMotionConfig, useMotionValue, useNamedTransitions, usePresence, useScroll, useShadow, useShouldReduceMotion, useSpring, useStaggerDelay, useTransform,
|
|
1054
|
+
export { AnimatableValue, type AnimationCallback, type Animator, type BoxShadowLayer, type CallbackFactory, type ColorCascadeLayer, type ColorStyle, type ColorStyleKey, EasingInput, type ExtrapolationMode, type InterpolatedStyle, type InterpolatedStyleMap, Motion, MotionComponent, MotionConfig, type MotionConfigProps, type MotionConfigValue, MotionProps, NamedTransitions, type NumericStyleKey, Presence, type PresenceContextValue, type ReducedMotion, type ShadowConfig, type ShadowStyle, SpringTransition, Stagger, type StaggerProps, TRANSPARENT, type TransformKey, TransitionConfig, TransitionInput, TransitionName, type UseColorCascadeOptions, type UseColorTransitionOptions, type UseInterpolatedStyleOptions, type UseScrollResult, type UseShadowOptions, type UseTransformOptions, VariantController, VariantsMap, applyDelay, buildReleaseAnimation, createMotionComponent, cubicBezier, ensureWorkletEasing, isTopLevelTransition, resolveAnimatableValue, resolveNamedTransition, resolveTransition, stableSig, useAnimation, useAnimator, useBooleanSpring, useColorCascade, useColorTransition, useInterpolatedStyle, useMotionConfig, useMotionValue, useNamedTransitions, usePresence, useScroll, useShadow, useShouldReduceMotion, useSpring, useStaggerDelay, useTransform, useVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { TextStyle, ImageStyle, ViewStyle, NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
|
|
5
|
-
import { M as MotionComponent, V as VariantsMap, a as MotionProps, N as NamedTransitions, b as TransitionInput, T as TransitionConfig, A as AnimatableValue, E as EasingInput, S as SpringTransition, c as TransitionName, d as VariantController } from './types-
|
|
6
|
-
export { e as AnimateStyle, f as AnimationCallbackInfo, B as BoxShadowInput, D as DecayTransition, g as EasingFunction, h as EasingFunctionFactory, G as GestureLayerTransitions, i as GestureSubStates, j as MotionComponentProps, k as NoAnimationTransition, P as PerPropertyTransition, R as RegisteredTransitions, l as RepeatConfig, m as SequenceStep, n as TimingTransition, o as Transition } from './types-
|
|
7
|
-
export { a as applyBounds } from './
|
|
8
|
-
import { SharedValue
|
|
5
|
+
import { M as MotionComponent, V as VariantsMap, a as MotionProps, N as NamedTransitions, b as TransitionInput, T as TransitionConfig, A as AnimatableValue, E as EasingInput, S as SpringTransition, c as TransitionName, d as VariantController } from './types-C5Zbs9MC.js';
|
|
6
|
+
export { e as AnimateStyle, f as AnimationCallbackInfo, B as BoxShadowInput, D as DecayTransition, g as EasingFunction, h as EasingFunctionFactory, G as GestureLayerTransitions, i as GestureSubStates, j as MotionComponentProps, k as NoAnimationTransition, P as PerPropertyTransition, R as RegisteredTransitions, l as RepeatConfig, m as SequenceStep, n as TimingTransition, o as Transition } from './types-C5Zbs9MC.js';
|
|
7
|
+
export { T as TranslateStyle, a as applyBounds, u as useTranslateStyle } from './useTranslateStyle-BDrOD97O.js';
|
|
8
|
+
import { SharedValue } from 'react-native-reanimated';
|
|
9
9
|
export { SharedValue } from 'react-native-reanimated';
|
|
10
|
-
export { U as UseGestureHandlers, a as UseGestureResult, u as useGesture } from './useGesture-
|
|
10
|
+
export { U as UseGestureHandlers, a as UseGestureResult, u as useGesture } from './useGesture-Be0ZhCWj.js';
|
|
11
11
|
export { MotionFlatList } from './motion/FlatList.js';
|
|
12
12
|
export { MotionImage } from './motion/Image.js';
|
|
13
13
|
export { MotionPressable } from './motion/Pressable.js';
|
|
@@ -274,6 +274,12 @@ declare function resolveTransition(config: TransitionConfig | undefined, toValue
|
|
|
274
274
|
* 3. array of either → `withSequence` of resolved steps, with the
|
|
275
275
|
* top-level `repeat` applied at the **sequence level** (not per step).
|
|
276
276
|
* Per-step `repeat` overrides remain step-local.
|
|
277
|
+
*
|
|
278
|
+
* `withSequence` writes a `finished` flag onto each argument it is handed, so
|
|
279
|
+
* a bare target throws `Cannot create property 'finished' on number` and takes
|
|
280
|
+
* the whole render down with it. Two paths produce bare targets, and both are
|
|
281
|
+
* handled below rather than at the call site: reduced motion (every step) and
|
|
282
|
+
* a per-step `{ type: 'no-animation' }` override (some steps).
|
|
277
283
|
*/
|
|
278
284
|
declare function resolveAnimatableValue<V extends number | string>(value: AnimatableValue<V>, base: TransitionConfig | undefined, factory?: CallbackFactory): unknown;
|
|
279
285
|
|
|
@@ -533,6 +539,22 @@ declare function useBooleanSpring(active: boolean, springConfig?: SpringTransiti
|
|
|
533
539
|
* returned style fragment is always a legal RN style.
|
|
534
540
|
*/
|
|
535
541
|
type ColorStyleKey = 'backgroundColor' | 'color' | 'borderColor' | 'borderTopColor' | 'borderRightColor' | 'borderBottomColor' | 'borderLeftColor' | 'tintColor' | 'shadowColor';
|
|
542
|
+
/**
|
|
543
|
+
* A one-key colour style fragment, as returned by {@link useColorTransition}
|
|
544
|
+
* and {@link useColorCascade}.
|
|
545
|
+
*
|
|
546
|
+
* Deliberately **not** `ReturnType<typeof useAnimatedStyle>`. Reanimated 4.5
|
|
547
|
+
* brands that value (`AnimatedStyleHandle`), and a branded type is rejected
|
|
548
|
+
* inside a `StyleProp` array — so every call site would need a cast, which is
|
|
549
|
+
* the defect `InterpolatedStyle` was introduced to remove in `0.0.9`. The brand
|
|
550
|
+
* is compile-time only, so the runtime value is unchanged.
|
|
551
|
+
*
|
|
552
|
+
* Optional per key because which slot is filled is chosen at run time from
|
|
553
|
+
* `options.key`; exactly one is ever present.
|
|
554
|
+
*/
|
|
555
|
+
type ColorStyle = {
|
|
556
|
+
[K in ColorStyleKey]?: string;
|
|
557
|
+
};
|
|
536
558
|
interface UseColorTransitionOptions {
|
|
537
559
|
/**
|
|
538
560
|
* Which style slot the interpolated color is emitted under. Defaults to
|
|
@@ -564,7 +586,7 @@ interface UseColorTransitionOptions {
|
|
|
564
586
|
* compose into a hand-rolled `useAnimatedStyle`), use `useTransform`
|
|
565
587
|
* directly with a color output range.
|
|
566
588
|
*/
|
|
567
|
-
declare function useColorTransition(progress: SharedValue<number>, range: readonly [string, string], options?: UseColorTransitionOptions):
|
|
589
|
+
declare function useColorTransition(progress: SharedValue<number>, range: readonly [string, string], options?: UseColorTransitionOptions): ColorStyle;
|
|
568
590
|
|
|
569
591
|
/**
|
|
570
592
|
* One layer in a color cascade: its own `progress` shared value (0→1) and the
|
|
@@ -624,7 +646,7 @@ interface UseColorCascadeOptions {
|
|
|
624
646
|
* `rest`, the layer count, or **which shared value drives a layer** all rewire
|
|
625
647
|
* the worklet as you'd expect.
|
|
626
648
|
*/
|
|
627
|
-
declare function useColorCascade(rest: string, layers: readonly ColorCascadeLayer[], options?: UseColorCascadeOptions):
|
|
649
|
+
declare function useColorCascade(rest: string, layers: readonly ColorCascadeLayer[], options?: UseColorCascadeOptions): ColorStyle;
|
|
628
650
|
|
|
629
651
|
/**
|
|
630
652
|
* Extrapolation behavior at the edges of the input range. Mirrors
|
|
@@ -947,6 +969,24 @@ interface ShadowConfig {
|
|
|
947
969
|
*/
|
|
948
970
|
boxShadow?: string | readonly BoxShadowLayer[];
|
|
949
971
|
}
|
|
972
|
+
/**
|
|
973
|
+
* The style fragment {@link useShadow} returns: the native shadow keys plus the
|
|
974
|
+
* CSS `boxShadow`, each present only when the paired configs drive it.
|
|
975
|
+
*
|
|
976
|
+
* Deliberately **not** `ReturnType<typeof useAnimatedStyle>` — see
|
|
977
|
+
* {@link ColorStyle} for why the brand is erased here.
|
|
978
|
+
*/
|
|
979
|
+
type ShadowStyle = {
|
|
980
|
+
shadowColor?: string;
|
|
981
|
+
shadowOffset?: {
|
|
982
|
+
width: number;
|
|
983
|
+
height: number;
|
|
984
|
+
};
|
|
985
|
+
shadowOpacity?: number;
|
|
986
|
+
shadowRadius?: number;
|
|
987
|
+
elevation?: number;
|
|
988
|
+
boxShadow?: string;
|
|
989
|
+
};
|
|
950
990
|
interface UseShadowOptions {
|
|
951
991
|
/** Shadow state at `progress === 0`. */
|
|
952
992
|
from: ShadowConfig;
|
|
@@ -996,30 +1036,7 @@ interface UseShadowOptions {
|
|
|
996
1036
|
* })
|
|
997
1037
|
* ```
|
|
998
1038
|
*/
|
|
999
|
-
declare function useShadow({ from, to, progress, }: UseShadowOptions):
|
|
1000
|
-
|
|
1001
|
-
/**
|
|
1002
|
-
* Animated style that translates by two shared values:
|
|
1003
|
-
* `transform: [{ translateX: x }, { translateY: y }]`.
|
|
1004
|
-
*
|
|
1005
|
-
* This is the style fragment every drag-style hook returns (`useTouchDrag`,
|
|
1006
|
-
* and `useDrag` / `usePan` / `useSwipe` in `@rootnative/inertia-gestures`).
|
|
1007
|
-
* Use it directly when a custom gesture owns its own translation values.
|
|
1008
|
-
*
|
|
1009
|
-
* The style owns the whole `transform` key. Do not stack a second transform
|
|
1010
|
-
* style beside it — `transform` is one key in React Native, so the later
|
|
1011
|
-
* style replaces this one instead of merging. Nest another animated view, or
|
|
1012
|
-
* build one style from `x` / `y` with `useInterpolatedStyle`, to add a
|
|
1013
|
-
* transform.
|
|
1014
|
-
*
|
|
1015
|
-
* ```tsx
|
|
1016
|
-
* const x = useMotionValue(0)
|
|
1017
|
-
* const y = useMotionValue(0)
|
|
1018
|
-
* const style = useTranslateStyle(x, y)
|
|
1019
|
-
* return <Motion.View style={style} />
|
|
1020
|
-
* ```
|
|
1021
|
-
*/
|
|
1022
|
-
declare function useTranslateStyle(x: SharedValue<number>, y: SharedValue<number>): ReturnType<typeof useAnimatedStyle>;
|
|
1039
|
+
declare function useShadow({ from, to, progress, }: UseShadowOptions): ShadowStyle;
|
|
1023
1040
|
|
|
1024
1041
|
/**
|
|
1025
1042
|
* Build a controller for a variants map. The controller is the imperative
|
|
@@ -1034,4 +1051,4 @@ declare function useTranslateStyle(x: SharedValue<number>, y: SharedValue<number
|
|
|
1034
1051
|
*/
|
|
1035
1052
|
declare function useVariants<V extends Readonly<Record<string, object>>>(variants: V, initial?: keyof V & string): VariantController<keyof V & string>;
|
|
1036
1053
|
|
|
1037
|
-
export { AnimatableValue, type AnimationCallback, type Animator, type BoxShadowLayer, type CallbackFactory, type ColorCascadeLayer, type ColorStyleKey, EasingInput, type ExtrapolationMode, type InterpolatedStyle, type InterpolatedStyleMap, Motion, MotionComponent, MotionConfig, type MotionConfigProps, type MotionConfigValue, MotionProps, NamedTransitions, type NumericStyleKey, Presence, type PresenceContextValue, type ReducedMotion, type ShadowConfig, SpringTransition, Stagger, type StaggerProps, TRANSPARENT, type TransformKey, TransitionConfig, TransitionInput, TransitionName, type UseColorCascadeOptions, type UseColorTransitionOptions, type UseInterpolatedStyleOptions, type UseScrollResult, type UseShadowOptions, type UseTransformOptions, VariantController, VariantsMap, applyDelay, buildReleaseAnimation, createMotionComponent, cubicBezier, ensureWorkletEasing, isTopLevelTransition, resolveAnimatableValue, resolveNamedTransition, resolveTransition, stableSig, useAnimation, useAnimator, useBooleanSpring, useColorCascade, useColorTransition, useInterpolatedStyle, useMotionConfig, useMotionValue, useNamedTransitions, usePresence, useScroll, useShadow, useShouldReduceMotion, useSpring, useStaggerDelay, useTransform,
|
|
1054
|
+
export { AnimatableValue, type AnimationCallback, type Animator, type BoxShadowLayer, type CallbackFactory, type ColorCascadeLayer, type ColorStyle, type ColorStyleKey, EasingInput, type ExtrapolationMode, type InterpolatedStyle, type InterpolatedStyleMap, Motion, MotionComponent, MotionConfig, type MotionConfigProps, type MotionConfigValue, MotionProps, NamedTransitions, type NumericStyleKey, Presence, type PresenceContextValue, type ReducedMotion, type ShadowConfig, type ShadowStyle, SpringTransition, Stagger, type StaggerProps, TRANSPARENT, type TransformKey, TransitionConfig, TransitionInput, TransitionName, type UseColorCascadeOptions, type UseColorTransitionOptions, type UseInterpolatedStyleOptions, type UseScrollResult, type UseShadowOptions, type UseTransformOptions, VariantController, VariantsMap, applyDelay, buildReleaseAnimation, createMotionComponent, cubicBezier, ensureWorkletEasing, isTopLevelTransition, resolveAnimatableValue, resolveNamedTransition, resolveTransition, stableSig, useAnimation, useAnimator, useBooleanSpring, useColorCascade, useColorTransition, useInterpolatedStyle, useMotionConfig, useMotionValue, useNamedTransitions, usePresence, useScroll, useShadow, useShouldReduceMotion, useSpring, useStaggerDelay, useTransform, useVariants };
|
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkKFHZMFAX_js = require('./chunk-KFHZMFAX.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
4
|
+
var chunkNTG6PSGZ_js = require('./chunk-NTG6PSGZ.js');
|
|
5
|
+
var chunk2UREDR4Z_js = require('./chunk-2UREDR4Z.js');
|
|
6
|
+
var chunkJBMTTICC_js = require('./chunk-JBMTTICC.js');
|
|
7
|
+
var chunkJAJHKJC5_js = require('./chunk-JAJHKJC5.js');
|
|
8
|
+
var chunkR7YD6L3D_js = require('./chunk-R7YD6L3D.js');
|
|
9
|
+
var chunk3PB27UIE_js = require('./chunk-3PB27UIE.js');
|
|
10
|
+
var chunkXLKI2MSD_js = require('./chunk-XLKI2MSD.js');
|
|
11
|
+
var chunkHBURWGCZ_js = require('./chunk-HBURWGCZ.js');
|
|
12
|
+
var chunkQDMSFRQR_js = require('./chunk-QDMSFRQR.js');
|
|
13
|
+
var chunkQX5JHRZ2_js = require('./chunk-QX5JHRZ2.js');
|
|
14
14
|
var react = require('react');
|
|
15
15
|
var reactNativeReanimated = require('react-native-reanimated');
|
|
16
16
|
var reactNativeWorklets = require('react-native-worklets');
|
|
17
17
|
|
|
18
18
|
// src/motion/index.ts
|
|
19
19
|
var Motion = {
|
|
20
|
-
View:
|
|
21
|
-
Text:
|
|
22
|
-
Image:
|
|
23
|
-
Pressable:
|
|
24
|
-
ScrollView:
|
|
25
|
-
FlatList:
|
|
20
|
+
View: chunk2UREDR4Z_js.MotionView,
|
|
21
|
+
Text: chunkJBMTTICC_js.MotionText,
|
|
22
|
+
Image: chunkJAJHKJC5_js.MotionImage,
|
|
23
|
+
Pressable: chunkR7YD6L3D_js.MotionPressable,
|
|
24
|
+
ScrollView: chunk3PB27UIE_js.MotionScrollView,
|
|
25
|
+
FlatList: chunkXLKI2MSD_js.MotionFlatList
|
|
26
26
|
};
|
|
27
27
|
function useAnimation(target, transition) {
|
|
28
28
|
const output = reactNativeReanimated.useSharedValue(target);
|
|
29
|
-
const shouldReduceMotion =
|
|
30
|
-
const resolved =
|
|
31
|
-
const cfgSig =
|
|
29
|
+
const shouldReduceMotion = chunkQDMSFRQR_js.useShouldReduceMotion();
|
|
30
|
+
const resolved = chunkQDMSFRQR_js.resolveNamedTransition(transition, chunkQDMSFRQR_js.useNamedTransitions());
|
|
31
|
+
const cfgSig = chunkQX5JHRZ2_js.stableSig(resolved);
|
|
32
32
|
react.useEffect(() => {
|
|
33
33
|
const cfg = shouldReduceMotion ? { type: "no-animation" } : resolved ?? { type: "spring" };
|
|
34
|
-
output.value =
|
|
34
|
+
output.value = chunkQX5JHRZ2_js.resolveTransition(cfg, target);
|
|
35
35
|
}, [target, cfgSig, shouldReduceMotion]);
|
|
36
36
|
react.useEffect(
|
|
37
37
|
() => () => reactNativeReanimated.cancelAnimation(output),
|
|
@@ -42,23 +42,23 @@ function useAnimation(target, transition) {
|
|
|
42
42
|
return output;
|
|
43
43
|
}
|
|
44
44
|
function useAnimator() {
|
|
45
|
-
const registry =
|
|
46
|
-
const shouldReduceMotion =
|
|
45
|
+
const registry = chunkQDMSFRQR_js.useNamedTransitions();
|
|
46
|
+
const shouldReduceMotion = chunkQDMSFRQR_js.useShouldReduceMotion();
|
|
47
47
|
const registryRef = react.useRef(registry);
|
|
48
48
|
registryRef.current = registry;
|
|
49
49
|
const reduceMotionRef = react.useRef(shouldReduceMotion);
|
|
50
50
|
reduceMotionRef.current = shouldReduceMotion;
|
|
51
51
|
return react.useCallback((value, to, transition) => {
|
|
52
|
-
const resolved =
|
|
52
|
+
const resolved = chunkQDMSFRQR_js.resolveNamedTransition(transition, registryRef.current);
|
|
53
53
|
const cfg = reduceMotionRef.current ? { type: "no-animation" } : resolved ?? { type: "spring" };
|
|
54
|
-
value.value =
|
|
54
|
+
value.value = chunkQX5JHRZ2_js.resolveTransition(cfg, to);
|
|
55
55
|
}, []);
|
|
56
56
|
}
|
|
57
57
|
function useSpring(target, config) {
|
|
58
|
-
const spring = resolveSpringInput(config,
|
|
59
|
-
const shouldReduceMotion =
|
|
58
|
+
const spring = resolveSpringInput(config, chunkQDMSFRQR_js.useNamedTransitions());
|
|
59
|
+
const shouldReduceMotion = chunkQDMSFRQR_js.useShouldReduceMotion();
|
|
60
60
|
const reanimConfig = react.useMemo(
|
|
61
|
-
() =>
|
|
61
|
+
() => chunkQX5JHRZ2_js.springToReanimated(spring ?? {}),
|
|
62
62
|
// Keyed on the resolved primitive fields rather than the `config` object
|
|
63
63
|
// identity: callers routinely pass a fresh object literal each render, so
|
|
64
64
|
// depending on `config` itself would rebuild the Reanimated config on
|
|
@@ -97,9 +97,9 @@ function useSpring(target, config) {
|
|
|
97
97
|
}
|
|
98
98
|
function resolveSpringInput(config, registry) {
|
|
99
99
|
if (typeof config !== "string") return config;
|
|
100
|
-
const cfg =
|
|
100
|
+
const cfg = chunkQDMSFRQR_js.lookupNamedTransition(config, registry);
|
|
101
101
|
if (cfg.type === void 0 || cfg.type === "spring") return cfg;
|
|
102
|
-
|
|
102
|
+
chunkQX5JHRZ2_js.warnOnce(
|
|
103
103
|
`spring-only:${config}`,
|
|
104
104
|
`[inertia] Named transition "${config}" resolves to type '${cfg.type}', but useSpring / useBooleanSpring are spring-only \u2014 falling back to the default spring. Use useAnimation to honor non-spring named transitions.`
|
|
105
105
|
);
|
|
@@ -204,7 +204,7 @@ function buildEntries(map, options) {
|
|
|
204
204
|
if (output === void 0 || output.length === 0) continue;
|
|
205
205
|
const input = explicitInput ? explicitInput : output.length === 2 ? [0, 1] : evenlySpaced(output.length);
|
|
206
206
|
if (explicitInput && explicitInput.length !== output.length) {
|
|
207
|
-
|
|
207
|
+
chunkQX5JHRZ2_js.warnOnce(
|
|
208
208
|
`interpolated-style-range:${String(key)}:${explicitInput.length}:${output.length}`,
|
|
209
209
|
`[inertia] useInterpolatedStyle: inputRange has ${explicitInput.length} stops but the "${String(
|
|
210
210
|
key
|
|
@@ -294,7 +294,7 @@ function useMotionValue(initial) {
|
|
|
294
294
|
return sv;
|
|
295
295
|
}
|
|
296
296
|
function useTransform(arg1, inputRange, outputRange, options) {
|
|
297
|
-
const rangeSig =
|
|
297
|
+
const rangeSig = chunkQX5JHRZ2_js.stableSig([inputRange, outputRange]);
|
|
298
298
|
const ranges = react.useMemo(
|
|
299
299
|
() => ({
|
|
300
300
|
input: inputRange ?? [],
|
|
@@ -309,7 +309,7 @@ function useTransform(arg1, inputRange, outputRange, options) {
|
|
|
309
309
|
if (reactNativeWorklets.isWorkletFunction(userFn)) {
|
|
310
310
|
producer = userFn;
|
|
311
311
|
} else {
|
|
312
|
-
|
|
312
|
+
chunkQX5JHRZ2_js.warnNonWorkletOnce(
|
|
313
313
|
"useTransform-transformer",
|
|
314
314
|
"[inertia] useTransform: the transformer is not a worklet, so the shared values it reads can't be tracked as dependencies \u2014 the derived value will only refresh on React re-renders, and native builds reject plain functions on the UI thread. Add the 'worklet' directive as the first statement of the transformer."
|
|
315
315
|
);
|
|
@@ -370,11 +370,11 @@ function useShadow({
|
|
|
370
370
|
const hasElevation = from.elevation !== void 0 || to.elevation !== void 0;
|
|
371
371
|
const hasColor = from.shadowColor !== void 0 || to.shadowColor !== void 0;
|
|
372
372
|
const hasOffset = from.shadowOffset !== void 0 || to.shadowOffset !== void 0;
|
|
373
|
-
const boxShadowSig =
|
|
373
|
+
const boxShadowSig = chunkQX5JHRZ2_js.stableSig([from.boxShadow, to.boxShadow]);
|
|
374
374
|
const boxShadowPairs = react.useMemo(
|
|
375
|
-
() => from.boxShadow !== void 0 || to.boxShadow !== void 0 ?
|
|
376
|
-
|
|
377
|
-
|
|
375
|
+
() => from.boxShadow !== void 0 || to.boxShadow !== void 0 ? chunkHBURWGCZ_js.pairBoxShadowLayers(
|
|
376
|
+
chunkHBURWGCZ_js.resolveBoxShadowInput(from.boxShadow),
|
|
377
|
+
chunkHBURWGCZ_js.resolveBoxShadowInput(to.boxShadow)
|
|
378
378
|
) : [],
|
|
379
379
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
380
380
|
[boxShadowSig]
|
|
@@ -484,107 +484,107 @@ Object.defineProperty(exports, "useTranslateStyle", {
|
|
|
484
484
|
});
|
|
485
485
|
Object.defineProperty(exports, "useGesture", {
|
|
486
486
|
enumerable: true,
|
|
487
|
-
get: function () { return
|
|
487
|
+
get: function () { return chunkNTG6PSGZ_js.useGesture; }
|
|
488
488
|
});
|
|
489
489
|
Object.defineProperty(exports, "MotionView", {
|
|
490
490
|
enumerable: true,
|
|
491
|
-
get: function () { return
|
|
491
|
+
get: function () { return chunk2UREDR4Z_js.MotionView; }
|
|
492
492
|
});
|
|
493
493
|
Object.defineProperty(exports, "MotionText", {
|
|
494
494
|
enumerable: true,
|
|
495
|
-
get: function () { return
|
|
495
|
+
get: function () { return chunkJBMTTICC_js.MotionText; }
|
|
496
496
|
});
|
|
497
497
|
Object.defineProperty(exports, "MotionImage", {
|
|
498
498
|
enumerable: true,
|
|
499
|
-
get: function () { return
|
|
499
|
+
get: function () { return chunkJAJHKJC5_js.MotionImage; }
|
|
500
500
|
});
|
|
501
501
|
Object.defineProperty(exports, "MotionPressable", {
|
|
502
502
|
enumerable: true,
|
|
503
|
-
get: function () { return
|
|
503
|
+
get: function () { return chunkR7YD6L3D_js.MotionPressable; }
|
|
504
504
|
});
|
|
505
505
|
Object.defineProperty(exports, "MotionScrollView", {
|
|
506
506
|
enumerable: true,
|
|
507
|
-
get: function () { return
|
|
507
|
+
get: function () { return chunk3PB27UIE_js.MotionScrollView; }
|
|
508
508
|
});
|
|
509
509
|
Object.defineProperty(exports, "MotionFlatList", {
|
|
510
510
|
enumerable: true,
|
|
511
|
-
get: function () { return
|
|
511
|
+
get: function () { return chunkXLKI2MSD_js.MotionFlatList; }
|
|
512
512
|
});
|
|
513
513
|
Object.defineProperty(exports, "Presence", {
|
|
514
514
|
enumerable: true,
|
|
515
|
-
get: function () { return
|
|
515
|
+
get: function () { return chunkHBURWGCZ_js.Presence; }
|
|
516
516
|
});
|
|
517
517
|
Object.defineProperty(exports, "Stagger", {
|
|
518
518
|
enumerable: true,
|
|
519
|
-
get: function () { return
|
|
519
|
+
get: function () { return chunkHBURWGCZ_js.Stagger; }
|
|
520
520
|
});
|
|
521
521
|
Object.defineProperty(exports, "TRANSPARENT", {
|
|
522
522
|
enumerable: true,
|
|
523
|
-
get: function () { return
|
|
523
|
+
get: function () { return chunkHBURWGCZ_js.TRANSPARENT; }
|
|
524
524
|
});
|
|
525
525
|
Object.defineProperty(exports, "createMotionComponent", {
|
|
526
526
|
enumerable: true,
|
|
527
|
-
get: function () { return
|
|
527
|
+
get: function () { return chunkHBURWGCZ_js.createMotionComponent; }
|
|
528
528
|
});
|
|
529
529
|
Object.defineProperty(exports, "usePresence", {
|
|
530
530
|
enumerable: true,
|
|
531
|
-
get: function () { return
|
|
531
|
+
get: function () { return chunkHBURWGCZ_js.usePresence; }
|
|
532
532
|
});
|
|
533
533
|
Object.defineProperty(exports, "useStaggerDelay", {
|
|
534
534
|
enumerable: true,
|
|
535
|
-
get: function () { return
|
|
535
|
+
get: function () { return chunkHBURWGCZ_js.useStaggerDelay; }
|
|
536
536
|
});
|
|
537
537
|
Object.defineProperty(exports, "MotionConfig", {
|
|
538
538
|
enumerable: true,
|
|
539
|
-
get: function () { return
|
|
539
|
+
get: function () { return chunkQDMSFRQR_js.MotionConfig; }
|
|
540
540
|
});
|
|
541
541
|
Object.defineProperty(exports, "resolveNamedTransition", {
|
|
542
542
|
enumerable: true,
|
|
543
|
-
get: function () { return
|
|
543
|
+
get: function () { return chunkQDMSFRQR_js.resolveNamedTransition; }
|
|
544
544
|
});
|
|
545
545
|
Object.defineProperty(exports, "useMotionConfig", {
|
|
546
546
|
enumerable: true,
|
|
547
|
-
get: function () { return
|
|
547
|
+
get: function () { return chunkQDMSFRQR_js.useMotionConfig; }
|
|
548
548
|
});
|
|
549
549
|
Object.defineProperty(exports, "useNamedTransitions", {
|
|
550
550
|
enumerable: true,
|
|
551
|
-
get: function () { return
|
|
551
|
+
get: function () { return chunkQDMSFRQR_js.useNamedTransitions; }
|
|
552
552
|
});
|
|
553
553
|
Object.defineProperty(exports, "useShouldReduceMotion", {
|
|
554
554
|
enumerable: true,
|
|
555
|
-
get: function () { return
|
|
555
|
+
get: function () { return chunkQDMSFRQR_js.useShouldReduceMotion; }
|
|
556
556
|
});
|
|
557
557
|
Object.defineProperty(exports, "applyDelay", {
|
|
558
558
|
enumerable: true,
|
|
559
|
-
get: function () { return
|
|
559
|
+
get: function () { return chunkQX5JHRZ2_js.applyDelay; }
|
|
560
560
|
});
|
|
561
561
|
Object.defineProperty(exports, "buildReleaseAnimation", {
|
|
562
562
|
enumerable: true,
|
|
563
|
-
get: function () { return
|
|
563
|
+
get: function () { return chunkQX5JHRZ2_js.buildReleaseAnimation; }
|
|
564
564
|
});
|
|
565
565
|
Object.defineProperty(exports, "cubicBezier", {
|
|
566
566
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
567
|
+
get: function () { return chunkQX5JHRZ2_js.cubicBezier; }
|
|
568
568
|
});
|
|
569
569
|
Object.defineProperty(exports, "ensureWorkletEasing", {
|
|
570
570
|
enumerable: true,
|
|
571
|
-
get: function () { return
|
|
571
|
+
get: function () { return chunkQX5JHRZ2_js.ensureWorkletEasing; }
|
|
572
572
|
});
|
|
573
573
|
Object.defineProperty(exports, "isTopLevelTransition", {
|
|
574
574
|
enumerable: true,
|
|
575
|
-
get: function () { return
|
|
575
|
+
get: function () { return chunkQX5JHRZ2_js.isTopLevelTransition; }
|
|
576
576
|
});
|
|
577
577
|
Object.defineProperty(exports, "resolveAnimatableValue", {
|
|
578
578
|
enumerable: true,
|
|
579
|
-
get: function () { return
|
|
579
|
+
get: function () { return chunkQX5JHRZ2_js.resolveAnimatableValue; }
|
|
580
580
|
});
|
|
581
581
|
Object.defineProperty(exports, "resolveTransition", {
|
|
582
582
|
enumerable: true,
|
|
583
|
-
get: function () { return
|
|
583
|
+
get: function () { return chunkQX5JHRZ2_js.resolveTransition; }
|
|
584
584
|
});
|
|
585
585
|
Object.defineProperty(exports, "stableSig", {
|
|
586
586
|
enumerable: true,
|
|
587
|
-
get: function () { return
|
|
587
|
+
get: function () { return chunkQX5JHRZ2_js.stableSig; }
|
|
588
588
|
});
|
|
589
589
|
exports.Motion = Motion;
|
|
590
590
|
exports.useAnimation = useAnimation;
|