motion-v 1.0.0-alpha.4 → 1.0.0-beta.0
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/dist/cjs/index.js +1062 -265
- package/dist/es/components/animate-presence/AnimatePresence.d.ts +1 -1
- package/dist/es/components/animate-presence/use-pop-layout.mjs +2 -1
- package/dist/es/components/motion/props.d.ts +0 -6
- package/dist/es/components/motion/props.mjs +1 -3
- package/dist/es/components/motion/use-motion-state.d.ts +41 -41
- package/dist/es/components/motion/use-motion-state.mjs +5 -3
- package/dist/es/components/motion/utils.mjs +4 -2
- package/dist/es/components/reorder/index.d.ts +160 -160
- package/dist/es/components/reorder/utils.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animate/index.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animate/single-value.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +4 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +2 -3
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +3 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +4 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +2 -9
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/generators/spring/index.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +3 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +3 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/sequence/create.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/utils/map.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +4 -24
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/VisualElement.mjs +3 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/observe.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/track.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/viewport/index.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/utils/setters.mjs +2 -1
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/delay.mjs +2 -1
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs +79 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +9 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +15 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +17 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +81 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +37 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/batcher.mjs +64 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs +10 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/microtask.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/order.mjs +17 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/render-step.mjs +70 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/sync-time.mjs +22 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +11 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/hover.mjs +30 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +74 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +32 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/utils/state.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +10 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/setup.mjs +15 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/stats/buffer.mjs +7 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/is-bezier-definition.mjs +4 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs +17 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +12 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +13 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +6 -0
- package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/value/index.mjs +277 -0
- package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +7 -0
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -1
- package/dist/es/features/gestures/hover/index.mjs +3 -1
- package/dist/es/features/gestures/in-view/index.mjs +2 -1
- package/dist/es/features/gestures/pan/PanSession.mjs +2 -1
- package/dist/es/features/gestures/pan/index.mjs +1 -1
- package/dist/es/features/gestures/press/index.mjs +3 -1
- package/dist/es/index.mjs +6 -1
- package/dist/es/state/motion-state.mjs +1 -1
- package/dist/es/state/style.mjs +3 -0
- package/dist/es/utils/use-animation-frame.mjs +2 -1
- package/dist/es/value/use-combine-values.mjs +3 -1
- package/dist/es/value/use-computed.mjs +2 -1
- package/dist/es/value/use-scroll.mjs +2 -1
- package/dist/es/value/use-spring.mjs +3 -1
- package/dist/es/value/use-time.mjs +2 -1
- package/dist/es/value/use-velocity.mjs +3 -1
- package/package.json +1 -1
|
@@ -16,8 +16,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
16
16
|
initial: boolean;
|
|
17
17
|
anchorX: string;
|
|
18
18
|
}>>>, {
|
|
19
|
-
mode: "wait" | "popLayout" | "sync";
|
|
20
19
|
initial: boolean;
|
|
20
|
+
mode: "wait" | "popLayout" | "sync";
|
|
21
21
|
anchorX: "left" | "right";
|
|
22
22
|
}, {}>;
|
|
23
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useMotionConfig } from "../motion-config/context.mjs";
|
|
2
|
-
import { frame } from "motion-dom";
|
|
2
|
+
import { frame } from "../../external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
|
|
3
|
+
import "../../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
3
4
|
function usePopLayout(props) {
|
|
4
5
|
const styles = /* @__PURE__ */ new WeakMap();
|
|
5
6
|
const config = useMotionConfig();
|
|
@@ -84,9 +84,7 @@ const MotionComponentProps = {
|
|
|
84
84
|
"onPanSessionStart": { type: Function },
|
|
85
85
|
"onPanStart": { type: Function },
|
|
86
86
|
"onPan": { type: Function },
|
|
87
|
-
"onPanEnd": { type: Function }
|
|
88
|
-
"onFocus": { type: Function },
|
|
89
|
-
"onBlur": { type: Function }
|
|
87
|
+
"onPanEnd": { type: Function }
|
|
90
88
|
};
|
|
91
89
|
export {
|
|
92
90
|
MotionComponentProps
|
|
@@ -13,7 +13,7 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
13
13
|
once?: boolean;
|
|
14
14
|
};
|
|
15
15
|
animatePresenceContext: import('../presence').PresenceContext;
|
|
16
|
-
initial: false | import('../..').
|
|
16
|
+
initial: false | import('../..').VariantLabels | import('../..').Variant;
|
|
17
17
|
as?: "div";
|
|
18
18
|
asChild?: boolean;
|
|
19
19
|
hover?: import('../..').Options["hover"];
|
|
@@ -39,15 +39,43 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
39
39
|
[x: number]: string | number | import('motion-dom').MotionValue<any>;
|
|
40
40
|
[x: `--${string}`]: string | number | import('motion-dom').MotionValue<any>;
|
|
41
41
|
string?: string | number | import('motion-dom').MotionValue<any>;
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
end?: string | number | import('motion-dom').MotionValue<any>;
|
|
43
|
+
x?: string | number | import('motion-dom').MotionValue<any>;
|
|
44
|
+
y?: string | number | import('motion-dom').MotionValue<any>;
|
|
45
|
+
position?: string | number | import('motion-dom').MotionValue<any>;
|
|
46
|
+
page?: string | number | import('motion-dom').MotionValue<any>;
|
|
44
47
|
[Symbol.iterator]?: string | number | import('motion-dom').MotionValue<any>;
|
|
48
|
+
top?: string | number | import('motion-dom').MotionValue<any>;
|
|
49
|
+
right?: string | number | import('motion-dom').MotionValue<any>;
|
|
50
|
+
bottom?: string | number | import('motion-dom').MotionValue<any>;
|
|
51
|
+
left?: string | number | import('motion-dom').MotionValue<any>;
|
|
52
|
+
readonly length?: string | number | import('motion-dom').MotionValue<any>;
|
|
53
|
+
filter?: string | number | import('motion-dom').MotionValue<any>;
|
|
54
|
+
fill?: string | number | import('motion-dom').MotionValue<any>;
|
|
55
|
+
values?: string | number | import('motion-dom').MotionValue<any>;
|
|
56
|
+
all?: string | number | import('motion-dom').MotionValue<any>;
|
|
57
|
+
clear?: string | number | import('motion-dom').MotionValue<any>;
|
|
58
|
+
willChange?: string | number | import('motion-dom').MotionValue<any>;
|
|
59
|
+
rotate?: string | number | import('motion-dom').MotionValue<any>;
|
|
60
|
+
scale?: string | number | import('motion-dom').MotionValue<any>;
|
|
61
|
+
perspective?: string | number | import('motion-dom').MotionValue<any>;
|
|
62
|
+
transition?: string | number | import('motion-dom').MotionValue<any>;
|
|
63
|
+
translate?: string | number | import('motion-dom').MotionValue<any>;
|
|
64
|
+
from?: string | number | import('motion-dom').MotionValue<any>;
|
|
65
|
+
resize?: string | number | import('motion-dom').MotionValue<any>;
|
|
66
|
+
transform?: string | number | import('motion-dom').MotionValue<any>;
|
|
67
|
+
offset?: string | number | import('motion-dom').MotionValue<any>;
|
|
68
|
+
clipPath?: string | number | import('motion-dom').MotionValue<any>;
|
|
69
|
+
marker?: string | number | import('motion-dom').MotionValue<any>;
|
|
70
|
+
mask?: string | number | import('motion-dom').MotionValue<any>;
|
|
71
|
+
path?: string | number | import('motion-dom').MotionValue<any>;
|
|
72
|
+
direction?: string | number | import('motion-dom').MotionValue<any>;
|
|
73
|
+
z?: string | number | import('motion-dom').MotionValue<any>;
|
|
45
74
|
accentColor?: string | number | import('motion-dom').MotionValue<any>;
|
|
46
75
|
alignContent?: string | number | import('motion-dom').MotionValue<any>;
|
|
47
76
|
alignItems?: string | number | import('motion-dom').MotionValue<any>;
|
|
48
77
|
alignSelf?: string | number | import('motion-dom').MotionValue<any>;
|
|
49
78
|
alignmentBaseline?: string | number | import('motion-dom').MotionValue<any>;
|
|
50
|
-
all?: string | number | import('motion-dom').MotionValue<any>;
|
|
51
79
|
animation?: string | number | import('motion-dom').MotionValue<any>;
|
|
52
80
|
animationComposition?: string | number | import('motion-dom').MotionValue<any>;
|
|
53
81
|
animationDelay?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -138,7 +166,6 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
138
166
|
borderTopStyle?: string | number | import('motion-dom').MotionValue<any>;
|
|
139
167
|
borderTopWidth?: string | number | import('motion-dom').MotionValue<any>;
|
|
140
168
|
borderWidth?: string | number | import('motion-dom').MotionValue<any>;
|
|
141
|
-
bottom?: string | number | import('motion-dom').MotionValue<any>;
|
|
142
169
|
boxShadow?: string | number | import('motion-dom').MotionValue<any>;
|
|
143
170
|
boxSizing?: string | number | import('motion-dom').MotionValue<any>;
|
|
144
171
|
breakAfter?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -146,9 +173,7 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
146
173
|
breakInside?: string | number | import('motion-dom').MotionValue<any>;
|
|
147
174
|
captionSide?: string | number | import('motion-dom').MotionValue<any>;
|
|
148
175
|
caretColor?: string | number | import('motion-dom').MotionValue<any>;
|
|
149
|
-
clear?: string | number | import('motion-dom').MotionValue<any>;
|
|
150
176
|
clip?: string | number | import('motion-dom').MotionValue<any>;
|
|
151
|
-
clipPath?: string | number | import('motion-dom').MotionValue<any>;
|
|
152
177
|
clipRule?: string | number | import('motion-dom').MotionValue<any>;
|
|
153
178
|
color?: string | number | import('motion-dom').MotionValue<any>;
|
|
154
179
|
colorInterpolation?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -184,14 +209,11 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
184
209
|
cx?: string | number | import('motion-dom').MotionValue<any>;
|
|
185
210
|
cy?: string | number | import('motion-dom').MotionValue<any>;
|
|
186
211
|
d?: string | number | import('motion-dom').MotionValue<any>;
|
|
187
|
-
direction?: string | number | import('motion-dom').MotionValue<any>;
|
|
188
212
|
display?: string | number | import('motion-dom').MotionValue<any>;
|
|
189
213
|
dominantBaseline?: string | number | import('motion-dom').MotionValue<any>;
|
|
190
214
|
emptyCells?: string | number | import('motion-dom').MotionValue<any>;
|
|
191
|
-
fill?: string | number | import('motion-dom').MotionValue<any>;
|
|
192
215
|
fillOpacity?: string | number | import('motion-dom').MotionValue<any>;
|
|
193
216
|
fillRule?: string | number | import('motion-dom').MotionValue<any>;
|
|
194
|
-
filter?: string | number | import('motion-dom').MotionValue<any>;
|
|
195
217
|
flex?: string | number | import('motion-dom').MotionValue<any>;
|
|
196
218
|
flexBasis?: string | number | import('motion-dom').MotionValue<any>;
|
|
197
219
|
flexDirection?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -262,7 +284,6 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
262
284
|
justifyContent?: string | number | import('motion-dom').MotionValue<any>;
|
|
263
285
|
justifyItems?: string | number | import('motion-dom').MotionValue<any>;
|
|
264
286
|
justifySelf?: string | number | import('motion-dom').MotionValue<any>;
|
|
265
|
-
left?: string | number | import('motion-dom').MotionValue<any>;
|
|
266
287
|
letterSpacing?: string | number | import('motion-dom').MotionValue<any>;
|
|
267
288
|
lightingColor?: string | number | import('motion-dom').MotionValue<any>;
|
|
268
289
|
lineBreak?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -282,11 +303,9 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
282
303
|
marginLeft?: string | number | import('motion-dom').MotionValue<any>;
|
|
283
304
|
marginRight?: string | number | import('motion-dom').MotionValue<any>;
|
|
284
305
|
marginTop?: string | number | import('motion-dom').MotionValue<any>;
|
|
285
|
-
marker?: string | number | import('motion-dom').MotionValue<any>;
|
|
286
306
|
markerEnd?: string | number | import('motion-dom').MotionValue<any>;
|
|
287
307
|
markerMid?: string | number | import('motion-dom').MotionValue<any>;
|
|
288
308
|
markerStart?: string | number | import('motion-dom').MotionValue<any>;
|
|
289
|
-
mask?: string | number | import('motion-dom').MotionValue<any>;
|
|
290
309
|
maskClip?: string | number | import('motion-dom').MotionValue<any>;
|
|
291
310
|
maskComposite?: string | number | import('motion-dom').MotionValue<any>;
|
|
292
311
|
maskImage?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -309,7 +328,6 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
309
328
|
mixBlendMode?: string | number | import('motion-dom').MotionValue<any>;
|
|
310
329
|
objectFit?: string | number | import('motion-dom').MotionValue<any>;
|
|
311
330
|
objectPosition?: string | number | import('motion-dom').MotionValue<any>;
|
|
312
|
-
offset?: string | number | import('motion-dom').MotionValue<any>;
|
|
313
331
|
offsetAnchor?: string | number | import('motion-dom').MotionValue<any>;
|
|
314
332
|
offsetDistance?: string | number | import('motion-dom').MotionValue<any>;
|
|
315
333
|
offsetPath?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -345,29 +363,23 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
345
363
|
paddingLeft?: string | number | import('motion-dom').MotionValue<any>;
|
|
346
364
|
paddingRight?: string | number | import('motion-dom').MotionValue<any>;
|
|
347
365
|
paddingTop?: string | number | import('motion-dom').MotionValue<any>;
|
|
348
|
-
page?: string | number | import('motion-dom').MotionValue<any>;
|
|
349
366
|
pageBreakAfter?: string | number | import('motion-dom').MotionValue<any>;
|
|
350
367
|
pageBreakBefore?: string | number | import('motion-dom').MotionValue<any>;
|
|
351
368
|
pageBreakInside?: string | number | import('motion-dom').MotionValue<any>;
|
|
352
369
|
paintOrder?: string | number | import('motion-dom').MotionValue<any>;
|
|
353
|
-
|
|
370
|
+
readonly parentRule?: string | number | import('motion-dom').MotionValue<any>;
|
|
354
371
|
perspectiveOrigin?: string | number | import('motion-dom').MotionValue<any>;
|
|
355
372
|
placeContent?: string | number | import('motion-dom').MotionValue<any>;
|
|
356
373
|
placeItems?: string | number | import('motion-dom').MotionValue<any>;
|
|
357
374
|
placeSelf?: string | number | import('motion-dom').MotionValue<any>;
|
|
358
375
|
pointerEvents?: string | number | import('motion-dom').MotionValue<any>;
|
|
359
|
-
position?: string | number | import('motion-dom').MotionValue<any>;
|
|
360
376
|
printColorAdjust?: string | number | import('motion-dom').MotionValue<any>;
|
|
361
377
|
quotes?: string | number | import('motion-dom').MotionValue<any>;
|
|
362
378
|
r?: string | number | import('motion-dom').MotionValue<any>;
|
|
363
|
-
resize?: string | number | import('motion-dom').MotionValue<any>;
|
|
364
|
-
right?: string | number | import('motion-dom').MotionValue<any>;
|
|
365
|
-
rotate?: string | number | import('motion-dom').MotionValue<any>;
|
|
366
379
|
rowGap?: string | number | import('motion-dom').MotionValue<any>;
|
|
367
380
|
rubyPosition?: string | number | import('motion-dom').MotionValue<any>;
|
|
368
381
|
rx?: string | number | import('motion-dom').MotionValue<any>;
|
|
369
382
|
ry?: string | number | import('motion-dom').MotionValue<any>;
|
|
370
|
-
scale?: string | number | import('motion-dom').MotionValue<any>;
|
|
371
383
|
scrollBehavior?: string | number | import('motion-dom').MotionValue<any>;
|
|
372
384
|
scrollMargin?: string | number | import('motion-dom').MotionValue<any>;
|
|
373
385
|
scrollMarginBlock?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -438,19 +450,15 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
438
450
|
textWrap?: string | number | import('motion-dom').MotionValue<any>;
|
|
439
451
|
textWrapMode?: string | number | import('motion-dom').MotionValue<any>;
|
|
440
452
|
textWrapStyle?: string | number | import('motion-dom').MotionValue<any>;
|
|
441
|
-
top?: string | number | import('motion-dom').MotionValue<any>;
|
|
442
453
|
touchAction?: string | number | import('motion-dom').MotionValue<any>;
|
|
443
|
-
transform?: string | number | import('motion-dom').MotionValue<any>;
|
|
444
454
|
transformBox?: string | number | import('motion-dom').MotionValue<any>;
|
|
445
455
|
transformOrigin?: string | number | import('motion-dom').MotionValue<any>;
|
|
446
456
|
transformStyle?: string | number | import('motion-dom').MotionValue<any>;
|
|
447
|
-
transition?: string | number | import('motion-dom').MotionValue<any>;
|
|
448
457
|
transitionBehavior?: string | number | import('motion-dom').MotionValue<any>;
|
|
449
458
|
transitionDelay?: string | number | import('motion-dom').MotionValue<any>;
|
|
450
459
|
transitionDuration?: string | number | import('motion-dom').MotionValue<any>;
|
|
451
460
|
transitionProperty?: string | number | import('motion-dom').MotionValue<any>;
|
|
452
461
|
transitionTimingFunction?: string | number | import('motion-dom').MotionValue<any>;
|
|
453
|
-
translate?: string | number | import('motion-dom').MotionValue<any>;
|
|
454
462
|
unicodeBidi?: string | number | import('motion-dom').MotionValue<any>;
|
|
455
463
|
userSelect?: string | number | import('motion-dom').MotionValue<any>;
|
|
456
464
|
vectorEffect?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -530,13 +538,10 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
530
538
|
whiteSpaceCollapse?: string | number | import('motion-dom').MotionValue<any>;
|
|
531
539
|
widows?: string | number | import('motion-dom').MotionValue<any>;
|
|
532
540
|
width?: string | number | import('motion-dom').MotionValue<any>;
|
|
533
|
-
willChange?: string | number | import('motion-dom').MotionValue<any>;
|
|
534
541
|
wordBreak?: string | number | import('motion-dom').MotionValue<any>;
|
|
535
542
|
wordSpacing?: string | number | import('motion-dom').MotionValue<any>;
|
|
536
543
|
wordWrap?: string | number | import('motion-dom').MotionValue<any>;
|
|
537
544
|
writingMode?: string | number | import('motion-dom').MotionValue<any>;
|
|
538
|
-
x?: string | number | import('motion-dom').MotionValue<any>;
|
|
539
|
-
y?: string | number | import('motion-dom').MotionValue<any>;
|
|
540
545
|
zIndex?: string | number | import('motion-dom').MotionValue<any>;
|
|
541
546
|
zoom?: string | number | import('motion-dom').MotionValue<any>;
|
|
542
547
|
getPropertyPriority?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -544,23 +549,14 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
544
549
|
item?: string | number | import('motion-dom').MotionValue<any>;
|
|
545
550
|
removeProperty?: string | number | import('motion-dom').MotionValue<any>;
|
|
546
551
|
setProperty?: string | number | import('motion-dom').MotionValue<any>;
|
|
547
|
-
z?: string | number | import('motion-dom').MotionValue<any>;
|
|
548
|
-
translateX?: string | number | import('motion-dom').MotionValue<any>;
|
|
549
|
-
translateY?: string | number | import('motion-dom').MotionValue<any>;
|
|
550
|
-
translateZ?: string | number | import('motion-dom').MotionValue<any>;
|
|
551
552
|
rotateX?: string | number | import('motion-dom').MotionValue<any>;
|
|
552
553
|
rotateY?: string | number | import('motion-dom').MotionValue<any>;
|
|
553
554
|
rotateZ?: string | number | import('motion-dom').MotionValue<any>;
|
|
554
555
|
scaleX?: string | number | import('motion-dom').MotionValue<any>;
|
|
555
556
|
scaleY?: string | number | import('motion-dom').MotionValue<any>;
|
|
556
557
|
scaleZ?: string | number | import('motion-dom').MotionValue<any>;
|
|
557
|
-
skew?: string | number | import('motion-dom').MotionValue<any>;
|
|
558
558
|
skewX?: string | number | import('motion-dom').MotionValue<any>;
|
|
559
559
|
skewY?: string | number | import('motion-dom').MotionValue<any>;
|
|
560
|
-
originX?: string | number | import('motion-dom').MotionValue<any>;
|
|
561
|
-
originY?: string | number | import('motion-dom').MotionValue<any>;
|
|
562
|
-
originZ?: string | number | import('motion-dom').MotionValue<any>;
|
|
563
|
-
transformPerspective?: string | number | import('motion-dom').MotionValue<any>;
|
|
564
560
|
accentHeight?: string | number | import('motion-dom').MotionValue<any>;
|
|
565
561
|
accumulate?: string | number | import('motion-dom').MotionValue<any>;
|
|
566
562
|
additive?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -596,7 +592,6 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
596
592
|
edgeMode?: string | number | import('motion-dom').MotionValue<any>;
|
|
597
593
|
elevation?: string | number | import('motion-dom').MotionValue<any>;
|
|
598
594
|
enableBackground?: string | number | import('motion-dom').MotionValue<any>;
|
|
599
|
-
end?: string | number | import('motion-dom').MotionValue<any>;
|
|
600
595
|
exponent?: string | number | import('motion-dom').MotionValue<any>;
|
|
601
596
|
externalResourcesRequired?: string | number | import('motion-dom').MotionValue<any>;
|
|
602
597
|
filterRes?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -604,7 +599,6 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
604
599
|
focusable?: string | number | import('motion-dom').MotionValue<any>;
|
|
605
600
|
format?: string | number | import('motion-dom').MotionValue<any>;
|
|
606
601
|
fr?: string | number | import('motion-dom').MotionValue<any>;
|
|
607
|
-
from?: string | number | import('motion-dom').MotionValue<any>;
|
|
608
602
|
fx?: string | number | import('motion-dom').MotionValue<any>;
|
|
609
603
|
fy?: string | number | import('motion-dom').MotionValue<any>;
|
|
610
604
|
g1?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -652,7 +646,6 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
652
646
|
overlinePosition?: string | number | import('motion-dom').MotionValue<any>;
|
|
653
647
|
overlineThickness?: string | number | import('motion-dom').MotionValue<any>;
|
|
654
648
|
panose1?: string | number | import('motion-dom').MotionValue<any>;
|
|
655
|
-
path?: string | number | import('motion-dom').MotionValue<any>;
|
|
656
649
|
pathLength?: string | number | import('motion-dom').MotionValue<any>;
|
|
657
650
|
patternContentUnits?: string | number | import('motion-dom').MotionValue<any>;
|
|
658
651
|
patternTransform?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -703,7 +696,6 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
703
696
|
unicodeRange?: string | number | import('motion-dom').MotionValue<any>;
|
|
704
697
|
unitsPerEm?: string | number | import('motion-dom').MotionValue<any>;
|
|
705
698
|
vAlphabetic?: string | number | import('motion-dom').MotionValue<any>;
|
|
706
|
-
values?: string | number | import('motion-dom').MotionValue<any>;
|
|
707
699
|
version?: string | number | import('motion-dom').MotionValue<any>;
|
|
708
700
|
vertAdvY?: string | number | import('motion-dom').MotionValue<any>;
|
|
709
701
|
vertOriginX?: string | number | import('motion-dom').MotionValue<any>;
|
|
@@ -736,6 +728,14 @@ export declare function useMotionState(props: MotionProps): {
|
|
|
736
728
|
zoomAndPan?: string | number | import('motion-dom').MotionValue<any>;
|
|
737
729
|
pathOffset?: string | number | import('motion-dom').MotionValue<any>;
|
|
738
730
|
pathSpacing?: string | number | import('motion-dom').MotionValue<any>;
|
|
731
|
+
translateX?: string | number | import('motion-dom').MotionValue<any>;
|
|
732
|
+
translateY?: string | number | import('motion-dom').MotionValue<any>;
|
|
733
|
+
translateZ?: string | number | import('motion-dom').MotionValue<any>;
|
|
734
|
+
skew?: string | number | import('motion-dom').MotionValue<any>;
|
|
735
|
+
originX?: string | number | import('motion-dom').MotionValue<any>;
|
|
736
|
+
originY?: string | number | import('motion-dom').MotionValue<any>;
|
|
737
|
+
originZ?: string | number | import('motion-dom').MotionValue<any>;
|
|
738
|
+
transformPerspective?: string | number | import('motion-dom').MotionValue<any>;
|
|
739
739
|
}>;
|
|
740
740
|
transformTemplate?: (transform: import('motion-dom').TransformProperties, generatedTransform: string) => string;
|
|
741
741
|
onAnimationComplete?: (definition: import('../..').Options["animate"]) => void;
|
|
@@ -66,12 +66,12 @@ function useMotionState(props) {
|
|
|
66
66
|
...isSVG ? {} : ((_a2 = state.visualElement) == null ? void 0 : _a2.latestValues) || state.baseTarget
|
|
67
67
|
};
|
|
68
68
|
if (isSVG) {
|
|
69
|
-
const { attributes, style } = convertSvgStyleToAttributes({
|
|
69
|
+
const { attributes, style: style2 } = convertSvgStyleToAttributes({
|
|
70
70
|
...state.isMounted() ? state.target : state.baseTarget,
|
|
71
71
|
...styleProps
|
|
72
72
|
});
|
|
73
73
|
Object.assign(attrsProps, attributes);
|
|
74
|
-
styleProps =
|
|
74
|
+
styleProps = style2;
|
|
75
75
|
}
|
|
76
76
|
if (props.drag && props.dragListener !== false) {
|
|
77
77
|
Object.assign(styleProps, {
|
|
@@ -81,7 +81,9 @@ function useMotionState(props) {
|
|
|
81
81
|
touchAction: props.drag === true ? "none" : `pan-${props.drag === "x" ? "y" : "x"}`
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
const style = createStyles(styleProps);
|
|
85
|
+
if (style)
|
|
86
|
+
attrsProps.style = style;
|
|
85
87
|
return attrsProps;
|
|
86
88
|
}
|
|
87
89
|
const instance = getCurrentInstance().proxy;
|
|
@@ -80,8 +80,10 @@ function createMotionComponent(component, options = {}) {
|
|
|
80
80
|
const isComponent = typeof props.as === "object";
|
|
81
81
|
if ((!isComponent || props.asChild) && el) {
|
|
82
82
|
const { style } = getAttrs();
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
if (style) {
|
|
84
|
+
for (const [key, val] of Object.entries(style)) {
|
|
85
|
+
el.style[key] = val;
|
|
86
|
+
}
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
}
|