motion-v 0.12.0-beta.2 → 0.13.0-alpha.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 +478 -1218
- package/dist/es/animation/hooks/animation-controls.mjs +1 -1
- package/dist/es/animation/hooks/use-animate.mjs +1 -1
- package/dist/es/animation/hooks/use-reduced-motion.mjs +9 -0
- package/dist/es/components/animate-presence/AnimatePresence.vue.mjs +27 -19
- package/dist/es/components/animate-presence/use-pop-layout.mjs +1 -1
- package/dist/es/components/motion/Motion.vue.mjs +1 -0
- package/dist/es/components/reorder/utils.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/index.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +4 -7
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +3 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +5 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +3 -6
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +4 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +9 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/spring/find.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/spring/index.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/utils/velocity.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +4 -5
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +1 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +4 -5
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/cubic-bezier.mjs +2 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/utils/map.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +27 -7
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/VisualElement.mjs +4 -5
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/index.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/observe.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +3 -18
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +2 -3
- package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils/parse-transform.mjs +82 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +2 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +4 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/setters.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/delay.mjs +3 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/interpolate.mjs +3 -3
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/color.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/complex.mjs +1 -1
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/fill.mjs +2 -2
- package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -2
- package/dist/es/features/gestures/drag/index.mjs +2 -2
- package/dist/es/features/gestures/focus/index.mjs +1 -1
- package/dist/es/features/gestures/hover/index.mjs +1 -3
- package/dist/es/features/gestures/in-view/index.mjs +2 -2
- package/dist/es/features/gestures/pan/PanSession.mjs +3 -3
- package/dist/es/features/gestures/pan/index.mjs +3 -3
- package/dist/es/features/gestures/press/index.mjs +30 -19
- package/dist/es/features/layout/config.mjs +2 -2
- package/dist/es/features/layout/layout.mjs +2 -2
- package/dist/es/features/layout/projection.mjs +2 -2
- package/dist/es/index.mjs +32 -42
- package/dist/es/state/animate-updates.mjs +6 -5
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +3 -3
- package/dist/es/state/utils.mjs +0 -1
- package/dist/es/utils/use-animation-frame.mjs +1 -1
- package/dist/es/utils/use-in-view.mjs +6 -3
- package/dist/es/value/use-combine-values.mjs +1 -2
- package/dist/es/value/use-computed.mjs +1 -1
- package/dist/es/value/use-scroll.mjs +26 -24
- package/dist/es/value/use-spring.mjs +2 -3
- package/dist/es/value/use-time.mjs +1 -1
- package/dist/es/value/use-transform.mjs +3 -5
- package/dist/es/value/use-velocity.mjs +1 -2
- package/dist/nuxt/index.cjs +39 -27
- package/dist/nuxt/index.d.cts +7 -3
- package/dist/nuxt/index.d.mts +7 -3
- package/dist/nuxt/index.mjs +39 -27
- package/package.json +4 -3
- package/dist/es/animation/hooks/animation-controls.d.ts +0 -8
- package/dist/es/animation/hooks/use-animate.d.ts +0 -8
- package/dist/es/animation/hooks/use-animation-controls.d.ts +0 -33
- package/dist/es/animation/index.d.ts +0 -2
- package/dist/es/animation/types.d.ts +0 -68
- package/dist/es/animation/utils.d.ts +0 -2
- package/dist/es/components/LayoutGroup.d.ts +0 -43
- package/dist/es/components/RowValue.d.ts +0 -18
- package/dist/es/components/animate-presence/AnimatePresence.d.ts +0 -49
- package/dist/es/components/animate-presence/index.d.ts +0 -2
- package/dist/es/components/animate-presence/types.d.ts +0 -9
- package/dist/es/components/animate-presence/use-pop-layout.d.ts +0 -7
- package/dist/es/components/animate-presence/use-presence.d.ts +0 -2
- package/dist/es/components/animate-presence/utils.d.ts +0 -0
- package/dist/es/components/context.d.ts +0 -16
- package/dist/es/components/group.d.ts +0 -7
- package/dist/es/components/hooks/use-motion-elm.d.ts +0 -13
- package/dist/es/components/index.d.ts +0 -6
- package/dist/es/components/motion/Motion.d.ts +0 -32
- package/dist/es/components/motion/NameSpace.d.ts +0 -14
- package/dist/es/components/motion/Primitive.d.ts +0 -48
- package/dist/es/components/motion/Slot.d.ts +0 -5
- package/dist/es/components/motion/index.d.ts +0 -2
- package/dist/es/components/motion/renderSlotFragments.d.ts +0 -2
- package/dist/es/components/motion/utils.d.ts +0 -7
- package/dist/es/components/motion-config/MotionConfig.d.ts +0 -39
- package/dist/es/components/motion-config/context.d.ts +0 -11
- package/dist/es/components/motion-config/index.d.ts +0 -2
- package/dist/es/components/motion-config/types.d.ts +0 -16
- package/dist/es/components/presence.d.ts +0 -7
- package/dist/es/components/reorder/Group.d.ts +0 -71
- package/dist/es/components/reorder/Item.d.ts +0 -36
- package/dist/es/components/reorder/context.d.ts +0 -8
- package/dist/es/components/reorder/index.d.ts +0 -8942
- package/dist/es/components/reorder/types.d.ts +0 -5
- package/dist/es/components/reorder/utils.d.ts +0 -6
- package/dist/es/components/use-force-update.d.ts +0 -2
- package/dist/es/components/use-layout-group.d.ts +0 -23
- package/dist/es/components/use-slot-change-index.d.ts +0 -1
- package/dist/es/constants/index.d.ts +0 -9
- package/dist/es/constants/index.mjs +0 -31
- package/dist/es/events/add-dom-event.d.ts +0 -1
- package/dist/es/events/add-pointer-event.d.ts +0 -2
- package/dist/es/events/event-info.d.ts +0 -4
- package/dist/es/events/index.d.ts +0 -5
- package/dist/es/events/types.d.ts +0 -5
- package/dist/es/events/utils/index.d.ts +0 -1
- package/dist/es/events/utils/is-primary-pointer.d.ts +0 -1
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/batcher.mjs +0 -63
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs +0 -10
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -11
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/microtask.mjs +0 -6
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/order.mjs +0 -17
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/render-step.mjs +0 -70
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/sync-time.mjs +0 -21
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/stats/buffer.mjs +0 -7
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -7
- package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/value/index.mjs +0 -282
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs +0 -79
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -9
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -15
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +0 -17
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +0 -81
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -7
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -37
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +0 -11
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/hover.mjs +0 -30
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/index.mjs +0 -74
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -32
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -10
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -15
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/is-bezier-definition.mjs +0 -4
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/resolve-elements.mjs +0 -17
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -6
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -12
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -13
- package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +0 -6
- package/dist/es/features/animation/animation.d.ts +0 -13
- package/dist/es/features/feature-manager.d.ts +0 -12
- package/dist/es/features/feature.d.ts +0 -11
- package/dist/es/features/gestures/base.d.ts +0 -8
- package/dist/es/features/gestures/drag/VisualElementDragControls.d.ts +0 -57
- package/dist/es/features/gestures/drag/index.d.ts +0 -10
- package/dist/es/features/gestures/drag/lock.d.ts +0 -4
- package/dist/es/features/gestures/drag/types.d.ts +0 -225
- package/dist/es/features/gestures/drag/use-drag-controls.d.ts +0 -73
- package/dist/es/features/gestures/drag/utils/constraints.d.ts +0 -55
- package/dist/es/features/gestures/drag/utils/is.d.ts +0 -1
- package/dist/es/features/gestures/focus/index.d.ts +0 -7
- package/dist/es/features/gestures/focus/types.d.ts +0 -13
- package/dist/es/features/gestures/hover/index.d.ts +0 -7
- package/dist/es/features/gestures/hover/types.d.ts +0 -15
- package/dist/es/features/gestures/in-view/index.d.ts +0 -9
- package/dist/es/features/gestures/in-view/types.d.ts +0 -25
- package/dist/es/features/gestures/index.d.ts +0 -5
- package/dist/es/features/gestures/pan/PanSession.d.ts +0 -139
- package/dist/es/features/gestures/pan/index.d.ts +0 -16
- package/dist/es/features/gestures/pan/types.d.ts +0 -7
- package/dist/es/features/gestures/press/index.d.ts +0 -9
- package/dist/es/features/gestures/press/types.d.ts +0 -20
- package/dist/es/features/gestures/types.d.ts +0 -22
- package/dist/es/features/index.d.ts +0 -6
- package/dist/es/features/layout/config.d.ts +0 -8
- package/dist/es/features/layout/layout.d.ts +0 -11
- package/dist/es/features/layout/projection.d.ts +0 -9
- package/dist/es/features/layout/types.d.ts +0 -21
- package/dist/es/features/layout/utils.d.ts +0 -4
- package/dist/es/index.d.ts +0 -15
- package/dist/es/projection/conversion.d.ts +0 -14
- package/dist/es/projection/geometry/delta-apply.d.ts +0 -2
- package/dist/es/projection/geometry/delta-calc.d.ts +0 -2
- package/dist/es/projection/geometry/models.d.ts +0 -3
- package/dist/es/projection/node/types.d.ts +0 -16
- package/dist/es/projection/utils/each-axis.d.ts +0 -3
- package/dist/es/projection/utils/measure.d.ts +0 -3
- package/dist/es/render/utils/setters.d.ts +0 -3
- package/dist/es/shared/test.d.ts +0 -1
- package/dist/es/state/animate-updates.d.ts +0 -20
- package/dist/es/state/animate-variants-children.d.ts +0 -15
- package/dist/es/state/animation/index.d.ts +0 -0
- package/dist/es/state/animation/types.d.ts +0 -0
- package/dist/es/state/create-visual-element.d.ts +0 -1
- package/dist/es/state/event.d.ts +0 -6
- package/dist/es/state/index.d.ts +0 -1
- package/dist/es/state/motion-state.d.ts +0 -50
- package/dist/es/state/style.d.ts +0 -11
- package/dist/es/state/transform.d.ts +0 -25
- package/dist/es/state/utils/is-present.d.ts +0 -2
- package/dist/es/state/utils/is-variant-labels.d.ts +0 -2
- package/dist/es/state/utils.d.ts +0 -19
- package/dist/es/types/framer-motion.d.ts +0 -43
- package/dist/es/types/index.d.ts +0 -4
- package/dist/es/types/motion-values.d.ts +0 -93
- package/dist/es/types/state.d.ts +0 -79
- package/dist/es/types/transform.d.ts +0 -23
- package/dist/es/utils/clamp.d.ts +0 -1
- package/dist/es/utils/createContext.d.ts +0 -8
- package/dist/es/utils/delay.d.ts +0 -1
- package/dist/es/utils/get-context-window.d.ts +0 -2
- package/dist/es/utils/index.d.ts +0 -7
- package/dist/es/utils/mix/number.d.ts +0 -1
- package/dist/es/utils/motion-value.d.ts +0 -2
- package/dist/es/utils/noop.d.ts +0 -1
- package/dist/es/utils/progress.d.ts +0 -1
- package/dist/es/utils/time-conversion.d.ts +0 -8
- package/dist/es/utils/use-animation-frame.d.ts +0 -2
- package/dist/es/utils/use-dom-ref.d.ts +0 -1
- package/dist/es/utils/use-in-view.d.ts +0 -3
- package/dist/es/value/index.d.ts +0 -9
- package/dist/es/value/types/numbers/units.d.ts +0 -30
- package/dist/es/value/use-combine-values.d.ts +0 -6
- package/dist/es/value/use-computed.d.ts +0 -2
- package/dist/es/value/use-motion-template.d.ts +0 -21
- package/dist/es/value/use-motion-value-event.d.ts +0 -3
- package/dist/es/value/use-scroll.d.ts +0 -12
- package/dist/es/value/use-spring.d.ts +0 -4
- package/dist/es/value/use-time.d.ts +0 -1
- package/dist/es/value/use-transform.d.ts +0 -59
- package/dist/es/value/use-velocity.d.ts +0 -13
- package/dist/es/value/use-will-change/add-will-change.d.ts +0 -2
- package/dist/es/value/use-will-change/is.d.ts +0 -2
- package/dist/es/value/use-will-change/types.d.ts +0 -4
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/inertia.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/spring/defaults.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-animatable.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-none.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/anticipate.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/back.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/circ.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/ease.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/steps.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/utils/is-easing-array.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +0 -0
- package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/keys-position.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/keys-transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/measure.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/clamp.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/hsla-to-rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/default.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/time.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/pipe.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/transform.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/wrap.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/rgba.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/complex/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/numbers/index.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/numbers/units.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/array.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/errors.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/memo.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/noop.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/progress.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/subscription-manager.mjs +0 -0
- /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/velocity-per-second.mjs +0 -0
- /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/warn-once.mjs +0 -0
package/dist/es/index.mjs
CHANGED
|
@@ -1,48 +1,41 @@
|
|
|
1
|
-
import { addScaleCorrector } from "./external/.pnpm/framer-motion@12.
|
|
1
|
+
import { addScaleCorrector } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/projection/styles/scale-correction.mjs";
|
|
2
2
|
import { default as default2 } from "./components/LayoutGroup.vue.mjs";
|
|
3
3
|
import { useLayoutGroup } from "./components/use-layout-group.mjs";
|
|
4
4
|
import { injectLayoutGroup, injectMotion, provideLayoutGroup, provideMotion } from "./components/context.mjs";
|
|
5
|
-
import { components, utilities } from "./constants/index.mjs";
|
|
6
5
|
import { useDragControls } from "./features/gestures/drag/use-drag-controls.mjs";
|
|
7
6
|
import { default as default3 } from "./components/motion/Motion.vue.mjs";
|
|
8
7
|
import { default as default4 } from "./components/RowValue.vue.mjs";
|
|
9
8
|
import { default as default5 } from "./components/animate-presence/AnimatePresence.vue.mjs";
|
|
10
9
|
import { default as default6 } from "./components/motion-config/MotionConfig.vue.mjs";
|
|
11
|
-
import { MotionValue, motionValue, motionValue as motionValue2 } from "
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import { mix } from "./external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/utils/mix/index.mjs";
|
|
41
|
-
import { pipe } from "./external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/utils/pipe.mjs";
|
|
42
|
-
import { transform } from "./external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/utils/transform.mjs";
|
|
43
|
-
import { wrap } from "./external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/utils/wrap.mjs";
|
|
44
|
-
import { cancelSync, sync } from "./external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/index-legacy.mjs";
|
|
45
|
-
import { cancelFrame, frame, frameData, frameSteps } from "./external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
10
|
+
import { MotionValue, cancelFrame, frame, frameData, hover, isDragActive, motionValue, press, time, motionValue as motionValue2 } from "motion-dom";
|
|
11
|
+
import { invariant } from "./external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
12
|
+
import { noop } from "./external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
13
|
+
import { progress } from "./external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
|
|
14
|
+
import { animate, createScopedAnimate } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animate/index.mjs";
|
|
15
|
+
import { animateMini } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs";
|
|
16
|
+
import { scroll } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs";
|
|
17
|
+
import { scrollInfo } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/track.mjs";
|
|
18
|
+
import { inView } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
19
|
+
import { anticipate } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/anticipate.mjs";
|
|
20
|
+
import { backIn, backInOut, backOut } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/back.mjs";
|
|
21
|
+
import { circIn, circInOut, circOut } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/circ.mjs";
|
|
22
|
+
import { cubicBezier } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/cubic-bezier.mjs";
|
|
23
|
+
import { easeIn, easeInOut, easeOut } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/ease.mjs";
|
|
24
|
+
import { mirrorEasing } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/modifiers/mirror.mjs";
|
|
25
|
+
import { reverseEasing } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/modifiers/reverse.mjs";
|
|
26
|
+
import { steps } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/easing/steps.mjs";
|
|
27
|
+
import { inertia } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/generators/inertia.mjs";
|
|
28
|
+
import { keyframes } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/generators/keyframes.mjs";
|
|
29
|
+
import { spring } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/generators/spring/index.mjs";
|
|
30
|
+
import { stagger } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/utils/stagger.mjs";
|
|
31
|
+
import { clamp } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/clamp.mjs";
|
|
32
|
+
import { delayInSeconds } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/delay.mjs";
|
|
33
|
+
import { distance, distance2D } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/distance.mjs";
|
|
34
|
+
import { interpolate } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/interpolate.mjs";
|
|
35
|
+
import { mix } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/mix/index.mjs";
|
|
36
|
+
import { pipe } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/pipe.mjs";
|
|
37
|
+
import { transform } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/transform.mjs";
|
|
38
|
+
import { wrap } from "./external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/wrap.mjs";
|
|
46
39
|
import { motion } from "./components/motion/NameSpace.mjs";
|
|
47
40
|
import { mountedStates } from "./state/motion-state.mjs";
|
|
48
41
|
import { provideMotionConfig, useMotionConfig } from "./components/motion-config/context.mjs";
|
|
@@ -58,6 +51,7 @@ import { useScroll } from "./value/use-scroll.mjs";
|
|
|
58
51
|
import { useVelocity } from "./value/use-velocity.mjs";
|
|
59
52
|
import { useAnimate } from "./animation/hooks/use-animate.mjs";
|
|
60
53
|
import { useAnimationControls } from "./animation/hooks/use-animation-controls.mjs";
|
|
54
|
+
import { useReducedMotion } from "./animation/hooks/use-reduced-motion.mjs";
|
|
61
55
|
import { createContext } from "./utils/createContext.mjs";
|
|
62
56
|
import { isMotionValue } from "./utils/motion-value.mjs";
|
|
63
57
|
import { useInView } from "./utils/use-in-view.mjs";
|
|
@@ -83,12 +77,10 @@ export {
|
|
|
83
77
|
backInOut,
|
|
84
78
|
backOut,
|
|
85
79
|
cancelFrame,
|
|
86
|
-
cancelSync,
|
|
87
80
|
circIn,
|
|
88
81
|
circInOut,
|
|
89
82
|
circOut,
|
|
90
83
|
clamp,
|
|
91
|
-
components,
|
|
92
84
|
createContext,
|
|
93
85
|
createScopedAnimate,
|
|
94
86
|
cubicBezier,
|
|
@@ -100,7 +92,6 @@ export {
|
|
|
100
92
|
easeOut,
|
|
101
93
|
frame,
|
|
102
94
|
frameData,
|
|
103
|
-
frameSteps,
|
|
104
95
|
getContextWindow,
|
|
105
96
|
hover,
|
|
106
97
|
inView,
|
|
@@ -132,7 +123,6 @@ export {
|
|
|
132
123
|
spring,
|
|
133
124
|
stagger,
|
|
134
125
|
steps,
|
|
135
|
-
sync,
|
|
136
126
|
time,
|
|
137
127
|
transform,
|
|
138
128
|
useAnimate,
|
|
@@ -148,11 +138,11 @@ export {
|
|
|
148
138
|
useMotionTemplate,
|
|
149
139
|
motionValue2 as useMotionValue,
|
|
150
140
|
useMotionValueEvent,
|
|
141
|
+
useReducedMotion,
|
|
151
142
|
useScroll,
|
|
152
143
|
useSpring,
|
|
153
144
|
useTime,
|
|
154
145
|
useTransform,
|
|
155
146
|
useVelocity,
|
|
156
|
-
utilities,
|
|
157
147
|
wrap
|
|
158
148
|
};
|
|
@@ -4,9 +4,9 @@ import { transformResetValue } from "./transform.mjs";
|
|
|
4
4
|
import { motionEvent } from "./event.mjs";
|
|
5
5
|
import { isDef } from "@vueuse/core";
|
|
6
6
|
import { isAnimationControls } from "../animation/utils.mjs";
|
|
7
|
-
import { animate } from "../external/.pnpm/framer-motion@12.
|
|
8
|
-
import { noop } from "../external/.pnpm/motion-utils@12.
|
|
9
|
-
import "../external/.pnpm/motion-utils@12.
|
|
7
|
+
import { animate } from "../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animate/index.mjs";
|
|
8
|
+
import { noop } from "../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
|
|
9
|
+
import "../external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
|
|
10
10
|
const STATE_TYPES = ["initial", "animate", "whileInView", "whileHover", "whilePress", "whileDrag", "whileFocus", "exit"];
|
|
11
11
|
function animateUpdates({
|
|
12
12
|
controlActiveState = void 0,
|
|
@@ -36,7 +36,8 @@ function animateUpdates({
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
function resolveDirectAnimation(directAnimate, directTransition) {
|
|
39
|
-
|
|
39
|
+
var _a;
|
|
40
|
+
const variant = resolveVariant(directAnimate, this.options.variants, this.options.custom || ((_a = this.options.animatePresenceContext) == null ? void 0 : _a.custom));
|
|
40
41
|
if (!variant)
|
|
41
42
|
return {};
|
|
42
43
|
const transition = variant.transition || directTransition || this.options.transition || {};
|
|
@@ -88,7 +89,7 @@ function createAnimationFactories(prevTarget, animationOptions, controlDelay) {
|
|
|
88
89
|
this.element,
|
|
89
90
|
{ [key]: keyValue },
|
|
90
91
|
{
|
|
91
|
-
...animationOptions,
|
|
92
|
+
...(animationOptions == null ? void 0 : animationOptions[key]) || animationOptions,
|
|
92
93
|
delay: (((_a2 = animationOptions == null ? void 0 : animationOptions[key]) == null ? void 0 : _a2.delay) || (animationOptions == null ? void 0 : animationOptions.delay) || 0) + controlDelay
|
|
93
94
|
}
|
|
94
95
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isSVGElement } from "./utils.mjs";
|
|
2
|
-
import { HTMLVisualElement } from "../external/.pnpm/framer-motion@12.
|
|
3
|
-
import { SVGVisualElement } from "../external/.pnpm/framer-motion@12.
|
|
2
|
+
import { HTMLVisualElement } from "../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs";
|
|
3
|
+
import { SVGVisualElement } from "../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs";
|
|
4
4
|
function createVisualElement(Component, options) {
|
|
5
5
|
return isSVGElement(Component) ? new SVGVisualElement(options) : new HTMLVisualElement(options);
|
|
6
6
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { invariant } from "hey-listen";
|
|
2
|
-
import { visualElementStore } from "../external/.pnpm/framer-motion@12.
|
|
2
|
+
import { visualElementStore } from "../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/store.mjs";
|
|
3
3
|
import { resolveVariant, isAnimateChanged } from "./utils.mjs";
|
|
4
4
|
import { FeatureManager } from "../features/feature-manager.mjs";
|
|
5
5
|
import { createVisualElement } from "./create-visual-element.mjs";
|
|
6
6
|
import { doneCallbacks } from "../components/presence.mjs";
|
|
7
7
|
import { animateUpdates } from "./animate-updates.mjs";
|
|
8
8
|
import { isVariantLabels } from "./utils/is-variant-labels.mjs";
|
|
9
|
-
import { frame, cancelFrame } from "
|
|
9
|
+
import { frame, cancelFrame } from "motion-dom";
|
|
10
10
|
const mountedStates = /* @__PURE__ */ new WeakMap();
|
|
11
11
|
let id = 0;
|
|
12
12
|
const mountedLayoutIds = /* @__PURE__ */ new Set();
|
|
@@ -196,7 +196,7 @@ class MotionState {
|
|
|
196
196
|
if (isAnimate) {
|
|
197
197
|
this.animateUpdates({
|
|
198
198
|
isFallback: !isActive && name !== "exit" && this.visualElement.isControllingVariants,
|
|
199
|
-
isExit: this.activeStates.exit
|
|
199
|
+
isExit: name === "exit" && this.activeStates.exit
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
}
|
package/dist/es/state/utils.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { onBeforeUpdate, onUnmounted } from "vue";
|
|
2
|
-
import { frame, cancelFrame } from "
|
|
2
|
+
import { frame, cancelFrame } from "motion-dom";
|
|
3
3
|
function useAnimationFrame(callback) {
|
|
4
4
|
let initialTimestamp = 0;
|
|
5
5
|
const provideTimeSinceStart = ({ timestamp, delta }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, watch, isRef, unref } from "vue";
|
|
2
|
-
import { inView } from "../external/.pnpm/framer-motion@12.
|
|
2
|
+
import { inView } from "../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
3
3
|
function useInView(domRef, options) {
|
|
4
4
|
const isInView = ref(false);
|
|
5
|
-
watch([domRef, () => isRef(options) ? options.value : options], (_v1, _v2) => {
|
|
5
|
+
watch([domRef, () => isRef(options) ? options.value : options], (_v1, _v2, onCleanup) => {
|
|
6
6
|
const realOptions = unref(options) || {};
|
|
7
7
|
const { once } = realOptions;
|
|
8
8
|
if (!domRef.value || once && isInView.value) {
|
|
@@ -14,7 +14,10 @@ function useInView(domRef, options) {
|
|
|
14
14
|
isInView.value = false;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
const cleanup = inView(domRef.value, onEnter, realOptions);
|
|
18
|
+
onCleanup(() => {
|
|
19
|
+
cleanup();
|
|
20
|
+
});
|
|
18
21
|
}, {
|
|
19
22
|
immediate: true
|
|
20
23
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { onUnmounted } from "vue";
|
|
2
|
-
import { motionValue } from "
|
|
3
|
-
import { cancelFrame, frame } from "../external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
2
|
+
import { motionValue, cancelFrame, frame } from "motion-dom";
|
|
4
3
|
function useCombineMotionValues(combineValues) {
|
|
5
4
|
const value = motionValue(combineValues());
|
|
6
5
|
const updateValue = () => value.set(combineValues());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCombineMotionValues } from "./use-combine-values.mjs";
|
|
2
|
-
import { collectMotionValues } from "
|
|
2
|
+
import { collectMotionValues } from "motion-dom";
|
|
3
3
|
import { onBeforeUpdate } from "vue";
|
|
4
4
|
function useComputed(computed) {
|
|
5
5
|
collectMotionValues.current = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { onMounted,
|
|
1
|
+
import { onMounted, watch } from "vue";
|
|
2
2
|
import { warning } from "hey-listen";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { scroll } from "../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs";
|
|
4
|
+
import { motionValue } from "motion-dom";
|
|
5
5
|
function refWarning(name, ref) {
|
|
6
6
|
warning(
|
|
7
7
|
Boolean(!ref || ref.value),
|
|
@@ -22,32 +22,34 @@ function useScroll({
|
|
|
22
22
|
...options
|
|
23
23
|
} = {}) {
|
|
24
24
|
const values = createScrollMotionValues();
|
|
25
|
-
let cleanup;
|
|
26
|
-
const setupScroll = () => {
|
|
27
|
-
cleanup == null ? void 0 : cleanup();
|
|
28
|
-
cleanup = scroll(
|
|
29
|
-
(_progress, { x, y }) => {
|
|
30
|
-
values.scrollX.set(x.current);
|
|
31
|
-
values.scrollXProgress.set(x.progress);
|
|
32
|
-
values.scrollY.set(y.current);
|
|
33
|
-
values.scrollYProgress.set(y.progress);
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
...options,
|
|
37
|
-
container: (container == null ? void 0 : container.value) ?? void 0,
|
|
38
|
-
target: (target == null ? void 0 : target.value) ?? void 0
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
25
|
onMounted(() => {
|
|
43
26
|
refWarning("target", target);
|
|
44
27
|
refWarning("container", container);
|
|
45
|
-
setupScroll();
|
|
46
28
|
});
|
|
47
|
-
onUnmounted(() => cleanup == null ? void 0 : cleanup());
|
|
48
29
|
watch(
|
|
49
|
-
|
|
50
|
-
|
|
30
|
+
[container, target, () => options.offset],
|
|
31
|
+
(n, o, onCleanup) => {
|
|
32
|
+
const cleanup = scroll(
|
|
33
|
+
(_progress, { x, y }) => {
|
|
34
|
+
values.scrollX.set(x.current);
|
|
35
|
+
values.scrollXProgress.set(x.progress);
|
|
36
|
+
values.scrollY.set(y.current);
|
|
37
|
+
values.scrollYProgress.set(y.progress);
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
...options,
|
|
41
|
+
container: (container == null ? void 0 : container.value) ?? void 0,
|
|
42
|
+
target: (target == null ? void 0 : target.value) ?? void 0
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
onCleanup(() => {
|
|
46
|
+
cleanup();
|
|
47
|
+
});
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
immediate: true,
|
|
51
|
+
flush: "post"
|
|
52
|
+
}
|
|
51
53
|
);
|
|
52
54
|
return values;
|
|
53
55
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { watch, isRef } from "vue";
|
|
2
|
-
import { animateValue } from "../external/.pnpm/framer-motion@12.
|
|
3
|
-
import { motionValue } from "
|
|
4
|
-
import { frame, frameData } from "../external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
2
|
+
import { animateValue } from "../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs";
|
|
3
|
+
import { motionValue, frame, frameData } from "motion-dom";
|
|
5
4
|
import { isMotionValue } from "../utils/motion-value.mjs";
|
|
6
5
|
function toNumber(v) {
|
|
7
6
|
if (typeof v === "number")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useAnimationFrame } from "../utils/use-animation-frame.mjs";
|
|
2
|
-
import { motionValue } from "
|
|
2
|
+
import { motionValue } from "motion-dom";
|
|
3
3
|
function useTime() {
|
|
4
4
|
const time = motionValue(0);
|
|
5
5
|
useAnimationFrame((t) => time.set(t));
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { useComputed } from "./use-computed.mjs";
|
|
2
2
|
import { useCombineMotionValues } from "./use-combine-values.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { transform } from "../external/.pnpm/framer-motion@12.
|
|
3
|
+
import { isRef, computed } from "vue";
|
|
4
|
+
import { transform } from "../external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/transform.mjs";
|
|
5
5
|
function useTransform(input, inputRangeOrTransformer, outputRange, options) {
|
|
6
6
|
if (typeof input === "function") {
|
|
7
7
|
return useComputed(input);
|
|
8
8
|
}
|
|
9
|
-
const transformer = computed(() =>
|
|
10
|
-
return typeof inputRangeOrTransformer === "function" ? inputRangeOrTransformer : transform(isRef(inputRangeOrTransformer) ? inputRangeOrTransformer.value : inputRangeOrTransformer, outputRange, options);
|
|
11
|
-
});
|
|
9
|
+
const transformer = typeof inputRangeOrTransformer === "function" ? inputRangeOrTransformer : isRef(inputRangeOrTransformer) ? computed(() => transform(inputRangeOrTransformer.value, outputRange, options)) : transform(inputRangeOrTransformer, outputRange, options);
|
|
12
10
|
return Array.isArray(input) ? useListTransform(
|
|
13
11
|
input,
|
|
14
12
|
transformer
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useMotionValueEvent } from "./use-motion-value-event.mjs";
|
|
2
|
-
import { motionValue } from "
|
|
3
|
-
import { frame } from "../external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
2
|
+
import { motionValue, frame } from "motion-dom";
|
|
4
3
|
function useVelocity(value) {
|
|
5
4
|
const velocity = motionValue(value.getVelocity());
|
|
6
5
|
const updateVelocity = () => {
|
package/dist/nuxt/index.cjs
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const kit = require('@nuxt/kit');
|
|
4
|
-
const motionV = require('motion-v');
|
|
5
4
|
|
|
5
|
+
const components = [
|
|
6
|
+
"Motion",
|
|
7
|
+
"AnimatePresence",
|
|
8
|
+
"LayoutGroup",
|
|
9
|
+
"MotionConfig",
|
|
10
|
+
"ReorderGroup",
|
|
11
|
+
"ReorderItem"
|
|
12
|
+
];
|
|
13
|
+
const utilities = [
|
|
14
|
+
"useTransform",
|
|
15
|
+
"useTime",
|
|
16
|
+
"useMotionTemplate",
|
|
17
|
+
"useSpring",
|
|
18
|
+
"useScroll",
|
|
19
|
+
"useMotionValue",
|
|
20
|
+
"useVelocity",
|
|
21
|
+
"useAnimate",
|
|
22
|
+
"useInView",
|
|
23
|
+
"useAnimationFrame",
|
|
24
|
+
"useMotionValueEvent",
|
|
25
|
+
"useLayoutGroup",
|
|
26
|
+
"useDragControls",
|
|
27
|
+
"useReducedMotion"
|
|
28
|
+
];
|
|
6
29
|
const index = kit.defineNuxtModule({
|
|
7
30
|
meta: {
|
|
8
31
|
name: "motion-v",
|
|
@@ -13,36 +36,25 @@ const index = kit.defineNuxtModule({
|
|
|
13
36
|
},
|
|
14
37
|
defaults: {
|
|
15
38
|
prefix: "",
|
|
16
|
-
components: true
|
|
39
|
+
components: true,
|
|
40
|
+
utilities: true
|
|
17
41
|
},
|
|
18
42
|
setup(options, _nuxtApp) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
for (const component of getComponents()) {
|
|
28
|
-
kit.addComponent({
|
|
29
|
-
name: `${options.prefix}${component}`,
|
|
30
|
-
export: component,
|
|
31
|
-
filePath: "motion-v"
|
|
43
|
+
if (options.components) {
|
|
44
|
+
components.forEach((component) => {
|
|
45
|
+
kit.addComponent({
|
|
46
|
+
name: `${options.prefix}${component}`,
|
|
47
|
+
export: component,
|
|
48
|
+
filePath: "motion-v"
|
|
49
|
+
});
|
|
32
50
|
});
|
|
33
51
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return [];
|
|
41
|
-
}
|
|
42
|
-
for (const utility of getUtilities()) {
|
|
43
|
-
kit.addImports({
|
|
44
|
-
from: "motion-v",
|
|
45
|
-
name: utility
|
|
52
|
+
if (options.utilities) {
|
|
53
|
+
utilities.forEach((utility) => {
|
|
54
|
+
kit.addImports({
|
|
55
|
+
from: "motion-v",
|
|
56
|
+
name: utility
|
|
57
|
+
});
|
|
46
58
|
});
|
|
47
59
|
}
|
|
48
60
|
}
|
package/dist/nuxt/index.d.cts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { components } from 'motion-v';
|
|
3
2
|
|
|
3
|
+
declare const components: string[];
|
|
4
|
+
declare const utilities: string[];
|
|
5
|
+
type Components = keyof typeof components;
|
|
6
|
+
type Utilities = keyof typeof utilities;
|
|
4
7
|
interface ModuleOptions {
|
|
5
|
-
components:
|
|
8
|
+
components: boolean;
|
|
9
|
+
utilities: boolean;
|
|
6
10
|
prefix: string;
|
|
7
11
|
}
|
|
8
12
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
9
13
|
|
|
10
|
-
export { type ModuleOptions, _default as default };
|
|
14
|
+
export { type Components, type ModuleOptions, type Utilities, _default as default };
|
package/dist/nuxt/index.d.mts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { components } from 'motion-v';
|
|
3
2
|
|
|
3
|
+
declare const components: string[];
|
|
4
|
+
declare const utilities: string[];
|
|
5
|
+
type Components = keyof typeof components;
|
|
6
|
+
type Utilities = keyof typeof utilities;
|
|
4
7
|
interface ModuleOptions {
|
|
5
|
-
components:
|
|
8
|
+
components: boolean;
|
|
9
|
+
utilities: boolean;
|
|
6
10
|
prefix: string;
|
|
7
11
|
}
|
|
8
12
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
9
13
|
|
|
10
|
-
export { type ModuleOptions, _default as default };
|
|
14
|
+
export { type Components, type ModuleOptions, type Utilities, _default as default };
|
package/dist/nuxt/index.mjs
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import { defineNuxtModule, addComponent, addImports } from '@nuxt/kit';
|
|
2
|
-
import { components, utilities } from 'motion-v';
|
|
3
2
|
|
|
3
|
+
const components = [
|
|
4
|
+
"Motion",
|
|
5
|
+
"AnimatePresence",
|
|
6
|
+
"LayoutGroup",
|
|
7
|
+
"MotionConfig",
|
|
8
|
+
"ReorderGroup",
|
|
9
|
+
"ReorderItem"
|
|
10
|
+
];
|
|
11
|
+
const utilities = [
|
|
12
|
+
"useTransform",
|
|
13
|
+
"useTime",
|
|
14
|
+
"useMotionTemplate",
|
|
15
|
+
"useSpring",
|
|
16
|
+
"useScroll",
|
|
17
|
+
"useMotionValue",
|
|
18
|
+
"useVelocity",
|
|
19
|
+
"useAnimate",
|
|
20
|
+
"useInView",
|
|
21
|
+
"useAnimationFrame",
|
|
22
|
+
"useMotionValueEvent",
|
|
23
|
+
"useLayoutGroup",
|
|
24
|
+
"useDragControls",
|
|
25
|
+
"useReducedMotion"
|
|
26
|
+
];
|
|
4
27
|
const index = defineNuxtModule({
|
|
5
28
|
meta: {
|
|
6
29
|
name: "motion-v",
|
|
@@ -11,36 +34,25 @@ const index = defineNuxtModule({
|
|
|
11
34
|
},
|
|
12
35
|
defaults: {
|
|
13
36
|
prefix: "",
|
|
14
|
-
components: true
|
|
37
|
+
components: true,
|
|
38
|
+
utilities: true
|
|
15
39
|
},
|
|
16
40
|
setup(options, _nuxtApp) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
for (const component of getComponents()) {
|
|
26
|
-
addComponent({
|
|
27
|
-
name: `${options.prefix}${component}`,
|
|
28
|
-
export: component,
|
|
29
|
-
filePath: "motion-v"
|
|
41
|
+
if (options.components) {
|
|
42
|
+
components.forEach((component) => {
|
|
43
|
+
addComponent({
|
|
44
|
+
name: `${options.prefix}${component}`,
|
|
45
|
+
export: component,
|
|
46
|
+
filePath: "motion-v"
|
|
47
|
+
});
|
|
30
48
|
});
|
|
31
49
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return [];
|
|
39
|
-
}
|
|
40
|
-
for (const utility of getUtilities()) {
|
|
41
|
-
addImports({
|
|
42
|
-
from: "motion-v",
|
|
43
|
-
name: utility
|
|
50
|
+
if (options.utilities) {
|
|
51
|
+
utilities.forEach((utility) => {
|
|
52
|
+
addImports({
|
|
53
|
+
from: "motion-v",
|
|
54
|
+
name: utility
|
|
55
|
+
});
|
|
44
56
|
});
|
|
45
57
|
}
|
|
46
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motion-v",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,8 +67,9 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@vueuse/core": "^10.0.0",
|
|
70
|
-
"framer-motion": "12.
|
|
71
|
-
"hey-listen": "^1.0.8"
|
|
70
|
+
"framer-motion": "12.5.0",
|
|
71
|
+
"hey-listen": "^1.0.8",
|
|
72
|
+
"motion-dom": "^12.5.0"
|
|
72
73
|
},
|
|
73
74
|
"devDependencies": {
|
|
74
75
|
"vue": "3.4.38"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AnimationControls } from '../types';
|
|
2
|
-
import { MotionState } from '../../state';
|
|
3
|
-
import { Options } from '../../types';
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare function animationControls(): AnimationControls;
|
|
8
|
-
export declare function setValues(state: MotionState, definition: Options['animate']): void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AnimationPlaybackControls } from 'framer-motion';
|
|
2
|
-
import { Ref, UnwrapRef } from 'vue';
|
|
3
|
-
import { createScopedAnimate } from 'framer-motion/dom';
|
|
4
|
-
type Scope = Ref<UnwrapRef<Element>> & {
|
|
5
|
-
animations: AnimationPlaybackControls[];
|
|
6
|
-
};
|
|
7
|
-
export declare function useAnimate<T extends Element = any>(): [Scope, ReturnType<typeof createScopedAnimate>];
|
|
8
|
-
export {};
|