@rootnative/inertia 0.0.4 → 0.0.6
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 +87 -1
- package/README.md +5 -1
- package/dist/{chunk-55W7BNO2.mjs → chunk-2ICQLWH2.mjs} +211 -93
- package/dist/{chunk-D5KAHWMC.js → chunk-4NAMD62I.js} +7 -7
- package/dist/{chunk-CENTULW6.js → chunk-5MGWHOSV.js} +2 -2
- package/dist/{chunk-MYE5NMXW.js → chunk-767UKZXG.js} +235 -116
- package/dist/{chunk-NAOXQJ7U.mjs → chunk-BAAQI37F.mjs} +1 -1
- package/dist/{chunk-RF7J5FRM.mjs → chunk-C3EDC5ZW.mjs} +1 -1
- package/dist/{chunk-YKGY22SB.mjs → chunk-CMHVF6F4.mjs} +1 -1
- package/dist/{chunk-4ASOELLA.mjs → chunk-F7LJX56B.mjs} +1 -1
- package/dist/chunk-FWWVHLXB.js +8 -0
- package/dist/chunk-K5SI6VXS.js +8 -0
- package/dist/{chunk-WVRCKOPO.js → chunk-OBRGJAST.js} +3 -3
- package/dist/{chunk-K3CLP74S.mjs → chunk-OW5XTGVN.mjs} +2 -2
- package/dist/{chunk-J5Q46OPW.mjs → chunk-PFPO7DX2.mjs} +1 -1
- package/dist/{chunk-7A6WTXNK.js → chunk-PM6CVGXJ.js} +1 -0
- package/dist/{chunk-TU2XFPAK.mjs → chunk-REYL77RE.mjs} +1 -0
- package/dist/chunk-STARIT6W.js +8 -0
- package/dist/{chunk-XMEVPEMH.js → chunk-X7B5WR5A.js} +2 -2
- package/dist/{chunk-QKC3APP4.mjs → chunk-Z3HCJ43H.mjs} +1 -1
- package/dist/gestureLayer/index.d.mts +2 -2
- package/dist/gestureLayer/index.d.ts +2 -2
- package/dist/gestureLayer/index.js +10 -10
- package/dist/gestureLayer/index.mjs +3 -3
- package/dist/index.d.mts +32 -4
- package/dist/index.d.ts +32 -4
- package/dist/index.js +52 -48
- package/dist/index.mjs +17 -17
- package/dist/motion/Image.d.mts +1 -1
- package/dist/motion/Image.d.ts +1 -1
- package/dist/motion/Image.js +5 -5
- package/dist/motion/Image.mjs +4 -4
- package/dist/motion/Pressable.d.mts +1 -1
- package/dist/motion/Pressable.d.ts +1 -1
- package/dist/motion/Pressable.js +5 -5
- package/dist/motion/Pressable.mjs +4 -4
- package/dist/motion/ScrollView.d.mts +1 -1
- package/dist/motion/ScrollView.d.ts +1 -1
- package/dist/motion/ScrollView.js +5 -5
- package/dist/motion/ScrollView.mjs +4 -4
- package/dist/motion/Text.d.mts +1 -1
- package/dist/motion/Text.d.ts +1 -1
- package/dist/motion/Text.js +5 -5
- package/dist/motion/Text.mjs +4 -4
- package/dist/motion/View.d.mts +1 -1
- package/dist/motion/View.d.ts +1 -1
- package/dist/motion/View.js +5 -5
- package/dist/motion/View.mjs +4 -4
- package/dist/touch/index.d.mts +1 -1
- package/dist/touch/index.d.ts +1 -1
- package/dist/touch/index.js +3 -3
- package/dist/touch/index.mjs +1 -1
- package/dist/{types-37pN82yh.d.mts → types-BQgLJeQG.d.mts} +39 -3
- package/dist/{types-37pN82yh.d.ts → types-BQgLJeQG.d.ts} +39 -3
- package/dist/{useGesture-Cl4uzZIr.d.ts → useGesture-B0_CzOUz.d.ts} +1 -1
- package/dist/{useGesture-_IKkS8Dv.d.mts → useGesture-DfaTx-3t.d.mts} +1 -1
- package/llms.txt +1 -0
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/internal/boxShadow.ts +71 -9
- package/src/internal/color.ts +70 -0
- package/src/motion/createMotionComponent.tsx +238 -108
- package/src/transitions/resolveSequence.ts +12 -0
- package/src/types.ts +106 -3
- package/dist/chunk-5SRD2WCO.js +0 -8
- package/dist/chunk-TVFNJ25Z.js +0 -8
- package/dist/chunk-VLDIFL3F.js +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPM6CVGXJ_js = require('./chunk-PM6CVGXJ.js');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var reactNativeReanimated = require('react-native-reanimated');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -32,7 +32,7 @@ function MotionConfig({
|
|
|
32
32
|
children
|
|
33
33
|
}) {
|
|
34
34
|
const parent = useMotionConfig();
|
|
35
|
-
const transitionsSig =
|
|
35
|
+
const transitionsSig = chunkPM6CVGXJ_js.stableSig(transitions);
|
|
36
36
|
const value = react.useMemo(
|
|
37
37
|
() => ({
|
|
38
38
|
reducedMotion: reducedMotion ?? parent.reducedMotion,
|
|
@@ -66,7 +66,7 @@ function resolveNamedTransitionProp(transition, registry) {
|
|
|
66
66
|
if (typeof transition === "string") {
|
|
67
67
|
return lookupNamedTransition(transition, registry);
|
|
68
68
|
}
|
|
69
|
-
if (
|
|
69
|
+
if (chunkPM6CVGXJ_js.isTopLevelTransition(transition)) return transition;
|
|
70
70
|
const map = transition;
|
|
71
71
|
let out = null;
|
|
72
72
|
for (const key in map) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useShouldReduceMotion, resolveNamedTransitionProp, useNamedTransitions, isFocusVisible } from './chunk-
|
|
2
|
-
import { resolveTransition, isTopLevelTransition } from './chunk-
|
|
1
|
+
import { useShouldReduceMotion, resolveNamedTransitionProp, useNamedTransitions, isFocusVisible } from './chunk-Z3HCJ43H.mjs';
|
|
2
|
+
import { resolveTransition, isTopLevelTransition } from './chunk-REYL77RE.mjs';
|
|
3
3
|
import { useCallback, useMemo } from 'react';
|
|
4
4
|
import { useSharedValue } from 'react-native-reanimated';
|
|
5
5
|
|
|
@@ -159,6 +159,7 @@ function resolveStep(step, base, cb) {
|
|
|
159
159
|
return resolveTransition(base, step, cb);
|
|
160
160
|
}
|
|
161
161
|
function mergeTransition(base, override) {
|
|
162
|
+
if (base?.type === "no-animation") return base;
|
|
162
163
|
if (override.type && base && override.type !== base.type) {
|
|
163
164
|
return override;
|
|
164
165
|
}
|
|
@@ -157,6 +157,7 @@ function resolveStep(step, base, cb) {
|
|
|
157
157
|
return resolveTransition(base, step, cb);
|
|
158
158
|
}
|
|
159
159
|
function mergeTransition(base, override) {
|
|
160
|
+
if (base?.type === "no-animation") return base;
|
|
160
161
|
if (override.type && base && override.type !== base.type) {
|
|
161
162
|
return override;
|
|
162
163
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk767UKZXG_js = require('./chunk-767UKZXG.js');
|
|
4
4
|
var reactNative = require('react-native');
|
|
5
5
|
|
|
6
|
-
var MotionScrollView =
|
|
6
|
+
var MotionScrollView = chunk767UKZXG_js.createMotionComponent(reactNative.ScrollView);
|
|
7
7
|
|
|
8
8
|
exports.MotionScrollView = MotionScrollView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stableSig, isTopLevelTransition } from './chunk-
|
|
1
|
+
import { stableSig, isTopLevelTransition } from './chunk-REYL77RE.mjs';
|
|
2
2
|
import { createContext, useContext, useMemo } from 'react';
|
|
3
3
|
import { useReducedMotion } from 'react-native-reanimated';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SharedValue, AnimatedStyle } from 'react-native-reanimated';
|
|
2
|
-
import { U as UseGestureHandlers } from '../useGesture-
|
|
3
|
-
import { a as TransitionInput, G as GestureLayerTransitions } from '../types-
|
|
2
|
+
import { U as UseGestureHandlers } from '../useGesture-DfaTx-3t.mjs';
|
|
3
|
+
import { a as TransitionInput, G as GestureLayerTransitions } from '../types-BQgLJeQG.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 { a as TransitionInput, G as GestureLayerTransitions } from '../types-
|
|
2
|
+
import { U as UseGestureHandlers } from '../useGesture-B0_CzOUz.js';
|
|
3
|
+
import { a as TransitionInput, G as GestureLayerTransitions } from '../types-BQgLJeQG.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-native';
|
|
6
6
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunk4NAMD62I_js = require('../chunk-4NAMD62I.js');
|
|
4
|
+
var chunkOBRGJAST_js = require('../chunk-OBRGJAST.js');
|
|
5
|
+
var chunkPM6CVGXJ_js = require('../chunk-PM6CVGXJ.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 = chunkOBRGJAST_js.useShouldReduceMotion();
|
|
12
|
+
const transition = chunkOBRGJAST_js.resolveNamedTransitionProp(
|
|
13
13
|
transitionInput,
|
|
14
|
-
|
|
14
|
+
chunkOBRGJAST_js.useNamedTransitions()
|
|
15
15
|
);
|
|
16
|
-
const gesture =
|
|
16
|
+
const gesture = chunk4NAMD62I_js.useGesture(transition);
|
|
17
17
|
const disabledProgress = reactNativeReanimated.useSharedValue(0);
|
|
18
|
-
const transitionSig =
|
|
18
|
+
const transitionSig = chunkPM6CVGXJ_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 = chunkPM6CVGXJ_js.resolveTransition(cfg, target);
|
|
23
23
|
}, [isDisabled, shouldReduceMotion, transitionSig, disabledProgress]);
|
|
24
24
|
const meta = react.useMemo(() => {
|
|
25
25
|
const layers = {
|
|
@@ -154,7 +154,7 @@ function useGestureLayer(states, options = {}) {
|
|
|
154
154
|
}
|
|
155
155
|
function disabledTransition(transition) {
|
|
156
156
|
if (!transition) return void 0;
|
|
157
|
-
if (
|
|
157
|
+
if (chunkPM6CVGXJ_js.isTopLevelTransition(transition)) return transition;
|
|
158
158
|
return void 0;
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -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-OW5XTGVN.mjs';
|
|
2
|
+
import { useShouldReduceMotion, resolveNamedTransitionProp, useNamedTransitions } from '../chunk-Z3HCJ43H.mjs';
|
|
3
|
+
import { stableSig, resolveTransition, isTopLevelTransition } from '../chunk-REYL77RE.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,11 +2,11 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
|
|
5
|
-
import { M as MotionComponent, N as NamedTransitions, a as TransitionInput, T as TransitionConfig, A as AnimatableValue, E as EasingInput, S as SpringTransition, b as TransitionName, V as VariantController } from './types-
|
|
6
|
-
export { c as AnimateStyle, d as AnimationCallbackInfo, B as BoxShadowInput, D as DecayTransition, e as EasingFunction, f as EasingFunctionFactory, g as GestureSubStates, h as MotionProps, i as NoAnimationTransition, P as PerPropertyTransition, R as RegisteredTransitions, j as RepeatConfig, k as SequenceStep, l as TimingTransition, m as Transition, n as VariantsMap } from './types-
|
|
5
|
+
import { M as MotionComponent, N as NamedTransitions, a as TransitionInput, T as TransitionConfig, A as AnimatableValue, E as EasingInput, S as SpringTransition, b as TransitionName, V as VariantController } from './types-BQgLJeQG.mjs';
|
|
6
|
+
export { c as AnimateStyle, d as AnimationCallbackInfo, B as BoxShadowInput, D as DecayTransition, e as EasingFunction, f as EasingFunctionFactory, g as GestureSubStates, h as MotionProps, i as NoAnimationTransition, P as PerPropertyTransition, R as RegisteredTransitions, j as RepeatConfig, k as SequenceStep, l as TimingTransition, m as Transition, n as VariantsMap } from './types-BQgLJeQG.mjs';
|
|
7
7
|
import { SharedValue, useAnimatedStyle } from 'react-native-reanimated';
|
|
8
8
|
export { SharedValue } from 'react-native-reanimated';
|
|
9
|
-
export { U as UseGestureHandlers, a as UseGestureResult, u as useGesture } from './useGesture-
|
|
9
|
+
export { U as UseGestureHandlers, a as UseGestureResult, u as useGesture } from './useGesture-DfaTx-3t.mjs';
|
|
10
10
|
export { MotionImage } from './motion/Image.mjs';
|
|
11
11
|
export { MotionPressable } from './motion/Pressable.mjs';
|
|
12
12
|
export { MotionScrollView } from './motion/ScrollView.mjs';
|
|
@@ -292,6 +292,34 @@ declare function ensureWorkletEasing(easing: EasingInput | undefined): ((t: numb
|
|
|
292
292
|
*/
|
|
293
293
|
declare function buildReleaseAnimation(transition: TransitionConfig, toValue: number): unknown;
|
|
294
294
|
|
|
295
|
+
/**
|
|
296
|
+
* The one colour spelling Reanimated's animation drivers cannot accept.
|
|
297
|
+
*
|
|
298
|
+
* Reanimated dispatches an animation on the runtime shape of its **source**
|
|
299
|
+
* value, and `isColor()` is the gate for the RGBA-channel path. That gate is
|
|
300
|
+
* `processColorInitially(value) != null`, and Reanimated's colour-name table
|
|
301
|
+
* (`Colors.ts`) maps `transparent` to `undefined` — every other CSS colour
|
|
302
|
+
* name maps to a packed integer. So `'transparent'` is the single named colour
|
|
303
|
+
* that reports **false**.
|
|
304
|
+
*
|
|
305
|
+
* A value that fails the gate but is still a string falls to the
|
|
306
|
+
* prefix-number-suffix branch, which exists for values like `'100%'`. It runs
|
|
307
|
+
* `parseFloat('transparent')` → `NaN`, animates that, and re-attaches the
|
|
308
|
+
* prefix, so the slot fills with `'transparentNaN'`. Under `withTiming` the
|
|
309
|
+
* animation still snaps to its target when the duration elapses, which hides
|
|
310
|
+
* the fault; under `withSpring` — the library default — settling is decided by
|
|
311
|
+
* comparisons against `NaN`, which are all false, so the animation runs
|
|
312
|
+
* forever and the colour never appears.
|
|
313
|
+
*
|
|
314
|
+
* `'rgba(0, 0, 0, 0)'` is the same colour and passes the gate.
|
|
315
|
+
*
|
|
316
|
+
* This only applies to values handed to `withSpring` / `withTiming`.
|
|
317
|
+
* `interpolateColor` parses `'transparent'` correctly, which is why the
|
|
318
|
+
* gesture cascade, the shared-element carry, and `useShadow` are unaffected
|
|
319
|
+
* and keep the consumer's own spelling.
|
|
320
|
+
*/
|
|
321
|
+
declare const TRANSPARENT = "rgba(0, 0, 0, 0)";
|
|
322
|
+
|
|
295
323
|
/**
|
|
296
324
|
* Drive a `SharedValue<number>` toward `target` with **any** transition shape
|
|
297
325
|
* — spring, timing, decay, or no-animation — or a `TransitionName` registered
|
|
@@ -869,4 +897,4 @@ declare function useShadow({ from, to, progress, }: UseShadowOptions): ReturnTyp
|
|
|
869
897
|
*/
|
|
870
898
|
declare function useVariants<V extends Readonly<Record<string, object>>>(variants: V, initial?: keyof V & string): VariantController<keyof V & string>;
|
|
871
899
|
|
|
872
|
-
export { AnimatableValue, type Animator, type BoxShadowLayer, type ColorCascadeLayer, type ColorStyleKey, EasingInput, type ExtrapolationMode, type InterpolatedStyleMap, Motion, MotionComponent, MotionConfig, type MotionConfigProps, type MotionConfigValue, NamedTransitions, type NumericStyleKey, Presence, type PresenceContextValue, type ReducedMotion, type ShadowConfig, SpringTransition, type TransformKey, TransitionConfig, TransitionInput, TransitionName, type UseColorCascadeOptions, type UseColorTransitionOptions, type UseInterpolatedStyleOptions, type UseScrollResult, type UseShadowOptions, type UseTransformOptions, VariantController, buildReleaseAnimation, createMotionComponent, cubicBezier, ensureWorkletEasing, resolveAnimatableValue, resolveNamedTransition, resolveTransition, useAnimation, useAnimator, useBooleanSpring, useColorCascade, useColorTransition, useInterpolatedStyle, useMotionConfig, useMotionValue, useNamedTransitions, usePresence, useScroll, useShadow, useShouldReduceMotion, useSpring, useTransform, useVariants };
|
|
900
|
+
export { AnimatableValue, type Animator, type BoxShadowLayer, type ColorCascadeLayer, type ColorStyleKey, EasingInput, type ExtrapolationMode, type InterpolatedStyleMap, Motion, MotionComponent, MotionConfig, type MotionConfigProps, type MotionConfigValue, NamedTransitions, type NumericStyleKey, Presence, type PresenceContextValue, type ReducedMotion, type ShadowConfig, SpringTransition, TRANSPARENT, type TransformKey, TransitionConfig, TransitionInput, TransitionName, type UseColorCascadeOptions, type UseColorTransitionOptions, type UseInterpolatedStyleOptions, type UseScrollResult, type UseShadowOptions, type UseTransformOptions, VariantController, buildReleaseAnimation, createMotionComponent, cubicBezier, ensureWorkletEasing, resolveAnimatableValue, resolveNamedTransition, resolveTransition, useAnimation, useAnimator, useBooleanSpring, useColorCascade, useColorTransition, useInterpolatedStyle, useMotionConfig, useMotionValue, useNamedTransitions, usePresence, useScroll, useShadow, useShouldReduceMotion, useSpring, useTransform, useVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
|
|
5
|
-
import { M as MotionComponent, N as NamedTransitions, a as TransitionInput, T as TransitionConfig, A as AnimatableValue, E as EasingInput, S as SpringTransition, b as TransitionName, V as VariantController } from './types-
|
|
6
|
-
export { c as AnimateStyle, d as AnimationCallbackInfo, B as BoxShadowInput, D as DecayTransition, e as EasingFunction, f as EasingFunctionFactory, g as GestureSubStates, h as MotionProps, i as NoAnimationTransition, P as PerPropertyTransition, R as RegisteredTransitions, j as RepeatConfig, k as SequenceStep, l as TimingTransition, m as Transition, n as VariantsMap } from './types-
|
|
5
|
+
import { M as MotionComponent, N as NamedTransitions, a as TransitionInput, T as TransitionConfig, A as AnimatableValue, E as EasingInput, S as SpringTransition, b as TransitionName, V as VariantController } from './types-BQgLJeQG.js';
|
|
6
|
+
export { c as AnimateStyle, d as AnimationCallbackInfo, B as BoxShadowInput, D as DecayTransition, e as EasingFunction, f as EasingFunctionFactory, g as GestureSubStates, h as MotionProps, i as NoAnimationTransition, P as PerPropertyTransition, R as RegisteredTransitions, j as RepeatConfig, k as SequenceStep, l as TimingTransition, m as Transition, n as VariantsMap } from './types-BQgLJeQG.js';
|
|
7
7
|
import { SharedValue, useAnimatedStyle } from 'react-native-reanimated';
|
|
8
8
|
export { SharedValue } from 'react-native-reanimated';
|
|
9
|
-
export { U as UseGestureHandlers, a as UseGestureResult, u as useGesture } from './useGesture-
|
|
9
|
+
export { U as UseGestureHandlers, a as UseGestureResult, u as useGesture } from './useGesture-B0_CzOUz.js';
|
|
10
10
|
export { MotionImage } from './motion/Image.js';
|
|
11
11
|
export { MotionPressable } from './motion/Pressable.js';
|
|
12
12
|
export { MotionScrollView } from './motion/ScrollView.js';
|
|
@@ -292,6 +292,34 @@ declare function ensureWorkletEasing(easing: EasingInput | undefined): ((t: numb
|
|
|
292
292
|
*/
|
|
293
293
|
declare function buildReleaseAnimation(transition: TransitionConfig, toValue: number): unknown;
|
|
294
294
|
|
|
295
|
+
/**
|
|
296
|
+
* The one colour spelling Reanimated's animation drivers cannot accept.
|
|
297
|
+
*
|
|
298
|
+
* Reanimated dispatches an animation on the runtime shape of its **source**
|
|
299
|
+
* value, and `isColor()` is the gate for the RGBA-channel path. That gate is
|
|
300
|
+
* `processColorInitially(value) != null`, and Reanimated's colour-name table
|
|
301
|
+
* (`Colors.ts`) maps `transparent` to `undefined` — every other CSS colour
|
|
302
|
+
* name maps to a packed integer. So `'transparent'` is the single named colour
|
|
303
|
+
* that reports **false**.
|
|
304
|
+
*
|
|
305
|
+
* A value that fails the gate but is still a string falls to the
|
|
306
|
+
* prefix-number-suffix branch, which exists for values like `'100%'`. It runs
|
|
307
|
+
* `parseFloat('transparent')` → `NaN`, animates that, and re-attaches the
|
|
308
|
+
* prefix, so the slot fills with `'transparentNaN'`. Under `withTiming` the
|
|
309
|
+
* animation still snaps to its target when the duration elapses, which hides
|
|
310
|
+
* the fault; under `withSpring` — the library default — settling is decided by
|
|
311
|
+
* comparisons against `NaN`, which are all false, so the animation runs
|
|
312
|
+
* forever and the colour never appears.
|
|
313
|
+
*
|
|
314
|
+
* `'rgba(0, 0, 0, 0)'` is the same colour and passes the gate.
|
|
315
|
+
*
|
|
316
|
+
* This only applies to values handed to `withSpring` / `withTiming`.
|
|
317
|
+
* `interpolateColor` parses `'transparent'` correctly, which is why the
|
|
318
|
+
* gesture cascade, the shared-element carry, and `useShadow` are unaffected
|
|
319
|
+
* and keep the consumer's own spelling.
|
|
320
|
+
*/
|
|
321
|
+
declare const TRANSPARENT = "rgba(0, 0, 0, 0)";
|
|
322
|
+
|
|
295
323
|
/**
|
|
296
324
|
* Drive a `SharedValue<number>` toward `target` with **any** transition shape
|
|
297
325
|
* — spring, timing, decay, or no-animation — or a `TransitionName` registered
|
|
@@ -869,4 +897,4 @@ declare function useShadow({ from, to, progress, }: UseShadowOptions): ReturnTyp
|
|
|
869
897
|
*/
|
|
870
898
|
declare function useVariants<V extends Readonly<Record<string, object>>>(variants: V, initial?: keyof V & string): VariantController<keyof V & string>;
|
|
871
899
|
|
|
872
|
-
export { AnimatableValue, type Animator, type BoxShadowLayer, type ColorCascadeLayer, type ColorStyleKey, EasingInput, type ExtrapolationMode, type InterpolatedStyleMap, Motion, MotionComponent, MotionConfig, type MotionConfigProps, type MotionConfigValue, NamedTransitions, type NumericStyleKey, Presence, type PresenceContextValue, type ReducedMotion, type ShadowConfig, SpringTransition, type TransformKey, TransitionConfig, TransitionInput, TransitionName, type UseColorCascadeOptions, type UseColorTransitionOptions, type UseInterpolatedStyleOptions, type UseScrollResult, type UseShadowOptions, type UseTransformOptions, VariantController, buildReleaseAnimation, createMotionComponent, cubicBezier, ensureWorkletEasing, resolveAnimatableValue, resolveNamedTransition, resolveTransition, useAnimation, useAnimator, useBooleanSpring, useColorCascade, useColorTransition, useInterpolatedStyle, useMotionConfig, useMotionValue, useNamedTransitions, usePresence, useScroll, useShadow, useShouldReduceMotion, useSpring, useTransform, useVariants };
|
|
900
|
+
export { AnimatableValue, type Animator, type BoxShadowLayer, type ColorCascadeLayer, type ColorStyleKey, EasingInput, type ExtrapolationMode, type InterpolatedStyleMap, Motion, MotionComponent, MotionConfig, type MotionConfigProps, type MotionConfigValue, NamedTransitions, type NumericStyleKey, Presence, type PresenceContextValue, type ReducedMotion, type ShadowConfig, SpringTransition, TRANSPARENT, type TransformKey, TransitionConfig, TransitionInput, TransitionName, type UseColorCascadeOptions, type UseColorTransitionOptions, type UseInterpolatedStyleOptions, type UseScrollResult, type UseShadowOptions, type UseTransformOptions, VariantController, buildReleaseAnimation, createMotionComponent, cubicBezier, ensureWorkletEasing, resolveAnimatableValue, resolveNamedTransition, resolveTransition, useAnimation, useAnimator, useBooleanSpring, useColorCascade, useColorTransition, useInterpolatedStyle, useMotionConfig, useMotionValue, useNamedTransitions, usePresence, useScroll, useShadow, useShouldReduceMotion, useSpring, useTransform, useVariants };
|
package/dist/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
3
|
+
var chunk4NAMD62I_js = require('./chunk-4NAMD62I.js');
|
|
4
|
+
var chunkK5SI6VXS_js = require('./chunk-K5SI6VXS.js');
|
|
5
|
+
var chunkSTARIT6W_js = require('./chunk-STARIT6W.js');
|
|
6
|
+
var chunkFWWVHLXB_js = require('./chunk-FWWVHLXB.js');
|
|
7
|
+
var chunk5MGWHOSV_js = require('./chunk-5MGWHOSV.js');
|
|
8
|
+
var chunkX7B5WR5A_js = require('./chunk-X7B5WR5A.js');
|
|
9
|
+
var chunk767UKZXG_js = require('./chunk-767UKZXG.js');
|
|
10
|
+
var chunkOBRGJAST_js = require('./chunk-OBRGJAST.js');
|
|
11
|
+
var chunkPM6CVGXJ_js = require('./chunk-PM6CVGXJ.js');
|
|
12
12
|
var react = require('react');
|
|
13
13
|
var reactNativeReanimated = require('react-native-reanimated');
|
|
14
14
|
var reactNativeWorklets = require('react-native-worklets');
|
|
15
15
|
|
|
16
16
|
// src/motion/index.ts
|
|
17
17
|
var Motion = {
|
|
18
|
-
View:
|
|
19
|
-
Text:
|
|
20
|
-
Image:
|
|
21
|
-
Pressable:
|
|
22
|
-
ScrollView:
|
|
18
|
+
View: chunkK5SI6VXS_js.MotionView,
|
|
19
|
+
Text: chunkSTARIT6W_js.MotionText,
|
|
20
|
+
Image: chunkFWWVHLXB_js.MotionImage,
|
|
21
|
+
Pressable: chunk5MGWHOSV_js.MotionPressable,
|
|
22
|
+
ScrollView: chunkX7B5WR5A_js.MotionScrollView
|
|
23
23
|
};
|
|
24
24
|
function useAnimation(target, transition) {
|
|
25
25
|
const output = reactNativeReanimated.useSharedValue(target);
|
|
26
|
-
const shouldReduceMotion =
|
|
27
|
-
const resolved =
|
|
28
|
-
const cfgSig =
|
|
26
|
+
const shouldReduceMotion = chunkOBRGJAST_js.useShouldReduceMotion();
|
|
27
|
+
const resolved = chunkOBRGJAST_js.resolveNamedTransition(transition, chunkOBRGJAST_js.useNamedTransitions());
|
|
28
|
+
const cfgSig = chunkPM6CVGXJ_js.stableSig(resolved);
|
|
29
29
|
react.useEffect(() => {
|
|
30
30
|
const cfg = shouldReduceMotion ? { type: "no-animation" } : resolved ?? { type: "spring" };
|
|
31
|
-
output.value =
|
|
31
|
+
output.value = chunkPM6CVGXJ_js.resolveTransition(cfg, target);
|
|
32
32
|
}, [target, cfgSig, shouldReduceMotion]);
|
|
33
33
|
react.useEffect(
|
|
34
34
|
() => () => reactNativeReanimated.cancelAnimation(output),
|
|
@@ -39,22 +39,22 @@ function useAnimation(target, transition) {
|
|
|
39
39
|
return output;
|
|
40
40
|
}
|
|
41
41
|
function useAnimator() {
|
|
42
|
-
const registry =
|
|
43
|
-
const shouldReduceMotion =
|
|
42
|
+
const registry = chunkOBRGJAST_js.useNamedTransitions();
|
|
43
|
+
const shouldReduceMotion = chunkOBRGJAST_js.useShouldReduceMotion();
|
|
44
44
|
const registryRef = react.useRef(registry);
|
|
45
45
|
registryRef.current = registry;
|
|
46
46
|
const reduceMotionRef = react.useRef(shouldReduceMotion);
|
|
47
47
|
reduceMotionRef.current = shouldReduceMotion;
|
|
48
48
|
return react.useCallback((value, to, transition) => {
|
|
49
|
-
const resolved =
|
|
49
|
+
const resolved = chunkOBRGJAST_js.resolveNamedTransition(transition, registryRef.current);
|
|
50
50
|
const cfg = reduceMotionRef.current ? { type: "no-animation" } : resolved ?? { type: "spring" };
|
|
51
|
-
value.value =
|
|
51
|
+
value.value = chunkPM6CVGXJ_js.resolveTransition(cfg, to);
|
|
52
52
|
}, []);
|
|
53
53
|
}
|
|
54
54
|
function useSpring(target, config) {
|
|
55
|
-
const spring = resolveSpringInput(config,
|
|
55
|
+
const spring = resolveSpringInput(config, chunkOBRGJAST_js.useNamedTransitions());
|
|
56
56
|
const reanimConfig = react.useMemo(
|
|
57
|
-
() =>
|
|
57
|
+
() => chunkPM6CVGXJ_js.springToReanimated(spring ?? {}),
|
|
58
58
|
// Keyed on the resolved primitive fields rather than the `config` object
|
|
59
59
|
// identity: callers routinely pass a fresh object literal each render, so
|
|
60
60
|
// depending on `config` itself would rebuild the Reanimated config on
|
|
@@ -99,7 +99,7 @@ function useSpring(target, config) {
|
|
|
99
99
|
}
|
|
100
100
|
function resolveSpringInput(config, registry) {
|
|
101
101
|
if (typeof config !== "string") return config;
|
|
102
|
-
const cfg =
|
|
102
|
+
const cfg = chunkOBRGJAST_js.lookupNamedTransition(config, registry);
|
|
103
103
|
if (cfg.type === void 0 || cfg.type === "spring") return cfg;
|
|
104
104
|
if (__DEV__) {
|
|
105
105
|
console.warn(
|
|
@@ -296,7 +296,7 @@ function useTransform(arg1, inputRange, outputRange, options) {
|
|
|
296
296
|
if (reactNativeWorklets.isWorkletFunction(userFn)) {
|
|
297
297
|
producer = userFn;
|
|
298
298
|
} else {
|
|
299
|
-
|
|
299
|
+
chunkPM6CVGXJ_js.warnNonWorkletOnce(
|
|
300
300
|
"useTransform-transformer",
|
|
301
301
|
"[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."
|
|
302
302
|
);
|
|
@@ -362,9 +362,9 @@ function useShadow({
|
|
|
362
362
|
const hasElevation = from.elevation !== void 0 || to.elevation !== void 0;
|
|
363
363
|
const hasColor = from.shadowColor !== void 0 || to.shadowColor !== void 0;
|
|
364
364
|
const hasOffset = from.shadowOffset !== void 0 || to.shadowOffset !== void 0;
|
|
365
|
-
const boxShadowPairs = from.boxShadow !== void 0 || to.boxShadow !== void 0 ?
|
|
366
|
-
|
|
367
|
-
|
|
365
|
+
const boxShadowPairs = from.boxShadow !== void 0 || to.boxShadow !== void 0 ? chunk767UKZXG_js.pairBoxShadowLayers(
|
|
366
|
+
chunk767UKZXG_js.resolveBoxShadowInput(from.boxShadow),
|
|
367
|
+
chunk767UKZXG_js.resolveBoxShadowInput(to.boxShadow)
|
|
368
368
|
) : [];
|
|
369
369
|
const opacityFrom = from.shadowOpacity ?? 0;
|
|
370
370
|
const opacityTo = to.shadowOpacity ?? 0;
|
|
@@ -463,79 +463,83 @@ function useVariants(variants, initial) {
|
|
|
463
463
|
|
|
464
464
|
Object.defineProperty(exports, "useGesture", {
|
|
465
465
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunk4NAMD62I_js.useGesture; }
|
|
467
467
|
});
|
|
468
468
|
Object.defineProperty(exports, "MotionView", {
|
|
469
469
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
470
|
+
get: function () { return chunkK5SI6VXS_js.MotionView; }
|
|
471
471
|
});
|
|
472
472
|
Object.defineProperty(exports, "MotionText", {
|
|
473
473
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
474
|
+
get: function () { return chunkSTARIT6W_js.MotionText; }
|
|
475
475
|
});
|
|
476
476
|
Object.defineProperty(exports, "MotionImage", {
|
|
477
477
|
enumerable: true,
|
|
478
|
-
get: function () { return
|
|
478
|
+
get: function () { return chunkFWWVHLXB_js.MotionImage; }
|
|
479
479
|
});
|
|
480
480
|
Object.defineProperty(exports, "MotionPressable", {
|
|
481
481
|
enumerable: true,
|
|
482
|
-
get: function () { return
|
|
482
|
+
get: function () { return chunk5MGWHOSV_js.MotionPressable; }
|
|
483
483
|
});
|
|
484
484
|
Object.defineProperty(exports, "MotionScrollView", {
|
|
485
485
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
486
|
+
get: function () { return chunkX7B5WR5A_js.MotionScrollView; }
|
|
487
487
|
});
|
|
488
488
|
Object.defineProperty(exports, "Presence", {
|
|
489
489
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
490
|
+
get: function () { return chunk767UKZXG_js.Presence; }
|
|
491
|
+
});
|
|
492
|
+
Object.defineProperty(exports, "TRANSPARENT", {
|
|
493
|
+
enumerable: true,
|
|
494
|
+
get: function () { return chunk767UKZXG_js.TRANSPARENT; }
|
|
491
495
|
});
|
|
492
496
|
Object.defineProperty(exports, "createMotionComponent", {
|
|
493
497
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
498
|
+
get: function () { return chunk767UKZXG_js.createMotionComponent; }
|
|
495
499
|
});
|
|
496
500
|
Object.defineProperty(exports, "usePresence", {
|
|
497
501
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunk767UKZXG_js.usePresence; }
|
|
499
503
|
});
|
|
500
504
|
Object.defineProperty(exports, "MotionConfig", {
|
|
501
505
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunkOBRGJAST_js.MotionConfig; }
|
|
503
507
|
});
|
|
504
508
|
Object.defineProperty(exports, "resolveNamedTransition", {
|
|
505
509
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunkOBRGJAST_js.resolveNamedTransition; }
|
|
507
511
|
});
|
|
508
512
|
Object.defineProperty(exports, "useMotionConfig", {
|
|
509
513
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunkOBRGJAST_js.useMotionConfig; }
|
|
511
515
|
});
|
|
512
516
|
Object.defineProperty(exports, "useNamedTransitions", {
|
|
513
517
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
518
|
+
get: function () { return chunkOBRGJAST_js.useNamedTransitions; }
|
|
515
519
|
});
|
|
516
520
|
Object.defineProperty(exports, "useShouldReduceMotion", {
|
|
517
521
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
522
|
+
get: function () { return chunkOBRGJAST_js.useShouldReduceMotion; }
|
|
519
523
|
});
|
|
520
524
|
Object.defineProperty(exports, "buildReleaseAnimation", {
|
|
521
525
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
526
|
+
get: function () { return chunkPM6CVGXJ_js.buildReleaseAnimation; }
|
|
523
527
|
});
|
|
524
528
|
Object.defineProperty(exports, "cubicBezier", {
|
|
525
529
|
enumerable: true,
|
|
526
|
-
get: function () { return
|
|
530
|
+
get: function () { return chunkPM6CVGXJ_js.cubicBezier; }
|
|
527
531
|
});
|
|
528
532
|
Object.defineProperty(exports, "ensureWorkletEasing", {
|
|
529
533
|
enumerable: true,
|
|
530
|
-
get: function () { return
|
|
534
|
+
get: function () { return chunkPM6CVGXJ_js.ensureWorkletEasing; }
|
|
531
535
|
});
|
|
532
536
|
Object.defineProperty(exports, "resolveAnimatableValue", {
|
|
533
537
|
enumerable: true,
|
|
534
|
-
get: function () { return
|
|
538
|
+
get: function () { return chunkPM6CVGXJ_js.resolveAnimatableValue; }
|
|
535
539
|
});
|
|
536
540
|
Object.defineProperty(exports, "resolveTransition", {
|
|
537
541
|
enumerable: true,
|
|
538
|
-
get: function () { return
|
|
542
|
+
get: function () { return chunkPM6CVGXJ_js.resolveTransition; }
|
|
539
543
|
});
|
|
540
544
|
exports.Motion = Motion;
|
|
541
545
|
exports.useAnimation = useAnimation;
|
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { useGesture } from './chunk-
|
|
2
|
-
import { MotionView } from './chunk-
|
|
3
|
-
export { MotionView } from './chunk-
|
|
4
|
-
import { MotionText } from './chunk-
|
|
5
|
-
export { MotionText } from './chunk-
|
|
6
|
-
import { MotionImage } from './chunk-
|
|
7
|
-
export { MotionImage } from './chunk-
|
|
8
|
-
import { MotionPressable } from './chunk-
|
|
9
|
-
export { MotionPressable } from './chunk-
|
|
10
|
-
import { MotionScrollView } from './chunk-
|
|
11
|
-
export { MotionScrollView } from './chunk-
|
|
12
|
-
import { pairBoxShadowLayers, resolveBoxShadowInput } from './chunk-
|
|
13
|
-
export { Presence, createMotionComponent, usePresence } from './chunk-
|
|
14
|
-
import { useShouldReduceMotion, resolveNamedTransition, useNamedTransitions, lookupNamedTransition } from './chunk-
|
|
15
|
-
export { MotionConfig, resolveNamedTransition, useMotionConfig, useNamedTransitions, useShouldReduceMotion } from './chunk-
|
|
16
|
-
import { stableSig, resolveTransition, springToReanimated, warnNonWorkletOnce } from './chunk-
|
|
17
|
-
export { buildReleaseAnimation, cubicBezier, ensureWorkletEasing, resolveAnimatableValue, resolveTransition } from './chunk-
|
|
1
|
+
export { useGesture } from './chunk-OW5XTGVN.mjs';
|
|
2
|
+
import { MotionView } from './chunk-CMHVF6F4.mjs';
|
|
3
|
+
export { MotionView } from './chunk-CMHVF6F4.mjs';
|
|
4
|
+
import { MotionText } from './chunk-F7LJX56B.mjs';
|
|
5
|
+
export { MotionText } from './chunk-F7LJX56B.mjs';
|
|
6
|
+
import { MotionImage } from './chunk-PFPO7DX2.mjs';
|
|
7
|
+
export { MotionImage } from './chunk-PFPO7DX2.mjs';
|
|
8
|
+
import { MotionPressable } from './chunk-C3EDC5ZW.mjs';
|
|
9
|
+
export { MotionPressable } from './chunk-C3EDC5ZW.mjs';
|
|
10
|
+
import { MotionScrollView } from './chunk-BAAQI37F.mjs';
|
|
11
|
+
export { MotionScrollView } from './chunk-BAAQI37F.mjs';
|
|
12
|
+
import { pairBoxShadowLayers, resolveBoxShadowInput } from './chunk-2ICQLWH2.mjs';
|
|
13
|
+
export { Presence, TRANSPARENT, createMotionComponent, usePresence } from './chunk-2ICQLWH2.mjs';
|
|
14
|
+
import { useShouldReduceMotion, resolveNamedTransition, useNamedTransitions, lookupNamedTransition } from './chunk-Z3HCJ43H.mjs';
|
|
15
|
+
export { MotionConfig, resolveNamedTransition, useMotionConfig, useNamedTransitions, useShouldReduceMotion } from './chunk-Z3HCJ43H.mjs';
|
|
16
|
+
import { stableSig, resolveTransition, springToReanimated, warnNonWorkletOnce } from './chunk-REYL77RE.mjs';
|
|
17
|
+
export { buildReleaseAnimation, cubicBezier, ensureWorkletEasing, resolveAnimatableValue, resolveTransition } from './chunk-REYL77RE.mjs';
|
|
18
18
|
import { useEffect, useRef, useCallback, useMemo } from 'react';
|
|
19
19
|
import { useSharedValue, cancelAnimation, withSpring, useAnimatedReaction, useAnimatedStyle, interpolateColor, interpolate, useDerivedValue, Extrapolation, useAnimatedScrollHandler } from 'react-native-reanimated';
|
|
20
20
|
import { isWorkletFunction } from 'react-native-worklets';
|
package/dist/motion/Image.d.mts
CHANGED
package/dist/motion/Image.d.ts
CHANGED
package/dist/motion/Image.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkFWWVHLXB_js = require('../chunk-FWWVHLXB.js');
|
|
4
|
+
require('../chunk-767UKZXG.js');
|
|
5
|
+
require('../chunk-OBRGJAST.js');
|
|
6
|
+
require('../chunk-PM6CVGXJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "MotionImage", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkFWWVHLXB_js.MotionImage; }
|
|
13
13
|
});
|
package/dist/motion/Image.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MotionImage } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { MotionImage } from '../chunk-PFPO7DX2.mjs';
|
|
2
|
+
import '../chunk-2ICQLWH2.mjs';
|
|
3
|
+
import '../chunk-Z3HCJ43H.mjs';
|
|
4
|
+
import '../chunk-REYL77RE.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import * as react_native from 'react-native';
|
|
3
|
-
import { M as MotionComponent } from '../types-
|
|
3
|
+
import { M as MotionComponent } from '../types-BQgLJeQG.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Animatable `Pressable`. The `gesture` prop's `pressed` sub-state hooks into
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import * as react_native from 'react-native';
|
|
3
|
-
import { M as MotionComponent } from '../types-
|
|
3
|
+
import { M as MotionComponent } from '../types-BQgLJeQG.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Animatable `Pressable`. The `gesture` prop's `pressed` sub-state hooks into
|
package/dist/motion/Pressable.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunk5MGWHOSV_js = require('../chunk-5MGWHOSV.js');
|
|
4
|
+
require('../chunk-767UKZXG.js');
|
|
5
|
+
require('../chunk-OBRGJAST.js');
|
|
6
|
+
require('../chunk-PM6CVGXJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "MotionPressable", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk5MGWHOSV_js.MotionPressable; }
|
|
13
13
|
});
|